/* ═══════════════════════════════════════════════════════════════
   B-HAPPY DESIGN SYSTEM
   A citrusy, sun-drenched visual language for turning frowns upside down.
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito:wght@400;500;600;700;800&display=swap');

/* ── CSS VARIABLES ─────────────────────────────────────────── */
:root {
    --sun:            #FFD43B;
    --sun-hover:      #FCC419;
    --sun-light:      #FFF3BF;
    --sun-lighter:    #FFFBE6;
    --sun-glow:       rgba(255, 212, 59, 0.25);

    --mint:           #51CF66;
    --mint-hover:     #40C057;
    --mint-light:     #D3F9D8;

    --coral:          #FF6B6B;
    --coral-hover:    #FA5252;
    --coral-light:    #FFE3E3;

    --tangerine:      #FF922B;
    --tangerine-light:#FFE8CC;

    --sky:            #74C0FC;
    --sky-light:      #D0EBFF;

    --bg-body:        #FFFCF0;
    --bg:             #FFFFFF;
    --bg-secondary:   #FFF8E1;
    --bg-hover:       #FFF3BF;
    --bg-sidebar:     linear-gradient(180deg, #FFF8E1 0%, #FFF3BF 100%);
    --bg-card:        #FFFFFF;
    --bg-card-hover:  #FFFEF5;
    --bg-hero:        linear-gradient(135deg, #FFFBE6 0%, #FFF3BF 40%, #D3F9D8 100%);

    --text-primary:   #1A1A2E;
    --text-secondary: #495057;
    --text-muted:     #868E96;
    --text-light:     #ADB5BD;

    --border:         #FFE066;
    --border-light:   #FFF3BF;
    --border-subtle:  #E9ECEF;

    --shadow-xs:      0 1px 3px rgba(255, 212, 59, 0.08);
    --shadow-sm:      0 2px 8px rgba(255, 212, 59, 0.12);
    --shadow-md:      0 4px 20px rgba(255, 212, 59, 0.15);
    --shadow-lg:      0 8px 40px rgba(255, 212, 59, 0.18);
    --shadow-xl:      0 20px 60px rgba(255, 212, 59, 0.22);
    --shadow-card:    0 2px 12px rgba(0, 0, 0, 0.04), 0 1px 4px rgba(255, 212, 59, 0.1);
    --shadow-float:   0 12px 40px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(255, 212, 59, 0.15);

    --sidebar-width:  280px;
    --header-height:  72px;
    --content-max:    1200px;

    --radius: 12px;
    --r-sm:  8px;
    --r-md:  12px;
    --r-lg:  16px;
    --r-xl:  24px;
    --r-2xl: 32px;
    --r-full:9999px;

    --t-fast:    150ms ease;
    --t-normal:  250ms ease;
    --t-smooth:  350ms cubic-bezier(0.4, 0, 0.2, 1);
    --t-bounce:  500ms cubic-bezier(0.34, 1.56, 0.64, 1);
    --t-spring:  600ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ── RESET & BASE ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Nunito', sans-serif;
    font-weight: 500;
    color: var(--text-primary);
    background-color: var(--bg-body);
    line-height: 1.6;
    -webkit-tap-highlight-color: transparent;
}

/* Prevent horizontal scroll on non-pipeline pages */
.page-centered,
.landing-page { overflow-x: hidden; }

body::before {
    content: '';
    position: fixed;
    top: -50%; right: -30%;
    width: 80vw; height: 80vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 212, 59, 0.06) 0%, transparent 70%);
    pointer-events: none; z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    bottom: -40%; left: -20%;
    width: 60vw; height: 60vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(81, 207, 102, 0.05) 0%, transparent 70%);
    pointer-events: none; z-index: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

a { color: var(--tangerine); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--coral); }
img { max-width: 100%; height: auto; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--sun-lighter); }
::-webkit-scrollbar-thumb { background: var(--sun); border-radius: var(--r-full); }
::-webkit-scrollbar-thumb:hover { background: var(--sun-hover); }

/* ── LAYOUT: PORTAL ────────────────────────────────────────── */
.portal-wrapper {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* ── SIDEBAR ───────────────────────────────────────────────── */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 2px solid var(--border-light);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
    overflow-y: auto;
    transition: transform var(--t-smooth);
}

.sidebar-brand {
    padding: 24px 24px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid rgba(255, 224, 102, 0.4);
}

.sidebar-brand-icon {
    width: 44px; height: 44px;
    border-radius: var(--r-lg);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    filter: drop-shadow(0 4px 12px rgba(255, 146, 43, 0.3));
    animation: float 3s ease-in-out infinite;
    flex-shrink: 0;
}

img.sidebar-brand-icon {
    object-fit: contain;
    background: none;
}

.sidebar-brand-text {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.5rem; font-weight: 700;
    background: linear-gradient(135deg, var(--tangerine) 0%, var(--coral) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-nav {
    padding: 16px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-section-label {
    font-family: 'Fredoka', sans-serif;
    font-size: 0.7rem; font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    padding: 16px 12px 8px;
}

.sidebar-link {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px;
    border-radius: var(--r-lg);
    color: var(--text-secondary);
    font-weight: 600; font-size: 0.95rem;
    transition: all var(--t-normal);
    position: relative;
    text-decoration: none;
}

.sidebar-link:hover {
    background: rgba(255, 212, 59, 0.2);
    color: var(--text-primary);
    transform: translateX(4px);
}

.sidebar-link.active {
    background: var(--sun);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.sidebar-link.active:hover { transform: none; }

.sidebar-link-icon {
    width: 22px; height: 22px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; flex-shrink: 0;
}

.sidebar-link-badge {
    margin-left: auto;
    background: var(--coral);
    color: white;
    font-size: 0.7rem; font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--r-full);
    min-width: 22px; text-align: center;
    animation: pulse-badge 2s ease-in-out infinite;
    transition: transform 0.3s var(--t-spring);
}

.sidebar-footer {
    padding: 16px;
    border-top: 2px solid rgba(255, 224, 102, 0.4);
}

/* ── GLOBAL LANGUAGE SWITCHER (floating, all pages) ──────── */
.global-lang-switch {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    background: #fff;
    border-radius: var(--r-full);
    padding: 4px;
    gap: 4px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10), 0 0 0 1px rgba(0,0,0,0.04);
    backdrop-filter: blur(8px);
}

.global-lang-btn {
    padding: 7px 14px;
    border: none;
    border-radius: var(--r-full);
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--t-normal);
    background: transparent;
    color: var(--text-muted);
}

.global-lang-btn.active {
    background: var(--sun);
    color: var(--text-primary);
    box-shadow: var(--shadow-xs);
}

.global-lang-btn:hover:not(.active) {
    background: var(--sun-lighter);
    color: var(--text-secondary);
}


/* ── MAIN CONTENT ──────────────────────────────────────────── */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    position: relative;
}

.main-header {
    height: var(--header-height);
    background: rgba(255, 252, 240, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0; z-index: 50;
}

.main-header-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.25rem; font-weight: 600;
}

.main-header-actions {
    display: flex; align-items: center; gap: 12px;
}

.main-body {
    padding: 32px;
    max-width: var(--content-max);
    margin: 0 auto;
    overflow-x: hidden;
}
.main-body-full {
    max-width: none;
    overflow-x: auto;
}

/* ── NO-SIDEBAR LAYOUT ─────────────────────────────────────── */
.page-centered {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 32px;
    position: relative;
}

.page-centered::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg-hero);
    z-index: -1;
}

/* ── CARDS ─────────────────────────────────────────────────── */
.card-happy {
    background: var(--bg-card);
    border-radius: var(--r-xl);
    border: 2px solid var(--border-light);
    box-shadow: var(--shadow-card);
    padding: 24px;
    transition: all var(--t-smooth);
}

.card-happy:hover {
    box-shadow: var(--shadow-float);
    border-color: var(--border);
    transform: translateY(-2px);
}

.card-happy-static {
    background: var(--bg-card);
    border-radius: var(--r-xl);
    border: 2px solid var(--border-light);
    box-shadow: var(--shadow-card);
    padding: 24px;
}

/* ── PROFILE CARD ──────────────────────────────────────────── */
.profile-card {
    background: linear-gradient(135deg, var(--sun-lighter) 0%, #FFFFFF 60%, var(--mint-light) 100%);
    border-radius: var(--r-2xl);
    border: 2px solid var(--border);
    padding: 32px;
    display: flex; align-items: center; gap: 24px;
    box-shadow: var(--shadow-md);
    position: relative; overflow: hidden;
    margin-bottom: 32px;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: -30px; right: -30px;
    width: 120px; height: 120px;
    background: radial-gradient(circle, rgba(255, 212, 59, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.profile-avatar {
    width: 80px; height: 80px;
    border-radius: var(--r-xl);
    object-fit: cover;
    border: 3px solid var(--sun);
    box-shadow: 0 4px 16px rgba(255, 212, 59, 0.3);
    flex-shrink: 0;
}

.profile-avatar-placeholder {
    width: 80px; height: 80px;
    border-radius: var(--r-xl);
    background: linear-gradient(135deg, var(--sun) 0%, var(--tangerine) 100%);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Fredoka', sans-serif;
    font-size: 2rem; font-weight: 700;
    color: white; flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(255, 212, 59, 0.3);
}

.profile-info { flex: 1; }

.profile-name {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.5rem; font-weight: 700;
    margin-bottom: 4px;
}

.profile-rating {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 4px;
}

.profile-rating-number {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.25rem; font-weight: 700;
    color: var(--tangerine);
}

.profile-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ── STARS ──────────────────────────────────────────────────── */
.stars { display: inline-flex; gap: 2px; }
.star { font-size: 1rem; color: var(--text-light); transition: color var(--t-fast); }
.star.filled { color: var(--sun); }
.stars-large .star { font-size: 1.25rem; }

/* ── FILTER BAR ────────────────────────────────────────────── */
.filter-bar {
    background: var(--bg-card);
    border-radius: var(--r-xl);
    border: 2px solid var(--border-light);
    padding: 16px 20px;
    box-shadow: var(--shadow-xs);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.filter-chip {
    padding: 6px 14px;
    border: 2px solid var(--border-light);
    border-radius: var(--r-full);
    background: transparent;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--t-normal);
    white-space: nowrap;
}

.filter-chip:hover {
    border-color: var(--border);
    color: var(--text-primary);
    background: var(--sun-lighter);
}

.filter-chip.active {
    background: var(--sun);
    border-color: var(--sun);
    color: var(--text-primary);
    box-shadow: var(--shadow-xs);
}

.filter-select {
    padding: 6px 28px 6px 12px;
    border: 2px solid var(--border-light);
    border-radius: var(--r-full);
    background: var(--bg-card);
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23868E96' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: border-color var(--t-fast);
}

.filter-select:focus {
    border-color: var(--sun);
}

.filter-search-wrap {
    flex: 1;
    min-width: 180px;
}

.filter-search {
    width: 100%;
    padding: 8px 16px;
    border: 2px solid var(--border-light);
    border-radius: var(--r-full);
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
    background: var(--bg-card);
    outline: none;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.filter-search:focus {
    border-color: var(--sun);
    box-shadow: 0 0 0 3px var(--sun-glow);
}

.filter-search::placeholder {
    color: var(--text-light);
}

.review-card.filter-hidden {
    display: none !important;
}

/* ── REVIEW CARDS ──────────────────────────────────────────── */
.review-list {
    display: flex; flex-direction: column; gap: 16px;
}

.review-card {
    background: var(--bg-card);
    border-radius: var(--r-xl);
    border: 2px solid var(--border-light);
    padding: 20px 28px;
    display: flex; align-items: flex-start; gap: 16px;
    transition: all var(--t-smooth);
    box-shadow: var(--shadow-xs);
    position: relative; overflow: hidden;
}

.review-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--coral);
    border-radius: 0 4px 4px 0;
    transition: width var(--t-normal);
}

.review-card:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.review-card:hover::before { width: 6px; }

.review-card.in-cart {
    background: var(--sun-lighter);
    border-color: var(--sun);
    border-left: 4px solid var(--sun);
}

.review-card.in-cart::before { background: var(--sun); width: 4px; }

.review-card.in-cart:hover {
    transform: none;
    box-shadow: var(--shadow-xs);
}

.review-card.purchased::before { background: var(--mint); }

.review-author-avatar {
    width: 44px; height: 44px;
    border-radius: var(--r-md);
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--border-light);
}

.review-author-initial {
    width: 44px; height: 44px;
    border-radius: var(--r-md);
    background: linear-gradient(135deg, var(--coral-light) 0%, var(--tangerine-light) 100%);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600; font-size: 1.1rem;
    color: var(--coral); flex-shrink: 0;
}

.review-body { flex: 1; min-width: 0; }

.review-header {
    display: flex; align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    flex-wrap: wrap; gap: 8px;
}

.review-author-name { font-weight: 700; font-size: 0.95rem; }
.review-date { font-size: 0.8rem; color: var(--text-muted); }
.review-stars { margin-bottom: 8px; }

.review-text {
    color: var(--text-secondary);
    font-size: 0.9rem; line-height: 1.5;
}

.review-text-empty {
    font-style: italic;
    color: var(--text-light);
}

.review-actions {
    flex-shrink: 0;
    display: flex; align-items: flex-start;
    padding-top: 4px;
}

.review-action-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.review-price-tag {
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
}

/* ── FLOATING CART BAR ─────────────────────────────────────── */
.floating-cart-bar {
    position: fixed;
    bottom: 0; left: var(--sidebar-width); right: 0;
    z-index: 101;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 2px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    animation: slide-up 0.3s ease forwards;
}

.floating-cart-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--content-max);
    margin: 0 auto;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.95rem;
}

.floating-cart-action {
    background: linear-gradient(135deg, var(--sun) 0%, var(--sun-hover) 100%);
    padding: 10px 24px;
    border-radius: var(--r-full);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
    box-shadow: 0 3px 12px rgba(255, 212, 59, 0.35);
}

@keyframes slide-up {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.portal-wrapper .global-lang-switch {
    bottom: 80px;
}

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn-happy {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--r-full);
    font-family: 'Nunito', sans-serif;
    font-weight: 700; font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--t-bounce);
    text-decoration: none;
    position: relative; overflow: hidden;
    white-space: nowrap;
}

.btn-happy:active { transform: scale(0.96); }

.btn-primary {
    background: linear-gradient(135deg, var(--sun) 0%, var(--sun-hover) 100%);
    color: var(--text-primary);
    box-shadow: 0 4px 16px rgba(255, 212, 59, 0.35);
}
.btn-primary:hover {
    box-shadow: 0 6px 24px rgba(255, 212, 59, 0.5);
    transform: translateY(-2px);
    color: var(--text-primary);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--mint) 0%, var(--mint-hover) 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(81, 207, 102, 0.3);
}
.btn-secondary:hover {
    box-shadow: 0 6px 24px rgba(81, 207, 102, 0.45);
    transform: translateY(-2px);
    color: white;
}

.btn-accent {
    background: linear-gradient(135deg, var(--coral) 0%, var(--coral-hover) 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.3);
}
.btn-accent:hover {
    box-shadow: 0 6px 24px rgba(255, 107, 107, 0.45);
    transform: translateY(-2px);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text-primary);
}
.btn-outline:hover {
    background: var(--sun-lighter);
    border-color: var(--sun);
    transform: translateY(-2px);
    color: var(--text-primary);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 8px 16px;
}
.btn-ghost:hover {
    background: var(--sun-lighter);
    color: var(--text-primary);
}

.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.1rem; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: var(--r-md); }

.btn-cart-add {
    background: linear-gradient(135deg, var(--sun) 0%, var(--tangerine) 100%);
    color: white;
    padding: 10px 20px;
    font-size: 0.85rem;
    box-shadow: 0 3px 12px rgba(255, 146, 43, 0.3);
}
.btn-cart-add:hover {
    box-shadow: 0 5px 20px rgba(255, 146, 43, 0.45);
    transform: translateY(-2px) scale(1.03);
    color: white;
}

.btn-cart-remove {
    background: var(--bg-body);
    border: 2px solid var(--border-subtle);
    color: var(--text-muted);
    padding: 10px 20px;
    font-size: 0.85rem;
}
.btn-cart-remove:hover {
    border-color: var(--coral);
    color: var(--coral);
    background: var(--coral-light);
}

.btn-checkout {
    background: linear-gradient(135deg, var(--mint) 0%, #2ECC71 100%);
    color: white;
    padding: 16px 40px;
    font-size: 1.1rem;
    box-shadow: 0 6px 24px rgba(46, 204, 113, 0.35);
    letter-spacing: 0.02em;
}
.btn-checkout:hover {
    box-shadow: 0 8px 32px rgba(46, 204, 113, 0.5);
    transform: translateY(-3px);
    color: white;
}

/* ── FORM INPUTS ───────────────────────────────────────────── */
.input-happy {
    width: 100%;
    max-width: 480px;
    padding: 14px 20px;
    border: 2px solid var(--border-light);
    border-radius: var(--r-lg);
    font-family: 'Nunito', sans-serif;
    font-size: 1rem; font-weight: 500;
    color: var(--text-primary);
    background: var(--bg-card);
    transition: all var(--t-normal);
    outline: none;
}

.input-happy:focus {
    border-color: var(--sun);
    box-shadow: 0 0 0 4px var(--sun-glow);
}

.input-happy::placeholder { color: var(--text-light); }

.input-label {
    display: block;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600; font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.input-group { margin-bottom: 20px; }

.input-error {
    border-color: var(--coral) !important;
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.15) !important;
}

.input-error-text {
    color: var(--coral);
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 6px;
}

.input-code {
    text-align: center;
    font-family: 'Fredoka', sans-serif;
    font-size: 2rem; font-weight: 700;
    letter-spacing: 0.5em;
    padding: 16px;
}

/* ── BADGES ────────────────────────────────────────────────── */
.badge-happy {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 12px;
    border-radius: var(--r-full);
    font-size: 0.75rem; font-weight: 700;
    white-space: nowrap;
}

.badge-active   { background: var(--mint-light); color: var(--mint-hover); }
.badge-purchased{ background: var(--sky-light); color: #339AF0; }
.badge-progress, .badge-in-progress { background: var(--tangerine-light); color: var(--tangerine); }
.badge-deleted  { background: var(--mint-light); color: var(--mint); }
.badge-failed   { background: var(--coral-light); color: var(--coral); }
.badge-paid     { background: var(--mint-light); color: var(--mint); }
.badge-pending  { background: var(--sun-light); color: var(--sun-hover); }

/* ── STAT CARDS ────────────────────────────────────────────── */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
    max-width: 900px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--r-xl);
    border: 2px solid var(--border-light);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-xs);
    transition: all var(--t-smooth);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border);
}

.stat-icon {
    width: 48px; height: 48px;
    margin: 0 auto 12px;
    border-radius: var(--r-lg);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
}

.stat-icon-sun      { background: var(--sun-light); }
.stat-icon-mint     { background: var(--mint-light); }
.stat-icon-coral    { background: var(--coral-light); }
.stat-icon-tangerine{ background: var(--tangerine-light); }

.stat-number {
    font-family: 'Fredoka', sans-serif;
    font-size: 2rem; font-weight: 700;
    color: var(--text-primary);
    line-height: 1; margin-bottom: 4px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* ── TABLE ─────────────────────────────────────────────────── */
.table-happy {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-happy thead th {
    background: var(--sun-lighter);
    padding: 14px 16px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600; font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: left;
    border-bottom: 2px solid var(--border);
}

.table-happy thead th:first-child { border-radius: var(--r-lg) 0 0 0; }
.table-happy thead th:last-child  { border-radius: 0 var(--r-lg) 0 0; }

.table-happy tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
    vertical-align: middle;
}

.table-happy tbody tr { transition: background var(--t-fast); }
.table-happy tbody tr:hover { background: var(--sun-lighter); }
.table-happy tbody tr:last-child td { border-bottom: none; }

/* ── ADD-ON CARDS ──────────────────────────────────────────── */
.addon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.addon-card {
    background: var(--bg-card);
    border-radius: var(--r-2xl);
    border: 2px solid var(--border-light);
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: all var(--t-spring);
    position: relative; overflow: hidden;
}

.addon-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--sun) 0%, var(--tangerine) 50%, var(--coral) 100%);
    opacity: 0;
    transition: opacity var(--t-normal);
}

.addon-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border);
}

.addon-card:hover::before { opacity: 1; }

.addon-icon {
    width: 64px; height: 64px;
    margin: 0 auto 16px;
    border-radius: var(--r-xl);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
}

.addon-icon-shield  { background: linear-gradient(135deg, var(--sky-light), var(--mint-light)); }
.addon-icon-reply   { background: linear-gradient(135deg, var(--sun-light), var(--tangerine-light)); }
.addon-icon-collect { background: linear-gradient(135deg, var(--mint-light), var(--sun-light)); }

.addon-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.15rem; font-weight: 600;
    margin-bottom: 12px;
}

.addon-desc {
    color: var(--text-secondary);
    font-size: 0.9rem; line-height: 1.6;
    margin-bottom: 20px;
}

.addon-tag {
    display: inline-block;
    background: var(--sun-lighter);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    padding: 4px 14px;
    font-size: 0.75rem; font-weight: 700;
    color: var(--tangerine);
    margin-bottom: 20px;
}

.addon-card { cursor: pointer; }
.addon-more-btn { pointer-events: none; margin-top: auto; }

/* ── ADD-ON SLIDER ─────────────────────────────────────────── */
.addon-slider-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
}
.addon-slider-overlay.open { opacity: 1; pointer-events: auto; }

.addon-slider {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(460px, 90vw);
    background: var(--bg-card);
    box-shadow: -8px 0 40px rgba(0,0,0,0.15);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.22, 0.68, 0, 1.1);
    display: flex; flex-direction: column;
    overflow-y: auto;
}
.addon-slider.open { transform: translateX(0); }

.addon-slider-close {
    position: absolute; top: 16px; right: 16px;
    background: none; border: none;
    font-size: 1.8rem; color: var(--text-secondary);
    cursor: pointer; line-height: 1;
    width: 40px; height: 40px;
    border-radius: var(--r-full);
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.addon-slider-close:hover { background: var(--bg-hover); }

.addon-slider-content {
    flex: 1; padding: 48px 32px 24px;
}

.addon-slider-icon {
    width: 80px; height: 80px;
    margin: 0 auto 20px;
    border-radius: var(--r-xl);
    background: linear-gradient(135deg, var(--sun-light), var(--mint-light));
    display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem;
}

.addon-slider-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.5rem; font-weight: 600;
    text-align: center; margin-bottom: 12px;
}

.addon-slider-desc {
    color: var(--text-secondary);
    text-align: center; font-size: 0.95rem;
    line-height: 1.6; margin-bottom: 28px;
}

.addon-slider-features {
    list-style: none; padding: 0; margin: 0;
}
.addon-slider-features li {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.92rem; color: var(--text-primary);
    line-height: 1.5;
}
.addon-slider-features li:last-child { border-bottom: none; }

.addon-slider-footer {
    padding: 24px 32px;
    border-top: 1px solid var(--border-light);
    background: var(--bg);
}

/* ── CART ───────────────────────────────────────────────────── */
.cart-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.cart-items-list { flex: 1; }

.cart-summary {
    background: linear-gradient(135deg, var(--sun-lighter) 0%, #FFF 50%, var(--mint-light) 100%);
    border-radius: var(--r-2xl);
    border: 2px solid var(--border);
    padding: 32px;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: calc(var(--header-height) + 24px);
    width: 340px;
    flex-shrink: 0;
}

.cart-total-label {
    font-family: 'Fredoka', sans-serif;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.cart-total-amount {
    font-family: 'Fredoka', sans-serif;
    font-size: 2.5rem; font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.cart-total-detail {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.cart-item:last-child { border-bottom: none; }

.cart-item-info {
    display: flex; align-items: center; gap: 12px;
    flex: 1; min-width: 0;
}

.cart-item-name {
    font-weight: 600; font-size: 0.9rem;
    white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    margin-left: 12px;
}

.cart-trust {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.cart-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
}

.cart-stripe-info {
    margin-top: 12px;
    font-size: 0.75rem;
    color: var(--text-light);
    text-align: center;
}

.cart-empty { text-align: center; padding: 48px 24px; }
.cart-empty-icon { font-size: 4rem; margin-bottom: 16px; opacity: 0.5; }
.cart-empty-text {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

/* ── ORDER CARDS ───────────────────────────────────────────── */
.order-card {
    background: var(--bg-card);
    border-radius: var(--r-xl);
    border: 2px solid var(--border-light);
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: all var(--t-smooth);
}

.order-card:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--border);
}

.order-card-header {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: var(--sun-lighter);
    border-bottom: 1px solid var(--border-light);
    flex-wrap: wrap; gap: 8px;
}

.order-number {
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
}

.order-card-body { padding: 16px 24px; }

.order-progress {
    display: flex;
    align-items: center;
    gap: 12px;
}

.order-progress-bar {
    flex: 1;
    height: 6px;
    background: var(--border-light);
    border-radius: var(--r-full);
    overflow: hidden;
}

.order-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--sun), var(--mint));
    border-radius: var(--r-full);
    transition: width 0.5s ease;
}

.order-progress-label {
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

a.order-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

a.order-card-link:hover { color: inherit; }

a.order-card-link .order-card {
    transition: all var(--t-smooth);
}

a.order-card-link:hover .order-card {
    border-color: var(--border);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

/* ── TOAST (see enhanced toast system below) ──────────────── */

.toast-happy {
    background: var(--bg-card);
    border-radius: var(--r-lg);
    border: 2px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 16px 24px;
    display: flex; align-items: center; gap: 12px;
    min-width: 300px; max-width: 420px;
    animation: toast-slide-in 0.5s var(--t-spring) forwards;
    font-weight: 600; font-size: 0.9rem;
}

.toast-happy.toast-exit { animation: toast-slide-out 0.3s ease forwards; }
.toast-icon { font-size: 1.3rem; flex-shrink: 0; }
.toast-success { border-color: var(--mint); }
.toast-success .toast-icon { color: var(--mint); }
.toast-error   { border-color: var(--coral); }
.toast-error   .toast-icon { color: var(--coral); }

/* ── AUTH CARD ─────────────────────────────────────────────── */
.auth-card {
    background: var(--bg-card);
    border-radius: var(--r-2xl);
    border: 2px solid var(--border);
    box-shadow: var(--shadow-xl);
    padding: 48px;
    width: 100%; max-width: 440px;
    text-align: center;
    position: relative;
}

.auth-brand {
    display: flex; align-items: center; justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.auth-brand-img {
    width: 48px; height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(255, 146, 43, 0.3));
}

.auth-brand-icon {
    width: 52px; height: 52px;
    background: linear-gradient(135deg, var(--sun) 0%, var(--tangerine) 100%);
    border-radius: var(--r-xl);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 4px 16px rgba(255, 146, 43, 0.3);
}

.auth-hint {
    margin-top: 24px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.auth-back-link {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.auth-back-link:hover {
    color: var(--text-primary);
}

.auth-brand-text {
    font-family: 'Fredoka', sans-serif;
    font-size: 2rem; font-weight: 700;
    background: linear-gradient(135deg, var(--tangerine) 0%, var(--coral) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.35rem;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 32px;
}

/* ── SUCCESS PAGE ──────────────────────────────────────────── */
.success-card { text-align: center; padding: 60px 48px; max-width: 520px; }

.success-icon {
    width: 80px; height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--mint) 0%, var(--mint-hover) 100%);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; color: white;
    box-shadow: 0 8px 32px rgba(81, 207, 102, 0.35);
    animation: success-bounce 0.6s var(--t-spring) forwards;
}

.success-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.75rem; font-weight: 700;
    margin-bottom: 12px;
}

.success-text {
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.success-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
    text-align: left;
}

.success-timeline-step {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-light);
}

.success-timeline-dot {
    width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    font-size: 0.7rem;
    flex-shrink: 0;
    background: var(--border-light);
    color: var(--text-light);
}

.success-timeline-done {
    color: var(--mint-hover);
}

.success-timeline-done .success-timeline-dot {
    background: var(--mint-light);
    color: var(--mint);
}

.success-timeline-active {
    color: var(--tangerine);
}

.success-timeline-active .success-timeline-dot {
    background: var(--tangerine-light);
    color: var(--tangerine);
    animation: pulse-badge 2s ease-in-out infinite;
}

/* ── ADMIN SIDEBAR ─────────────────────────────────────────── */
.admin-sidebar {
    background: linear-gradient(180deg, #1A1A2E 0%, #16213E 100%);
}
.admin-sidebar .sidebar-brand { border-bottom-color: rgba(255, 255, 255, 0.1); }
.admin-sidebar .sidebar-section-label { color: rgba(255, 255, 255, 0.35); }
.admin-sidebar .sidebar-link { color: rgba(255, 255, 255, 0.7); }
.admin-sidebar .sidebar-link:hover { background: rgba(255, 212, 59, 0.15); color: white; }
.admin-sidebar .sidebar-link.active { background: var(--sun); color: var(--text-primary); }
.admin-sidebar .sidebar-footer { border-top-color: rgba(255, 255, 255, 0.1); }

/* ── MAGIC LINK BOX ────────────────────────────────────────── */
.magic-link-box {
    background: var(--sun-lighter);
    border: 2px dashed var(--sun);
    border-radius: var(--r-lg);
    padding: 16px;
    margin: 16px 0;
    display: flex; align-items: center; gap: 12px;
    word-break: break-all;
    font-size: 0.85rem; font-family: monospace;
    color: var(--text-secondary);
}

.magic-link-box .btn-happy { flex-shrink: 0; }

/* ── LANDING PAGE ──────────────────────────────────────────── */
.landing-header {
    padding: 16px 40px;
    display: flex; align-items: center; justify-content: space-between;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(255, 252, 240, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    transition: box-shadow 0.3s ease;
}

.landing-nav-link {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 4px;
    transition: color var(--t-fast);
}
.landing-nav-link:hover { color: var(--text-primary); }

.landing-hero {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    background: var(--bg-hero);
    position: relative; overflow: hidden;
}

.landing-hero::before {
    content: '';
    position: absolute;
    top: 15%; left: 8%;
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(255, 212, 59, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.landing-hero::after {
    content: '';
    position: absolute;
    bottom: 10%; right: 10%;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(81, 207, 102, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

.landing-hero-content {
    position: relative; z-index: 1;
    max-width: 680px;
}

.landing-hero-badge {
    display: inline-flex;
    align-items: center; gap: 6px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--tangerine);
    margin-bottom: 28px;
    backdrop-filter: blur(4px);
}

.landing-hero h1 {
    font-family: 'Fredoka', sans-serif;
    font-size: 3.5rem; font-weight: 700;
    margin-bottom: 20px; line-height: 1.12;
}

.landing-hero h1 span:not(.hero-rotating-wrap) {
    background: linear-gradient(135deg, var(--tangerine) 0%, var(--coral) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Hero rotating typewriter ─────────────────────────── */
.hero-rotating-wrap {
    display: inline-flex;
    align-items: baseline;
    background: linear-gradient(135deg, var(--tangerine) 0%, var(--coral) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-rotating-text {
    display: inline;
    min-width: 1ch;
}

.hero-cursor {
    display: inline-block;
    animation: cursor-blink 0.7s steps(1) infinite;
    margin-left: 2px;
    font-weight: 400;
}

@keyframes cursor-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ── Hero floating shapes ─────────────────────────────── */
.hero-shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.hero-shape-1 {
    width: 120px; height: 120px;
    top: 18%; left: 6%;
    background: rgba(255, 212, 59, 0.18);
    animation: hero-float-1 7s ease-in-out infinite;
}

.hero-shape-2 {
    width: 80px; height: 80px;
    top: 30%; right: 8%;
    background: rgba(81, 207, 102, 0.15);
    animation: hero-float-2 9s ease-in-out infinite;
}

.hero-shape-3 {
    width: 60px; height: 60px;
    bottom: 20%; left: 12%;
    background: rgba(255, 107, 107, 0.12);
    animation: hero-float-3 11s ease-in-out infinite;
}

@keyframes hero-float-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -15px) scale(1.1); }
    66% { transform: translate(-10px, 10px) scale(0.95); }
}

@keyframes hero-float-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-25px, 20px) scale(1.15); }
}

@keyframes hero-float-3 {
    0%, 100% { transform: translate(0, 0); }
    40% { transform: translate(15px, -20px); }
    80% { transform: translate(-8px, 12px); }
}

/* ── Hero CTA enhanced ────────────────────────────────── */
.hero-cta-primary {
    position: relative;
    overflow: hidden;
}

.hero-cta-primary::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    animation: hero-shimmer 3s ease-in-out infinite;
}

@keyframes hero-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ── Landing header scroll effect ─────────────────────── */
.landing-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 6px rgba(255, 212, 59, 0.15);
    border-bottom-color: transparent;
}

.landing-hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 32px; line-height: 1.7;
    max-width: 540px;
    margin-left: auto; margin-right: auto;
}

.landing-hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.landing-hero-trust {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.landing-trust-item {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
}

.landing-trust-icon { font-size: 1rem; }

/* ── LANDING STATS ─────────────────────────────────────────── */
.landing-stats {
    padding: 48px 24px;
    background: #fff;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.landing-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.landing-stat { text-align: center; padding: 16px 8px; }

.landing-stat-number {
    font-family: 'Fredoka', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 4px;
}

.landing-stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* ── LANDING STEPS ─────────────────────────────────────────── */
.landing-steps {
    padding: 80px 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.landing-steps h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 8px;
}

.landing-steps-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 48px;
}

.landing-steps-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 16px;
    align-items: flex-start;
}

.landing-step {
    text-align: center;
    padding: 28px 20px;
    background: var(--bg-card);
    border-radius: var(--r-2xl);
    border: 2px solid var(--border-light);
    box-shadow: var(--shadow-xs);
    transition: all var(--t-smooth);
}

.landing-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border);
}

.landing-step-number {
    width: 52px; height: 52px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sun) 0%, var(--tangerine) 100%);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.4rem; font-weight: 700;
    color: white;
    box-shadow: 0 4px 16px rgba(255, 146, 43, 0.3);
}

.landing-step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.landing-step p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.6; }

.landing-step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-light);
    padding-top: 60px;
}

/* ── LANDING PRICING ───────────────────────────────────────── */
.landing-pricing {
    padding: 80px 24px;
    background: linear-gradient(180deg, var(--sun-lighter) 0%, var(--bg-body) 100%);
    text-align: center;
}

.landing-pricing h2 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.landing-pricing-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 48px;
    max-width: 500px;
    margin-left: auto; margin-right: auto;
}

.landing-price-card {
    max-width: 420px;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--r-2xl);
    border: 2px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
}

.landing-price-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--sun), var(--tangerine), var(--coral));
}

.landing-price-tag {
    display: inline-block;
    background: var(--sun-light);
    border-radius: var(--r-full);
    padding: 6px 18px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--tangerine);
    margin-bottom: 20px;
}

.landing-price-amount {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    margin-bottom: 4px;
}

.landing-price-currency {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    padding-top: 8px;
}

.landing-price-value {
    font-family: 'Fredoka', sans-serif;
    font-size: 5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.landing-price-period {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 32px;
}

.landing-price-features {
    list-style: none;
    text-align: left;
    margin-bottom: 32px;
}

.landing-price-features li {
    padding: 10px 0;
    font-size: 0.92rem;
    color: var(--text-secondary);
    font-weight: 600;
    border-bottom: 1px solid var(--border-light);
    display: flex; align-items: center; gap: 10px;
}

.landing-price-features li:last-child { border-bottom: none; }

/* ── LANDING FAQ ───────────────────────────────────────────── */
.landing-faq {
    padding: 80px 24px;
    max-width: 700px;
    margin: 0 auto;
}

.landing-faq h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
}

.landing-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.landing-faq-item {
    background: var(--bg-card);
    border-radius: var(--r-xl);
    border: 2px solid var(--border-light);
    overflow: hidden;
    transition: border-color var(--t-fast);
}

.landing-faq-item[open] {
    border-color: var(--border);
}

.landing-faq-item summary {
    padding: 20px 24px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.landing-faq-item summary::-webkit-details-marker { display: none; }

.landing-faq-item summary::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform var(--t-normal);
}

.landing-faq-item[open] summary::after {
    transform: rotate(45deg);
}

.landing-faq-item p {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ── LANDING FINAL CTA ─────────────────────────────────────── */
.landing-final-cta {
    padding: 80px 24px;
    background: linear-gradient(135deg, var(--sun-lighter) 0%, var(--mint-light) 100%);
    text-align: center;
}

.landing-final-cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.landing-final-cta h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.landing-final-cta p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* ── LANDING FOOTER ────────────────────────────────────────── */
.landing-footer {
    background: var(--text-primary);
    color: rgba(255, 255, 255, 0.6);
    padding: 40px 32px 24px;
    font-size: 0.85rem;
}

.landing-footer a { color: var(--sun); }

.landing-footer-inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.landing-footer-brand p {
    margin-top: 8px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
}

.landing-footer-links {
    display: flex;
    gap: 24px;
}

.landing-footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
}

/* ── CONFETTI ──────────────────────────────────────────────── */
.confetti-piece {
    position: fixed;
    width: 10px; height: 10px;
    border-radius: 2px;
    z-index: 9999;
    pointer-events: none;
    animation: confetti-fall 3s ease-in forwards;
}

/* ── ANIMATIONS ────────────────────────────────────────────── */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%      { transform: translateY(-8px); }
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.1); }
}

@keyframes toast-slide-in {
    from { transform: translateX(120%); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

@keyframes toast-slide-out {
    from { transform: translateX(0); opacity: 1; }
    to   { transform: translateX(120%); opacity: 0; }
}

@keyframes success-bounce {
    0%   { transform: scale(0); }
    60%  { transform: scale(1.15); }
    100% { transform: scale(1); }
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes confetti-fall {
    0%   { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

@keyframes spin-lemon {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.animate-in {
    opacity: 0;
    animation: fade-in-up 0.5s ease forwards;
}
.animate-in:nth-child(1)  { animation-delay: 0.05s; }
.animate-in:nth-child(2)  { animation-delay: 0.1s; }
.animate-in:nth-child(3)  { animation-delay: 0.15s; }
.animate-in:nth-child(4)  { animation-delay: 0.2s; }
.animate-in:nth-child(5)  { animation-delay: 0.25s; }
.animate-in:nth-child(6)  { animation-delay: 0.3s; }
.animate-in:nth-child(7)  { animation-delay: 0.35s; }
.animate-in:nth-child(8)  { animation-delay: 0.4s; }
.animate-in:nth-child(9)  { animation-delay: 0.45s; }
.animate-in:nth-child(10) { animation-delay: 0.5s; }

/* ── Scroll reveal (no flicker) ───────────────────────── */
.scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for child elements */
.scroll-reveal:nth-child(1) { transition-delay: 0s; }
.scroll-reveal:nth-child(2) { transition-delay: 0.08s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.16s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.24s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.32s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.4s; }

.loading-spinner {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--text-muted); font-size: 0.9rem;
}
.loading-spinner::before {
    content: '\1F34B';
    display: inline-block;
    animation: spin-lemon 1s linear infinite;
    font-size: 1.2rem;
}

/* ── UTILITY ───────────────────────────────────────────────── */
.flex       { display: flex; }
.flex-col   { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.text-center { text-align: center; }
.w-full { width: 100%; }

.heading-2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
}

.text-small { font-size: 0.85rem; }
.text-muted { color: var(--text-muted); }

/* ── LEGAL PAGES ─────────────────────────────────────────── */
.legal-page {
    max-width: 780px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.legal-header {
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--border-light);
}

.legal-header h1 {
    font-family: 'Fredoka', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 12px;
}

.legal-back-link {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--t-fast);
}

.legal-back-link:hover { color: var(--sun-hover); }

.legal-content { line-height: 1.8; }

.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}

.legal-section h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 20px;
    margin-bottom: 8px;
}

.legal-section p {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.legal-section a {
    color: var(--tangerine);
    font-weight: 600;
    text-decoration: none;
}

.legal-section a:hover {
    text-decoration: underline;
}

/* ── CUSTOMER PROFILE PAGE ────────────────────────────────── */
.profile-settings-card {
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-radius: var(--r-xl);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.profile-settings-card h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.profile-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.profile-info-row:last-child { border-bottom: none; }

.profile-info-label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-muted);
    min-width: 140px;
}

.profile-info-value {
    color: var(--text-primary);
    font-weight: 600;
}

/* ── HELP / SUPPORT PAGE ──────────────────────────────────── */
.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.help-card {
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-radius: var(--r-xl);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: all var(--t-normal);
}

.help-card:hover {
    border-color: var(--sun);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.help-card-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.help-card h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.help-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.help-contact-card {
    background: linear-gradient(135deg, var(--sun-lighter) 0%, var(--mint-light) 100%);
    border: 2px solid var(--sun);
    border-radius: var(--r-xl);
    padding: 40px;
    text-align: center;
}

.help-contact-card h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.help-contact-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* ── DASHBOARD STATS ──────────────────────────────────────── */
.dash-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.dash-stat {
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-radius: var(--r-xl);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-xs);
    transition: all var(--t-normal);
}

.dash-stat:hover {
    border-color: var(--sun);
    box-shadow: var(--shadow-sm);
}

.dash-stat-icon {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.dash-stat-number {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
}

.dash-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* ── REVIEW TEXT EXPAND ───────────────────────────────────── */
.review-text-expandable {
    position: relative;
    max-height: 60px;
    overflow: hidden;
    transition: max-height var(--t-normal) ease;
}

.review-text-expandable.expanded {
    max-height: 500px;
}

.review-text-expandable:not(.expanded)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(transparent, var(--bg-card));
}

.review-card.in-cart .review-text-expandable:not(.expanded)::after {
    background: linear-gradient(transparent, var(--sun-lighter));
}

.review-expand-btn {
    border: none;
    background: none;
    color: var(--tangerine);
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    padding: 4px 0;
    font-family: 'Nunito', sans-serif;
}

.review-expand-btn:hover { text-decoration: underline; }

/* ── TOAST SYSTEM (enhanced) ──────────────────────────────── */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast-happy {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: var(--r-lg);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    animation: toast-slide-in 0.3s ease;
    pointer-events: auto;
    backdrop-filter: blur(12px);
}

.toast-exit { animation: toast-slide-out 0.3s ease forwards; }

.toast-success { background: var(--mint-light); border: 2px solid var(--mint); color: var(--mint-hover); }
.toast-error   { background: var(--coral-light); border: 2px solid var(--coral); color: var(--coral); }
.toast-info    { background: var(--sky-light); border: 2px solid var(--sky); color: #1C7ED6; }
.toast-warning { background: var(--tangerine-light); border: 2px solid var(--tangerine); color: #E8590C; }

.toast-icon { font-size: 1.1rem; }

/* ── BUTTON LOADING STATE ─────────────────────────────────── */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.75;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2.5px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: btn-spin 0.6s linear infinite;
    margin-left: 8px;
}

@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

/* ── LOADING OVERLAY ─────────────────────────────────────── */
.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(255, 252, 240, 0.92);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.loading-overlay.visible { opacity: 1; }

.loading-overlay-content { text-align: center; }

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-light);
    border-top-color: var(--tangerine);
    border-radius: 50%;
    animation: btn-spin 0.7s linear infinite;
    margin: 0 auto 20px;
}
.loading-text {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 6px;
}
.loading-subtext {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* ── ADMIN SEARCH BAR ─────────────────────────────────────── */
.admin-search-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}

.admin-search-input {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid var(--border-light);
    border-radius: var(--r-lg);
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    outline: none;
    background: var(--bg-card);
    transition: all var(--t-fast);
}

.admin-search-input:focus {
    border-color: var(--sun);
    box-shadow: 0 0 0 3px var(--sun-glow);
}

/* ── PIPELINE BOARD ──────────────────────────────────────── */
.pipeline-board {
    display: flex;
    gap: 8px;
    padding-bottom: 16px;
    min-height: calc(100vh - 160px);
    overflow-x: auto;
    overflow-y: hidden;
}
.pipeline-column {
    flex: 0 0 200px;
    min-width: 200px;
    display: flex;
    flex-direction: column;
}
@media (min-width: 1920px) {
    .pipeline-column { flex: 0 0 220px; min-width: 220px; }
}
@media (min-width: 2200px) {
    .pipeline-column { flex: 1 0 200px; }
}
.pipeline-column-header {
    padding: 8px 10px;
    background: var(--bg-card);
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
}
.pipeline-column-title {
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pipeline-column-count {
    font-size: 0.65rem;
    font-weight: 700;
    background: var(--bg-secondary);
    color: var(--text-muted);
    padding: 2px 6px;
    border-radius: var(--r-full);
    flex-shrink: 0;
}
.pipeline-column-body {
    flex: 1;
    padding: 6px;
    background: var(--bg-secondary);
    border-radius: 0 0 var(--r-lg) var(--r-lg);
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 60px;
    overflow-y: auto;
    transition: background var(--t-fast);
}
.pipeline-column-body.drag-over {
    background: var(--sun-lighter);
    outline: 2px dashed var(--sun);
    outline-offset: -2px;
}
.pipeline-card {
    background: var(--bg-card);
    border-radius: var(--r-md);
    padding: 10px;
    box-shadow: var(--shadow-sm);
    cursor: grab;
    border-left: 3px solid transparent;
    position: relative;
    transition: box-shadow var(--t-fast), transform var(--t-fast);
}
.pipeline-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
.pipeline-card.dragging {
    opacity: 0.5;
    transform: rotate(2deg);
}
.pipeline-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.pipeline-card-tooltip {
    display: none;
    position: fixed;
    background: #1f2937;
    color: #f3f4f6;
    padding: 12px 16px;
    border-radius: var(--r-md);
    font-size: 0.75rem;
    line-height: 1.6;
    white-space: nowrap;
    z-index: 9999;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    pointer-events: none;
}
.pipeline-card-tooltip.visible {
    display: block;
}
.pipeline-card-actions {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* Phase badges (reusable) */
.phase-badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--r-full); font-size: 0.7rem; font-weight: 700; white-space: nowrap; }
.phase-neu { background: #e0e7ff; color: #4338ca; }
.phase-warte { background: #fef3c7; color: #92400e; }
.phase-freigegeben { background: var(--mint-light); color: #065f46; }
.phase-bearbeitung { background: #dbeafe; color: #1e40af; }
.phase-erledigt { background: #ede9fe; color: #6d28d9; }
.phase-pruefung { background: #ede9fe; color: #6d28d9; }
.phase-rechnung { background: #ffedd5; color: #c2410c; }
.phase-bestand { background: #d1fae5; color: #059669; }

/* Pipeline card urgency (inactivity) */
.pipeline-card.urgency-warning {
    background: #fffbeb;
    border-left-color: #f59e0b;
}
.pipeline-card.urgency-critical {
    background: #fef2f2;
    border-left-color: #ef4444;
}
.urgency-indicator {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.65rem;
    font-weight: 700;
    white-space: nowrap;
}
.urgency-indicator.warning { color: #d97706; }
.urgency-indicator.critical { color: #dc2626; }

.admin-search-input::placeholder {
    color: var(--text-light);
}

/* ── ADMIN BULK ACTIONS ───────────────────────────────────── */
.admin-bulk-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 20px;
    background: var(--sun-lighter);
    border: 2px solid var(--sun);
    border-radius: var(--r-lg);
    margin-bottom: 16px;
}

.admin-bulk-bar select {
    padding: 6px 12px;
    border: 2px solid var(--border);
    border-radius: var(--r-md);
    font-family: 'Nunito', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    outline: none;
    background: var(--bg-card);
}

/* ── REVIEW ANALYSIS ──────────────────────────────────────── */
.analysis-summary {
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-radius: var(--r-xl);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 8px;
}

.analysis-summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.analysis-summary-header h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
}

.analysis-summary-badge {
    background: var(--sun-lighter);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    padding: 4px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.analysis-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.analysis-stat {
    flex: 1;
    text-align: center;
}

.analysis-stat-bar {
    border-radius: var(--r-lg);
    padding: 16px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.analysis-stat-count {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}

.analysis-stat-label {
    font-size: 0.82rem;
    font-weight: 700;
}

.chance-label-high { color: var(--mint-hover); }
.chance-label-medium { color: var(--tangerine); }
.chance-label-low { color: var(--coral); }

.analysis-verdict {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--sun-lighter);
    border-radius: var(--r-lg);
    border: 1px solid var(--border-light);
}

.analysis-verdict-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.analysis-verdict strong {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.05rem;
    display: block;
    margin-bottom: 4px;
}

/* Chance Badges on Review Cards */
.chance-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 16px;
    border-radius: var(--r-lg);
    min-width: 90px;
    text-align: center;
}

.chance-badge-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.8;
}

.chance-badge-value {
    font-family: 'Fredoka', sans-serif;
    font-size: 1rem;
    font-weight: 700;
}

.chance-high {
    background: var(--mint-light);
    border: 2px solid var(--mint);
    color: var(--mint-hover);
}

.chance-medium {
    background: var(--tangerine-light);
    border: 2px solid var(--tangerine);
    color: #E8590C;
}

.chance-low {
    background: var(--coral-light);
    border: 2px solid var(--coral);
    color: var(--coral);
}

/* Decision Section */
.analysis-decision {
    margin-top: 40px;
    margin-bottom: 40px;
}

.analysis-decision-card {
    background: var(--bg-card);
    border: 2px solid var(--sun);
    border-radius: var(--r-xl);
    padding: 32px;
    box-shadow: var(--shadow-md);
}

.analysis-decision-card h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

/* ── PREFERS REDUCED MOTION ────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ── MOBILE ────────────────────────────────────────────────── */
.sidebar-toggle {
    display: none;
    width: 44px; height: 44px;
    background: var(--sun);
    border: none;
    border-radius: var(--r-md);
    font-size: 1.2rem;
    cursor: pointer;
    align-items: center; justify-content: center;
    box-shadow: var(--shadow-sm);
}

.sidebar-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 99;
}

@media (max-width: 768px) {
    :root { --sidebar-width: 260px; }
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .sidebar-overlay.open { display: block; }
    .sidebar-toggle { display: flex; }
    .main-content { margin-left: 0; }
    .floating-cart-bar { left: 0; }
    .main-body { padding: 20px 16px; }
    .main-header { padding: 0 16px; }
    .profile-card { flex-direction: column; text-align: center; padding: 24px; }
    .review-card { flex-direction: column; }
    .review-actions { align-self: flex-end; }
    .auth-card { padding: 32px 24px; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .addon-grid { grid-template-columns: 1fr; }
    .cart-layout { flex-direction: column; }
    .cart-summary { position: static; width: 100%; }

    /* Landing mobile */
    .landing-header { padding: 12px 16px; }
    .landing-nav-link { display: none; }
    .landing-hero { padding: 100px 20px 60px; }
    .landing-hero h1 { font-size: 2.2rem; }
    .landing-hero p { font-size: 1rem; }
    .landing-hero-badge { font-size: 0.78rem; padding: 6px 14px; }
    .landing-hero-trust { gap: 16px; flex-direction: column; align-items: center; }
    .hero-shape-1 { width: 80px; height: 80px; }
    .hero-shape-2 { width: 50px; height: 50px; }
    .hero-shape-3 { width: 40px; height: 40px; }
    .landing-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .landing-stat-number { font-size: 1.6rem; }
    .landing-steps { padding: 60px 20px; }
    .landing-steps-grid { grid-template-columns: 1fr; gap: 16px; }
    .landing-step-arrow { display: none; }
    .landing-pricing { padding: 60px 20px; }
    .landing-price-card { padding: 36px 24px; }
    .landing-price-value { font-size: 3.5rem; }
    .landing-faq { padding: 60px 20px; }
    .landing-faq-item summary { padding: 16px 20px; font-size: 0.92rem; }
    .landing-final-cta { padding: 60px 20px; }
    .landing-final-cta h2 { font-size: 1.5rem; }
    .landing-footer-inner { flex-direction: column; text-align: center; }
    .landing-footer-links { justify-content: center; }

    /* Order details table responsive */
    .table-happy { font-size: 0.82rem; }
    .table-happy thead th,
    .table-happy tbody td { padding: 10px 8px; }

    /* Legal page mobile */
    .legal-header h1 { font-size: 1.6rem; }
    .legal-page { padding: 24px 16px 60px; }

    /* Dashboard stats mobile — 2 columns at tablet, 1 at phone */
    .dash-stats { grid-template-columns: repeat(2, 1fr); }

    /* Touch targets: enlarge filter chips + small buttons */
    .filter-chip { padding: 10px 16px; font-size: 0.85rem; }
    .btn-sm { padding: 10px 18px; font-size: 0.85rem; }

    /* Sticky header: reduce height on mobile */
    .main-header { height: 56px; }
    :root { --header-height: 56px; }
    .main-header-title { font-size: 1rem; }

    /* Admin bulk actions wrap */
    .admin-bulk-bar form { flex-wrap: wrap; }

    /* Help page mobile */
    .help-grid { grid-template-columns: 1fr; }
    .help-contact-card { padding: 28px 20px; }

    /* Profile mobile */
    .profile-info-row { flex-direction: column; align-items: flex-start; gap: 4px; }
    .profile-info-label { min-width: auto; }

    /* Analysis mobile */
    .analysis-stats { flex-direction: column; gap: 8px; }
    .analysis-stat-bar { padding: 12px 8px; }
    .analysis-stat-count { font-size: 1.4rem; }
    .analysis-verdict { flex-direction: column; gap: 12px; }
    .analysis-decision-card { padding: 24px 20px; }
    .analysis-summary { padding: 20px; }
}

@media (max-width: 480px) {
    :root { --sidebar-width: 240px; }
    .stat-grid { grid-template-columns: 1fr; }
    .dash-stats { grid-template-columns: 1fr; }
    .landing-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .landing-hero h1 { font-size: 1.9rem; }
    .landing-hero-cta { flex-direction: column; align-items: center; }
    .filter-bar-row { flex-direction: column; align-items: stretch; }
    .filter-group { flex-wrap: wrap; }

    /* Signature canvas smaller on phones */
    #signature-canvas { height: 150px !important; }
}

/* ── LARGE DESKTOP (1400px+) ──────────────────────────────── */
@media (min-width: 1400px) {
    :root { --content-max: 1400px; }
    .main-body { padding: 40px 48px; }
    .main-header { padding: 0 48px; }
    .stat-grid { max-width: none; }
}

/* ── ULTRA-WIDE (1920px+) ────────────────────────────────── */
@media (min-width: 1920px) {
    :root { --content-max: 1600px; }
}

/* ── G-ROCKET / REPUTATIONSHELFER CO-BRANDING ────────────── */
.grocket-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--r-full);
    font-size: 0.65rem;
    font-weight: 700;
    background: #ecfdf5;
    color: #059669;
    white-space: nowrap;
}
.grocket-accent { border-left: 3px solid #059669 !important; }
.grocket-cobranding {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #ecfdf5;
    border-radius: 8px;
    font-size: 0.75rem;
    color: #047857;
    font-weight: 500;
}
.grocket-cobranding a {
    color: #059669;
    font-weight: 700;
    text-decoration: none;
}
.grocket-cobranding a:hover { text-decoration: underline; }

/* ── FOCUS & ACCESSIBILITY ────────────────────────────────── */
.filter-select:focus,
.input-happy:focus,
.admin-status-select:focus {
    outline: 2px solid var(--tangerine);
    outline-offset: 2px;
}
.table-happy tbody tr:focus-within {
    outline: 2px solid var(--sun);
    outline-offset: -2px;
}
.btn-happy:focus-visible {
    outline: 2px solid var(--tangerine);
    outline-offset: 2px;
}

/* ── 404 ERROR PAGE ───────────────────────────────────────── */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #FFFBE6 0%, #FFF3BF 30%, #D3F9D8 70%, #FFFBE6 100%);
    background-size: 400% 400%;
    animation: error-bg-shift 12s ease-in-out infinite;
}

@keyframes error-bg-shift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

.error-deco {
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.25;
    pointer-events: none;
    animation: error-float 6s ease-in-out infinite;
}
.error-deco-1 { top: 10%; left: 8%;  animation-delay: 0s;    font-size: 3rem; }
.error-deco-2 { top: 20%; right: 12%; animation-delay: 1s;   font-size: 2rem; }
.error-deco-3 { bottom: 15%; left: 15%; animation-delay: 2s;  font-size: 2.5rem; }
.error-deco-4 { bottom: 25%; right: 8%; animation-delay: 0.5s; font-size: 3.5rem; }
.error-deco-5 { top: 45%; left: 5%;  animation-delay: 3s;    font-size: 1.8rem; }
.error-deco-6 { top: 8%;  right: 30%; animation-delay: 1.5s; font-size: 2rem; }

@keyframes error-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25%      { transform: translateY(-15px) rotate(5deg); }
    75%      { transform: translateY(10px) rotate(-3deg); }
}

.error-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    border-radius: var(--r-2xl);
    border: 2px solid var(--border);
    box-shadow: 0 20px 80px rgba(255, 212, 59, 0.2), 0 4px 20px rgba(0,0,0,0.05);
    padding: 60px 48px;
    max-width: 540px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
}

.error-smiley {
    margin-bottom: 24px;
    display: inline-block;
    animation: error-smiley-wobble 3s ease-in-out infinite;
    filter: drop-shadow(0 8px 24px rgba(255, 146, 43, 0.35));
}

@keyframes error-smiley-wobble {
    0%, 100% { transform: rotate(-5deg) scale(1); }
    50%      { transform: rotate(5deg) scale(1.05); }
}

.error-mouth {
    animation: error-mouth-flip 4s ease-in-out infinite;
    transform-origin: center;
}

@keyframes error-mouth-flip {
    0%, 40%  { d: path("M38 80 Q60 68 82 80"); }
    60%, 100% { d: path("M38 76 Q60 90 82 76"); }
}

.error-code {
    font-family: 'Fredoka', sans-serif;
    font-size: 6rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, var(--sun) 0%, var(--tangerine) 50%, var(--coral) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    letter-spacing: -0.03em;
}

.error-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.error-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.error-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.error-btn-home {
    animation: error-pulse 2s ease-in-out infinite;
}

@keyframes error-pulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(255, 212, 59, 0.35); }
    50%      { box-shadow: 0 6px 28px rgba(255, 212, 59, 0.55); }
}

.error-fun-fact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--sun-lighter);
    border: 1px solid var(--border-light);
    border-radius: var(--r-full);
    padding: 10px 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.error-fun-icon { font-size: 1.1rem; }

@media (max-width: 480px) {
    .error-card { padding: 40px 24px; }
    .error-code { font-size: 4rem; }
    .error-title { font-size: 1.2rem; }
    .error-smiley svg { width: 90px; height: 90px; }
}

/* ── DELETE ACCOUNT PAGE ──────────────────────────────────── */
.delete-account-page {
    max-width: 520px;
}

.delete-account-card {
    padding: 40px;
    text-align: center;
}

.delete-account-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    color: var(--coral);
}

.delete-account-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--coral);
    margin-bottom: 12px;
}

.delete-account-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.delete-account-warning {
    background: var(--coral-light);
    border: 2px solid var(--coral);
    border-radius: var(--r-lg);
    padding: 16px 20px;
    margin-bottom: 24px;
    text-align: left;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.delete-account-warning ul {
    margin-top: 8px;
    padding-left: 20px;
}

.delete-account-warning li {
    margin-bottom: 4px;
    color: var(--text-secondary);
}

.delete-account-info {
    background: var(--sun-lighter);
    border-radius: var(--r-md);
    padding: 12px 16px;
    margin-bottom: 28px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.delete-account-info-label {
    font-weight: 700;
    color: var(--text-muted);
}

.delete-account-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ── ADMIN LOGIN PAGE ─────────────────────────────────────── */
@keyframes admin-drift {
    0%, 100% { transform: translate(0, 0); }
    25%      { transform: translate(15px, -20px); }
    50%      { transform: translate(-10px, 10px); }
    75%      { transform: translate(20px, 15px); }
}

@keyframes admin-card-enter {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes admin-lock-hover {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

@keyframes admin-glow-pulse {
    0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
    50%      { opacity: 0.8; transform: translate(-50%, -50%) scale(1.2); }
}

@keyframes admin-shake {
    0%, 100% { transform: translateX(0); }
    20%      { transform: translateX(-12px) rotate(-2deg); }
    40%      { transform: translateX(10px) rotate(2deg); }
    60%      { transform: translateX(-8px) rotate(-1deg); }
    80%      { transform: translateX(6px) rotate(1deg); }
}

@keyframes admin-error-pop {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}

/* ── ADMIN STATUS SELECT ──────────────────────────────────── */
.admin-status-select {
    padding: 6px 28px 6px 10px;
    border: 2px solid var(--border-light);
    border-radius: var(--r-md);
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-color: var(--bg-card);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23868E96' d='M5 7L1 3h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    transition: all var(--t-fast);
    min-width: 130px;
}

.admin-status-select:focus {
    border-color: var(--sun);
    box-shadow: 0 0 0 3px var(--sun-glow);
}

.admin-status-select.status-inprogress {
    border-color: var(--tangerine);
    color: var(--tangerine);
    background-color: var(--tangerine-light);
}

.admin-status-select.status-deleted {
    border-color: var(--mint);
    color: var(--mint-hover);
    background-color: var(--mint-light);
}

.admin-status-select.status-failed {
    border-color: var(--coral);
    color: var(--coral);
    background-color: var(--coral-light);
}
