/* ============================================================
   شواهد المدرسة الرقمية — CSS الموحد v2.0
   ============================================================ */

/* ── المتغيرات ── */
:root {
    --teal:         #1A8C82;
    --teal-light:   #25B5A8;
    --teal-dark:    #0D5E57;
    --teal-faint:   #E8F5F4;
    --teal-faint2:  #D0EDEB;
    --gold:         #F5A623;
    --gold-light:   #FFC85A;
    --text-dark:    #1A2533;
    --text-mid:     #4A5568;
    --text-muted:   #8A96A3;
    --text-white:   #FFFFFF;
    --bg-page:      #F2F5F7;
    --bg-card:      #FFFFFF;
    --border:       #E2EAE9;
    --border-focus: rgba(26,140,130,.4);
    --sidebar-w:    260px;
    --topbar-h:     64px;
    --radius-sm:    8px;
    --radius-md:    12px;
    --radius-lg:    18px;
    --radius-xl:    24px;
    --shadow-sm:    0 1px 4px rgba(0,0,0,.06);
    --shadow-md:    0 4px 16px rgba(0,0,0,.09);
    --shadow-lg:    0 12px 40px rgba(0,0,0,.12);
    --transition:   .2s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-dark);
    background: var(--bg-page);
    direction: rtl;
    text-align: right;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   LAYOUT — SIDEBAR + MAIN
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.has-sidebar .main-wrapper {
    margin-right: var(--sidebar-w);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin var(--transition);
}
.page-content {
    padding: 1.75rem;
    flex: 1;
}

/* ── SIDEBAR ── */
.sidebar {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: var(--sidebar-w);
    background: white;
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 900;
    overflow-y: auto;
    transition: transform var(--transition);
}
.sidebar-header {
    padding: 1.25rem 1rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.sidebar-logo {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, var(--teal-dark), var(--teal-light));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 17px;
    flex-shrink: 0;
}
.sidebar-name { font-size: 14px; font-weight: 700; color: var(--teal-dark); line-height: 1.2; }
.sidebar-sub  { font-size: 11px; color: var(--text-muted); }
.sidebar-close-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    padding: 4px;
}

.sidebar-user {
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--teal-faint);
    border-bottom: 1px solid var(--teal-faint2);
}
.user-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal-dark), var(--teal-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 17px;
    flex-shrink: 0;
    overflow: hidden;
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-name { font-size: 13px; font-weight: 700; color: var(--teal-dark); line-height: 1.3; }
.user-role { font-size: 11px; color: var(--text-mid); }
.badge-admin {
    background: var(--gold);
    color: #6B3D00;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 999px;
}

.sidebar-nav {
    flex: 1;
    padding: .75rem .75rem 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-mid);
    transition: all var(--transition);
    position: relative;
}
.nav-item:hover  { background: var(--teal-faint); color: var(--teal); }
.nav-item.active { background: var(--teal-faint); color: var(--teal); font-weight: 700; }
.nav-item.active::before {
    content: '';
    position: absolute;
    right: 0; top: 50%;
    transform: translateY(-50%);
    width: 3px; height: 60%;
    background: var(--teal);
    border-radius: 0 3px 3px 0;
}
.nav-icon { width: 18px; text-align: center; font-size: 14px; flex-shrink: 0; }
.nav-label { flex: 1; }
.nav-badge {
    background: #E53E3E;
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-divider {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 14px 12px 6px;
}
.nav-item-danger { color: #E53E3E; }
.nav-item-danger:hover { background: #FFF5F5; color: #C53030; }

.sidebar-footer {
    padding: .75rem;
    border-top: 1px solid var(--border);
}
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 850;
}

/* ── TOPBAR ── */
.topbar {
    height: var(--topbar-h);
    background: white;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 800;
    box-shadow: var(--shadow-sm);
}
.topbar-start { display: flex; align-items: center; gap: 12px; }
.menu-toggle {
    background: none;
    border: none;
    color: var(--text-mid);
    font-size: 18px;
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    display: none;
}
.menu-toggle:hover { background: var(--bg-page); color: var(--teal); }
.topbar-title { font-size: 16px; font-weight: 700; color: var(--text-dark); }
.topbar-end { display: flex; align-items: center; gap: 8px; }
.topbar-btn {
    position: relative;
    width: 38px; height: 38px;
    border-radius: var(--radius-sm);
    border: none;
    background: var(--bg-page);
    color: var(--text-mid);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}
.topbar-btn:hover { background: var(--teal-faint); color: var(--teal); }
.topbar-badge {
    position: absolute;
    top: 4px; left: 4px;
    background: #E53E3E;
    color: white;
    font-size: 9px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── USER DROPDOWN ── */
.user-dropdown { position: relative; }
.user-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-page);
    border: none;
    border-radius: var(--radius-sm);
    padding: 6px 12px 6px 8px;
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 600;
    transition: all var(--transition);
    cursor: pointer;
}
.user-dropdown-trigger:hover { background: var(--teal-faint); color: var(--teal); }
.user-avatar-sm {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal-dark), var(--teal-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}
.dropdown-arrow { font-size: 10px; color: var(--text-muted); transition: transform var(--transition); }
.user-dropdown.open .dropdown-arrow { transform: rotate(180deg); }
.dropdown-menu {
    position: absolute;
    left: 0; top: calc(100% + 8px);
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    padding: 6px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition);
}
.user-dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-header {
    padding: 10px 10px 8px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 6px;
}
.dropdown-user-name { font-size: 14px; font-weight: 700; color: var(--text-dark); }
.dropdown-user-role { font-size: 12px; color: var(--text-muted); }
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-mid);
    transition: all var(--transition);
}
.dropdown-item:hover { background: var(--bg-page); color: var(--teal); }
.dropdown-item i { width: 16px; text-align: center; }
.dropdown-divider { height: 1px; background: var(--border); margin: 6px 0; }
.dropdown-item-danger { color: #E53E3E; }
.dropdown-item-danger:hover { background: #FFF5F5; color: #C53030; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CARDS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.card-sm { padding: 1rem; border-radius: var(--radius-md); }
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.card-title { font-size: 16px; font-weight: 700; color: var(--text-dark); }
.card-subtitle { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* Stat Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.75rem;
}
.stat-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all var(--transition);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.stat-icon.teal   { background: var(--teal-faint); color: var(--teal); }
.stat-icon.gold   { background: rgba(245,166,35,.1); color: #C87F00; }
.stat-icon.blue   { background: rgba(66,153,225,.1); color: #2B6CB0; }
.stat-icon.green  { background: rgba(72,187,120,.1); color: #276749; }
.stat-icon.red    { background: rgba(229,62,62,.1);  color: #C53030; }
.stat-icon.purple { background: rgba(159,122,234,.1);color: #6B46C1; }
.stat-num   { font-size: 24px; font-weight: 800; color: var(--text-dark); line-height: 1; }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FORMS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.form-group { margin-bottom: 1.1rem; }
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-mid);
    margin-bottom: 6px;
}
.form-label .required { color: #E53E3E; margin-right: 3px; }
.input-wrap { position: relative; }
.input-icon {
    position: absolute;
    right: 12px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
}
.form-control {
    width: 100%;
    height: 44px;
    padding: 0 42px 0 12px;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    color: var(--text-dark);
    background: var(--bg-page);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: all var(--transition);
    appearance: none;
}
.form-control:not(.has-icon) { padding-right: 12px; }
.form-control:focus {
    border-color: var(--teal);
    background: white;
    box-shadow: 0 0 0 3px rgba(26,140,130,.1);
}
.form-control::placeholder { color: var(--text-muted); font-size: 13px; }
textarea.form-control {
    height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
    resize: vertical;
    min-height: 90px;
}
select.form-control { padding-left: 36px; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 12px; color: #E53E3E; margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── BUTTONS ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 42px;
    padding: 0 20px;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    text-decoration: none;
}
.btn:active { transform: scale(.98); }
.btn-primary  { background: var(--teal); color: white; border-color: var(--teal); }
.btn-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn-secondary{ background: white; color: var(--teal); border-color: var(--teal); }
.btn-secondary:hover { background: var(--teal-faint); }
.btn-danger   { background: #E53E3E; color: white; border-color: #E53E3E; }
.btn-danger:hover { background: #C53030; }
.btn-ghost    { background: transparent; color: var(--text-mid); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-page); color: var(--text-dark); }
.btn-sm       { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-lg       { height: 50px; padding: 0 28px; font-size: 15px; }
.btn-block    { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ALERTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.alert {
    padding: .85rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 1rem;
    border: 1px solid;
}
.alert i { margin-top: 1px; flex-shrink: 0; }
.alert-success { background: #F0FFF4; border-color: #9AE6B4; color: #276749; }
.alert-danger  { background: #FFF5F5; border-color: #FEB2B2; color: #C53030; }
.alert-warning { background: #FFFAF0; border-color: #FBD38D; color: #C05621; }
.alert-info    { background: var(--teal-faint); border-color: var(--teal-faint2); color: var(--teal-dark); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TABLES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; background: white; }
thead tr { background: var(--teal-faint); border-bottom: 2px solid var(--teal-faint2); }
th {
    padding: 11px 14px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--teal-dark);
    white-space: nowrap;
    text-align: right;
}
td { padding: 11px 14px; font-size: 13.5px; border-bottom: 1px solid var(--border); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--bg-page); }
.td-actions { display: flex; gap: 6px; justify-content: flex-end; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   BADGES & PILLS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.badge-success  { background: #E6FFFA; color: #276749; }
.badge-danger   { background: #FFF5F5; color: #C53030; }
.badge-warning  { background: #FFFAF0; color: #C05621; }
.badge-info     { background: var(--teal-faint); color: var(--teal-dark); }
.badge-gray     { background: #EDF2F7; color: #4A5568; }
.badge-gold     { background: rgba(245,166,35,.15); color: #B7791F; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CRITERIA GRID (صفحة المعايير)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.criteria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.criteria-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    transition: all .25s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.criteria-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0; left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--teal), var(--teal-light));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .3s;
}
.criteria-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.criteria-card:hover::before { transform: scaleX(1); }

.criteria-icon {
    width: 46px; height: 46px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 1rem;
}
.ci-management  { background: rgba(26,140,130,.1);  color: var(--teal); }
.ci-teaching    { background: rgba(245,166,35,.12); color: #C87F00; }
.ci-outcomes    { background: rgba(66,153,225,.1);  color: #2B6CB0; }
.ci-environment { background: rgba(72,187,120,.1);  color: #276749; }

.criteria-name  { font-size: 15px; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
.criteria-count { font-size: 12.5px; color: var(--text-muted); }
.criteria-progress { margin-top: .75rem; }
.progress-bar-wrap {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--teal), var(--teal-light));
    border-radius: 3px;
    transition: width .6s ease;
}
.progress-label { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* Rating Stars */
.star-rating { display: flex; gap: 4px; flex-direction: row-reverse; justify-content: flex-end; }
.star-rating input { display: none; }
.star-rating label {
    font-size: 22px;
    cursor: pointer;
    color: var(--border);
    transition: color var(--transition);
}
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label { color: var(--gold); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FILE UPLOAD ZONE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--bg-page);
}
.upload-zone:hover, .upload-zone.dragover {
    border-color: var(--teal);
    background: var(--teal-faint);
}
.upload-icon { font-size: 36px; color: var(--text-muted); margin-bottom: .75rem; }
.upload-text { font-size: 14px; color: var(--text-mid); }
.upload-text span { color: var(--teal); font-weight: 600; }
.upload-hint { font-size: 12px; color: var(--text-muted); margin-top: .35rem; }

/* File List */
.file-list { display: flex; flex-direction: column; gap: 8px; margin-top: 1rem; }
.file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
}
.file-item-icon { font-size: 20px; flex-shrink: 0; }
.file-item-icon.pdf  { color: #E53E3E; }
.file-item-icon.word { color: #2B6CB0; }
.file-item-icon.img  { color: #276749; }
.file-item-name { font-size: 13.5px; font-weight: 600; color: var(--text-dark); flex: 1; }
.file-item-size { font-size: 12px; color: var(--text-muted); }
.file-item-actions { display: flex; gap: 6px; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   MODAL
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal {
    background: white;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalIn .25s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-header {
    padding: 1.5rem 1.5rem 1.25rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-title { font-size: 17px; font-weight: 700; color: var(--text-dark); }
.modal-close {
    width: 32px; height: 32px;
    border-radius: var(--radius-sm);
    border: none;
    background: var(--bg-page);
    color: var(--text-muted);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
}
.modal-close:hover { background: #FFF5F5; color: #E53E3E; }
.modal-body   { padding: 1.5rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PAGE SECTIONS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.75rem;
}
.page-header-text {}
.page-h1 { font-size: 22px; font-weight: 800; color: var(--text-dark); margin-bottom: 4px; }
.page-h1 span { color: var(--teal); }
.page-desc { font-size: 14px; color: var(--text-muted); }
.page-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}
.breadcrumb a { color: var(--teal); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: var(--border); }

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}
.empty-icon { font-size: 52px; margin-bottom: 1rem; opacity: .35; }
.empty-title { font-size: 17px; font-weight: 700; color: var(--text-mid); margin-bottom: .5rem; }
.empty-desc  { font-size: 14px; max-width: 380px; margin: 0 auto 1.5rem; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   LANDING PAGE (index.php)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.landing-body {
    background: var(--bg-page);
    margin: 0;
    padding: 0;
}
.landing-navbar {
    position: fixed;
    top: 0; right: 0; left: 0;
    z-index: 100;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-logo {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, var(--teal-dark), var(--teal-light));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 17px;
}
.nav-brand-text .nav-site-name { font-size: 15px; font-weight: 700; color: var(--teal-dark); line-height: 1.2; }
.nav-brand-text .nav-site-sub  { font-size: 11px; color: var(--text-muted); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-mid);
    padding: 7px 13px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.nav-link:hover { background: var(--teal-faint); color: var(--teal); }
.nav-cta {
    font-size: 13.5px;
    font-weight: 700;
    color: white;
    background: var(--teal);
    border-radius: var(--radius-sm);
    padding: 8px 18px;
    transition: all var(--transition);
}
.nav-cta:hover { background: var(--teal-dark); transform: translateY(-1px); }

/* HERO */
.hero {
    min-height: 100vh;
    padding-top: 66px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 50%, rgba(26,140,130,.07) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 15% 80%, rgba(245,166,35,.05) 0%, transparent 60%),
        var(--bg-page);
}
.hero-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(26,140,130,.035) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(26,140,130,.035) 1px, transparent 1px);
    background-size: 40px 40px;
}
.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 4rem;
    align-items: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--teal-faint);
    color: var(--teal);
    font-size: 12.5px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 999px;
    border: 1px solid rgba(26,140,130,.2);
    margin-bottom: 1.25rem;
}
.hero-badge-dot { width: 7px; height: 7px; background: var(--teal); border-radius: 50%; }
.hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 1rem;
}
.hero-title .hl { color: var(--teal); }
.hero-desc {
    font-size: 16.5px;
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 1.75rem;
    max-width: 560px;
}
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 2rem;
}
.hero-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    background: white;
    border: 1px solid var(--border);
    color: var(--text-mid);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
}
.hero-tag i { color: var(--teal); font-size: 12px; }

/* Login Card */
.login-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.login-card-head {
    background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 60%, var(--teal-light) 100%);
    padding: 1.75rem;
    text-align: center;
}
.login-card-icon {
    width: 58px; height: 58px;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: white;
    margin: 0 auto .85rem;
}
.login-card-title { font-size: 20px; font-weight: 800; color: white; }
.login-card-sub   { font-size: 13px; color: rgba(255,255,255,.75); }
.login-card-body  { padding: 1.75rem; }
.login-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--bg-page);
    border-radius: var(--radius-sm);
    padding: 4px;
    margin-bottom: 1.25rem;
}
.login-tab {
    font-family: 'Cairo', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: none;
    padding: 8px;
    border-radius: 7px;
    cursor: pointer;
    transition: all var(--transition);
}
.login-tab.active { background: white; color: var(--teal); box-shadow: var(--shadow-sm); }
.pass-toggle-btn {
    position: absolute;
    left: 12px; top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    transition: color var(--transition);
    padding: 0;
}
.pass-toggle-btn:hover { color: var(--teal); }
.login-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 12px;
    margin: 1rem 0;
}
.login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.login-footer { text-align: center; margin-top: 1rem; font-size: 12.5px; color: var(--text-muted); }
.login-footer a { color: #25D366; font-weight: 700; }

/* Features */
.features-section { padding: 5rem 2rem; background: white; }
.features-inner { max-width: 1200px; margin: 0 auto; }
.section-eyebrow { font-size: 12.5px; font-weight: 700; color: var(--teal); letter-spacing: .08em; text-transform: uppercase; margin-bottom: .6rem; }
.section-title   { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; color: var(--text-dark); margin-bottom: .6rem; }
.section-desc    { font-size: 15.5px; color: var(--text-mid); line-height: 1.8; max-width: 560px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; margin-top: 2.5rem; }
.feature-card {
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: all .25s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); background: white; }
.feature-icon { width: 48px; height: 48px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 1rem; }
.feature-title { font-size: 15px; font-weight: 700; color: var(--text-dark); margin-bottom: .4rem; }
.feature-desc  { font-size: 13.5px; color: var(--text-mid); line-height: 1.7; }
.feature-list  { margin-top: .6rem; display: flex; flex-direction: column; gap: 4px; }
.feature-list li { font-size: 13px; color: var(--text-mid); list-style: none; display: flex; align-items: center; gap: 7px; }
.feature-list li::before { content: ''; width: 5px; height: 5px; background: var(--teal); border-radius: 50%; flex-shrink: 0; }

/* Steps Section */
.steps-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%);
    position: relative;
}
.steps-inner { max-width: 1100px; margin: 0 auto; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; margin-top: 2.5rem; }
.step-card {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    text-align: center;
    backdrop-filter: blur(8px);
    transition: all .25s;
}
.step-card:hover { background: rgba(255,255,255,.2); transform: translateY(-3px); }
.step-num {
    width: 50px; height: 50px;
    background: rgba(255,255,255,.18);
    border: 2px solid rgba(255,255,255,.3);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 900; color: white;
    margin: 0 auto 1rem;
}
.step-title { font-size: 15px; font-weight: 700; color: white; margin-bottom: .4rem; }
.step-desc  { font-size: 13px; color: rgba(255,255,255,.78); line-height: 1.7; }

/* CTA */
.cta-section { padding: 5rem 2rem; background: var(--bg-page); }
.cta-card {
    max-width: 700px; margin: 0 auto;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 3rem;
    text-align: center;
    box-shadow: var(--shadow-md);
}
.cta-icon { width: 68px; height: 68px; background: linear-gradient(135deg, #25D366, #128C7E); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 30px; color: white; margin: 0 auto 1.25rem; }
.cta-title { font-size: 24px; font-weight: 800; color: var(--text-dark); margin-bottom: .6rem; }
.cta-desc  { font-size: 15px; color: var(--text-mid); margin-bottom: 1.75rem; line-height: 1.7; }
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    font-weight: 700;
    padding: 13px 28px;
    border-radius: 999px;
    text-decoration: none;
    transition: all .2s;
    box-shadow: 0 6px 20px rgba(37,211,102,.28);
}
.btn-whatsapp:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(37,211,102,.38); color: white; }

/* Footer */
.landing-footer {
    background: var(--teal-dark);
    color: rgba(255,255,255,.8);
    padding: 1.75rem;
    text-align: center;
    font-size: 13.5px;
}
.landing-footer strong { color: white; }

/* Subscription popup */
.sub-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,.6);
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(4px);
}
.sub-popup.open { display: flex; }
.sub-popup-box {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    max-width: 460px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   UTILITIES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.text-center  { text-align: center; }
.text-muted   { color: var(--text-muted) !important; }
.text-teal    { color: var(--teal) !important; }
.text-danger  { color: #E53E3E !important; }
.text-success { color: #276749 !important; }
.fw-bold  { font-weight: 700; }
.fw-black { font-weight: 900; }
.fs-sm { font-size: 12.5px; }
.fs-lg { font-size: 17px; }
.w-100 { width: 100%; }
.d-none-mobile { }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 900px) {
    :root { --sidebar-w: 260px; }
    .has-sidebar .main-wrapper { margin-right: 0; }
    body { overflow-x: hidden; max-width: 100vw; }
    .sidebar { transform: translateX(100%); }
    .sidebar.open { transform: translateX(0); }
    .sidebar-overlay.open { display: block; }
    .menu-toggle { display: flex; }
    .sidebar-close-btn { display: flex; }
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-desc, .hero-tags { margin-left: auto; margin-right: auto; }
    .hero-tags { justify-content: center; }
    .login-card { max-width: 460px; margin: 0 auto; }
    .nav-link { display: none; }
}
@media (max-width: 600px) {
    .page-content { padding: 1rem; }
    .file-display-name {
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        max-width: 160px !important;
    }
    .landing-navbar { padding: 0 1rem; }
    .form-row { grid-template-columns: 1fr; }
    .d-none-mobile { display: none; }
    .features-section, .steps-section, .cta-section { padding: 3rem 1rem; }
}
