/* ── BOOTSTRAP PRIMARY OVERRIDE ─────────────────────────── */
:root {
    --bs-primary:           #E8437A;
    --bs-primary-rgb:       232, 67, 122;
    --bs-link-color:        #E8437A;
    --bs-link-color-rgb:    232, 67, 122;
    --bs-link-hover-color:  #c0305a;

    /* Brand accent palette (gift cards, badges) */
    --rose:           #F06870;
    --rose-light:     #fdeef0;
    --amber:          #e8883a;
    --amber-light:    #fff3e8;
    --teal:           #3aaa88;
    --teal-light:     #e6f7f2;
    --lavender:       #9b72c8;
    --lavender-light: #f2ecfa;
    --sakam-dark:     #1A1F3A;

    /* Lista brand accent triad (from logo mark) */
    --lista-pink:   #E8437A;
    --lista-navy:   #1A1F3A;
    --lista-orange: #F07040;
    --lista-teal:   #00B894;
    --lista-gold:   #F0B800;
}

/* ── BASE ────────────────────────────────────────────────── */
body { background-color: #f8f9fa; }

a { text-decoration: none; }
a:hover { text-decoration: underline; }

.app-main { min-height: calc(100vh - 140px); }

/* ── BOOTSTRAP COMPONENT OVERRIDES ──────────────────────── */

/* Primary button */
.btn-primary {
    --bs-btn-bg:                #E8437A;
    --bs-btn-border-color:      #E8437A;
    --bs-btn-hover-bg:          #c0305a;
    --bs-btn-hover-border-color:#c0305a;
    --bs-btn-active-bg:         #a82850;
    --bs-btn-active-border-color:#a82850;
    --bs-btn-focus-shadow-rgb:  232, 67, 122;
    --bs-btn-disabled-bg:       #E8437A;
    --bs-btn-disabled-border-color: #E8437A;
}

.btn-outline-primary {
    --bs-btn-color:             #E8437A;
    --bs-btn-border-color:      #E8437A;
    --bs-btn-hover-bg:          #E8437A;
    --bs-btn-hover-border-color:#E8437A;
    --bs-btn-active-bg:         #c0305a;
    --bs-btn-active-border-color:#c0305a;
    --bs-btn-focus-shadow-rgb:  232, 67, 122;
}

/* Form focus ring */
.form-control:focus,
.form-select:focus {
    border-color: #E8437A;
    box-shadow: 0 0 0 0.25rem rgba(232, 67, 122, 0.2);
}

.form-check-input:checked {
    background-color: #E8437A;
    border-color: #E8437A;
}
.form-check-input:focus {
    border-color: #E8437A;
    box-shadow: 0 0 0 0.25rem rgba(232, 67, 122, 0.2);
}

/* ── NAVBAR ──────────────────────────────────────────────── */
.navbar-brand .brand-text {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -.02em;
    color: var(--sakam-dark);
}

/* ── GIFT CARD IMAGE AREAS ───────────────────────────────── */
.gift-img {
    width: 100%;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    border-radius: var(--bs-card-border-radius) var(--bs-card-border-radius) 0 0;
    overflow: hidden;
}
.gi-rose     { background-color: var(--rose-light); }
.gi-amber    { background-color: var(--amber-light); }
.gi-teal     { background-color: var(--teal-light); }
.gi-lavender { background-color: var(--lavender-light); }

/* ── HOVER LIFT ──────────────────────────────────────────── */
.hover-lift {
    transition: transform .15s ease, box-shadow .15s ease;
}
.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.10) !important;
}

/* ── BADGE / PILL UTILITIES ──────────────────────────────── */
.badge-code {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    background: var(--amber-light);
    border: 1px solid #f4d5b4;
    border-radius: var(--bs-border-radius-pill);
    font-size: .75rem;
    font-weight: 700;
    color: var(--amber);
}

/* ── SHARE BOX ───────────────────────────────────────────── */
.share-box {
    background: var(--amber-light);
    border: 1px solid #f4d5b4;
    border-radius: var(--bs-border-radius);
    padding: 14px 16px;
}
.share-box-label {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 6px;
}
.share-url {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: var(--bs-border-radius-sm);
    padding: 7px 10px;
    font-size: .75rem;
    color: #6c757d;
    word-break: break-all;
    font-family: monospace;
}
.share-url-input {
    font-size: .75rem;
    font-family: monospace;
    color: #6c757d;
    background: white !important;
}

/* ── LISTA HERO ──────────────────────────────────────────── */
.lista-hero {
    background: var(--lista-navy);
    padding: 72px 0 64px;
    overflow: hidden;
}

.lista-hero-inner {
    display: flex;
    align-items: center;
    gap: 56px;
}

.lista-hero-text {
    flex: 1;
    min-width: 0;
}

.lista-hero-eyebrow {
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--lista-pink);
    margin-bottom: 18px;
}

.lista-hero-headline {
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    font-weight: 900;
    letter-spacing: -.04em;
    line-height: 1.05;
    color: white;
    text-wrap: balance;
    margin-bottom: 22px;
}

.lista-hero-headline span { color: var(--lista-pink); }

.lista-hero-tagline {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.lista-hero-tagline .tag-word {
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.lista-hero-tagline .tag-create  { color: var(--lista-orange); }
.lista-hero-tagline .tag-share   { color: var(--lista-teal); }
.lista-hero-tagline .tag-fulfill { color: var(--lista-gold); }
.lista-hero-tagline .tag-sep { color: rgba(255,255,255,.2); font-size: .8rem; }

.lista-hero-sub {
    font-size: 1rem;
    color: rgba(255,255,255,.6);
    line-height: 1.75;
    max-width: 430px;
    margin-bottom: 32px;
}

.lista-hero-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-hero-ghost {
    --bs-btn-bg:             transparent;
    --bs-btn-border-color:   rgba(255,255,255,.28);
    --bs-btn-color:          rgba(255,255,255,.78);
    --bs-btn-hover-bg:       rgba(255,255,255,.1);
    --bs-btn-hover-border-color: rgba(255,255,255,.55);
    --bs-btn-hover-color:    white;
    --bs-btn-active-bg:      rgba(255,255,255,.15);
    --bs-btn-focus-shadow-rgb: 255,255,255;
}

/* Floating wishlist card */
.lista-hero-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 32px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.06);
    transform: rotate(2.5deg);
    width: 256px;
    flex-shrink: 0;
}

.hero-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f1f1;
    margin-bottom: 12px;
}

.hero-card-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--lista-pink), var(--lista-orange));
    flex-shrink: 0;
}

.hero-card-title {
    font-size: .8rem;
    font-weight: 700;
    color: var(--lista-navy);
    line-height: 1.3;
}

.hero-card-date {
    font-size: .65rem;
    color: #9ca3af;
}

.hero-gift-rows {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.hero-gift-row {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 8px;
    border-radius: 8px;
    background: #fafafa;
}

.hero-gift-swatch {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    flex-shrink: 0;
}

.hgs-rose     { background: var(--rose-light); }
.hgs-amber    { background: var(--amber-light); }
.hgs-lavender { background: var(--lavender-light); }

.hero-gift-info { flex: 1; min-width: 0; }

.hero-gift-name {
    font-size: .7rem;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-gift-price {
    font-size: .62rem;
    color: #9ca3af;
}

.hero-gift-taken {
    font-size: .6rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    background: var(--teal-light);
    color: var(--teal);
    flex-shrink: 0;
    white-space: nowrap;
}

/* ── HOW-IT-WORKS ────────────────────────────────────────── */
.how-step { padding: 1.5rem; }

.how-step-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--bs-border-radius-lg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.how-step-word {
    display: inline-block;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}
.how-step-word-create  { color: var(--lista-orange); background: #fff2ec; }
.how-step-word-share   { color: var(--lista-teal);   background: #e6faf6; }
.how-step-word-fulfill { color: #c79400;             background: #fff9e0; }

/* ── CTA STRIP ───────────────────────────────────────────── */
.cta-strip {
    background: linear-gradient(135deg, var(--lista-pink) 0%, var(--lista-orange) 100%);
    border-radius: var(--bs-border-radius-lg);
    padding: 48px 40px;
    text-align: center;
    margin: 0 0 48px;
}
.cta-strip h2 { font-size: 1.6rem; font-weight: 800; color: white; text-wrap: balance; }
.cta-strip p  { color: rgba(255,255,255,.85); }

.btn-white {
    --bs-btn-bg:            white;
    --bs-btn-border-color:  white;
    --bs-btn-color:         #F06870;
    --bs-btn-hover-bg:      #fff0f1;
    --bs-btn-hover-border-color: #fff0f1;
    --bs-btn-hover-color:   #d05060;
    --bs-btn-active-bg:     #ffe0e2;
    --bs-btn-font-weight:   700;
}

/* ── AUTH ────────────────────────────────────────────────── */
.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 16px;
    border: 1px solid #dee2e6;
    border-radius: var(--bs-border-radius);
    background: white;
    font-weight: 600;
    font-size: .875rem;
    color: #212529;
    cursor: pointer;
    transition: background .12s, border-color .12s;
    width: 100%;
}
.btn-social:hover { background: #f8f9fa; border-color: #bbb; }

.auth-divider {
    position: relative;
    text-align: center;
    margin: 1rem 0;
}
.auth-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0; right: 0;
    border-top: 1px solid #dee2e6;
    z-index: 1;
}
.auth-divider span {
    position: relative;
    z-index: 2;
    background: #fff; /* card background */
    padding: 0 .75rem;
    color: #6c757d;
    font-size: .8rem;
}

.auth-link { color: var(--rose); font-weight: 700; }
.auth-link:hover { color: #d05060; }

/* ── LANGUAGE SWITCHER ───────────────────────────────────── */
.lang-btn {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .04em;
    border-radius: var(--bs-border-radius-pill);
    border: 1px solid #dee2e6;
    background: transparent;
    color: #6c757d;
    line-height: 1.6;
    transition: all .15s;
}
.lang-btn:hover { border-color: var(--lista-pink); color: var(--lista-pink); background: #fce8ef; }
.lang-btn-active { background: #fce8ef !important; color: var(--lista-pink) !important; border-color: var(--lista-pink) !important; }

/* ── SMALL UTILITIES ─────────────────────────────────────── */
.label-eyebrow {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: #6c757d;
}

/* ── EVENT COVER STYLES ──────────────────────────────────── */
.event-cover {
    position: relative;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}
.event-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.55);
    pointer-events: none;
}
.event-cover.cover-dark::before {
    background: rgba(0,0,0,.35);
}
.event-cover > * { position: relative; z-index: 1; }

.event-cover.cover-rose     { background: linear-gradient(135deg, #f8c8d0 0%, #fde8ec 55%, #f5b0c0 100%); }
.event-cover.cover-blush    { background: linear-gradient(135deg, #fde0cc 0%, #fff0e8 55%, #f8c8a0 100%); }
.event-cover.cover-sky      { background: linear-gradient(135deg, #b8e0f8 0%, #e4f4fd 55%, #90ccf0 100%); }
.event-cover.cover-mint     { background: linear-gradient(135deg, #b8ede0 0%, #e4f7f2 55%, #88d8c8 100%); }
.event-cover.cover-lavender { background: linear-gradient(135deg, #ddd0f8 0%, #f2e8fd 55%, #c8a8f0 100%); }
.event-cover.cover-gold     { background: linear-gradient(135deg, #f8e4b0 0%, #fdf6e0 55%, #f0cc80 100%); }
.event-cover.cover-midnight { background: linear-gradient(135deg, #1e2337 0%, #2e3a5c 55%, #141827 100%); }
.event-cover.cover-forest   { background: linear-gradient(135deg, #2a5a3c 0%, #3d7a58 55%, #1c3d28 100%); }

/* text override for dark covers */
.event-cover.cover-midnight > * *,
.event-cover.cover-midnight > * { color: #fff !important; }
.event-cover.cover-forest > * *,
.event-cover.cover-forest > * { color: #fff !important; }
.event-cover.cover-midnight .text-muted,
.event-cover.cover-forest .text-muted  { color: rgba(255,255,255,.75) !important; }
.event-cover.cover-midnight .badge-code,
.event-cover.cover-forest .badge-code  { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.3); color: #fff; }
.event-cover.cover-midnight .btn-outline-secondary,
.event-cover.cover-forest .btn-outline-secondary { border-color: rgba(255,255,255,.5); color: #fff; }
.event-cover.cover-midnight .btn-outline-secondary:hover,
.event-cover.cover-forest .btn-outline-secondary:hover { background: rgba(255,255,255,.15); }

/* ── COVER STYLE PICKER ──────────────────────────────────── */
.cover-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.cover-picker input[type=radio] { display: none; }
.cover-swatch {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: transform .12s, border-color .12s;
    box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.cover-swatch:hover { transform: scale(1.15); }
.cover-picker input[type=radio]:checked + .cover-swatch {
    border-color: #1E2337;
    transform: scale(1.18);
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.swatch-none    { background: #dee2e6; }
.swatch-rose    { background: linear-gradient(135deg, #f8c8d0, #f5b0c0); }
.swatch-blush   { background: linear-gradient(135deg, #fde0cc, #f8c8a0); }
.swatch-sky     { background: linear-gradient(135deg, #b8e0f8, #90ccf0); }
.swatch-mint    { background: linear-gradient(135deg, #b8ede0, #88d8c8); }
.swatch-lavender{ background: linear-gradient(135deg, #ddd0f8, #c8a8f0); }
.swatch-gold    { background: linear-gradient(135deg, #f8e4b0, #f0cc80); }
.swatch-midnight{ background: linear-gradient(135deg, #1e2337, #2e3a5c); }
.swatch-forest  { background: linear-gradient(135deg, #2a5a3c, #3d7a58); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 767.98px) {
    .lista-hero { padding: 48px 0 40px; }
    .lista-hero-inner { flex-direction: column; gap: 32px; }
    .lista-hero-card { transform: rotate(0deg); width: 100%; max-width: 300px; margin: 0 auto; }
    .cta-strip { padding: 32px 24px; }
}

@media (max-width: 575.98px) {
    .lista-hero-card { display: none; }
}
