/**
 * KYAU MIS – Digital Memorial & E-Signature Platform
 * Enterprise UI/UX Design System v2.0
 */

/* ===========================
   FONTS
   =========================== */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600&family=Outfit:wght@300;400;500;600;700;800&family=Noto+Sans+Bengali:wght@400;500;600;700&family=Noto+Serif+Bengali:wght@400;600;700&family=Inter:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&display=swap');

/* ===========================
   DESIGN TOKENS – LIGHT MODE
   =========================== */
:root {
    --font-primary:    'Outfit', 'Inter', sans-serif;
    --font-bengali:    'Noto Serif Bengali', serif;
    --font-signature:  'Caveat', cursive;

    /* Core Brand Palette */
    --navy:            #0a2342;
    --navy-mid:        #1a3a5c;
    --navy-light:      #2a5080;
    --green:           #006a4e;        /* KYAU authentic green kept */
    --green-light:     #048259;
    --green-rgb:       0, 106, 78;
    --gold:            #f0a500;
    --gold-dark:       #c8880a;
    --gold-rgb:        240, 165, 0;
    --emerald:         #10b981;
    --emerald-light:   #34d399;

    /* Semantic aliases (Bootstrap override-friendly) */
    --primary:         var(--navy);
    --primary-light:   var(--navy-mid);
    --primary-rgb:     10, 35, 66;
    --accent:          var(--gold);
    --accent-hover:    var(--gold-dark);

    /* Surface & Text */
    --bg-primary:      #f0f4f8;
    --bg-secondary:    #ffffff;
    --bg-muted:        #e8edf3;
    --text-primary:    #0b1728;
    --text-secondary:  #4a5d75;
    --text-muted:      #7a8fa8;
    --border:          #d0dae8;
    --border-light:    #e8edf3;

    /* Shadows */
    --shadow-sm:       0 2px 8px rgba(10,35,66,0.06);
    --shadow-md:       0 8px 24px rgba(10,35,66,0.10);
    --shadow-lg:       0 20px 48px rgba(10,35,66,0.14);
    --shadow-glow:     0 0 0 3px rgba(10,35,66,0.12);
    --card-shadow:     0 4px 16px rgba(10,35,66,0.08), 0 1px 4px rgba(10,35,66,0.04);
    --hover-shadow:    0 12px 32px rgba(10,35,66,0.16), 0 4px 12px rgba(240,165,0,0.10);

    /* State colors */
    --success:         #10b981;
    --danger:          #ef4444;
    --warning:         #f59e0b;
    --info:            #3b82f6;

    /* Layout */
    --transition:      all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm:       8px;
    --radius-md:       14px;
    --radius-lg:       20px;
    --radius-xl:       28px;
    --border-radius:   16px;

    /* Glass */
    --glass-bg:        255, 255, 255;
    --glass-border:    10, 35, 66;
    --glass-border-hover: 240, 165, 0;
}

/* ===========================
   DESIGN TOKENS – DARK MODE
   =========================== */
[data-bs-theme="dark"] {
    --bg-primary:      #080e1a;
    --bg-secondary:    #0f1926;
    --bg-muted:        #151f2e;
    --text-primary:    #e8f0f8;
    --text-secondary:  #8aaccc;
    --text-muted:      #5a7a9a;
    --border:          #1e3048;
    --border-light:    #172540;
    --card-shadow:     0 4px 16px rgba(0,0,0,0.40), 0 1px 4px rgba(0,0,0,0.25);
    --hover-shadow:    0 12px 32px rgba(0,0,0,0.55), 0 4px 12px rgba(240,165,0,0.12);
    --shadow-md:       0 8px 24px rgba(0,0,0,0.40);
    --glass-bg:        15, 25, 38;
    --glass-border:    255, 255, 255;
    --glass-border-hover: 240, 165, 0;
    --primary:         #2a6db5;
    --primary-light:   #3a82d0;
    --primary-rgb:     42, 109, 181;
}

/* ===========================
   BASE RESET
   =========================== */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.35s ease, color 0.35s ease;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

a {
    color: var(--green-light);
    text-decoration: none;
    transition: var(--transition);
}
a:hover { color: var(--gold); }

/* ===========================
   BENGALI LANGUAGE SUPPORT
   =========================== */
body[lang="bn"],
body[lang="bn"] *:not(i):not(.fa):not([class*="fa-"]):not(code):not(pre):not(select):not(option) {
    font-family: 'Noto Sans Bengali', 'Noto Serif Bengali', 'Hind Siliguri', 'SolaimanLipi', serif !important;
    line-height: 1.9;
    letter-spacing: 0;
}
body[lang="bn"] i.fa, body[lang="bn"] i.fas, body[lang="bn"] i.far,
body[lang="bn"] i.fab, body[lang="bn"] i[class^="fa-"],
body[lang="bn"] i[class*=" fa-"],
body[lang="bn"] [class^="fa-"]::before,
body[lang="bn"] [class*=" fa-"]::before {
    font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands', monospace !important;
    font-weight: 900;
}
body[lang="bn"] code, body[lang="bn"] pre, body[lang="bn"] .font-monospace {
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace !important;
}
body[lang="bn"] select, body[lang="bn"] option {
    font-family: 'Noto Sans Bengali', 'Vrinda', 'SolaimanLipi', system-ui, sans-serif !important;
    line-height: 1.6;
}
body[lang="bn"] .btn, body[lang="bn"] .badge, body[lang="bn"] th, body[lang="bn"] td {
    line-height: 1.4 !important;
}

/* ===========================
   ANNOUNCEMENT BAR
   =========================== */
.announcement-bar {
    background: linear-gradient(90deg, var(--navy) 0%, var(--navy-mid) 50%, var(--navy) 100%);
    padding: 8px 0;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    border-bottom: 1px solid rgba(240,165,0,0.3);
    text-align: center;
    letter-spacing: 0.02em;
}
.announcement-bar .live-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #22c55e;
    border-radius: 50%;
    margin-right: 6px;
    box-shadow: 0 0 0 0 rgba(34,197,94,0.7);
    animation: pulse-ring 1.8s infinite;
    vertical-align: middle;
}

/* ===========================
   ENTERPRISE NAVBAR
   =========================== */
.navbar-enterprise {
    background: rgba(10, 35, 66, 0.97) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(240,165,0,0.18);
    box-shadow: 0 2px 20px rgba(0,0,0,0.25);
    padding: 0.65rem 0;
    transition: var(--transition);
}
[data-bs-theme="dark"] .navbar-enterprise {
    background: rgba(5, 12, 25, 0.98) !important;
    border-bottom-color: rgba(240,165,0,0.22);
}
.navbar-enterprise .navbar-brand-text { color: #ffffff; font-weight: 700; font-size: 1rem; line-height: 1.15; }
.navbar-enterprise .navbar-brand-sub  { color: var(--gold); font-size: 0.72rem; font-weight: 500; line-height: 1; }
.navbar-enterprise .nav-link          { color: rgba(255,255,255,0.80) !important; font-weight: 500; padding: 0.5rem 0.85rem !important; border-radius: var(--radius-sm); transition: var(--transition); }
.navbar-enterprise .nav-link:hover    { color: #ffffff !important; background: rgba(255,255,255,0.08); }
.navbar-enterprise .nav-link.active   { color: var(--gold) !important; }
.navbar-enterprise .nav-trust-badge {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 0.68rem; font-weight: 600; color: rgba(255,255,255,0.55);
    border: 1px solid rgba(255,255,255,0.12); border-radius: 20px;
    padding: 3px 9px; text-transform: uppercase; letter-spacing: 0.04em;
}
.navbar-enterprise .nav-trust-badge i { color: var(--emerald); font-size: 0.6rem; }

/* ===========================
   HERO SECTION
   =========================== */
.hero-banner {
    position: relative;
    padding: 5.5rem 0 4.5rem;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0, 106, 78, 0.28) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(240, 165, 0, 0.12) 0%, transparent 55%),
        linear-gradient(160deg, #071629 0%, #0a2342 45%, #0f2d50 100%);
    color: #ffffff;
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, var(--green), var(--gold), var(--green-light)) 1;
    overflow: hidden;
}

.hero-glow-1 {
    position: absolute; width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(240,165,0,0.10) 0%, transparent 65%);
    top: -80px; right: 3%; z-index: 1; pointer-events: none;
    animation: float-slow 18s infinite alternate;
}
.hero-glow-2 {
    position: absolute; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(0,106,78,0.15) 0%, transparent 65%);
    bottom: -200px; left: 10%; z-index: 1; pointer-events: none;
    animation: float-slow 24s infinite alternate-reverse;
}
@keyframes float-slow {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(35px, 25px) scale(1.12); }
}
.hero-banner .container { position: relative; z-index: 2; }
.hero-banner h1 { color: #ffffff; font-size: 2.6rem; line-height: 1.18; font-weight: 800; }

/* University Identity Bar in Hero */
.hero-identity-bar {
    display: flex; align-items: center; gap: 1.25rem;
    padding: 1rem 1.5rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    margin-bottom: 2.5rem;
}
.hero-identity-bar h2 { color: #fff; font-size: 1.25rem; font-weight: 700; margin: 0; letter-spacing: -0.01em; }
.hero-identity-bar h4 { color: var(--gold); font-size: 0.85rem; font-weight: 600; margin: 0; }

/* Campaign badge */
.campaign-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #fff; font-weight: 700; font-size: 0.72rem;
    padding: 5px 14px; border-radius: 20px;
    text-transform: uppercase; letter-spacing: 0.06em;
    box-shadow: 0 4px 12px rgba(240,165,0,0.35);
    margin-bottom: 1rem;
}

/* ===========================
   STAT CARDS (Hero Right Panel)
   =========================== */
.hero-stats-panel {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(16px);
    padding: 1.75rem;
    position: relative; overflow: hidden;
}
.hero-stats-panel::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--green) 0%, var(--gold) 50%, var(--green-light) 100%);
}
.stat-card-v2 {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: var(--radius-md);
    padding: 1rem 1.1rem;
    transition: var(--transition);
    position: relative; overflow: hidden;
}
.stat-card-v2:hover {
    background: rgba(255,255,255,0.10);
    border-color: rgba(240,165,0,0.3);
    transform: translateY(-3px);
}
.stat-card-v2 .stat-icon {
    width: 36px; height: 36px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; flex-shrink: 0;
}
.stat-icon-green  { background: rgba(16,185,129,0.18); color: #34d399; }
.stat-icon-gold   { background: rgba(240,165,0,0.18);  color: var(--gold); }
.stat-icon-blue   { background: rgba(59,130,246,0.18); color: #60a5fa; }
.stat-icon-purple { background: rgba(168,85,247,0.18); color: #c084fc; }
.stat-card-v2 .stat-label { font-size: 0.7rem; font-weight: 600; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.stat-card-v2 .stat-value { font-size: 1.8rem; font-weight: 800; color: #fff; font-family: var(--font-primary); line-height: 1; }
.stat-card-v2 .stat-sub   { font-size: 0.7rem; color: rgba(255,255,255,0.45); margin-top: 5px; }

/* Progress Ring */
.progress-ring-wrap { position: relative; display: flex; align-items: center; gap: 0.75rem; }
.progress-ring { transform: rotate(-90deg); }
.progress-ring-track { fill: none; stroke: rgba(255,255,255,0.10); stroke-width: 4; }
.progress-ring-fill  { fill: none; stroke: url(#ringGradient); stroke-width: 4; stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(0.4,0,0.2,1); }

/* ===========================
   TRUST STRIP
   =========================== */
.trust-strip {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
    padding: 1.1rem 0;
}
.trust-strip-item {
    display: flex; align-items: center; gap: 0.6rem;
    font-size: 0.82rem; font-weight: 600; color: var(--text-secondary);
}
.trust-strip-item i { font-size: 1rem; }
.trust-strip-divider { width: 1px; height: 28px; background: var(--border); margin: 0 1rem; }

/* ===========================
   SECTION SYSTEM
   =========================== */
.section-label {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--green-light);
    background: rgba(0,106,78,0.08); border: 1px solid rgba(0,106,78,0.15);
    padding: 4px 12px; border-radius: 20px; margin-bottom: 0.75rem;
}
[data-bs-theme="dark"] .section-label {
    background: rgba(52,211,153,0.08); border-color: rgba(52,211,153,0.18); color: var(--emerald-light);
}
.section-title {
    font-size: 1.65rem; font-weight: 800; color: var(--text-primary);
    letter-spacing: -0.03em; margin-bottom: 0.35rem;
}
.section-subtitle { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.6; }

/* ===========================
   GLASS CARD  (general)
   =========================== */
.glass-card {
    background: rgba(var(--glass-bg), 0.75);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(var(--glass-border), 0.08);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}
.glass-card:hover {
    box-shadow: var(--hover-shadow);
    transform: translateY(-3px);
    border-color: rgba(var(--glass-border-hover), 0.22);
}

/* ===========================
   CARD PREMIUM
   =========================== */
.card-premium {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    overflow: hidden;
}
.card-premium:hover { box-shadow: var(--hover-shadow); transform: translateY(-3px); }
.card-header-accent { border-left: 5px solid var(--navy); padding-left: 1.25rem; margin-bottom: 2rem; }

/* ===========================
   BUTTONS
   =========================== */
.btn-gradient-primary {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    color: #fff; border: none; font-weight: 600;
    box-shadow: 0 4px 14px rgba(10,35,66,0.30);
    transition: var(--transition);
}
.btn-gradient-primary:hover {
    background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy-light) 100%);
    transform: translateY(-2px); box-shadow: 0 6px 20px rgba(10,35,66,0.40); color: #fff;
}
.btn-gradient-accent {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #fff; border: none; font-weight: 700;
    box-shadow: 0 4px 14px rgba(240,165,0,0.35);
    transition: var(--transition);
}
.btn-gradient-accent:hover {
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
    transform: translateY(-2px); box-shadow: 0 6px 20px rgba(240,165,0,0.45); color: #fff;
}
.btn-sign-primary {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
    color: #fff; border: none; font-weight: 700;
    box-shadow: 0 6px 20px rgba(0,106,78,0.35);
    transition: var(--transition);
    position: relative; overflow: hidden;
}
.btn-sign-primary::after {
    content: ''; position: absolute; top: 50%; left: 50%;
    width: 0; height: 0; background: rgba(255,255,255,0.2);
    border-radius: 50%; transform: translate(-50%,-50%);
    transition: width 0.5s, height 0.5s;
}
.btn-sign-primary:hover::after { width: 300px; height: 300px; }
.btn-sign-primary:hover {
    background: linear-gradient(135deg, var(--green-light) 0%, var(--green) 100%);
    transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,106,78,0.45); color: #fff;
}

/* ===========================
   TRIBUTE CARD
   =========================== */
.tribute-card {
    background: linear-gradient(135deg, rgba(10,35,66,0.03) 0%, rgba(240,165,0,0.02) 100%);
    border-left: 5px solid var(--gold) !important;
    border-radius: 6px 20px 20px 6px;
    position: relative; overflow: hidden; transition: var(--transition);
}
.tribute-card::after {
    content: "\f10e"; font-family: "Font Awesome 6 Free"; font-weight: 900;
    position: absolute; bottom: -15px; right: 15px; font-size: 7rem;
    color: rgba(10,35,66,0.04); pointer-events: none; line-height: 1;
}
[data-bs-theme="dark"] .tribute-card::after { color: rgba(255,255,255,0.03); }
.tribute-card:hover { background: linear-gradient(135deg, rgba(10,35,66,0.05) 0%, rgba(240,165,0,0.04) 100%); transform: translateX(4px); }

/* ===========================
   DOCUMENT READER / MEMORANDUM
   =========================== */
.document-reader {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    padding: 2.5rem 3rem;
    position: relative; overflow: hidden;
}
[data-bs-theme="dark"] .document-reader { background: var(--bg-secondary); }
.document-reader::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px;
    background: linear-gradient(90deg, var(--navy) 0%, var(--gold) 50%, var(--green-light) 100%);
}

/* Memorandum accordion */
.memo-summary {
    font-size: 1rem; line-height: 1.85; color: var(--text-secondary);
    border-left: 3px solid var(--border); padding-left: 1.25rem;
    margin-bottom: 1.5rem;
}
.memo-key-points { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.memo-key-points li {
    display: flex; gap: 0.75rem; align-items: flex-start;
    padding: 0.6rem 0; border-bottom: 1px solid var(--border-light);
    font-size: 0.93rem; color: var(--text-secondary);
}
.memo-key-points li:last-child { border-bottom: none; }
.memo-key-points li i { color: var(--green-light); margin-top: 3px; flex-shrink: 0; }
.memo-accordion-toggle {
    display: flex; align-items: center; gap: 0.6rem;
    background: linear-gradient(135deg, rgba(10,35,66,0.04) 0%, rgba(0,106,78,0.04) 100%);
    border: 1px solid var(--border-light); border-radius: var(--radius-md);
    padding: 0.9rem 1.25rem; font-weight: 600; font-size: 0.9rem;
    color: var(--navy); cursor: pointer; width: 100%; text-align: left;
    transition: var(--transition);
}
[data-bs-theme="dark"] .memo-accordion-toggle { color: var(--emerald-light); background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }
.memo-accordion-toggle:hover { background: rgba(10,35,66,0.08); border-color: var(--navy); }
[data-bs-theme="dark"] .memo-accordion-toggle:hover { background: rgba(255,255,255,0.08); }
.memo-accordion-toggle .toggle-icon { margin-left: auto; transition: transform 0.3s; }
.memo-accordion-toggle.expanded .toggle-icon { transform: rotate(180deg); }
.memo-full-body {
    max-height: 0; overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4,0,0.2,1), opacity 0.4s;
    opacity: 0;
}
.memo-full-body.open { max-height: 4000px; opacity: 1; }
.memo-full-content {
    font-size: 0.95rem; line-height: 1.95; color: var(--text-secondary);
    white-space: pre-wrap; font-family: var(--font-bengali);
    padding: 1.5rem 0.5rem 0.5rem;
}

/* ===========================
   SECURITY TRUST BADGE
   =========================== */
.trust-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, rgba(16,185,129,0.08) 0%, rgba(16,185,129,0.04) 100%);
    border: 1px solid rgba(16,185,129,0.25);
    border-radius: var(--radius-md); padding: 0.65rem 1rem;
    font-size: 0.82rem; font-weight: 600; color: #059669;
}
[data-bs-theme="dark"] .trust-badge { color: var(--emerald-light); background: rgba(16,185,129,0.07); border-color: rgba(16,185,129,0.20); }
.trust-badge i { font-size: 1rem; }

/* ===========================
   SIGNATORY TABLE ENHANCED
   =========================== */
.signatories-container { border-radius: var(--border-radius); overflow: hidden; }
.table-premium {
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-light);
    margin-bottom: 0;
}
.table-premium thead th {
    background: linear-gradient(135deg, rgba(10,35,66,0.05) 0%, rgba(10,35,66,0.02) 100%);
    color: var(--text-primary); font-weight: 700; font-size: 0.78rem;
    text-transform: uppercase; letter-spacing: 0.05em;
    padding: 1rem 1rem; border-bottom: 2px solid var(--border-light);
    white-space: nowrap;
}
[data-bs-theme="dark"] .table-premium thead th { background: rgba(255,255,255,0.04); }
.table-premium tbody tr {
    transition: var(--transition); border-bottom: 1px solid var(--border-light);
}
.table-premium tbody tr:hover { background-color: rgba(10,35,66,0.03) !important; }
[data-bs-theme="dark"] .table-premium tbody tr:hover { background-color: rgba(255,255,255,0.04) !important; }
.table-premium tbody td { padding: 0.9rem 1rem; vertical-align: middle; font-size: 0.88rem; }

/* Avatar initials */
.signatory-avatar {
    width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.72rem; font-weight: 800; color: #fff;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
}

/* Verified badge */
.badge-verified {
    display: inline-flex; align-items: center; gap: 4px;
    background: rgba(16,185,129,0.10); color: #059669;
    border: 1px solid rgba(16,185,129,0.25);
    font-size: 0.7rem; font-weight: 700; padding: 3px 9px; border-radius: 20px;
    white-space: nowrap;
}
[data-bs-theme="dark"] .badge-verified { color: var(--emerald-light); background: rgba(16,185,129,0.08); border-color: rgba(16,185,129,0.20); }
.badge-pending {
    display: inline-flex; align-items: center; gap: 4px;
    background: rgba(245,158,11,0.10); color: #b45309;
    border: 1px solid rgba(245,158,11,0.25);
    font-size: 0.7rem; font-weight: 700; padding: 3px 9px; border-radius: 20px;
}

/* Empty state */
.empty-state {
    padding: 3.5rem 1rem; text-align: center; color: var(--text-muted);
}
.empty-state i { font-size: 2.5rem; margin-bottom: 0.75rem; opacity: 0.4; }
.empty-state p { font-size: 0.9rem; margin: 0; }

/* ===========================
   PAGINATION
   =========================== */
.pagination .page-link {
    color: var(--text-primary); background: var(--bg-secondary);
    border-color: var(--border); transition: var(--transition);
    font-size: 0.83rem; font-weight: 500; border-radius: var(--radius-sm) !important;
    margin: 0 2px;
}
.pagination .page-item.active .page-link {
    background: var(--navy); border-color: var(--navy); color: #fff;
    box-shadow: 0 4px 10px rgba(10,35,66,0.22);
}
.pagination .page-item:not(.active):not(.disabled) .page-link:hover {
    background: rgba(10,35,66,0.06); border-color: var(--navy-mid); color: var(--navy-mid);
}
.pagination .page-item.disabled .page-link { opacity: 0.45; }

/* ===========================
   LIVE STATS ANIMATIONS
   =========================== */
.live-pulse-dot {
    display: inline-block; width: 8px; height: 8px;
    background: #ef4444; border-radius: 50%; margin-right: 5px;
    box-shadow: 0 0 0 0 rgba(239,68,68,0.7);
    animation: pulse-ring 1.5s infinite; vertical-align: middle;
}
@keyframes pulse-ring {
    0%   { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239,68,68,0.7); }
    70%  { transform: scale(1);    box-shadow: 0 0 0 8px rgba(239,68,68,0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up { animation: fadeInUp 0.5s forwards ease-out; }
@keyframes animate-bounce-subtle {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-4px); }
}
.animate-bounce { animation: animate-bounce-subtle 2s ease-in-out infinite; }
.animate-pulse  { animation: pulse-ring 2s infinite; }

/* ===========================
   HOVER LIFT
   =========================== */
.hover-lift { transition: var(--transition); }
.hover-lift:hover { transform: translateY(-4px); box-shadow: var(--hover-shadow); }

/* ===========================
   PROGRESS BAR
   =========================== */
.progress-premium { height: 8px; border-radius: 50px; background: rgba(255,255,255,0.12); overflow: hidden; }
.progress-bar-premium {
    background: linear-gradient(90deg, var(--gold) 0%, var(--green-light) 100%);
    border-radius: 50px; transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}

/* ===========================
   SIGNATURE CANVAS
   =========================== */
.signature-canvas-container {
    position: relative; width: 100%; height: 200px;
    background: #f8fafc; border: 2px dashed var(--border);
    border-radius: var(--border-radius); overflow: hidden;
}
[data-bs-theme="dark"] .signature-canvas-container { background: #0f172a; }
#signature-canvas { width: 100%; height: 100%; cursor: crosshair; }
.signature-typed-preview {
    font-family: var(--font-signature); font-size: 2.75rem; color: var(--navy);
    min-height: 100px; display: flex; align-items: center; justify-content: center;
    border: 2px dashed var(--border); border-radius: var(--border-radius);
    background: #f8fafc; transition: var(--transition);
}
[data-bs-theme="dark"] .signature-typed-preview { background: #0f172a; color: var(--emerald-light); }

/* ===========================
   OTP INPUT
   =========================== */
.otp-input-group input {
    width: 45px; height: 50px; font-size: 1.5rem; text-align: center;
    border-radius: 8px; border: 2px solid var(--border);
    background: var(--bg-primary); color: var(--text-primary); transition: var(--transition);
}
.otp-input-group input:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(10,35,66,0.10); }
#otp-sent-phone { color: var(--text-primary); font-size: 1.05rem; font-weight: 700; letter-spacing: 1.5px; }
[data-bs-theme="dark"] #otp-sent-phone { color: #4ade80; }

/* ===========================
   WIZARD STEPPER
   =========================== */
.step-dot {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--border); color: var(--text-secondary);
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; transition: var(--transition);
}
.step-dot.active   { background: var(--navy); color: #fff; box-shadow: 0 0 0 4px rgba(10,35,66,0.15); }
.step-dot.completed{ background: var(--success); color: #fff; }
.wizard-step-item  { display: flex; flex-direction: column; align-items: center; text-align: center; flex: 1; min-width: 0; padding: 0 4px; }
.wizard-step-label { display: block; margin-top: 8px; font-size: 0.68rem; font-weight: 600; color: var(--text-secondary); line-height: 1.3; white-space: normal; word-break: break-word; overflow-wrap: anywhere; max-width: 100%; }
@media (max-width: 576px) { .wizard-step-label { font-size: 0.6rem; } .wizard-step-item { padding: 0 2px; } }

/* ===========================
   QR CODE
   =========================== */
#qrcode { background: #fff; padding: 1rem; border-radius: var(--border-radius); display: inline-block; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }

/* ===========================
   COMMITTEE MEMBERS
   =========================== */
.committee-member {
    display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem;
    border: 1px solid var(--border-light); border-radius: var(--radius-md);
    background: var(--bg-secondary); transition: var(--transition);
}
.committee-member:hover { border-color: var(--navy-mid); transform: translateX(4px); box-shadow: var(--card-shadow); }
.committee-member img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }

/* ===========================
   SHARING CARD
   =========================== */
.share-btn {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    padding: 0.55rem 1rem; border-radius: var(--radius-md);
    font-size: 0.82rem; font-weight: 600; transition: var(--transition);
}

/* ===========================
   STICKY MOBILE CTA
   =========================== */
.sticky-sign-cta {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 1040;
    padding: 0.8rem 1rem;
    background: rgba(10,35,66,0.97);
    backdrop-filter: blur(14px);
    border-top: 2px solid var(--gold);
    box-shadow: 0 -6px 24px rgba(0,0,0,0.30);
}
@media (max-width: 991px) {
    .sticky-sign-cta { display: block; }
    body { padding-bottom: 72px; }
}

/* ===========================
   FOOTER ENTERPRISE
   =========================== */
.footer-enterprise {
    background: linear-gradient(180deg, var(--navy) 0%, #061020 100%);
    color: rgba(255,255,255,0.70);
    border-top: 3px solid;
    border-image: linear-gradient(90deg, var(--green), var(--gold), var(--green-light)) 1;
    padding: 3.5rem 0 1.5rem;
}
.footer-enterprise h6 { color: #fff; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; }
.footer-enterprise a  { color: rgba(255,255,255,0.60); font-size: 0.85rem; display: block; padding: 3px 0; transition: var(--transition); }
.footer-enterprise a:hover { color: var(--gold); }
.footer-enterprise a.footer-dev-link {
    display: inline-flex !important;
    align-items: center;
    padding: 0 !important;
    font-size: inherit;
    color: rgba(255,255,255,0.55) !important;
    text-decoration: none !important;
    vertical-align: middle;
}
.footer-enterprise a.footer-dev-link:hover {
    color: var(--gold) !important;
    text-decoration: underline !important;
}
.footer-enterprise p  { font-size: 0.82rem; color: rgba(255,255,255,0.50); line-height: 1.6; }
.footer-trust-item {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.72rem; font-weight: 600; color: rgba(255,255,255,0.55);
    border: 1px solid rgba(255,255,255,0.12); border-radius: 20px;
    padding: 4px 10px; margin: 3px;
}
.footer-trust-item i { color: var(--emerald-light); }
.footer-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 2rem 0 1.5rem; }

/* ===========================
   THEME / LANGUAGE CONTROLS
   =========================== */
.controls-floating {
    position: fixed; bottom: 2rem; right: 2rem; z-index: 1050;
    display: flex; flex-direction: column; gap: 0.5rem;
}
@media (max-width: 991px) { .controls-floating { bottom: 5.5rem; } }
.btn-floating {
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18); border: none; transition: var(--transition);
}
.btn-floating:hover { transform: scale(1.12); }

/* ===========================
   SKELETON LOADERS
   =========================== */
.skeleton-line, .skeleton-circle {
    background: linear-gradient(90deg, rgba(10,35,66,0.04) 25%, rgba(10,35,66,0.09) 50%, rgba(10,35,66,0.04) 75%);
    background-size: 200% 100%; animation: skeleton-loading 1.5s infinite; display: inline-block;
}
.skeleton-line   { border-radius: 4px; }
.skeleton-circle { border-radius: 50%; }
[data-bs-theme="dark"] .skeleton-line, [data-bs-theme="dark"] .skeleton-circle {
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.07) 50%, rgba(255,255,255,0.03) 75%);
    background-size: 200% 100%;
}
@keyframes skeleton-loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ===========================
   SORTABLE TABLE HEADERS
   =========================== */
th.sortable { cursor: pointer; transition: background-color 0.2s; }
th.sortable:hover { background-color: rgba(10,35,66,0.06) !important; }
th.sortable .sort-icon { display: inline-block; transition: color 0.2s; }

/* ===========================
   DEBUG PANEL
   =========================== */
.debug-otp-panel { background: #fffbeb; border: 1px dashed #f59e0b; border-radius: 8px; padding: 1rem; margin-top: 1rem; font-family: monospace; }
[data-bs-theme="dark"] .debug-otp-panel { background: #1e1e10; border-color: #b45309; }

/* ===========================
   SMOOTH THEME TRANSITIONS
   =========================== */
html, body, .card, .glass-card, .btn, .navbar, footer, table, th, td, select, input {
    transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

/* ===========================
   SCROLLBAR
   =========================== */
::-webkit-scrollbar       { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ===========================
   STATS CARD OVERFLOW FIX
   =========================== */
#stats-grid .card .d-flex > span:first-child { min-width: 0; overflow: hidden; word-break: break-word; white-space: normal; line-height: 1.3; flex: 1; }
#stats-grid .card .d-flex > span:last-child   { flex-shrink: 0; }

/* ===========================
   TOAST
   =========================== */
.toast-container { z-index: 1100; }

/* ===========================
   RESPONSIVE TWEAKS
   =========================== */
@media (max-width: 768px) {
    .hero-banner { padding: 3.5rem 0 3rem; }
    .hero-banner h1 { font-size: 1.75rem; }
    .hero-identity-bar { flex-direction: column; text-align: center; gap: 0.75rem; }
    .hero-identity-bar h2 { font-size: 1rem; }
    .document-reader { padding: 1.5rem 1.25rem; }
    .section-title { font-size: 1.3rem; }
    .stat-card-v2 .stat-value { font-size: 1.5rem; }
}
@media (max-width: 576px) {
    .trust-strip-divider { display: none; }
    .hero-stats-panel { padding: 1.25rem; }
}

/* ===========================
   DARK MODE TEXT COLOR HELPER CLASSES
   =========================== */
.text-navy-theme {
    color: var(--navy);
}
[data-bs-theme="dark"] .text-navy-theme {
    color: var(--text-primary);
}

.btn-share-link-theme {
    background: rgba(10, 35, 66, 0.07);
    color: var(--navy);
    border: 1px solid rgba(10, 35, 66, 0.15);
}
[data-bs-theme="dark"] .btn-share-link-theme {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.12);
}
.btn-share-link-theme:hover {
    background: rgba(10, 35, 66, 0.12);
    color: var(--navy);
}
[data-bs-theme="dark"] .btn-share-link-theme:hover {
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
}

.btn-share-whatsapp-theme {
    background: rgba(37, 211, 102, 0.10);
    color: #1a8a44;
    border: 1px solid rgba(37, 211, 102, 0.25);
}
[data-bs-theme="dark"] .btn-share-whatsapp-theme {
    background: rgba(37, 211, 102, 0.12);
    color: #4ade80;
    border-color: rgba(37, 211, 102, 0.30);
}
.btn-share-whatsapp-theme:hover {
    background: rgba(37, 211, 102, 0.15);
    color: #1a8a44;
}
[data-bs-theme="dark"] .btn-share-whatsapp-theme:hover {
    background: rgba(37, 211, 102, 0.20);
    color: #22c55e;
}

/* ===========================
   NAVBAR TOGGLER LIGHT MODE CONTRAST FIX
   =========================== */
.navbar-enterprise .navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    outline: none;
}
.navbar-enterprise .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(240, 165, 0, 0.3) !important;
}
.navbar-enterprise .navbar-toggler-icon {
    filter: invert(1) brightness(1.5) !important;
}


