/* ============================================================
   HappyHome Mobile Web – Theme System & Base Styles
   ============================================================ */

/* ── Theme Variables (Earthly & Natural – Default) ── */
:root {
    --primary: #FF7A45;
    --primary-dark: #E05A2A;
    --primary-light: #FFB347;
    --secondary: #FFD6A5;
    --accent: #FF9A76;
    --background: #FFF9F5;
    --surface: #FFFFFF;
    --surface-alt: #FFF5EF;
    --text-primary: #3D2B1F;
    --text-secondary: #6B4F3A;
    --text-muted: #A08060;
    --border: #F0E0D0;
    --border-light: #FAF0E6;
    --danger: #D64545;
    --danger-light: #FDF2F2;
    --warning: #E6A817;
    --warning-light: #FFF8E1;
    --success: #2E7D32;
    --success-light: #E8F5E9;
    --info: #0277BD;
    --info-light: #E1F5FE;
    --shadow-sm: 0 2px 8px rgba(220, 150, 120, 0.15);
    --shadow-md: 0 8px 24px rgba(220, 150, 120, 0.2);
    --shadow-lg: 0 16px 32px rgba(220, 150, 120, 0.25);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --bottom-nav-height: 70px;
    --header-height: 70px;
}

/* ── Earthly Theme (Previous Default) ── */
[data-theme="earthly"] {
    --primary: #556B2F;
    --primary-dark: #3E4E3C;
    --primary-light: #8F9779;
    --secondary: #C2B280;
    --accent: #7A9A5E;
    --background: #F4F7F2;
    --surface: #FFFFFF;
    --surface-alt: #F8FAF6;
    --text-primary: #2D3A2E;
    --text-secondary: #5A6B5C;
    --text-muted: #8A9A8C;
    --border: #E2E8E0;
    --border-light: #EDF2EB;
}

/* ── Cool Theme ── */
[data-theme="cool"] {
    --primary: #0F4C75;
    --primary-dark: #093854;
    --primary-light: #3282B8;
    --secondary: #BBE1FA;
    --accent: #1B6CA8;
    --background: #F2F8FC;
    --surface: #FFFFFF;
    --surface-alt: #F0F6FA;
    --text-primary: #1A2B3C;
    --text-secondary: #3A5A7C;
    --text-muted: #7A9AB8;
    --border: #D8E8F4;
    --border-light: #E8F2FA;
}

/* ── Base Reset & Globals ── */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    padding: 0;
    background: var(--background);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── Mobile Container ── */
.container-mobile {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--background);
    position: relative;
    padding-bottom: calc(var(--bottom-nav-height) + 16px);
}

/* ── App Content Area ── */
#app-content {
    padding: 12px 16px;
    padding-top: calc(var(--header-height) + 12px);
    min-height: calc(100vh - var(--bottom-nav-height));
}

/* ── Header ── */
.mobile-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: var(--header-height);
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    z-index: 1040;
    box-shadow: var(--shadow-sm);
}

.mobile-header .app-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.mobile-header .header-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.4);
}

.mobile-header .header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Bottom Navigation ── */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: var(--bottom-nav-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 4px 0;
    z-index: 1040;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    min-width: 56px;
}

.mobile-bottom-nav .nav-item i {
    font-size: 20px;
    margin-bottom: 2px;
}

.mobile-bottom-nav .nav-item.active,
.mobile-bottom-nav .nav-item:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.mobile-bottom-nav .nav-item.active {
    font-weight: 700;
}

/* ── Cards ── */
.app-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    margin-bottom: 12px;
    transition: var(--transition);
}

.app-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 122, 69, 0.2);
}

.app-card:active {
    transform: scale(0.98);
}

/* ── Stat Cards (Dashboard) ── */
.stat-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.stat-card .stat-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.stat-card .stat-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 4px;
    line-height: 1.2;
}

.stat-card.primary-gradient {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
}

.stat-card.primary-gradient .stat-value,
.stat-card.primary-gradient .stat-label {
    color: #fff;
}

/* ── Glass Card ── */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.glass-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* ── Section Headers ── */
.section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i {
    color: var(--primary);
    font-size: 16px;
}

/* ── List Items ── */
.list-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
    cursor: pointer;
    gap: 12px;
}

.list-item:active {
    background: var(--surface-alt);
}

.list-item:first-child {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.list-item:last-child {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    border-bottom: none;
}

.list-item:only-child {
    border-radius: var(--radius-md);
}

.list-item .item-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-light);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
}

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

.list-item .item-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-item .item-meta {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-item .item-badge {
    flex-shrink: 0;
}

/* ── Status Badges ── */
.badge-status {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.3px;
}

.badge-pending { background: #FFF3E0; color: #E65100; }
.badge-initial { background: #E8EAF6; color: #283593; }
.badge-plan-issued { background: #E0F2F1; color: #00695C; }
.badge-loan-required { background: #FCE4EC; color: #AD1457; }
.badge-follow-up { background: #FFF8E1; color: #F57F17; }
.badge-approved { background: var(--success-light); color: var(--success); }
.badge-rejected { background: var(--danger-light); color: var(--danger); }
.badge-migrated { background: #EDE7F6; color: #4527A0; }

.badge-upcoming { background: var(--info-light); color: var(--info); }
.badge-live { background: var(--success-light); color: var(--success); }
.badge-completed { background: #F3E5F5; color: #6A1B9A; }

.badge-spoken { background: var(--success-light); color: var(--success); }
.badge-not-attended { background: var(--warning-light); color: #BF8700; }
.badge-unable-call { background: var(--danger-light); color: var(--danger); }
.badge-not-available { background: #ECEFF1; color: #546E7A; }

.badge-admin { background: #EDE7F6; color: #6A1B9A; }
.badge-leader { background: #E0F2F1; color: #00695C; }
.badge-user { background: #E3F2FD; color: #1565C0; }

/* ── Search Bar ── */
.search-bar {
    position: relative;
    margin-bottom: 12px;
}

.search-bar input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: 14px;
    background: var(--surface);
    color: var(--text-primary);
    outline: none;
    transition: var(--transition);
}

.search-bar input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(85,107,47,0.1);
}

.search-bar i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
}

/* ── Filter Bar ── */
.filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}

.filter-bar::-webkit-scrollbar { display: none; }

.filter-chip {
    white-space: nowrap;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.filter-chip.active,
.filter-chip:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ── Buttons ── */
.btn-mobile {
    border: none;
    border-radius: var(--radius-md);
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 10px rgba(255, 122, 69, 0.1);
}

.btn-mobile:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(255, 122, 69, 0.2);
}

.btn-mobile:active {
    transform: scale(0.97);
}

.btn-primary-mobile {
    background: var(--primary);
    color: #fff;
}

.btn-primary-mobile:hover,
.btn-primary-mobile:active {
    background: var(--primary-dark);
    color: #fff;
}

.btn-secondary-mobile {
    background: var(--surface);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-danger-mobile {
    background: var(--danger);
    color: #fff;
}

/* ── FAB (Floating Action Button) ── */
.fab {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 20px);
    right: calc(50% - 220px);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    z-index: 1030;
    transition: var(--transition);
}

.fab:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 12px 28px rgba(255, 122, 69, 0.35);
}

.fab:active {
    transform: scale(0.95);
}

@media (max-width: 480px) {
    .fab { right: 20px; }
}

/* ── Modals (Mobile Optimized) ── */
.modal-dialog.modal-fullscreen-sm-down {
    margin: 0;
    max-width: 100%;
    min-height: 100vh;
}

.modal-fullscreen-sm-down .modal-content {
    border-radius: 0;
    min-height: 100vh;
    border: none;
}

@media (min-width: 481px) {
    .modal-dialog.modal-fullscreen-sm-down {
        max-width: 480px;
        margin: 1.75rem auto;
        min-height: auto;
    }
    .modal-fullscreen-sm-down .modal-content {
        border-radius: var(--radius-lg);
        min-height: auto;
    }
}

.modal-header {
    border-bottom: 1px solid var(--border-light);
    padding: 14px 16px;
}

.modal-header .modal-title {
    font-size: 17px;
    font-weight: 700;
}

.modal-body {
    padding: 16px;
}

.modal-footer {
    border-top: 1px solid var(--border-light);
    padding: 12px 16px;
}

/* ── Form Controls ── */
.form-control, .form-select {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    padding: 10px 14px;
    font-size: 14px;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(85,107,47,0.1);
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

/* ── Pull to Refresh ── */
.ptr-indicator {
    text-align: center;
    padding: 8px;
    color: var(--text-muted);
    font-size: 12px;
    display: none;
}

.ptr-indicator.active {
    display: block;
}

.ptr-indicator i {
    font-size: 18px;
    animation: spin 1s linear infinite;
}

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

/* ── Empty State ── */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.4;
}

.empty-state p {
    font-size: 14px;
    margin: 0;
}

/* ── Loading Spinner ── */
.loading-spinner {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
}

.loading-spinner .spinner-border {
    width: 24px;
    height: 24px;
    border-width: 3px;
    color: var(--primary);
}

/* ── Notification Item ── */
.notification-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    align-items: flex-start;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item .notif-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-light);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.notification-item .notif-content {
    flex: 1;
    min-width: 0;
}

.notification-item .notif-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.notification-item .notif-body {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 1px;
}

.notification-item .notif-time {
    font-size: 10px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ── Occasion Banner ── */
.occasion-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
    border: 1px solid var(--border-light);
}

.occasion-item i {
    font-size: 18px;
    color: var(--warning);
}

.occasion-item .occasion-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

/* ── Login Page ── */
.login-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 24px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--primary-light));
}

.login-card {
    width: 100%;
    max-width: 380px;
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 32px 24px;
    box-shadow: var(--shadow-lg);
}

.login-card .app-logo {
    text-align: center;
    margin-bottom: 24px;
}

.login-card .app-logo i {
    font-size: 48px;
    color: var(--primary);
}

.login-card .app-logo h1 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 8px 0 4px;
}

.login-card .app-logo p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.login-card .form-group {
    margin-bottom: 16px;
}

.login-card .btn-login {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius-md);
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.login-card .btn-login:hover {
    background: var(--primary-dark);
}

.login-card .btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

/* ── Utilities ── */
.text-primary-app { color: var(--primary) !important; }
.bg-primary-app { background: var(--primary) !important; }
.text-muted-app { color: var(--text-muted) !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-2 { margin-top: 8px !important; }
.fw-bold { font-weight: 700 !important; }

/* ── SweetAlert2 Custom ── */
.swal2-popup {
    font-size: 14px !important;
    border-radius: var(--radius-lg) !important;
}

.swal2-confirm {
    background: var(--primary) !important;
    border-radius: var(--radius-sm) !important;
}

/* ============================================================
   Flutter Parity Additions
   ============================================================ */

/* ── Hero / Gradient Dashboard Cards ── */
.hero-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 6px 20px rgba(85,107,47,0.35);
    display: flex;
    align-items: center;
    gap: 16px;
    color: #fff;
    border: none;
}

.hero-card-amber {
    background: linear-gradient(135deg, #E6A817, #C17F24);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 6px 20px rgba(230,168,23,0.35);
    display: flex;
    align-items: center;
    gap: 16px;
    color: #fff;
    border: none;
}

.hero-card .hero-icon,
.hero-card-amber .hero-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.hero-card .hero-value,
.hero-card-amber .hero-value {
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    color: #fff;
}

.hero-card .hero-label,
.hero-card-amber .hero-label {
    font-size: 13px;
    opacity: 0.85;
    color: #fff;
    margin-bottom: 4px;
}

/* ── Status Icon Box (colored mini icon for grid cards) ── */
.status-icon-box {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 6px;
    font-size: 15px;
}

/* Per-status colors matching Flutter */
.sib-pending    { background: rgba(117,117,117,0.12); color: #757575; }
.sib-initial    { background: rgba(25,118,210,0.12);  color: #1976D2; }
.sib-plan       { background: rgba(245,127,23,0.12);  color: #F57F17; }
.sib-loan       { background: rgba(244,81,30,0.12);   color: #F4511E; }
.sib-followup   { background: rgba(0,121,107,0.12);   color: #00796B; }
.sib-approved   { background: rgba(46,125,50,0.12);   color: #2E7D32; }
.sib-rejected   { background: rgba(198,40,40,0.12);   color: #C62828; }
.sib-migrated   { background: rgba(69,39,160,0.12);   color: #4527A0; }

/* Status grid value with per-status color */
.sib-pending  .sv  { color: #757575; }
.sib-initial  .sv  { color: #1976D2; }
.sib-plan     .sv  { color: #F57F17; }
.sib-loan     .sv  { color: #F4511E; }
.sib-followup .sv  { color: #00796B; }
.sib-approved .sv  { color: #2E7D32; }
.sib-rejected .sv  { color: #C62828; }
.sib-migrated .sv  { color: #4527A0; }

/* ── Status Grid Card ── */
.status-grid-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 10px 6px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: var(--transition);
}

.status-grid-card:active { transform: scale(0.96); }

.status-grid-card .sv {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.status-grid-card .sl {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 3px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Typed Notification Icon Colors ── */
.notif-icon-guest-created    { background: rgba(25,118,210,0.12)  !important; color: #1976D2 !important; }
.notif-icon-status-changed   { background: rgba(245,127,23,0.12)  !important; color: #F57F17 !important; }
.notif-icon-feedback         { background: rgba(0,121,107,0.12)   !important; color: #00796B !important; }
.notif-icon-user-tree        { background: rgba(69,39,160,0.12)   !important; color: #4527A0 !important; }
.notif-icon-default          { background: rgba(117,117,117,0.12) !important; color: #757575 !important; }

/* Upgrade notification item icon */
.notification-item .notif-icon {
    border-radius: var(--radius-sm) !important;
    font-size: 15px !important;
}

/* ── Occasion Item – Birthday/Anniversary ── */
.occasion-icon-birthday    { background: rgba(233,30,99,0.12); color: #E91E63; }
.occasion-icon-anniversary { background: rgba(245,127,23,0.12); color: #F57F17; }

.occasion-icon-box {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.occasion-today-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    margin-left: auto;
    flex-shrink: 0;
}

.occasion-today-badge.birthday    { background: rgba(233,30,99,0.12); color: #E91E63; }
.occasion-today-badge.anniversary { background: rgba(245,127,23,0.12); color: #F57F17; }

/* Occasion item updated layout */
.occasion-item-v2 {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--surface);
    border-bottom: 1px solid var(--border-light);
}

.occasion-item-v2:first-child { border-radius: var(--radius-md) var(--radius-md) 0 0; }
.occasion-item-v2:last-child  { border-radius: 0 0 var(--radius-md) var(--radius-md); border-bottom: none; }
.occasion-item-v2:only-child  { border-radius: var(--radius-md); }

.occasion-item-v2 .occasion-label {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 0;
}

/* ── Header – Greeting Area (Flutter AppBar parity) ── */
.header-greeting {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.header-greeting .greeting-text {
    font-size: 11px;
    opacity: 0.8;
    color: #fff;
    line-height: 1.2;
}

.header-greeting .user-name {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.header-actions .header-bell {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 17px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
}

.header-actions .header-bell:hover { background: rgba(255,255,255,0.28); }

/* ── Role Badge (inline pill) ── */
.role-badge-pill {
    display: inline-flex;
    align-items: center;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.role-badge-admin  { background: rgba(106,27,154,0.18); color: #9C27B0; }
.role-badge-leader { background: rgba(0,105,92,0.18);   color: #00897B; }
.role-badge-user   { background: rgba(21,101,192,0.18); color: #1565C0; }

/* ── Login – Pill Button (Flutter gradient button) ── */
.btn-login-pill {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(85,107,47,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-login-pill:hover  { opacity: 0.92; transform: translateY(-1px); }
.btn-login-pill:active { transform: translateY(0); }
.btn-login-pill:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ── Login – Circular Logo Container ── */
.login-logo-circle {
    width: 88px;
    height: 88px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 8px 24px rgba(85,107,47,0.4);
    font-size: 40px;
    color: #fff;
}

/* ── Section Header with optional action link ── */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.section-header .section-header-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-header .section-header-title i { color: var(--primary); font-size: 15px; }

.section-header .section-header-action {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

