:root {
    --primary:      #007BFF;
    --primary-glow: rgba(0,123,255,0.5);
    --secondary:    #0D1117;
    --bg:           #010409;
    --card-bg:      #161B22;
    --border:       #30363d;
    --text:         #F0F6FC;
    --accent:       #00D4FF;
    --gold:         #FFD166;
    --gold-glow:    rgba(255,209,102,0.55);
    --gold-dark:    #CC9F2E;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ─── HEADER ─── */
.page-header {
    text-align: center;
    padding: 5rem 2rem 4.5rem;
    background: var(--secondary);
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 55% at 50% 0%, rgba(0,123,255,0.18) 0%, transparent 70%);
    pointer-events: none;
}
.page-header .logo { margin-bottom: 2rem; }
.page-header .logo img { width: clamp(80px, 12vw, 140px); }

.header-badge {
    display: inline-block;
    background: rgba(0,123,255,0.12);
    border: 1px solid rgba(0,123,255,0.35);
    color: var(--accent);
    font-family: 'Syne', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.25rem;
}

.page-header h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 30%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.page-header p.subtitle {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: rgba(240,246,252,0.6);
    max-width: 530px;
    margin: 0 auto 2rem;
    font-weight: 300;
}

.trust-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: rgba(240,246,252,0.55);
}

.trust-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
    display: inline-block;
}

/* ─── URGENCY STRIP ─── */
.urgency-banner {
    background: linear-gradient(90deg, rgba(0,123,255,0.14), rgba(0,212,255,0.1), rgba(0,123,255,0.14));
    border-top: 1px solid rgba(0,212,255,0.18);
    border-bottom: 1px solid rgba(0,212,255,0.18);
    padding: 0.75rem 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.urgency-banner svg { width: 16px; height: 16px; flex-shrink: 0; }
.urgency-banner span { color: var(--gold); font-weight: 700; }

/* ─── MAIN ─── */
main {
    max-width: 1300px;
    margin: 0 auto;
    padding: 3.5rem 2rem 5rem;
}

.section-label {
    text-align: center;
    font-family: 'Syne', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.6rem;
}

.section-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.75rem;
}

.section-sub {
    text-align: center;
    color: rgba(240,246,252,0.5);
    font-size: 0.95rem;
    margin-bottom: 3rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* ─── PACKAGES GRID ─── */
.packages-grid {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    /* removed align-items:stretch — it was forcing equal heights and clipping content */
    align-items: flex-start;
}

/* ─── PACKAGE CARD (standard) ─── */
.pkg-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    /* overflow:hidden removed from base — was clipping price & button on small screens */
    overflow: visible;
    display: flex;
    flex-direction: column;
    flex: 1 1 280px;
    max-width: 360px;
    box-shadow: 0 6px 30px rgba(0,0,0,0.35);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    position: relative;
    /* animation with fill-mode:both ensures card stays visible after animating in */
    opacity: 0;
    transform: translateY(28px);
    animation: cardReveal 0.55s ease forwards;
    animation-fill-mode: both;
}

/* clip only the inner carousel correctly via its own wrapper */
.carousel-wrap {
    border-radius: 0;
    overflow: hidden;
}

/* clip card corners without hiding children below fold */
.pkg-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    pointer-events: none;
    z-index: 0;
}

.pkg-card:nth-child(1) { animation-delay: 0.08s; }
.pkg-card:nth-child(2) { animation-delay: 0.18s; }
.pkg-card:nth-child(3) { animation-delay: 0.28s; }

.pkg-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 48px rgba(0,123,255,0.22);
    border-color: rgba(0,123,255,0.45);
}

/* Recommended badge */
.badge-rec {
    position: absolute;
    top: 14px; right: 14px;
    background: var(--primary);
    color: #fff;
    font-family: 'Syne', sans-serif;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.badge-rec svg { width: 12px; height: 12px; }

/* ─── CARD TOP ─── */
.card-top {
    padding: 1.6rem 1.6rem 0;
}

.pkg-name-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.25rem;
}

.pkg-icon {
    width: 34px; height: 34px;
    border-radius: 8px;
    background: rgba(0,123,255,0.12);
    border: 1px solid rgba(0,123,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
}
.pkg-icon svg { width: 17px; height: 17px; }

.pkg-name {
    font-family: 'Syne', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
}

.pkg-tagline {
    font-size: 0.82rem;
    color: rgba(240,246,252,0.5);
    margin-bottom: 1.2rem;
    font-weight: 300;
    padding-left: 0.1rem;
}

/* ─── CAROUSEL ─── */
.carousel-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #0d1117;
}

.carousel-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    /* use padding-top trick instead of aspect-ratio for broader browser support */
    position: relative;
    padding-top: 56.25%; /* 16:9 */
    background: linear-gradient(135deg, #0d1117 0%, #1a2030 100%);
    overflow: hidden;
    flex-shrink: 0;
}

.carousel-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.carousel-slide img:not([src]),
.carousel-slide img[src=""] { opacity: 0; }

.slide-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: rgba(240,246,252,0.18);
    font-size: 0.78rem;
    letter-spacing: 0.05em;
}
.slide-placeholder svg { width: 32px; height: 32px; opacity: 0.25; }

/* Carousel nav buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin-top: -14px;
    background: rgba(1,4,9,0.6);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    width: 30px; height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.25s, border-color 0.25s;
    backdrop-filter: blur(4px);
}
.carousel-btn svg { width: 16px; height: 16px; }
.carousel-btn:hover { background: var(--primary); border-color: var(--primary); }
.carousel-btn.prev { left: 8px; }
.carousel-btn.next { right: 8px; }

/* Dots overlaid at bottom of the image */
.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 0; right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    z-index: 10;
    pointer-events: none;
}

.cdot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    pointer-events: all;
    transition: background 0.3s, width 0.3s;
    flex-shrink: 0;
}
.cdot.active {
    background: #fff;
    width: 18px;
    border-radius: 3px;
}

/* ─── CARD BODY ─── */
.card-body {
    padding: 1.4rem 1.6rem 0.5rem;
    display: flex;
    flex-direction: column;
}

.includes-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(240,246,252,0.35);
    margin-bottom: 0.75rem;
}

.includes-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.includes-list li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.9rem;
    color: rgba(240,246,252,0.82);
}

.includes-list li::before {
    content: '';
    width: 18px; height: 18px;
    min-width: 18px;
    border-radius: 50%;
    background: rgba(0,123,255,0.12);
    border: 1.5px solid rgba(0,123,255,0.45);
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%23007BFF' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px;
}

/* ─── CARD FOOTER (price row) ─── */
.card-foot {
    padding: 1.2rem 1.6rem 0.8rem;
    border-top: 1px solid var(--border);
    margin-top: 1rem;
    /* ensure it's always visible — never flex-shrink away */
    flex-shrink: 0;
}

.pkg-price {
    font-family: 'Syne', sans-serif;
    font-size: 1.55rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
}

.pkg-price small {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 400;
    color: rgba(240,246,252,0.38);
}

/* ─── CTA BUTTON WRAPPER ─── */
.card-cta-wrap {
    padding: 0 1.6rem 1.6rem;
    flex-shrink: 0;
}

.cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    padding: 0.75rem 1.3rem;
    border-radius: 10px;
    font-family: 'Syne', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}
.cta-btn svg { width: 16px; height: 16px; }
.cta-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

/* ─── PREMIUM DIVIDER ─── */
.premium-divider {
    text-align: center;
    margin: 2.5rem 0 1.75rem;
    position: relative;
}
.premium-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,209,102,0.3), transparent);
}
.premium-divider span {
    position: relative;
    background: var(--bg);
    padding: 0 1.2rem;
    font-family: 'Syne', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
}

/* ─── PREMIUM ROW ─── */
.premium-row {
    display: flex;
    justify-content: center;
}

/* ─── PREMIUM CARD ─── */
.pkg-card.premium {
    max-width: 820px;
    width: 100%;
    flex-direction: row;
    border-color: rgba(255,209,102,0.3);
    background: linear-gradient(135deg, #1a1608 0%, #161208 40%, #1a1a10 100%);
    box-shadow: 0 0 0 1px rgba(255,209,102,0.15), 0 8px 40px rgba(255,209,102,0.1);
    animation: cardReveal 0.55s ease 0.38s both, goldPulse 3.5s ease-in-out 1.2s infinite;
    overflow: hidden; /* premium needs this to clip the image column at rounded corners */
}
.pkg-card.premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 0 1px rgba(255,209,102,0.55), 0 20px 60px rgba(255,209,102,0.28), 0 0 80px rgba(255,209,102,0.1);
    border-color: rgba(255,209,102,0.6);
}

.premium .card-img-col {
    flex: 0 0 42%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #12100a, #1e1a0e);
    /* min-height ensures image column never collapses */
    min-height: 280px;
}
.premium .card-img-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.premium .card-img-col img:not([src]),
.premium .card-img-col img[src=""] { opacity: 0; }

.premium-placeholder {
    color: rgba(255,209,102,0.15) !important;
    height: 100%;
}
.premium-placeholder svg {
    color: rgba(255,209,102,0.2) !important;
    opacity: 1 !important;
    width: 40px !important;
    height: 40px !important;
}

.premium .card-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    /* ensure right column never overflows or collapses */
    min-width: 0;
    overflow: visible;
}

.premium .pkg-name {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--gold) 0%, #fff 55%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.premium-icon {
    background: rgba(255,209,102,0.1) !important;
    border-color: rgba(255,209,102,0.3) !important;
    color: var(--gold) !important;
}

.premium-tagline {
    color: rgba(255,209,102,0.4) !important;
}

.premium .includes-label { color: rgba(255,209,102,0.35) !important; }

.premium .includes-list li::before {
    background-color: rgba(255,209,102,0.08);
    border-color: rgba(255,209,102,0.4);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%23FFD166' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.premium .badge-rec {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #0D1117;
}

.premium-foot {
    border-top-color: rgba(255,209,102,0.18) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-top: auto !important;
}

.premium-price {
    background: linear-gradient(135deg, var(--gold), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.85rem !important;
}

.premium-price small {
    color: rgba(255,209,102,0.38) !important;
    -webkit-text-fill-color: rgba(255,209,102,0.38) !important;
}

.premium .card-cta-wrap {
    padding: 0.8rem 0 0 !important;
}

.premium-cta {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important;
    color: #0D1117 !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 20px rgba(255,209,102,0.3);
}
.premium-cta:hover {
    background: linear-gradient(135deg, #ffe08a, var(--gold)) !important;
    box-shadow: 0 8px 32px rgba(255,209,102,0.55) !important;
    transform: translateY(-2px);
}

/* ─── ANIMATIONS ─── */
@keyframes cardReveal {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes goldPulse {
    0%, 100% {
        box-shadow: 0 0 0 1px rgba(255,209,102,0.15), 0 8px 40px rgba(255,209,102,0.1);
    }
    50% {
        box-shadow: 0 0 0 1px rgba(255,209,102,0.4), 0 12px 55px rgba(255,209,102,0.22), 0 0 60px rgba(255,209,102,0.07);
    }
}


/* ─── FOOTER ─── */
footer {
    background-color: var(--secondary);
    padding: 4rem 2rem 1rem;
    margin-top: 2rem;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border);
    max-width: 1200px;
    margin: 0 auto;
}
.footer-main { flex-basis: 40%; }
.footer-main h2 {
    font-family: 'Syne', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}
.cta-button-footer {
    background: var(--primary);
    color: #fff;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    transition: background 0.3s, box-shadow 0.3s;
    display: inline-block;
}
.cta-button-footer:hover {
    background: #0056b3;
    box-shadow: 0 6px 20px var(--primary-glow);
}
.footer-links { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer-col h4 {
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a {
    color: rgba(240,246,252,0.65);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}
.footer-col ul li a:hover { color: var(--primary); }
.footer-bottom {
    padding-top: 1rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(240,246,252,0.35);
    max-width: 1200px;
    margin: 0 auto;
}

.card-img-col .portrait img{
    display: none;
}

/* ─── RESPONSIVE ─── */

/* Tablet landscape: 2 columns */
@media (max-width: 1024px) {
    .packages-grid { gap: 1.25rem; }
    .pkg-card { flex: 1 1 260px; max-width: 340px; }
}

/* Tablet portrait: stack to single column */
@media (max-width: 900px) {
    .packages-grid {
        flex-direction: column;
        align-items: center;
    }
    .pkg-card {
        max-width: 520px;
        width: 100%;
    }

    /* Premium flips to vertical */
    .pkg-card.premium {
        flex-direction: column;
        max-width: 520px;
    }
    .premium .card-img-col {
        flex: none;
        width: 100%;
        height: 220px;
        min-height: 220px;
    }
    /* Reset right column padding for vertical layout */
    .premium .card-right {
        padding: 1.6rem;
    }
    .premium-foot {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .footer-content { flex-direction: column; align-items: center; text-align: center; }
    .footer-main { flex-basis: 100%; }
}

/* Mobile: full width, tighter spacing */
@media (max-width: 580px) {
    main { padding: 2rem 1rem 3.5rem; }
    .page-header { padding: 3rem 1.25rem 2.5rem; }
    .packages-grid { gap: 1.25rem; }

    .pkg-card {
        max-width: 100%;
        width: 100%;
    }
    .pkg-card.premium {
        max-width: 100%;
        width: 100%;
    }
    .premium .card-img-col {
        height: 200px;
        min-height: 200px;
    }
    .premium .card-right {
        padding: 1.25rem;
    }

    /* Make carousel image a bit shorter on small phones */
    .carousel-slide {
        padding-top: 60%;
    }

    .card-top { padding: 1.25rem 1.25rem 0; }
    .card-body { padding: 1.1rem 1.25rem 0.4rem; }
    .card-foot { padding: 1rem 1.25rem 0.7rem; }
    .card-cta-wrap { padding: 0 1.25rem 1.25rem; }

    .pkg-name { font-size: 1.1rem; }
    .pkg-price { font-size: 1.35rem; }

    .footer-links { flex-direction: column; align-items: center; text-align: center; gap: 1.5rem; }
    .footer-main h2 { font-size: 1.4rem; }
    .trust-row { gap: 0.75rem; }
}

/* Small phones */
@media (max-width: 400px) {
    .page-header h1 { font-size: 1.75rem; }
    .pkg-name { font-size: 1rem; }
    .pkg-price { font-size: 1.25rem; }
    .cta-btn { font-size: 0.85rem; padding: 0.65rem 1rem; }
    .premium .pkg-name { font-size: 1.15rem; }
    .premium-price { font-size: 1.55rem !important; }
    .premium .card-img-col { height: 170px; min-height: 170px; }
}