.coming-page {
    min-height: calc(100vh - 78px);
    padding-top: 18px;
}

.coming-page .company-section {
    width: min(1450px, calc(100% - 70px));
    margin: auto;
    padding: 20px 0 70px;
}

.coming-company-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
}

.coming-company-card {
    min-height: 455px;
    padding: 0 24px 22px;

    display: flex;
    flex-direction: column;
    align-items: center;

    position: relative;
    overflow: hidden;

    background: #ffffff;
    border: 1px solid #dbe5ee;
    border-radius: 22px;

    box-shadow: 0 16px 40px rgba(18, 47, 76, 0.10);

    transition:
        transform 0.28s ease,
        border-color 0.28s ease,
        box-shadow 0.28s ease,
        background-color 0.28s ease;
}

.coming-company-card:hover {
    transform: translateY(-6px);
    border-color: #16c784;

    box-shadow:
        0 22px 48px rgba(18, 47, 76, 0.16),
        0 0 0 1px rgba(22, 199, 132, 0.08);
}

.coming-company-card.search-hidden {
    display: none !important;
}

/* Coming Soon badge */

.coming-badge {
    align-self: flex-end;
    margin-right: -24px;
    padding: 17px 25px;

    background: linear-gradient(135deg, #124c43, #1d5d55);
    color: #36d99a;

    border-left: 1px solid rgba(54, 217, 154, 0.25);
    border-bottom: 1px solid rgba(54, 217, 154, 0.25);
    border-radius: 0 0 0 20px;

    font-size: 15px;
    font-weight: 700;

    box-shadow: 0 8px 20px rgba(22, 199, 132, 0.10);
}

.coming-logo {
    width: 190px;
    height: 190px;
    margin: 24px 0 16px;

    display: grid;
    place-items: center;
}

.coming-logo img {
    width: 100%;
    height: 100%;

    display: block;
    object-fit: contain;
    object-position: center;
}

.coming-company-card h2 {
    width: 100%;
    min-height: 66px;
    margin: 0 0 18px;

    color: #082a50;

    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
}

/* Notify button */

.notify-btn {
    width: 100%;
    height: 62px;
    margin-top: auto;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    background: transparent;
    border: 2px solid #16c784;
    border-radius: 18px;

    color: #16c784;

    font-size: 18px;
    font-weight: 700;
    cursor: pointer;

    transition:
        background-color 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.notify-btn:hover {
    background: linear-gradient(90deg, #16c784, #1677df);
    border-color: transparent;
    color: #ffffff;

    transform: translateY(-2px);

    box-shadow: 0 12px 28px rgba(22, 199, 132, 0.25);
}

.notify-btn.notified {
    background: rgba(22, 199, 132, 0.12);
    border-color: #16c784;
    color: #16c784;
}

/* =====================================
   LIST VIEW
===================================== */

.company-list-header {
    width: 100%;
    min-height: 72px;
    padding: 0 20px;

    display: none;
    grid-template-columns:
        minmax(0, 1.7fr)
        minmax(180px, 1fr)
        180px;
    align-items: center;
    gap: 30px;

    color: #74839d;
    border-bottom: 1px solid #dfe6ef;

    font-size: 15px;
    font-weight: 500;
}

.company-list-header.show {
    display: grid;
}

.coming-company-grid.list-view {
    display: flex !important;
    flex-direction: column;
    gap: 0;
}

.coming-company-grid.list-view .coming-company-card {
    width: 100%;
    min-height: 95px;
    padding: 14px 20px;

    display: grid;
    grid-template-columns:
        minmax(0, 1.7fr)
        minmax(180px, 1fr)
        180px;
    align-items: center;
    gap: 30px;

    overflow: visible;

    border: 0;
    border-bottom: 1px solid #dfe6ef;
    border-radius: 0;

    background: transparent;
    box-shadow: none;
}

.coming-company-grid.list-view .coming-company-card:hover {
    transform: none;
    border-color: #dfe6ef;
    background: rgba(22, 199, 132, 0.04);
    box-shadow: none;
}

.coming-company-grid.list-view .coming-badge {
    display: none;
}

.coming-company-grid.list-view .coming-logo {
    width: 46px;
    height: 46px;
    margin: 0;
    padding: 5px;

    grid-column: 1;
    grid-row: 1;
    justify-self: start;

    border: 1px solid #dfe6ef;
    border-radius: 9px;
    background: #ffffff;
}

.coming-company-grid.list-view .coming-company-card h2 {
    width: auto;
    min-height: auto;
    margin: 0;
    padding-left: 64px;

    grid-column: 1;
    grid-row: 1;

    overflow: hidden;

    color: #082a50;

    font-size: 17px;
    line-height: 1.4;
    font-weight: 700;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.coming-company-grid.list-view .coming-company-card::after {
    content: attr(data-sector);

    grid-column: 2;
    grid-row: 1;

    overflow: hidden;

    color: #687792;

    font-size: 15px;
    line-height: 1.4;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.coming-company-grid.list-view .notify-btn {
    width: 142px;
    height: 48px;
    margin: 0;

    grid-column: 3;
    grid-row: 1;
    justify-self: end;

    border-radius: 12px;
    font-size: 15px;
}

/* ================================
   DARK MODE
================================ */

[data-theme="dark"] .coming-page {
    background: #111523;
}

[data-theme="dark"] .coming-company-card {
    background: #232634;
    border-color: #303547;
    box-shadow: none;
}

[data-theme="dark"] .coming-company-card:hover {
    border-color: rgba(54, 217, 154, 0.55);

    box-shadow:
        0 20px 45px rgba(0, 0, 0, 0.24),
        0 0 0 1px rgba(54, 217, 154, 0.06);
}

[data-theme="dark"] .coming-company-card h2 {
    color: #f7f8fc;
}

[data-theme="dark"] .notify-btn {
    background: transparent;
    border-color: #16c784;
    color: #16c784;
}

[data-theme="dark"] .notify-btn:hover {
    background: linear-gradient(90deg, #16c784, #1677df);
    color: #ffffff;
    border-color: transparent;

    box-shadow: 0 12px 28px rgba(22, 199, 132, 0.25);
}

[data-theme="dark"] .notify-btn.notified {
    background: rgba(22, 199, 132, 0.12);
    border-color: #16c784;
    color: #16c784;
}

[data-theme="dark"] .coming-badge {
    background: linear-gradient(135deg, #183f3a, #214c47);
    color: #3adf9d;

    border-left-color: rgba(58, 223, 157, 0.25);
    border-bottom-color: rgba(58, 223, 157, 0.25);

    box-shadow: 0 8px 20px rgba(16, 201, 129, 0.10);
}

[data-theme="dark"] .company-list-header {
    color: #a9b1c4;
    border-bottom-color: #292e3e;
}

[data-theme="dark"] .coming-company-grid.list-view .coming-company-card {
    border-bottom-color: #292e3e;
    background: transparent;
}

[data-theme="dark"] .coming-company-grid.list-view .coming-company-card:hover {
    border-bottom-color: #292e3e;
    background: rgba(255, 255, 255, 0.025);
}

[data-theme="dark"] .coming-company-grid.list-view .coming-company-card h2 {
    color: #f4f6fc;
}

[data-theme="dark"] .coming-company-grid.list-view .coming-company-card::after {
    color: #aeb5c8;
}

[data-theme="dark"] .coming-company-grid.list-view .coming-logo {
    border-color: #3a4052;
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 1200px) {
    .coming-company-grid:not(.list-view) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .coming-company-grid:not(.list-view) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .coming-page .company-section {
        width: min(100% - 32px, 1450px);
    }

    .company-list-header {
        grid-template-columns: minmax(0, 1fr) 150px;
    }

    .company-list-header span:nth-child(2) {
        display: none;
    }

    .coming-company-grid.list-view .coming-company-card {
        grid-template-columns: minmax(0, 1fr) 150px;
    }

    .coming-company-grid.list-view .coming-company-card::after {
        display: none;
    }

    .coming-company-grid.list-view .notify-btn {
        grid-column: 2;
    }
}

@media (max-width: 600px) {
    .coming-company-grid:not(.list-view) {
        grid-template-columns: 1fr;
    }

    .coming-company-card {
        min-height: 420px;
    }

    .coming-logo {
        width: 165px;
        height: 165px;
    }

    .coming-badge {
        padding: 14px 20px;
        font-size: 14px;
    }

    .coming-company-card h2 {
        font-size: 20px;
    }

    .company-list-header {
        display: none !important;
    }

    .coming-company-grid.list-view .coming-company-card {
        min-height: 88px;
        padding: 12px;

        grid-template-columns: minmax(0, 1fr) 110px;
        gap: 10px;
    }

    .coming-company-grid.list-view .coming-logo {
        width: 42px;
        height: 42px;
    }

    .coming-company-grid.list-view .coming-company-card h2 {
        padding-left: 54px;
        font-size: 14px;
    }

    .coming-company-grid.list-view .notify-btn {
        width: 108px;
        height: 42px;
        font-size: 13px;
    }
}
