/* =========================
   GIFTMATE — DESIGN SYSTEM
   Fonts: Cormorant Garamond (display) + Inter (body)
========================= */
/* Google Fonts CDN-Import entfernt — Schriften werden jetzt selbst gehostet (fonts.css) */

/* =========================
   TOKENS
========================= */
:root {
    --bg:           #FFF8F3;
    --bg-alt:       #FFF2EA;
    --card:         #FFFFFF;
    --text:         #1C1412;
    --text-2:       #5A4A44;
    --muted:        #9A8880;
    --border:       rgba(192,21,42,0.12);
    --primary:      #C0152A;
    --coral:        #D94050;
    --soft:         #F5C0C5;
    --gradient:     linear-gradient(135deg, #8B1220 0%, #C0152A 100%);
    --gradient-soft:linear-gradient(135deg, rgba(192,21,42,0.07) 0%, rgba(139,18,32,0.07) 100%);
    --nav:          rgba(255,248,243,0.92);
    --shadow-sm:    0 2px 12px rgba(192,21,42,0.08);
    --shadow:       0 8px 40px rgba(192,21,42,0.14);
    --shadow-lg:    0 24px 64px rgba(192,21,42,0.18);
    --radius:       20px;
    --radius-sm:    12px;
    --radius-pill:  999px;
}

body.dark {
    --bg:           #120A08;
    --bg-alt:       #1A100D;
    --card:         #1E1410;
    --text:         #F5EDE8;
    --text-2:       #C4ADA6;
    --muted:        #7A6660;
    --border:       rgba(192,21,42,0.15);
    --nav:          rgba(18,10,8,0.94);
    --shadow-sm:    0 2px 12px rgba(0,0,0,0.3);
    --shadow:       0 8px 40px rgba(0,0,0,0.4);
    --shadow-lg:    0 24px 64px rgba(0,0,0,0.5);
    --gradient-soft:linear-gradient(135deg, rgba(192,21,42,0.12) 0%, rgba(217,64,80,0.12) 100%);
}

/* =========================
   RESET & BASE
========================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    transition: background 0.3s, color 0.3s;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

/* =========================
   NAVBAR
========================= */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    height: 68px;
    background: var(--nav);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}

/* Separate backdrop for blur — does NOT create stacking context for children */
.navbar::before {
    content: "";
    position: absolute;
    inset: 0;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: -1;
}

a.logo, .logo {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 1.45rem;
    letter-spacing: -0.01em;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0;
    text-decoration: none;
    cursor: pointer;
}

.navbar nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.navbar nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-2);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: color 0.2s, background 0.2s;
}

.navbar nav a:hover,
.navbar nav a.active {
    color: var(--primary);
    background: var(--gradient-soft);
}

.nav-user-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px 6px 8px;
    border-radius: var(--radius-pill);
    background: var(--gradient-soft);
    border: 1px solid var(--border);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.nav-user-btn:hover { background: rgba(192,21,42,0.12); }

.nav-user-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--gradient);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dark-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--card);
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, border-color 0.2s;
    flex-shrink: 0;
    color: var(--text);
}

.dark-toggle:hover { transform: rotate(15deg) scale(1.1); border-color: var(--primary); }

/* =========================
   HERO
========================= */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 24px 140px;
    overflow: hidden;
    background: var(--bg);
}

/* Ambient blobs */
.hero::before {
    content: "";
    position: absolute;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(192,21,42,0.12) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(217,64,80,0.10) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 28px;
    padding: 7px 18px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(192,21,42,0.25);
    background: rgba(232,53,74,0.06);
}

.hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 24px;
}

.hero h1 em {
    font-style: italic;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-2);
    max-width: 520px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: var(--radius-pill);
    background: var(--gradient);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 12px 32px rgba(232,53,74,0.35);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    z-index: 3;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 48px rgba(232,53,74,0.45);
}

.hero-cta-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 28px;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--border);
    color: var(--text-2);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s;
    position: relative;
    z-index: 3;
}

.hero-cta-ghost:hover { border-color: var(--primary); color: var(--primary); }

.hero-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    z-index: 3;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(6px); }
}

/* =========================
   TRUST BAR
========================= */
.trust-bar {
    padding: 20px 48px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-2);
}

.trust-item span:first-child { font-size: 1.1rem; }

/* =========================
   STATS
========================= */
.stats-section {
    padding: 80px 24px;
    background: var(--bg);
    text-align: center;
}

.stats-row {
    display: flex;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
}

.stat { text-align: center; }

.stat-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* =========================
   SECTIONS
========================= */
.section {
    padding: 100px 24px;
    background: var(--bg);
}

.section-alt { background: var(--bg-alt); }

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section-header {
    max-width: 580px;
    margin: 0 auto 56px;
    text-align: center;
}

.section-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 14px;
}

.section-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: var(--text);
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-2);
    line-height: 1.7;
}

/* =========================
   FEATURE CARDS
========================= */
.gift-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.gift-card {
    background: var(--card);
    padding: 36px 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    position: relative;
    overflow: hidden;
}

.gift-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.gift-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: rgba(192,21,42,0.2);
}

.gift-card:hover::before { transform: scaleX(1); }

.card-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 18px;
}

.gift-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
}

.gift-card p {
    font-size: 0.9rem;
    color: var(--text-2);
    line-height: 1.65;
}

/* =========================
   RESULT CARDS (Gift Finder)
========================= */
.result-card {
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    overflow: hidden;
}

.result-card .card-content {
    padding: 20px 20px 24px;
}

.result-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(192,21,42,0.2);
}

.result-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.result-card p {
    font-size: 0.88rem;
    color: var(--text-2);
    line-height: 1.6;
    margin-bottom: 14px;
}

.price-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    background: var(--gradient-soft);
    color: var(--primary);
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

/* =========================
   BUTTONS
========================= */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: var(--radius-pill);
    background: var(--gradient);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    box-shadow: 0 4px 16px rgba(192,21,42,0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232,53,74,0.35);
}

/* =========================
   GIFT FINDER FORM
========================= */
.finder-wrap {
    max-width: 640px;
    margin: 0 auto;
    background: var(--card);
    padding: 52px 48px;
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.form-group { margin-bottom: 22px; }

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-2);
    margin-bottom: 8px;
}

.form-group select {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239A8880' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(192,21,42,0.12);
}

.finder-btn {
    width: 100%;
    padding: 16px;
    border-radius: var(--radius-sm);
    background: var(--gradient);
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(232,53,74,0.3);
    margin-top: 8px;
}

.finder-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232,53,74,0.4);
}

#finderResults {
    margin-top: 40px;
    max-height: 540px;
    overflow-y: auto;
    padding-right: 4px;
    scroll-behavior: smooth;
}

#finderResults::-webkit-scrollbar { width: 5px; }
#finderResults::-webkit-scrollbar-track { background: transparent; }
#finderResults::-webkit-scrollbar-thumb {
    background: var(--gradient);
    border-radius: 99px;
}

.no-results {
    text-align: center;
    padding: 40px 24px;
    color: var(--muted);
}

/* =========================
   TESTIMONIALS
========================= */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial {
    background: var(--card);
    padding: 32px 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    position: relative;
}

.testimonial::before {
    content: '"';
    font-family: 'Cormorant Garamond', serif;
    font-size: 5rem;
    line-height: 1;
    color: var(--soft);
    position: absolute;
    top: 12px;
    left: 22px;
    pointer-events: none;
}

.testimonial .stars {
    color: #F59E0B;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.testimonial p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 18px;
    position: relative;
}

.testimonial .author {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted);
}

.empty-reviews {
    text-align: center;
    padding: 48px;
    color: var(--muted);
}

/* =========================
   LAST MINUTE GRID
========================= */
.lm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

/* =========================
   ABOUT
========================= */
.about-content {
    max-width: 660px;
    margin: 0 auto;
}

.about-content p {
    font-size: 1.05rem;
    color: var(--text-2);
    line-height: 1.85;
    margin-bottom: 22px;
}

.shop-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.about-content h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    color: var(--text);
    margin: 40px 0 16px;
}

.about-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin: 24px 0 12px;
}

.about-content ul {
    margin: 0 0 22px 1.3rem;
    color: var(--text-2);
    line-height: 1.85;
}

.about-content ul li {
    margin-bottom: 8px;
}

.about-content ul.index {
    list-style: none;
    margin-left: 0;
    columns: 2;
    gap: 24px;
}

.about-content ul.index .index-link {
    color: var(--primary);
    text-decoration: none;
}

.about-content ul.m-elements {
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    margin-left: 0;
    list-style: none;
}

.about-content ul.glossary li {
    margin-bottom: 16px;
}

.about-content p.seal {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 40px;
}

.about-content p.seal a {
    color: var(--muted);
}

/* =========================
   CTA BANNER
========================= */
.cta-banner {
    padding: 100px 24px;
    text-align: center;
    background: var(--gradient);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    top: -200px;
    right: -100px;
    pointer-events: none;
}

.cta-banner h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: white;
    margin-bottom: 14px;
    position: relative;
}

.cta-banner p {
    color: rgba(255,255,255,0.85);
    font-size: 1.05rem;
    margin-bottom: 36px;
    position: relative;
}

.cta-banner .btn-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    border-radius: var(--radius-pill);
    background: white;
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.cta-banner .btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.2);
}

/* =========================
   AUTH
========================= */
.auth-wrap {
    max-width: 460px;
    margin: 60px auto;
    background: var(--card);
    padding: 52px 44px;
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    text-align: center;
}

.auth-wrap .auth-icon { font-size: 2.8rem; margin-bottom: 14px; }

.auth-wrap h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.auth-wrap .subtitle { color: var(--text-2); font-size: 0.93rem; margin-bottom: 32px; }

.auth-tabs {
    display: flex;
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    padding: 4px;
    margin-bottom: 28px;
    gap: 4px;
}

.auth-tab {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 9px;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s;
}

.auth-tab.active {
    background: var(--card);
    color: var(--text);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.auth-field { text-align: left; margin-bottom: 16px; }

.auth-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-2);
    margin-bottom: 7px;
}

.auth-field input {
    width: 100%;
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-field input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(232,53,74,0.1);
}

.auth-submit {
    width: 100%;
    margin-top: 6px;
    padding: 14px;
    border-radius: var(--radius-sm);
    background: var(--gradient);
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(232,53,74,0.3);
}

.auth-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,53,74,0.4); }

.auth-error {
    display: none;
    color: var(--primary);
    font-size: 0.87rem;
    font-weight: 600;
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(192,21,42,0.08);
    border-radius: var(--radius-sm);
}

.auth-success {
    display: none;
    color: #059669;
    font-size: 0.87rem;
    font-weight: 600;
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(5,150,105,0.08);
    border-radius: var(--radius-sm);
}

/* =========================
   PROFILE
========================= */
.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--card);
    padding: 36px 40px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.profile-avatar-big {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--gradient);
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-info h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-info p { color: var(--text-2); font-size: 0.9rem; }

.profile-logout {
    margin-left: auto;
    padding: 9px 20px;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--primary);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.87rem;
    cursor: pointer;
    transition: all 0.2s;
}

.profile-logout:hover { background: var(--primary); color: white; border-color: var(--primary); }

.profile-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.profile-tab {
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--border);
    background: var(--card);
    color: var(--muted);
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.profile-tab.active,
.profile-tab:hover { background: var(--gradient); color: white; border-color: transparent; }

.profile-gift-card {
    background: var(--card);
    padding: 22px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.profile-gift-card .gift-emoji { font-size: 2rem; flex-shrink: 0; }
.profile-gift-card .gift-info { flex: 1; }
.profile-gift-card h4 { font-size: 0.97rem; font-weight: 600; margin-bottom: 4px; }
.profile-gift-card p { font-size: 0.87rem; color: var(--text-2); margin-bottom: 10px; line-height: 1.5; }
.profile-gift-card .gift-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.gift-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    background: var(--gradient-soft);
    color: var(--primary);
}

.gift-tag.bought { background: rgba(5,150,105,0.1); color: #059669; }

.icon-btn {
    padding: 7px 14px;
    border-radius: 9px;
    border: 1.5px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.icon-btn:hover { border-color: var(--primary); color: var(--primary); }

.note-input {
    width: 100%;
    margin-top: 10px;
    padding: 10px 13px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    outline: none;
    resize: none;
    min-height: 70px;
    transition: border-color 0.2s;
}

.note-input:focus { border-color: var(--primary); }

.empty-profile { text-align: center; padding: 60px 24px; color: var(--muted); }
.empty-profile a { color: var(--primary); font-weight: 600; }

/* =========================
   USER AUTH SYSTEM
========================= */
.GM_USERS_KEY { display: none; }

/* =========================
   FOOTER
========================= */
footer {
    padding: 60px 48px 40px;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-brand .logo { font-size: 1.3rem; margin-bottom: 10px; display: block; }
.footer-brand p { font-size: 0.85rem; color: var(--muted); max-width: 240px; line-height: 1.6; }

.footer-links h4 {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 14px;
}

.footer-links a {
    display: block;
    font-size: 0.88rem;
    color: var(--text-2);
    margin-bottom: 8px;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--primary); }

.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p { font-size: 0.82rem; color: var(--muted); }
.footer-bottom a { color: var(--primary); }
.footer-bottom a:hover { text-decoration: underline; }

.affiliate-disclaimer {
    font-size: 0.78rem;
    color: var(--muted);
    max-width: 700px;
    margin: 20px auto 0;
    text-align: center;
    line-height: 1.6;
}

/* =========================
   ANIMATIONS
========================= */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeIn 0.5s ease forwards; }

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   MOBILE NAV
========================= */
.nav-hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text);
    padding: 4px;
    z-index: 200;
}

.nav-close { display: none; }

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .navbar { padding: 0 18px; height: 60px; position: relative; }

    .nav-hamburger { display: flex; align-items: center; justify-content: center; }

    .navbar nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        min-height: 100%;
        min-height: 100dvh;
        background: var(--card);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 20px;
        z-index: 999;
        padding: 90px 24px 60px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }

    .navbar nav.open { display: flex; }

    .navbar nav a {
        font-size: 1.15rem;
        padding: 12px 24px;
        width: 100%;
        text-align: center;
        border-radius: 12px;
    }

    .navbar nav .nav-user-btn {
        justify-content: center;
    }

    .nav-close {
        display: block;
        position: fixed;
        top: 16px;
        right: 18px;
        background: none;
        border: none;
        font-size: 1.8rem;
        cursor: pointer;
        color: var(--text);
        z-index: 1000;
        line-height: 1;
        padding: 4px;
    }

    .hero { min-height: 80vh; padding: 80px 18px 120px; }
    .hero h1 { font-size: clamp(2.2rem, 9vw, 3rem); }
    .hero-sub { font-size: 1rem; }

    .trust-bar { padding: 16px 18px; gap: 20px; }
    .trust-item { font-size: 0.8rem; }

    .stats-row { gap: 32px; }
    .stat-number { font-size: 2.8rem; }

    .section { padding: 64px 16px; }
    .section-header { margin-bottom: 36px; }

    .gift-container { grid-template-columns: 1fr; gap: 14px; }
    .testimonial-grid { grid-template-columns: 1fr; }
    .lm-grid { grid-template-columns: 1fr; }

    .finder-wrap { padding: 28px 18px; border-radius: 20px; }

    .profile-header { padding: 24px 20px; flex-direction: column; text-align: center; }
    .profile-logout { margin-left: 0; }

    .auth-wrap { margin: 32px 16px; padding: 36px 20px; }

    footer { padding: 40px 18px 28px; }
    .footer-inner { flex-direction: column; gap: 28px; }
    .footer-bottom { flex-direction: column; text-align: center; }

    .cta-banner { padding: 64px 18px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .hero-btns { flex-direction: column; align-items: center; }
    .hero-cta, .hero-cta-ghost { width: 100%; justify-content: center; }
    .gift-card { padding: 24px 18px; }
    .profile-tabs { justify-content: center; }
    #langToggle { font-size: 0.7rem; width: 30px; height: 30px; }
    .nav-user-btn span:last-child { display: none; }
}

/* =========================
   DARK MODE OVERRIDES
========================= */
body.dark .auth-field input,
body.dark .form-group select,
body.dark .note-input {
    border-color: rgba(255,255,255,0.1);
}
