/* ═══════════════════════════════════════════════════════════════════════════
   RunIGRun — Custom Styles (complements Tailwind via CDN)
   Dark-mode dominant, neon/gradient accents, mobile-native feel
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── CSS Custom Properties ──────────────────────────────────────────────── */
:root {
    --bg-primary:    #0a0a0f;
    --bg-secondary:  #12121a;
    --bg-card:       #1a1a2e;
    --bg-card-hover: #222240;
    --bg-input:      #16162a;

    --text-primary:   #f0f0f5;
    --text-secondary: #8888aa;
    --text-muted:     #8888aa;  /* raised from #55557a for WCAG AA contrast */

    --accent:         #8b5cf6;     /* violet-500 */
    --accent-light:   #a78bfa;     /* violet-400 */
    --accent-glow:    rgba(139, 92, 246, 0.3);

    --neon-pink:      #ec4899;
    --neon-blue:      #3b82f6;
    --neon-green:     #10b981;

    --gradient-main:  linear-gradient(135deg, #8b5cf6, #ec4899);
    --gradient-alt:   linear-gradient(135deg, #3b82f6, #8b5cf6);
    --gradient-gold:  linear-gradient(135deg, #f59e0b, #ef4444);

    --radius:         12px;
    --radius-lg:      20px;
    --radius-full:    9999px;

    --shadow:         0 4px 24px rgba(0,0,0,0.4);
    --shadow-glow:    0 0 20px var(--accent-glow);

    --bottom-nav-h:   64px;
    --safe-bottom:    env(safe-area-inset-bottom, 0px);
}

/* ─── Light Theme Override ────────────────────────────────────────────────── */
html[data-theme="light"] {
    --bg-primary:    #f5f5f7;
    --bg-secondary:  #ffffff;
    --bg-card:       #ffffff;
    --bg-card-hover: #f0f0f4;
    --bg-input:      #f0f0f4;

    --text-primary:   #1a1a2e;
    --text-secondary: #555570;
    --text-muted:     #666677;  /* darkened from #8888aa for WCAG AA on light bg */

    --accent:         #7c3aed;
    --accent-light:   #8b5cf6;
    --accent-glow:    rgba(124, 58, 237, 0.2);

    --shadow:         0 4px 24px rgba(0,0,0,0.08);
    --shadow-glow:    0 0 20px rgba(124,58,237,0.15);
}

html[data-theme="light"] body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

html[data-theme="light"] .bottom-nav {
    background: rgba(255,255,255,0.92);
    border-top-color: rgba(0,0,0,0.06);
}

html[data-theme="light"] .bottom-nav a,
html[data-theme="light"] .bottom-nav button {
    color: #8888aa;
}

html[data-theme="light"] .bottom-nav a.active {
    color: var(--accent);
}

html[data-theme="light"] .input-field {
    background: #f0f0f4;
    border-color: rgba(0,0,0,0.08);
    color: #1a1a2e;
}

html[data-theme="light"] .input-field:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

html[data-theme="light"] .input-field::placeholder {
    color: #aaa;
}

html[data-theme="light"] .card {
    background: #fff;
    border-color: rgba(0,0,0,0.06);
    box-shadow: 0 1px 8px rgba(0,0,0,0.05);
}

html[data-theme="light"] .bottom-sheet {
    background: #fff;
}

html[data-theme="light"] .bottom-sheet-handle {
    background: rgba(0,0,0,0.15);
}

html[data-theme="light"] .package-card {
    background: #fff;
    border-color: rgba(0,0,0,0.08);
}

/* Selected state on light theme — beefier ring + gradient tint so the
   purple "selected" indicator actually pops against the white card. */
html[data-theme="light"] .package-card.selected {
    border-color: var(--accent, #8b5cf6);
    background: linear-gradient(135deg, rgba(139,92,246,0.06), rgba(236,72,153,0.04));
    box-shadow:
        0 0 0 3px rgba(139,92,246,0.18),
        0 10px 26px -8px rgba(139,92,246,0.30);
}

html[data-theme="light"] .svc-card {
    background: #fff;
    border-color: rgba(0,0,0,0.06);
}

html[data-theme="light"] .svc-card.active {
    border-color: transparent;
    background: #fff;
    box-shadow:
        inset 0 0 0 2px var(--accent),
        0 6px 16px -6px rgba(124,58,237,0.20);
    animation: svc-active-wave-light 2.5s ease-in-out infinite;
}

@keyframes svc-active-wave-light {
    0%, 100% {
        box-shadow:
            inset 0 0 0 2px var(--accent),
            0 6px 16px -6px rgba(124,58,237,0.20);
    }
    50% {
        box-shadow:
            inset 0 0 0 2.5px var(--accent-light),
            0 8px 22px -6px rgba(124,58,237,0.26);
    }
}

html[data-theme="light"] .cta-pulse-active {
    animation: cta-pulse-breathe-light 2s ease-in-out infinite;
}

@keyframes cta-pulse-breathe-light {
    0%   { box-shadow: 0 4px 16px rgba(124,58,237,0.15); transform: scale(1); }
    50%  { box-shadow: 0 6px 28px rgba(124,58,237,0.22), 0 0 40px rgba(124,58,237,0.08); transform: scale(1.02); }
    100% { box-shadow: 0 4px 16px rgba(124,58,237,0.15); transform: scale(1); }
}

html[data-theme="light"] .upload-area {
    background: #f8f8fc;
    border-color: rgba(124,58,237,0.25);
}

html[data-theme="light"] .otp-input {
    background: #f0f0f4;
    border-color: rgba(0,0,0,0.1);
    color: #1a1a2e;
}

html[data-theme="light"] .toast-success {
    background: #ecfdf5;
    color: #065f46;
    border-color: #10b981;
}

html[data-theme="light"] .toast-error {
    background: #fef2f2;
    color: #991b1b;
    border-color: #ef4444;
}

html[data-theme="light"] .skeleton {
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
    background-size: 200% 100%;
}

html[data-theme="light"] .profile-card {
    background: #fff;
    border-color: rgba(0,0,0,0.06);
}

html[data-theme="light"] .service-tab {
    background: #fff;
    border-color: rgba(0,0,0,0.06);
    color: #555;
}

html[data-theme="light"] .lang-option.active {
    background: rgba(124,58,237,0.08);
    border-color: rgba(124,58,237,0.2);
}

/* ─── Base Reset ─────────────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ─── App Shell ──────────────────────────────────────────────────────────── */
.app-shell {
    max-width: 448px;   /* mobile-first */
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    background: var(--bg-primary);
}

.page-content {
    padding: 16px 16px calc(var(--bottom-nav-h) + var(--safe-bottom) + 24px) 16px;
}

/* ─── Responsive Breakpoints ─────────────────────────────────────────────── */
@media (min-width: 768px) {
    .app-shell {
        max-width: 720px;
    }
    .bottom-nav,
    .sticky-cta,
    .bottom-sheet {
        max-width: 720px;
    }
    .page-content {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (min-width: 1024px) {
    .app-shell {
        max-width: 960px;
    }
    .bottom-nav,
    .sticky-cta,
    .bottom-sheet {
        max-width: 960px;
    }
    .page-content {
        padding-left: 40px;
        padding-right: 40px;
    }
}

/* ─── Responsive Grid Utilities ──────────────────────────────────────────── */
@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ─── Gradient Text ──────────────────────────────────────────────────────── */
.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Neon Button (Primary CTA) ──────────────────────────────────────────── */
.btn-neon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: var(--radius);
    background: var(--gradient-main);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.btn-neon:active {
    transform: scale(0.97);
    opacity: 0.9;
}

.btn-neon:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-neon::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255,255,255,0.1), transparent);
    pointer-events: none;
}

/* Secondary button */
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 24px;
    border: 1.5px solid rgba(139, 92, 246, 0.4);
    border-radius: var(--radius);
    background: transparent;
    color: var(--accent-light);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-ghost:active {
    background: rgba(139, 92, 246, 0.1);
    transform: scale(0.97);
}

/* ─── Card ───────────────────────────────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.05);
}

.card-glow {
    box-shadow: var(--shadow-glow);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

/* ─── Form Inputs ────────────────────────────────────────────────────────── */
.input-field {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 16px; /* prevents zoom on iOS */
    transition: border-color 0.2s ease;
    outline: none;
}

.input-field:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.input-field::placeholder {
    color: var(--text-muted);
}

.input-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ─── Fixed Bottom CTA Bar ───────────────────────────────────────────────── */
.sticky-cta {
    position: fixed;
    bottom: calc(var(--bottom-nav-h) + var(--safe-bottom));
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 448px;
    padding: 12px 16px;
    background: linear-gradient(to top, var(--bg-primary) 80%, transparent);
    z-index: 40;
}
.checkout-step { padding-bottom: 140px; }

/* ─── Bottom Navigation Bar ──────────────────────────────────────────────── */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 448px;
    height: var(--bottom-nav-h);
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding-bottom: var(--safe-bottom);
    z-index: 50;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.bottom-nav a,
.bottom-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    padding: 6px 12px;
    border: none;
    background: none;
    cursor: pointer;
    transition: color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav a.active,
.bottom-nav a:hover,
.bottom-nav button.active {
    color: var(--accent-light);
}

.bottom-nav svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.8;
}

/* ─── Bottom Sheet ───────────────────────────────────────────────────────── */
.bottom-sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.bottom-sheet-overlay.active {
    opacity: 1;
    visibility: visible;
}

.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 100%);
    width: 100%;
    max-width: 448px;
    max-height: 85vh;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    z-index: 100;
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.bottom-sheet.active {
    transform: translate(-50%, 0);
}

.bottom-sheet-handle {
    width: 36px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    margin: 10px auto 0;
}

.bottom-sheet-content {
    padding: 16px 20px 32px;
}

/* ─── Media Grid (Instagram-style 3-col) ─────────────────────────────────── */
.media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
}

.media-grid-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--bg-card);
    transition: transform 0.15s ease;
}

.media-grid-item:active {
    transform: scale(0.97);
}

.media-grid-item.selected {
    box-shadow:
        inset 0 0 0 4px var(--accent),
        0 0 0 2px rgba(139, 92, 246, 0.55),
        0 6px 20px -4px rgba(139, 92, 246, 0.55);
    transform: scale(0.96);
    z-index: 2;
}
.media-grid-item.selected img {
    filter: saturate(1.15) contrast(1.05);
}

.media-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-grid-item .media-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0,0,0,0.6);
    border-radius: 4px;
    padding: 2px 5px;
    font-size: 10px;
    color: #fff;
    z-index: 2;
}

.media-grid-item .media-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.82));
    padding: 14px 4px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    opacity: 1;
    z-index: 1;
}

.media-stats span {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.media-stats svg {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
}

/* ─── Instagram-style Profile Header (above media grid) ──────────────────── */
.ig-profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin-bottom: 6px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.06);
}

.ig-profile-header .ig-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
                var(--gradient-main) border-box;
    flex-shrink: 0;
}

.ig-profile-header .ig-stats {
    display: flex;
    gap: 12px;
    margin-top: 2px;
}

.ig-profile-header .ig-stat {
    text-align: center;
}

.ig-profile-header .ig-stat-num {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
}

.ig-profile-header .ig-stat-label {
    font-size: 10px;
    color: var(--text-muted);
    display: block;
}

.media-grid-item .selected-check {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(139, 92, 246, 0.45) 0%, rgba(139, 92, 246, 0.18) 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    pointer-events: none;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6), 0 0 18px rgba(139, 92, 246, 0.9);
}
.media-grid-item .selected-check::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(236, 72, 153, 0.18));
    z-index: -1;
}

.media-grid-skeleton {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
}

.media-grid-skeleton .skeleton {
    aspect-ratio: 1;
}

.btn-load-more {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-load-more:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.btn-load-more:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


/* ─── Package Cards ──────────────────────────────────────────────────────── */
.package-card {
    background: var(--bg-card);
    border: 1.5px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.package-card:active {
    transform: scale(0.98);
}

.package-card.selected {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.package-card .badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--gradient-main);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 0 0 0 var(--radius);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ─── Toast Notification ─────────────────────────────────────────────────── */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    max-width: 400px;
    width: calc(100% - 32px);
    padding: 14px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    z-index: 200;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-success {
    background: #065f46;
    color: #d1fae5;
    border: 1px solid #10b981;
}

.toast-error {
    background: #7f1d1d;
    color: #fecaca;
    border: 1px solid #ef4444;
}

/* ─── Skeleton Loader ────────────────────────────────────────────────────── */
@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite ease-in-out;
    border-radius: var(--radius);
}

/* ─── Spinner ────────────────────────────────────────────────────────────── */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinner {
    width: 24px;
    height: 24px;
    border: 2.5px solid rgba(255,255,255,0.15);
    border-top-color: var(--accent-light);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: inline-block;
}

.spinner-sm {
    width: 16px;
    height: 16px;
    border-width: 2px;
}

/* ─── Upload Area ────────────────────────────────────────────────────────── */
.upload-area {
    border: 2px dashed rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-lg);
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--bg-input);
}

.upload-area:active,
.upload-area.dragover {
    border-color: var(--accent);
    background: rgba(139, 92, 246, 0.05);
}

.upload-area img.preview {
    max-width: 200px;
    max-height: 200px;
    object-fit: cover;
    border-radius: var(--radius);
    margin: 0 auto;
}

/* ─── OTP Input ──────────────────────────────────────────────────────────── */
.otp-input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    background: var(--bg-input);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s ease;
}

.otp-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ─── Service Type Tabs ──────────────────────────────────────────────────── */
.service-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.service-tabs::-webkit-scrollbar {
    display: none;
}

.service-tab {
    flex: 0 0 auto;
    padding: 10px 18px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    border: 1.5px solid rgba(255,255,255,0.08);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.service-tab:active {
    transform: scale(0.96);
}

.service-tab.active {
    background: var(--gradient-main);
    border-color: transparent;
    color: #fff;
}

/* ─── Pulse animation for CTAs ───────────────────────────────────────────── */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 15px var(--accent-glow); }
    50%      { box-shadow: 0 0 30px var(--accent-glow), 0 0 60px rgba(139,92,246,0.15); }
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* ─── CTA Pulse when package selected ────────────────────────────────────── */
@keyframes cta-pulse-breathe {
    0%   { box-shadow: 0 4px 20px var(--accent-glow); transform: scale(1); }
    50%  { box-shadow: 0 6px 32px var(--accent-glow), 0 0 48px rgba(139,92,246,0.15); transform: scale(1.02); }
    100% { box-shadow: 0 4px 20px var(--accent-glow); transform: scale(1); }
}

.cta-pulse-active {
    animation: cta-pulse-breathe 2s ease-in-out infinite;
}

/* ─── Fade-in animation ──────────────────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    animation: fadeInUp 0.4s ease forwards;
}

/* ─── Profile Card ───────────────────────────────────────────────────────── */
.profile-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.05);
}

.profile-card img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}

/* ─── Language Selector Flags ────────────────────────────────────────────── */
.lang-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.15s ease;
}

.lang-option:active {
    background: rgba(255,255,255,0.05);
}

.lang-option.active {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.lang-option .flag {
    font-size: 28px;
    line-height: 1;
}

/* ─── Service Type Cards (Checkout Step 1) ───────────────────────────────── */
.svc-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 22px 10px 22px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1.5px solid rgba(255,255,255,0.06);
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: visible;
    text-align: center;
}

.svc-card:active {
    transform: scale(0.96);
}

.svc-card.active {
    /* Ring drawn INSIDE the box via inset shadow → never clipped by parent
       overflow on the leftmost / rightmost / bottom card. The downward glow
       lives underneath where there's space for it. No gradient, no extra
       inner glow — keeps the selection visually quiet. */
    border-color: transparent;
    box-shadow:
        inset 0 0 0 2px var(--accent),
        0 6px 16px -6px var(--accent-glow);
    background: var(--bg-card);
    animation: svc-active-wave 2.5s ease-in-out infinite;
}

@keyframes svc-active-wave {
    0%, 100% {
        box-shadow:
            inset 0 0 0 2px var(--accent),
            0 6px 16px -6px var(--accent-glow);
    }
    50% {
        box-shadow:
            inset 0 0 0 2.5px var(--accent-light),
            0 8px 22px -6px var(--accent-glow);
    }
}

.svc-card.active .svc-name {
    color: var(--text-primary);
}

.svc-card.active .svc-price {
    color: var(--accent-light);
}

.svc-card .svc-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
}

.svc-card.active .svc-icon {
    transform: scale(1.1);
}

.svc-card .svc-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    line-height: 1.2;
}

.svc-card .svc-price {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

/* Featured (AI Comments) — horizontal layout */
.svc-card-featured {
    flex-direction: row;
    padding: 16px 18px;
    gap: 14px;
}

.svc-card-featured .svc-price {
    font-size: 15px;
    font-weight: 800;
    margin-left: auto;
}

.svc-hot-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--gradient-main);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 0 0 0 var(--radius);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ─── Step Indicator ─────────────────────────────────────────────────────── */
.step-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 24px;
}

.step-bar .step-dot {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,0.08);
    transition: background 0.3s ease;
}

.step-bar .step-dot.active {
    background: var(--gradient-main);
}

.step-bar .step-dot.completed {
    background: var(--neon-green);
}

/* Hide number input spinners for distribution overlay */
.dist-overlay input[type="number"]::-webkit-outer-spin-button,
.dist-overlay input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.dist-overlay input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* ─── Cart Badge ─────────────────────────────────────────────────────────── */
/* Layout props applied via class so JS can toggle display:none / display:flex */
.cart-badge {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ─── Tailwind Utility Replacements (Tailwind CDN removed from header.php) ─ */

/* Display */
.hidden   { display: none !important; }
.flex     { display: flex; }
.inline-flex { display: inline-flex; }
.block    { display: block; }
.grid     { display: grid; }

/* Flex */
.flex-col       { flex-direction: column; }
.flex-1         { flex: 1 1 0%; }
.flex-shrink-0  { flex-shrink: 0; }
.items-center   { align-items: center; }
.items-start    { align-items: flex-start; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around  { justify-content: space-around; }
.flex-wrap      { flex-wrap: wrap; }

/* Grid */
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Gap */
.gap-0\.5 { gap: 2px; }
.gap-1  { gap: 4px; }
.gap-2  { gap: 8px; }
.gap-3  { gap: 12px; }
.gap-4  { gap: 16px; }
.gap-5  { gap: 20px; }
.gap-6  { gap: 24px; }

/* Width */
.w-2   { width: 8px; }
.w-3\.5 { width: 14px; }
.w-4   { width: 16px; }
.w-5   { width: 20px; }
.w-6   { width: 24px; }
.w-7   { width: 28px; }
.w-8   { width: 32px; }
.w-10  { width: 40px; }
.w-12  { width: 48px; }
.w-14  { width: 56px; }
.w-60  { width: 240px; }
.w-full { width: 100%; }
.min-w-0 { min-width: 0; }

/* Height */
.h-2   { height: 8px; }
.h-4   { height: 16px; }
.h-5   { height: 20px; }
.h-6   { height: 24px; }
.h-7   { height: 28px; }
.h-8   { height: 32px; }
.h-10  { height: 40px; }
.h-12  { height: 48px; }
.h-14  { height: 56px; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }

/* Padding */
.p-3   { padding: 12px; }
.p-4   { padding: 16px; }
.px-2  { padding-left: 8px;  padding-right: 8px; }
.px-3  { padding-left: 12px; padding-right: 12px; }
.px-4  { padding-left: 16px; padding-right: 16px; }
.px-5  { padding-left: 20px; padding-right: 20px; }
.px-6  { padding-left: 24px; padding-right: 24px; }
.py-1  { padding-top: 4px;  padding-bottom: 4px; }
.py-1\.5 { padding-top: 6px; padding-bottom: 6px; }
.py-2  { padding-top: 8px;  padding-bottom: 8px; }
.py-3  { padding-top: 12px; padding-bottom: 12px; }
.py-4  { padding-top: 16px; padding-bottom: 16px; }
.py-5  { padding-top: 20px; padding-bottom: 20px; }
.pl-9  { padding-left: 36px; }
.pt-4  { padding-top: 16px; }
.pb-2  { padding-bottom: 8px; }
.pb-4  { padding-bottom: 16px; }
.pb-8  { padding-bottom: 32px; }
.space-y-1 > * + * { margin-top: 4px; }

/* Margin */
.mb-0\.5 { margin-bottom: 2px; }
.mb-1  { margin-bottom: 4px; }
.mb-2  { margin-bottom: 8px; }
.mb-3  { margin-bottom: 12px; }
.mb-4  { margin-bottom: 16px; }
.mb-5  { margin-bottom: 20px; }
.mb-6  { margin-bottom: 24px; }
.mb-8  { margin-bottom: 32px; }
.mt-1  { margin-top: 4px; }
.mt-2  { margin-top: 8px; }
.mt-3  { margin-top: 12px; }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.ml-auto { margin-left: auto; }

/* Text size */
.text-xs   { font-size: 12px; line-height: 16px; }
.text-sm   { font-size: 14px; line-height: 20px; }
.text-base { font-size: 16px; line-height: 24px; }
.text-lg   { font-size: 18px; line-height: 28px; }
.text-xl   { font-size: 20px; line-height: 28px; }
.text-2xl  { font-size: 24px; line-height: 32px; }
.text-\[10px\] { font-size: 10px; line-height: 14px; }
.text-\[11px\] { font-size: 11px; line-height: 15px; }

/* Font weight */
.font-normal    { font-weight: 400; }
.font-medium    { font-weight: 500; }
.font-semibold  { font-weight: 600; }
.font-bold      { font-weight: 700; }
.font-extrabold { font-weight: 800; }

/* Text */
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }
.uppercase    { text-transform: uppercase; }
.leading-tight   { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.no-underline    { text-decoration: none; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Colors */
.text-white      { color: #ffffff; }
.text-accent     { color: var(--accent); }
.text-accent-light { color: var(--accent-light); }
.text-neon-green { color: var(--neon-green); }
.text-neon-pink  { color: var(--neon-pink); }
.text-neon-blue  { color: var(--neon-blue); }
.text-yellow-400 { color: #facc15; }
.text-red-400    { color: #f87171; }
.bg-accent       { background-color: var(--accent); }
.bg-emerald-400  { background-color: #34d399; }

/* Border & Radius */
.border      { border: 1px solid; }
.border-white\/10 { border-color: rgba(255,255,255,0.1); }
.rounded     { border-radius: 4px; }
.rounded-lg  { border-radius: 8px; }
.rounded-xl  { border-radius: 12px; }
.rounded-2xl { border-radius: 16px; }
.rounded-full { border-radius: 9999px; }

/* Position */
.sticky   { position: sticky; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed    { position: fixed; }
.inset-0  { inset: 0; }
.top-0    { top: 0; }
.left-0   { left: 0; }
.right-0  { right: 0; }
.bottom-0 { bottom: 0; }
.left-4   { left: 16px; }
.top-1\/2 { top: 50%; }

/* Z-index */
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* Overflow */
.overflow-hidden  { overflow: hidden; }
.overflow-x-auto  { overflow-x: auto; }
.overflow-y-auto  { overflow-y: auto; }
.overflow-auto    { overflow: auto; }

/* Transitions */
.transition        { transition: all 0.15s ease; }
.transition-colors { transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease; }

/* Transform */
.-translate-y-1\/2 { transform: translateY(-50%); }

/* Misc */
.cursor-pointer    { cursor: pointer; }
.pointer-events-none { pointer-events: none; }
.opacity-0         { opacity: 0; }

/* Scroll snap */
.snap-x         { scroll-snap-type: x var(--tw-scroll-snap-strictness, mandatory); }
.snap-mandatory { --tw-scroll-snap-strictness: mandatory; }
.snap-center    { scroll-snap-align: center; }
.snap-start     { scroll-snap-align: start; }

/* Animations */
@keyframes bounce {
    0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8,0,1,1); }
    50%       { transform: translateY(0); animation-timing-function: cubic-bezier(0,0,0.2,1); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.5; }
}
.animate-bounce { animation: bounce 1s infinite; }
.animate-pulse  { animation: pulse 2s cubic-bezier(0.4,0,0.6,1) infinite; }

/* ─── Missing Tailwind Utility Classes (added after CDN removal) ─────────── */

/* Text Colors — gray scale */
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }

/* Text Colors — palette */
.text-blue-400    { color: #60a5fa; }
.text-pink-400    { color: #f472b6; }
.text-emerald-400 { color: #34d399; }
.text-amber-400   { color: #fbbf24; }
.text-violet-400  { color: #a78bfa; }
.text-green-400   { color: #4ade80; }
.text-purple-400  { color: #c084fc; }
.text-red-300     { color: #fca5a5; }

/* Text Colors — with opacity */
.text-red-400\/70    { color: rgba(248,113,113,0.7); }
.text-violet-300\/70 { color: rgba(196,181,253,0.7); }

/* Background Colors — with opacity */
.bg-yellow-400\/10 { background-color: rgba(250,204,21,0.1); }
.bg-blue-400\/10   { background-color: rgba(96,165,250,0.1); }
.bg-purple-400\/10 { background-color: rgba(192,132,252,0.1); }
.bg-green-400\/10  { background-color: rgba(74,222,128,0.1); }
.bg-red-400\/10    { background-color: rgba(248,113,113,0.1); }
.bg-gray-400\/10   { background-color: rgba(156,163,175,0.1); }

/* Background Colors — solid */
.bg-violet-600 { background-color: #7c3aed; }

/* Grid — span */
.col-span-2 { grid-column: span 2 / span 2; }

/* Flex — alignment */
.items-stretch { align-items: stretch; }

/* Height — fractional */
.h-3\.5 { height: 14px; }

/* Padding — missing sizes */
.px-1   { padding-left: 4px;  padding-right: 4px; }
.pr-20  { padding-right: 80px; }
.pt-3   { padding-top: 12px; }
.py-0\.5 { padding-top: 2px; padding-bottom: 2px; }
.py-6   { padding-top: 24px; padding-bottom: 24px; }
.py-8   { padding-top: 32px; padding-bottom: 32px; }
.py-12  { padding-top: 48px; padding-bottom: 48px; }

/* Margin — missing sizes */
.ml-1 { margin-left: 4px; }

/* Position */
.right-2 { right: 8px; }

/* Border */
.border-t       { border-top: 1px solid; }
.border-white\/5 { border-color: rgba(255,255,255,0.05); }

/* Opacity */
.opacity-75 { opacity: 0.75; }
.opacity-80 { opacity: 0.8; }

/* Text Colors — additional grays */
.text-gray-200 { color: #e5e7eb; }

/* Text decoration */
.line-through { text-decoration: line-through; }

/* Padding — additional */
.p-1 { padding: 4px; }

/* Margin — additional */
.mt-0\.5 { margin-top: 2px; }

/* Min-width — arbitrary */
.min-w-\[70px\] { min-width: 70px; }

/* Hover states */
.hover\:text-red-300:hover   { color: #fca5a5; }
.hover\:text-red-400:hover   { color: #f87171; }
.hover\:bg-white\/5:hover    { background-color: rgba(255,255,255,0.05); }
.hover\:bg-violet-500:hover  { background-color: #8b5cf6; }
