:root {
    --gold: #D4A853;
    --gold-light: #F0D48A;
    --gold-dark: #B8892E;
    --rose: #C4547A;
    --rose-light: #E8A0B8;
    --rose-dark: #9B3D5E;
    --plum: #2A1B3D;
    --plum-mid: #44305F;
    --plum-light: #654F8B;
    --cream: #FFF8F0;
    --cream-dark: #F0E6D6;
    --ink: #1A1225;
    --success: #5DB075;
    --danger: #D45B5B;
    --card-bg: rgba(255, 255, 255, 0.04);
    --card-border: rgba(212, 168, 83, 0.15);
    --glass: rgba(42, 27, 61, 0.85);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--ink);
    color: var(--cream);
    min-height: 100vh;
    overflow-x: hidden;
}

/* === BACKGROUND ATMOSPHERE === */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 10%, rgba(196, 84, 122, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 80% 30%, rgba(212, 168, 83, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 90% 50% at 50% 90%, rgba(101, 79, 139, 0.12) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* === CONFETTI PARTICLES === */
.confetti-container {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 8px;
    height: 8px;
    opacity: 0;
    animation: confettiFall linear infinite;
}

.confetti:nth-child(odd) { border-radius: 50%; }
.confetti:nth-child(3n) { width: 5px; height: 12px; border-radius: 2px; }
.confetti:nth-child(5n) { width: 10px; height: 4px; border-radius: 1px; }

@keyframes confettiFall {
    0% { transform: translateY(-10vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.7; }
    90% { opacity: 0.5; }
    100% { transform: translateY(105vh) rotate(720deg); opacity: 0; }
}

/* === SPARKLE DOTS === */
.sparkle {
    position: fixed;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--gold-light);
    pointer-events: none;
    z-index: 0;
    animation: sparkle 3s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

/* === LAYOUT === */
.container {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === HERO SECTION === */
.hero {
    text-align: center;
    padding: 80px 0 48px;
    position: relative;
}

.hero-badge {
    display: inline-block;
    padding: 6px 20px;
    border: 1px solid var(--gold);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 32px;
    animation: fadeInDown 0.8s ease-out;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 8px;
    padding-bottom: 8px;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero h1 .names {
    display: block;
    padding-bottom: 16px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--rose-light), var(--gold));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s ease-in-out infinite;
}

.hero h1 .werden {
    display: block;
    font-size: 0.35em;
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    -webkit-text-fill-color: var(--cream-dark);
    margin-top: 8px;
    opacity: 0.7;
}

.hero .thirty {
    font-family: 'Playfair Display', serif;
    font-size: clamp(5rem, 15vw, 11rem);
    font-weight: 900;
    font-style: italic;
    line-height: 1.1;
    padding-bottom: 12px;
    background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    position: relative;
}

.hero .thirty::after {
    content: '!';
    -webkit-text-fill-color: var(--rose);
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-description {
    max-width: 520px;
    margin: 24px auto 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 248, 240, 0.65);
    font-weight: 300;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* === COUNTDOWN === */
.countdown-section {
    padding: 32px 0;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.countdown-item {
    text-align: center;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 20px 12px;
    min-width: 90px;
    backdrop-filter: blur(10px);
}

.countdown-item .number {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--gold-light);
    line-height: 1;
}

.countdown-item .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 248, 240, 0.45);
    margin-top: 6px;
    font-weight: 500;
}

/* === STATS BAR === */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 24px 0 40px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
}

.stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 248, 240, 0.4);
    font-weight: 500;
}

/* === DIVIDER === */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.2;
    margin: 8px 0 48px;
}

/* === ADD FORM === */
.form-section {
    margin-bottom: 48px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.section-subtitle {
    text-align: center;
    color: rgba(255, 248, 240, 0.5);
    font-size: 0.9rem;
    font-weight: 300;
    margin-bottom: 32px;
}

.form-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 32px;
    backdrop-filter: blur(10px);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-row.full {
    grid-template-columns: 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 248, 240, 0.5);
    font-weight: 500;
}

.form-group input,
.form-group select {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(212, 168, 83, 0.12);
    border-radius: 10px;
    padding: 14px 16px;
    color: var(--cream);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

/* === CUSTOM SELECT === */
.custom-select {
    position: relative;
    user-select: none;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(212, 168, 83, 0.12);
    border-radius: 10px;
    padding: 14px 16px;
    color: var(--cream);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-select-trigger:hover {
    border-color: rgba(212, 168, 83, 0.3);
}

.custom-select.open .custom-select-trigger {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.1);
    border-radius: 10px 10px 0 0;
}

.custom-select-trigger .select-arrow {
    width: 18px;
    height: 18px;
    color: var(--gold);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.custom-select.open .select-arrow {
    transform: rotate(180deg);
}

.custom-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--plum);
    border: 1px solid var(--gold);
    border-top: none;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    z-index: 50;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.2s ease;
}

.custom-select.open .custom-select-options {
    max-height: 250px;
    opacity: 1;
}

.custom-select-option {
    padding: 12px 16px;
    font-size: 0.9rem;
    color: rgba(255, 248, 240, 0.7);
    cursor: pointer;
    transition: all 0.15s ease;
}

.custom-select-option:hover {
    background: rgba(212, 168, 83, 0.12);
    color: var(--cream);
}

.custom-select-option.selected {
    color: var(--gold-light);
    background: rgba(212, 168, 83, 0.08);
}

.form-group input::placeholder {
    color: rgba(255, 248, 240, 0.25);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.1);
}

.form-group select option {
    background: var(--plum);
    color: var(--cream);
}

.field-error {
    font-size: 0.78rem;
    color: var(--danger);
    min-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    display: block;
}

.form-group input.invalid {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(212, 91, 91, 0.1);
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border: none;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.03em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--ink);
    width: 100%;
    margin-top: 8px;
}

.btn-primary:hover {
    box-shadow: 0 8px 24px rgba(212, 168, 83, 0.25);
    opacity: 0.9;
}

.btn-small {
    padding: 8px 14px;
    font-size: 0.75rem;
    border-radius: 8px;
}

.btn-edit {
    background: rgba(212, 168, 83, 0.12);
    color: var(--gold-light);
}

.btn-edit:hover {
    background: rgba(212, 168, 83, 0.2);
}

.btn-delete {
    background: rgba(212, 91, 91, 0.1);
    color: var(--danger);
}

.btn-delete:hover {
    background: rgba(212, 91, 91, 0.2);
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 248, 240, 0.5);
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* === SEARCH BAR === */
.search-bar {
    max-width: 400px;
    margin: 0 auto 20px;
}

.search-bar input {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(212, 168, 83, 0.12);
    border-radius: 100px;
    padding: 12px 24px;
    color: var(--cream);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-bar input::placeholder {
    color: rgba(255, 248, 240, 0.25);
}

.search-bar input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.1);
}

/* === CATEGORY FILTERS === */
.filters {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 18px;
    border: 1px solid rgba(212, 168, 83, 0.15);
    border-radius: 100px;
    background: transparent;
    color: rgba(255, 248, 240, 0.5);
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--gold);
    color: var(--gold-light);
}

.filter-btn.active {
    background: rgba(212, 168, 83, 0.12);
    border-color: var(--gold);
    color: var(--gold-light);
}

.filter-btn .count {
    display: inline-block;
    background: rgba(212, 168, 83, 0.15);
    padding: 1px 7px;
    border-radius: 100px;
    font-size: 0.7rem;
    margin-left: 4px;
}

/* === ITEMS LIST === */
.items-section {
    padding-bottom: 80px;
}

.items-grid {
    display: grid;
    gap: 12px;
}

.item-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 18px 22px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    animation: itemIn 0.4s ease-out both;
}

.item-card:hover {
    border-color: rgba(212, 168, 83, 0.3);
    background: rgba(255, 255, 255, 0.06);
}

@keyframes itemIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.item-emoji {
    font-size: 1.8rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 168, 83, 0.08);
    border-radius: 12px;
}

.item-info {
    min-width: 0;
}

.item-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 2px;
}

.item-what {
    color: var(--gold-light);
    font-size: 0.9rem;
    font-weight: 400;
    overflow-wrap: break-word;
    word-break: break-word;
}

.item-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 248, 240, 0.35);
    margin-top: 3px;
}

.item-actions {
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.item-card:hover .item-actions {
    opacity: 1;
}

/* === EDIT MODAL === */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 5, 20, 0.8);
    backdrop-filter: blur(6px);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--plum);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 36px;
    width: 100%;
    max-width: 480px;
    animation: modalIn 0.3s ease-out;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 24px;
}

.modal .form-group {
    margin-bottom: 16px;
}

.modal-btns {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.modal-btns .btn {
    flex: 1;
}

/* === EMPTY STATE === */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 248, 240, 0.3);
}

.empty-state .icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.empty-state p {
    font-size: 0.95rem;
    font-weight: 300;
}

/* === LOADING === */
.loading {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 36px;
    height: 36px;
    border: 2px solid rgba(212, 168, 83, 0.15);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading p {
    color: rgba(255, 248, 240, 0.35);
    font-size: 0.85rem;
}

/* === TOAST === */
.toast {
    position: fixed;
    bottom: 32px;
    left: 20px;
    right: 20px;
    transform: translateY(100px);
    background: var(--plum-mid);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 14px 28px;
    font-size: 0.85rem;
    z-index: 200;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
    text-align: center;
}

.toast.show {
    transform: translateY(0);
}

@media (min-width: 769px) {
    .toast {
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(100px);
        width: max-content;
        max-width: 600px;
        white-space: nowrap;
    }
    .toast.show {
        transform: translateX(-50%) translateY(0);
    }
}

/* === SETUP BANNER === */
.setup-banner {
    background: linear-gradient(135deg, rgba(212, 91, 91, 0.15), rgba(196, 84, 122, 0.15));
    border: 1px solid rgba(212, 91, 91, 0.3);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
    text-align: center;
    display: none;
}

.setup-banner.show {
    display: block;
}

.setup-banner h3 {
    color: var(--rose-light);
    font-size: 1rem;
    margin-bottom: 8px;
}

.setup-banner p {
    color: rgba(255, 248, 240, 0.6);
    font-size: 0.85rem;
    line-height: 1.6;
}

.setup-banner code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* === INFO BANNER === */
.info-banner {
    background: rgba(212, 168, 83, 0.06);
    border: 1px solid rgba(212, 168, 83, 0.12);
    border-radius: 12px;
    padding: 14px 20px;
    text-align: center;
    margin-bottom: 32px;
    font-size: 0.85rem;
    color: rgba(255, 248, 240, 0.5);
}

.info-banner strong {
    color: var(--gold-light);
}

/* === FOOTER === */
.footer {
    text-align: center;
    padding: 40px 0;
    color: rgba(255, 248, 240, 0.2);
    font-size: 0.75rem;
    border-top: 1px solid rgba(212, 168, 83, 0.08);
}

/* === RESPONSIVE === */
@media (max-width: 640px) {
    .hero { padding: 56px 0 32px; }
    .form-row { grid-template-columns: 1fr; }
    .form-card { padding: 24px 18px; }
    .countdown { gap: 10px; }
    .countdown-item { min-width: 72px; padding: 14px 8px; }
    .countdown-item .number { font-size: 1.8rem; }
    .item-card { grid-template-columns: auto 1fr; padding: 14px 16px; }
    .item-actions { opacity: 1; grid-column: 1 / -1; justify-content: flex-end; }
    .stats-bar { gap: 20px; }
    .filters { gap: 6px; }
    .filter-btn { padding: 6px 14px; font-size: 0.75rem; }
}
