/* =========================================
   COMMERCIAL PLANS SECTION (PREMIUM CLEAN VERSION)
========================================= */

/* =========================
   BASE SECTION
========================= */

.commercial-plans-section {
    padding: 20px 0 5px;
    background: #f8fbfd;
}

/* =========================
   HEADING
========================= */

.plans-heading {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 45px;
}

.mini-title {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(14, 116, 144, 0.08);
    color: #0e7490;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.plans-heading h2 {
    font-size: 38px;
    line-height: 1.15;
    color: #06283D;
    margin-bottom: 18px;
    font-weight: 700;
}

.subtitle {
    font-size: 17px;
    line-height: 1.7;
    color: #5b6875;
    margin-bottom: 10px;
}

.hint {
    font-size: 14px;
    color: #0e7490;
    font-weight: 600;
}

/* =========================
   TABS
========================= */

.commercial-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.commercial-tab-btn {
    border: 1px solid #e6edf3;
    background: #fff;
    color: #06283D;
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.commercial-tab-btn:hover {
    transform: translateY(-2px);
    border-color: #c9d8e3;
}

.commercial-tab-btn.active {
    background: linear-gradient(135deg, #06283D, #0e7490);
    color: #fff;
    border-color: transparent;
}

/* =========================
   TAB SYSTEM
========================= */

.commercial-tab-wrapper {
    width: 100%;
    min-height: 650px;
}

.commercial-tab-content {
    display: none;
    width: 100%;
}

.commercial-tab-content.active {
    display: block;
}

/* =========================
   TABLE CORE (FIXED COLUMN SYSTEM)
========================= */

.commercial-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;

    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* HEADER */
.commercial-table th {
    background: #06283D;
    color: #fff;
    padding: 18px 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

/* FIRST COLUMN WIDTH FIX (IMPORTANT) */
.commercial-table th:first-child,
.commercial-table td:first-child {
    text-align: left;
    width: 45%;
}

/* EVEN DISTRIBUTION FOR CHECK COLUMNS */
.commercial-table th:not(:first-child),
.commercial-table td:not(:first-child) {
    width: 18.33%;
    text-align: center;
}

/* CELLS */
.commercial-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #edf2f7;
    font-size: 14px;
    color: #334155;
}

/* FIRST COLUMN */
.commercial-table td:first-child {
    font-weight: 600;
    color: #06283D;
}

/* ROW HOVER */
.commercial-table tr:hover td {
    background: #fbfdff;
}

/* LAST ROW */
.commercial-table tr:last-child td {
    border-bottom: none;
}

/* =========================
   CHECK / CROSS SYSTEM
========================= */

.check {
    color: #14b8a6;
    font-weight: 800;
}

.cross {
    color: #dc2626;
    font-weight: 800;
}

/* ICON BADGES */
.commercial-table td .check,
.commercial-table td .cross {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 26px;
    height: 26px;

    border-radius: 6px;

    font-size: 14px;
    background: none;
}

/* =========================
   RESPONSIVE (FIXED + CLEAN MERGE)
========================= */

@media (max-width: 991px) {
    .plans-heading h2 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {

    .commercial-plans-section {
        padding: 65px 0;
    }

    .plans-heading h2 {
        font-size: 28px;
    }

    .subtitle {
        font-size: 15px;
    }

    .commercial-tabs {
        gap: 10px;
    }

    .commercial-tab-btn {
        width: calc(50% - 6px);
        padding: 12px 16px;
    }

    .commercial-tab-wrapper {
        min-height: 50px;

        /* FIX: consistent with plans.css */
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .commercial-table {
        min-width: 700px;
    }

    .commercial-table th,
    .commercial-table td {
        font-size: 13px;
        padding: 12px;
    }
}

@media (max-width: 520px) {

    .commercial-tab-btn {
        width: 100%;
    }
}

/* =========================
   MOBILE CARD SYSTEM (KEPT EXACT, UNTOUCHED LOGIC)
========================= */

@media (max-width: 520px) {

    .commercial-table {
        min-width: 0;
        box-shadow: none;
        background: transparent;
    }

    .commercial-table thead {
        display: none;
    }

    .commercial-table,
    .commercial-table tbody,
    .commercial-table tr,
    .commercial-table td {
        display: block;
        width: 100%;
    }

    .commercial-table tr {
        background: #fff;
        margin-bottom: 14px;
        border: 1px solid #e6edf3;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 6px 18px rgba(0,0,0,0.04);
    }

    .commercial-table td {
        text-align: right;
        padding: 12px 14px;
        position: relative;
        border-bottom: 1px solid #eef2f7;
        font-size: 13px;
    }

    .commercial-table td:last-child {
        border-bottom: none;
    }

    .commercial-table td:first-child {
        text-align: left;
        font-weight: 700;
        background: #f8fbfd;
        color: #06283D;
        font-size: 14px;
    }

    .commercial-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 14px;
        font-weight: 600;
        color: #64748b;
        font-size: 12px;
        text-transform: uppercase;
    }

    .commercial-table td:first-child::before {
        display: none;
    }

    .commercial-table td:not(:first-child) {
        padding-left: 140px;
    }
}