/* ─── Reset & Variables ─────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --pri: #6366f1;
    --pri-light: #818cf8;
    --pri-dark: #4f46e5;
    --pri-ghost: rgba(99,102,241,.08);
    --sec: #ec4899;
    --bg: #f8f9fc;
    --surface: #ffffff;
    --surface-hover: #f3f4f8;
    --text: #1a1d2e;
    --text2: #6b7280;
    --text3: #9ca3af;
    --border: #e5e7eb;
    --border-light: #f0f1f4;
    --shadow-xs: 0 1px 2px rgba(0,0,0,.04);
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,.12);
    --radius: 14px;
    --radius-sm: 8px;
    --radius-xs: 6px;
    --ease: cubic-bezier(.4,0,.2,1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --cat-social: #10b981;
    --cat-work: #3b82f6;
    --cat-personal: #8b5cf6;
    --cat-family: #ec4899;
    --cat-health: #f59e0b;
    --cat-travel: #06b6d4;
    --cat-default: #6b7280;

    --anne: #8b5cf6;
    --couple: #ec4899;
    --others: #06b6d4;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    font-weight: 400;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ─── Animated Background ──────────────────────────────── */
.bg-animation {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

/* ─── Animated Couple Logo Background ──────────────────── */
.bg-logo-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70vh;
    height: 70vh;
    max-width: 70vw;
    max-height: 70vw;
    animation: logoFloat 30s ease-in-out infinite, logoBreathe 8s ease-in-out infinite;
    z-index: 0;
}

.bg-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.06;
    filter: grayscale(30%) blur(1px);
    animation: logoRotate 60s linear infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translate(-50%, -50%) translate(0, 0); }
    20% { transform: translate(-50%, -50%) translate(25px, -15px); }
    40% { transform: translate(-50%, -50%) translate(-20px, 20px); }
    60% { transform: translate(-50%, -50%) translate(15px, 25px); }
    80% { transform: translate(-50%, -50%) translate(-25px, -10px); }
}

@keyframes logoBreathe {
    0%, 100% { scale: 1; }
    50% { scale: 1.04; }
}

@keyframes logoRotate {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(1.5deg); }
    75% { transform: rotate(-1.5deg); }
}

/* ─── Gradient Orbs ────────────────────────────────────── */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
    will-change: transform;
}

.orb-1 {
    width: 500px; height: 500px;
    background: linear-gradient(135deg, #818cf8, #c084fc);
    top: -150px; left: -150px;
    animation-delay: 0s;
    animation-duration: 28s;
}
.orb-2 {
    width: 400px; height: 400px;
    background: linear-gradient(135deg, #f9a8d4, #fbbf24);
    top: 50%; right: -120px;
    animation-delay: -7s;
    animation-duration: 24s;
}
.orb-3 {
    width: 350px; height: 350px;
    background: linear-gradient(135deg, #6ee7b7, #67e8f9);
    bottom: -100px; left: 25%;
    animation-delay: -12s;
    animation-duration: 26s;
}
.orb-4 {
    width: 300px; height: 300px;
    background: linear-gradient(135deg, #fda4af, #c4b5fd);
    top: 25%; left: 55%;
    animation-delay: -18s;
    animation-duration: 32s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(80px, -50px) scale(1.08); }
    50% { transform: translate(-40px, 70px) scale(0.94); }
    75% { transform: translate(50px, 30px) scale(1.06); }
}

/* ─── App Container ────────────────────────────────────── */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* ─── Header ───────────────────────────────────────────── */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 2rem;
    background: rgba(255,255,255,.78);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(255,255,255,.5);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,.03);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
}

.app-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--pri), var(--sec));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.view-toggle {
    display: flex;
    gap: 4px;
    background: var(--pri-ghost);
    padding: 4px;
    border-radius: 12px;
}

.view-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--text2);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 500;
    font-family: var(--font);
    transition: all .2s var(--ease);
    white-space: nowrap;
}

.view-btn:hover { color: var(--text); background: rgba(255,255,255,.6); }
.view-btn.active {
    background: var(--surface);
    color: var(--pri);
    box-shadow: var(--shadow-sm);
    font-weight: 600;
}
.view-btn svg { flex-shrink: 0; }

.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.icon-btn {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    color: var(--text2);
    transition: all .2s var(--ease);
}
.icon-btn:hover { color: var(--pri); border-color: var(--pri-light); background: var(--pri-ghost); }

.add-event-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: var(--pri);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
    font-family: var(--font);
    transition: all .2s var(--ease);
    box-shadow: 0 2px 8px rgba(99,102,241,.25);
}
.add-event-btn:hover { background: var(--pri-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(99,102,241,.3); }

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 4px;
}

/* ─── Filter Bar ───────────────────────────────────────── */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 2rem;
    background: rgba(255,255,255,.55);
    backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid rgba(255,255,255,.4);
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-select, .filter-search {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    font-size: 0.8125rem;
    font-family: var(--font);
    background: var(--surface);
    color: var(--text);
    transition: all .2s var(--ease);
}
.filter-select:focus, .filter-search:focus {
    outline: none;
    border-color: var(--pri-light);
    box-shadow: 0 0 0 3px var(--pri-ghost);
}

.filter-search {
    width: 200px;
}

/* ─── Main Content ─────────────────────────────────────── */
.main-content {
    flex: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem 2rem 3rem;
    width: 100%;
}

.view-panel {
    display: none;
    animation: viewIn .35s var(--ease);
}
.view-panel.active { display: block; }

@keyframes viewIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.section-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--text);
}

/* ─── Month Navigation ─────────────────────────────────── */
.month-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.nav-arrow {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    color: var(--text2);
    transition: all .2s var(--ease);
}
.nav-arrow:hover { color: var(--pri); border-color: var(--pri-light); }

.nav-center { display: flex; align-items: center; gap: 1rem; }

.nav-title {
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.today-btn {
    padding: 4px 14px;
    background: var(--pri-ghost);
    color: var(--pri);
    border: 1px solid transparent;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all .2s var(--ease);
}
.today-btn:hover { background: var(--pri); color: #fff; }

/* ─── Calendar Grid (Monthly) ──────────────────────────── */
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.6);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm), 0 0 0 1px rgba(0,0,0,.03);
}

.cal-head {
    padding: 12px 4px;
    text-align: center;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: var(--surface-hover);
    border-bottom: 1px solid var(--border-light);
}

.cal-cell {
    min-height: 110px;
    padding: 6px;
    border-right: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: background .15s var(--ease);
    position: relative;
}
.cal-cell:nth-child(7n) { border-right: none; }
.cal-cell:hover { background: var(--pri-ghost); }
.cal-cell.other { opacity: .35; }
.cal-cell.today { background: rgba(99,102,241,.06); }
.cal-cell.today .cal-num {
    background: var(--pri);
    color: #fff;
    border-radius: 50%;
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
}

.cal-num {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text2);
    margin-bottom: 4px;
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
}

.cal-events { display: flex; flex-direction: column; gap: 2px; }

.cal-chip {
    font-size: 0.6875rem;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    font-weight: 500;
    transition: all .15s var(--ease);
    border-left: 3px solid;
}
.cal-chip:hover { transform: translateX(2px); }

.cal-chip.status-suggestion {
    opacity: .65;
    border-left-style: dashed;
    background-image: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 4px,
        rgba(251,146,60,.06) 4px,
        rgba(251,146,60,.06) 8px
    );
}
.cal-chip.status-confirmed { opacity: 1; }
.cal-chip.status-tentative { opacity: .7; }
.cal-chip.status-deciding { opacity: .5; font-style: italic; }
.cal-chip.status-declined { opacity: .3; text-decoration: line-through; }

.cal-more {
    font-size: 0.625rem;
    color: var(--text3);
    padding: 1px 6px;
    font-weight: 600;
}

/* People indicators on chips */
.chip-people {
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    margin-right: 3px;
    vertical-align: middle;
}
.chip-people.anne { background: var(--anne); }
.chip-people.ricardo_anne { background: var(--couple); }
.chip-people.others { background: var(--others); }

/* ─── Year Grid ────────────────────────────────────────── */
.year-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.ym-card {
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.6);
    border-radius: var(--radius);
    padding: 1.25rem;
    cursor: pointer;
    transition: all .25s var(--ease);
    box-shadow: var(--shadow-xs), 0 0 0 1px rgba(0,0,0,.02);
}
.ym-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--pri-light); }
.ym-card.current-month-card { border-color: var(--pri-light); background: rgba(99,102,241,.03); }

.ym-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}
.ym-card-title { font-size: 0.875rem; font-weight: 700; color: var(--text); }
.ym-card-count {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--pri);
    background: var(--pri-ghost);
    padding: 2px 8px;
    border-radius: 20px;
}

.ym-mini-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.ym-mini-head {
    font-size: 0.5rem;
    text-align: center;
    color: var(--text3);
    font-weight: 600;
}

.ym-day {
    aspect-ratio: 1;
    border-radius: 2px;
    background: var(--bg);
    position: relative;
}
.ym-day.has-events { background: var(--pri-light); }
.ym-day.today-dot {
    outline: 2px solid var(--pri);
    outline-offset: -1px;
}
.ym-day.blank { background: transparent; }

/* ─── Category View ────────────────────────────────────── */
.cat-sections { display: flex; flex-direction: column; gap: 1.25rem; }

.cat-section {
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.6);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-xs), 0 0 0 1px rgba(0,0,0,.02);
}

.cat-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: background .15s var(--ease);
}
.cat-section-head:hover { background: var(--surface-hover); }

.cat-section-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cat-dot {
    width: 14px; height: 14px;
    border-radius: 4px;
    flex-shrink: 0;
}

.cat-section-title {
    font-size: 1rem;
    font-weight: 600;
}

.cat-section-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text3);
    background: var(--bg);
    padding: 2px 10px;
    border-radius: 20px;
}

.cat-section-body {
    border-top: 1px solid var(--border-light);
    padding: 0.5rem;
}

.cat-event-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all .15s var(--ease);
}
.cat-event-row:hover { background: var(--surface-hover); }

.cat-event-date {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text3);
    min-width: 80px;
}

.cat-event-title {
    font-weight: 500;
    flex: 1;
}

.cat-event-meta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* ─── List View ────────────────────────────────────────── */
.list-items { display: flex; flex-direction: column; gap: 0.5rem; }

.list-date-group {
    margin-top: 1rem;
}
.list-date-group:first-child { margin-top: 0; }

.list-date-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 0.5rem;
}

.list-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.6);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all .25s var(--ease);
    box-shadow: var(--shadow-xs), 0 0 0 1px rgba(0,0,0,.02);
}
.list-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--pri-light); }

.list-card-color {
    width: 4px;
    height: 40px;
    border-radius: 2px;
    flex-shrink: 0;
}

.list-card-body { flex: 1; min-width: 0; }

.list-card-title {
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 2px;
}

.list-card-sub {
    font-size: 0.8125rem;
    color: var(--text2);
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.list-card-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

/* ─── Badges ───────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
}

.badge-suggestion { background: #fff7ed; color: #9a3412; border: 1px dashed #fb923c; }
.badge-confirmed { background: #d1fae5; color: #065f46; }
.badge-tentative { background: #fef3c7; color: #92400e; }
.badge-deciding { background: #e0e7ff; color: #3730a3; }
.badge-declined { background: #fee2e2; color: #991b1b; }

.badge-anne { background: #ede9fe; color: #5b21b6; }
.badge-ricardo_anne { background: #fce7f3; color: #9d174d; }
.badge-others { background: #cffafe; color: #155e75; }

/* ─── Empty State ──────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text3);
}

.empty-state svg {
    margin-bottom: 1rem;
    opacity: .4;
}

.empty-state h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text2);
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 0.875rem;
    max-width: 300px;
    margin: 0 auto;
}

/* ─── Modals ───────────────────────────────────────────── */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all .25s var(--ease);
}
.modal-backdrop.open { opacity: 1; visibility: visible; }

.modal {
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 18px;
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0,0,0,.15), 0 0 0 1px rgba(0,0,0,.05);
    transform: scale(.95) translateY(10px);
    transition: transform .3s var(--ease);
}
.modal-backdrop.open .modal { transform: scale(1) translateY(0); }

.modal-wide { max-width: 600px; }
.modal-sm { max-width: 400px; }

.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
}
.modal-head h3 { font-size: 1.125rem; font-weight: 700; }

.modal-close {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    background: none; border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--text3);
    border-radius: var(--radius-xs);
    transition: all .15s var(--ease);
}
.modal-close:hover { background: var(--bg); color: var(--text); }

.modal-body { padding: 1.5rem; }

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-light);
}

/* ─── Form Fields ──────────────────────────────────────── */
.field { margin-bottom: 1.25rem; }
.field:last-child { margin-bottom: 0; }

.field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.field input, .field select, .field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-family: var(--font);
    color: var(--text);
    background: var(--surface);
    transition: all .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--pri);
    box-shadow: 0 0 0 3px var(--pri-ghost);
}

.field textarea { resize: vertical; min-height: 80px; }

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* People radio selector */
.people-selector {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.people-option { cursor: pointer; }
.people-option input { display: none; }

.people-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all .2s var(--ease);
    color: var(--text2);
}
.people-chip:hover { border-color: var(--text3); }

.people-option input:checked + .anne-chip { border-color: var(--anne); background: #ede9fe; color: #5b21b6; }
.people-option input:checked + .couple-chip { border-color: var(--couple); background: #fce7f3; color: #9d174d; }
.people-option input:checked + .others-chip { border-color: var(--others); background: #cffafe; color: #155e75; }

/* ─── Buttons ──────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all .2s var(--ease);
}

.btn-primary { background: var(--pri); color: #fff; box-shadow: 0 2px 6px rgba(99,102,241,.2); }
.btn-primary:hover { background: var(--pri-dark); transform: translateY(-1px); }

.btn-ghost { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--border); }

.btn-danger { background: #ef4444; color: #fff; }
.btn-danger:hover { background: #dc2626; }

.btn-approve { background: #10b981; color: #fff; box-shadow: 0 2px 6px rgba(16,185,129,.2); }
.btn-approve:hover { background: #059669; transform: translateY(-1px); }

.btn-sm { padding: 6px 14px; font-size: 0.8125rem; }

/* ─── Category Manager ─────────────────────────────────── */
.cat-manager-list { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.25rem; }

.cat-manager-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
}

.cat-manager-color {
    width: 20px; height: 20px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    padding: 0;
}

.cat-manager-name {
    flex: 1;
    font-weight: 500;
}

.cat-manager-del {
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    background: none; border: none;
    color: var(--text3);
    cursor: pointer;
    border-radius: 6px;
    transition: all .15s var(--ease);
}
.cat-manager-del:hover { background: #fee2e2; color: #ef4444; }

.cat-add-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.cat-add-row input[type="text"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    font-size: 0.875rem;
    font-family: var(--font);
}
.cat-add-row input[type="text"]:focus {
    outline: none;
    border-color: var(--pri);
}

.color-picker {
    width: 36px; height: 36px;
    border: 2px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    padding: 2px;
}

/* ─── Toast ────────────────────────────────────────────── */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 12px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    font-size: 0.875rem;
    font-weight: 500;
    animation: toastIn .3s var(--ease), toastOut .3s var(--ease) 2.7s forwards;
    max-width: 360px;
}

.toast-success { border-left: 4px solid #10b981; }
.toast-error { border-left: 4px solid #ef4444; }

@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; transform: translateX(20px); } }

/* ─── Suggestion Banner ──────────────────────────── */
.suggestion-banner {
    background: linear-gradient(135deg, #fff7ed, #fffbeb);
    border-bottom: 1px solid #fed7aa;
    padding: 0.5rem 2rem;
}

.suggestion-banner-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #9a3412;
}

.suggestion-banner-inner svg { flex-shrink: 0; color: #f97316; }

.suggestion-banner-btn {
    margin-left: auto;
    padding: 4px 14px;
    background: #f97316;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all .2s var(--ease);
}
.suggestion-banner-btn:hover { background: #ea580c; }

/* ─── Suggestion tag for list/category views ─────────── */
.suggestion-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #f97316;
    padding: 1px 6px;
    border: 1px dashed #fb923c;
    border-radius: 4px;
    background: #fff7ed;
}

.list-card.is-suggestion {
    border-style: dashed;
    border-color: #fed7aa;
    position: relative;
}
.list-card.is-suggestion::before {
    content: 'SUGGESTION';
    position: absolute;
    top: -8px;
    right: 12px;
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #f97316;
    background: #fff7ed;
    border: 1px dashed #fb923c;
    padding: 1px 8px;
    border-radius: 4px;
}

.cat-event-row.is-suggestion {
    border: 1px dashed #fed7aa;
    background: rgba(255,247,237,.5);
}

/* ─── Focus & Accessibility ────────────────────────────────── */
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--pri);
    outline-offset: 2px;
}

/* ─── Mobile Responsive ────────────────────────────────── */
@media (max-width: 900px) {
    .year-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .header {
        flex-wrap: wrap;
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }

    .header-nav { display: none; order: 3; flex-basis: 100%; }
    .header-nav.open { display: flex; }
    .header-right { display: none; order: 4; flex-basis: 100%; }
    .header-right.open { display: flex; justify-content: stretch; }
    .header-right.open .add-event-btn { flex: 1; justify-content: center; }

    .mobile-menu-toggle { display: flex; }

    .view-toggle {
        width: 100%;
        justify-content: center;
    }

    .filter-bar {
        padding: 0.5rem 1rem;
        gap: 0.5rem;
    }
    .filter-search { width: 100%; }

    .main-content { padding: 1rem; }

    .year-grid { grid-template-columns: repeat(2, 1fr); }

    .cal-cell { min-height: 80px; }
    .cal-chip { font-size: 0.5625rem; padding: 1px 4px; }

    .field-row { grid-template-columns: 1fr; }

    .modal { width: 95%; margin: 1rem; }
    .modal-actions { flex-direction: column; }
    .modal-actions .btn { width: 100%; }

    .toast-container { bottom: 1rem; right: 1rem; left: 1rem; }
    .toast { max-width: 100%; }

    .people-selector { flex-direction: column; }
}

@media (max-width: 480px) {
    .year-grid { grid-template-columns: 1fr; }
    .cal-cell { min-height: 60px; padding: 3px; }
    .cal-num { font-size: 0.75rem; width: 22px; height: 22px; }
    .view-btn span { display: none; }
    .view-btn { padding: 8px 12px; }
    .list-card { flex-direction: column; align-items: flex-start; }
    .list-card-right { flex-direction: row; }
    .bg-logo-wrap { width: 90vw; height: 90vw; }
}

/* ─── Logo responsive sizing ──────────────────────────── */
@media (max-width: 768px) {
    .bg-logo-wrap { width: 80vw; height: 80vw; }
    .bg-logo { opacity: 0.04; }
}

@media (min-width: 1400px) {
    .bg-logo-wrap { width: 60vh; height: 60vh; }
}
