/* =====================================================
   SIKUA APP - Material Design 3 Android Style
   ===================================================== */

/* Reset di dalam scope aplikasi saja */
.sikua-app *,
.sikua-app *::before,
.sikua-app *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* CSS Variables - Material 3 Tokens */
.sikua-app {
    /* Brand */
    --md-primary: var(--sikua-primary, #0f6e4e);
    --md-primary-dark: #0a513a;
    --md-primary-light: #15a172;
    --md-accent: var(--sikua-accent, #c9a64d);
    --md-accent-light: #e0bf6c;

    /* Surface */
    --md-bg: #f5f7f6;
    --md-surface: #ffffff;
    --md-surface-2: #fafbfa;
    --md-surface-3: #f0f3f1;
    --md-on-surface: #1a1c1b;
    --md-on-surface-var: #5d6361;
    --md-outline: #c4c8c6;
    --md-outline-variant: #e3e7e5;

    /* Semantic */
    --md-success: #16a34a;
    --md-warning: #ea580c;
    --md-error: #dc2626;
    --md-info: #2563eb;

    /* Elevation */
    --elev-1: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --elev-2: 0 3px 6px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.04);
    --elev-3: 0 8px 16px rgba(0,0,0,0.10), 0 2px 4px rgba(0,0,0,0.05);
    --elev-4: 0 14px 28px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.06);

    /* Shape */
    --radius-xs: 8px;
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 999px;

    /* Type */
    --ff-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --ff-arabic: 'Amiri', serif;
}

/* Dark mode */
.sikua-app[data-theme="dark"] {
    --md-bg: #0f1311;
    --md-surface: #1a1f1c;
    --md-surface-2: #20262a;
    --md-surface-3: #262e2a;
    --md-on-surface: #e1e4e2;
    --md-on-surface-var: #9aa19e;
    --md-outline: #404742;
    --md-outline-variant: #2a322e;
}

/* Container */
.sikua-app {
    font-family: var(--ff-sans);
    font-size: 14px;
    line-height: 1.5;
    color: var(--md-on-surface);
    background: var(--md-bg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    position: relative;
    max-width: 480px;
    margin: 0 auto;
    overflow-x: hidden;
    padding-bottom: 80px;
}

/* Fullscreen body wrapper */
body.sikua-app-fullscreen {
    margin: 0;
    background: linear-gradient(135deg, #1a1f1c 0%, #2a3530 100%);
    min-height: 100vh;
}
body.sikua-app-fullscreen .sikua-app {
    box-shadow: 0 0 60px rgba(0,0,0,0.3);
    min-height: 100vh;
}

/* Material Symbols base */
.sikua-app .material-symbols-rounded {
    font-family: 'Material Symbols Rounded';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    user-select: none;
    vertical-align: middle;
}

/* ===== STATUS BAR ===== */
.sikua-status-bar {
    background: var(--md-primary);
    color: white;
    padding: 8px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 100;
}
.sikua-status-bar .status-icons {
    display: flex;
    gap: 6px;
}
.sikua-status-bar .material-symbols-rounded {
    font-size: 16px;
}

/* ===== TOP APP BAR ===== */
.sikua-appbar {
    background: var(--md-primary);
    color: white;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 28px;
    z-index: 90;
    box-shadow: var(--elev-2);
}
.appbar-title {
    flex: 1;
    min-width: 0;
}
.appbar-title h1 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.appbar-title p {
    font-size: 11px;
    opacity: 0.85;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.appbar-btn {
    background: none;
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: grid;
    place-items: center;
    cursor: pointer;
    position: relative;
    transition: background 0.2s;
}
.appbar-btn:hover, .appbar-btn:active {
    background: rgba(255,255,255,0.15);
}
.appbar-btn .badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: var(--md-error);
    color: white;
    font-size: 9px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    padding: 0 4px;
    line-height: 1;
}

/* ===== NAV DRAWER ===== */
.sikua-scrim {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 199;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.sikua-scrim.show {
    opacity: 1;
    pointer-events: auto;
}
.sikua-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100vh;
    background: var(--md-surface);
    z-index: 200;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.sikua-drawer.show {
    transform: translateX(0);
    box-shadow: var(--elev-4);
}
.drawer-header {
    background: linear-gradient(135deg, var(--md-primary), var(--md-primary-dark));
    color: white;
    padding: 28px 20px 20px;
    position: relative;
}
.drawer-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'><path d='M20 5 L25 15 L35 15 L27 22 L30 32 L20 26 L10 32 L13 22 L5 15 L15 15 Z' fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='1'/></svg>");
    opacity: 0.6;
}
.drawer-avatar {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.15);
    display: grid;
    place-items: center;
    overflow: hidden;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    border: 2px solid rgba(255,255,255,0.3);
}
.drawer-avatar img { width: 100%; height: 100%; object-fit: cover; }
.drawer-avatar .material-symbols-rounded { font-size: 36px; }
.drawer-name {
    font-size: 17px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}
.drawer-email {
    font-size: 13px;
    opacity: 0.85;
    margin-top: 2px;
    position: relative;
    z-index: 1;
}
.drawer-nav {
    list-style: none;
    padding: 8px;
    flex: 1;
}
.drawer-nav li a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    color: var(--md-on-surface);
    text-decoration: none;
    border-radius: var(--radius-full);
    margin: 2px 0;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
}
.drawer-nav li a:hover {
    background: var(--md-surface-3);
}
.drawer-nav li a.active {
    background: color-mix(in srgb, var(--md-primary) 14%, transparent);
    color: var(--md-primary);
    font-weight: 600;
}
.drawer-nav li a .material-symbols-rounded {
    color: var(--md-on-surface-var);
    font-size: 22px;
}
.drawer-nav li a.active .material-symbols-rounded {
    color: var(--md-primary);
}
.drawer-divider {
    height: 1px;
    background: var(--md-outline-variant);
    margin: 8px 12px;
}
.drawer-footer {
    padding: 20px;
    border-top: 1px solid var(--md-outline-variant);
    text-align: center;
    color: var(--md-on-surface-var);
    font-size: 11px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* ===== MAIN CONTENT ===== */
.sikua-main {
    background: var(--md-bg);
    min-height: calc(100vh - 76px);
}
.sikua-page {
    display: none;
    animation: fadeSlide 0.3s ease;
}
.sikua-page.active {
    display: block;
}
@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.page-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.page-spacer { height: 80px; }

/* ===== HERO CARD ===== */
.hero-card {
    background: linear-gradient(135deg, var(--md-primary) 0%, var(--md-primary-dark) 100%);
    color: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--elev-2);
}
.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'><circle cx='30' cy='30' r='2' fill='rgba(255,255,255,0.08)'/><path d='M30 5 L40 25 L55 25 L43 35 L48 55 L30 45 L12 55 L17 35 L5 25 L20 25 Z' fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='1'/></svg>");
}
.hero-content { position: relative; z-index: 1; }
.hero-arabic {
    font-family: var(--ff-arabic);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
    text-align: center;
}
.hero-greet {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}
.hero-sub {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 18px;
}
.hero-stats-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.2);
}
.hero-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.hero-stat-num {
    font-size: 22px;
    font-weight: 800;
    color: var(--md-accent-light);
}
.hero-stat-lbl {
    font-size: 11px;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.hero-stat-divider {
    width: 1px;
    height: 32px;
    background: rgba(255,255,255,0.25);
}

/* ===== BANNER CARDS ===== */
.banner-card {
    border-radius: var(--radius-lg);
    padding: 22px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: white;
    box-shadow: var(--elev-2);
}
.banner-card h2 { font-size: 20px; font-weight: 700; }
.banner-card p { font-size: 13px; opacity: 0.92; margin-top: 2px; }
.banner-icon {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.18);
    border-radius: var(--radius-md);
    display: grid;
    place-items: center;
}
.banner-icon .material-symbols-rounded {
    font-size: 28px;
}
.banner-pink { background: linear-gradient(135deg, #ec4899, #be185d); }
.banner-blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.banner-teal { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.banner-purple { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.banner-green { background: linear-gradient(135deg, #10b981, var(--md-primary)); }
.banner-indigo { background: linear-gradient(135deg, #6366f1, #4338ca); }
.banner-orange { background: linear-gradient(135deg, #f97316, #c2410c); }
.banner-red { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.banner-yellow { background: linear-gradient(135deg, #f59e0b, #b45309); }
.banner-cyan { background: linear-gradient(135deg, #06b6d4, #0e7490); }

/* ===== SECTION TITLE ===== */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 4px -4px;
}
.section-title h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--md-on-surface);
}
.section-title a {
    font-size: 12px;
    color: var(--md-primary);
    text-decoration: none;
    font-weight: 600;
}

/* ===== QUICK ACTIONS (App icons) ===== */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 4px;
    text-decoration: none;
    color: var(--md-on-surface);
    border-radius: var(--radius-md);
    transition: background 0.2s;
}
.quick-action:active {
    background: var(--md-surface-3);
}
.qa-icon {
    width: 56px;
    height: 56px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    transition: transform 0.2s;
    box-shadow: var(--elev-1);
}
.quick-action:active .qa-icon { transform: scale(0.92); }
.qa-icon .material-symbols-rounded {
    font-size: 28px;
    color: white;
}
.qa-icon-pink { background: linear-gradient(135deg, #ec4899, #be185d); }
.qa-icon-blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.qa-icon-green { background: linear-gradient(135deg, #10b981, var(--md-primary)); }
.qa-icon-orange { background: linear-gradient(135deg, #f59e0b, #c2410c); }
.qa-icon-purple { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.qa-icon-teal { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.qa-icon-indigo { background: linear-gradient(135deg, #6366f1, #4338ca); }
.qa-icon-red { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.quick-action span:not(.material-symbols-rounded) {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    color: var(--md-on-surface);
}

/* ===== STAT GRID ===== */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.stat-mini {
    background: var(--md-surface);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    border: 1px solid var(--md-outline-variant);
    box-shadow: var(--elev-1);
    overflow: hidden;
}
.stat-mini::before {
    content: '';
    position: absolute;
    inset: 0;
    width: 4px;
    border-radius: 4px 0 0 4px;
}
.stat-mini-icon {
    font-size: 28px !important;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
}
.stat-mini > div {
    flex: 1;
    min-width: 0;
}
.stat-mini-num {
    font-size: 20px;
    font-weight: 800;
    color: var(--md-on-surface);
    line-height: 1;
}
.stat-mini-lbl {
    font-size: 11px;
    color: var(--md-on-surface-var);
    margin-top: 4px;
}
.stat-trend {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: var(--radius-full);
}
.stat-trend.up { background: rgba(22,163,74,0.12); color: #16a34a; }
.stat-trend.down { background: rgba(220,38,38,0.12); color: #dc2626; }

.stat-emerald::before { background: var(--md-primary); }
.stat-emerald .stat-mini-icon { background: rgba(15,110,78,0.12); color: var(--md-primary); }
.stat-gold::before { background: var(--md-accent); }
.stat-gold .stat-mini-icon { background: rgba(201,166,77,0.15); color: #b08a35; }
.stat-blue::before { background: var(--md-info); }
.stat-blue .stat-mini-icon { background: rgba(37,99,235,0.12); color: var(--md-info); }
.stat-purple::before { background: #8b5cf6; }
.stat-purple .stat-mini-icon { background: rgba(139,92,246,0.12); color: #8b5cf6; }

/* ===== MD CARD ===== */
.md-card {
    background: var(--md-surface);
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid var(--md-outline-variant);
    box-shadow: var(--elev-1);
}
.md-card-elevated {
    box-shadow: var(--elev-2);
    border: none;
}
.md-card-cta {
    background: linear-gradient(135deg, color-mix(in srgb, var(--md-primary) 8%, var(--md-surface)), var(--md-surface));
    border-left: 4px solid var(--md-primary);
}
.md-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}
.card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}
.card-sub {
    font-size: 12px;
    color: var(--md-on-surface-var);
}
.chart-card { padding: 16px; }
.chart-card canvas { margin-top: 8px; }

/* ===== SCHEDULE LIST ===== */
.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.schedule-item {
    background: var(--md-surface);
    border-radius: var(--radius-md);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--md-outline-variant);
    transition: transform 0.2s;
}
.schedule-item:active { transform: scale(0.98); }
.schedule-date {
    width: 56px;
    text-align: center;
    background: rgba(15,110,78,0.1);
    color: var(--md-primary);
    border-radius: var(--radius-sm);
    padding: 8px 4px;
    flex-shrink: 0;
}
.schedule-date-gold {
    background: rgba(201,166,77,0.18);
    color: #8a6e1e;
}
.schedule-date .day {
    display: block;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
}
.schedule-date .month {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 2px;
}
.schedule-info { flex: 1; min-width: 0; }
.schedule-info h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}
.schedule-info p {
    font-size: 12px;
    color: var(--md-on-surface-var);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}
.schedule-info p .material-symbols-rounded {
    font-size: 14px !important;
}

/* ===== NEWS CARDS ===== */
.news-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 -16px;
    padding: 0 16px;
    scrollbar-width: none;
}
.news-scroll::-webkit-scrollbar { display: none; }
.news-card {
    background: var(--md-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    min-width: 260px;
    flex-shrink: 0;
    scroll-snap-align: start;
    border: 1px solid var(--md-outline-variant);
    box-shadow: var(--elev-1);
}
.news-img {
    height: 120px;
    background: linear-gradient(135deg, #0f6e4e, #15a172);
    position: relative;
}
.news-img-1 { background: linear-gradient(135deg, #ec4899, #be185d); }
.news-img-2 { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.news-img-3 { background: linear-gradient(135deg, #f59e0b, #c2410c); }
.news-img-4 { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.news-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.4);
    color: white;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 700;
    backdrop-filter: blur(10px);
}
.news-body { padding: 12px; }
.news-body h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
}
.news-body p {
    font-size: 12px;
    color: var(--md-on-surface-var);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-body small {
    font-size: 11px;
    color: var(--md-on-surface-var);
    display: flex;
    align-items: center;
    gap: 4px;
}
.news-body small .material-symbols-rounded { font-size: 12px !important; }

/* ===== BOTTOM NAVIGATION ===== */
.sikua-bottomnav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: var(--md-surface);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 8px 4px;
    border-top: 1px solid var(--md-outline-variant);
    z-index: 90;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
}
.bottomnav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    color: var(--md-on-surface-var);
    padding: 6px 10px;
    border-radius: var(--radius-full);
    transition: all 0.2s;
    flex: 1;
    min-width: 0;
}
.bottomnav-item .material-symbols-rounded {
    font-size: 24px;
}
.bottomnav-item .label {
    font-size: 10px;
    font-weight: 600;
}
.bottomnav-item.active {
    color: var(--md-primary);
}
.bottomnav-item.active .material-symbols-rounded {
    background: color-mix(in srgb, var(--md-primary) 14%, transparent);
    padding: 4px 14px;
    border-radius: var(--radius-full);
}
.bottomnav-fab {
    background: var(--md-primary);
    width: 56px;
    height: 56px;
    border-radius: 18px;
    margin-top: -20px;
    box-shadow: var(--elev-3);
    flex: 0 0 56px;
}
.bottomnav-fab .material-symbols-rounded {
    color: white !important;
    font-size: 26px !important;
    padding: 0 !important;
    background: none !important;
}

/* ===== FAB - AI Assistant ===== */
.sikua-fab {
    position: fixed;
    bottom: 90px;
    right: 16px;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--md-accent), #b08a35);
    color: white;
    border: none;
    box-shadow: var(--elev-3);
    cursor: pointer;
    display: grid;
    place-items: center;
    z-index: 95;
    transition: transform 0.2s;
}
.sikua-fab:active { transform: scale(0.92); }
.sikua-fab .material-symbols-rounded { font-size: 28px; }
.fab-pulse {
    position: absolute;
    inset: -4px;
    border-radius: var(--radius-md);
    border: 2px solid var(--md-accent);
    animation: fabPulse 2s infinite;
}
@keyframes fabPulse {
    0% { transform: scale(0.95); opacity: 1; }
    100% { transform: scale(1.3); opacity: 0; }
}

/* ===== BOTTOM SHEET ===== */
.sikua-sheet {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 100%;
    max-width: 480px;
    max-height: 80vh;
    background: var(--md-surface);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    z-index: 220;
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.2);
}
.sikua-sheet.show {
    transform: translateX(-50%) translateY(0);
}
.sheet-handle {
    width: 32px;
    height: 4px;
    background: var(--md-outline);
    border-radius: 2px;
    margin: 12px auto;
}
.sheet-header {
    padding: 8px 20px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--md-outline-variant);
}
.sheet-header h3 { font-size: 16px; font-weight: 700; }
.sheet-header > div:not(.ai-avatar) { flex: 1; }
.sheet-header p {
    font-size: 12px;
    color: var(--md-on-surface-var);
    display: flex;
    align-items: center;
    gap: 4px;
}
.sheet-close {
    background: var(--md-surface-3);
    border: none;
    border-radius: var(--radius-full);
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    cursor: pointer;
}
.sheet-close .material-symbols-rounded { font-size: 18px; }

/* ===== AI CHAT ===== */
.ai-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--md-accent), #b08a35);
    color: white;
    display: grid;
    place-items: center;
}
.ai-avatar .material-symbols-rounded { font-size: 24px; }
.online-dot {
    width: 8px;
    height: 8px;
    background: var(--md-success);
    border-radius: var(--radius-full);
    display: inline-block;
}
.ai-chat {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ai-msg {
    display: flex;
}
.ai-msg-bot { justify-content: flex-start; }
.ai-msg-user { justify-content: flex-end; }
.ai-bubble {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
}
.ai-msg-bot .ai-bubble {
    background: var(--md-surface-3);
    color: var(--md-on-surface);
    border-bottom-left-radius: 4px;
}
.ai-msg-user .ai-bubble {
    background: var(--md-primary);
    color: white;
    border-bottom-right-radius: 4px;
}
.ai-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ai-chip {
    background: var(--md-surface);
    border: 1px solid var(--md-outline);
    color: var(--md-primary);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.ai-chip:active {
    background: var(--md-primary);
    color: white;
    transform: scale(0.96);
}
.ai-input-area {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--md-outline-variant);
}
.ai-input-area input {
    flex: 1;
    background: var(--md-surface-3);
    border: none;
    border-radius: var(--radius-full);
    padding: 12px 16px;
    font-size: 13px;
    color: var(--md-on-surface);
    font-family: inherit;
    outline: none;
}
#ai-send {
    background: var(--md-primary);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    display: grid;
    place-items: center;
    cursor: pointer;
}

/* ===== NOTIFICATIONS ===== */
.notif-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}
.notif-item {
    display: flex;
    gap: 12px;
    padding: 14px;
    border-radius: var(--radius-md);
    transition: background 0.2s;
    cursor: pointer;
}
.notif-item:active { background: var(--md-surface-3); }
.notif-item.unread {
    background: color-mix(in srgb, var(--md-primary) 4%, var(--md-surface));
}
.notif-item.unread::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--md-primary);
    align-self: center;
    flex-shrink: 0;
}
.notif-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.notif-icon .material-symbols-rounded { font-size: 22px; }
.notif-icon-success { background: rgba(22,163,74,0.12); color: var(--md-success); }
.notif-icon-info { background: rgba(37,99,235,0.12); color: var(--md-info); }
.notif-icon-warn { background: rgba(234,88,12,0.12); color: var(--md-warning); }
.notif-icon-default { background: var(--md-surface-3); color: var(--md-on-surface-var); }
.notif-body { flex: 1; min-width: 0; }
.notif-title { font-size: 13px; font-weight: 700; }
.notif-desc {
    font-size: 12px;
    color: var(--md-on-surface-var);
    margin: 4px 0 6px;
}
.notif-time {
    font-size: 11px;
    color: var(--md-on-surface-var);
}

/* ===== FORM (MATERIAL TEXT FIELD) ===== */
.sikua-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.form-section {
    background: var(--md-surface);
    border-radius: var(--radius-md);
    padding: 18px;
    border: 1px solid var(--md-outline-variant);
}
.form-section h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--md-primary);
}
.form-section h3 .material-symbols-rounded { font-size: 20px; }

.md-field {
    position: relative;
    margin-bottom: 14px;
}
.md-field input,
.md-field textarea,
.md-field select {
    width: 100%;
    padding: 16px 14px 8px;
    font-family: inherit;
    font-size: 14px;
    color: var(--md-on-surface);
    background: var(--md-surface-2);
    border: 1.5px solid var(--md-outline);
    border-radius: var(--radius-xs);
    outline: none;
    transition: all 0.2s;
}
.md-field textarea { resize: vertical; min-height: 60px; }
.md-field label {
    position: absolute;
    left: 14px;
    top: 16px;
    color: var(--md-on-surface-var);
    font-size: 14px;
    pointer-events: none;
    transition: all 0.2s;
    background: var(--md-surface);
    padding: 0 4px;
}
.md-field input:focus,
.md-field textarea:focus,
.md-field select:focus {
    border-color: var(--md-primary);
    border-width: 2px;
}
.md-field input:not(:placeholder-shown) + label,
.md-field textarea:not(:placeholder-shown) + label,
.md-field select + label,
.md-field input:focus + label,
.md-field textarea:focus + label {
    top: -8px;
    font-size: 11px;
    color: var(--md-primary);
    font-weight: 600;
}

/* ===== UPLOAD ===== */
.upload-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.upload-tile {
    background: var(--md-surface-2);
    border: 1.5px dashed var(--md-outline);
    border-radius: var(--radius-md);
    padding: 14px 8px;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}
.upload-tile:active { transform: scale(0.96); }
.upload-tile .material-symbols-rounded {
    font-size: 26px;
    color: var(--md-on-surface-var);
}
.upload-tile span:not(.material-symbols-rounded) {
    font-size: 12px;
    font-weight: 600;
}
.upload-tile small {
    font-size: 10px;
    color: var(--md-on-surface-var);
}
.upload-tile.uploaded {
    background: color-mix(in srgb, var(--md-primary) 6%, var(--md-surface));
    border: 1.5px solid var(--md-primary);
    border-style: solid;
}
.upload-tile.uploaded .material-symbols-rounded { color: var(--md-primary); }
.upload-tile.uploaded small { color: var(--md-primary); font-weight: 700; }

.upload-zone {
    background: var(--md-surface-2);
    border: 1.5px dashed var(--md-outline);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    cursor: pointer;
}
.upload-zone .material-symbols-rounded {
    font-size: 36px;
    color: var(--md-on-surface-var);
    margin-bottom: 8px;
}
.upload-zone p { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.upload-zone small { font-size: 11px; color: var(--md-on-surface-var); }

/* ===== STEPPER ===== */
.stepper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 12px;
    position: relative;
    padding: 0 20px;
}
.stepper::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: var(--md-outline-variant);
    z-index: 0;
}
.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    z-index: 1;
}
.step-circle {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--md-surface-3);
    color: var(--md-on-surface-var);
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 700;
    border: 2px solid var(--md-outline-variant);
}
.step span:not(.step-circle) {
    font-size: 10px;
    font-weight: 600;
    color: var(--md-on-surface-var);
    text-align: center;
}
.step.done .step-circle { background: var(--md-primary); color: white; border-color: var(--md-primary); }
.step.done span:not(.step-circle) { color: var(--md-primary); }
.step.active .step-circle {
    background: var(--md-accent);
    color: white;
    border-color: var(--md-accent);
    transform: scale(1.1);
}
.step.active span:not(.step-circle) { color: var(--md-accent); font-weight: 700; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius-full);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
    background: var(--md-primary);
    color: white;
    box-shadow: var(--elev-1);
}
.btn-primary:hover { background: var(--md-primary-dark); }
.btn-outlined {
    background: transparent;
    border: 1.5px solid var(--md-outline);
    color: var(--md-primary);
}
.btn-text {
    background: transparent;
    color: var(--md-primary);
}
.btn-full { width: 100%; }
.btn-lg { padding: 14px 24px; font-size: 15px; }
.icon-btn {
    background: none;
    border: none;
    color: var(--md-on-surface-var);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    display: grid;
    place-items: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}
.icon-btn:hover, .icon-btn:active { background: var(--md-surface-3); }

/* ===== STATUS LIST ===== */
.status-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.status-item {
    background: var(--md-surface);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--md-outline-variant);
}
.status-left { flex: 1; min-width: 0; }
.status-no {
    font-size: 11px;
    font-weight: 700;
    color: var(--md-primary);
    margin-bottom: 2px;
}
.status-name { font-size: 14px; font-weight: 600; }
.status-meta {
    font-size: 11px;
    color: var(--md-on-surface-var);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.status-meta .material-symbols-rounded { font-size: 13px !important; }

/* ===== CHIPS ===== */
.chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.chip-success { background: rgba(22,163,74,0.14); color: var(--md-success); }
.chip-warning { background: rgba(234,88,12,0.14); color: var(--md-warning); }
.chip-error { background: rgba(220,38,38,0.14); color: var(--md-error); }
.chip-info { background: rgba(37,99,235,0.14); color: var(--md-info); }

.chip-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0;
    scrollbar-width: none;
}
.chip-row::-webkit-scrollbar { display: none; }
.chip-filter {
    background: var(--md-surface);
    border: 1px solid var(--md-outline);
    color: var(--md-on-surface);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}
.chip-filter.active {
    background: var(--md-primary);
    color: white;
    border-color: var(--md-primary);
}

/* ===== BINWIN HERO ===== */
.binwin-hero {
    background: linear-gradient(135deg, var(--md-primary), var(--md-primary-dark));
    color: white;
    border-radius: var(--radius-md);
    padding: 20px;
    margin: -16px;
    margin-bottom: 4px;
}
.binwin-badge {
    display: inline-block;
    background: var(--md-accent);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 8px;
}
.binwin-hero h2 { font-size: 22px; font-weight: 800; margin-bottom: 12px; }
.binwin-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}
.binwin-meta div {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    opacity: 0.95;
}
.binwin-meta .material-symbols-rounded { font-size: 16px !important; }
.binwin-progress { margin-bottom: 14px; }
.progress-bar {
    height: 8px;
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 6px;
}
.progress-fill {
    height: 100%;
    background: var(--md-accent);
    border-radius: var(--radius-full);
}
.binwin-progress small {
    font-size: 11px;
    opacity: 0.9;
}
.binwin-hero .btn-primary {
    background: white;
    color: var(--md-primary);
}

/* ===== QR ===== */
.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: var(--md-surface-2);
    border-radius: var(--radius-md);
}
.qr-container > div { background: white; padding: 12px; border-radius: var(--radius-sm); }
.qr-container small { font-size: 11px; color: var(--md-on-surface-var); font-weight: 600; }

/* ===== PARTICIPANT LIST ===== */
.participant-list, .penghulu-list, .activity-list, .wakaf-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.participant-item, .penghulu-card, .wakaf-card, .activity-card {
    background: var(--md-surface);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--md-outline-variant);
}
.participant-avatar, .penghulu-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--md-primary), var(--md-primary-light));
    color: white;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}
.penghulu-avatar { background: linear-gradient(135deg, var(--md-accent), #b08a35); }
.participant-info, .penghulu-card > div:not(.icon-btn), .wakaf-info, .activity-info {
    flex: 1;
    min-width: 0;
}
.participant-info h4, .penghulu-card h4, .wakaf-info h4, .activity-info h4 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 2px;
}
.participant-info p, .penghulu-card p, .wakaf-info p, .activity-info p {
    font-size: 11px;
    color: var(--md-on-surface-var);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}
.participant-info p .material-symbols-rounded,
.penghulu-card p .material-symbols-rounded,
.wakaf-info p .material-symbols-rounded,
.activity-info p .material-symbols-rounded {
    font-size: 13px !important;
}
.wakaf-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(15,110,78,0.12);
    color: var(--md-primary);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.activity-date {
    width: 50px;
    text-align: center;
    background: rgba(99,102,241,0.12);
    color: #4338ca;
    border-radius: var(--radius-sm);
    padding: 6px 4px;
    flex-shrink: 0;
}
.activity-date .day { display: block; font-size: 18px; font-weight: 800; }
.activity-date .month { display: block; font-size: 10px; font-weight: 600; text-transform: uppercase; }

/* ===== CALENDAR ===== */
.calendar-card {
    padding: 16px;
}
.calendar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.calendar-head h3 { font-size: 15px; font-weight: 700; }
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.cal-day-label {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--md-on-surface-var);
    padding: 6px 0;
}
.cal-day {
    text-align: center;
    padding: 8px 0;
    font-size: 13px;
    border-radius: var(--radius-full);
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
}
.cal-day:hover { background: var(--md-surface-3); }
.cal-day.today {
    background: var(--md-primary);
    color: white;
    font-weight: 700;
}
.cal-day.has-event::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--md-accent);
}
.cal-day.today.has-event::after { background: var(--md-accent); }
.event-dot { display: none; }

/* ===== SERVICE TILE ===== */
.service-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.service-tile {
    background: var(--md-surface);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--md-outline-variant);
    cursor: pointer;
    transition: transform 0.2s;
}
.service-tile:active { transform: scale(0.98); }
.service-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.service-tile > div:nth-child(2) { flex: 1; min-width: 0; }
.service-tile h4 { font-size: 14px; font-weight: 700; }
.service-tile p { font-size: 12px; color: var(--md-on-surface-var); }

/* ===== TABS ===== */
.md-tabs {
    display: flex;
    gap: 4px;
    background: var(--md-surface);
    padding: 4px;
    border-radius: var(--radius-full);
    border: 1px solid var(--md-outline-variant);
}
.md-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 10px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    color: var(--md-on-surface-var);
    cursor: pointer;
    transition: all 0.2s;
}
.md-tab.active {
    background: var(--md-primary);
    color: white;
}

/* ===== SEARCH ===== */
.md-search {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--md-surface);
    border-radius: var(--radius-full);
    padding: 12px 16px;
    border: 1px solid var(--md-outline-variant);
}
.md-search input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-size: 14px;
    color: var(--md-on-surface);
    font-family: inherit;
}
.md-search > .material-symbols-rounded {
    color: var(--md-on-surface-var);
    font-size: 22px;
}

/* ===== CATEGORY ===== */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.cat-tile {
    background: var(--md-surface);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: 1px solid var(--md-outline-variant);
    cursor: pointer;
    transition: transform 0.2s;
    position: relative;
    overflow: hidden;
}
.cat-tile:active { transform: scale(0.98); }
.cat-tile::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.08;
}
.cat-tile .material-symbols-rounded {
    font-size: 32px;
    margin-bottom: 8px;
}
.cat-tile h4 { font-size: 14px; font-weight: 700; }
.cat-tile small { font-size: 11px; color: var(--md-on-surface-var); }
.cat-pink { color: #ec4899; }
.cat-green { color: var(--md-primary); }
.cat-blue { color: var(--md-info); }
.cat-purple { color: #8b5cf6; }

/* ===== FILE LIST ===== */
.file-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.file-item {
    background: var(--md-surface);
    border-radius: var(--radius-md);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--md-outline-variant);
}
.file-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.file-icon .material-symbols-rounded { font-size: 22px; color: white; }
.file-pdf { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.file-doc { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.file-xls { background: linear-gradient(135deg, #16a34a, #15803d); }
.file-img { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.file-info { flex: 1; min-width: 0; }
.file-info h4 {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.file-info p {
    font-size: 11px;
    color: var(--md-on-surface-var);
    margin-top: 2px;
}

/* ===== TIMELINE ===== */
.aduan-timeline {
    background: var(--md-surface);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--md-outline-variant);
}
.timeline-item {
    display: flex;
    gap: 12px;
    position: relative;
    padding-bottom: 16px;
}
.timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 18px;
    bottom: 0;
    width: 2px;
    background: var(--md-outline-variant);
}
.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background: var(--md-outline);
    margin-top: 4px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.timeline-item.done .timeline-dot { background: var(--md-success); }
.timeline-item.active .timeline-dot {
    background: var(--md-warning);
    box-shadow: 0 0 0 4px rgba(234,88,12,0.2);
}
.timeline-item > div:last-child { flex: 1; }
.timeline-item strong { font-size: 12px; color: var(--md-primary); }
.timeline-item p { font-size: 13px; font-weight: 600; margin: 4px 0; }
.timeline-item small { font-size: 11px; color: var(--md-on-surface-var); }

/* ===== FEATURED ===== */
.featured-story {
    background: var(--md-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--md-outline-variant);
}
.featured-img {
    height: 180px;
    background: linear-gradient(135deg, var(--md-primary), #15a172);
    position: relative;
}
.featured-story::after {
    content: '';
}
.featured-tag {
    display: inline-block;
    background: var(--md-accent);
    color: white;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 700;
    border-radius: var(--radius-full);
    margin: 12px 16px 4px;
}
.featured-story h2 {
    font-size: 17px;
    font-weight: 800;
    padding: 0 16px 8px;
    line-height: 1.3;
}
.featured-story > p {
    font-size: 13px;
    color: var(--md-on-surface-var);
    padding: 0 16px 12px;
    line-height: 1.6;
}
.featured-story small {
    font-size: 11px;
    color: var(--md-on-surface-var);
    padding: 0 16px 16px;
    display: flex;
    gap: 12px;
    align-items: center;
}
.featured-story small .material-symbols-rounded { font-size: 14px !important; }

.news-vertical {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.news-tile {
    background: var(--md-surface);
    border-radius: var(--radius-md);
    display: flex;
    gap: 12px;
    border: 1px solid var(--md-outline-variant);
    overflow: hidden;
}
.news-tile-img {
    width: 88px;
    height: 88px;
    flex-shrink: 0;
    background: var(--md-primary);
}
.news-tile > div:last-child { padding: 10px 12px 10px 0; flex: 1; min-width: 0; }
.news-tile h4 { font-size: 13px; font-weight: 700; line-height: 1.3; }
.news-tile p { font-size: 11px; color: var(--md-on-surface-var); margin: 4px 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-tile small { font-size: 10px; color: var(--md-on-surface-var); }

/* ===== GALLERY ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}
.gallery-tile {
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--md-primary), var(--md-primary-light));
    border-radius: var(--radius-sm);
    position: relative;
    display: grid;
    place-items: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
}
.gal-1 { background: linear-gradient(135deg, #ec4899, #be185d); }
.gal-2 { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.gal-3 { background: linear-gradient(135deg, #f59e0b, #c2410c); }
.gal-4 { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.gal-5 { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.gal-6 { background: rgba(0,0,0,0.7); backdrop-filter: blur(20px); }

/* ===== EXPORT ===== */
.export-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.btn-export {
    background: var(--md-surface-2);
    border: 1px solid var(--md-outline-variant);
    border-radius: var(--radius-md);
    padding: 14px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}
.btn-export:active { transform: scale(0.96); }
.btn-export .material-symbols-rounded {
    font-size: 24px;
    color: var(--md-primary);
}
.btn-export span:not(.material-symbols-rounded) {
    font-size: 11px;
    font-weight: 600;
}

/* ===== PROFILE ===== */
.profile-header {
    text-align: center;
    padding: 24px 20px;
    background: linear-gradient(135deg, var(--md-primary), var(--md-primary-dark));
    color: white;
    border-radius: var(--radius-lg);
    margin: -16px -16px 16px;
}
.profile-avatar-lg {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.2);
    margin: 0 auto 12px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.3);
}
.profile-avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar-lg .material-symbols-rounded { font-size: 56px; }
.profile-header h2 { font-size: 20px; font-weight: 800; }
.profile-header p {
    font-size: 13px;
    opacity: 0.9;
    margin: 4px 0 12px;
}
.profile-header .btn {
    background: white;
    color: var(--md-primary);
}
.profile-header .btn-outlined {
    background: transparent;
    color: white;
    border-color: rgba(255,255,255,0.4);
}

.settings-list {
    background: var(--md-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--md-outline-variant);
    overflow: hidden;
}
.settings-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    text-decoration: none;
    color: var(--md-on-surface);
    border-bottom: 1px solid var(--md-outline-variant);
    transition: background 0.2s;
}
.settings-item:active { background: var(--md-surface-3); }
.settings-item:last-child { border-bottom: none; }
.settings-item > .material-symbols-rounded:first-child {
    color: var(--md-on-surface-var);
    font-size: 22px;
}
.settings-item > div { flex: 1; min-width: 0; }
.settings-item strong { font-size: 14px; font-weight: 600; display: block; }
.settings-item small { font-size: 11px; color: var(--md-on-surface-var); }

/* ===== SWITCH ===== */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 28px;
    flex-shrink: 0;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute;
    inset: 0;
    background: var(--md-outline);
    transition: 0.3s;
    border-radius: var(--radius-full);
}
.slider::before {
    content: '';
    position: absolute;
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: var(--elev-1);
}
.switch input:checked + .slider { background: var(--md-primary); }
.switch input:checked + .slider::before { transform: translateX(20px); }

.profile-footer {
    text-align: center;
    padding: 24px 20px;
    color: var(--md-on-surface-var);
}
.profile-footer p { font-size: 13px; font-weight: 700; }
.profile-footer p:nth-child(2) { color: var(--md-primary); margin: 4px 0 12px; }
.profile-footer small { font-size: 11px; }

/* ===== TOAST ===== */
.sikua-toast-container {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    max-width: 90%;
}
.sikua-toast {
    background: var(--md-surface);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    box-shadow: var(--elev-3);
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
    animation: toastIn 0.3s ease;
    font-size: 13px;
    border-left: 4px solid var(--md-primary);
    max-width: 340px;
}
@keyframes toastIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.sikua-toast.success { border-left-color: var(--md-success); }
.sikua-toast.error { border-left-color: var(--md-error); }
.sikua-toast.warn { border-left-color: var(--md-warning); }
.sikua-toast.info { border-left-color: var(--md-info); }
.sikua-toast .material-symbols-rounded {
    font-size: 20px;
}
.sikua-toast.success .material-symbols-rounded { color: var(--md-success); }
.sikua-toast.error .material-symbols-rounded { color: var(--md-error); }
.sikua-toast.warn .material-symbols-rounded { color: var(--md-warning); }
.sikua-toast.info .material-symbols-rounded { color: var(--md-info); }

/* ===== MODAL ===== */
.sikua-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 300;
    display: none;
    place-items: center;
    padding: 16px;
    backdrop-filter: blur(4px);
}
.sikua-modal.show { display: grid; }
.modal-card {
    background: var(--md-surface);
    border-radius: var(--radius-lg);
    padding: 24px;
    max-width: 360px;
    width: 100%;
    text-align: center;
    box-shadow: var(--elev-4);
    animation: modalIn 0.3s ease;
}
@keyframes modalIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.modal-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    background: rgba(22,163,74,0.14);
    color: var(--md-success);
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
}
.modal-icon .material-symbols-rounded { font-size: 36px; }
.modal-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.modal-card p { font-size: 13px; color: var(--md-on-surface-var); margin-bottom: 20px; }
.modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* ===== MOBILE OPTIMIZATIONS ===== */
@media (max-width: 380px) {
    .quick-actions { grid-template-columns: repeat(4, 1fr); gap: 8px; }
    .qa-icon { width: 48px; height: 48px; }
    .qa-icon .material-symbols-rounded { font-size: 24px; }
    .stat-mini { padding: 12px; }
    .stat-mini-num { font-size: 18px; }
}

/* ===== EMBED MODE ===== */
.sikua-embed {
    max-width: 480px;
    margin: 0 auto;
    background: var(--md-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--md-outline-variant);
    box-shadow: var(--elev-1);
}
