:root {
    --red: #E8254A;
    --red-dark: #C41E3A;
    --pink: #FF6B9D;
    --pink-soft: #FFB3D9;
    --pink-light: #FFF0F5;
    --cream: #FFFBFA;
    --white: #FFFFFF;
    --green: #6CBF47;
    --text: #2D1B2E;
    --text-muted: #7A5C6B;
    --shadow: 0 8px 32px rgba(232, 37, 74, 0.12);
    --radius: 16px;
    --radius-sm: 10px;
    --font: 'Nunito', system-ui, sans-serif;
    --font-display: 'Pacifico', cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--cream);
    line-height: 1.5;
    min-height: 100vh;
}

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.65rem 1.25rem;
    border: none;
    border-radius: 999px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    background: var(--white);
    color: var(--text);
    transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--primary { background: linear-gradient(135deg, var(--red), var(--pink)); color: var(--white); }
.btn--danger { background: #fee; color: var(--red-dark); }
.btn--sm { padding: 0.4rem 0.85rem; font-size: 0.85rem; }
.btn--lg { padding: 0.85rem 1.5rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--google {
    background: var(--white);
    border: 2px solid #e8e8e8;
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
}

.btn--google:hover {
    border-color: #dadce0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn--google__icon {
    flex-shrink: 0;
}

.btn--google-disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.btn--google-disabled:hover {
    transform: none;
    box-shadow: none;
}

.input, select.input, textarea.input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #f0d4de;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    background: var(--white);
    transition: border-color 0.15s;
}
.input:focus { outline: none; border-color: var(--pink); }
.input--sm { width: 4rem; padding: 0.4rem; }

.field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
.field span { font-weight: 700; font-size: 0.9rem; }
.field-error { color: var(--red); font-size: 0.85rem; }
.field--checkbox { flex-direction: row; align-items: center; gap: 0.5rem; }

.badge {
    display: inline-flex;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    align-items: center;
    justify-content: center;
    background: var(--red);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 800;
    border-radius: 999px;
}

.alert {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
.alert--error, .alert--warning { background: #fff0f3; color: var(--red-dark); border: 1px solid #ffc9d4; }
.alert--info { background: var(--pink-light); border: 1px solid var(--pink-soft); }
.text-muted { color: var(--text-muted); font-size: 0.95rem; }

.flash-stack {
    position: fixed;
    top: clamp(5.25rem, 15vh, 6.5rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    width: min(420px, calc(100vw - 2rem));
    max-width: min(420px, calc(100vw - 2rem));
    pointer-events: none;
}
.flash {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    padding: 0.8rem 1.35rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.35;
    pointer-events: auto;
    border: 1px solid transparent;
    cursor: pointer;
    transform-origin: center center;
    backface-visibility: hidden;
    will-change: transform, opacity;
    animation: flashEnter 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.flash::before {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1;
}
.flash::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 38%,
        rgba(255, 255, 255, 0.35) 50%,
        transparent 62%
    );
    transform: translate3d(-120%, 0, 0);
    animation: flashShimmer 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.25s 1;
    pointer-events: none;
}
.flash--success {
    background: linear-gradient(135deg, var(--red), var(--pink));
    color: var(--white);
    box-shadow: 0 10px 28px rgba(232, 37, 74, 0.24);
}
.flash--success::before {
    content: '✓';
    background: rgba(255, 255, 255, 0.22);
}
.flash--error {
    background: linear-gradient(135deg, #fff8fa, var(--pink-light));
    color: var(--red-dark);
    border-color: var(--pink-soft);
    box-shadow: 0 10px 24px rgba(232, 37, 74, 0.12);
}
.flash--error::before {
    content: '!';
    background: rgba(232, 37, 74, 0.12);
    color: var(--red);
}
.flash.flash--out {
    animation: flashExit 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
    pointer-events: none;
}
.flash.flash--out::after {
    animation: none;
    opacity: 0;
}
@keyframes flashEnter {
    from {
        opacity: 0;
        transform: translate3d(0, -14px, 0) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}
@keyframes flashShimmer {
    to { transform: translate3d(120%, 0, 0); }
}
@keyframes flashExit {
    from {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        opacity: 0;
        transform: translate3d(0, -10px, 0) scale(0.95);
    }
}
@media (prefers-reduced-motion: reduce) {
    .flash {
        animation: none;
        will-change: auto;
    }
    .flash::after { animation: none; display: none; }
    .flash.flash--out {
        animation: flashExitReduced 0.3s ease forwards !important;
    }
}
@keyframes flashExitReduced {
    to { opacity: 0; }
}

.pill {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}
.pill--ok { background: #e8f8ec; color: #1a7a32; }
.pill--warn { background: #fff3e0; color: #e65100; }

.page-title { font-size: clamp(1.5rem, 4vw, 2rem); margin: 0 0 1.5rem; font-weight: 800; }
.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.35rem;
    margin: 2rem 0 1rem;
    font-weight: 800;
}
.section-title__dot {
    width: 10px; height: 10px;
    background: var(--red);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(232,37,74,0.2);
}

.link-back { display: inline-block; margin-top: 1rem; font-weight: 600; }

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.empty-state__icon { font-size: 3rem; margin-bottom: 0.5rem; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
