:root {
    /* Brand & Theme Colors */
    --st-primary: #0284C7;         /* Ocean Blue */
    --st-primary-hover: #0369A1;   /* Deep Ocean */
    --st-primary-active: #075985;
    --st-primary-light: #E0F2FE;   /* Sky Blue wash */
    --st-primary-subtle: rgba(2, 132, 199, 0.08);
    --st-primary-glow: rgba(2, 132, 199, 0.22);

    --st-accent: #38BDF8;          /* Bright Sky */
    --st-warm: #F59E0B;            /* Sun Amber */
    --st-warm-light: #FEF3C7;
    --st-emerald: #10B981;         /* Island Emerald */
    --st-emerald-light: #D1FAE5;

    /* Surfaces & Glassmorphism */
    --st-bg: #F0F9FF;
    --st-card: rgba(255, 255, 255, 0.90);
    --st-card-solid: #FFFFFF;
    --st-card-hover: rgba(255, 255, 255, 0.98);
    --st-surface-alt: #F8FAFC;

    /* Refined Borders */
    --st-border: rgba(2, 132, 199, 0.16);
    --st-border-subtle: rgba(15, 23, 42, 0.08);
    --st-border-strong: rgba(2, 132, 199, 0.32);

    /* Typography */
    --st-text: #0F172A;            /* Slate 900 */
    --st-text-secondary: #334155;  /* Slate 700 */
    --st-muted: #64748B;           /* Slate 500 */
    --st-muted-light: #94A3B8;     /* Slate 400 */

    /* Corner Radii */
    --st-radius-sm: 8px;
    --st-radius: 16px;
    --st-radius-md: 12px;
    --st-radius-lg: 20px;
    --st-radius-full: 9999px;

    /* Layered Ambient Elevation */
    --st-shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --st-shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(2, 132, 199, 0.06);
    --st-shadow: 0 4px 20px -2px rgba(2, 132, 199, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
    --st-shadow-hover: 0 12px 28px -4px rgba(2, 132, 199, 0.16), 0 4px 10px -2px rgba(15, 23, 42, 0.05);
    --st-shadow-lg: 0 20px 40px -8px rgba(2, 132, 199, 0.20), 0 8px 16px -4px rgba(15, 23, 42, 0.06);

    /* Glass highlight for crisp frosted surface edges */
    --st-card-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.85);

    /* Micro-interaction transitions */
    --st-transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    --st-transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes sway {
    0% { transform: rotate(-5deg) translateY(0); }
    100% { transform: rotate(5deg) translateY(-8px); }
}

@keyframes spin-slow {
    100% { transform: rotate(360deg); }
}

@keyframes float-card {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-4px); }
    100% { transform: translateY(0px); }
}

html, body { 
    background: 
        radial-gradient(ellipse 80% 60% at 5% 10%, rgba(125, 211, 252, 0.45) 0%, transparent 60%),
        radial-gradient(ellipse 70% 50% at 95% 15%, rgba(253, 230, 138, 0.45) 0%, transparent 60%),
        radial-gradient(ellipse 75% 55% at 15% 90%, rgba(167, 243, 208, 0.40) 0%, transparent 60%),
        radial-gradient(ellipse 85% 65% at 85% 85%, rgba(224, 242, 254, 0.60) 0%, transparent 60%),
        linear-gradient(135deg, #F0F9FF 0%, #FEFCE8 50%, #ECFDF5 100%);
    background-attachment: fixed;
    color: var(--st-text); 
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    font-size: 15px; 
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    -moz-osx-font-smoothing: grayscale; 
    min-height: 100vh;
    position: relative;
    z-index: 0;
}

body::before {
    content: "🌴";
    position: fixed;
    bottom: 4vh;
    left: 3vw;
    font-size: 72px;
    z-index: -1;
    opacity: 0.42;
    filter: drop-shadow(0 4px 12px rgba(16, 185, 129, 0.2));
    pointer-events: none;
    animation: sway 4s ease-in-out infinite alternate;
}

body::after {
    content: "☀️";
    position: fixed;
    top: 5vh;
    right: 4vw;
    font-size: 88px;
    z-index: -1;
    opacity: 0.55;
    filter: drop-shadow(0 0 24px rgba(245, 158, 11, 0.3));
    pointer-events: none;
    animation: spin-slow 35s linear infinite;
}

.decorative-plane {
    position: fixed;
    top: 14vh;
    left: -10vw;
    font-size: 36px;
    z-index: -1;
    opacity: 0.35;
    color: var(--st-primary);
    filter: drop-shadow(0 2px 8px rgba(2, 132, 199, 0.2));
    pointer-events: none;
    animation: fly 25s linear infinite;
}

@keyframes fly {
    0% { transform: translateX(0vw) translateY(0) rotate(15deg); }
    25% { transform: translateX(30vw) translateY(-20px) rotate(10deg); }
    50% { transform: translateX(60vw) translateY(20px) rotate(15deg); }
    100% { transform: translateX(120vw) translateY(-50px) rotate(20deg); }
}

.st-navbar-brand { padding: 0; margin-right: .5rem; line-height: 1; }
.st-navbar-logo { height: 44px; width: auto; display: block; object-fit: contain; }
.st-navbar-logo-full { height: 52px; width: auto; display: block; object-fit: contain; max-width: 200px; }

.st-navbar {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid var(--st-border);
    box-shadow: 0 2px 12px rgba(2, 132, 199, 0.04);
    padding: 0.75rem 0; 
    position: sticky;
    top: 0;
    z-index: 1040;
    /* anchor for mobile collapse overlay */
    overflow: visible;
}

.st-navbar > .container-fluid {
    position: static;
    padding-left: max(8px, env(safe-area-inset-left));
    padding-right: max(8px, env(safe-area-inset-right));
}

/* Remove Bootstrap's default 1.5rem horizontal gutter on the body wrapper */
body > div.container-fluid,
main > .container-fluid,
main > div {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.st-brand { color: var(--st-text) !important; font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; white-space: nowrap; }
.st-nav-link { 
    color: var(--st-text-secondary) !important; 
    font-size: .92rem; 
    font-weight: 500; 
    padding: 0.4rem 0.75rem !important;
    border-radius: var(--st-radius-sm);
    transition: all var(--st-transition-fast);
}
.st-nav-link:hover { 
    color: var(--st-primary) !important; 
    background: var(--st-primary-subtle);
}
.st-nav-link.active { 
    color: var(--st-primary) !important; 
    background: var(--st-primary-subtle);
    font-weight: 600;
}
.st-footer { border-top: 1px solid var(--st-border); padding: 1.5rem 0; font-size: .85rem; color: var(--st-muted); margin-top: 3.5rem; text-align: center; }

/* ── Page-level horizontal breathing room ───────────────────────────── */
/* Outer <main> gets a small side gutter on narrow screens.              */
/* Centred page wrappers manage their own horizontal padding below.      */
.st-main-body { padding: 0 .75rem; }
.wizard-page,
.join-event-page { padding-left: .75rem; padding-right: .75rem; }

.events-page { padding-top: 1.5rem; max-width: 860px; margin: 0 auto; padding-left: .75rem; padding-right: .75rem; }
.events-header { padding-bottom: 1rem; border-bottom: 1px solid var(--st-border); margin-bottom: 1.5rem; }
.header-icon { font-size: 1.4rem; }
.count-pill { display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: .75rem; font-weight: 700; border-radius: 999px; padding: 3px 10px; box-shadow: 0 1px 3px rgba(0,0,0,0.12); }
.events-list { display: flex; flex-direction: column; gap: 1rem; }
.event-row { display: flex; align-items: stretch; background: var(--st-card); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--st-border); border-radius: var(--st-radius); overflow: hidden; transition: all var(--st-transition); box-shadow: var(--st-shadow), var(--st-card-highlight); text-decoration: none !important; }
.event-row:hover { transform: translateY(-3px); box-shadow: var(--st-shadow-hover), var(--st-card-highlight); border-color: var(--st-border-strong); }
.event-row.event-skipped { display: none; }
.events-list.show-skipped .event-row.event-skipped { display: flex; opacity: 0.45; filter: grayscale(55%); }
.events-list.show-skipped .event-row.event-skipped:hover { transform: none; box-shadow: var(--st-shadow); }
.event-bar { width: 6px; flex-shrink: 0; border-radius: 4px 0 0 4px; }
.event-body { flex: 1; padding: 1.25rem 1.5rem; min-width: 0; }
.circle-row .event-body { padding: .85rem 1rem; }
.circle-members-panel { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .5rem; }
.member-chip { display: inline-flex; align-items: center; font-size: .72rem; font-weight: 500; color: var(--st-text-secondary); background: #F8FAFC; border: 1px solid rgba(15, 23, 42, 0.08); border-radius: var(--st-radius-full); padding: .18rem .5rem; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: all var(--st-transition-fast); }
.member-chip:hover { background: #EEF2FF; border-color: #C7D2FE; color: var(--st-primary); }
.member-chip-owner { background: #FEF3C7; border-color: #FDE68A; color: #92400E; }
.member-chip-owner:hover { background: #FDE68A; border-color: #FCD34D; color: #78350F; }
.event-top { position: relative; margin-bottom: .75rem; }
.event-name { font-weight: 700; font-size: 1.15rem; color: var(--st-text); display: block; word-break: break-word; line-height: 1.35; letter-spacing: -0.015em; padding-right: 6.5rem; }
.event-badges { position: absolute; top: 0; right: 0; display: flex; gap: .35rem; flex-shrink: 0; }
.badge-membership { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 600; border-radius: var(--st-radius-full); padding: 3px 10px 3px 7px; letter-spacing: .01em; white-space: nowrap; box-shadow: var(--st-shadow-xs); }
.badge-membership svg { flex-shrink: 0; }
.badge-status { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 600; border-radius: var(--st-radius-full); padding: 3px 10px 3px 7px; letter-spacing: .01em; white-space: nowrap; box-shadow: var(--st-shadow-xs); }
.badge-status-open     { background: #DCFCE7; color: #14532D; border: 1px solid #86EFAC; }
.badge-status-draft    { background: #F1F5F9; color: #334155; border: 1px solid #CBD5E1; }
.badge-status-blocked  { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }
.badge-status-closed   { background: #F1F5F9; color: #475569; border: 1px solid #E2E8F0; }
.badge-status-canceled { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
/* membership tint classes */
.bm-owner      { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }
.bm-committed  { background: #D1FAE5; color: #065F46; border: 1px solid #A7F3D0; }
.bm-interested { background: #E0F2FE; color: #0369A1; border: 1px solid #BAE6FD; }
.bm-invited    { background: #EEF2FF; color: #3730A3; border: 1px solid #C7D2FE; }
.bm-cancelled  { background: #F1F5F9; color: #475569; border: 1px solid #E2E8F0; }
.bm-connected  { background: #D1FAE5; color: #065F46; border: 1px solid #A7F3D0; }
.bm-pending    { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }
.bm-incoming   { background: #EEF2FF; color: #3730A3; border: 1px solid #C7D2FE; }
.bm-circle     { background: #EEF2FF; color: #3730A3; border: 1px solid #C7D2FE; }
.bm-mutual     { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }
.event-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; font-size: .85rem; color: var(--st-muted); }
.meta-sep { opacity: .35; }
.date-approx-pill { display: inline-flex; align-items: center; font-size: .62rem; font-weight: 500; letter-spacing: .03em; color: var(--st-muted); background: transparent; border: 1px solid rgba(100, 116, 139, 0.35); border-radius: var(--st-radius-full); padding: .08rem .45rem; vertical-align: middle; line-height: 1.4; }
.event-type-chip { background: #EEF2FF; color: var(--st-primary); border-radius: var(--st-radius-xs); padding: 3px 9px; font-size: .78rem; font-weight: 600; border: 1px solid rgba(2, 132, 199, 0.15); }
.event-owner { font-size: .8rem; color: var(--st-muted); }
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--st-muted); background: var(--st-card); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1.5px dashed var(--st-border); border-radius: var(--st-radius); box-shadow: var(--st-shadow), var(--st-card-highlight); }
.empty-icon { font-size: 3rem; margin-bottom: 1rem; opacity: .85; }
.empty-title { font-size: 1.25rem; font-weight: 700; color: var(--st-text); margin-bottom: .5rem; }
.empty-subtitle { font-size: .875rem; }

/* Navbar user / sign-out */
.st-nav-user { color: var(--st-text); font-weight: 600; font-size: .9rem; }
.st-nav-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--st-border); }
.st-nav-avatar-placeholder { font-size: 1.6rem; color: var(--st-muted); line-height: 1; }
.st-friend-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--st-border); flex-shrink: 0; }
.st-friend-avatar-default { background: linear-gradient(135deg, var(--st-primary) 0%, var(--st-accent) 100%); color: #fff; font-size: .85rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.st-profile-avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--st-border); flex-shrink: 0; }
.st-profile-avatar-default { background: linear-gradient(135deg, var(--st-primary) 0%, var(--st-accent) 100%); color: #fff; font-size: 2rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

/* ── User Profile cards (up-*) ───────────────────────────────────────── */
.up-card { background: var(--st-card); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--st-border); border-radius: var(--st-radius); box-shadow: var(--st-shadow), var(--st-card-highlight); margin-bottom: 1.25rem; overflow: hidden; }
.up-profile-card { padding: 1.5rem 1.75rem 1.25rem; }
.up-profile-header { display: flex; align-items: center; gap: 1.1rem; }
.up-avatar-wrap { flex-shrink: 0; }
.up-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--st-border); display: block; }
.up-avatar-default { background: linear-gradient(135deg, var(--st-primary) 0%, var(--st-accent) 100%); color: #fff; font-size: 1.75rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.up-profile-info { flex: 1; min-width: 0; }
.up-username { font-size: 1.35rem; font-weight: 700; color: var(--st-text); letter-spacing: -0.015em; margin-bottom: .4rem; }
.up-badges { display: flex; gap: .4rem; flex-wrap: wrap; }
.up-connect-card { padding: 0; }
.up-events-card { padding: 0; overflow: hidden; }
.up-events-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--st-muted); padding: .85rem 1.5rem .4rem; }
.st-signout-btn {
    color: var(--st-muted);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius-sm);
    background: transparent;
    font-size: .8rem;
    font-weight: 500;
    padding: 3px 10px;
    transition: all var(--st-transition-fast);
}
.st-signout-btn:hover { 
    color: #DC2626; 
    border-color: #FECACA; 
    background: #FEF2F2; 
}
.st-dev-btn { color: #D97706; border: 1px solid #FCD34D; font-size: .8rem; font-weight: 600; padding: 4px 12px; border-radius: var(--st-radius-sm); background: #FFFBEB; transition: all var(--st-transition-fast); }
.st-dev-btn:hover, .st-dev-btn:focus, .st-dev-btn.show { color: #B45309; border-color: #F59E0B; background: #FEF3C7; }

/* Login page */
.login-page { min-height: calc(100vh - 120px); display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }
.login-card { background: var(--st-card); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--st-border); border-radius: var(--st-radius-lg); padding: 2.5rem 2.25rem; width: 100%; max-width: 440px; box-shadow: var(--st-shadow-lg), var(--st-card-highlight); text-align: center; transition: transform var(--st-transition), box-shadow var(--st-transition); }
.login-card:hover { transform: translateY(-2px); box-shadow: 0 24px 48px -12px rgba(2, 132, 199, 0.22), var(--st-card-highlight); }
.login-logo { width: 100%; max-width: 300px; height: auto; margin-bottom: .5rem; }
.login-tagline { font-size: .95rem; color: var(--st-muted); margin-bottom: 2rem; }
.login-privacy-note { font-size: .78rem; color: var(--st-muted); text-align: center; margin-top: 1.4rem; margin-bottom: 0; }
.login-google-btn { font-size: 1rem; padding: .75rem 1rem; border-radius: var(--st-radius-md); font-weight: 600; }
.btn-st-primary { 
    background: linear-gradient(180deg, #0284C7 0%, #0369A1 100%); 
    border: 1px solid rgba(2, 132, 199, 0.9); 
    color: #fff; 
    font-weight: 600; 
    border-radius: var(--st-radius-sm); 
    transition: all var(--st-transition-fast); 
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 3px 10px rgba(2, 132, 199, 0.28); 
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
}
.btn-st-primary:hover { 
    background: linear-gradient(180deg, #0369A1 0%, #075985 100%); 
    border-color: #0369A1; 
    color: #fff; 
    transform: translateY(-1px); 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 6px 18px rgba(2, 132, 199, 0.38); 
}
.btn-st-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.btn-st-secondary { 
    background-color: rgba(255, 255, 255, 0.95); 
    border: 1px solid #CBD5E1; 
    color: var(--st-text-secondary); 
    font-weight: 600; 
    border-radius: var(--st-radius-sm); 
    transition: all var(--st-transition-fast); 
    box-shadow: var(--st-shadow-xs);
}
.btn-st-secondary:hover { 
    background-color: #FFFFFF; 
    border-color: #94A3B8; 
    color: var(--st-text); 
    transform: translateY(-1px);
    box-shadow: var(--st-shadow-sm);
}
.btn-st-secondary:active {
    transform: translateY(0);
    box-shadow: var(--st-shadow-xs);
}

/* Create Event button */
.btn-create-event { font-size: .95rem; font-weight: 600; padding: .65rem 1.75rem; border-radius: var(--st-radius-sm); }

/* Create Event back link (shared) */
.create-event-back { font-size: .85rem; color: var(--st-muted); text-decoration: none; display: inline-flex; align-items: center; gap: .3rem; margin-bottom: 1rem; transition: color var(--st-transition-fast); }
.create-event-back:hover { color: var(--st-primary); }

/* ── Wizard ─────────────────────────────────────────────────────────── */
.wizard-page { padding-top: 1.5rem; max-width: 600px; margin: 0 auto; }
.wizard-card { background: var(--st-card); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--st-border); border-radius: var(--st-radius); padding: 2.5rem 3rem; box-shadow: var(--st-shadow-lg), var(--st-card-highlight); transition: box-shadow var(--st-transition); }

/* Progress dots */
.wizard-progress { margin-bottom: 2rem; }
.wizard-dots { display: flex; align-items: center; justify-content: center; gap: 0; }
.wdot { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--st-border); background: var(--st-card); color: var(--st-muted); font-size: .8rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all var(--st-transition-fast); box-shadow: var(--st-shadow-xs); }
.wdot.active { border-color: var(--st-primary); background: var(--st-primary); color: #fff; box-shadow: 0 0 0 4px var(--st-primary-glow); }
.wdot.done { border-color: var(--st-primary); background: #EEF2FF; color: var(--st-primary); }
.wdot-line { flex: 1; height: 2px; background: var(--st-border); min-width: 32px; }
.wizard-dot-labels { display: flex; justify-content: space-between; margin-top: .4rem; padding: 0 4px; }
.wizard-dot-labels span { font-size: .7rem; color: var(--st-muted); font-weight: 500; width: 34px; text-align: center; }

/* Step panels */
.wizard-step-header { text-align: center; margin-bottom: 1.75rem; }
.wizard-step-icon { font-size: 2.5rem; margin-bottom: .5rem; }
.wizard-step-title { font-size: 1.25rem; font-weight: 700; color: var(--st-text); letter-spacing: -0.015em; margin: 0 0 .3rem; }
.wizard-step-sub { font-size: .875rem; color: var(--st-muted); margin: 0; }

/* Step 1 – name */
.wizard-name-input { font-size: 1.1rem; padding: .75rem 1rem; text-align: center; border-radius: var(--st-radius-sm); border: 1px solid var(--st-border-strong); background: rgba(255, 255, 255, 0.9); transition: all var(--st-transition-fast); }
.wizard-name-input:focus { background: #FFFFFF; border-color: var(--st-primary); box-shadow: 0 0 0 3px var(--st-primary-glow); outline: none; }
.wizard-inline-error { font-size: .82rem; color: #DC2626; margin-top: .4rem; }

/* Step 2 – type grid */
.type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.type-radio { display: none; }
.type-card { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: .95rem .5rem; border: 1.5px solid var(--st-border); border-radius: var(--st-radius-md); background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(8px); cursor: pointer; transition: all var(--st-transition-fast); box-shadow: var(--st-shadow-xs); }
.type-card:hover { border-color: var(--st-primary); background: #FFFFFF; transform: translateY(-1px); box-shadow: var(--st-shadow-sm); }
.type-radio:checked + .type-card { border-color: var(--st-primary); background: #F0F9FF; box-shadow: 0 0 0 3px var(--st-primary-glow); }
.type-emoji { font-size: 1.6rem; }
.type-label { font-size: .8rem; font-weight: 600; color: var(--st-text); }

/* Step 3 – dates */
.date-row { display: flex; align-items: flex-end; gap: .75rem; }
.date-field { flex: 1; }
.date-field-label { font-size: .75rem; font-weight: 600; color: var(--st-muted); text-transform: uppercase; letter-spacing: .05em; display: block; margin-bottom: .3rem; }
.date-arrow { font-size: 1.1rem; color: var(--st-muted); padding-bottom: .4rem; flex-shrink: 0; }
.duration-preview { text-align: center; font-size: .85rem; font-weight: 600; color: var(--st-primary); margin-top: .6rem; background: #EEF2FF; border: 1px solid rgba(2, 132, 199, 0.15); border-radius: var(--st-radius-xs); padding: .35rem .75rem; }

/* Toggle row (Fixed/Flexible, Draft/Open) */
.toggle-row { display: flex; gap: .6rem; }
.toggle-radio { display: none; }
.toggle-card { flex: 1; display: flex; align-items: center; justify-content: center; gap: .4rem; padding: .65rem 1rem; border: 1.5px solid var(--st-border); border-radius: var(--st-radius-sm); cursor: pointer; font-size: .875rem; font-weight: 500; color: var(--st-text); background: rgba(255, 255, 255, 0.85); transition: all var(--st-transition-fast); box-shadow: var(--st-shadow-xs); }
.toggle-card:hover { border-color: var(--st-primary); background: #FFFFFF; transform: translateY(-1px); box-shadow: var(--st-shadow-sm); }
.toggle-radio:checked + .toggle-card { border-color: var(--st-primary); background: #F0F9FF; color: var(--st-primary); font-weight: 600; box-shadow: 0 0 0 3px var(--st-primary-glow); }

/* Step 4 – status */
.status-row { display: flex; gap: .6rem; }
.status-card { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .95rem .75rem; border: 1.5px solid var(--st-border); border-radius: var(--st-radius-md); cursor: pointer; text-align: center; background: rgba(255, 255, 255, 0.85); transition: all var(--st-transition-fast); box-shadow: var(--st-shadow-xs); }
.status-card:hover { border-color: var(--st-primary); background: #FFFFFF; transform: translateY(-1px); box-shadow: var(--st-shadow-sm); }
.toggle-radio:checked + .status-card { border-color: var(--st-primary); background: #F0F9FF; box-shadow: 0 0 0 3px var(--st-primary-glow); }
.status-card-emoji { font-size: 1.4rem; }
.status-card-title { font-size: .875rem; font-weight: 700; color: var(--st-text); }
.status-card-sub { font-size: .72rem; color: var(--st-muted); }

/* Summary */
.wizard-summary { background: rgba(248, 250, 252, 0.85); border: 1px solid var(--st-border); border-radius: var(--st-radius-sm); padding: .9rem 1.1rem; margin-top: .25rem; }
.summary-row { display: flex; align-items: center; gap: .6rem; padding: .4rem 0; font-size: .875rem; color: var(--st-text); border-bottom: 1px solid rgba(2, 132, 199, 0.1); }
.summary-row:last-child { border-bottom: none; }
.summary-row > span:first-child { font-size: 1rem; flex-shrink: 0; width: 1.5rem; text-align: center; }

/* Date pickers */
.date-pickers-row { display: flex; gap: 1.25rem; flex-wrap: wrap; justify-content: center; }
.date-picker-col { display: flex; flex-direction: column; align-items: center; }
.date-picker-label { font-size: .72rem; font-weight: 700; color: var(--st-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .35rem; }
#datePickerWrap .flatpickr-calendar { width: 100%; box-shadow: var(--st-shadow); border: 1px solid var(--st-border); border-radius: var(--st-radius-sm); }
#datePickerWrap .flatpickr-rContainer,
#datePickerWrap .flatpickr-innerContainer { width: 100%; }
#datePickerWrap .flatpickr-days,
#datePickerWrap .dayContainer { width: 100% !important; min-width: unset !important; max-width: 100% !important; }
#datePickerWrap .flatpickr-weekdaycontainer { width: 100%; }
#datePickerWrap .flatpickr-day { flex: 1 0 14.2857%; max-width: none; }

/* Navigation */
.wizard-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--st-border); }
.wizard-nav-right { margin-left: auto; }

/* ── Step 5 – Invite contacts ──────────────────────────────────────── */
.contacts-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: .65rem; }
.contacts-count-label { font-size: .82rem; color: var(--st-muted); font-weight: 600; }
.contacts-toolbar-actions { display: flex; align-items: center; gap: .15rem; }
.contacts-select-all { background: none; border: none; color: var(--st-primary); font-size: .8rem; font-weight: 600; cursor: pointer; padding: 2px 8px; border-radius: var(--st-radius-xs); transition: background var(--st-transition-fast); }
.contacts-select-all:hover { background: #EEF2FF; }
.contacts-list { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; max-height: 340px; overflow-y: auto; padding: 2px; }
.contact-check { display: none; }
.contact-label { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1rem .75rem .85rem; border: 1.5px solid var(--st-border); border-radius: var(--st-radius-md); cursor: pointer; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(8px); text-align: center; position: relative; transition: all var(--st-transition-fast); box-shadow: var(--st-shadow-xs); }
.contact-label:hover { border-color: var(--st-primary); background: #FFFFFF; transform: translateY(-1px); box-shadow: var(--st-shadow-sm); }
.contact-check:checked + .contact-label { border-color: var(--st-primary); background: #F0F9FF; box-shadow: 0 0 0 3px var(--st-primary-glow); }
.contact-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--st-surface-alt); border: 1px solid var(--st-border); color: var(--st-muted); font-size: 1rem; font-weight: 700; display: flex; align-items: center; justify-content: center; transition: background .15s, color .15s; flex-shrink: 0; }
.contact-check:checked + .contact-label .contact-avatar { background: var(--st-primary); border-color: var(--st-primary); color: #fff; }
.contact-name { font-size: .85rem; font-weight: 600; color: var(--st-text); word-break: break-word; line-height: 1.25; }
.contact-check-icon { position: absolute; top: .4rem; right: .5rem; font-size: .75rem; font-weight: 700; color: var(--st-primary); opacity: 0; transition: opacity .12s; }
.contact-check:checked + .contact-label .contact-check-icon { opacity: 1; }
.contacts-empty { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 2rem 1rem; color: var(--st-muted); font-size: .875rem; text-align: center; }
.contacts-empty span:first-child { font-size: 2rem; opacity: .6; }
.invite-note { margin-top: .75rem; margin-bottom: 0; font-size: .82rem; color: #0369A1; background: #F0F9FF; border: 1px solid #BAE6FD; border-radius: var(--st-radius-sm); padding: .5rem .85rem; }

/* Circle selection cards (Step 5 – Create Event) */
.circle-select-list { display: flex; flex-direction: column; gap: .55rem; }
.circle-check-input { display: none; }
.circle-select-card { display: flex; align-items: flex-start; gap: .9rem; padding: .9rem 1.1rem; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(8px); border: 1.5px solid var(--st-border); border-radius: var(--st-radius-md); cursor: pointer; transition: all var(--st-transition-fast); box-shadow: var(--st-shadow-xs); }
.circle-select-card:hover { border-color: var(--st-primary); background: #FFFFFF; transform: translateY(-1px); box-shadow: var(--st-shadow-sm); }
.circle-check-input:checked + .circle-select-card { border-color: var(--st-primary); background: #F0F9FF; box-shadow: 0 0 0 3px var(--st-primary-glow); }
.circle-select-icon { font-size: 1.6rem; flex-shrink: 0; margin-top: .1rem; }
.circle-select-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.circle-select-name { font-size: .95rem; font-weight: 700; color: var(--st-text); }
.circle-select-count { font-size: .78rem; color: var(--st-muted); }
.circle-select-members { font-size: .78rem; color: var(--st-muted); margin-top: .2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.circle-check-badge { margin-left: auto; font-size: 1rem; font-weight: 700; color: var(--st-primary); opacity: 0; transition: opacity .12s; flex-shrink: 0; padding-top: .1rem; }
.circle-check-input:checked + .circle-select-card .circle-check-badge { opacity: 1; }

/* Clickable event rows */
a.event-row { text-decoration: none; color: inherit; cursor: pointer; }

/* Event Detail page */
.event-detail-page { padding-top: 1.5rem; max-width: 720px; margin: 0 auto; padding-left: .75rem; padding-right: .75rem; }
.event-detail-back { font-size: .9rem; font-weight: 500; color: var(--st-muted); text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 1.25rem; transition: color var(--st-transition-fast); }
.event-detail-back:hover { color: var(--st-primary); }
.event-detail-card { background: var(--st-card); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--st-border); border-radius: var(--st-radius); overflow: hidden; box-shadow: var(--st-shadow), var(--st-card-highlight); margin-bottom: 2rem; }
.event-detail-header { display: flex; align-items: stretch; }
.event-detail-bar { width: 6px; flex-shrink: 0; border-radius: 4px 0 0 0; }
.event-detail-header-body { padding: 1.25rem 1.5rem; flex: 1; display: flex; flex-direction: column; gap: .35rem; }
.event-detail-name { font-size: 1.35rem; font-weight: 700; color: var(--st-text); letter-spacing: -0.015em; margin-bottom: .5rem; }
.event-detail-badges { display: flex; gap: .4rem; flex-wrap: wrap; }
.event-detail-body { padding: 1.25rem 1.5rem; border-top: 1px solid var(--st-border); }
.event-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem 2rem; }
.event-detail-field label { font-size: .72rem; font-weight: 600; color: var(--st-muted); text-transform: uppercase; letter-spacing: .05em; display: block; margin-bottom: .15rem; }
.event-detail-field span { font-size: .9rem; color: var(--st-text); }
.event-detail-location { padding: 0 1.5rem .75rem; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; font-size: .9rem; color: var(--st-text); }
.event-detail-location-icon { flex-shrink: 0; }
.event-detail-map-link { font-size: .8rem; color: var(--st-primary); text-decoration: none; margin-left: .25rem; font-weight: 500; }
.event-detail-map-link:hover { text-decoration: underline; }
.event-detail-description { padding: 0 1.5rem .75rem; }
.event-detail-description label { font-size: .72rem; font-weight: 600; color: var(--st-muted); text-transform: uppercase; letter-spacing: .05em; display: block; margin-bottom: .35rem; }
.event-detail-description p { font-size: .9rem; color: var(--st-text); white-space: pre-line; margin: 0; }
.event-detail-actions { padding: .75rem 1.5rem; border-top: 1px solid var(--st-border); display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; background: rgba(248, 250, 252, 0.7); }
.btn-action { white-space: nowrap; font-weight: 600; }
.event-rsvp-section { padding: 1rem 1.5rem; border-top: 1px solid var(--st-border); display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.event-rsvp-label { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--st-muted); }
.event-rsvp-form { display: flex; gap: .4rem; flex-wrap: wrap; }

/* ── Suggestion cards ─────────────────────────────────────────────── */
.suggestion-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .75rem 1.1rem;
    background: var(--st-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius-md);
    box-shadow: var(--st-shadow-xs), var(--st-card-highlight);
    flex-wrap: wrap;
    transition: all var(--st-transition-fast);
}
.suggestion-card:hover {
    box-shadow: var(--st-shadow-sm), var(--st-card-highlight);
    border-color: var(--st-border-strong);
}
.suggestion-person { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.suggestion-name   { font-weight: 600; font-size: .9rem; color: var(--st-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggestion-by     { font-size: .75rem; color: var(--st-muted); }
.suggestion-actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; flex-shrink: 0; }
.suggestion-step {
    font-size: .72rem; font-weight: 600; letter-spacing: .03em;
    border-radius: var(--st-radius-full); padding: .22rem .7rem; white-space: nowrap;
}
.step-pending   { background: #EEF2FF; color: #4338CA; border: 1px solid #C7D2FE; }
.step-waiting   { background: #FEF9C3; color: #854D0E; border: 1px solid #FDE047; }
.step-connected { background: #DCFCE7; color: #166534; border: 1px solid #86EFAC; }

.btn-sug {
    font-size: .78rem; font-weight: 600; padding: .3rem .85rem;
    border-radius: var(--st-radius-full); border: none; cursor: pointer;
    transition: opacity .15s, transform .1s, box-shadow .15s;
    white-space: nowrap;
}
.btn-sug:hover  { opacity: .9; transform: translateY(-1px); box-shadow: var(--st-shadow-xs); }
.btn-sug:active { transform: translateY(0); }
.btn-sug-primary { background: var(--st-primary); color: #fff; }
.btn-sug-success { background: #16A34A; color: #fff; }
.btn-sug-ghost   { background: transparent; color: var(--st-muted); border: 1px solid var(--st-border); }
.btn-sug-ghost:hover { border-color: var(--st-muted); color: var(--st-text); }

.sug-circle-select {
    font-size: .78rem; padding: .2rem .5rem;
    border: 1px solid var(--st-border); border-radius: 8px;
    background: #fff; color: var(--st-text); cursor: pointer;
    max-width: 150px;
}
.event-status-section { align-items: flex-start; flex-direction: column; gap: .6rem; }

/* ── Event status stepper (esc-*) ───────────────────────────────────── */
.esc-stepper {
    display: flex;
    align-items: center;
    gap: .35rem;
    flex-wrap: wrap;
    width: 100%;
}

@media (min-width: 576px) {
    .esc-stepper { flex-wrap: nowrap; }
}

.esc-chip {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .75rem;
    border-radius: var(--st-radius-sm);
    border: 1px solid var(--st-border);
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    cursor: default;
    text-align: left;
    transition: all var(--st-transition-fast);
    text-decoration: none;
    min-width: 0;
    height: 2.15rem;
}

@media (min-width: 576px) {
    .esc-chip { flex: 1; }
}

/* Current — solid filled, clearly "you are here" */
.esc-chip-current {
    background: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
    border-color: #0F172A;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.22);
    cursor: default;
}
.esc-chip-current .esc-chip-label { color: #fff; }
.esc-chip-current .esc-chip-desc  { color: rgba(255,255,255,.7); }
.esc-chip-current .esc-chip-icon  { filter: brightness(10); }

/* Allowed — interactive, inviting */
.esc-chip-allowed {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.6);
    border-color: var(--st-border);
}
.esc-chip-allowed:hover {
    background: var(--st-primary-subtle);
    border-color: var(--st-primary);
    transform: translateY(-1px);
    box-shadow: var(--st-shadow-xs);
}
.esc-chip-allowed:active { transform: translateY(0); box-shadow: none; }

/* Disabled — faded, present for lifecycle context but not clickable */
.esc-chip-disabled {
    opacity: .35;
    background: none;
}

/* Destructive */
.esc-chip-destructive {
    border-color: #FECACA;
    border-style: dashed;
}
.esc-chip-destructive .esc-chip-label { color: #DC2626; }
.esc-chip-destructive .esc-chip-desc  { color: #EF4444; }
.esc-chip-destructive:hover {
    background: #FEF2F2;
    border-color: #DC2626;
    border-style: solid;
}

.esc-chip-icon  { font-size: .9rem; flex-shrink: 0; line-height: 1; }
.esc-chip-body  { display: flex; flex-direction: column; gap: 0; min-width: 0; overflow: hidden; }
.esc-chip-label { font-size: .8rem; font-weight: 600; color: var(--st-text); line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.esc-chip-desc  { display: none; }

/* Event Detail members */
.event-members-section { border-top: 1px solid var(--st-border); padding: 1rem 1.5rem; }
.event-members-title { font-size: .8rem; font-weight: 600; color: var(--st-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .6rem; display: flex; align-items: center; gap: .4rem; }
.notif-dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: #E11D48; flex-shrink: 0; animation: notif-pulse 1.8s ease-in-out infinite; cursor: default; }
@keyframes notif-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(225,29,72,.5); } 50% { box-shadow: 0 0 0 5px rgba(225,29,72,0); } }
.event-members-count { background: var(--st-border); color: var(--st-text); font-size: .72rem; border-radius: 10px; padding: 1px 7px; font-weight: 700; text-transform: none; letter-spacing: 0; }
.event-members-list { display: flex; flex-direction: column; gap: .35rem; }
.event-member-row { display: flex; justify-content: space-between; align-items: center; padding: .45rem .65rem; border-radius: var(--st-radius-xs); background: rgba(248, 250, 252, 0.85); border: 1px solid rgba(15, 23, 42, 0.04); }
.event-member-name { font-size: .875rem; font-weight: 500; color: var(--st-text); }
.event-member-owner-icon { color: #D97706; font-size: .75rem; margin-right: .15rem; }
.event-member-status { font-size: .78rem; font-weight: 600; }
.event-also-invited-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.event-also-invited-chip { font-size: .78rem; font-weight: 500; color: var(--st-muted); background: #F1F5F9; border: 1px solid #E2E8F0; border-radius: var(--st-radius-full); padding: .2rem .65rem; transition: all var(--st-transition-fast); }
a.event-also-invited-chip { text-decoration: none; }
a.event-also-invited-chip:hover { background: #E2E8F0; border-color: #CBD5E1; color: var(--st-text); }
.event-member-link { color: inherit; text-decoration: none; }
.event-member-link:hover { text-decoration: underline; color: var(--st-primary); }
.user-profile-events-list { display: flex; flex-direction: column; gap: 0; padding: .25rem 0 .5rem; }

.connect-section { padding: 1rem 1.5rem; }
.connect-message { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: 1rem; }
.connect-icon { font-size: 1.5rem; line-height: 1; }
.connect-title { font-weight: 700; color: var(--st-text); margin-bottom: .2rem; }
.connect-subtitle { font-size: .85rem; color: var(--st-muted); }
.connect-circles { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.25rem; }
.connect-circle-row { display: flex; align-items: center; gap: .6rem; cursor: pointer; padding: .6rem .85rem; border-radius: var(--st-radius-md); border: 1.5px solid var(--st-border); background: rgba(255, 255, 255, 0.85); font-size: .9rem; color: var(--st-text); transition: all var(--st-transition-fast); }
.connect-circle-row:hover { border-color: var(--st-primary); background: #F0F9FF; }
.connect-circle-row:has(input:checked) { border-color: var(--st-primary); background: #F0F9FF; box-shadow: 0 0 0 2px var(--st-primary-glow); }
.connect-circle-row input[type="checkbox"] { accent-color: var(--st-primary); width: 17px; height: 17px; flex-shrink: 0; }
.connect-circle-count { margin-left: auto; font-size: .75rem; color: var(--st-muted); }
.connect-send-btn { margin-top: .25rem; }
.connect-no-circles { font-size: .88rem; color: var(--st-muted); margin-bottom: .75rem; }
.connect-no-circles a { color: var(--st-primary); }
.connect-error { color: #B91C1C; font-size: .85rem; margin-bottom: .5rem; }
.connect-success { color: #1E7A1E; font-weight: 600; font-size: .95rem; padding: .5rem 0; }

/* ── Incoming friend-request card ───────────────────────────────────── */
.fr-incoming-card {
    background: linear-gradient(135deg, #FFFDF5 0%, #FEF9C3 100%);
    border: 1px solid #FDE047;
    border-radius: var(--st-radius);
    padding: 1.25rem 1.5rem 1.1rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.12), var(--st-card-highlight);
}
.fr-incoming-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.1rem;
}
.fr-incoming-avatar {
    font-size: 2rem;
    line-height: 1;
    background: #FEF3C7;
    border-radius: 50%;
    width: 2.8rem;
    height: 2.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1.5px solid #FCD34D;
}
.fr-incoming-title { font-size: 1rem; font-weight: 600; color: var(--st-text); margin-bottom: .2rem; }
.fr-incoming-subtitle { font-size: .83rem; color: var(--st-muted); }
.fr-circles-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--st-muted); margin-bottom: .5rem; }
.fr-accept-form { margin: 0; }
.fr-incoming-actions {
    display: flex;
    gap: .65rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: .25rem;
}
.fr-btn-accept { padding: .5rem 1.25rem; font-size: .9rem; }
.fr-btn-newcircle { padding: .5rem 1rem; font-size: .9rem; }
.fr-decline-form { margin-top: .9rem; border-top: 1px solid #FCD34D; padding-top: .75rem; }
.fr-btn-decline {
    background: none;
    border: none;
    color: var(--st-muted);
    font-size: .83rem;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color .15s;
}
.fr-btn-decline:hover { color: #B91C1C; }

.event-shared-circle-chip { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; font-weight: 600; color: #3730A3; background: #EEF2FF; border: 1px solid #C7D2FE; border-radius: 12px; padding: .2rem .4rem .2rem .65rem; }
.event-shared-circle-count { font-size: .7rem; font-weight: 400; color: #6366F1; background: #E0E7FF; border-radius: 8px; padding: 0 5px; }

.event-shared-circle-remove { display: inline-flex; align-items: center; justify-content: center; width: 1.1rem; height: 1.1rem; padding: 0; border: none; background: none; border-radius: 50%; color: #6366F1; font-size: .7rem; line-height: 1; cursor: pointer; opacity: .6; transition: background .15s, color .15s, opacity .15s; }
.event-shared-circle-remove:hover { opacity: 1; background: #C7D2FE; color: #DC2626; }
.share-invite-preview { border-top: 1px solid var(--st-border); padding-top: .75rem; }
.share-invite-preview-label { font-size: .78rem; font-weight: 600; color: var(--st-muted); margin-bottom: .4rem; }
.share-invite-chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.share-invite-chip { display: inline-flex; align-items: center; font-size: .78rem; font-weight: 600; color: #065F46; background: #D1FAE5; border: 1px solid #6EE7B7; border-radius: 12px; padding: .2rem .65rem; }

.event-comments-section { border-top: 1px solid var(--st-border); padding: 1rem 1.5rem; }
.event-comments-list { display: flex; flex-direction: column; gap: .5rem; margin-bottom: .75rem; }
.event-comment-row { background: rgba(248, 250, 252, 0.85); border: 1px solid rgba(15, 23, 42, 0.04); border-radius: var(--st-radius-sm); padding: .65rem .85rem; }
.event-comment-meta { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .25rem; }
.event-comment-author { font-size: .82rem; font-weight: 700; color: var(--st-text); }
.event-comment-date { font-size: .72rem; color: var(--st-muted); }
.btn-comment-edit { background: none; border: none; padding: 0 .2rem; font-size: .8rem; cursor: pointer; opacity: .5; line-height: 1; transition: opacity var(--st-transition-fast); }
.btn-comment-edit:hover { opacity: 1; }
.event-comment-edit-form textarea { font-size: .875rem; border: 1px solid var(--st-border); border-radius: var(--st-radius-sm); resize: vertical; transition: all var(--st-transition-fast); }
.event-comment-edit-form textarea:focus { border-color: var(--st-primary); box-shadow: 0 0 0 3px var(--st-primary-glow); outline: none; }
.event-comment-text { font-size: .875rem; color: var(--st-text); white-space: pre-wrap; word-break: break-word; }
.event-comment-form textarea { font-size: .875rem; border: 1px solid var(--st-border); border-radius: var(--st-radius-sm); resize: vertical; transition: all var(--st-transition-fast); }
.event-comment-form textarea:focus { border-color: var(--st-primary); box-shadow: 0 0 0 3px var(--st-primary-glow); outline: none; }

/* Join Event page */
.join-event-page { padding-top: 1.5rem; max-width: 600px; margin: 0 auto; }
.join-event-card { background: var(--st-card); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--st-border); border-radius: var(--st-radius); overflow: hidden; box-shadow: var(--st-shadow), var(--st-card-highlight); }
.join-event-header { display: flex; align-items: stretch; }
.join-event-bar { width: 6px; flex-shrink: 0; background: var(--st-primary); }
.join-event-header-body { padding: 1.25rem 1.5rem; flex: 1; }
.join-event-name { font-size: 1.25rem; font-weight: 700; color: var(--st-text); letter-spacing: -0.015em; margin-bottom: .5rem; }
.join-event-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; font-size: .8rem; color: var(--st-muted); }
.join-event-body { padding: 1.25rem 1.5rem; border-top: 1px solid var(--st-border); }
.join-prompt { font-size: 1rem; font-weight: 600; color: var(--st-text); margin-bottom: 1rem; }
.join-options { display: flex; flex-direction: column; gap: .6rem; }
.join-option-card { display: flex; align-items: center; gap: .9rem; padding: .95rem 1.15rem; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(8px); border: 1.5px solid var(--st-border); border-radius: var(--st-radius-md); cursor: pointer; text-align: left; width: 100%; transition: all var(--st-transition-fast); box-shadow: var(--st-shadow-xs); }
.join-option-card:hover { border-color: var(--st-primary); background: #FFFFFF; transform: translateY(-1px); box-shadow: var(--st-shadow-sm); }
.join-option-committed { border-color: #A7F3D0; }
.join-option-committed:hover { border-color: #059669; background: #ECFDF5; }
.join-option-skip { border-color: #E2E8F0; }
.join-option-skip:hover { border-color: #94A3B8; background: #F8FAFC; }
.join-option-emoji { font-size: 1.6rem; flex-shrink: 0; }
.join-option-text { display: flex; flex-direction: column; flex: 1; }
.join-option-title { font-size: .9rem; font-weight: 600; color: var(--st-text); }
.join-option-desc { font-size: .78rem; color: var(--st-muted); margin-top: .1rem; }
.join-option-arrow { font-size: 1.3rem; color: var(--st-muted); flex-shrink: 0; }

/* Join Event confirmation */
.join-confirmation { background: var(--st-card); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--st-border); border-radius: var(--st-radius); padding: 2.5rem 2rem; text-align: center; box-shadow: var(--st-shadow), var(--st-card-highlight); }
.join-confirmation-emoji { font-size: 3rem; margin-bottom: .75rem; }
.join-confirmation-title { font-size: 1.35rem; font-weight: 700; color: var(--st-text); letter-spacing: -0.015em; margin-bottom: .5rem; }
.join-confirmation-desc { font-size: .9rem; color: var(--st-muted); max-width: 340px; margin: 0 auto; }

.ue-section { margin-bottom: 1rem; padding: 0 8px; }
.ue-title { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--st-muted); margin-bottom: .6rem; }
.ue-card { display: flex; align-items: center; gap: 1rem; width: 100%; box-sizing: border-box; background: var(--st-card); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--st-border); border-radius: var(--st-radius); padding: .9rem 1.15rem; margin-bottom: .5rem; text-decoration: none; color: var(--st-text); box-shadow: var(--st-shadow), var(--st-card-highlight); transition: all var(--st-transition); overflow: hidden; }
.ue-card:hover { box-shadow: var(--st-shadow-hover), var(--st-card-highlight); transform: translateY(-2px); border-color: var(--st-border-strong); color: var(--st-text); }
.ue-date-badge { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 44px; }
.ue-month { font-size: .62rem; font-weight: 700; color: #E11D48; letter-spacing: .06em; text-transform: uppercase; }
.ue-day { font-size: 1.65rem; font-weight: 800; color: #E11D48; line-height: 1.05; }
.ue-info { flex: 1; min-width: 0; }
.ue-name { font-weight: 700; font-size: 1rem; overflow: hidden; color: var(--st-text); display: flex; align-items: center; gap: .4rem; }
.ue-name-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ue-unread-badge { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; min-width: 1.3rem; height: 1.3rem; font-size: .65rem; font-weight: 700; color: #fff; background: #E11D48; border-radius: var(--st-radius-full); padding: 0 .35rem; line-height: 1; }
.ue-dates { font-size: .78rem; color: var(--st-muted); margin-top: .15rem; }
.ue-badge { font-size: .75rem; font-weight: 600; padding: .25rem .75rem; border-radius: var(--st-radius-full); border: 1.5px solid currentColor; white-space: nowrap; }
.ue-badge--going { color: #059669; border-color: #059669; background: #ECFDF5; }
.ue-badge--interested { color: #0891B2; border-color: #0891B2; background: #E0F2FE; }
.ue-badge--owner { color: #8A6500; border-color: #8A6500; background: #FFFBEB; }
.ue-badge--invited { color: #6366F1; border-color: #6366F1; background: #EEF2FF; }
.ue-badge--cancelled { color: #6B7280; border-color: #6B7280; background: #F9FAFB; }
.ue-view-all { display: block; text-align: center; margin-top: .35rem; font-size: .9rem; font-weight: 600; color: var(--st-primary); background: none; border: none; cursor: pointer; padding: .4rem; transition: color var(--st-transition-fast); }
.ue-view-all:hover { text-decoration: underline; color: var(--st-primary-hover); }
.ue-card--dimmed { opacity: .5; }
.ue-card--dimmed:hover { opacity: .75; }
.ue-show-skipped-btn { display: block; text-align: center; margin-top: .35rem; font-size: .82rem; font-weight: 500; color: var(--st-muted); background: none; border: none; cursor: pointer; padding: .4rem; transition: color var(--st-transition-fast); }
.ue-skel-card { pointer-events: none; cursor: default; }
.ue-skel-line { background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%); background-size: 200% 100%; animation: ue-shimmer 1.4s infinite; border-radius: 4px; display: block; }
@keyframes ue-shimmer { 0% { background-position: 200% 0 } 100% { background-position: -200% 0 } }

/* ── Expired events (close prompt) ── */
.st-expired-section { background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%); border: 1px solid #FCD34D; border-radius: var(--st-radius); padding: 1.1rem 1rem; margin-bottom: 1.25rem; box-shadow: 0 4px 14px rgba(245, 158, 11, 0.08), var(--st-card-highlight); }
.st-expired-title { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #92400E; margin-bottom: .25rem; }
.st-expired-subtitle { font-size: .82rem; color: #78350F; margin-bottom: .85rem; }
.st-expired-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(8px); border: 1px solid #FDE68A; border-radius: var(--st-radius-md); padding: .75rem 1.1rem; margin-bottom: .5rem; box-shadow: var(--st-shadow-xs); transition: all var(--st-transition-fast); }
.st-expired-card:last-child { margin-bottom: 0; }
.st-expired-card:hover { background: #FFFFFF; box-shadow: var(--st-shadow-sm); }
.st-expired-info { display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; min-width: 0; flex: 1; }
.st-fr-card .st-expired-info { flex-direction: row; align-items: center; gap: .75rem; }
.st-expired-name { font-weight: 600; font-size: .92rem; color: var(--st-text); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-clamp: 2; overflow: hidden; word-break: break-word; line-height: 1.3; transition: color var(--st-transition-fast); }
.st-expired-name:hover { text-decoration: underline; color: var(--st-primary); }
.st-expired-dates { font-size: .76rem; color: var(--st-muted); margin-top: .1rem; display: block; }
.st-expired-btn { font-size: .8rem; font-weight: 600; padding: .35rem .85rem; min-height: 34px; border-radius: var(--st-radius-full); border: 1.5px solid #D97706; background: transparent; color: #92400E; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; display: inline-flex; align-items: center; justify-content: center; }
.st-expired-btn:hover { background: #F59E0B; color: #fff; border-color: #F59E0B; }
.st-expired-actions { display: flex; gap: .4rem; flex-shrink: 0; }
.st-expired-btn--muted { border-color: #D1D5DB; color: var(--st-muted); }
.st-expired-btn--muted:hover { background: #F3F4F6; color: var(--st-text); border-color: #9CA3AF; }

/* ── Skip-with-reason modal ── */
.st-skip-modal-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45); backdrop-filter: blur(4px); z-index: 1050; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.st-skip-modal { background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--st-border); border-radius: var(--st-radius-lg); padding: 1.5rem; max-width: 420px; width: 100%; box-shadow: var(--st-shadow-lg); }
.st-skip-modal-title { font-weight: 700; font-size: 1.05rem; color: var(--st-text); letter-spacing: -0.015em; margin-bottom: .25rem; }
.st-skip-modal-subtitle { font-size: .82rem; color: var(--st-muted); margin-bottom: .85rem; }
.st-skip-reason-list { display: flex; flex-direction: column; gap: .5rem; margin-bottom: .85rem; }
.st-skip-reason-btn { text-align: left; font-size: .85rem; padding: .6rem .85rem; border-radius: var(--st-radius-md); border: 1.5px solid var(--st-border); background: var(--st-bg); color: var(--st-text); cursor: pointer; transition: all var(--st-transition-fast); }
.st-skip-reason-btn:hover { background: var(--st-primary); color: #fff; border-color: var(--st-primary); transform: translateY(-1px); }
.st-skip-modal-close { width: 100%; font-size: .85rem; font-weight: 600; padding: .5rem; border-radius: var(--st-radius-full); border: 1.5px solid #D1D5DB; background: transparent; color: var(--st-muted); cursor: pointer; transition: all var(--st-transition-fast); }
.st-skip-modal-close:hover { background: #F3F4F6; color: var(--st-text); }

/* ── Loading overlay (skip-with-reason submit) ── */
.st-loading-overlay { position: fixed; inset: 0; background: rgba(255,255,255,.75); backdrop-filter: blur(4px); z-index: 1100; display: flex; align-items: center; justify-content: center; }
.st-loading-spinner { width: 44px; height: 44px; border: 3.5px solid var(--st-border); border-top-color: var(--st-primary); border-radius: 50%; animation: st-spin .8s linear infinite; }
@keyframes st-spin { to { transform: rotate(360deg); } }

/* ── Friend request card (on home page) ── */
.st-fr-card { border: 1px solid #FDE047 !important; background: linear-gradient(135deg, #FFFDF5 0%, #FEF9C3 100%) !important; box-shadow: 0 4px 14px rgba(245, 158, 11, 0.08), var(--st-card-highlight) !important; }
.st-fr-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--st-border); flex-shrink: 0; }
.st-fr-avatar--initial { background: linear-gradient(135deg, var(--st-primary) 0%, var(--st-accent) 100%); color: #fff; font-size: .85rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.st-fr-actions { display: flex; gap: .4rem; flex-shrink: 0; }
.st-fr-btn { font-size: .8rem; font-weight: 600; padding: .3rem .85rem; border-radius: var(--st-radius-full); cursor: pointer; white-space: nowrap; transition: all var(--st-transition-fast); }
.st-fr-btn--accept { border: 1.5px solid var(--st-primary); background: var(--st-primary); color: #fff; }
.st-fr-btn--accept:hover { background: var(--st-primary-hover); border-color: var(--st-primary-hover); transform: translateY(-1px); }
.st-fr-btn--decline { border: 1.5px solid #D1D5DB; background: transparent; color: var(--st-muted); }
.st-fr-btn--decline:hover { background: #F3F4F6; color: var(--st-text); border-color: #9CA3AF; }

/* ── Roadmap timeline ── */
.roadmap-card { background: var(--st-card); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--st-border); border-radius: var(--st-radius); padding: 1.25rem 1.5rem; margin-bottom: 2rem; box-shadow: var(--st-shadow), var(--st-card-highlight); }
.roadmap-card-title { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--st-muted); margin-bottom: .85rem; }
.roadmap-crop-wrap { position: relative; max-height: 126px; overflow: hidden; transition: max-height .35s ease; }
.roadmap-crop-wrap.roadmap-expanded { max-height: 2000px; }
.roadmap-fade { position: absolute; bottom: 0; left: 0; right: 0; height: 40px; background: linear-gradient(transparent, var(--st-card)); pointer-events: none; transition: opacity .2s; }
.roadmap-crop-wrap.roadmap-expanded .roadmap-fade { opacity: 0; }
.roadmap-expand-btn { display: block; width: 100%; background: none; border: none; padding: .35rem 0 0; font-size: .72rem; font-weight: 600; color: var(--st-muted); cursor: pointer; text-align: center; }
.roadmap-expand-btn:hover { color: var(--st-primary); }
.roadmap-scroll { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
.roadmap-inner { position: relative; min-width: 100%; }
.rm-axis { position: relative; height: 32px; margin-bottom: 4px; }
.rm-month { position: absolute; font-size: .62rem; font-weight: 600; color: var(--st-muted); transform: translateX(-50%); white-space: nowrap; top: 1px; pointer-events: none; }
.rm-today-tick { position: absolute; font-size: .6rem; font-weight: 700; color: var(--st-primary); transform: translateX(-50%); bottom: 1px; white-space: nowrap; pointer-events: none; background: rgba(2, 132, 199, 0.12); padding: 1px 5px; border-radius: 4px; }
.rm-body { position: relative; padding-bottom: 2px; min-height: 30px; }
.rm-grid-line { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--st-border); pointer-events: none; }
.rm-today-line { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--st-primary); opacity: .3; border-radius: 1px; pointer-events: none; z-index: 1; }
.rm-row { position: relative; height: 22px; margin-bottom: 3px; }
.rm-bar { position: absolute; height: 14px; top: 4px; border-radius: 4px; min-width: max-content; display: flex; align-items: center; padding: 0 5px; text-decoration: none; opacity: .85; transition: opacity .12s, filter .12s; z-index: 2; }
.rm-bar:hover { opacity: 1; filter: brightness(1.08); text-decoration: none; z-index: 3; }

.rm-bar-label { font-size: .58rem; font-weight: 600; color: #fff; white-space: nowrap; pointer-events: none; text-shadow: 0 0 3px rgba(0,0,0,0.6); }

/* ── Share Event – circle tree ──────────────────────────────────────── */
.st-circle-tree-item { border: 1px solid var(--st-border); border-radius: 6px; margin-bottom: .4rem; overflow: hidden; }
.st-circle-tree-item .accordion-button::after { display: none; }
.st-circle-tree-item .accordion-button:not(.collapsed) { box-shadow: none; }
.st-member-tree-item { display: flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--st-text); padding: .25rem 0; border-bottom: 1px solid #F3F4F6; }
.st-member-tree-item:last-child { border-bottom: none; }
.st-member-icon { font-size: .85rem; flex-shrink: 0; }
.st-member-picker { max-height: 200px; overflow-y: auto; }

/* ── Notification bell ───────────────────────────────────────────────── */
.st-notif-wrap { position: relative; }

.st-notif-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: .35rem .5rem;
    border-radius: var(--st-radius-sm);
    line-height: 1;
    color: var(--st-text-secondary);
    transition: all var(--st-transition-fast);
}
.st-notif-btn:hover { background: var(--st-primary-subtle); color: var(--st-primary); }

.st-notif-badge {
    position: absolute;
    top: -2px;
    right: -4px;
    background: #EF4444;
    color: #fff;
    font-size: .6rem;
    font-weight: 700;
    min-width: 17px;
    height: 17px;
    border-radius: 9px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #FFFFFF;
    box-shadow: 0 1px 3px rgba(239, 68, 68, 0.4);
    pointer-events: none;
}

.st-notif-dropdown {
    position: fixed;
    width: 350px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius);
    box-shadow: var(--st-shadow-lg);
    z-index: 1050;
    overflow: hidden;
    animation: notifFadeIn .15s ease;
}
@keyframes notifFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.st-notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .85rem 1.1rem .7rem;
    border-bottom: 1px solid var(--st-border);
    background: var(--st-bg);
}
.st-notif-header-title {
    font-weight: 700;
    font-size: .95rem;
    color: var(--st-text);
}
.st-notif-markall {
    background: none;
    border: none;
    color: var(--st-primary);
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    transition: color var(--st-transition-fast);
}
.st-notif-markall:hover { text-decoration: underline; color: var(--st-primary-hover); }

.st-notif-list { max-height: 360px; overflow-y: auto; }

.st-notif-empty {
    padding: 2.25rem 1rem;
    text-align: center;
    color: var(--st-muted);
    font-size: .875rem;
}

.st-notif-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: .65rem;
    padding: .75rem 1.1rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    cursor: pointer;
    transition: background var(--st-transition-fast);
    border-left: 3px solid transparent;
}
.st-notif-item:hover { background: #F8FAFC; }
.st-notif-item:last-child { border-bottom: none; }

.st-notif-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--st-border);
}
.st-notif-avatar--initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--st-primary) 0%, var(--st-accent) 100%);
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
}
.st-notif-item-content {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    min-width: 0;
}

.st-notif-item--unread {
    border-left-color: var(--st-primary);
    background: #F0F9FF;
}
.st-notif-item--unread:hover { background: #E0F2FE; }

.st-notif-item-title {
    font-size: .85rem;
    font-weight: 600;
    color: var(--st-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.st-notif-item-body {
    font-size: .8rem;
    color: var(--st-muted);
    white-space: normal;
    word-break: break-word;
}
.st-notif-item-time {
    font-size: .72rem;
    color: #94A3B8;
    margin-top: .1rem;
}

/* ── Event Planning Board ─────────────────────────────────────── */
.event-planning-section { border-top: 1px solid var(--st-border); padding: 1.5rem; background-color: rgba(248, 250, 252, 0.7); }
.planning-group { margin-bottom: 1.25rem; background: var(--st-card); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--st-border); border-radius: var(--st-radius); padding: 1.15rem; box-shadow: var(--st-shadow-xs), var(--st-card-highlight); }
.planning-group-header { display: flex; align-items: center; font-size: 1rem; font-weight: 700; color: var(--st-text); letter-spacing: -0.015em; margin-bottom: 0.75rem; padding-bottom: 0.45rem; border-bottom: 1px solid rgba(15, 23, 42, 0.06); gap: .5rem; }
.planning-item-row { display: flex; flex-direction: column; gap: 0.35rem; padding: 0.65rem 0.6rem 0.35rem 0.85rem; border-radius: var(--st-radius-sm); background: #FFFFFF; border: 1px solid rgba(15, 23, 42, 0.08); margin-bottom: 0.45rem; transition: all var(--st-transition-fast); }
.planning-item-body { display: flex; flex-direction: column; gap: 0.25rem; width: 100%; }
.planning-item-row:hover { border-color: var(--st-primary); box-shadow: var(--st-shadow-sm); transform: translateY(-1px); }
.planning-item-title { font-size: 0.95rem; font-weight: 600; color: var(--st-text); word-break: break-word; line-height: 1.4; }
.planning-item-link { color: var(--st-primary); text-decoration: none; font-weight: 500; }
.planning-item-link-icon { font-size: 0.85em; margin-left: 0.2rem; opacity: 0.8; }
.planning-item-link:hover { text-decoration: underline; }
.planning-item-comment { font-size: 0.85rem; color: #64748B; white-space: pre-wrap; word-break: break-word; margin-top: 0.1rem; }
.planning-item-footer { display: flex; align-items: center; justify-content: flex-end; gap: 0.35rem; }
.planning-item-author { font-size: 0.68rem; color: #94A3B8; }
.btn-planning-delete { font-size: 1rem; color: #94A3B8; background: none; border: none; padding: 0.25rem; cursor: pointer; transition: color 0.15s, background 0.15s; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; }
.btn-planning-delete:hover { color: #EF4444; background: #FEE2E2; }
.btn-planning-edit { font-size: 1rem; color: #94A3B8; background: none; border: none; padding: 0.25rem; cursor: pointer; transition: color 0.15s, background 0.15s; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; }
.btn-planning-edit:hover { color: var(--st-primary); background: var(--st-primary-subtle); }
.event-section-row { display: flex; align-items: center; gap: .4rem; margin-bottom: .25rem; }
.event-section-row .event-section-label { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--st-muted); }
.event-detail-description p { margin: 0; color: var(--st-text); }
.btn-inline-edit { font-size: .75rem; color: #94A3B8; background: none; border: none; padding: 0.15rem 0.35rem; cursor: pointer; transition: color 0.15s, background 0.15s; border-radius: 4px; line-height: 1; }
.btn-inline-edit:hover { color: var(--st-primary); background: var(--st-primary-subtle); }
.inline-edit-form { background: rgba(248, 250, 252, 0.85); border: 1px solid var(--st-border); border-radius: var(--st-radius-sm); padding: .75rem; }
.inline-edit-actions { display: flex; gap: .5rem; margin-top: .5rem; }
.planning-add-form { background: rgba(248, 250, 252, 0.85); border: 1px solid var(--st-border); border-radius: var(--st-radius-sm); padding: .85rem; }
.planning-add-form input, .planning-add-form select, .planning-add-form textarea { border: 1px solid var(--st-border); }

/* ── Planning category tile picker ───────────────────────────────── */
.planning-cat-label { font-size: 0.85rem; display: block; font-weight: 700; color: var(--st-text); margin-bottom: 0.5rem; }
.planning-cat-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(75px, 1fr)); gap: 0.5rem; }
.planning-cat-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem; padding: 0.65rem 0.25rem; border: 1.5px solid #E2E8F0; border-radius: var(--st-radius-md); background: #FFFFFF; cursor: pointer; color: #64748B; transition: all var(--st-transition-fast); }
.planning-cat-tile:hover { border-color: var(--st-primary); background: #F8FAFC; transform: translateY(-1px); box-shadow: var(--st-shadow-xs); }
.planning-cat-tile.active { border-color: var(--st-primary); background: #F0F9FF; color: var(--st-primary); box-shadow: 0 0 0 2px var(--st-primary-glow); }
.planning-cat-tile-icon { font-size: 1.6rem; line-height: 1; transition: transform 0.2s; }
.planning-cat-tile.active .planning-cat-tile-icon { transform: scale(1.1); }
.planning-cat-tile-name { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; text-align: center; }

.planning-form-input { background: #FFFFFF; border: 1px solid #CBD5E1; border-radius: var(--st-radius-sm); padding: 0.6rem 0.85rem; font-size: 0.95rem; transition: all var(--st-transition-fast); width: 100%; box-sizing: border-box; }
.planning-form-input:focus { outline: none; border-color: var(--st-primary); background: #FFFFFF; box-shadow: 0 0 0 3px var(--st-primary-glow); }

/* ── Event Photos ────────────────────────────────────────────────────────── */
.photos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.6rem; margin-top: 0.5rem; }
.photo-tile { position: relative; border-radius: var(--st-radius-md); overflow: hidden; aspect-ratio: 1; background: #F1F5F9; box-shadow: var(--st-shadow-xs); transition: all var(--st-transition-fast); }
.photo-tile-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.2s ease; }
.photo-tile-img.photo-tile-cover { outline: 3px solid var(--st-primary); outline-offset: -3px; }
.photo-tile:hover .photo-tile-img { transform: scale(1.03); opacity: 0.92; }
.photo-cover-badge { position: absolute; bottom: 6px; left: 6px; background: var(--st-primary); color: #fff; font-size: 0.65rem; font-weight: 700; padding: 2px 6px; border-radius: var(--st-radius-xs); pointer-events: none; box-shadow: 0 1px 4px rgba(0,0,0,0.2); }
.photo-tile-actions { position: absolute; top: 6px; right: 6px; display: flex; gap: 4px; opacity: 0; transition: opacity 0.15s; }
.photo-tile:hover .photo-tile-actions { opacity: 1; }
.btn-photo-action { background: rgba(255,255,255,0.92); backdrop-filter: blur(4px); border: none; border-radius: var(--st-radius-xs); cursor: pointer; font-size: 0.75rem; padding: 3px 6px; line-height: 1.4; box-shadow: 0 1px 3px rgba(0,0,0,0.15); transition: background var(--st-transition-fast); }
.btn-photo-action:hover { background: #FFFFFF; color: var(--st-primary); }

/* ── Home Page ───────────────────────────────────────────────────────────── */
.st-home-page { width: 100%; max-width: 640px; margin: .5rem auto; display: flex; flex-direction: column; gap: 1rem; padding: 0; box-sizing: border-box; }

.st-home-hero { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .4rem 8px; width: 100%; box-sizing: border-box; }
.st-home-hero-text { min-width: 0; flex: 1; }
.st-home-greeting { font-size: clamp(1.15rem, 4.5vw, 1.35rem); font-weight: 800; color: var(--st-text); margin: 0 0 .15rem; letter-spacing: -.025em; line-height: 1.25; word-break: break-word; }
.st-hero-wave { font-size: 1.15rem; color: #F59E0B; vertical-align: middle; }
.st-home-sub { font-size: .85rem; color: var(--st-muted); margin: 0; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.st-home-share-btn { background: none; border: none; padding: 0; font-size: .8rem; color: var(--st-primary); cursor: pointer; display: inline-flex; align-items: center; gap: .25rem; font-weight: 600; white-space: nowrap; transition: color var(--st-transition-fast); }
.st-home-share-btn:hover { text-decoration: underline; color: var(--st-primary-hover); }
.st-home-share-btn--copied { color: #059669; }
.st-home-new-btn { font-size: .85rem; font-weight: 700; padding: .5rem 1.15rem; border-radius: var(--st-radius-sm); white-space: nowrap; flex-shrink: 0; }

/* ── Navbar member search ───────────────────────────────────────────── */
.st-member-search-wrap {
    position: relative;
    width: min(320px, 48vw);
}

.st-navbar-search {
    flex: 1;
    max-width: 360px;
}

.st-member-search-input {
    border-radius: var(--st-radius-full);
    border: 1px solid var(--st-border);
    background: rgba(255, 255, 255, 0.85);
    min-width: 180px;
    font-size: .85rem;
    padding: .42rem .9rem;
    transition: all var(--st-transition-fast);
}

.st-member-search-input:focus {
    background: #FFFFFF;
    border-color: var(--st-primary);
    box-shadow: 0 0 0 3px var(--st-primary-glow);
    outline: none;
}

.st-member-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 1200;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius-md);
    box-shadow: var(--st-shadow-lg);
    max-height: 320px;
    overflow-y: auto;
}

.st-member-search-list {
    display: flex;
    flex-direction: column;
}

.st-member-search-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .55rem .75rem;
    text-decoration: none;
    color: var(--st-text);
    border-bottom: 1px solid rgba(2, 132, 199, 0.08);
    transition: background var(--st-transition-fast);
}

.st-member-search-item:last-child {
    border-bottom: none;
}

.st-member-search-item:hover {
    background: #F0F9FF;
    color: var(--st-primary);
}

.st-member-search-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px #fff, 0 0 0 2px var(--st-border);
}

.st-member-search-avatar-default {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--st-primary) 0%, var(--st-accent) 100%);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
}

.st-member-search-name {
    font-size: .84rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.st-member-search-source {
    font-size: .7rem;
    color: var(--st-muted);
    background: #EEF2FF;
    border-radius: var(--st-radius-full);
    padding: 2px 8px;
}

.st-member-search-empty {
    padding: .75rem .85rem;
    font-size: .8rem;
    color: var(--st-muted);
}

@media (max-width: 576px) {
    .st-member-search-wrap {
        width: auto;
        flex: 1;
        min-width: 0;
    }
    .st-member-search-input {
        min-width: 0;
        width: 100%;
        font-size: .8rem;
        padding: .32rem .75rem;
    }
    .navbar-collapse.collapse:not(.show) {
        display: none !important;
    }
    .navbar-collapse.collapsing,
    .navbar-collapse.collapse.show {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1039;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--st-border);
        box-shadow: var(--st-shadow-lg);
        padding: .75rem 1rem 1.25rem;
    }
    .ue-name-text { white-space: normal; overflow: visible; text-overflow: unset; }
    .st-expired-card { padding: .85rem 1rem; }
    .st-home-hero { padding: .4rem 2px; }

    /* ── Wizard Mobile ── */
    .wizard-card { padding: 1.25rem 1rem; }
    .wdot-line { min-width: 12px; }
    .wizard-progress { margin-bottom: 1.25rem; }

    /* ── Event Detail Mobile ── */
    .event-detail-header-body,
    .event-detail-body { padding: 1rem; }
    .event-detail-location,
    .event-detail-description { padding-left: 1rem; padding-right: 1rem; }
    .event-detail-actions { padding: .75rem 1rem; }
    .event-detail-grid { grid-template-columns: 1fr; gap: .75rem; }

    /* ── Events List & Archive Mobile ── */
    .event-top { display: flex; flex-direction: column; gap: .35rem; position: static; }
    .event-name { padding-right: 0; }
    .event-badges { position: static; flex-wrap: wrap; }
    .event-body { padding: 1rem; }

    /* ── Roadmap Timeline Mobile ── */
    .roadmap-card { padding: 1rem; }
}

@media (max-width: 460px) {
    .st-expired-card {
        flex-direction: column;
        align-items: stretch;
        gap: .75rem;
    }
    .st-expired-card > form,
    .st-expired-actions {
        width: 100%;
        display: flex;
        gap: .5rem;
    }
    .st-expired-card > form .st-expired-btn,
    .st-expired-actions .st-expired-btn {
        flex: 1;
        text-align: center;
        min-height: 38px;
    }
}