/* ========================================
   GAG PACKAGE — Dark & Bold Theme v4.0
   Mobile-first responsive + design upgrade
   ======================================== */

/* --- Variables --- */
:root {
    --bg-black: #0a0a0f;
    --bg-dark: #121218;
    --bg-card: #1a1a24;
    --bg-card-hover: #222233;
    --neon-green: #39ff14;
    --neon-green-dim: #22cc10;
    --neon-purple: #a855f7;
    --neon-purple-dim: #7c3aed;
    --neon-orange: #ff6b2b;
    --neon-pink: #ff2d78;
    --gold: #fbbf24;
    --text-white: #f0f0f5;
    --text-grey: #9ca3af;
    --text-muted: #6b7280;
    --border-dark: #2a2a3a;
    --border-glow: rgba(57, 255, 20, 0.15);
    --warning-red: #ef4444;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', 'Nunito', sans-serif;
}

body {
    overflow-x: hidden;
    line-height: 1.6;
    background: var(--bg-black);
    color: var(--text-white);
    font-size: 16px;
}

img {
    max-width: 100%;
    height: auto;
}

.brand-font {
    font-family: 'Fredoka One', cursive;
    letter-spacing: 0.5px;
}

/* --- Category Tabs --- */

/* --- Product Image Gallery --- */
.product-gallery {
    border-radius: var(--radius-md);
    overflow: hidden;
}
.gallery-main {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--bg-dark);
    margin-bottom: 8px;
    position: relative;
}
.gallery-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}
.gallery-track .gallery-slide {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
    -webkit-user-drag: none;
    user-select: none;
}
.gallery-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}
.gallery-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}
.gallery-dots .dot.active {
    background: var(--neon-green);
    box-shadow: 0 0 6px var(--neon-green);
    transform: scale(1.25);
}
.gallery-thumbs {
    display: flex;
    gap: 6px;
    justify-content: center;
}
.gallery-thumbs .thumb {
    width: 48px;
    height: 36px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.2s ease;
}
.gallery-thumbs .thumb:hover {
    opacity: 0.8;
}
.gallery-thumbs .thumb.active {
    opacity: 1;
    border-color: var(--neon-green);
}
/* Hide thumbs on mobile — dots are cleaner */
@media (max-width: 768px) {
    .gallery-thumbs { display: none; }
    .gallery-dots .dot { width: 7px; height: 7px; }
}

/* --- Animations --- */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes slideText {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes tickerSlide {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes neonPulse {
    0%, 100% { text-shadow: 0 0 10px rgba(57, 255, 20, 0.5), 0 0 40px rgba(57, 255, 20, 0.2); }
    50% { text-shadow: 0 0 20px rgba(57, 255, 20, 0.8), 0 0 60px rgba(57, 255, 20, 0.4); }
}

@keyframes glowBorder {
    0%, 100% { box-shadow: 0 0 15px rgba(57, 255, 20, 0.1); }
    50% { box-shadow: 0 0 25px rgba(57, 255, 20, 0.25); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.wiggle { animation: wiggle 0.5s ease-in-out infinite; }
.face-emoji { font-size: 5rem; animation: bounce 2s ease-in-out infinite; }
.fade-in-up { animation: fadeInUp 0.6s ease-out forwards; }

/* --- Top Announcement Bar --- */
.top-bar {
    width: 100%;
    background: var(--neon-green);
    color: var(--bg-black);
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 1000;
    padding: 8px 0;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.slider-text {
    display: inline-block;
    animation: slideText 25s linear infinite;
}

.slider-text span {
    margin: 0 32px;
}

/* --- Live Activity Ticker --- */
.live-ticker {
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-dark);
    padding: 8px 16px;
    text-align: center;
    font-weight: 700;
    font-size: 12px;
    color: var(--text-grey);
    overflow: hidden;
    position: relative;
    min-height: 36px;
}

.live-ticker .ticker-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--neon-green);
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(57, 255, 20, 0.6);
}

.ticker-message {
    display: inline-block;
    animation: tickerSlide 0.4s ease-out;
    color: var(--text-white);
}

/* --- Navigation --- */
/* PR-NAV: only the main nav row sticks to the viewport top. The promo
   top-bar + live-ticker scroll away naturally. Implemented via a
   negative-top sticky on the whole <nav class="nav-main">: when stuck,
   the element shifts up by --nav-stuck-offset, hiding promo+ticker
   above viewport while the main row catches at top:0.
   --nav-stuck-offset values were MEASURED via preview_inspect:
     Variant A (promo + live-ticker + main row) = 48 + 36.19 ≈ 84px
     Variant B (promo + main row only)         = 48px
   --sticky-nav-height = main row height (88px), shared with the
   card-builder preview panel so its sticky top can never drift. */
:root {
    --nav-stuck-offset: 84px;       /* Variant A default */
    --sticky-nav-height: 88px;      /* main nav row height when stuck */
}
body.header-no-ticker {
    --nav-stuck-offset: 48px;       /* Variant B (contact.html, packages.html) */
}

/* Mobile: the live-ticker text wraps to two lines on narrow viewports, so
   the promo+ticker stack grows from ~84px to ~122px (measured at 375px:
   top-bar 48 + ticker 74.4 = 122). Bump --nav-stuck-offset here so the
   sticky main row still catches at viewport-top:0. Main row itself also
   shrinks (88 → 76) — update --sticky-nav-height for symmetry, though
   the card-builder preview panel is desktop-only sticky so this is
   mostly a documentation token on mobile. */
@media (max-width: 768px) {
    :root {
        --nav-stuck-offset: 122px;
        --sticky-nav-height: 76px;
    }
    body.header-no-ticker {
        --nav-stuck-offset: 48px;   /* unchanged: no ticker to grow */
        --sticky-nav-height: 76px;
    }
}

.nav-main {
    background: rgba(10, 10, 15, 0.95);
    border-bottom: 1px solid var(--border-dark);
    position: sticky;
    top: calc(-1 * var(--nav-stuck-offset));
    z-index: 50;
    backdrop-filter: blur(12px);
}

.nav-main a {
    color: var(--text-grey);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-main a:hover {
    color: var(--neon-green);
}

/* --- Hero --- */
.hero-gradient {
    background: var(--bg-black);
    position: relative;
    overflow: hidden;
    padding: 4rem 1rem;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -10%;
    width: 70vmax;
    height: 70vmax;
    background: radial-gradient(circle, rgba(57, 255, 20, 0.07) 0%, transparent 65%);
    pointer-events: none;
}

.hero-gradient::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 55vmax;
    height: 55vmax;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.06) 0%, transparent 65%);
    pointer-events: none;
}

.hero-title {
    animation: neonPulse 3s ease-in-out infinite;
    line-height: 1.1;
}

/* --- Glass Card Base --- */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(57, 255, 20, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(57, 255, 20, 0.05);
    transform: translateY(-4px);
}

/* --- Buttons — minimum 44px touch targets --- */
.btn-primary {
    background: var(--neon-green);
    color: var(--bg-black);
    border: none;
    padding: 0.9rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
    min-height: 44px;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    pointer-events: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(57, 255, 20, 0.45), 0 8px 24px rgba(0, 0, 0, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.4;
    transform: none;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-white);
    border: 1px solid var(--border-dark);
    padding: 0.9rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.25s ease;
    min-height: 44px;
    white-space: nowrap;
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--text-muted);
    transform: translateY(-2px);
}

.btn-ultimate {
    background: linear-gradient(135deg, var(--neon-purple) 0%, var(--neon-purple-dim) 100%);
    color: white;
    border: none;
    padding: 0.9rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.25s ease;
    min-height: 44px;
    white-space: nowrap;
}

.btn-ultimate:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.45), 0 8px 24px rgba(0, 0, 0, 0.3);
}

.btn-nuclear {
    background: linear-gradient(135deg, var(--neon-orange) 0%, #e05515 100%);
    color: white;
    border: none;
    padding: 0.9rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.25s ease;
    min-height: 44px;
    white-space: nowrap;
}

.btn-nuclear:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 107, 43, 0.45), 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Hero CTA button — larger, more impactful */
.btn-hero {
    font-size: 1.1rem !important;
    padding: 1.1rem 2rem !important;
    min-height: 56px !important;
    border-radius: 14px !important;
    box-shadow: 0 0 40px rgba(57, 255, 20, 0.25), 0 8px 32px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.5px;
}

/* --- Price Highlights --- */
.price-highlight {
    color: var(--neon-green);
    text-shadow: 0 0 20px rgba(57, 255, 20, 0.3);
}

.price-highlight-ultimate {
    color: var(--neon-purple);
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

.price-highlight-nuclear {
    color: var(--neon-orange);
    text-shadow: 0 0 20px rgba(255, 107, 43, 0.3);
}

.old-price, .old-price1, .old-price2 {
    text-decoration: line-through;
    opacity: 0.4;
    color: var(--text-muted);
}

/* --- Package Cards --- */
.package-card {
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.package-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, transparent 60%);
    pointer-events: none;
}

.package-card:hover::before { opacity: 1; }

.package-card:hover {
    transform: translateY(-8px);
    border-color: rgba(57, 255, 20, 0.35);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 24px rgba(57, 255, 20, 0.08);
}

.package-card.ultimate:hover {
    border-color: rgba(168, 85, 247, 0.45);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 24px rgba(168, 85, 247, 0.1);
}

.package-card.nuclear:hover {
    border-color: rgba(255, 107, 43, 0.45);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 24px rgba(255, 107, 43, 0.1);
}

.package-card.selected {
    border-color: var(--neon-green);
    animation: glowBorder 2s ease-in-out infinite;
}

.package-badge {
    position: absolute;
    top: 0;
    right: 0;
    padding: 6px 16px;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0 var(--radius-lg) 0 var(--radius-md);
}

.badge-popular { background: var(--neon-purple); color: white; }
.badge-new { background: var(--neon-orange); color: white; }

/* --- How It Works Steps --- */
.how-step {
    text-align: center;
    position: relative;
}

.how-step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(57, 255, 20, 0.08);
    border: 2px solid rgba(57, 255, 20, 0.3);
    color: var(--neon-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    margin: 0 auto 1rem;
}

/* --- Reaction Cards --- */
.reaction-card {
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.reaction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.08);
}

/* --- Split Screen --- */
.split-screen {
    background: var(--bg-dark);
}

/* --- Stink Guarantee Badge --- */
.stink-guarantee {
    background: linear-gradient(135deg, rgba(57, 255, 20, 0.05) 0%, rgba(57, 255, 20, 0.02) 100%);
    border: 1px solid var(--neon-green);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    max-width: 480px;
    width: 100%;
    margin: 2rem auto;
    box-shadow: 0 0 40px rgba(57, 255, 20, 0.07);
}

.stink-guarantee h3 {
    font-family: 'Fredoka One', cursive;
    color: var(--neon-green);
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.stink-guarantee p {
    color: var(--text-grey);
    font-size: 0.95rem;
}

/* --- Occasion Selector — Horizontal Scrollable Pills --- */
/* PR-FE1-FIX-4: was overflow-x: auto with scrollbar hidden — caused the
   "Christmas" button to appear cut off on /create.html with no visible
   affordance. Now wraps onto multiple rows so every button stays visible
   at every viewport width. Combined with /create.html's wider container
   (max-w-4xl), all 6 buttons fit on one row at desktop and wrap cleanly
   to 2-3 rows on mobile. */
.occasion-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 4px;
    margin-bottom: 1.5rem;
}

.occasion-btn {
    flex-shrink: 0;
    padding: 10px 18px;
    border: 1.5px solid var(--border-dark);
    border-radius: 50px;
    background: var(--bg-card);
    color: var(--text-grey);
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 700;
    font-size: 0.88rem;
    min-height: 44px;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    scroll-snap-align: start;
}

.occasion-btn:hover {
    border-color: var(--neon-green);
    color: var(--text-white);
    background: rgba(57, 255, 20, 0.06);
    transform: scale(1.03);
}

.occasion-btn.selected {
    border-color: var(--neon-green);
    background: rgba(57, 255, 20, 0.12);
    color: var(--neon-green);
    box-shadow: 0 0 14px rgba(57, 255, 20, 0.2);
}

.occasion-btn .occasion-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    line-height: 1;
    flex-shrink: 0;
}

/* --- Country Selector --- */
.country-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 1rem;
}

.country-tab {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text-grey);
    cursor: pointer;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    min-height: 44px;
}

.country-tab.active {
    border-color: var(--neon-green);
    background: rgba(57, 255, 20, 0.08);
    color: var(--neon-green);
}

/* --- Form Styles --- */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-grey);
    font-size: 0.88rem;
    letter-spacing: 0.2px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    background: var(--bg-card);
    color: var(--text-white);
    min-height: 44px;
    -webkit-appearance: none;
    appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--neon-green);
    box-shadow: 0 0 0 3px rgba(57, 255, 20, 0.08);
}

.form-group input.error,
.form-group select.error {
    border-color: var(--warning-red);
}

.form-group select option {
    background: var(--bg-dark);
    color: var(--text-white);
}

.error-message {
    color: var(--warning-red);
    font-size: 0.82rem;
    margin-top: 0.4rem;
}

/* --- Upload Zone --- */
.upload-zone {
    border: 2px dashed var(--border-dark);
    transition: all 0.3s ease;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    cursor: pointer;
    background: var(--bg-card);
    padding: 2rem;
}

.upload-zone:hover {
    border-color: var(--neon-green);
    background: rgba(57, 255, 20, 0.03);
}

.upload-zone.dragover {
    border-color: var(--neon-orange);
    background: rgba(255, 107, 43, 0.05);
}

/* --- Step Indicator --- */
.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    gap: 0.5rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.step.active .step-number {
    background: var(--neon-green);
    color: var(--bg-black);
    border-color: var(--neon-green);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.35);
}

.step.active span { color: var(--neon-green); font-weight: 600; }

.step.completed .step-number {
    background: var(--neon-green-dim);
    color: var(--bg-black);
    border-color: var(--neon-green-dim);
}

/* Step connector line */
.step + .step::before {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: var(--border-dark);
    margin-right: 0.5rem;
}

/* --- Stripe Element --- */
.stripe-element {
    background: var(--bg-card);
    padding: 1rem;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.stripe-element:focus-within {
    border-color: var(--neon-green);
    box-shadow: 0 0 0 3px rgba(57, 255, 20, 0.08);
}

.stripe-element.StripeElement--invalid {
    border-color: var(--warning-red);
}

/* --- Order Summary --- */
.order-summary {
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    padding: 1.5rem;
    border-radius: 14px;
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

/* --- Package Selection in Form --- */
.package-selection-card {
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-card);
    color: var(--text-white);
}

.package-selection-card:hover {
    border-color: rgba(57, 255, 20, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.package-selection-card.selected {
    border-color: var(--neon-green);
    background: rgba(57, 255, 20, 0.05);
}

.package-selection-card.ultimate.selected {
    border-color: var(--neon-purple);
    background: rgba(168, 85, 247, 0.05);
}

.package-selection-card.nuclear.selected {
    border-color: var(--neon-orange);
    background: rgba(255, 107, 43, 0.05);
}

/* --- Modals --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    padding: 1rem;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-dark);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-xl);
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    color: var(--text-white);
    width: 100%;
}

.legal-modal-content {
    max-width: 800px;
    max-height: 80vh;
}

/* --- Email Capture Popup --- */
.email-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.email-popup-overlay.active {
    display: flex;
}

.email-popup {
    background: var(--bg-dark);
    border: 1px solid var(--neon-green);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    max-width: 440px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 0 60px rgba(57, 255, 20, 0.1), 0 25px 50px rgba(0,0,0,0.5);
}

.email-popup .close-popup {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.email-popup h2 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.6rem;
    color: var(--neon-green);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.email-popup .email-input-row {
    display: flex;
    gap: 8px;
    margin-top: 1.2rem;
}

.email-popup .email-input-row input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: var(--bg-card);
    color: var(--text-white);
    min-height: 44px;
}

.email-popup .email-input-row input::placeholder {
    color: var(--text-muted);
}

.email-popup .email-input-row input:focus {
    outline: none;
    border-color: var(--neon-green);
}

.email-popup .email-input-row button {
    padding: 12px 20px;
    border-radius: var(--radius-md);
    border: none;
    background: var(--neon-green);
    color: var(--bg-black);
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    min-height: 44px;
}

/* --- Notifications --- */
.notification {
    position: fixed;
    top: 16px;
    right: 16px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    z-index: 1001;
    transform: translateX(calc(100% + 24px));
    transition: transform 0.3s ease;
    max-width: calc(100vw - 32px);
    width: 360px;
    border: 1px solid transparent;
    font-size: 0.9rem;
}

.notification.show { transform: translateX(0); }
.notification.success { background: rgba(57, 255, 20, 0.15); border-color: var(--neon-green); color: var(--neon-green); }
.notification.error { background: rgba(239, 68, 68, 0.15); border-color: var(--warning-red); color: var(--warning-red); }
.notification.info { background: rgba(59, 130, 246, 0.15); border-color: #3b82f6; color: #60a5fa; }

/* --- Admin Notification --- */
#adminNotification {
    max-width: min(350px, calc(100vw - 40px));
}

/* --- Connection Status --- */
.connection-status {
    position: fixed;
    bottom: 16px;
    right: 16px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    color: var(--bg-black);
    font-size: 0.78rem;
    font-weight: 700;
    z-index: 1000;
    transition: all 0.3s ease;
}

.connection-status.online { background: var(--neon-green); }
.connection-status.offline { background: var(--warning-red); color: white; }

/* --- Payment Processing Overlay --- */
.payment-processing {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
}

.payment-processing.hidden { display: none; }

.payment-processing-content {
    background: var(--bg-dark);
    border: 1px solid var(--border-dark);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    text-align: center;
    max-width: 400px;
    width: 100%;
    color: var(--text-white);
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border-dark);
    border-top: 3px solid var(--neon-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

/* --- Testimonial Cards --- */
.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 12px;
    left: 20px;
    font-size: 4rem;
    color: rgba(57, 255, 20, 0.08);
    font-family: Georgia, serif;
    line-height: 1;
    pointer-events: none;
}

.testimonial-card:hover {
    border-color: rgba(57, 255, 20, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transform: translateY(-3px);
}

.testimonial-card .stars {
    color: var(--gold);
    margin-bottom: 12px;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.testimonial-card .quote {
    font-style: italic;
    color: var(--text-grey);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 14px;
}

.testimonial-card .author {
    font-weight: 700;
    color: var(--neon-green);
    font-size: 0.88rem;
}

/* --- Referral Banner --- */
.referral-banner {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.08), rgba(57, 255, 20, 0.04));
    border-top: 1px solid var(--border-dark);
    border-bottom: 1px solid var(--border-dark);
    color: white;
    padding: 3.5rem 1.5rem;
    text-align: center;
}

.referral-banner h2 {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    margin-bottom: 1rem;
    color: var(--text-white);
    line-height: 1.2;
}

/* --- Blog Cards --- */
.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(57, 255, 20, 0.15);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.blog-card .blog-body {
    padding: 1.75rem;
}

.blog-card h3, .blog-card h2 {
    color: var(--text-white);
}

.blog-card p {
    color: var(--text-grey);
}

/* --- Mobile Menu --- */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-grey);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
    background: var(--neon-green);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
    background: var(--neon-green);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(300px, 85vw);
    height: 100vh;
    background: var(--bg-black);
    border-left: 1px solid var(--border-dark);
    z-index: 1000;
    transition: right 0.3s ease;
    padding: 2rem 0;
    overflow-y: auto;
}

.mobile-menu.open { right: 0; }

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    margin-bottom: 1.5rem;
}

.mobile-menu-close {
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 10px;
    background: none;
    border: none;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    padding: 0.9rem 1.5rem;
    color: var(--text-grey);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.2s ease;
    font-size: 0.95rem;
    min-height: 52px;
}

.mobile-menu-item:hover {
    background: rgba(57, 255, 20, 0.05);
    color: var(--neon-green);
}

.mobile-menu-item i {
    margin-right: 12px;
    width: 18px;
    flex-shrink: 0;
}

/* --- Section Backgrounds --- */
.section-dark { background: var(--bg-black); }
.section-darker { background: var(--bg-dark); }

/* --- Section headings — fluid typography --- */
.section-title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    color: var(--text-white);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

/* --- Footer --- */
footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-dark);
    color: var(--text-grey);
}

footer a {
    color: var(--text-grey);
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--neon-green);
}

/* --- Utility --- */
.text-neon { color: var(--neon-green); }
.text-purple { color: var(--neon-purple); }
.text-orange { color: var(--neon-orange); }
.text-muted { color: var(--text-muted); }
.text-grey { color: var(--text-grey); }

/* ================================================
   RESPONSIVE MEDIA QUERIES
   ================================================ */

/* --- Small mobile (max 480px) --- */
@media (max-width: 480px) {
    .hero-gradient {
        padding: 2.5rem 1rem;
    }

    /* Hero title: prevent overflow */
    h1.brand-font.text-5xl,
    .hero-title {
        font-size: clamp(2rem, 10vw, 3rem) !important;
        word-break: break-word;
    }

    /* Hero subtitle */
    .hero-gradient p.text-xl {
        font-size: 1rem !important;
    }

    /* Hero CTA: full width on tiny screens */
    .hero-gradient .btn-primary {
        width: 100%;
        font-size: 1rem !important;
        padding: 1rem 1.25rem !important;
    }

    /* Stink guarantee */
    .stink-guarantee {
        padding: 1.25rem 1rem;
    }

    /* Icon hero */
    .icon-hero {
        width: 90px !important;
        height: 90px !important;
    }

    /* Package cards: comfortable padding */
    .package-card {
        padding: 1.5rem !important;
    }

    /* How it works: 2 cols */
    #how-it-works .grid.md\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Contact: stack */
    #contact .grid.md\:grid-cols-3 {
        grid-template-columns: 1fr;
    }

    /* Referral banner buttons: stack */
    .referral-banner .flex.gap-4 {
        flex-direction: column;
        align-items: center;
    }

    .referral-banner .flex.gap-4 a {
        width: 100%;
        max-width: 260px;
        justify-content: center;
    }

    /* Form grids: single column */
    .grid.md\:grid-cols-2 {
        grid-template-columns: 1fr !important;
    }

    /* Step indicator: tighter */
    .step span {
        display: none;
    }

    /* Footer grid: single column */
    footer .grid.md\:grid-cols-4 {
        grid-template-columns: 1fr;
    }

    /* Discount code row */
    #orderStep1 .flex.gap-2 {
        flex-direction: column;
    }

    #orderStep1 .flex.gap-2 button {
        width: 100%;
    }

    /* Payment back/pay buttons */
    #orderStep2 .flex.gap-4 {
        flex-direction: column;
    }

    #orderStep2 .flex.gap-4 button {
        width: 100%;
    }

    /* Nav brand font: smaller */
    .nav-main h1.brand-font {
        font-size: 1.5rem !important;
    }

    /* Testimonials: single column */
    .grid.md\:grid-cols-3 {
        grid-template-columns: 1fr;
    }
}

/* --- Mobile (max 768px) --- */
@media (max-width: 768px) {
    .face-emoji { font-size: 3.5rem; }

    .hero-gradient {
        padding: 3rem 1rem;
    }

    /* Fluid hero title */
    .hero-title {
        font-size: clamp(2.25rem, 9vw, 3.5rem) !important;
    }

    .desktop-nav { display: none; }
    .hamburger { display: flex; }

    .modal-content {
        max-height: 92vh;
        padding: 1.5rem;
    }

    .email-popup .email-input-row {
        flex-direction: column;
    }

    .email-popup .email-input-row button {
        width: 100%;
    }

    /* Notification: safe on mobile */
    .notification {
        width: calc(100vw - 32px);
        right: 16px;
        top: 12px;
    }

    /* Pricing: 2 col on mobile, then stacks at 480 */
    #products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* How-it-works: 2 col */
    #how-it-works .grid.md\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* Section padding */
    .py-16 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
    .py-20 { padding-top: 4.5rem; padding-bottom: 4.5rem; }

    /* Split screen prankster/victim circles */
    .split-screen .rounded-full {
        width: 100px !important;
        height: 100px !important;
    }

    .icon-xl {
        width: 56px !important;
        height: 56px !important;
    }

    /* Icon hero */
    .icon-hero {
        width: 110px !important;
        height: 110px !important;
    }

    /* Connection status: avoid overlap with chat widget */
    .connection-status {
        bottom: 80px;
        right: 12px;
    }

    /* Step indicator gap */
    .step-indicator {
        gap: 0.25rem;
    }

    .step {
        gap: 0.3rem;
    }

    /* Referral banner */
    .referral-banner {
        padding: 2.5rem 1rem;
    }

    /* Order summary padding */
    .order-summary {
        padding: 1.25rem;
    }

    /* Payment processing: full padding */
    .payment-processing-content {
        padding: 2rem 1.5rem;
    }
}

/* --- Tablet (max 1024px) --- */
@media (max-width: 1024px) and (min-width: 769px) {
    #products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .hero-title {
        font-size: clamp(3rem, 6vw, 5rem) !important;
    }
}

/* --- Large desktop (min 1280px) --- */
@media (min-width: 1280px) {
    #products-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* --- Print --- */
@media print {
    .mobile-menu, .mobile-menu-overlay, .hamburger,
    .notification, .connection-status, .live-ticker,
    .email-popup-overlay { display: none !important; }
}

/* ================================================
   FINAL OVERRIDES — must come last to win cascade
   ================================================ */

/* Pricing grid: always single column on small phones.
   This block intentionally comes after all other media queries
   so it wins over the 768px block that sets 2-col. */
@media (max-width: 480px) {
    #products-grid {
        grid-template-columns: 1fr !important;
    }

    /* More breathing room between sections on tiny screens */
    .py-16 { padding-top: 2.75rem !important; padding-bottom: 2.75rem !important; }
    .py-20 { padding-top: 3.5rem !important; padding-bottom: 3.5rem !important; }

    /* Wider section container padding */
    .max-w-7xl {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }

    /* Footer social icons sizing */
    .footer-social svg {
        width: 28px;
        height: 28px;
    }
}

/* ================================================
   CHARACTER ANIMATIONS — Reaction Gallery & Split Screen
   ================================================ */

/* --- Character keyframes --- */

/* The Shock: burst of trembling, then a rest */
@keyframes shock-tremble {
    0%, 50%, 100% { transform: translate(0, 0) rotate(0deg); }
    52% { transform: translate(-4px, -1px) rotate(-3deg); }
    54% { transform: translate(4px, 1px) rotate(3deg); }
    56% { transform: translate(-4px, 0) rotate(-2deg); }
    58% { transform: translate(4px, 0) rotate(2deg); }
    60% { transform: translate(-2px, 0) rotate(-1deg); }
    62% { transform: translate(2px, 0) rotate(1deg); }
    64% { transform: translate(0, 0); }
}

/* The Gag: slow nauseating sway */
@keyframes gag-nausea {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    20% { transform: translateY(-9px) rotate(-6deg); }
    40% { transform: translateY(5px) rotate(4deg); }
    60% { transform: translateY(-6px) rotate(-3deg); }
    80% { transform: translateY(2px) rotate(2deg); }
}

/* The Purge: forceful heaving cycle */
@keyframes purge-heave {
    0%, 100% { transform: translateY(0) scale(1); }
    18% { transform: translateY(-14px) scale(1.1); }
    32% { transform: translateY(7px) scale(0.93); }
    48% { transform: translateY(-8px) scale(1.05); }
    62% { transform: translateY(3px) scale(0.97); }
    75% { transform: translateY(-2px) scale(1.01); }
}

/* Pulsing glow — per character colour */
@keyframes glow-pulse-red {
    0%, 100% { filter: drop-shadow(0 0 18px rgba(239, 68, 68, 0.95)) drop-shadow(0 0 44px rgba(239, 68, 68, 0.55)); }
    50%       { filter: drop-shadow(0 0 36px rgba(239, 68, 68, 1))    drop-shadow(0 0 80px rgba(239, 68, 68, 0.9)); }
}

@keyframes glow-pulse-sickgreen {
    0%, 100% { filter: drop-shadow(0 0 18px rgba(132, 204, 22, 0.95)) drop-shadow(0 0 44px rgba(57, 255, 20, 0.55)); }
    50%       { filter: drop-shadow(0 0 36px rgba(163, 230, 53, 1))    drop-shadow(0 0 80px rgba(57, 255, 20, 0.9)); }
}

@keyframes glow-pulse-purple {
    0%, 100% { filter: drop-shadow(0 0 18px rgba(168, 85, 247, 0.95)) drop-shadow(0 0 44px rgba(168, 85, 247, 0.55)); }
    50%       { filter: drop-shadow(0 0 36px rgba(192, 132, 252, 1))   drop-shadow(0 0 80px rgba(168, 85, 247, 0.9)); }
}

/* Ambient orb that pulses behind each reaction card */
@keyframes orb-red {
    0%, 100% { opacity: 0.22; transform: translate(-50%, -50%) scale(1); }
    50%       { opacity: 0.48; transform: translate(-50%, -50%) scale(1.25); }
}
@keyframes orb-green {
    0%, 100% { opacity: 0.20; transform: translate(-50%, -50%) scale(1); }
    50%       { opacity: 0.44; transform: translate(-50%, -50%) scale(1.22); }
}
@keyframes orb-purple {
    0%, 100% { opacity: 0.20; transform: translate(-50%, -50%) scale(1); }
    50%       { opacity: 0.46; transform: translate(-50%, -50%) scale(1.23); }
}

/* The Prankster: smug confident sway */
@keyframes prankster-swagger {
    0%, 100% { transform: rotate(-6deg) scale(1); }
    50%       { transform: rotate(6deg) scale(1.07); }
}

/* The Victim: periodic fearful tremble */
@keyframes victim-fear {
    0%, 74%, 100% { transform: translate(0, 0) rotate(0deg); }
    76% { transform: translate(-4px, 0) rotate(-2deg); }
    78% { transform: translate(4px, 0) rotate(2deg); }
    80% { transform: translate(-3px, 0) rotate(-1.5deg); }
    82% { transform: translate(3px, 0) rotate(1.5deg); }
    84% { transform: translate(-2px, 0); }
    86% { transform: translate(2px, 0); }
    88% { transform: translate(0, 0); }
}

/* --- Reaction cards: ambient orbs via ::before --- */

.reaction-card { position: relative; }

.reaction-card:nth-child(1)::before,
.reaction-card:nth-child(2)::before,
.reaction-card:nth-child(3)::before {
    content: '';
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    pointer-events: none;
    z-index: 0;
}

.reaction-card:nth-child(1)::before {
    background: radial-gradient(circle, rgba(239, 68, 68, 1) 0%, transparent 70%);
    animation: orb-red 2.5s ease-in-out infinite;
}
.reaction-card:nth-child(2)::before {
    background: radial-gradient(circle, rgba(57, 255, 20, 1) 0%, transparent 70%);
    animation: orb-green 3s ease-in-out infinite;
}
.reaction-card:nth-child(3)::before {
    background: radial-gradient(circle, rgba(168, 85, 247, 1) 0%, transparent 70%);
    animation: orb-purple 2.8s ease-in-out infinite;
}

/* Lift card content above the orb */
.reaction-card > * { position: relative; z-index: 1; }

/* --- Icon animations (targets the SVG inside the icon wrapper div) --- */

.reaction-card:nth-child(1) > div:first-child {
    animation: shock-tremble 4s ease-in-out infinite, glow-pulse-red 2s ease-in-out infinite;
}
.reaction-card:nth-child(2) > div:first-child {
    animation: gag-nausea 3.5s ease-in-out infinite, glow-pulse-sickgreen 2.5s ease-in-out infinite;
}
.reaction-card:nth-child(3) > div:first-child {
    animation: purge-heave 2.8s ease-in-out infinite, glow-pulse-purple 2.2s ease-in-out infinite;
}

/* Hover: speed up & intensify */
.reaction-card:nth-child(1):hover > div:first-child {
    animation: shock-tremble 1.5s ease-in-out infinite, glow-pulse-red 0.9s ease-in-out infinite;
}
.reaction-card:nth-child(2):hover > div:first-child {
    animation: gag-nausea 1.8s ease-in-out infinite, glow-pulse-sickgreen 1.1s ease-in-out infinite;
}
.reaction-card:nth-child(3):hover > div:first-child {
    animation: purge-heave 1.4s ease-in-out infinite, glow-pulse-purple 0.9s ease-in-out infinite;
}

/* Reaction cards — persistent base glow at rest */
.reaction-card:nth-child(1) {
    border-color: rgba(239, 68, 68, 0.35) !important;
    box-shadow: 0 0 28px rgba(239, 68, 68, 0.22), inset 0 0 20px rgba(239, 68, 68, 0.06);
}
.reaction-card:nth-child(2) {
    border-color: rgba(57, 255, 20, 0.35) !important;
    box-shadow: 0 0 28px rgba(57, 255, 20, 0.22), inset 0 0 20px rgba(57, 255, 20, 0.06);
}
.reaction-card:nth-child(3) {
    border-color: rgba(168, 85, 247, 0.35) !important;
    box-shadow: 0 0 28px rgba(168, 85, 247, 0.22), inset 0 0 20px rgba(168, 85, 247, 0.06);
}

/* Reaction card hover — colour-matched border & outer glow */
.reaction-card:nth-child(1):hover {
    border-color: rgba(239, 68, 68, 0.75) !important;
    box-shadow: 0 14px 40px rgba(0,0,0,0.5), 0 0 60px rgba(239, 68, 68, 0.45), inset 0 0 30px rgba(239, 68, 68, 0.1) !important;
}
.reaction-card:nth-child(2):hover {
    border-color: rgba(57, 255, 20, 0.75) !important;
    box-shadow: 0 14px 40px rgba(0,0,0,0.5), 0 0 60px rgba(57, 255, 20, 0.45), inset 0 0 30px rgba(57, 255, 20, 0.1) !important;
}
.reaction-card:nth-child(3):hover {
    border-color: rgba(168, 85, 247, 0.75) !important;
    box-shadow: 0 14px 40px rgba(0,0,0,0.5), 0 0 60px rgba(168, 85, 247, 0.45), inset 0 0 30px rgba(168, 85, 247, 0.1) !important;
}

/* --- Split-screen prankster / victim --- */

.split-screen .grid > div:first-child .icon-fade {
    animation: prankster-swagger 3.5s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(251, 191, 36, 1)) drop-shadow(0 0 50px rgba(251, 191, 36, 0.7));
}

.split-screen .grid > div:last-child .icon-fade {
    animation: victim-fear 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(239, 68, 68, 1)) drop-shadow(0 0 50px rgba(239, 68, 68, 0.7));
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    .reaction-card > div:first-child,
    .reaction-card::before,
    .split-screen .icon-xl {
        animation: none !important;
    }
}

/* ================================================
   ICON FADE — simple 2-layer crossfade (JS-driven)
   Twemoji (default visible) <-> glow character
   ================================================ */

.icon-fade {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

.icon-fade > .fade-twe,
.icon-fade > .fade-glow {
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.8s ease;
}

.icon-fade > .fade-twe  { opacity: 1; }
.icon-fade > .fade-glow { opacity: 0; }

.icon-fade.flipped > .fade-twe  { opacity: 0; }
.icon-fade.flipped > .fade-glow { opacity: 1; }

/* ========================================================================
   PR-FE1 — Frontend restructure
   - Logo image slot with text fallback
   - Hero 2-column layout (collapses to 1-col <1024px)
   - Numbered product cards (slider reuses existing .is-products-slider)
   - Page-specific layouts: /create, /packages, /contact
   ======================================================================== */

/* --- Logo image slot ------------------------------------------------- */
.nav-logo {
    display: inline-flex;
    align-items: center;
    height: 56px;
    text-decoration: none;
    gap: 0.5rem;
}
.nav-logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
    display: block;
}
.nav-logo .logo-fallback {
    display: none;
    font-weight: 900;
    font-size: 22px;
    letter-spacing: 0.06em;
    color: var(--neon-green, #22c55e);
    font-family: 'Fredoka One', system-ui, sans-serif;
}
.nav-logo.logo-empty img { display: none; }
.nav-logo.logo-empty .logo-fallback { display: inline-block; }

.mobile-menu-header .nav-logo { height: 36px; }
.mobile-menu-header .nav-logo .logo-fallback { font-size: 18px; }

@media (max-width: 768px) {
    .nav-logo { height: 40px; }
    .nav-logo .logo-fallback { font-size: 18px; }
}

/* --- Hero: background image + HTML overlay (PR-FE1-FIX-3) ------------ */
/* The hero image fills the entire section as a cover-fit background. HTML
   headline + CTAs + trust pills sit on top, anchored to the LEFT 50% on
   desktop. The image's busy content is on its right half, so
   object-position: right center keeps the package/victims visible when
   the section is wider than the image's natural aspect ratio. */
.hero {
    position: relative;
    width: 100%;
    min-height: 600px;
    overflow: hidden;
    background: var(--bg-black, #0a0a0f);
}
.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    z-index: 1;
    display: block;
}
.hero-overlay {
    position: relative;
    z-index: 2;
    max-width: 56%;
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 600px;
}
.hero-headline {
    font-family: 'Fredoka One', system-ui, sans-serif;
    font-size: clamp(48px, 6vw, 96px);
    line-height: 1.0;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin: 0 0 24px 0;
}
.hero-headline span { display: block; }
.hero-headline-white { color: #ffffff; }
.hero-headline-green { color: var(--neon-green, #39ff14); text-shadow: 0 0 24px rgba(57, 255, 20, 0.35); }
.hero-sub {
    color: #d1d5db;
    font-size: 18px;
    line-height: 1.5;
    margin: 0 0 32px 0;
    max-width: 540px;
}
.hero-sub .accent { color: var(--neon-green, #39ff14); font-weight: 700; }
.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.hero-cta-primary {
    background: #fde047;
    color: #0a0a0a;
    font-weight: 800;
    padding: 18px 32px;
    border: 3px solid #000;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.02em;
    font-size: 15px;
    transition: transform 0.1s, box-shadow 0.2s, background 0.15s;
    cursor: pointer;
}
.hero-cta-primary:hover {
    background: #facc15;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(253, 224, 71, 0.4);
}
.hero-cta-secondary {
    background: transparent;
    color: #ffffff;
    font-weight: 800;
    padding: 18px 32px;
    border: 2px solid #ffffff;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.02em;
    font-size: 15px;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.hero-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--neon-green, #39ff14);
    border-color: var(--neon-green, #39ff14);
}
.hero-trust-pills {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.trust-pill {
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 13px;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.04em;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* Image-missing placeholder fallback (toggled by onerror handler). */
.hero.hero-image-empty {
    background: rgba(255, 255, 255, 0.04);
    border: 2px dashed rgba(57, 255, 20, 0.4);
}
.hero.hero-image-empty .hero-bg-img { display: none; }
.hero.hero-image-empty::after {
    content: 'Hero image: /images/hero-composite.png';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-family: ui-monospace, Consolas, monospace;
    font-size: 13px;
    text-align: center;
    padding: 1rem;
    pointer-events: none;
}

/* Mobile: image flows at the top, overlay below with darkened backdrop. */
@media (max-width: 1023px) {
    .hero {
        min-height: auto;
        display: flex;
        flex-direction: column;
    }
    .hero-bg-img {
        position: relative;
        inset: auto;
        width: 100%;
        height: 360px;
        object-position: center;
    }
    .hero-overlay {
        position: relative;
        max-width: 100%;
        min-height: auto;
        padding: 32px 20px;
        background: rgba(0, 0, 0, 0.65);
    }
    .hero-headline { font-size: clamp(40px, 9vw, 64px); }
    .hero-sub { font-size: 16px; margin-bottom: 24px; }
    .hero-cta-primary,
    .hero-cta-secondary {
        padding: 16px 24px;
        font-size: 14px;
        flex: 1 1 auto;
        justify-content: center;
    }
}

/* --- Numbered product cards: HORIZONTAL layout (PR-FE1-FIX) ----------- */
/* Horizontal row card:  [num badge] [image] [name + price] [arrow]
   Replaces PR-FE1's vertical layout. Used by index.html numbered slider. */
.numbered-card-h {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    background: rgba(15, 22, 41, 0.7);
    border: 1px solid rgba(57, 255, 20, 0.18);
    border-radius: 14px;
    padding: 1rem 1.25rem 1rem 1rem;
    min-height: 120px;
    transition: border-color 0.15s, transform 0.1s, box-shadow 0.2s;
}
.numbered-card-h:hover {
    border-color: rgba(57, 255, 20, 0.55);
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(57, 255, 20, 0.12);
}
.numbered-card-h-num {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 28px;
    height: 28px;
    background: var(--neon-green, #39ff14);
    color: #0a0a0f;
    font-family: 'Fredoka One', 'Inter', system-ui, sans-serif;
    font-weight: 900;
    font-size: 0.95rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    box-shadow: 0 0 14px rgba(57, 255, 20, 0.35);
}
.numbered-card-h-image {
    flex: 0 0 88px;
    width: 88px;
    height: 88px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
}
.numbered-card-h-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.numbered-card-h-image.empty {
    border: 2px dashed rgba(57, 255, 20, 0.4);
}
.numbered-card-h-image.empty::before {
    content: 'Product image';
    color: #666;
    font-family: ui-monospace, Consolas, monospace;
    font-size: 11px;
    text-align: center;
    padding: 0 4px;
    line-height: 1.2;
}
.numbered-card-h-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
}
.numbered-card-h-name {
    font-family: 'Fredoka One', system-ui, sans-serif;
    font-size: 1.15rem;
    color: #ffffff;
    margin: 0;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.numbered-card-h-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--neon-green, #39ff14);
    margin: 0;
    line-height: 1;
}
.numbered-card-h-arrow {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: transparent;
    color: var(--neon-green, #39ff14);
    border: 2px solid var(--neon-green, #39ff14);
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s, transform 0.1s, box-shadow 0.15s;
}
.numbered-card-h:hover .numbered-card-h-arrow {
    background: var(--neon-green, #39ff14);
    color: #0a0a0f;
    box-shadow: 0 0 16px rgba(57, 255, 20, 0.45);
    transform: translateX(2px);
}

/* Desktop ≥640px: name + price horizontal */
@media (min-width: 640px) {
    .numbered-card-h-body {
        flex-direction: row;
        align-items: baseline;
        gap: 1rem;
    }
    .numbered-card-h-name { flex: 1 1 auto; }
    .numbered-card-h-price { flex: 0 0 auto; }
}

/* Numbered slider — column layout (PR-FE1-FIX-2).
   Reuses the existing .grid.is-products-slider rule (defined near the top
   of index.html) for default mobile 85% width and desktop 33% width.
   Adds a tablet breakpoint at 640–1023px so 2 cards fit side-by-side.
   No #products-grid-numbered display override — Tailwind's grid utility
   handles the static (≤3 cards) case, and the slider IIFE swaps to flex
   when card count > 3. */
@media (min-width: 640px) and (max-width: 1023px) {
    .grid.is-products-slider > .numbered-card-h {
        flex: 0 0 calc(50% - 1rem);
    }
}

/* --- /packages.html grid ----------------------------------------------- */
.pricing-page-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 640px) {
    .pricing-page-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .pricing-page-grid { grid-template-columns: repeat(3, 1fr); }
}
.pricing-page-grid .package-card {
    text-decoration: none;
    color: inherit;
}

/* ========================================================================
   PR-FE1-FIX-4 — Elaborate card grid + admin product image uploader
   ====================================================================== */

/* --- Elaborate card grid (used by index.html + pricing.html) ---------- */
.elaborate-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 640px) {
    .elaborate-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .elaborate-cards-grid { grid-template-columns: repeat(3, 1fr); }
}

/* The elaborate-card itself reuses the existing .package-card styles +
   tier modifier classes (.ultimate / .nuclear) from main.css. The wrapping
   <a> needs the same hover lift the legacy .package-card hover gave. */
a.elaborate-card { color: inherit; }
a.elaborate-card:hover { color: inherit; text-decoration: none; }
a.elaborate-card .delivery-estimate { margin-top: auto; }

/* --- Admin product image gallery (admin.html product modal)
   PR-FE1-FIX-7 Part 2: redesigned. The old standalone dropzone block is
   gone. The gallery itself is now the dropzone; the trailing "+ Add" tile
   is the click target for the file picker. Thumbnails render real
   product images; first one gets a MAIN badge. --------------------- */
.product-image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
    margin-top: 12px;
}
.product-image-gallery .thumb,
.product-image-gallery .add-tile {
    position: relative;
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
}
.product-image-gallery .thumb {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.product-image-gallery .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.product-image-gallery .thumb .remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.product-image-gallery .thumb .remove-btn:hover {
    background: rgba(239, 68, 68, 0.95);
}
.product-image-gallery .thumb.main::after {
    content: 'MAIN';
    position: absolute;
    bottom: 4px;
    left: 4px;
    background: #39ff14;
    color: #000;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 0.04em;
}
.product-image-gallery .thumb.uploading {
    opacity: 0.55;
}
.product-image-gallery .thumb.uploading::after {
    content: 'Uploading…';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.65);
    font-size: 11px;
    font-weight: 700;
}
.product-image-gallery .thumb.error::after {
    content: 'Failed';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(239, 68, 68, 0.85);
    font-size: 11px;
    font-weight: 700;
}

/* + Add tile — always the last grid item. Click opens file picker;
   also reflects drag-over state via .drag-over class. */
.product-image-gallery .add-tile {
    border: 2px dashed rgba(57, 255, 20, 0.5);
    background: rgba(57, 255, 20, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--neon-green, #39ff14);
    transition: background 0.2s, border-color 0.2s;
    user-select: none;
    outline: none;
}
.product-image-gallery .add-tile:hover,
.product-image-gallery .add-tile.drag-over,
.product-image-gallery .add-tile:focus-visible {
    background: rgba(57, 255, 20, 0.1);
    border-color: rgba(57, 255, 20, 0.9);
}
.product-image-gallery .add-tile .plus {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}
.product-image-gallery .add-tile .add-label {
    font-size: 11px;
    margin-top: 4px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ========================================================================
   PR-FE1-FIX-8 — Stinks / Gags tabs in "Choose Your Level of CHAOS"
   ====================================================================== */
.chaos-tabs {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}
.chaos-tab {
    appearance: none;
    background: var(--bg-card, #1a1a24);
    border: 2px solid var(--border-dark, #2a2a3a);
    color: var(--text-grey, #9ca3af);
    font-family: 'Fredoka One', system-ui, sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.75rem 1.75rem;
    min-height: 44px;
    cursor: pointer;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.15s, border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.chaos-tab i { font-size: 1.05em; line-height: 1; }
.chaos-tab:hover {
    color: var(--text-white, #f0f0f5);
    border-color: rgba(57, 255, 20, 0.5);
    background: rgba(57, 255, 20, 0.05);
}
.chaos-tab.active {
    color: var(--neon-green, #39ff14);
    border-color: var(--neon-green, #39ff14);
    background: rgba(57, 255, 20, 0.08);
    box-shadow: 0 0 18px rgba(57, 255, 20, 0.35);
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.4);
}
.chaos-tab:focus-visible {
    outline: 2px solid var(--neon-green, #39ff14);
    outline-offset: 2px;
}

@media (max-width: 480px) {
    .chaos-tabs { gap: 0.5rem; }
    .chaos-tab { padding: 0.6rem 1.25rem; font-size: 0.95rem; }
}

/* ============================================================================
   PR-B — Card template picker (/create.html)
   ----------------------------------------------------------------------------
   Optional picker between photo upload and the custom-message textarea.
   Grid renders a "No card" skip tile + per-category-grouped thumbnails.
   Selected = neon-green border + glow (mirrors --neon-green brand token).
   Tiles are <button type="button"> so default has no native button chrome.
============================================================================ */
/* PR-SLIDER: the picker grid is now a vertical stack of category blocks.
   Each category renders its own horizontal scroll-snap slider (see
   .card-slider below), so adding many templates per category no longer
   grows the page vertically — it scrolls sideways instead. */
.card-picker-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.card-picker-category-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    margin: 0.75rem 0 0.1rem;
    font-weight: 700;
}

/* PR-SLIDER: one category block = label + horizontal slider. */
.card-slider-category {
    min-width: 0;
}

/* Slider row: [ left arrow ][ scroll track ][ right arrow ].
   The track is the only scrollable element; arrows sit outside it so
   they don't overlap the cards. On touch devices the track swipes
   natively; the arrows are an extra affordance for mouse/desktop. */
.card-slider {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.card-slider-track {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 0.25rem 0.15rem 0.5rem;
    /* hide scrollbar (Firefox) */
    scrollbar-width: none;
}
/* hide scrollbar (WebKit/Blink) */
.card-slider-track::-webkit-scrollbar {
    height: 0;
    width: 0;
    display: none;
}

/* Fixed-width cards inside the slider so a predictable number show per
   viewport (~4 on desktop column, fewer on mobile). Overrides the old
   grid-cell sizing — the thumb's own 5:7 aspect-ratio drives the height. */
.card-slider-track .card-picker-thumb {
    flex: 0 0 130px;
    width: 130px;
    scroll-snap-align: start;
}

/* Round nav arrows. type="button" in markup so they never submit the
   order form. Hidden from the no-scroll case via .is-hidden (set in JS). */
.card-slider-arrow {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(15, 22, 41, 0.85);
    color: #cbd5e1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: border-color 0.15s, color 0.15s, opacity 0.15s;
}
.card-slider-arrow:hover {
    border-color: rgba(57, 255, 20, 0.5);
    color: var(--neon-green);
}
.card-slider-arrow:disabled {
    opacity: 0.25;
    cursor: default;
    pointer-events: none;
}
.card-slider-arrow.is-hidden {
    display: none;
}

.card-picker-thumb {
    position: relative;
    aspect-ratio: 5 / 7;
    background: rgba(15, 22, 41, 0.6);
    border: 2px solid rgba(148, 163, 184, 0.25);
    border-radius: 10px;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
    color: inherit;
    font: inherit;
    display: flex;
    flex-direction: column;
}

.card-picker-thumb:hover {
    border-color: rgba(57, 255, 20, 0.5);
}

.card-picker-thumb:active {
    transform: translateY(1px);
}

.card-picker-thumb.selected {
    border-color: var(--neon-green);
    box-shadow: 0 0 0 1px var(--neon-green), 0 0 14px rgba(57, 255, 20, 0.35);
}

.card-picker-thumb img {
    width: 100%;
    flex: 1 1 auto;
    object-fit: cover;
    display: block;
    background: rgba(0, 0, 0, 0.25);
}

.card-picker-thumb-name {
    display: block;
    padding: 0.4rem 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
    color: #e2e8f0;
    background: rgba(0, 0, 0, 0.35);
    line-height: 1.2;
}

/* "No card" skip tile — PR-NAV compact: full-row banner at the top of
   the picker grid. De-emphasised vs the real template thumbnails (which
   stay 5:7 portrait), but still default-selected and visibly clickable.
   Selection wiring unchanged — applySelection('') still toggles .selected. */
.card-picker-thumb.card-picker-skip {
    width: 100%;                /* full-width banner above the sliders */
    aspect-ratio: auto;         /* opt out of the 5:7 thumbnail aspect */
    min-height: 44px;
    padding: 0.45rem 0.9rem;
    align-items: stretch;
}
.card-picker-skip-inner {
    flex: 1 1 auto;
    display: flex;
    flex-direction: row;        /* horizontal: icon + label, not stacked */
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.card-picker-skip-inner i {
    font-size: 0.95rem;
    color: #64748b;
}
.card-picker-thumb.card-picker-skip.selected .card-picker-skip-inner {
    color: var(--neon-green);
}
.card-picker-thumb.card-picker-skip.selected .card-picker-skip-inner i {
    color: var(--neon-green);
}

.card-picker-empty {
    color: #94a3b8;
    font-size: 0.85rem;
    text-align: center;
    padding: 1rem;
}
.card-picker-empty.card-picker-error {
    color: #f87171;
}

/* Front-text input wrap — appears when a real template is selected. */
.card-front-text-wrap input.card-front-text-input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    background: rgba(15, 22, 41, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 0.95rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.card-front-text-wrap input.card-front-text-input:focus {
    outline: none;
    border-color: var(--neon-green);
    box-shadow: 0 0 0 3px rgba(57, 255, 20, 0.18);
}
.card-front-text-wrap input.card-front-text-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    /* Narrower cards on phones so ~2.5 peek into view, signalling the
       row is swipeable. Native touch scroll handles the swipe; arrows
       remain available too. */
    .card-slider-track .card-picker-thumb {
        flex-basis: 120px;
        width: 120px;
    }
    .card-slider-track {
        gap: 0.5rem;
    }
}

/* ============================================================================
   PR-C — Shared card-front render unit + live preview panel
   ----------------------------------------------------------------------------
   .gp-card-front / .gp-card-front-text are the SHARED markup classes used
   by both /create.html (live preview, PR-C) and the future PR-D internal
   Browser-Rendering page. Any styling change here ALSO changes the printed
   PDF — preview ≡ PDF is the load-bearing property.
   - aspect-ratio 1748/2480 (5:7 A5 portrait, matches all 6 MVP templates).
   - overflow:hidden hard-stops a pathological single-30-char unbreakable
     word from spilling outside the card art in both preview AND PDF.
   - font-size primary = 9.5cqw; PR-C's ResizeObserver writes a computed-px
     inline fallback for browsers without container-query-unit support.
============================================================================ */
.gp-card-front {
    position: relative;
    width: 100%;
    aspect-ratio: 1748 / 2480;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #1a1f3a;
    border-radius: 6px;
    overflow: hidden;
    container-type: inline-size;
}
.gp-card-front-text {
    position: absolute;
    font-family: 'Fredoka One', cursive;
    font-weight: 400;
    color: #ffffff;
    text-align: center;
    line-height: 1.1;
    font-size: 9.5cqw;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.85), 0 2px 6px rgba(0, 0, 0, 0.6);
    -webkit-text-stroke: 0.114cqw rgba(0, 0, 0, 0.65);
    word-break: normal;
    overflow-wrap: break-word;
    white-space: normal;
    overflow: hidden;
    pointer-events: none;
}

/* ----------------------------------------------------------------------------
   PR-C live preview panel layout on /create.html.
   Mobile: preview ABOVE the picker (source-order top), capped to 240px so a
           full-width 360px viewport doesn't show a 510px-tall preview tile.
   Desktop (>=768px): preview becomes a sticky 240px right column.
---------------------------------------------------------------------------- */
.card-picker-layout {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: "preview" "picker";
    gap: 1rem;
}
.card-preview-panel  { grid-area: preview; max-width: 240px; margin: 0 auto; width: 100%; }
.card-picker-grid-wrap { grid-area: picker; min-width: 0; }

@media (min-width: 768px) {
    .card-picker-layout {
        grid-template-columns: 1fr 240px;
        grid-template-areas: "picker preview";
        gap: 1.25rem;
    }
    .card-preview-panel {
        max-width: none;
        margin: 0;
        position: sticky;
        /* PR-NAV: tied to --sticky-nav-height so the preview NEVER slides
           under the stuck main nav row. Single source of truth — change
           the nav height once, both sticky tops follow. +12px breathing
           gap below the stuck nav. */
        top: calc(var(--sticky-nav-height) + 12px);
        align-self: start;
    }
}

.card-preview-panel-inner {
    background: rgba(15, 22, 41, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 10px;
    padding: 0.85rem;
}
.card-preview-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    margin: 0 0 0.6rem;
    font-weight: 700;
    text-align: center;
}
.card-preview-empty {
    width: 100%;
    aspect-ratio: 1748 / 2480;
    border-radius: 6px;
    border: 1px dashed rgba(148, 163, 184, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 0.82rem;
    text-align: center;
    padding: 1rem;
    gap: 0.4rem;
}
.card-preview-empty i {
    font-size: 1.4rem;
    color: #475569;
}

/* ============================================================================
   PR-C.2 — Inside-left, inside-right, back panels + flip-tab control.
   ALL shared with PR-D Browser-Rendering PDF. Backgrounds, typography,
   and layout are LOCKED at the class level — no inline overrides. Any
   change here changes both surfaces atomically.
============================================================================ */

/* ---- Inside-left: framed photo + category caption ------------------------ */
.gp-card-inside-left {
    position: relative;
    width: 100%;
    aspect-ratio: 1748 / 2480;
    background: #0f1629;   /* LOCKED — no per-template variation in MVP */
    border-radius: 6px;
    overflow: hidden;
    container-type: inline-size;
}
.gp-card-photo-frame {
    position: absolute;
    top: 12%;
    left: 12%;
    width: 76%;
    aspect-ratio: 1 / 1;
    background: #ffffff;
    border: 0.6cqw solid #39ff14;
    border-radius: 6px;
    padding: 5%;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
    overflow: hidden;
}
.gp-card-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
    display: block;
}
.gp-card-photo-placeholder {
    width: 100%;
    height: 100%;
    border: 2px dashed rgba(15, 22, 41, 0.25);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-align: center;
    gap: 4%;
    font-family: 'Nunito', sans-serif;
    font-style: italic;
    font-size: 5.5cqw;
    line-height: 1.2;
    padding: 8%;
    box-sizing: border-box;
}
.gp-card-photo-placeholder svg {
    width: 22%;
    height: auto;
    color: #cbd5e1;
}
.gp-card-caption {
    position: absolute;
    top: 73%;
    left: 0;
    width: 100%;
    text-align: center;
    font-family: 'Fredoka One', cursive;
    font-weight: 400;
    color: #ffffff;
    font-size: 7.5cqw;
    line-height: 1.05;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.85), 0 2px 6px rgba(0, 0, 0, 0.6);
    -webkit-text-stroke: 0.114cqw rgba(0, 0, 0, 0.65);
    padding: 0 6%;
    box-sizing: border-box;
}

/* ---- Inside-right: message with asymmetric quotes + SVG divider ---------- */
.gp-card-inside-right {
    position: relative;
    width: 100%;
    aspect-ratio: 1748 / 2480;
    background: #fafafa;   /* LOCKED — no per-template variation in MVP */
    border-radius: 6px;
    overflow: hidden;
    container-type: inline-size;
}
.gp-card-message-block {
    position: absolute;
    top: 22%;
    left: 12%;
    width: 76%;
    max-height: 56%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4%;
    box-sizing: border-box;
}
.gp-card-message-quote {
    position: absolute;
    font-family: 'Fredoka One', cursive;
    font-weight: 400;
    color: #cbd5e1;
    font-size: 18cqw;
    line-height: 0.5;
    pointer-events: none;
    user-select: none;
}
.gp-card-message-quote-open  { top: -4%;  left:  -6%; }
.gp-card-message-quote-close { bottom: -4%; right: -6%; }

.gp-card-message,
.gp-card-message-placeholder {
    width: 100%;
    text-align: center;
    font-family: 'Nunito', sans-serif;
    font-size: 5cqw;
    line-height: 1.45;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    word-break: normal;
    overflow: hidden;     /* last-resort safety net — see normalizeCardMessage + maxlength */
    /* PR-MSG-FIT: paired with maxlength=100 on the textarea AND
       normalizeCardMessage's <=4 line-break cap to fit any realistic
       100-char message in ~5 lines at the print-scale font.
       Math:
         line-height = 5cqw × 1.45 = 7.25cqw per line
         5 lines = 36.25cqw → round to 36cqw
       At 1748px print: 36cqw = 629 px = 4.97 lines. At 240px preview the
       proportion is identical (cqw is container-width-based).
       PRIOR COMMENT WAS WRONG: 18cqw is ~2.48 lines, not ~4 — that off-by-
       60% cap is what caused the visible clip on PR-C's preview. */
    max-height: 36cqw;
    box-sizing: border-box;
}
.gp-card-message {
    font-weight: 600;
    color: #1f2937;
}
.gp-card-message-placeholder {
    font-weight: 400;
    font-style: italic;
    color: #94a3b8;
}
.gp-card-message-divider {
    width: 40%;
    color: #94a3b8;
    line-height: 0;
    margin-top: 2%;
}
.gp-card-message-divider-svg {
    width: 100%;
    height: auto;
    display: block;
}

/* ---- Back: baked card-back.png art + live QR overlay (PR-C.3) ----------- */
/* The back-cover art (logo + neon-green border + 4 social icons +
   @gagpackage handle + novelty disclaimer) is BAKED INTO the background
   image at print resolution (1748x2480). Only the QR and its caption stay
   as live HTML so the QR remains vector-sharp and swappable. background-
   color #0f1629 is the safety fallback shown if the image fails to load. */
.gp-card-back {
    position: relative;
    width: 100%;
    aspect-ratio: 1748 / 2480;
    background-color: #0f1629;
    background-image: url('/images/card-back.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 6px;
    overflow: hidden;
    container-type: inline-size;
    color: #ffffff;
}
/* QR clear-band centre on the new art is ~47% vertical — PR-C.3 nudge:
   top 30% → 34% so the QR sits bullseye in the empty band between the
   baked logo block and the baked social-icon row. Width unchanged (40%
   = ~59mm at 1748px print scale, comfortably scannable). The white box
   + 6% padding + drop-shadow stay as the QR quiet-zone against the dark
   textured background. */
.gp-card-back-qr {
    position: absolute;
    top: 34%;
    left: 30%;
    width: 40%;
    aspect-ratio: 1 / 1;
    background: #ffffff;
    border-radius: 6px;
    padding: 6%;
    box-sizing: border-box;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.gp-card-back-qr img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
/* Caption sits in the gap between the QR (ends ~62.2%) and the baked
   social row (begins ~72%) — kept as live marketing CTA. */
.gp-card-back-qr-caption {
    position: absolute;
    top: 64%;
    left: 0;
    width: 100%;
    text-align: center;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 3cqw;
    color: #ffffff;
    line-height: 1.2;
    padding: 0 6%;
    box-sizing: border-box;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.7);
}

/* ============================================================================
   PR-C.2 — Preview flip-tab segmented control + inside-stacked layout.
   THIS layout is /create.html preview chrome only — NOT inherited by PR-D
   (PR-D calls each panel function separately and lays them out at print
   scale on its own internal render page).
============================================================================ */
.card-preview-tabs {
    display: flex;
    gap: 0.35rem;
    background: rgba(15, 22, 41, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    padding: 0.25rem;
    margin: 0 0 0.6rem;
}
.card-preview-tab {
    flex: 1 1 0;
    appearance: none;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.4rem 0.5rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    font-family: inherit;
}
.card-preview-tab:hover { color: #e2e8f0; }
.card-preview-tab.active {
    background: var(--neon-green);
    color: #0f1629;
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.35);
}
.card-preview-tab:focus-visible {
    outline: 2px solid var(--neon-green);
    outline-offset: 2px;
}
.card-preview-tabs.disabled .card-preview-tab {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Inside spread = panels stacked vertically (BOTH desktop and mobile) so
   each panel stays at the preview's full column width and remains legible.
   PR-D renders the inside as a true side-by-side spread at print scale. */
.card-preview-inside-stack {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.card-preview-side-label {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #64748b;
    font-weight: 700;
    text-align: center;
    margin: 0 0 -0.2rem;
}

/* Fade transition when swapping views — pure CSS, no JS choreography. */
#cardPreviewContainer { transition: opacity 0.12s ease; }
#cardPreviewContainer.gp-preview-fading { opacity: 0.4; }
