:root {
      --primary-dark: #1b242c;
      --sidebar-bg: #1c252d;
      --sidebar-hover: #26323c;
      --sidebar-active: #7892a2;
      --header-bg: #889fae;
      --header-dark: #6e8696;
      --body-bg: #f1f4f7;
      --card-bg: #ffffff;
      --text-main: #1e2832;
      --text-muted: #64748b;
      --accent-blue: #2563eb;
      --accent-teal: #0d9488;
      --accent-orange: #ea580c;
      --accent-gold: #eab308;
      --accent-red: #ef4444;
      --border-color: #e2e8f0;
      --jb-orange: #ff5722;
      --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
      --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
      --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.03);
      --radius: 14px;
      --font-family: 'Mukta', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }

    body {
      font-family: var(--font-family);
      background-color: var(--body-bg);
      color: var(--text-main);
      line-height: 1.5;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      overflow-x: hidden;
    }

    /* Top Announcement Bar */
    .top-bar {
      background: #111827;
      color: #cbd5e1;
      font-size: 0.82rem;
      padding: 6px 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 1px solid rgba(255,255,255,0.08);
      position: sticky;
      top: 0;
      z-index: 101;
    }
    .top-bar-left { display: flex; gap: 20px; align-items: center; }
    .top-bar-badge {
      background: #059669;
      color: white;
      padding: 2px 8px;
      border-radius: 4px;
      font-weight: 600;
      font-size: 0.75rem;
    }
    .top-bar-right { display: flex; gap: 15px; align-items: center; }
    .top-bar-link { color: #93c5fd; text-decoration: none; transition: color 0.2s; }
    .top-bar-link:hover { color: white; }

    /* Layout Wrapper */
    .app-container { display: flex; flex: 1; min-height: calc(100vh - 34px); }

    /* Sidebar Navigation */
    .sidebar {
      width: 250px;
      background-color: var(--sidebar-bg);
      color: #e2e8f0;
      display: flex;
      flex-direction: column;
      flex-shrink: 0;
      transition: all 0.3s ease;
      position: sticky;
      top: 34px;
      height: calc(100vh - 34px);
      overflow-y: auto;
      z-index: 100;
    }
    .sidebar-brand {
      padding: 18px 16px;
      display: flex;
      align-items: center;
      gap: 12px;
      border-bottom: 1px solid rgba(255,255,255,0.08);
      background: #151c22;
      cursor: pointer;
    }
    .sidebar-brand img {
      width: 46px;
      height: 46px;
      border-radius: 50%;
      background: white;
      padding: 2px;
      box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }
    .sidebar-brand-text { display: flex; flex-direction: column; }
    .sidebar-brand-title { font-size: 1.05rem; font-weight: 700; line-height: 1.2; color: #f8fafc; }
    .sidebar-brand-sub { font-size: 0.72rem; color: #94a3b8; }

    .sidebar-menu { list-style: none; padding: 16px 0; flex: 1; }
    .sidebar-item { margin-bottom: 4px; }
    .sidebar-link {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 11px 20px;
      color: #94a3b8;
      text-decoration: none;
      font-size: 0.93rem;
      font-weight: 500;
      transition: all 0.2s ease;
      cursor: pointer;
    }
    .sidebar-link i { width: 20px; text-align: center; font-size: 1.05rem; }
    .sidebar-link:hover { color: #f8fafc; background-color: var(--sidebar-hover); }
    .sidebar-link.active {
      background-color: var(--sidebar-active);
      color: #0f172a;
      font-weight: 700;
      border-radius: 0 20px 20px 0;
      margin-right: 12px;
    }
    .sidebar-badge {
      margin-left: auto;
      background: #2563eb;
      color: white;
      font-size: 0.7rem;
      padding: 1px 7px;
      border-radius: 10px;
      font-weight: 600;
    }
    .sidebar-footer {
      padding: 16px;
      border-top: 1px solid rgba(255,255,255,0.08);
      background: #151c22;
      font-size: 0.8rem;
    }
    .sidebar-reg { color: #94a3b8; margin-bottom: 8px; line-height: 1.3; }
    .sidebar-reg strong { color: #cbd5e1; }

    /* Main Section */
    .main-wrapper {
      flex: 1;
      display: flex;
      flex-direction: column;
      overflow-y: auto;
      background: var(--body-bg);
    }

    /* Top App Header */
    .app-header {
      background-color: var(--header-bg);
      color: #ffffff;
      padding: 14px 28px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      box-shadow: var(--shadow-sm);
    }
    .header-left { display: flex; align-items: center; gap: 16px; }
    .header-logo {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: white;
      padding: 2px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .header-logo img { width: 100%; height: 100%; object-fit: contain; }
    .header-school-name { display: flex; flex-direction: column; }
    .header-school-name h1 {
      font-size: 1.3rem;
      font-weight: 700;
      letter-spacing: -0.01em;
      line-height: 1.2;
      color: #ffffff;
      text-shadow: 0 1px 2px rgba(0,0,0,0.15);
    }
    .header-school-name p { font-size: 0.85rem; color: #e2e8f0; font-weight: 400; }

    .header-right { display: flex; align-items: center; gap: 18px; }
    .admission-badge {
      background: #fbbf24;
      color: #78350f;
      padding: 6px 14px;
      border-radius: 30px;
      font-weight: 700;
      font-size: 0.85rem;
      box-shadow: 0 2px 6px rgba(0,0,0,0.1);
      display: flex;
      align-items: center;
      gap: 8px;
      cursor: pointer;
      transition: transform 0.2s;
    }
    .admission-badge:hover { transform: scale(1.03); }

    .btn-admin-pill {
      background: rgba(15, 23, 42, 0.7);
      color: #e2e8f0;
      border: 1px solid rgba(255, 255, 255, 0.2);
      padding: 6px 12px;
      border-radius: 20px;
      font-size: 0.8rem;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 6px;
      cursor: pointer;
      transition: all 0.2s;
      text-decoration: none;
    }
    .btn-admin-pill:hover { background: #0f172a; color: white; }

    .header-profile {
      display: flex;
      align-items: center;
      gap: 12px;
      border-left: 1px solid rgba(255,255,255,0.25);
      padding-left: 18px;
    }
    .header-profile-text { text-align: right; }
    .header-profile-name { font-weight: 600; font-size: 0.95rem; line-height: 1.2; }
    .header-profile-role { font-size: 0.78rem; color: #e2e8f0; }
    .header-avatar {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: #1e293b;
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.1rem;
      border: 2px solid white;
    }

    .mobile-toggle { display: none; background: none; border: none; color: white; font-size: 1.4rem; cursor: pointer; }

    /* View Sections */
    .view-section {
      display: none;
      padding: 24px 28px;
      flex-direction: column;
      gap: 24px;
      flex: 1;
    }
    .view-section.active { display: flex; }

    /* Common Card & Banner */
    .banner-hero-card {
      background: white;
      border-radius: var(--radius);
      box-shadow: var(--shadow-sm);
      overflow: hidden;
      display: grid;
      grid-template-columns: 1fr 1.2fr;
      border: 1px solid var(--border-color);
    }
    .banner-hero-image { position: relative; background: #0f172a; overflow: hidden; }
    .banner-hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .banner-hero-badge {
      position: absolute;
      top: 14px;
      left: 14px;
      background: rgba(15, 23, 42, 0.85);
      backdrop-filter: blur(4px);
      color: #fbbf24;
      padding: 4px 10px;
      border-radius: 6px;
      font-size: 0.75rem;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .banner-hero-info {
      padding: 24px 28px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    }
    .sanstha-tag { color: #2563eb; font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
    .banner-hero-title { font-size: 1.55rem; font-weight: 800; color: #0f172a; line-height: 1.3; margin-bottom: 10px; }
    .banner-hero-desc { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 18px; line-height: 1.5; }
    .banner-highlights { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 18px; }
    .highlight-pill { display: flex; align-items: center; gap: 8px; background: #f1f5f9; padding: 8px 12px; border-radius: 8px; font-size: 0.85rem; font-weight: 500; color: #334155; }
    .highlight-pill i { color: #0d9488; }
    .banner-contact-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding-top: 14px; border-top: 1px solid var(--border-color); font-size: 0.88rem; }
    .contact-chip { display: inline-flex; align-items: center; gap: 6px; color: #0f172a; font-weight: 600; text-decoration: none; background: #e2e8f0; padding: 5px 12px; border-radius: 20px; transition: background 0.2s; }
    .contact-chip:hover { background: #cbd5e1; }

    .portal-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
    .portal-card {
      background: var(--card-bg);
      border-radius: var(--radius);
      box-shadow: var(--shadow-sm);
      border: 1px solid var(--border-color);
      padding: 20px;
      display: flex;
      flex-direction: column;
      transition: transform 0.2s, box-shadow 0.2s;
    }
    .portal-card:hover { box-shadow: var(--shadow-md); }
    .card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
    .card-title { font-size: 1.05rem; font-weight: 700; color: #1e293b; display: flex; align-items: center; gap: 8px; }
    .card-link { font-size: 0.82rem; color: #64748b; text-decoration: none; cursor: pointer; }
    .card-link:hover { color: var(--accent-blue); text-decoration: underline; }

    .news-card { grid-column: span 4; }
    .news-list { list-style: none; display: flex; flex-direction: column; gap: 14px; flex: 1; }
    .news-item { display: flex; gap: 14px; align-items: flex-start; font-size: 0.9rem; border-bottom: 1px dashed #f1f5f9; padding-bottom: 10px; }
    .news-item:last-child { border-bottom: none; padding-bottom: 0; }
    .news-date { font-weight: 700; color: #0f172a; min-width: 65px; font-size: 0.85rem; background: #f1f5f9; padding: 2px 6px; border-radius: 4px; text-align: center; }
    .news-text { color: #334155; line-height: 1.35; }

    .absence-card { grid-column: span 4; }
    .tab-pills { display: flex; gap: 6px; margin-bottom: 16px; border-bottom: 1px solid #f1f5f9; padding-bottom: 8px; }
    .tab-pill { background: transparent; border: none; padding: 4px 10px; font-size: 0.82rem; color: var(--text-muted); cursor: pointer; border-radius: 6px; font-weight: 500; }
    .tab-pill.active { background: #e2e8f0; color: #0f172a; font-weight: 700; }
    .attendance-tracker { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; padding: 10px 0; }
    .attendance-status-box { background: #dbeafe; border: 1px solid #bfdbfe; color: #1e40af; padding: 6px 14px; border-radius: 8px; font-size: 0.82rem; font-weight: 600; margin-bottom: 16px; display: flex; align-items: center; gap: 6px; }
    .attendance-dots { display: flex; justify-content: space-between; width: 100%; padding: 0 10px; }
    .day-column { display: flex; flex-direction: column; align-items: center; gap: 8px; }
    .day-label { font-size: 0.78rem; color: var(--text-muted); }
    .day-dot { width: 16px; height: 16px; border-radius: 50%; background: #a7f3d0; border: 2px solid #10b981; }
    .day-dot.special { background: #0f172a; border-color: #0f172a; }
    .day-dot.event { background: #1e293b; border-color: #3b82f6; }

    .calendar-card { grid-column: span 4; }
    .calendar-widget { display: flex; gap: 16px; align-items: center; flex: 1; }
    .calendar-big-date { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 80px; padding-right: 12px; border-right: 1px solid var(--border-color); }
    .big-day-number { font-size: 2.8rem; font-weight: 800; color: #0f172a; line-height: 1; }
    .big-month { font-size: 0.95rem; color: #64748b; font-weight: 600; }
    .big-day-name { font-size: 0.9rem; color: #0f172a; font-weight: 700; }
    .mini-cal-table { width: 100%; font-size: 0.76rem; text-align: center; border-collapse: collapse; }
    .mini-cal-table th { color: #94a3b8; padding-bottom: 6px; font-weight: 600; }
    .mini-cal-table td { padding: 3px; color: #334155; }
    .mini-cal-table td.today { background: #0f172a; color: white; border-radius: 50%; font-weight: 700; }
    .mini-cal-table td.has-event { color: #2563eb; font-weight: 700; }

    .course-card { grid-column: span 6; }
    .course-list { display: flex; flex-direction: column; gap: 10px; }
    .course-item { background: #f8fafc; padding: 12px 16px; border-radius: 8px; display: flex; justify-content: space-between; align-items: center; border-left: 4px solid #94a3b8; transition: all 0.2s; }
    .course-item:nth-child(even) { background: #eef2f6; border-left-color: #3b82f6; }
    .course-item:hover { background: #e2e8f0; }
    .course-info h4 { font-size: 0.95rem; font-weight: 700; color: #0f172a; margin-bottom: 2px; }
    .course-info p { font-size: 0.8rem; color: #64748b; }
    .course-btn { font-size: 0.82rem; color: #2563eb; background: none; border: none; cursor: pointer; font-weight: 600; text-decoration: underline; }

    .side-stack { grid-column: span 6; display: flex; flex-direction: column; gap: 20px; }
    .appointment-card { flex: 1; }
    .appointment-content { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 14px 0; text-align: center; }
    .appointment-status { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 14px; }
    .btn-appointment { background: #1e293b; color: white; border: none; padding: 10px 24px; border-radius: 30px; font-size: 0.92rem; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background 0.2s, transform 0.1s; }
    .btn-appointment:hover { background: #0f172a; transform: translateY(-1px); }

    .reports-card { flex: 1; }
    .report-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
    .report-item { display: flex; justify-content: space-between; align-items: center; font-size: 0.88rem; padding-bottom: 8px; border-bottom: 1px solid #f1f5f9; }
    .report-item:last-child { border-bottom: none; padding-bottom: 0; }
    .report-name { color: #334155; display: flex; align-items: center; gap: 8px; }
    .report-name i { color: #ef4444; }
    .report-dl { color: #2563eb; text-decoration: none; font-weight: 600; font-size: 0.82rem; cursor: pointer; }
    .report-dl:hover { text-decoration: underline; }

    .progress-card { grid-column: span 12; }
    .progress-subjects { display: flex; gap: 16px; margin-bottom: 18px; font-size: 0.85rem; color: #64748b; border-bottom: 1px solid #f1f5f9; padding-bottom: 10px; overflow-x: auto; }
    .subj-tab { cursor: pointer; font-weight: 600; transition: color 0.2s; white-space: nowrap; }
    .subj-tab.active { color: #0f172a; border-bottom: 2px solid #0f172a; padding-bottom: 8px; }
    .progress-chart-container { display: flex; align-items: flex-end; height: 180px; gap: 30px; padding: 20px 20px 0 20px; border-bottom: 1px solid #e2e8f0; border-left: 1px solid #e2e8f0; margin-bottom: 12px; position: relative; }
    .chart-bar-group { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; gap: 6px; }
    .bar-line { width: 14px; background: #7dd3fc; border-radius: 4px 4px 0 0; transition: height 0.6s ease; position: relative; }
    .bar-line:hover::after { content: attr(data-val); position: absolute; top: -24px; left: 50%; transform: translateX(-50%); background: #0f172a; color: white; font-size: 0.7rem; padding: 2px 6px; border-radius: 4px; }
    .chart-label { font-size: 0.75rem; color: #64748b; text-align: center; }

    /* ========================================================= */
    /* READ-ONLY PUBLIC GALLERY STYLES                           */
    /* ========================================================= */
    .admin-notice-banner {
      background: #eff6ff;
      border: 1px solid #bfdbfe;
      border-radius: 10px;
      padding: 12px 18px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      font-size: 0.88rem;
      color: #1e40af;
    }
    .admin-notice-text {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .admin-notice-btn {
      background: #1e40af;
      color: white;
      padding: 5px 12px;
      border-radius: 6px;
      font-size: 0.8rem;
      font-weight: 600;
      text-decoration: none;
      white-space: nowrap;
      cursor: pointer;
    }
    .admin-notice-btn:hover { background: #1e3a8a; }

    .gallery-header-bar {
      background: white;
      border-radius: var(--radius);
      padding: 22px 28px;
      border: 1px solid var(--border-color);
      box-shadow: var(--shadow-sm);
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 16px;
    }
    .gallery-title-group h2 {
      font-size: 1.45rem;
      font-weight: 800;
      color: #0f172a;
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .gallery-title-group p { color: var(--text-muted); font-size: 0.9rem; }

    .gallery-filters { display: flex; gap: 10px; flex-wrap: wrap; }
    .filter-btn {
      background: white;
      border: 1px solid var(--border-color);
      padding: 8px 18px;
      border-radius: 30px;
      font-size: 0.88rem;
      font-weight: 600;
      color: #475569;
      cursor: pointer;
      transition: all 0.2s;
    }
    .filter-btn:hover, .filter-btn.active {
      background: #0f172a;
      color: white;
      border-color: #0f172a;
    }

    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
      gap: 22px;
    }
    .gallery-card {
      background: white;
      border-radius: var(--radius);
      border: 1px solid var(--border-color);
      overflow: hidden;
      box-shadow: var(--shadow-sm);
      display: flex;
      flex-direction: column;
      transition: transform 0.25s, box-shadow 0.25s;
      cursor: pointer;
    }
    .gallery-card:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow-md);
      border-color: #cbd5e1;
    }
    .gallery-card-img-wrap {
      position: relative;
      height: 220px;
      background: #0f172a;
      overflow: hidden;
    }
    .gallery-card-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.35s ease;
    }
    .gallery-card:hover .gallery-card-img { transform: scale(1.05); }
    .gallery-badge {
      position: absolute;
      top: 12px;
      left: 12px;
      background: rgba(15, 23, 42, 0.85);
      backdrop-filter: blur(4px);
      color: #fbbf24;
      font-size: 0.75rem;
      padding: 4px 10px;
      border-radius: 6px;
      font-weight: 700;
    }
    .gallery-card-body {
      padding: 18px;
      display: flex;
      flex-direction: column;
      flex: 1;
    }
    .gallery-card-title {
      font-size: 1.05rem;
      font-weight: 700;
      color: #0f172a;
      margin-bottom: 8px;
      line-height: 1.35;
    }
    .gallery-card-desc {
      color: #475569;
      font-size: 0.88rem;
      line-height: 1.5;
      margin-bottom: 14px;
      flex: 1;
    }
    .gallery-card-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-top: 12px;
      border-top: 1px solid #f1f5f9;
      font-size: 0.82rem;
      color: #94a3b8;
    }
    .btn-view-photo {
      color: #2563eb;
      font-weight: 600;
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    /* Lightbox Modal */
    .lightbox-modal {
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0, 0, 0, 0.88);
      backdrop-filter: blur(6px);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 2000;
      padding: 24px;
    }
    .lightbox-modal.active { display: flex; }
    .lightbox-content {
      background: white;
      border-radius: var(--radius);
      max-width: 900px;
      width: 100%;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      max-height: 92vh;
      animation: modalFadeIn 0.25s ease;
    }
    .lightbox-img-area {
      background: #0b0f17;
      display: flex;
      align-items: center;
      justify-content: center;
      max-height: 62vh;
      overflow: hidden;
    }
    .lightbox-img-area img {
      max-width: 100%;
      max-height: 62vh;
      object-fit: contain;
    }
    .lightbox-details {
      padding: 20px 26px;
      background: white;
      overflow-y: auto;
    }

    /* ========================================================= */
    /* READ-ONLY PUBLIC SCHOOL BODIES & COMMITTEES STYLES        */
    /* ========================================================= */
    .bodies-header-bar {
      background: white;
      border-radius: var(--radius);
      padding: 22px 28px;
      border: 1px solid var(--border-color);
      box-shadow: var(--shadow-sm);
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 16px;
    }
    .bodies-tabs {
      display: flex;
      gap: 10px;
      border-bottom: 2px solid #e2e8f0;
      padding-bottom: 2px;
      overflow-x: auto;
    }
    .body-tab-btn {
      background: transparent;
      border: none;
      padding: 10px 18px;
      font-size: 0.95rem;
      font-weight: 600;
      color: #64748b;
      cursor: pointer;
      border-bottom: 3px solid transparent;
      margin-bottom: -2px;
      transition: all 0.2s;
      white-space: nowrap;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .body-tab-btn:hover { color: #0f172a; }
    .body-tab-btn.active {
      color: #2563eb;
      border-bottom-color: #2563eb;
      font-weight: 800;
    }

    .committee-banner {
      background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
      color: white;
      padding: 20px 24px;
      border-radius: var(--radius);
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 14px;
    }
    .committee-banner h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 4px; }
    .committee-banner p { color: #94a3b8; font-size: 0.88rem; }

    .committee-members-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
      gap: 20px;
    }
    .member-card {
      background: white;
      border-radius: var(--radius);
      border: 1px solid var(--border-color);
      padding: 22px;
      box-shadow: var(--shadow-sm);
      display: flex;
      flex-direction: column;
      transition: all 0.2s;
    }
    .member-card:hover { box-shadow: var(--shadow-md); border-color: #cbd5e1; }
    .member-header { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
    .member-avatar {
      width: 54px;
      height: 54px;
      border-radius: 50%;
      background: #e2e8f0;
      color: #1e293b;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.5rem;
      font-weight: 700;
      flex-shrink: 0;
      border: 2px solid #cbd5e1;
    }
    .member-title-info h4 { font-size: 1.1rem; font-weight: 700; color: #0f172a; line-height: 1.2; }
    .member-role-badge {
      display: inline-block;
      background: #e0f2fe;
      color: #0369a1;
      font-size: 0.78rem;
      padding: 3px 10px;
      border-radius: 4px;
      font-weight: 700;
      margin-top: 5px;
    }
    .member-body {
      font-size: 0.9rem;
      color: #475569;
      line-height: 1.55;
      margin-bottom: 16px;
      flex: 1;
    }
    .member-contact-item {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 0.85rem;
      color: #334155;
      font-weight: 600;
      margin-top: 6px;
    }
    .member-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-top: 12px;
      border-top: 1px solid #f1f5f9;
      font-size: 0.8rem;
      color: #94a3b8;
    }

    /* Footer & Common */
    .school-info-section {
      background: white;
      border-radius: var(--radius);
      padding: 28px;
      border: 1px solid var(--border-color);
      box-shadow: var(--shadow-sm);
    }
    .section-title { font-size: 1.25rem; font-weight: 800; color: #0f172a; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
    .info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
    .info-box { background: #f8fafc; padding: 18px; border-radius: 10px; border: 1px solid #e2e8f0; }
    .info-box h4 { color: #1e293b; font-size: 1.02rem; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
    .info-box p { color: #475569; font-size: 0.9rem; line-height: 1.5; }

    .app-footer {
      background: #0f172a;
      color: #cbd5e1;
      padding: 36px 28px 24px 28px;
      margin-top: auto;
      border-top: 1px solid #1e293b;
    }
    .footer-grid { display: grid; grid-template-columns: 2fr 1.5fr 1.5fr; gap: 30px; margin-bottom: 30px; }
    .footer-col h3 { color: #ffffff; font-size: 1.15rem; margin-bottom: 14px; font-weight: 700; }
    .footer-col p { font-size: 0.88rem; color: #94a3b8; line-height: 1.6; margin-bottom: 8px; }
    .footer-contact-list { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 0.88rem; }
    .footer-contact-list li { display: flex; align-items: center; gap: 10px; color: #cbd5e1; }
    .footer-contact-list i { color: #38bdf8; width: 16px; }

    .developer-credit-card {
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 12px;
      padding: 18px;
      display: flex;
      align-items: center;
      gap: 16px;
      transition: all 0.3s;
    }
    .developer-credit-card:hover { background: rgba(255, 255, 255, 0.08); border-color: #ff5722; }
    .jb-logo-wrapper {
      width: 56px;
      height: 56px;
      border-radius: 10px;
      background: white;
      padding: 4px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      box-shadow: 0 4px 10px rgba(255, 87, 34, 0.3);
    }
    .jb-logo-wrapper img { width: 100%; height: 100%; object-fit: contain; }
    .developer-info { display: flex; flex-direction: column; }
    .developer-lead { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.05em; color: #94a3b8; }
    .developer-brand { font-size: 1.1rem; font-weight: 800; color: #ffffff; line-height: 1.2; }
    .developer-brand span { color: #ff7043; }
    .developer-phone {
      font-size: 0.95rem;
      color: #f8fafc;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 6px;
      margin-top: 3px;
      text-decoration: none;
    }
    .developer-phone:hover { color: #ff7043; }

    .footer-bottom {
      padding-top: 20px;
      border-top: 1px solid rgba(255, 255, 255, 0.08);
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.82rem;
      color: #64748b;
    }

    /* Modals */
    .modal-backdrop {
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0, 0, 0, 0.65);
      backdrop-filter: blur(4px);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 1500;
      padding: 20px;
    }
    .modal-backdrop.active { display: flex; }
    .modal-box {
      background: white;
      border-radius: var(--radius);
      width: 100%;
      max-width: 540px;
      box-shadow: var(--shadow-lg);
      overflow: hidden;
      animation: modalFadeIn 0.25s ease;
      max-height: 90vh;
      display: flex;
      flex-direction: column;
    }
    @keyframes modalFadeIn {
      from { opacity: 0; transform: translateY(12px) scale(0.98); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }
    .modal-header {
      background: #1e293b;
      color: white;
      padding: 16px 22px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-shrink: 0;
    }
    .modal-header h3 { font-size: 1.15rem; font-weight: 700; }
    .modal-close { background: none; border: none; color: #94a3b8; font-size: 1.3rem; cursor: pointer; }
    .modal-close:hover { color: white; }
    .modal-body { padding: 22px; overflow-y: auto; }
    .modal-footer { padding: 14px 22px; background: #f8fafc; border-top: 1px solid #e2e8f0; display: flex; justify-content: flex-end; gap: 12px; flex-shrink: 0; }
    .btn-secondary { background: #e2e8f0; color: #334155; border: none; padding: 8px 16px; border-radius: 6px; cursor: pointer; font-weight: 600; }
    .btn-primary { background: #2563eb; color: white; border: none; padding: 8px 20px; border-radius: 6px; cursor: pointer; font-weight: 600; }

    .toast-msg {
      position: fixed;
      bottom: 24px;
      right: 24px;
      background: #10b981;
      color: white;
      padding: 12px 20px;
      border-radius: 8px;
      box-shadow: var(--shadow-lg);
      display: none;
      align-items: center;
      gap: 10px;
      font-weight: 600;
      z-index: 3000;
    }

    @media (max-width: 1024px) {
      .news-card, .absence-card, .calendar-card { grid-column: span 6; }
      .calendar-card { grid-column: span 12; }
      .banner-hero-card { grid-template-columns: 1fr; }
      .footer-grid { grid-template-columns: 1fr; }
    }
    @media (max-width: 768px) {
      .app-container { flex-direction: column; }
      .sidebar { width: 100%; height: auto; position: relative; display: none; top: 0; }
      .sidebar.open { display: flex; }
      .mobile-toggle { display: block; }
      .news-card, .absence-card, .calendar-card, .course-card, .side-stack { grid-column: span 12; }
      .app-header { padding: 12px 16px; }
      .header-school-name h1 { font-size: 1.1rem; }
      .header-profile-text { display: none; }
      .view-section { padding: 16px; }
    }