/* ============================================================
   HGST Nepal SMS — Application Stylesheet v1.0.0
   Theme: Seminary — Navy Deep, Gold, Parchment
   ============================================================ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
    /* Brand */
    --navy-deep:    #0f1a30;
    --navy:         #1a2744;
    --navy-mid:     #243260;
    --navy-light:   #2e3f78;
    --gold:         #c9a84c;
    --gold-bright:  #e8c56d;
    --gold-pale:    #f5e9c9;
    --gold-muted:   #a8893e;

    /* Surface */
    --cream:        #faf8f3;
    --parchment:    #f2ede0;
    --white:        #ffffff;

    /* Text */
    --text-dark:    #1a2335;
    --text-mid:     #3d4f6e;
    --text-soft:    #6b7fa3;
    --text-light:   #9fadc6;

    /* Borders */
    --border:       #dde3f0;
    --border-gold:  rgba(201,168,76,0.3);

    /* Semantic */
    --success:      #1a7a4a;
    --success-bg:   #e8f5ee;
    --success-border:#b8dfc9;
    --warning:      #8a6200;
    --warning-bg:   #fff8e6;
    --warning-border:#f0dca0;
    --danger:       #8a1a1a;
    --danger-bg:    #fdf0f0;
    --danger-border:#f0c5c5;
    --info:         #1a4a8a;
    --info-bg:      #e8f0fa;
    --info-border:  #c0d4f0;

    /* Radii */
    --r-sm:   6px;
    --r:      10px;
    --r-lg:   16px;
    --r-xl:   24px;

    /* Shadows */
    --shadow-xs: 0 1px 3px rgba(26,39,68,0.07);
    --shadow-sm: 0 2px 8px rgba(26,39,68,0.09);
    --shadow:    0 4px 16px rgba(26,39,68,0.12);
    --shadow-lg: 0 8px 32px rgba(26,39,68,0.18);

    /* Typography */
    --font-serif: 'Crimson Pro', 'Georgia', serif;
    --font-sans:  'DM Sans', 'Helvetica Neue', sans-serif;

    /* Layout */
    --topbar-h: 64px;
    --sidebar-w: 0px; /* sidebar-less layout */

    /* Motion */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --duration: 180ms;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font-sans);
    background: var(--cream);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

/* ── Topbar ─────────────────────────────────────────────────── */
.topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--topbar-h);
    background: #ffffff;
    border-bottom: 1px solid #e2e2e2;
    display: flex;
    align-items: center;
    padding: 0 32px;
    gap: 12px;
    z-index: 200;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    overflow: visible;
}

.topbar-brand { flex-shrink: 0; }

.brand-link {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none;
}

.brand-seal {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-muted));
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-serif);
    font-size: 18px; font-weight: 700;
    color: var(--navy-deep);
    flex-shrink: 0;
    border: 2px solid var(--gold-muted);
}

.brand-text { display: flex; flex-direction: column; }
.brand-name { font-size: 13px; font-weight: 600; color: var(--navy-deep); letter-spacing: 0.04em; text-transform: uppercase; }
.brand-sub  { font-size: 10px; color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.08em; }

/* Nav */
.topbar-nav {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 2px;
    overflow-x: visible;
    overflow-y: visible;
    padding: 0 8px;
    scrollbar-width: none;
}
.topbar-nav::-webkit-scrollbar { display: none; }

.nav-item {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 12px;
    color: var(--navy-deep);
    text-decoration: none;
    font-size: 12.5px; font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: var(--r-sm);
    white-space: nowrap;
    transition: color var(--duration) var(--ease),
                background var(--duration) var(--ease);
    position: relative;
}
.nav-item:hover  { color: var(--gold-muted); background: rgba(0,0,0,0.04); }
.nav-item.active { color: var(--gold-muted); border-bottom: 2px solid var(--gold-muted); border-radius: 0; }

.nav-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 18px; height: 18px;
    background: var(--gold-muted); color: #fff;
    border-radius: 10px; font-size: 11px; font-weight: 700;
    padding: 0 4px; margin-left: 2px;
}

/* User area */
.topbar-user {
    display: flex; align-items: center; gap: 10px;
    flex-shrink: 0;
    padding-left: 16px;
    border-left: 1px solid #e2e2e2;
}

.user-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg, var(--navy-light), var(--navy-mid));
    border: 2px solid var(--gold-muted);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700;
    color: var(--gold);
    flex-shrink: 0;
}

.user-info { display: flex; flex-direction: column; }
.user-name { font-size: 13px; font-weight: 500; color: var(--navy-deep); }
.user-role { font-size: 11px; color: var(--text-soft); text-transform: capitalize; }

.logout-btn {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    color: var(--text-soft); border: none; background: none; cursor: pointer;
    border-radius: var(--r-sm);
    transition: color var(--duration) var(--ease),
                background var(--duration) var(--ease);
}
.logout-btn:hover { color: #ff8888; background: rgba(138,26,26,0.3); }

/* ── Main content ───────────────────────────────────────────── */
.main-content {
    margin-top: var(--topbar-h);
    flex: 1;
    padding: 28px 32px;
}

.page-wrapper { max-width: 1360px; margin: 0 auto; }

/* ── Footer ─────────────────────────────────────────────────── */
.app-footer {
    background: var(--navy-deep);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 10px 32px;
    text-align: center;
    font-size: 12px;
    color: var(--text-light);
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.footer-sep  { opacity: 0.3; }
.footer-link { color: var(--gold-muted); text-decoration: none; }
.footer-link:hover { color: var(--gold); }

/* ── Flash messages ─────────────────────────────────────────── */
.flash {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 14px 18px;
    border-radius: var(--r);
    margin-bottom: 20px;
    font-size: 14px; font-weight: 500;
    border: 1px solid;
    animation: slideDown 0.3s var(--ease);
}
@keyframes slideDown {
    from { transform: translateY(-8px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
.flash-success { background: var(--success-bg); color: var(--success); border-color: var(--success-border); }
.flash-error   { background: var(--danger-bg);  color: var(--danger);  border-color: var(--danger-border); }
.flash-warning { background: var(--warning-bg); color: var(--warning); border-color: var(--warning-border); }
.flash-info    { background: var(--info-bg);    color: var(--info);    border-color: var(--info-border); }

.alert { padding: 12px 16px; border-radius: var(--r); margin-bottom: 20px; font-size: 14px; border: 1px solid; }
.alert-error { background: var(--danger-bg); color: var(--danger); border-color: var(--danger-border); }

.flash-close {
    background: none; border: none; cursor: pointer; padding: 0 4px;
    font-size: 20px; line-height: 1; color: inherit; opacity: 0.5;
    margin-left: auto; flex-shrink: 0;
}
.flash-close:hover { opacity: 1; }

/* ── Page header ────────────────────────────────────────────── */
.page-header {
    display: flex; align-items: flex-start; justify-content: space-between;
    margin-bottom: 24px; gap: 16px;
}
.page-title {
    font-family: var(--font-serif);
    font-size: 28px; font-weight: 700;
    color: var(--navy-deep); line-height: 1.2;
}
.page-subtitle { font-size: 14px; color: var(--text-soft); margin-top: 3px; }
.page-actions  { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; flex-shrink: 0; }

/* ── Cards ──────────────────────────────────────────────────── */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
}
.card--alert { border-color: var(--gold); }

.card-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.card-header--gold { background: var(--gold-pale); }

.card-title {
    font-family: var(--font-serif);
    font-size: 17px; font-weight: 600; color: var(--navy-deep);
}

.card-body    { padding: 24px; }
.card-footer  { padding: 14px 24px; border-top: 1px solid var(--border); background: var(--cream); }

/* ── Stats grid ─────────────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 20px 22px;
    position: relative; overflow: hidden;
    transition: transform var(--duration) var(--ease),
                box-shadow var(--duration) var(--ease);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--navy), var(--gold));
}
.stat-card--alert { border-color: var(--gold-muted); }
.stat-card--alert::before { background: linear-gradient(90deg, var(--gold-muted), var(--gold)); }

.stat-icon {
    width: 38px; height: 38px; border-radius: var(--r);
    background: var(--parchment);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 12px;
    color: var(--navy-mid);
}
.stat-icon--gold { background: var(--gold-pale); color: var(--gold-muted); }

.stat-value {
    font-family: var(--font-serif);
    font-size: 32px; font-weight: 700;
    color: var(--navy-deep); line-height: 1;
    margin-bottom: 4px;
}
.stat-value--gold { color: var(--gold-muted); }

.stat-label { font-size: 13px; color: var(--text-soft); font-weight: 500; }
.stat-sub   { font-size: 12px; color: var(--text-light); margin-top: 4px; }

/* ── Dashboard grid ─────────────────────────────────────────── */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    align-items: start;
}
.dashboard-col-main { display: flex; flex-direction: column; gap: 24px; }
.dashboard-col-side  { display: flex; flex-direction: column; gap: 24px; }

/* ── Tables ─────────────────────────────────────────────────── */
.table-container { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }

thead tr { background: var(--navy-deep); }
thead th {
    padding: 11px 16px;
    text-align: left;
    font-size: 11.5px; font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    white-space: nowrap;
}

tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background var(--duration) var(--ease);
}
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--cream); }
tbody tr.row-critical { background: #fff5f5; }
tbody tr.row-warning  { background: #fffbf0; }

tbody td { padding: 12px 16px; vertical-align: middle; color: var(--text-dark); }

.td-name  { font-weight: 500; color: var(--navy-deep); }
.td-sub   { font-size: 12px; color: var(--text-soft); margin-top: 2px; }
.td-link  { text-decoration: none; }
.td-link:hover .td-name { color: var(--navy-light); text-decoration: underline; }
.td-right  { text-align: right; }
.td-center { text-align: center; }
.text-soft { color: var(--text-soft); font-size: 14px; }

/* ── Badges ─────────────────────────────────────────────────── */
.badge {
    display: inline-flex; align-items: center;
    padding: 3px 9px;
    font-size: 12px; font-weight: 600;
    border-radius: 20px;
    white-space: nowrap;
}
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger  { background: var(--danger-bg);  color: var(--danger); }
.badge-gold    { background: var(--gold-pale);  color: var(--gold-muted); }
.badge-blue    { background: var(--info-bg);    color: var(--info); }
.badge-gray    { background: #f0f2f7;           color: var(--text-soft); }
.badge-default { background: var(--parchment);  color: var(--text-mid); }
.badge-navy    { background: var(--navy);        color: var(--gold); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 17px;
    font-family: var(--font-sans);
    font-size: 14px; font-weight: 500;
    border: none; cursor: pointer;
    border-radius: var(--r);
    text-decoration: none;
    transition: all var(--duration) var(--ease);
    white-space: nowrap;
    line-height: 1;
}
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }

.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-mid); box-shadow: var(--shadow); }

.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-muted)); color: var(--navy-deep); font-weight: 600; }
.btn-gold:hover { box-shadow: 0 4px 12px rgba(201,168,76,0.4); filter: brightness(1.05); }

.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text-mid); }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); background: var(--parchment); }

.btn-success { background: var(--success-bg); color: var(--success); border: 1px solid var(--success-border); }
.btn-success:hover { background: var(--success); color: #fff; }

.btn-danger { background: var(--danger-bg); color: var(--danger); border: 1px solid var(--danger-border); }
.btn-danger:hover { background: var(--danger); color: #fff; }

.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 12px 24px; font-size: 15px; }
.btn-icon { padding: 7px; }

/* ── Forms ──────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 5px; }

label {
    font-size: 12.5px; font-weight: 600;
    color: var(--text-mid);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.checkbox-label {
    display: flex; align-items: center; gap: 8px;
    text-transform: none; letter-spacing: 0;
    font-size: 14px; font-weight: 400;
    cursor: pointer; color: var(--text-mid);
}

input[type="text"], input[type="email"], input[type="number"],
input[type="date"], input[type="time"], input[type="password"],
input[type="tel"], input[type="url"], input[type="search"],
select, textarea {
    width: 100%;
    padding: 9px 13px;
    font-family: var(--font-sans); font-size: 14px;
    color: var(--text-dark); background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--r);
    transition: border-color var(--duration) var(--ease),
                box-shadow var(--duration) var(--ease);
    appearance: none;
    line-height: 1.5;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(26,39,68,0.1);
}
input.input-error, select.input-error, textarea.input-error {
    border-color: var(--danger);
}
textarea { resize: vertical; min-height: 80px; }
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7fa3' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 34px;
}

.form-hint  { font-size: 12px; color: var(--text-soft); }
.form-error { font-size: 12px; color: var(--danger); font-weight: 500; }

/* ── Standing rows (dashboard) ──────────────────────────────── */
.standing-row { margin-bottom: 14px; }
.standing-row:last-child { margin-bottom: 0; }
.standing-row-top {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 5px;
}
.standing-count { font-size: 13px; font-weight: 600; color: var(--text-mid); }

.progress-bar {
    height: 5px; background: var(--border);
    border-radius: 3px; overflow: hidden;
}
.progress-fill {
    height: 100%; border-radius: 3px;
    transition: width 0.6s var(--ease);
}
.progress-fill--success  { background: var(--success); }
.progress-fill--warning  { background: #e8a800; }
.progress-fill--danger   { background: var(--danger); }
.progress-fill--gold     { background: var(--gold); }
.progress-fill--blue     { background: var(--info); }
.progress-fill--gray     { background: var(--text-light); }
.progress-fill--default  { background: var(--navy); }

/* ── Activity feed ──────────────────────────────────────────── */
.activity-item {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
}
.activity-item:last-child { border-bottom: none; }

.activity-dot {
    width: 7px; height: 7px; border-radius: 50%;
    flex-shrink: 0; margin-top: 6px;
    background: var(--gold);
}
.activity-dot--warning  { background: #e8a800; }
.activity-dot--critical { background: var(--danger); }

.activity-body  { flex: 1; min-width: 0; }
.activity-text  { font-size: 13px; color: var(--text-dark); line-height: 1.5; }
.activity-time  { font-size: 11.5px; color: var(--text-light); margin-top: 2px; }

/* ── Pagination ─────────────────────────────────────────────── */
.pagination {
    display: flex; align-items: center; gap: 4px;
    justify-content: center; padding: 4px 0;
}
.page-btn {
    min-width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    font-size: 14px; color: var(--text-mid);
    text-decoration: none; background: var(--white);
    transition: all var(--duration) var(--ease);
}
.page-btn:hover           { background: var(--parchment); border-color: var(--navy); color: var(--navy); }
.page-btn--current        { background: var(--navy); color: #fff; border-color: var(--navy); }
.page-btn--disabled       { opacity: 0.35; pointer-events: none; }
.page-btn--dots           { border: none; background: none; pointer-events: none; }

/* ── Empty state ────────────────────────────────────────────── */
.empty-state {
    text-align: center; padding: 50px 20px;
    color: var(--text-soft);
}
.empty-state svg {
    width: 48px; height: 48px;
    margin: 0 auto 14px; opacity: 0.25;
}
.empty-state h3 {
    font-family: var(--font-serif);
    font-size: 20px; color: var(--text-mid);
    margin-bottom: 6px;
}
.empty-state p { font-size: 14px; }

/* ── Login page ─────────────────────────────────────────────── */
.login-page {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: url('/images/login-bg.jpg') center center / cover no-repeat;
    background-blend-mode: overlay;
    background-color: rgba(10,20,40,0.45);
    padding: 24px;
}
.login-card {
    background: var(--white);
    border-radius: var(--r-xl);
    padding: 48px 44px;
    width: 100%; max-width: 420px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.35);
    text-align: center;
}
.login-seal {
    background: none;
    border: none;
    box-shadow: none;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-title {
    font-family: var(--font-serif);
    font-size: 26px; font-weight: 700; color: var(--navy-deep);
    margin-bottom: 4px;
}
.login-subtitle { font-size: 14px; color: var(--text-soft); margin-bottom: 30px; }
.login-card .form-group { text-align: left; margin-bottom: 16px; }
.login-btn { width: 100%; margin-top: 20px; justify-content: center; }
.login-footer { margin-top: 28px; font-size: 13px; color: var(--text-soft); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .main-content { padding: 20px; }
}
@media (max-width: 768px) {
    .topbar-nav { display: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .page-header { flex-direction: column; }
    .page-actions { width: 100%; }
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .login-card { padding: 32px 24px; }
}

/* ── Print ──────────────────────────────────────────────────── */
@media print {
    .topbar, .page-actions, .btn, .app-footer { display: none !important; }
    .main-content { margin-top: 0; padding: 0; }
    .card { box-shadow: none !important; border: 1px solid #ccc; }
}

/* Finance Dropdown Nav */
.dropdown-item {
    display: block;
    padding: 8px 16px;
    font-size: 13px;
    color: var(--text);
    text-decoration: none;
    transition: background 0.15s;
    white-space: nowrap;
}
.dropdown-item:hover { background: var(--surface-hover); }
.dropdown-item.active { color: var(--primary); font-weight: 600; background: var(--surface-alt); }
.nav-dropdown-toggle { font-size: 14px; font-weight: 500; color: var(--text); }
.nav-dropdown-toggle.active { color: var(--primary); }

/* Finance Dropdown */
#finance-dropdown {
    background: #ffffff !important;
    border: 1px solid #e2e2e2 !important;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
    margin-top: 4px;
}
#finance-dropdown .dropdown-item {
    color: var(--navy-deep) !important;
    font-size: 12px;
    font-weight: 500;
    padding: 8px 16px;
    display: block;
    text-decoration: none;
    transition: background 0.15s;
    letter-spacing: 0.02em;
}
#finance-dropdown .dropdown-item:hover {
    background: #f5f5f5 !important;
    color: var(--gold-muted) !important;
}
#finance-dropdown .dropdown-item.active {
    color: var(--gold-muted) !important;
    font-weight: 700;
    background: #faf8f3 !important;
}

/* Finance dropdown hover */
.nav-dropdown { position: relative; }
.nav-dropdown:hover #finance-dropdown { opacity: 1 !important; pointer-events: all !important; }

/* ── Mobile Navigation ─────────────────────────────────────────────────────── */
.sp-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
    z-index: 1001;
}
.sp-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: rgba(255,255,255,0.85);
    border-radius: 2px;
    transition: all 0.25s;
}
.sp-hamburger-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sp-hamburger-open span:nth-child(2) { opacity: 0; }
.sp-hamburger-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.sp-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 999;
}
.sp-overlay-open { display: block !important; }

.sp-nav-close {
    display: none;
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    cursor: pointer;
    padding: 12px 20px 8px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    width: 100%;
}

@media (max-width: 768px) {
    .sp-hamburger { display: flex; }
    .sp-nav-close { display: block; }

    .sp-nav {
        position: fixed;
        top: 0; left: -260px;
        width: 240px;
        height: 100vh;
        background: #1a1a2e;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        padding: 0 0 20px;
        z-index: 1000;
        overflow-y: auto;
        transition: left 0.28s cubic-bezier(0.4,0,0.2,1);
        box-shadow: 4px 0 24px rgba(0,0,0,0.18);
    }
    .sp-nav.sp-nav-open { left: 0; }

    .sp-nav-item {
        width: 100%;
        padding: 12px 20px;
        border-radius: 0;
        font-size: 14px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .sp-topbar {
        padding: 0 14px;
        position: sticky;
        top: 0;
        z-index: 998;
    }

    .sp-user { gap: 8px; }
    .sp-user-name { display: none; }
    .sp-user-id { display: none; }

    .sp-content { padding: 16px 12px; }

    .card { padding: 14px 14px; }

    /* Notification bell stays visible */
    .notif-bell { margin-right: 4px; }
}

@media (max-width: 480px) {
    .sp-brand-name { font-size: 13px; }
    .sp-brand-sub { display: none; }
}
