:root {
    --plan-bg: #f8fafc;
    --panel-border: #e2e8f0;
    --text-dark: #0f172a;
    --text-soft: #475569;
    --text-muted: #64748b;
    --white: #ffffff;
    --violet-500: #6366f1;
    --violet-600: #4f46e5;
    --blue-600: #2563eb;
    --blue-100: rgba(191, 219, 254, 0.25);
    --shadow-soft: 0 20px 60px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: #f8fafc;
}

.pricing-page-shell {
    min-height: 100vh;
    background: #f8fafc;
    padding: 24px 12px 48px;
}

.pricing-panel {
    max-width: 1280px;
    margin: 110px auto 0;
    border-radius: 28px;
    background: #fff;
    border: 1px solid var(--panel-border);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.pricing-hero {
    position: relative;
    overflow: hidden;
    border-radius: 28px 28px 0 0;
    background: linear-gradient(90deg, #5b4de6 0%, #4f46e5 36%, #2563eb 100%);
    color: #fff;
    padding: 30px 32px 28px;
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.22);
}

.pricing-hero::before,
.pricing-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    filter: blur(2px);
}

.pricing-hero::before {
    width: 200px;
    height: 200px;
    right: -60px;
    top: -90px;
}

.pricing-hero::after {
    width: 150px;
    height: 150px;
    left: 35%;
    bottom: -70px;
}

.back-link {
    position: relative;
    z-index: 1;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 0;
    cursor: pointer;
}

.back-link svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pricing-heading-row {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.pricing-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 18px;
}

.pricing-badge span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #facc15;
    box-shadow: 0 0 16px rgba(250, 204, 21, 0.9);
}

.pricing-heading-row h1 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.pricing-heading-row p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    max-width: 620px;
}

.pricing-controls {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.country-control {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    padding: 7px 12px;
}

.country-control label {
    font-size: 13px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.9);
}

.country-control select {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 7px 12px;
    min-width: 150px;
    font-size: 13px;
    outline: none;
}

.country-control select option {
    color: #0f172a;
}

.billing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 6px;
}

.billing-btn {
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 700;
    border-radius: 999px;
    padding: 10px 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.billing-btn.active {
    background: #fff;
    color: var(--violet-600);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
}

.billing-btn span {
    font-size: 11px;
    font-weight: 800;
    background: rgba(79, 70, 229, 0.12);
    color: #eef2ff;
    padding: 2px 6px;
    border-radius: 999px;
}

.billing-btn.active span {
    background: rgba(79, 70, 229, 0.1);
    color: var(--violet-600);
}

.pricing-comparison {
    overflow-x: auto;
    background: #f8fafc;
    border-top: 1px solid var(--panel-border);
}

.pricing-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    min-width: 980px;
}

.pricing-table thead th {
    background: #fff;
    border-bottom: 1px solid var(--panel-border);
    border-right: 1px solid var(--panel-border);
    padding: 18px 14px;
    vertical-align: top;
    text-align: center;
}

.pricing-table thead th:last-child {
    border-right: none;
}

.feature-col {
    width: 24%;
    text-align: left !important;
    padding-left: 22px !important;
}

.plan-col {
    min-width: 190px;
}

.plan-header-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.plan-label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.plan-title {
    font-size: 1.8rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.05em;
    color: var(--text-dark);
}

.plan-plan-period {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-soft);
}

.pricing-table tbody td {
    border-right: 1px solid var(--panel-border);
    border-bottom: 1px solid var(--panel-border);
    padding: 14px 16px;
    font-size: 14px;
    color: var(--text-soft);
    text-align: center;
    background: #fff;
}

.pricing-table tbody tr:nth-child(even) td {
    background: #fbfdff;
}

.pricing-table tbody td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    width: 24%;
    padding-left: 22px;
}

.pricing-table tbody td:last-child {
    border-right: none;
}

.value-cell.check-mark {
    color: #16a34a;
    font-weight: 900;
}

.value-cell.dash-mark {
    color: var(--text-muted);
}

.cta-row td {
    background: #f8fafc;
    padding-top: 20px;
    padding-bottom: 20px;
}

.cta-row td:first-child {
    background: #f8fafc;
}

.plan-button {
    width: 100%;
    border-radius: 12px;
    border: 1px solid transparent;
    padding: 13px 16px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.plan-button:hover {
    transform: translateY(-1px);
}

.plan-button.primary {
    background: linear-gradient(90deg, #4f46e5 0%, #2563eb 100%);
    color: #fff;
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2);
}

.plan-button.secondary {
    background: #eef2ff;
    color: var(--violet-600);
}

.plan-button.outline {
    background: #fff;
    border-color: rgba(79, 70, 229, 0.25);
    color: var(--violet-600);
}

@media (max-width: 1024px) {
    .pricing-heading-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .pricing-controls {
        justify-content: flex-start;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .pricing-page-shell {
        padding-left: 8px;
        padding-right: 8px;
    }

    .pricing-hero {
        padding-left: 20px;
        padding-right: 20px;
    }

    .pricing-panel {
        margin-top: 90px;
    }

    .billing-toggle {
        width: 100%;
        justify-content: space-between;
    }

    .billing-btn {
        flex: 1;
        justify-content: center;
    }
}
