/* ═══════════════════════════════════════════════════════════════
   ClanCue — Design System & Styles
   Aesthetic: Dark Modern Glassmorphism with Warm & Vibrant Accents
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

:root {
    /* Editorial Color Palette */
    --bg-base: #FDFBF7;
    --bg-surface: #FFFFFF;
    --bg-surface-elevated: #F5F0E6;
    --bg-card: #FFFFFF;
    --bg-card-hover: #FAF8F2;
    --bg-modal: #FFFFFF;

    --border-subtle: #EBE5D8;
    --border-card: #E3DCCB;
    --border-focus: #1F4D3A;

    /* Accents & Brand */
    --brand-primary: #1F4D3A;
    --brand-primary-light: #2D6A4F;
    --brand-secondary: #163828;
    --brand-accent: #A8823A;
    --brand-gradient: linear-gradient(135deg, #1F4D3A 0%, #2D6A4F 100%);
    --card-gradient: none;
    --glow-primary: none;

    /* Semantic Status Colors (warm editorial) */
    --success: #1F4D3A;
    --success-bg: rgba(31, 77, 58, 0.08);
    --warning: #B45309;
    --warning-bg: rgba(180, 83, 9, 0.08);
    --danger: #9B2C2C;
    --danger-bg: rgba(155, 44, 44, 0.08);
    --info: #2C5282;
    --info-bg: rgba(44, 82, 130, 0.08);

    /* Text */
    --text-main: #1A1A1A;
    --text-muted: #524E48;
    --text-dim: #8A857B;

    /* Member Color Palette (warm editorial tones) */
    --member-1: #1F4D3A;
    --member-2: #A8823A;
    --member-3: #8C4830;
    --member-4: #3E5F76;
    --member-5: #654F6F;
    --member-6: #586B4D;

    /* Typography & Sizing */
    --font-heading: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
    --font-body: 'DM Sans', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-full: 9999px;

    --shadow-card: 0 1px 3px rgba(26, 26, 26, 0.04), 0 1px 2px rgba(26, 26, 26, 0.02);
    --shadow-modal: 0 20px 45px -12px rgba(26, 26, 26, 0.16), 0 0 0 1px rgba(227, 220, 203, 0.6);

    --sidebar-width: 280px;
    --header-height: 72px;
}

/* Light Theme Variables (optional toggle) */


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

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    background-image: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-main);
    letter-spacing: -0.015em;
}

a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: var(--brand-primary-light);
    text-decoration: underline;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-main);
}

/* ═══════════════════════════════════════════════════════════════
   Layout Structure
   ═══════════════════════════════════════════════════════════════ */

#app-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Sidebar (Desktop) */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-surface);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    user-select: none;
    transition: opacity 0.2s ease, transform 0.15s ease;
}

.brand-logo:hover {
    opacity: 0.82;
}

.brand-logo:active {
    transform: scale(0.98);
}

.brand-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-sm);
    background: var(--bg-surface-elevated);
    color: var(--brand-primary);
    border: 1px solid var(--border-card);
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.nav-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    padding: 0 0.75rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.nav-item:hover {
    color: var(--text-main);
    background: var(--bg-surface-elevated);
}

.nav-item.active {
    color: var(--brand-primary);
    background: var(--bg-surface-elevated);
    border-left: 3px solid var(--brand-primary);
    font-weight: 600;
    box-shadow: none;
}

.nav-item .icon {
    font-size: 1.2rem;
    width: 24px;
    display: inline-flex;
    justify-content: center;
}

.nav-badge {
    margin-left: auto;
    font-size: 0.72rem;
    font-weight: 600;
    background: var(--brand-primary);
    color: #FDFBF7;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
}

/* Sidebar Footer / User snippet */
.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-surface-elevated);
}

.user-profile-widget {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    background: #FFFFFF;
    border: 1px solid var(--border-card);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: #FDFBF7;
    overflow: hidden;
    flex-shrink: 0;
}
.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role-pill {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-sm);
    background: var(--bg-surface-elevated);
    color: var(--brand-primary);
    border: 1px solid var(--border-card);
}

.user-actions-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 0.4rem;
    border-radius: var(--radius-sm);
    transition: color 0.2s;
}
.user-actions-btn:hover {
    color: var(--danger);
}

.user-actions-btn.edit-action:hover {
    color: var(--brand-primary);
}

/* Main Content Workspace */
.main-wrapper {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: calc(100% - var(--sidebar-width));
}

/* Top App Header */
.top-header {
    height: var(--header-height);
    background: rgba(253, 251, 247, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 90;
}

/* Profile Switch Banner (Kid Mode) */
.profile-switch-banner {
    background: linear-gradient(90deg, #1f4d3a 0%, #2a684e 100%);
    color: #ffffff;
    padding: 0.65rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.88rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    position: sticky;
    top: var(--header-height, 60px);
    z-index: 85;
}

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

.mobile-hamburger {
    display: none;
    background: #FFFFFF;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.mobile-hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.page-title-box h1 {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-main);
}

.page-title-box p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

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

/* AI Quick Action Bar */
.ai-quick-bar {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-full);
    padding: 0.35rem 0.5rem 0.35rem 1rem;
    gap: 0.5rem;
    transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(26, 26, 26, 0.04);
}
.ai-quick-bar:focus-within {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 2px rgba(31, 77, 58, 0.12);
}

.ai-quick-input {
    background: none;
    border: none;
    outline: none;
    color: var(--text-main);
    font-size: 0.88rem;
    width: 220px;
}
.ai-quick-input::placeholder {
    color: var(--text-dim);
}

.ai-voice-btn {
    background: var(--brand-primary);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #FDFBF7;
    font-size: 0.9rem;
    transition: background 0.2s;
}
.ai-voice-btn:hover {
    background: var(--brand-secondary);
}

/* Notification Bell */
.notif-bell-btn {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-full);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-main);
    transition: all 0.2s;
}
.notif-bell-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-focus);
}

.notif-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 10px;
    height: 10px;
    background: var(--danger);
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-surface);
}

/* App View Container */
.app-view {
    flex: 1;
    padding: 2rem;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    animation: fadeIn 0.3s ease-out;
}

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

/* ═══════════════════════════════════════════════════════════════
   Glassmorphism Cards & Components
   ═══════════════════════════════════════════════════════════════ */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    border-color: var(--brand-primary);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* Stat Cards Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}
.stat-icon.indigo { background: rgba(31, 77, 58, 0.08); color: #1F4D3A; }
.stat-icon.pink { background: rgba(168, 130, 58, 0.1); color: #A8823A; }
.stat-icon.emerald { background: rgba(45, 106, 79, 0.08); color: #2D6A4F; }
.stat-icon.amber { background: rgba(180, 83, 9, 0.08); color: #B45309; }
.stat-icon.cyan { background: rgba(44, 82, 130, 0.08); color: #2C5282; }

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 500;
    color: var(--brand-primary);
    line-height: 1.2;
    margin-top: 0.2rem;
}

.stat-subtext {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-top: 0.25rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.3rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
    outline: none;
    letter-spacing: 0.02em;
}

.btn-primary {
    background: var(--brand-primary);
    color: #FDFBF7;
    border-color: var(--brand-primary);
    box-shadow: none;
}
.btn-primary:hover {
    background: var(--brand-secondary);
    border-color: var(--brand-secondary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(31, 77, 58, 0.15);
}

.btn-secondary {
    background: #FFFFFF;
    color: var(--text-main);
    border-color: var(--border-card);
}
.btn-secondary:hover {
    background: var(--bg-surface-elevated);
    border-color: var(--text-main);
}

.btn-success {
    background: var(--brand-primary);
    color: #FDFBF7;
    border-color: var(--brand-primary);
    box-shadow: none;
}
.btn-success:hover {
    background: var(--brand-secondary);
    border-color: var(--brand-secondary);
    transform: translateY(-1px);
}

.btn-danger {
    background: rgba(155, 44, 44, 0.08);
    color: var(--danger);
    border-color: rgba(155, 44, 44, 0.25);
}
.btn-danger:hover {
    background: var(--danger);
    color: #FDFBF7;
    border-color: var(--danger);
}

.btn-sm {
    padding: 0.45rem 0.9rem;
    font-size: 0.82rem;
    border-radius: var(--radius-sm);
}

.btn-icon {
    padding: 0.45rem 0.65rem;
    min-width: 2.2rem;
    text-align: center;
}

.btn-lg {
    padding: 0.9rem 2rem;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}

/* Form Controls */
.form-group {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.form-input, .form-select, .form-textarea {
    background: #FFFFFF;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    color: var(--text-main);
    transition: all 0.2s ease;
    outline: none;
    width: 100%;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(31, 77, 58, 0.12);
    background: #FFFFFF;
}

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

/* ═══════════════════════════════════════════════════════════════
   Auth Views (Login, Signup, OTP, Passkey)
   ═══════════════════════════════════════════════════════════════ */

#auth-container {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.auth-wrapper {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.auth-card {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    background: #FFFFFF;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-modal);
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--brand-primary);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header .logo-icon {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.auth-header h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 0.35rem;
}

.auth-tabs {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    padding: 0.35rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
}

.auth-tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.6rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-tab-btn.active {
    background: #FFFFFF;
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 1px 2px rgba(26, 26, 26, 0.06);
}

.passkey-hero-box {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--bg-surface-elevated);
    border: 1px dashed var(--border-card);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.passkey-hero-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* OTP 6-Digit Box Input */
.otp-inputs {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    margin: 1.5rem 0;
}

.otp-digit {
    width: 50px;
    height: 60px;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--radius-sm);
    background: #FFFFFF;
    border: 1px solid var(--border-card);
    color: var(--brand-primary);
    outline: none;
}
.otp-digit:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(31, 77, 58, 0.12);
}

/* ═══════════════════════════════════════════════════════════════
   Calendar & Planner Views
   ═══════════════════════════════════════════════════════════════ */

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

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

.member-filter-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.member-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    background: #FFFFFF;
    border: 1px solid var(--border-card);
    color: var(--text-muted);
    transition: all 0.2s;
}

.member-chip.active {
    color: #FDFBF7;
    background: var(--brand-primary);
    border-color: var(--brand-primary);
}

.member-chip .dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: currentColor;
}

.week-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.75rem;
    min-height: 600px;
}

.day-col {
    background: #FFFFFF;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    padding: 0.85rem 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.day-col.today {
    border-color: var(--brand-primary);
    background: #FAF8F2;
}

.day-col-header {
    text-align: center;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.day-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
}

.day-number {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 0.15rem;
    color: var(--text-main);
}

.event-card {
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    cursor: pointer;
    border-left: 3px solid var(--brand-primary);
    background: var(--bg-surface-elevated);
    transition: transform 0.15s, background 0.15s;
}
.event-card:hover {
    transform: translateY(-1px);
    background: #EFE9DC;
}

.event-time {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
}

.event-title {
    font-weight: 600;
    margin-top: 0.15rem;
    color: var(--text-main);
}

.event-tag {
    display: inline-block;
    font-size: 0.65rem;
    padding: 0.1rem 0.4rem;
    border-radius: var(--radius-full);
    margin-top: 0.3rem;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════
   Logistics & Drop-off / Pick-up Engine
   ═══════════════════════════════════════════════════════════════ */

.logistics-banner {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.logistics-recommendation-card {
    background: #FFFFFF;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: transform 0.2s, border-color 0.2s;
}
.logistics-recommendation-card:hover {
    transform: translateY(-2px);
    border-color: var(--brand-primary);
}

.logistics-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: rgba(31, 77, 58, 0.08);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.conflict-badge {
    background: rgba(155, 44, 44, 0.08);
    border: 1px solid rgba(155, 44, 44, 0.25);
    color: var(--danger);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
}

/* ═══════════════════════════════════════════════════════════════
   Chore Management System
   ═══════════════════════════════════════════════════════════════ */

.chore-filter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.chore-status-tabs {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    padding: 0.35rem;
    border-radius: var(--radius-sm);
}

.chore-tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}
.chore-tab-btn.active {
    background: #FFFFFF;
    color: var(--text-main);
    box-shadow: 0 1px 2px rgba(26, 26, 26, 0.06);
}

/* Chore Area / Room Filtering Bar */
.chore-area-bar {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
    padding: 0.45rem 0.75rem;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.chore-area-label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    padding-right: 0.5rem;
    border-right: 1px solid var(--border-subtle);
}

.chore-area-chips {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    overflow-x: auto;
    white-space: nowrap;
    flex: 1;
    scrollbar-width: none;
}
.chore-area-chips::-webkit-scrollbar {
    display: none;
}

.chore-area-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.79rem;
    font-weight: 600;
    color: var(--text-muted);
    background: #FFFFFF;
    border: 1px solid var(--border-card);
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
}
.chore-area-chip:hover {
    color: var(--brand-primary);
    border-color: var(--brand-primary);
    transform: translateY(-1px);
}
.chore-area-chip.active {
    background: var(--brand-primary);
    color: #FFFFFF;
    border-color: var(--brand-primary);
    box-shadow: 0 2px 6px rgba(31, 77, 58, 0.25);
}
.chore-area-chip .chip-count {
    font-size: 0.7rem;
    padding: 0.08rem 0.38rem;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.06);
    color: inherit;
    font-weight: 700;
}
.chore-area-chip.active .chip-count {
    background: rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
}

.chore-area-select-wrapper {
    display: flex;
    align-items: center;
    margin-left: auto;
}
.chore-area-select {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.32rem 0.65rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    background: #FFFFFF;
    color: var(--text-main);
    cursor: pointer;
    max-width: 170px;
}

.chore-room-tag.clickable {
    cursor: pointer;
    transition: all 0.15s ease;
    border-radius: var(--radius-sm);
    padding: 0.1rem 0.35rem;
    margin-left: -0.35rem;
}
.chore-room-tag.clickable:hover {
    color: var(--brand-primary);
    background: rgba(31, 77, 58, 0.08);
}

.chores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 1.25rem;
}

.chore-card {
    background: #FFFFFF;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 190px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.chore-card:hover {
    transform: translateY(-2px);
    border-color: var(--brand-primary);
    box-shadow: 0 6px 18px rgba(26, 26, 26, 0.06);
}

.chore-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.chore-reward-badge {
    background: rgba(31, 77, 58, 0.08);
    border: 1px solid rgba(31, 77, 58, 0.2);
    color: var(--brand-primary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-full);
}

.chore-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.3;
}

.chore-room-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 0.35rem;
}

.chore-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
    margin-top: 1rem;
    font-size: 0.8rem;
}

.chore-assignee {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
}

.chore-status-pill {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-full);
}
.status-open { background: rgba(31, 77, 58, 0.08); color: #1F4D3A; border: 1px solid rgba(31, 77, 58, 0.2); }
.status-accepted { background: rgba(44, 82, 130, 0.08); color: #2C5282; border: 1px solid rgba(44, 82, 130, 0.2); }
.status-completed { background: rgba(180, 83, 9, 0.08); color: #B45309; border: 1px solid rgba(180, 83, 9, 0.2); }
.status-verified { background: rgba(31, 77, 58, 0.12); color: #1F4D3A; border: 1px solid rgba(31, 77, 58, 0.25); }
.status-expired { background: rgba(220, 38, 38, 0.09); color: #DC2626; border: 1px solid rgba(220, 38, 38, 0.25); }

/* Shift & Cadence Badges */
.shift-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.shift-badge-morning {
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #FCD34D;
}
.shift-badge-afternoon {
    background: #E0F2FE;
    color: #0369A1;
    border: 1px solid #BAE6FD;
}
.shift-badge-night {
    background: #EDE9FE;
    color: #5B21B6;
    border: 1px solid #DDD6FE;
}
.shift-badge-anytime {
    background: #F3F4F6;
    color: #4B5563;
    border: 1px solid #E5E7EB;
}

.chore-deadline-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.73rem;
    font-weight: 600;
    padding: 0.18rem 0.5rem;
    border-radius: var(--radius-sm);
    background: rgba(26, 26, 26, 0.04);
    color: var(--text-dim);
    margin-top: 0.35rem;
}
.chore-deadline-badge.urgent {
    background: rgba(220, 38, 38, 0.1);
    color: #DC2626;
    font-weight: 700;
}

.routine-bundle-card {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.15rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.75rem;
    transition: all 0.2s ease;
}
.routine-bundle-card:hover {
    border-color: var(--brand-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 26, 26, 0.05);
}
.routine-bundle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.routine-bundle-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
}
.routine-bundle-items {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    padding-left: 1.2rem;
    margin: 0.25rem 0;
}

/* ═══════════════════════════════════════════════════════════════
   Allowance & Bank System
   ═══════════════════════════════════════════════════════════════ */

.allowance-kids-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.kid-bank-card {
    background: #FFFFFF;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.kid-bank-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--brand-primary);
}

.kid-bank-balance {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 500;
    margin: 0.5rem 0;
    color: var(--text-main);
}
.kid-bank-balance.positive { color: var(--brand-primary); }
.kid-bank-balance.negative { color: var(--danger); }
.kid-bank-balance.positive { color: #34d399; }
.kid-bank-balance.negative { color: #f87171; }

.negative-balance-alert {
    background: rgba(155, 44, 44, 0.08);
    border: 1px solid rgba(155, 44, 44, 0.2);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    font-size: 0.8rem;
    color: var(--danger);
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ═══════════════════════════════════════════════════════════════
   Modal Dialogs
   ═══════════════════════════════════════════════════════════════ */

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 26, 0.45);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1.5rem;
    animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: #FFFFFF;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-modal);
    animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
    from { transform: translateY(20px) scale(0.97); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid var(--border-subtle);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 500;
    color: var(--text-main);
}

.modal-close-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem;
    transition: color 0.2s;
}
.modal-close-btn:hover {
    color: var(--text-main);
}

.modal-body {
    padding: 1.75rem;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.25rem 1.75rem;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-surface-elevated);
}

/* ═══════════════════════════════════════════════════════════════
   Toast Notifications
   ═══════════════════════════════════════════════════════════════ */

#toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast {
    background: #FFFFFF;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    padding: 0.9rem 1.25rem;
    box-shadow: 0 10px 30px rgba(26, 26, 26, 0.08);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    max-width: 420px;
    color: var(--text-main);
    pointer-events: auto;
    animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.info { border-left: 4px solid var(--info); }

/* ═══════════════════════════════════════════════════════════════
   Mobile Responsive Styles (≤ 860px)
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 860px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: 20px 0 50px rgba(0, 0, 0, 0.7);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        z-index: 95;
    }
    .sidebar-overlay.active {
        display: block;
    }

    .main-wrapper {
        margin-left: 0;
        max-width: 100%;
    }

    .mobile-hamburger {
        display: flex;
    }

    .top-header {
        padding: 0 1rem;
    }

    .ai-quick-bar {
        display: none; /* Hide topbar AI input on small screens, use floating button */
    }

    .app-view {
        padding: 1.25rem 1rem;
    }

    .week-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

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

/* ═══════════════════════════════════════════════════════════════
   Intro.js Dark Theme Overrides
   ═══════════════════════════════════════════════════════════════ */
.introjs-tooltip {
    background-color: #FFFFFF !important;
    color: var(--text-main) !important;
    border: 1px solid var(--border-card) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-modal) !important;
}
.introjs-tooltiptext {
    color: var(--text-main) !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
}
.introjs-arrow.top {
    border-bottom-color: #FFFFFF !important;
}
.introjs-arrow.bottom {
    border-top-color: #FFFFFF !important;
}
.introjs-arrow.left {
    border-right-color: #FFFFFF !important;
}
.introjs-arrow.right {
    border-left-color: #FFFFFF !important;
}
.introjs-tooltip-title {
    color: var(--brand-primary) !important;
    font-family: var(--font-heading) !important;
    font-weight: 600 !important;
}
.introjs-button {
    background: var(--bg-surface-elevated) !important;
    color: var(--text-main) !important;
    border: 1px solid var(--border-card) !important;
    border-radius: var(--radius-sm) !important;
    text-shadow: none !important;
}
.introjs-button:hover {
    background: var(--brand-primary) !important;
    color: #FDFBF7 !important;
    border-color: var(--brand-primary) !important;
}
.introjs-bullets ul li a {
    background: var(--border-card) !important;
}
.introjs-bullets ul li a.active {
    background: var(--brand-primary) !important;
}
.introjs-helperLayer {
    background-color: rgba(31, 77, 58, 0.05) !important;
    border: 2px solid var(--brand-primary) !important;
}

/* ═══════════════════════════════════════════════════════════════
   Onboarding Wizard & Chatbot
   ═══════════════════════════════════════════════════════════════ */

.onboarding-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg-base);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    padding: 2rem 1rem;
}

.onboarding-container {
    width: 100%;
    max-width: 640px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: ob-fade-in 0.5s ease;
}

@keyframes ob-fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.onboarding-header {
    text-align: center;
    padding-bottom: 0.5rem;
}

.onboarding-header .ob-logo {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    display: inline-block;
    animation: ob-bounce 1s ease infinite alternate;
}

@keyframes ob-bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-6px); }
}

.onboarding-header h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 0.3rem;
}

.onboarding-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Stepper */
.ob-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0.5rem 0;
}

.ob-step-item {
    display: flex;
    align-items: center;
    gap: 0;
}

.ob-step-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    border: 2px solid var(--border-subtle);
    background: var(--bg-surface);
    color: var(--text-dim);
    transition: all 0.3s ease;
    position: relative;
}

.ob-step-dot.active {
    border-color: var(--brand-primary);
    background: var(--brand-primary);
    color: #FDFBF7;
    box-shadow: none;
}

.ob-step-dot.completed {
    border-color: var(--brand-accent);
    background: var(--brand-accent);
    color: #FDFBF7;
}

.ob-step-line {
    width: 40px;
    height: 2px;
    background: var(--border-subtle);
    transition: background 0.3s ease;
}

.ob-step-line.completed {
    background: var(--brand-accent);
}

/* Wizard Card */
.ob-card {
    background: #FFFFFF;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-modal);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    animation: ob-card-in 0.35s ease;
}

@keyframes ob-card-in {
    from { opacity: 0; transform: scale(0.96) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.ob-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--brand-primary);
}

.ob-card-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ob-card-subtitle {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.ob-form-group {
    margin-bottom: 1.25rem;
}

.ob-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.ob-form-group input,
.ob-form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    color: var(--text-main);
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.ob-form-group input:focus,
.ob-form-group select:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

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

/* Room Picker */
.ob-room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.ob-room-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-card);
    background: #FFFFFF;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    user-select: none;
    color: var(--text-main);
}

.ob-room-chip:hover {
    border-color: var(--brand-primary);
    background: var(--bg-surface-elevated);
}

.ob-room-chip.selected {
    border-color: var(--brand-primary);
    background: rgba(31, 77, 58, 0.08);
    color: var(--brand-primary);
    font-weight: 600;
}

.ob-room-chip .chip-icon {
    font-size: 1.2rem;
}

.ob-room-chip .chip-count {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.ob-room-chip .chip-count button {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    line-height: 1;
    padding: 0;
}

.ob-room-chip .chip-count span {
    min-width: 16px;
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Member Cards */
.ob-member-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.ob-member-card {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    padding: 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0.75rem;
    align-items: end;
    animation: ob-card-in 0.25s ease;
}

.ob-member-card .ob-form-group {
    margin-bottom: 0;
}

.ob-member-remove {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s;
    margin-bottom: 2px;
}

.ob-member-remove:hover {
    background: var(--danger);
    color: white;
}

.ob-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem;
    border-radius: var(--radius-sm);
    border: 1px dashed var(--border-subtle);
    background: transparent;
    color: var(--brand-primary-light);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
    width: 100%;
}

.ob-add-btn:hover {
    border-color: var(--brand-primary);
    background: rgba(99, 102, 241, 0.08);
}

/* Toggle Switch */
.ob-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.ob-toggle-track {
    width: 44px;
    height: 24px;
    border-radius: 12px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    position: relative;
    transition: background 0.2s;
    flex-shrink: 0;
}

.ob-toggle-track.active {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
}

.ob-toggle-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.2s;
}

.ob-toggle-track.active .ob-toggle-thumb {
    transform: translateX(20px);
}

.ob-toggle-label {
    font-size: 0.9rem;
    color: var(--text-main);
}

/* Footer Buttons */
.ob-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 0.5rem;
}

.ob-footer .ob-skip {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 0.85rem;
    text-decoration: underline;
    padding: 0.5rem;
    transition: color 0.2s;
}

.ob-footer .ob-skip:hover {
    color: var(--text-muted);
}

.ob-footer .ob-next {
    padding: 0.75rem 2rem;
    border-radius: var(--radius-sm);
    border: none;
    background: var(--brand-primary);
    color: #FDFBF7;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ob-footer .ob-next:hover {
    background: var(--brand-secondary);
}

.ob-footer .ob-back {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.ob-footer .ob-back:hover {
    background: var(--bg-surface-elevated);
}

/* Chatbot Onboarding */
.ob-chat-container {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 4rem);
    max-height: 700px;
}

.ob-chat-messages {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 0;
}

.ob-chat-bubble {
    max-width: 85%;
    padding: 0.85rem 1.1rem;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
    animation: ob-bubble-in 0.3s ease;
    white-space: pre-wrap;
}

@keyframes ob-bubble-in {
    from { opacity: 0; transform: translateY(8px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.ob-chat-bubble.assistant {
    align-self: flex-start;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-bottom-left-radius: 4px;
    color: var(--text-main);
}

.ob-chat-bubble.user {
    align-self: flex-end;
    background: var(--brand-primary);
    color: #FDFBF7;
    border-bottom-right-radius: 4px;
}

.ob-chat-bubble.typing {
    color: var(--text-dim);
    font-style: italic;
}

.ob-chat-input-row {
    display: flex;
    gap: 0.6rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-subtle);
}

.ob-chat-input-row input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-card);
    background: #FFFFFF;
    color: var(--text-main);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.ob-chat-input-row input:focus {
    border-color: var(--brand-primary);
}

.ob-chat-input-row button {
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-full);
    border: none;
    background: var(--brand-primary);
    color: #FDFBF7;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.ob-chat-input-row button:hover {
    background: var(--brand-primary-light);
}

.ob-chat-input-row button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mode Switcher */
.ob-mode-switch {
    text-align: center;
    padding: 0.5rem 0;
}

.ob-mode-switch a {
    color: var(--text-dim);
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s;
}

.ob-mode-switch a:hover {
    color: var(--brand-primary-light);
}

/* Completion Screen */
.ob-complete {
    text-align: center;
    padding: 2rem 1rem;
}

.ob-complete .ob-check-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--success);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    animation: ob-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes ob-pop {
    0% { transform: scale(0); }
    70% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.ob-complete h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.ob-complete p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.ob-complete .ob-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-bottom: 2rem;
    text-align: center;
}

.ob-complete .ob-summary-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 1rem;
}

.ob-complete .ob-summary-item .ob-sum-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-primary-light);
}

.ob-complete .ob-summary-item .ob-sum-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.2rem;
}

/* Responsive */
@media (max-width: 640px) {
    .ob-form-row {
        grid-template-columns: 1fr;
    }
    .ob-member-card {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    padding: 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0.75rem;
    align-items: end;
    animation: ob-card-in 0.25s ease;
}
    .ob-room-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ob-step-line {
        width: 20px;
    }
    .ob-step-dot {
        width: 30px;
        height: 30px;
        font-size: 0.7rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   AI & MCP Telemetry Dashboard Styles
   ═══════════════════════════════════════════════════════════════ */

.telemetry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.telemetry-card {
    background: #FFFFFF;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s, box-shadow 0.2s;
}

.telemetry-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--brand-primary);
    box-shadow: 0 4px 12px rgba(26, 26, 26, 0.05);
}

.telemetry-card-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.telemetry-card-value {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--brand-primary);
}

.telemetry-card-subtext {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.telemetry-filter-bar {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.telemetry-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-card);
    background: #FFFFFF;
}

.telemetry-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    text-align: left;
}

.telemetry-table th {
    background: var(--bg-surface-elevated);
    padding: 0.85rem 1rem;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-card);
    white-space: nowrap;
}

.telemetry-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-main);
    vertical-align: middle;
}

.telemetry-table tr:last-child td {
    border-bottom: none;
}

.telemetry-table tr:hover td {
    background: var(--bg-card-hover);
}

.latency-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: monospace;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--radius-full);
}

.latency-fast {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.latency-normal {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.latency-slow {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.mcp-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: monospace;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: var(--radius-sm);
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.25);
    white-space: nowrap;
}

.mcp-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 4px;
}

.mcp-progress-fill {
    height: 100%;
    background: var(--brand-gradient);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.trace-step-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
}

/* ═══════════════════════════════════════════════════════════════
   ClanCue — Editorial Landing Page Styles
   ═══════════════════════════════════════════════════════════════ */

.landing-page {
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-base);
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
    font-family: var(--font-body);
}

/* Ambient glow orbs in the background */
.landing-ambient-glow-1 {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 500px;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.22) 0%, rgba(139, 92, 246, 0.12) 45%, rgba(10, 14, 26, 0) 75%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.landing-ambient-glow-2 {
    position: absolute;
    top: 900px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.12) 0%, rgba(99, 102, 241, 0.06) 50%, rgba(10, 14, 26, 0) 80%);
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}

.landing-ambient-glow-3 {
    position: absolute;
    top: 2200px;
    left: -150px;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.10) 0%, rgba(99, 102, 241, 0.06) 50%, rgba(10, 14, 26, 0) 80%);
    filter: blur(110px);
    pointer-events: none;
    z-index: 0;
}

/* Navigation */
.landing-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 14, 26, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    transition: background 0.3s ease;
}

.landing-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.landing-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-main);
    cursor: pointer;
}

.landing-brand-logo {
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.35));
}

.landing-brand-name {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 40%, #c7d2fe 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.landing-nav-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.65rem;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    color: #a5b4fc;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.landing-nav-badge .pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

.landing-nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.landing-nav-link {
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
    cursor: pointer;
}

.landing-nav-link:hover {
    color: #ffffff;
}

.btn-landing-login {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.25rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-full);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-landing-login:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    transform: translateY(-1px);
}

.btn-landing-waitlist {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.25rem;
    background: var(--brand-gradient);
    border: none;
    border-radius: var(--radius-full);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-landing-waitlist:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

/* Hero Section */
.landing-hero {
    position: relative;
    z-index: 1;
    max-width: 980px;
    margin: 0 auto;
    padding: 5rem 1.5rem 3rem 1.5rem;
    text-align: center;
}

.landing-kicker-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 1.1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.28);
    border-radius: var(--radius-full);
    color: #c7d2fe;
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
    backdrop-filter: blur(10px);
}

.landing-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1.2px;
    margin-bottom: 1.5rem;
    background: linear-gradient(145deg, #ffffff 20%, #e2e8f0 60%, #a5b4fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-wrap: balance;
}

.landing-hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.65;
    color: var(--text-muted);
    max-width: 760px;
    margin: 0 auto 2.5rem auto;
    font-weight: 400;
}

.landing-hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

.btn-landing-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 2rem;
    background: var(--brand-gradient);
    border: none;
    border-radius: var(--radius-full);
    color: #ffffff;
    font-size: 1.02rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.45);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-landing-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(236, 72, 153, 0.4);
    filter: brightness(1.08);
}

.btn-landing-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 1.85rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-full);
    color: var(--text-main);
    font-size: 1.02rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition: all 0.25s ease;
}

.btn-landing-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.landing-waitlist-hero-card {
    max-width: 580px;
    margin: 0 auto 1.5rem auto;
}

.landing-waitlist-form {
    width: 100%;
}

.landing-waitlist-input-box {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-full);
    padding: 0.35rem 0.4rem 0.35rem 1.25rem;
    gap: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.landing-waitlist-input-box:focus-within {
    border-color: var(--brand-primary-light);
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.35);
    background: var(--bg-surface-elevated);
}

.waitlist-input-icon {
    font-size: 1.15rem;
    opacity: 0.75;
}

.landing-waitlist-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-main);
    font-size: 0.95rem;
    min-width: 0;
}

.landing-waitlist-input::placeholder {
    color: var(--text-dim);
}

.btn-waitlist-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.75rem 1.5rem;
    background: var(--brand-gradient);
    border: none;
    border-radius: var(--radius-full);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-waitlist-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.landing-waitlist-feedback {
    margin-top: 0.75rem;
    font-size: 0.88rem;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    animation: fadeIn 0.3s ease-out;
}
.landing-waitlist-feedback.success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.landing-waitlist-feedback.error {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-landing-login-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-landing-login-pill:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

/* Stat Metrics Bar */
.landing-stats-bar {
    max-width: 860px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    padding: 1.75rem 2rem;
    background: rgba(22, 30, 48, 0.55);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

.landing-stat-item {
    text-align: center;
}

.landing-stat-number {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 0%, #818cf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.2rem;
}

.landing-stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* Centerpiece Quote Section */
.landing-quote-section {
    position: relative;
    z-index: 1;
    max-width: 980px;
    margin: 4.5rem auto 3rem auto;
    padding: 0 1.5rem;
}

.landing-quote-card {
    position: relative;
    background: linear-gradient(145deg, rgba(30, 41, 67, 0.72) 0%, rgba(17, 24, 39, 0.85) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 3.5rem 3.5rem 3rem 3.5rem;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    overflow: hidden;
}

.landing-quote-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--brand-gradient);
}

.landing-quote-watermark {
    position: absolute;
    top: 1.5rem;
    left: 2rem;
    font-family: Georgia, serif;
    font-size: 8rem;
    line-height: 1;
    color: rgba(99, 102, 241, 0.08);
    pointer-events: none;
    user-select: none;
}

.landing-quote-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--brand-accent);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.landing-quote-text {
    position: relative;
    z-index: 2;
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 2.6vw, 1.85rem);
    font-weight: 600;
    line-height: 1.55;
    color: #f8fafc;
    margin-bottom: 2.25rem;
    letter-spacing: -0.3px;
}

.landing-quote-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
    flex-wrap: wrap;
}

.landing-quote-author {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.landing-author-name {
    font-size: 0.98rem;
    font-weight: 700;
    color: #ffffff;
}

.landing-author-role {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.landing-quote-purpose-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.9rem;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    color: #34d399;
}

/* Visual Showcase Split (Image + Core Pillars) */
.landing-showcase-section {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 5rem auto;
    padding: 0 1.5rem;
}

.landing-showcase-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.landing-showcase-img-box {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.7);
    border: 1px solid var(--border-card);
}

.landing-showcase-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.landing-showcase-img-box:hover .landing-showcase-img {
    transform: scale(1.025);
}

.landing-img-overlay-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem 1.25rem 1.5rem;
    background: linear-gradient(to top, rgba(10, 14, 26, 0.95) 0%, rgba(10, 14, 26, 0.6) 60%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.landing-img-caption-text {
    font-size: 0.88rem;
    font-weight: 600;
    color: #f8fafc;
}

.landing-pillars {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.landing-pillar-card {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem 1.4rem;
    background: rgba(22, 30, 48, 0.45);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: all 0.25s ease;
}

.landing-pillar-card:hover {
    background: rgba(29, 41, 66, 0.7);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateX(4px);
}

.landing-pillar-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--radius-sm);
}

.landing-pillar-title {
    font-family: var(--font-heading);
    font-size: 1.08rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.3rem;
}

.landing-pillar-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* The Study at a Glance Section */
.landing-study-section {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 6rem auto 5rem auto;
    padding: 0 1.5rem;
}

.landing-section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3.5rem auto;
}

.landing-section-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--brand-primary-light);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.landing-section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.8px;
    margin-bottom: 1rem;
    color: #ffffff;
}

.landing-section-desc {
    font-size: 1.02rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.landing-study-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
}

.study-bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.study-bento-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(99, 102, 241, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 18px 40px -10px rgba(0, 0, 0, 0.5);
}

.study-bento-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.study-bento-icon {
    font-size: 1.8rem;
}

.study-bento-pill {
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.study-bento-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.study-bento-text {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--text-muted);
}

.study-bento-text strong {
    color: #e2e8f0;
}

/* Reference / Academic Citation Section */
.landing-reference-section {
    position: relative;
    z-index: 1;
    max-width: 980px;
    margin: 5rem auto;
    padding: 0 1.5rem;
}

.landing-reference-card {
    background: rgba(17, 24, 39, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2.75rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-card);
}

.reference-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
    flex-wrap: wrap;
    gap: 1rem;
}

.reference-title-group {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.reference-icon {
    font-size: 1.75rem;
}

.reference-heading {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
}

.btn-copy-citation {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-copy-citation:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.35);
    color: #ffffff;
}

.reference-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.reference-entry {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    align-items: baseline;
}

.reference-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brand-primary-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reference-value {
    font-size: 0.95rem;
    color: #f1f5f9;
    line-height: 1.6;
}

.reference-value em {
    font-style: italic;
    color: #c7d2fe;
}

/* Call to Action Engagement Banner */
.landing-cta-banner {
    position: relative;
    z-index: 1;
    max-width: 980px;
    margin: 5rem auto;
    padding: 0 1.5rem;
}

.landing-cta-card {
    position: relative;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(168, 85, 247, 0.2) 50%, rgba(236, 72, 153, 0.18) 100%), var(--bg-card);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-lg);
    padding: 3.5rem 2.5rem;
    text-align: center;
    backdrop-filter: blur(24px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.landing-cta-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.landing-cta-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 2.25rem auto;
    line-height: 1.6;
}

.landing-cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Minimalist Footer */
.landing-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border-subtle);
    background: rgba(10, 14, 26, 0.95);
    padding: 2.5rem 1.5rem;
    margin-top: 4rem;
}

.landing-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.landing-footer-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.landing-footer-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.landing-footer-link {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s ease;
    cursor: pointer;
}

.landing-footer-link:hover {
    color: #ffffff;
}

/* Back to Overview button in Auth View */
.btn-auth-back {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.35rem 0.6rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    transition: all 0.2s ease;
}

.btn-auth-back:hover {
    color: var(--text-main);
    background: var(--bg-surface-elevated);
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .landing-showcase-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .landing-study-grid {
        grid-template-columns: 1fr;
    }
    .landing-stats-bar {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .reference-entry {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }
}

@media (max-width: 640px) {
    .landing-quote-card {
        padding: 2.25rem 1.5rem;
    }
    .landing-quote-text {
        font-size: 1.2rem;
    }
    .landing-nav-container {
        padding: 0.85rem 1rem;
    }
    .landing-nav-badge {
        display: none;
    }
    .landing-nav-link {
        display: none;
    }
    .landing-hero {
        padding: 3.5rem 1rem 2rem 1rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   Sponsor a Chore & Extended Family Growth Loops
   ═══════════════════════════════════════════════════════════════ */

.sponsor-blueprint-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1rem 0 1.25rem 0;
}

.sponsor-chip-btn {
    background: var(--bg-surface-elevated, #f8fafc);
    border: 1px solid var(--border-subtle, #e2e8f0);
    border-radius: 9999px;
    padding: 0.45rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-main, #1e293b);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.sponsor-chip-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--brand-primary, #6366f1);
    color: var(--brand-primary, #6366f1);
    transform: translateY(-1px);
}

.sponsor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.sponsor-card {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-card, #e2e8f0);
    border-radius: var(--radius-md, 12px);
    padding: 1.25rem;
    box-shadow: var(--shadow-card, 0 2px 4px rgba(0,0,0,0.04));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sponsor-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.07);
}

.sponsor-card.pledged {
    border-color: rgba(16, 185, 129, 0.4);
    background: linear-gradient(to bottom right, var(--bg-card, #ffffff), rgba(16, 185, 129, 0.03));
}

.sponsor-public-page {
    min-height: 100vh;
    background: var(--bg-main, #f8fafc);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    font-family: var(--font-sans, system-ui, sans-serif);
}

.sponsor-public-box {
    width: 100%;
    max-width: 580px;
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-card, #e2e8f0);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
}

.sponsor-public-header {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #ffffff;
    padding: 2rem 1.75rem;
    text-align: center;
}

.sponsor-amount-selector {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.sponsor-amount-btn {
    flex: 1;
    min-width: 60px;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    border: 1.5px solid var(--border-card, #e2e8f0);
    background: var(--bg-surface-elevated, #f8fafc);
    color: var(--text-main, #1e293b);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
}

.sponsor-amount-btn.active, .sponsor-amount-btn:hover {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
    color: #4f46e5;
}

/* ═══════════════════════════════════════════════════════════════
   ClanCue — Savings Goals & Target Tracking Styles
   ═══════════════════════════════════════════════════════════════ */

.savings-goals-card {
    margin-bottom: 2rem;
    border-left: 4px solid var(--brand-accent, #A8823A);
}

.goals-filter-bar {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    margin-bottom: 1.25rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.goals-filter-btn {
    padding: 0.4rem 0.85rem;
    border-radius: 9999px;
    border: 1px solid var(--border-subtle, #EBE5D8);
    background: var(--bg-surface-elevated, #F5F0E6);
    color: var(--text-muted, #524E48);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.goals-filter-btn.active, .goals-filter-btn:hover {
    border-color: var(--brand-primary, #1F4D3A);
    background: var(--brand-primary, #1F4D3A);
    color: #ffffff;
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.goal-card {
    background: var(--bg-card, #FFFFFF);
    border: 1px solid var(--border-card, #E3DCCB);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.goal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.goal-card.primary-goal {
    border: 2px solid var(--brand-accent, #A8823A);
    background: linear-gradient(180deg, rgba(168, 130, 58, 0.03) 0%, var(--bg-card, #FFFFFF) 100%);
}

.goal-card.reached-goal {
    border: 2px solid #10b981;
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.05) 0%, var(--bg-card, #FFFFFF) 100%);
}

.goal-card.fulfilled-goal {
    border: 1px dashed var(--border-subtle, #EBE5D8);
    background: var(--bg-surface-elevated, #FAF8F2);
    opacity: 0.85;
}

.goal-header {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}

.goal-emoji-box {
    font-size: 1.8rem;
    width: 48px;
    height: 48px;
    background: var(--bg-surface-elevated, #F5F0E6);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.goal-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-main, #1A1A1A);
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.goal-owner-pill {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-dim, #8A857B);
}

.goal-progress-section {
    margin: 0.75rem 0;
}

.goal-numbers-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.35rem;
}

.goal-saved-val {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--brand-primary, #1F4D3A);
}

.goal-target-val {
    font-size: 0.82rem;
    color: var(--text-dim, #8A857B);
}

.goal-progress-bar-bg {
    width: 100%;
    height: 10px;
    background: var(--border-subtle, #EBE5D8);
    border-radius: 9999px;
    overflow: hidden;
    position: relative;
}

.goal-progress-bar-fill {
    height: 100%;
    border-radius: 9999px;
    background: linear-gradient(90deg, #1F4D3A 0%, #2D6A4F 60%, #A8823A 100%);
    transition: width 0.4s ease;
}

.goal-progress-bar-fill.reached {
    background: linear-gradient(90deg, #059669 0%, #10b981 100%);
}

.goal-progress-subtext {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-dim, #8A857B);
    margin-top: 0.35rem;
}

.goal-runway-badge {
    background: rgba(31, 77, 58, 0.06);
    border: 1px solid rgba(31, 77, 58, 0.12);
    border-radius: 8px;
    padding: 0.45rem 0.65rem;
    font-size: 0.8rem;
    color: var(--brand-primary, #1F4D3A);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.65rem 0;
    line-height: 1.3;
}

.goal-parent-boost-badge {
    background: rgba(168, 130, 58, 0.08);
    border: 1px solid rgba(168, 130, 58, 0.2);
    border-radius: 8px;
    padding: 0.4rem 0.65rem;
    font-size: 0.78rem;
    color: #8C651E;
    margin-bottom: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.goal-card-actions {
    display: flex;
    gap: 0.45rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.goal-preset-chip-bar {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 0.4rem;
    margin-bottom: 0.75rem;
}

.goal-preset-chip {
    padding: 0.35rem 0.65rem;
    border-radius: 9999px;
    border: 1px solid var(--border-subtle, #EBE5D8);
    background: var(--bg-surface-elevated, #F5F0E6);
    color: var(--text-main, #1A1A1A);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.goal-preset-chip:hover {
    border-color: var(--brand-primary, #1F4D3A);
    background: rgba(31, 77, 58, 0.08);
}

.goal-dash-widget {
    background: linear-gradient(135deg, rgba(31, 77, 58, 0.06) 0%, rgba(168, 130, 58, 0.08) 100%);
    border: 1px solid var(--border-card, #E3DCCB);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.goal-dash-widget:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
