:root {
    --bg: #050d1f;
    --text: #eaf5ff;
    --muted: #a5bdd9;
    --line: rgba(105, 145, 184, 0.2);
    --cyan: #59f7e4;
    --cyan-dark: #2bdac4;
    --grad-cyan: linear-gradient(90deg, #87ffae 0%, #59f7e4 100%);
    --bg-soft: #0b1b3d;
    --card: #07132b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    background: radial-gradient(circle at 10% 10%, #0d1e3d 0%, #040914 100%);
    background-attachment: fixed;
    color: var(--text);
    overflow-x: hidden;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 18px 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1100;
}

.logo {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.logo-mark img {
    width: 68px;
    height: 68px;
    object-fit: contain;
    border-radius: 6px;
    display: block;
}

.nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 0.98rem;
}

.nav a {
    text-decoration: none;
    color: var(--muted);
    transition: color 0.25s ease;
}

.nav a:hover {
    color: var(--text);
}

.nav-login {
    background: linear-gradient(120deg, var(--cyan), #86ffe9);
    color: #071224 !important;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(89, 247, 228, 0.2);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    width: 42px;
    height: 42px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    background: var(--text);
    margin: 7px 0;
}

/* Main Content */
.plan-page {
    width: min(1180px, 92%);
    margin: 26px auto 50px;
    padding-top: 120px;
}

.intro {
    text-align: center;
    margin-bottom: 32px;
}

.intro h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    color: var(--cyan);
    text-shadow: 0 0 20px rgba(89, 247, 228, 0.2);
}

.intro p {
    margin-top: 8px;
    color: var(--muted);
}

.service-section {
    margin-top: 40px;
}

.service-section h2 {
    margin-bottom: 16px;
    color: var(--cyan);
    font-size: clamp(1.2rem, 3vw, 1.6rem);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(280px, 1fr));
    gap: 16px;
}

.service-card {
    background: linear-gradient(180deg, #081630 0%, #071126 100%);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.25s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

.service-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text);
}

.service-card p {
    color: var(--muted);
    line-height: 1.5;
    font-size: 0.94rem;
    min-height: 50px;
    margin-bottom: 12px;
}

.service-card strong {
    display: block;
    margin-bottom: 16px;
    color: var(--cyan);
    font-size: 1.1rem;
}

.add-btn {
    width: 100%;
    border: none;
    border-radius: 8px;
    min-height: 44px;
    background: var(--cyan);
    color: #072038;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(89, 247, 228, 0.2);
}

.add-btn:hover {
    background: #73ffe1;
}

.add-btn.active {
    background: #2bdac4;
}

/* ═══ COMBO STYLE PAYMENT BOX ═══ */
.summary-wrap {
    margin-top: 60px;
}

.summary-card.combo-style {
    background: rgba(8, 20, 44, 0.6);
    border: 1px solid rgba(89, 247, 228, 0.2);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    gap: 40px;
    align-items: flex-start;
    backdrop-filter: blur(16px);
}

.sum-left {
    flex: 1.2;
}

.sum-left h2 {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 24px;
}

.intensity-wrap {
    margin-bottom: 24px;
}

.intensity-wrap label {
    display: block;
    margin-bottom: 12px;
    color: var(--text);
    font-weight: 700;
}

#scaleRange {
    width: 100%;
    accent-color: var(--cyan);
    height: 6px;
    background: var(--line);
    border-radius: 5px;
}

.intensity-hint {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 8px;
}

.duration-wrap {
    margin-bottom: 24px;
}

.duration-title {
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 0.95rem;
}

.duration-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.duration-option {
    position: relative;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    text-align: center;
    transition: all 0.25s ease;
}

.duration-option input {
    position: absolute;
    opacity: 0;
}

.duration-option b {
    display: block;
    color: var(--text);
    font-weight: 700;
}

.duration-option small {
    display: block;
    color: var(--muted);
    font-size: 0.75rem;
    margin-top: 4px;
}

.duration-option.active {
    border-color: var(--cyan);
    background: rgba(89, 247, 228, 0.1);
}

.selection-preview h3 {
    font-size: 1.1rem;
    color: var(--cyan);
    margin-bottom: 14px;
}

.selected-list {
    list-style: none;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 10px;
}

.selected-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.selected-list li strong {
    color: var(--cyan);
}

.sum-right {
    flex: 1;
    background: rgba(4, 10, 30, 0.4);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--line);
}

.totals p {
    display: flex;
    justify-content: space-between;
    margin: 12px 0;
    color: var(--muted);
}

.totals .grand {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
}

.totals strong {
    color: var(--cyan);
}

.summary-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.pay-btn {
    display: block;
    text-align: center;
    text-decoration: none;
    background: linear-gradient(120deg, var(--cyan), #2bdac4);
    color: #04122d;
    font-weight: 800;
    font-size: 1.1rem;
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(89, 247, 228, 0.2);
    transition: transform 0.2s;
}

.pay-btn:hover {
    transform: translateY(-3px);
}

.change-btn {
    background: transparent;
    border: 1px solid var(--cyan);
    color: var(--cyan);
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.change-btn:hover {
    background: rgba(89, 247, 228, 0.1);
    color: #fff;
    border-color: var(--cyan);
}

@media (max-width: 640px) {
    .summary-card.combo-style {
        flex-direction: column;
        padding: 20px;
    }

    .sum-left,
    .sum-right {
        width: 100%;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .service-card {
        padding: 12px 10px;
    }

    .service-card h3 {
        font-size: 0.9rem;
        margin-bottom: 4px;
    }

    .service-card p {
        font-size: 0.72rem;
        min-height: 40px;
        margin-bottom: 8px;
        line-height: 1.3;
    }

    .service-card strong {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }

    .add-btn {
        min-height: 34px;
        font-size: 0.8rem;
    }

    .duration-options {
        grid-template-columns: 1fr;
    }
}

/* ── SECTION LABELS (Monthly / One-Time dividers) ── */
.section-label {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
    padding: 18px 22px;
    border-radius: 12px;
    background: rgba(8, 20, 44, 0.5);
    border: 1px solid var(--line);
}

.section-label p {
    color: var(--muted);
    font-size: 0.88rem;
    margin: 0;
}

.label-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 0.82rem;
    white-space: nowrap;
}

.monthly-tag {
    background: rgba(89, 247, 228, 0.12);
    border: 1px solid var(--cyan);
    color: var(--cyan);
}

.onetime-tag {
    background: rgba(255, 184, 0, 0.1);
    border: 1px solid #ffb800;
    color: #ffb800;
}

/* ── ONE-TIME CARD STYLES ── */
.onetime-card {
    border-color: rgba(255, 184, 0, 0.2) !important;
    position: relative;
}

.onetime-card:hover {
    border-color: rgba(255, 184, 0, 0.5) !important;
}

.onetime-badge {
    display: inline-block;
    background: rgba(255, 184, 0, 0.12);
    border: 1px solid #ffb800;
    color: #ffb800;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}