/* ============================================================
   SMS – Student Management System  |  Global Stylesheet
   Premium Light Blue-White Gradient Theme
   ============================================================ */

/* ---------- Google Font ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ---------- Design Tokens ---------- */
:root {
    --sidebar-w: 260px;
    /* Sidebar: deep sapphire → cobalt gradient */
    --sidebar-bg-from: #1e3a8a; /* deep indigo-blue */
    --sidebar-bg-to: #2563eb; /* bright cobalt */
    --sidebar-hover: rgba(255,255,255,0.12);
    --sidebar-active-bg: rgba(255,255,255,0.20);
    --sidebar-accent: #93c5fd; /* light-blue highlight strip */

    --topbar-h: 64px;
    /* Page canvas: very soft blue-white pearl */
    --bg: #f0f6ff;
    --bg-2: #e8f0fe;
    --white: #ffffff;
    /* Brand colours */
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --primary-pale: #dbeafe;
    --primary-dark: #1e3a8a;
    --accent: #60a5fa;
    /* Text */
    --text: #1e293b;
    --text-muted: #64748b;
    /* Border / shadow */
    --border: rgba(37,99,235,0.12);
    --shadow-sm: 0 1px 4px rgba(37,99,235,0.08);
    --shadow: 0 4px 20px rgba(37,99,235,0.10);
    --shadow-lg: 0 8px 36px rgba(37,99,235,0.16);
    --radius: 14px;
    --radius-sm: 8px;
    --transition: 0.28s cubic-bezier(.4,0,.2,1);
}

/* ---------- Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 14px;
    background: var(--bg);
    color: var(--text);
}

/* ============================================================
   AUTHENTICATED LAYOUT  (sidebar + main)
   ============================================================ */

/* --- Sidebar --- */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-w);
    background: linear-gradient(180deg, var(--sidebar-bg-from) 0%, var(--sidebar-bg-to) 55%, #1d4ed8 100%);
    display: flex;
    flex-direction: column;
    padding: 0;
    z-index: 1050;
    transition: transform var(--transition), width var(--transition);
    overflow: hidden;
    box-shadow: 4px 0 24px rgba(30,58,138,0.18);
}

    /* decorative radial shimmer inside sidebar */
    .sidebar::before {
        content: '';
        position: absolute;
        top: -80px;
        right: -60px;
        width: 240px;
        height: 240px;
        background: radial-gradient(circle, rgba(147,197,253,0.18) 0%, transparent 70%);
        pointer-events: none;
    }

    .sidebar::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: -40px;
        width: 200px;
        height: 200px;
        background: radial-gradient(circle, rgba(147,197,253,0.12) 0%, transparent 70%);
        pointer-events: none;
    }

/* Brand / logo row */
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 18px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.10);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

    .sidebar-brand img {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        object-fit: cover;
        box-shadow: 0 2px 8px rgba(0,0,0,0.20);
    }

.sidebar-brand-text {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    letter-spacing: 0.01em;
}

/* Nav section label */
.sidebar-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.38);
    padding: 16px 18px 6px;
}

/* Nav items */
.sidebar .nav {
    padding: 8px 10px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
    position: relative;
    z-index: 1;
}

.sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    color: rgba(255,255,255,0.78);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    transition: background var(--transition), color var(--transition), transform var(--transition);
    margin-bottom: 3px;
    position: relative;
}

    .sidebar .nav-link i {
        font-size: 17px;
        flex-shrink: 0;
        width: 20px;
        text-align: center;
        transition: color var(--transition);
    }

    .sidebar .nav-link:hover {
        background: var(--sidebar-hover);
        color: #fff;
        transform: translateX(3px);
    }

    .sidebar .nav-link.active {
        background: rgba(255,255,255,0.18);
        color: #fff;
        font-weight: 600;
        box-shadow: inset 3px 0 0 var(--sidebar-accent);
    }

        .sidebar .nav-link.active i {
            color: var(--sidebar-accent);
        }

/* Sidebar footer */
.sidebar-footer {
    padding: 14px 18px;
    border-top: 1px solid rgba(255,255,255,0.10);
    flex-shrink: 0;
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    position: relative;
    z-index: 1;
}

/* --- Main content wrapper --- */
.main-content {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left var(--transition);
    background: var(--bg);
}

/* --- Top bar --- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 999;
    height: var(--topbar-h);
    background: linear-gradient(90deg, #ffffff 0%, #f0f6ff 100%);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 28px;
    box-shadow: 0 2px 12px rgba(37,99,235,0.07);
}

.topbar-title {
    flex: 1;
    font-size: 17px;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Toggle button */
.btn-sidebar-toggle {
    background: none;
    border: none;
    padding: 6px 8px;
    border-radius: 8px;
    color: var(--primary);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

    .btn-sidebar-toggle:hover {
        background: var(--primary-pale);
        color: var(--primary-dark);
    }

/* Avatar */
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(37,99,235,0.30);
}

/* Page body */
.page-body {
    flex: 1;
    padding: 24px;
}

/* ============================================================
   COLLAPSED SIDEBAR STATE
   ============================================================ */
body.sidebar-collapsed .sidebar {
    transform: translateX(calc(-1 * var(--sidebar-w)));
}

body.sidebar-collapsed .main-content {
    margin-left: 0;
}

/* ============================================================
   RESPONSIVE  (mobile ≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(calc(-1 * var(--sidebar-w)));
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0 !important;
    }

    /* Scrim overlay */
    body.sidebar-open::after {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(15,30,80,0.45);
        z-index: 1040;
    }

    .page-body {
        padding: 16px;
    }
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow-sm) !important;
    transition: box-shadow var(--transition), transform var(--transition);
}

    /* Default white background only for plain (no contextual color) cards */
    .card:not([class*="bg-"]):not(.stat-card) {
        background: var(--white);
    }

    .card:hover {
        box-shadow: var(--shadow) !important;
        transform: translateY(-1px);
    }

/* Card header — default light gradient; coloured cards keep their bg */
.card-header:not([class*="bg-"]) {
    background: linear-gradient(90deg, #f8fbff 0%, #eef4ff 100%) !important;
    border-bottom: 1px solid var(--border) !important;
}

.card-header {
    border-radius: var(--radius) var(--radius) 0 0 !important;
    padding: 14px 20px !important;
}

/* Stat / KPI cards */
.kpi-card {
    border-radius: var(--radius);
    padding: 22px 24px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: box-shadow var(--transition), transform var(--transition);
    border: 1px solid var(--border);
}

    .kpi-card:hover {
        box-shadow: var(--shadow);
        transform: translateY(-3px);
    }

.kpi-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.kpi-value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    color: var(--primary-dark);
}

.kpi-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ============================================================
   DATATABLES
   ============================================================ */
div.dataTables_wrapper div.dataTables_filter input {
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    padding: 5px 10px;
    font-size: 13px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

    div.dataTables_wrapper div.dataTables_filter input:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
        outline: none;
    }

div.dataTables_wrapper div.dataTables_length select {
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    padding: 5px 30px 5px 10px;
    font-size: 13px;
}

.table > thead th {
    background: linear-gradient(90deg, #f0f6ff 0%, #e8f0fe 100%);
    font-weight: 600;
    color: var(--primary-dark);
    border-bottom: 2px solid var(--border) !important;
    white-space: nowrap;
    font-size: 13px;
}

.table > tbody > tr {
    transition: background var(--transition);
}

    .table > tbody > tr:hover td {
        background: #f0f6ff;
    }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 13px;
    transition: all var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border: none;
    box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}

    .btn-primary:hover {
        background: linear-gradient(135deg, #1748c4 0%, var(--primary) 100%);
        transform: translateY(-1px);
        box-shadow: 0 4px 14px rgba(37,99,235,0.38);
    }

.btn-sm {
    font-size: 12px;
    padding: 4px 10px;
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
    border-radius: 6px;
    font-weight: 500;
}

/* ============================================================
   LOGIN PAGE  (standalone, Layout = null)
   ============================================================ */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    background: #f0f6ff;
    position: relative;
    overflow: hidden;
}

/* Left decorative panel */
.auth-panel-left {
    display: none;
    flex: 1;
    background: linear-gradient(150deg, #1e3a8a 0%, #2563eb 45%, #60a5fa 100%);
    position: relative;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 48px;
    color: #fff;
}

@media (min-width: 900px) {
    .auth-panel-left {
        display: flex;
    }
}

/* Floating circles in left panel */
.auth-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
    background: #fff;
    animation: float-slow 8s ease-in-out infinite;
}

.auth-circle-1 {
    width: 320px;
    height: 320px;
    top: -80px;
    right: -80px;
    animation-delay: 0s;
}

.auth-circle-2 {
    width: 200px;
    height: 200px;
    bottom: 40px;
    left: -60px;
    animation-delay: -3s;
}

.auth-circle-3 {
    width: 120px;
    height: 120px;
    bottom: 220px;
    right: 40px;
    animation-delay: -5s;
    opacity: 0.07;
}

@keyframes float-slow {
    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-18px);
    }
}

.auth-panel-tagline {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.auth-panel-sub {
    font-size: 1rem;
    opacity: 0.75;
    max-width: 280px;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

/* grid pattern overlay for left panel */
.auth-panel-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

/* Right: form panel */
.auth-panel-right {
    width: 100%;
    max-width: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
    background: #fff;
    box-shadow: -4px 0 32px rgba(37,99,235,0.08);
}

@media (min-width: 900px) {
    .auth-panel-right {
        width: 440px;
        flex-shrink: 0;
    }
}

@media (max-width: 899px) {
    .auth-panel-right {
        max-width: 100%;
        box-shadow: none;
        padding: 32px 24px;
    }
}

.auth-form-box {
    width: 100%;
    max-width: 380px;
}

.auth-logo-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 32px;
}

    .auth-logo-wrap img {
        width: 52px;
        height: 52px;
        border-radius: 14px;
        object-fit: cover;
        box-shadow: 0 4px 16px rgba(37,99,235,0.20);
    }

.auth-logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: -0.01em;
}

.auth-logo-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}

.auth-heading {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 4px;
    letter-spacing: -0.02em;
}

.auth-subheading {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* Light-mode form inputs */
.auth-form-box .form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.auth-form-box .form-control,
.auth-form-box .input-group-text {
    background: #f8fbff;
    border: 1.5px solid var(--border);
    color: var(--text);
    font-size: 14px;
    padding: 10px 14px;
}

.auth-form-box .input-group-text {
    color: var(--primary);
    background: #eef4ff;
    border-right: none;
}

.auth-form-box .form-control:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
    color: var(--text);
}

.auth-form-box .form-control::placeholder {
    color: #9fb3c8;
}

.auth-form-box .input-group .form-control {
    border-left: none;
}

/* Password eye button */
.auth-eye-btn {
    background: #eef4ff;
    border: 1.5px solid var(--border);
    border-left: none;
    color: var(--primary);
    cursor: pointer;
    transition: background var(--transition);
}

    .auth-eye-btn:hover {
        background: var(--primary-pale);
    }

/* Remember-me label */
.auth-form-box .form-check-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.auth-form-box .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Submit button */
.auth-submit-btn {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 16px rgba(37,99,235,0.30);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

    .auth-submit-btn::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(255,255,255,0.10) 0%, transparent 60%);
        pointer-events: none;
    }

    .auth-submit-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 24px rgba(37,99,235,0.42);
        color: #fff;
    }

    .auth-submit-btn:active {
        transform: translateY(0);
    }

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 20px 0;
}

    .auth-divider::before, .auth-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--border);
    }

/* Legacy glass-card kept for safety (not used on new login) */
.glass-card {
    background: rgba(255,255,255,0.10);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 8px 40px rgba(0,0,0,0.40);
    padding: 44px 40px;
    width: 100%;
    max-width: 440px;
    color: #fff;
}

.glass-btn {
    background: #fff;
    color: var(--primary-dark);
    font-weight: 700;
    border: none;
    border-radius: 10px;
    padding: 12px;
    letter-spacing: 0.02em;
    transition: all var(--transition);
}

    .glass-btn:hover {
        background: #e8eef8;
        color: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    }

/* ============================================================
   MODAL
   ============================================================ */
.modal-content {
    border: none !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow-lg) !important;
}

.modal-header {
    border-radius: var(--radius) var(--radius) 0 0 !important;
    padding: 16px 22px !important;
    background: linear-gradient(90deg, #f0f6ff 0%, #e8f0fe 100%) !important;
    border-bottom: 1px solid var(--border) !important;
}

/* ============================================================
   FORM CONTROLS (general)
   ============================================================ */
.form-control, .form-select {
    border-radius: var(--radius-sm);
    border: 1.5px solid #dde6f5;
    font-size: 13px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

    .form-control:focus, .form-select:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
    }

/* ============================================================
   PHOTO PREVIEW
   ============================================================ */
.photo-preview {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--border);
}

/* ============================================================
   ALERTS / TOASTR
   ============================================================ */
.alert {
    border-radius: var(--radius);
}

/* ============================================================
   UTILITIES
   ============================================================ */
.bg-primary-dark {
    background-color: var(--primary-dark) !important;
}

.text-primary-dark {
    color: var(--primary-dark) !important;
}

.cursor-pointer {
    cursor: pointer;
}

.fw-600 {
    font-weight: 600 !important;
}

.rounded-lg {
    border-radius: var(--radius) !important;
}

/* ============================================================
   PROFILE PAGE
   ============================================================ */
.profile-page-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

/* ── Hero ─────────────────────────────────────────────── */
.profile-hero {
    display: flex;
    align-items: center;
    gap: 24px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
    border-radius: var(--radius);
    padding: 28px 32px;
    margin-bottom: 24px;
    color: #fff;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

    .profile-hero::before {
        content: '';
        position: absolute;
        top: -50px;
        right: -50px;
        width: 200px;
        height: 200px;
        border-radius: 50%;
        background: rgba(255,255,255,0.07);
        pointer-events: none;
    }

.profile-avatar-ring {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    background: rgba(255,255,255,0.14);
}

.profile-avatar-xl {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255,255,255,0.22);
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.school-logo-img {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 50%;
}

.profile-hero-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: #fff;
}

.profile-hero-code {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.70);
}

.profile-hero-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-top: 6px;
}

.admin-badge {
    background: rgba(255,255,255,0.20);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.30);
}

.school-badge {
    background: rgba(255,255,255,0.20);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.30);
}

/* ── Card ─────────────────────────────────────────────── */
.profile-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid var(--border);
}

.profile-card-header {
    background: linear-gradient(90deg, #f0f6ff 0%, #e8f0fe 100%);
    border-bottom: 1px solid var(--border);
    padding: 14px 24px;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--primary-dark);
}

.profile-card-body {
    padding: 24px;
}

/* ── Labels & Inputs ──────────────────────────────────── */
.profile-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
    display: block;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.profile-input {
    border-radius: 8px;
    border: 1.5px solid var(--border);
    font-size: 0.9rem;
    padding: 8px 12px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

    .profile-input:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
    }

/* ── Info rows (read-only) ────────────────────────────── */
.profile-info-row {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
    border-bottom: 1px solid #f0f6ff;
}

    .profile-info-row:last-child {
        border-bottom: none;
    }

.profile-info-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.profile-info-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    word-break: break-word;
}

/* ── Section divider ──────────────────────────────────── */
.profile-section-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 8px 0 4px;
}

    .profile-section-divider::before,
    .profile-section-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--border);
    }

/* ── Save button ──────────────────────────────────────── */
.profile-save-btn {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 2px 10px rgba(37,99,235,0.25);
}

    .profile-save-btn:hover {
        opacity: 0.92;
        color: #fff;
        transform: translateY(-1px);
        box-shadow: 0 4px 16px rgba(37,99,235,0.38);
    }

/* ── Alert strip ─────────────────────────────────────── */
.profile-alert {
    border-radius: var(--radius);
    margin-bottom: 18px;
}

/* ── Note box ────────────────────────────────────────── */
.profile-note {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.83rem;
    color: #1e40af;
}
