:root {
    --ec-bg: #F4F7FB;
    --ec-surface: #FFFFFF;
    --ec-border: #E2E8F0;
    --ec-text: #0F172A;
    --ec-muted: #5B677D;
    --ec-teal: #0F766E;
    --ec-emerald: #059669;
    --ec-indigo: #4F46E5;
    --ec-coral: #EA580C;
    --ec-amber: #D97706;
    --ec-violet: #7C3AED;
    --ec-sky: #0284C7;
    --ec-radius: 20px;
    --ec-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
    --ec-shadow-hover: 0 20px 42px rgba(79, 70, 229, 0.13);
}

*, *::before, *::after { box-sizing: border-box; }
html, body {
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden;
    background: var(--ec-bg);
    color: var(--ec-text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

@keyframes ecFloatOrb {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(24px, -18px, 0) scale(1.06); }
}

@keyframes ecAurora {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes ecSlideUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes ecPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.65); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

/* Decorative background blobs */
.ec-bg-decor {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.ec-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.35;
    animation: ecFloatOrb 14s ease-in-out infinite;
}
.ec-blob-1 { width: 420px; height: 420px; background: #99F6E4; top: -120px; left: -90px; }
.ec-blob-2 { width: 380px; height: 380px; background: #FDBA74; top: 140px; right: -110px; animation-delay: -5s; }

/* Landing */
.ec-landing-body {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    background: linear-gradient(135deg, #0B192C 0%, #103730 50%, #1E1B4B 100%);
    color: #fff;
}
.ec-ambient-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.42;
    pointer-events: none;
    animation: ecFloatOrb 12s ease-in-out infinite;
}
.ec-orb-1 { width: 360px; height: 360px; background: #10B981; top: -80px; left: -60px; }
.ec-orb-2 { width: 340px; height: 340px; background: #F97316; bottom: -80px; right: -40px; animation-delay: -4s; }
.ec-orb-3 { width: 280px; height: 280px; background: #6366F1; top: 35%; right: 20%; animation-delay: -8s; }

.ec-landing-shell {
    position: relative;
    z-index: 2;
    max-width: 960px;
    width: 100%;
}
.ec-landing-hero {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(22px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 28px;
    padding: 44px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
    animation: ecSlideUp 0.55s ease;
}
.ec-brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
}
.ec-brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: linear-gradient(135deg, #F97316, #EA580C 50%, #4F46E5);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(234, 88, 12, 0.35);
}
.ec-landing-hero h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.15;
    margin: 20px 0 14px;
    letter-spacing: -0.025em;
}
.ec-landing-lead {
    font-size: 16px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.85);
    max-width: 760px;
    margin: 0 0 26px;
}
.ec-landing-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.ec-feature-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}
.ec-feat-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.ec-feat-card strong { display: block; font-size: 14px; margin-bottom: 4px; }
.ec-feat-card span { font-size: 12.5px; color: rgba(255,255,255,0.76); line-height: 1.45; display: block; }
.ec-feat-icon {
    width: 40px; height: 40px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ec-tone-emerald { background: rgba(16, 185, 129, 0.22); color: #6EE7B7; }
.ec-tone-indigo { background: rgba(99, 102, 241, 0.24); color: #A5B4FC; }
.ec-tone-coral { background: rgba(249, 115, 22, 0.24); color: #FDBA74; }

/* Topbar */
.ec-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}
.ec-topbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.ec-brand-btn {
    border: none;
    background: transparent;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 4px;
    text-align: left;
}
.ec-brand-txt strong { display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 18px; color: var(--ec-text); line-height: 1; }
.ec-brand-txt small { font-size: 11px; font-weight: 700; color: var(--ec-coral); }

.ec-desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #EEF2F8;
    padding: 5px;
    border-radius: 999px;
    overflow-x: auto;
}
.ec-nav-pill {
    border: none;
    background: transparent;
    color: var(--ec-muted);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 13px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.ec-nav-pill:hover { color: var(--ec-text); background: rgba(255,255,255,0.6); }
.ec-nav-pill.active {
    background: var(--ec-surface);
    color: var(--ec-indigo);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}
.ec-nav-pill-help.active { color: var(--ec-teal); }
.ec-nav-badge {
    background: var(--ec-coral);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 999px;
}

.ec-user-cluster { display: flex; align-items: center; gap: 8px; }
.ec-user-pill {
    border: 1px solid var(--ec-border);
    background: var(--ec-surface);
    border-radius: 999px;
    padding: 4px 12px 4px 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    color: var(--ec-text);
    transition: transform 0.16s ease;
}
.ec-user-pill:hover { transform: scale(1.02); }
.ec-user-pill img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.ec-logout-btn {
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid var(--ec-border);
    background: var(--ec-surface);
    color: var(--ec-muted);
    display: inline-flex; align-items: center; justify-content: center;
    text-decoration: none;
}

/* Main container & views */
.ec-main {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 22px 20px 100px;
}
.ec-view { display: none; animation: ecSlideUp 0.34s cubic-bezier(0.22, 1, 0.36, 1); }
.ec-view.active { display: block; }

/* Animated Aurora Hero */
.ec-aurora-hero {
    border-radius: 26px;
    padding: 30px 32px;
    color: #fff;
    background: linear-gradient(125deg, #0F766E 0%, #1D4ED8 45%, #6D28D9 78%, #EA580C 100%);
    background-size: 220% 220%;
    animation: ecAurora 14s ease infinite;
    display: grid;
    grid-template-columns: 1.5fr 0.9fr;
    gap: 24px;
    align-items: center;
    box-shadow: 0 20px 44px rgba(29, 78, 216, 0.22);
    margin-bottom: 26px;
}
.ec-welcome-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 12px;
    font-weight: 700;
}
.ec-live-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #34D399;
    animation: ecPulse 2s infinite;
}
.ec-aurora-left h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(24px, 3vw, 34px);
    margin: 12px 0 8px;
    letter-spacing: -0.02em;
}
.ec-aurora-left p {
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14.5px;
    line-height: 1.55;
    max-width: 650px;
}
.ec-quick-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ec-qa-btn {
    border: 1px solid rgba(255,255,255,0.28);
    background: rgba(255,255,255,0.14);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 9px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: transform 0.18s ease, background 0.18s ease;
}
.ec-qa-btn:hover { transform: translateY(-2px); background: rgba(255,255,255,0.24); }
.ec-qa-white { background: #fff; color: #0F172A; border-color: #fff; font-weight: 700; }
.ec-qa-white:hover { background: #F8FAFC; }

.ec-bill-spotlight {
    background: rgba(15, 23, 42, 0.34);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 20px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ec-spot-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.8); font-weight: 700; }
.ec-spot-amount { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 36px; font-weight: 800; line-height: 1.1; }
.ec-spot-amount small { font-size: 15px; font-weight: 600; opacity: 0.85; margin-left: 3px; }
.ec-spot-meta { font-size: 13px; color: #A7F3D0; font-weight: 600; }
.ec-spot-link {
    margin-top: 8px;
    align-self: flex-start;
    border: none;
    background: rgba(255,255,255,0.18);
    color: #fff;
    padding: 7px 12px;
    border-radius: 9px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
}

/* Section Headers & Member Pills */
.ec-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.ec-section-head h2 { margin: 0 0 4px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 21px; }
.ec-section-head p { margin: 0; color: var(--ec-muted); font-size: 13.5px; }

.ec-member-pills, .ec-cat-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    max-width: 100%;
}
.ec-mem-pill, .ec-cat-pill {
    border: 1px solid var(--ec-border);
    background: var(--ec-surface);
    color: var(--ec-text);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: all 0.18s ease;
}
.ec-mem-pill.active, .ec-cat-pill.active {
    background: var(--ec-indigo);
    border-color: var(--ec-indigo);
    color: #fff;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.25);
}
.ec-mem-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* Service Cards */
.ec-services-grid, .ec-boutique-grid, .ec-family-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 18px;
}

.ec-svc-card {
    background: var(--ec-surface);
    border: 1px solid var(--ec-border);
    border-radius: var(--ec-radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: var(--ec-shadow);
    position: relative;
    overflow: hidden;
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease;
    cursor: pointer;
}
.ec-svc-card:hover { transform: translateY(-4px); box-shadow: var(--ec-shadow-hover); }
.ec-svc-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: var(--svc-accent, #4F46E5);
}
.ec-svc-card[data-theme="emerald"] { --svc-accent: linear-gradient(90deg, #059669, #10B981); }
.ec-svc-card[data-theme="indigo"]  { --svc-accent: linear-gradient(90deg, #4F46E5, #818CF8); }
.ec-svc-card[data-theme="coral"]   { --svc-accent: linear-gradient(90deg, #EA580C, #FB923C); }
.ec-svc-card[data-theme="amber"]   { --svc-accent: linear-gradient(90deg, #D97706, #FBBF24); }
.ec-svc-card[data-theme="teal"]    { --svc-accent: linear-gradient(90deg, #0D9488, #2DD4BF); }
.ec-svc-card[data-theme="sky"]     { --svc-accent: linear-gradient(90deg, #0284C7, #38BDF8); }
.ec-svc-card[data-theme="violet"]  { --svc-accent: linear-gradient(90deg, #7C3AED, #C084FC); }

.ec-svc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ec-svc-icon {
    width: 44px; height: 44px; border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #EEF2FF; color: var(--ec-indigo); flex-shrink: 0;
}
.ec-svc-card[data-theme="emerald"] .ec-svc-icon { background: #ECFDF5; color: #059669; }
.ec-svc-card[data-theme="coral"] .ec-svc-icon { background: #FFF7ED; color: #EA580C; }
.ec-svc-card[data-theme="amber"] .ec-svc-icon { background: #FFFBEB; color: #D97706; }
.ec-svc-card[data-theme="teal"] .ec-svc-icon { background: #F0FDFA; color: #0D9488; }

.ec-badges-row { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ec-pill {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: 999px;
    font-size: 11.5px; font-weight: 700;
}
.ec-pill-emerald { background: #DCFCE7; color: #166534; }
.ec-pill-indigo { background: #E0E7FF; color: #3730A3; }
.ec-pill-amber { background: #FEF3C7; color: #92400E; }
.ec-pill-coral { background: #FFEDD5; color: #9A3412; }
.ec-pill-sky { background: #E0F2FE; color: #075985; }

.ec-svc-title { margin: 0; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 17px; font-weight: 800; line-height: 1.3; }
.ec-svc-sub { margin: 4px 0 0; font-size: 12.5px; color: var(--ec-muted); }
.ec-svc-tech {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px;
    color: #334155;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    padding: 6px 10px;
    border-radius: 9px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Circular Gauge inside card */
.ec-gauge-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #F8FAFC;
}
.ec-ring-svg { width: 54px; height: 54px; transform: rotate(-90deg); flex-shrink: 0; }
.ec-ring-bg { fill: none; stroke: #E2E8F0; stroke-width: 5.5; }
.ec-ring-fg {
    fill: none;
    stroke: var(--ec-indigo);
    stroke-width: 5.5;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.ec-svc-card[data-theme="emerald"] .ec-ring-fg { stroke: #10B981; }
.ec-svc-card[data-theme="coral"] .ec-ring-fg { stroke: #F97316; }
.ec-svc-card[data-theme="teal"] .ec-ring-fg { stroke: #14B8A6; }

.ec-gauge-info strong { display: block; font-size: 13.5px; }
.ec-gauge-info span { font-size: 12px; color: var(--ec-muted); }

/* Retired Product Notice inside Customer Space */
.ec-retired-banner {
    background: linear-gradient(90deg, #FFFBEB, #FEF3C7);
    border: 1px solid #F59E0B;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 12px;
    color: #92400E;
    line-height: 1.45;
}
.ec-retired-banner strong { display: block; color: #78350F; margin-bottom: 2px; }

.ec-svc-foot {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.ec-svc-price { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 19px; font-weight: 800; color: var(--ec-text); }
.ec-svc-price small { font-size: 12px; font-weight: 500; color: var(--ec-muted); }

/* Page Banners */
.ec-page-banner {
    border-radius: 24px;
    padding: 26px 28px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}
.ec-banner-teal   { background: linear-gradient(120deg, #0F766E, #145346); }
.ec-banner-indigo { background: linear-gradient(120deg, #4338CA, #6D28D9); }
.ec-banner-coral  { background: linear-gradient(120deg, #C2410C, #EA580C); }
.ec-banner-violet { background: linear-gradient(120deg, #6D28D9, #DB2777); }
.ec-banner-amber  { background: linear-gradient(120deg, #B45309, #EA580C); }
.ec-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; opacity: 0.85; }
.ec-page-banner h2 { margin: 6px 0 6px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 24px; }
.ec-page-banner p { margin: 0; font-size: 14px; opacity: 0.92; max-width: 760px; line-height: 1.55; }

/* Buttons */
.ec-btn {
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 10px 16px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.18s ease;
}
.ec-btn-lg { padding: 13px 22px; font-size: 14.5px; border-radius: 14px; }
.ec-btn-full { width: 100%; }
.ec-btn-vibrant { background: linear-gradient(135deg, #F97316, #EA580C 45%, #4F46E5); color: #fff; box-shadow: 0 8px 20px rgba(79,70,229,0.25); }
.ec-btn-vibrant:hover { transform: translateY(-1px); filter: brightness(1.05); }
.ec-btn-dark { background: #0F172A; color: #fff; }
.ec-btn-white { background: #fff; color: #0F172A; }
.ec-btn-glass { background: rgba(255,255,255,0.14); color: #fff; border-color: rgba(255,255,255,0.28); }
.ec-btn-glass-dark { background: rgba(15,23,42,0.25); color: #fff; border-color: rgba(255,255,255,0.3); }
.ec-btn-ghost { background: var(--ec-surface); color: var(--ec-text); border-color: var(--ec-border); }
.ec-btn-ghost:hover { background: #F1F5F9; }
.ec-btn-danger { background: #FEF2F2; color: #B91C1C; border-color: #FECACA; }
.ec-btn-paypal { background: #0070BA; color: #fff; font-size: 14.5px; padding: 13px 18px; }
.ec-btn-paypal:hover { background: #005EA6; }

/* Cards, Billing, Forms */
.ec-card { background: var(--ec-surface); border: 1px solid var(--ec-border); border-radius: var(--ec-radius); box-shadow: var(--ec-shadow); }
.ec-card-pad { padding: 24px; }
.ec-muted { color: var(--ec-muted); font-size: 13px; }
.ec-stack-gap { display: flex; flex-direction: column; gap: 18px; }

.ec-billing-grid, .ec-account-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.95fr;
    gap: 20px;
    align-items: start;
}
.ec-card-head-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.ec-form-stack { display: flex; flex-direction: column; gap: 14px; }
.ec-form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ec-field { display: flex; flex-direction: column; gap: 6px; }
.ec-field span { font-size: 12.5px; font-weight: 700; color: #334155; }
.ec-field input, .ec-field textarea, .ec-select {
    padding: 10px 13px;
    border-radius: 11px;
    border: 1px solid #CBD5E1;
    font-family: inherit;
    font-size: 14px;
    background: #fff;
    color: var(--ec-text);
    width: 100%;
}
.ec-check-row { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; cursor: pointer; }
.ec-check-row input { margin-top: 3px; }

/* SEPA 5 / 10 / 15 Day Picker */
.ec-day-picker {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.ec-day-card {
    border: 2px solid var(--ec-border);
    background: #F8FAFC;
    border-radius: 14px;
    padding: 12px 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    transition: all 0.18s ease;
}
.ec-day-card strong { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 17px; color: var(--ec-text); }
.ec-day-card span { font-size: 11.5px; color: var(--ec-muted); }
.ec-day-card.active {
    border-color: var(--ec-emerald);
    background: #ECFDF5;
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.15);
}
.ec-day-card.active strong { color: #065F46; }

.ec-rum-box {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 12.5px;
    color: #166534;
}

.ec-paypal-status {
    background: #F0F9FF;
    border: 1px solid #BAE6FD;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13px;
    color: #0C4A6E;
    margin-bottom: 14px;
}

.ec-invoices-list { display: flex; flex-direction: column; gap: 10px; }
.ec-inv-row {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 12px 14px; border-radius: 12px; background: #F8FAFC; border: 1px solid var(--ec-border);
}

/* Orders & Viple Delivery */
.ec-orders-stack { display: flex; flex-direction: column; gap: 16px; }
.ec-order-card {
    background: var(--ec-surface);
    border: 1px solid var(--ec-border);
    border-radius: var(--ec-radius);
    padding: 22px;
    box-shadow: var(--ec-shadow);
}
.ec-stepper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 16px 0;
}
.ec-step {
    padding: 8px 10px;
    border-radius: 10px;
    background: #F1F5F9;
    color: var(--ec-muted);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}
.ec-step.done { background: #DCFCE7; color: #166534; }
.ec-step.current { background: #FFEDD5; color: #9A3412; font-weight: 800; }
.ec-book-strip { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.ec-book-chip {
    display: flex; align-items: center; gap: 10px;
    background: #F8FAFC; border: 1px solid var(--ec-border);
    border-radius: 12px; padding: 8px 12px;
}
.ec-book-chip img { width: 38px; height: 54px; object-fit: cover; border-radius: 6px; background: #E2E8F0; }

/* Avatar Cropper */
.ec-cropper-stage {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}
#avatar-canvas {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 4px solid var(--ec-indigo);
    box-shadow: 0 12px 28px rgba(79,70,229,0.2);
    cursor: grab;
    background: #E2E8F0;
    touch-action: none;
}
.ec-cropper-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 18px; }
.ec-zoom-wrap { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
.ec-presets-title { font-size: 12.5px; font-weight: 700; color: var(--ec-muted); margin-bottom: 10px; }
.ec-presets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
    gap: 10px;
}
.ec-preset-btn {
    border: 2px solid transparent;
    background: #F8FAFC;
    border-radius: 14px;
    padding: 4px;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
}
.ec-preset-btn:hover { transform: scale(1.06); border-color: var(--ec-indigo); }
.ec-preset-btn img { width: 100%; aspect-ratio: 1; border-radius: 10px; object-fit: cover; display: block; }

/* Embedded Academy Course */
.ec-help-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.ec-help-header h2 { margin: 4px 0; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 23px; }
.ec-help-header p { margin: 0; color: var(--ec-muted); font-size: 14px; }
.ec-academy-frame-card {
    background: var(--ec-surface);
    border: 1px solid var(--ec-border);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--ec-shadow);
    height: calc(100dvh - 210px);
    min-height: 640px;
}
#academy-embed-frame {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Service Detail Drawer & Modals */
.ec-drawer-backdrop, .ec-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: flex-end;
}
.ec-modal-backdrop { align-items: center; justify-content: center; padding: 16px; }
.ec-drawer-backdrop[hidden], .ec-modal-backdrop[hidden] { display: none !important; }

.ec-drawer {
    width: 100%;
    max-width: 620px;
    height: 100dvh;
    background: var(--ec-surface);
    display: flex;
    flex-direction: column;
    box-shadow: -16px 0 48px rgba(15,23,42,0.22);
    animation: ecSlideUp 0.25s ease;
}
.ec-drawer-head {
    padding: 18px 22px;
    border-bottom: 1px solid var(--ec-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.ec-drawer-head h3 { margin: 4px 0 0; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 19px; }
.ec-close-circle {
    width: 36px; height: 36px; border-radius: 50%;
    border: none; background: #F1F5F9; font-size: 22px; cursor: pointer;
}
.ec-drawer-body { padding: 20px 22px 40px; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; }

.ec-modal {
    width: 100%;
    max-width: 540px;
    max-height: 90dvh;
    overflow-y: auto;
    background: var(--ec-surface);
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.28);
}
.ec-ord-summary { background: #F8FAFC; border: 1px solid var(--ec-border); border-radius: 14px; padding: 14px; }
.ec-perm-box { background: #F8FAFC; border: 1px solid var(--ec-border); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }

.ec-console-box {
    background: #0F172A;
    color: #A7F3D0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    line-height: 1.55;
    padding: 14px;
    border-radius: 12px;
    overflow-x: auto;
}

/* Request Banner */
.ec-req-banner {
    background: linear-gradient(90deg, #EEF2FF, #FDF4FF);
    border: 1px solid #C7D2FE;
    border-radius: 18px;
    padding: 16px 20px;
    margin-bottom: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ec-req-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    background: #fff;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #E0E7FF;
}

/* Mobile bottom nav */
.ec-mobile-bottom-nav { display: none; }

.ec-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 140;
    background: #0F172A;
    color: #fff;
    padding: 13px 18px;
    border-radius: 14px;
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: 0 14px 36px rgba(0,0,0,0.28);
}

@media (max-width: 1080px) {
    .ec-desktop-nav { display: none; }
    .ec-aurora-hero { grid-template-columns: 1fr; padding: 22px; }
    .ec-billing-grid, .ec-account-grid { grid-template-columns: 1fr; }
    .ec-mobile-bottom-nav {
        position: fixed;
        bottom: 0; left: 0; right: 0;
        z-index: 60;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(16px);
        border-top: 1px solid var(--ec-border);
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    }
    .ec-mob-tab {
        border: none;
        background: transparent;
        color: var(--ec-muted);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        font-size: 10.5px;
        font-weight: 700;
        padding: 4px 2px;
        cursor: pointer;
    }
    .ec-mob-tab.active { color: var(--ec-indigo); }
}

@media (max-width: 640px) {
    .ec-landing-hero { padding: 24px 18px; }
    .ec-main { padding: 14px 12px 92px; }
    .ec-topbar-inner { padding: 8px 12px; }
    #top-user-name { display: none; }
    .ec-user-pill { padding: 3px; }
    .ec-services-grid, .ec-boutique-grid, .ec-family-grid { grid-template-columns: 1fr; }
    .ec-form-2col { grid-template-columns: 1fr; }
    .ec-stepper { grid-template-columns: 1fr 1fr; }
    .ec-page-banner { padding: 18px; }
    .ec-card-pad { padding: 16px; }
    .ec-toast { left: 12px; right: 12px; bottom: 76px; }
}
