/* ==========================================================================
   NR MIZO SOLUTIONS — SANITATION CIVIC PORTAL
   Ultra-Clean, Professional, Minimalist, Mobile-First (No Emojis)
   ========================================================================== */

/* ─── Global Reset & Typography ─────────────────────────────────────────── */
body {
    background-color: #f8fafc;
    color: #1e293b;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body.dark-mode {
    background-color: #0b0f19;
    color: #f1f5f9;
}

/* ─── Responsive Header Navigation ──────────────────────────────────────── */
.san-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(4, 120, 87, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

body.dark-mode .san-header {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.san-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.san-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #ffffff;
    flex-shrink: 0;
}

.san-brand-img {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.san-brand-text h1 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.2px;
}

.san-brand-text p {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 2px 0 0 0;
}

/* Desktop Navigation Links */
.san-nav-desktop {
    display: flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 960px) {
    .san-nav-desktop {
        display: none !important;
    }
}

.san-nav-link,
button.san-nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.2;
    padding: 8px 14px;
    border-radius: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, background 0.2s ease;
}

/* Bottom Horizontal Active/Hover Indicator Line */
.san-nav-link::after,
button.san-nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2.5px;
    background: #ffffff;
    border-radius: 9999px;
    transform: translateX(-50%);
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s ease;
}

body.dark-mode .san-nav-link::after,
body.dark-mode button.san-nav-link::after {
    background: #34d399;
}

.san-nav-link:hover,
button.san-nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

.san-nav-link:hover::after,
button.san-nav-link:hover::after {
    width: 50%;
}

.san-nav-link.active,
button.san-nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    font-weight: 700;
}

.san-nav-link.active::after,
button.san-nav-link.active::after {
    width: calc(100% - 20px);
    background: #ffffff;
}

body.dark-mode .san-nav-link.active,
body.dark-mode button.san-nav-link.active {
    background: rgba(16, 185, 129, 0.22);
    color: #34d399;
}

body.dark-mode .san-nav-link.active::after,
body.dark-mode button.san-nav-link.active::after {
    background: #34d399;
}

/* Desktop-Only Action Controls (Pay Fee & Dark Mode) */
.san-nav-desktop-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

@media (max-width: 960px) {
    .san-nav-desktop-actions {
        display: none !important;
    }
}

.san-header-cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 9999px;
    background: #ffffff;
    color: #047857;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.san-header-cta-btn:hover {
    background: #f0fdf4;
    transform: translateY(-1px);
}

body.dark-mode .san-header-cta-btn {
    background: #10b981;
    color: #064e3b;
}

.san-theme-toggle {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 9999px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

body.dark-mode .san-theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Mobile Hamburger Toggle */
.san-nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    cursor: pointer;
    padding: 7px;
    transition: all 0.25s ease;
}

@media (max-width: 960px) {
    .san-nav-hamburger {
        display: flex !important;
    }
}

.san-nav-hamburger .san-bar {
    width: 100%;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.san-nav-hamburger.open .san-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.san-nav-hamburger.open .san-bar:nth-child(2) {
    opacity: 0;
}
.san-nav-hamburger.open .san-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer Menu (Contains Nav Links, Pay Fee, and Dark Mode) */
.san-mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(4, 120, 87, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
    padding: 1.2rem 1.25rem 1.5rem;
    z-index: 999;
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

body.dark-mode .san-mobile-menu {
    background: rgba(15, 23, 42, 0.98);
}

.san-mobile-menu.open {
    display: block;
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.san-mobile-menu-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 500px;
    margin: 0 auto;
}

.san-mobile-link,
button.san-mobile-link {
    position: relative;
    display: block;
    padding: 12px 18px;
    color: #ffffff;
    text-decoration: none;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.3;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    border: none;
    cursor: pointer;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    transition: background 0.2s ease, color 0.2s ease;
}

/* Horizontal Indicator line under mobile link */
.san-mobile-link::after,
button.san-mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    width: 0;
    height: 3px;
    background: #ffffff;
    border-radius: 9999px;
    transition: width 0.25s ease;
}

body.dark-mode .san-mobile-link::after,
body.dark-mode button.san-mobile-link::after {
    background: #34d399;
}

.san-mobile-link:hover,
button.san-mobile-link:hover {
    background: rgba(255, 255, 255, 0.16);
}

.san-mobile-link.active,
button.san-mobile-link.active {
    background: rgba(255, 255, 255, 0.24);
}

.san-mobile-link.active::after,
button.san-mobile-link.active::after {
    width: calc(100% - 36px);
}

body.dark-mode .san-mobile-link.active,
body.dark-mode button.san-mobile-link.active {
    background: rgba(16, 185, 129, 0.24);
    color: #34d399;
}

.san-mobile-actions-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.san-mobile-actions-row .san-btn {
    padding: 12px;
    font-size: 0.92rem;
    font-weight: 800;
    border-radius: 10px;
}

.san-mobile-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    margin: 6px 0;
}

.san-mobile-sublink {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.82rem;
    padding: 5px 12px;
}

.san-mobile-sublink:hover {
    color: #ffffff;
    text-decoration: underline;
}

.san-mobile-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: 998;
}

.san-mobile-backdrop.open {
    display: block;
}

/* ─── Minimalist Clean Hero ─────────────────────────────────────────────── */
.san-clean-hero {
    text-align: center;
    padding: 3rem 1.25rem 1.5rem;
    max-width: 760px;
    margin: 0 auto;
}

.san-hero-tag {
    display: inline-block;
    padding: 5px 14px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 9999px;
    color: #047857;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

body.dark-mode .san-hero-tag {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(52, 211, 153, 0.3);
    color: #34d399;
}

.san-clean-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 900;
    color: #0f172a;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 0.8rem 0;
}

body.dark-mode .san-clean-hero h1 {
    color: #f8fafc;
}

.san-clean-hero h1 .text-green {
    color: #059669;
}

body.dark-mode .san-clean-hero h1 .text-green {
    color: #34d399;
}

.san-clean-hero p {
    font-size: 1.05rem;
    color: #64748b;
    margin: 0 auto;
    max-width: 600px;
    line-height: 1.5;
}

body.dark-mode .san-clean-hero p {
    color: #94a3b8;
}

/* ─── Hero Instant Lookup & Pay Card ────────────────────────────────────── */
.san-instant-card-wrap {
    max-width: 720px;
    margin: 1.5rem auto 2.5rem;
    padding: 0 1rem;
}

.san-instant-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

body.dark-mode .san-instant-card {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.san-instant-header {
    margin-bottom: 1.25rem;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

body.dark-mode .san-instant-header {
    border-bottom-color: #334155;
}

.san-instant-header h2 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

body.dark-mode .san-instant-header h2 {
    color: #f8fafc;
}

.san-lookup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

@media (max-width: 600px) {
    .san-lookup-grid {
        grid-template-columns: 1fr;
    }
}

.san-field-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.san-field-group label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #475569;
}

body.dark-mode .san-field-group label {
    color: #cbd5e1;
}

/* Bill Selected Preview Bar */
.san-selected-bill-bar {
    background: #ecfdf5;
    border: 1.5px solid #a7f3d0;
    border-radius: 14px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 14px;
}

body.dark-mode .san-selected-bill-bar {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(52, 211, 153, 0.3);
}

.san-bill-info strong {
    font-size: 1.05rem;
    color: #064e3b;
    display: block;
}

body.dark-mode .san-bill-info strong {
    color: #f8fafc;
}

.san-bill-info span {
    font-size: 0.8rem;
    color: #047857;
}

body.dark-mode .san-bill-info span {
    color: #a7f3d0;
}

.san-bill-amount-block {
    display: flex;
    align-items: center;
    gap: 12px;
}

.san-bill-total-price {
    font-size: 1.4rem;
    font-weight: 900;
    color: #047857;
}

body.dark-mode .san-bill-total-price {
    color: #34d399;
}

/* ─── 4 Sleek Action Tiles ──────────────────────────────────────────────── */
.san-action-tiles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    max-width: 900px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
}

@media (max-width: 840px) {
    .san-action-tiles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .san-action-tiles-grid {
        grid-template-columns: 1fr;
    }
}

.san-tile {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px 16px;
    text-decoration: none;
    color: #1e293b;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

body.dark-mode .san-tile {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

.san-tile:hover {
    border-color: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.12);
}

.san-tile-title {
    font-size: 0.98rem;
    font-weight: 800;
    margin: 0 0 4px 0;
}

.san-tile-desc {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0;
}

body.dark-mode .san-tile-desc {
    color: #94a3b8;
}

/* ─── Compact Helpline Strip ────────────────────────────────────────────── */
.san-helpline-strip {
    max-width: 720px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
}

.san-helpline-box {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

body.dark-mode .san-helpline-box {
    background: #1e293b;
    border-color: #334155;
}

.san-helpline-text {
    font-size: 0.88rem;
    color: #334155;
}

body.dark-mode .san-helpline-text {
    color: #cbd5e1;
}

.san-helpline-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: #047857;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 700;
}

/* ─── Dedicated Sub-page Common Layouts ─────────────────────────────────────── */
.san-page-hero {
    padding: 2.5rem 1.25rem 1.5rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.san-page-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 900;
    color: #0f172a;
    line-height: 1.2;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
}

body.dark-mode .san-page-hero h1 {
    color: #f8fafc;
}

.san-page-hero p {
    font-size: 1rem;
    color: #64748b;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

body.dark-mode .san-page-hero p {
    color: #94a3b8;
}

.san-breadcrumb-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.san-breadcrumb-bar a {
    color: #047857;
    text-decoration: none;
    font-weight: 600;
}

body.dark-mode .san-breadcrumb-bar a {
    color: #34d399;
}

/* Two-column page layout with sticky TOC */
.san-page-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto 3rem;
    padding: 0 1.25rem;
}

@media (max-width: 880px) {
    .san-page-grid {
        grid-template-columns: 1fr;
    }
}

.san-page-toc {
    position: sticky;
    top: 80px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

body.dark-mode .san-page-toc {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.san-page-toc h4 {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.5px;
    margin: 0 0 10px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

body.dark-mode .san-page-toc h4 {
    border-bottom-color: #334155;
    color: #94a3b8;
}

.san-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.san-toc-list a {
    display: block;
    color: #475569;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

body.dark-mode .san-toc-list a {
    color: #cbd5e1;
}

.san-toc-list a:hover,
.san-toc-list a.active {
    background: #ecfdf5;
    color: #047857;
    font-weight: 700;
}

body.dark-mode .san-toc-list a:hover,
body.dark-mode .san-toc-list a.active {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

/* Article / Content Container */
.san-page-article {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 32px 36px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    line-height: 1.7;
    color: #334155;
}

@media (max-width: 640px) {
    .san-page-article {
        padding: 22px 16px;
    }
}

body.dark-mode .san-page-article {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.san-legal-section {
    margin-bottom: 2rem;
    scroll-margin-top: 90px;
}

.san-legal-section:last-child {
    margin-bottom: 0;
}

.san-legal-section h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

body.dark-mode .san-legal-section h2 {
    color: #f8fafc;
}

.san-legal-section p {
    font-size: 0.92rem;
    margin-bottom: 0.8rem;
}

.san-legal-section ul,
.san-legal-section ol {
    padding-left: 20px;
    margin-bottom: 1rem;
}

.san-legal-section li {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.san-info-alert {
    background: #ecfdf5;
    border: 1.5px solid #a7f3d0;
    border-radius: 12px;
    padding: 14px 18px;
    margin: 1rem 0;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

body.dark-mode .san-info-alert {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(52, 211, 153, 0.3);
}

.san-info-alert p {
    margin: 0;
    font-size: 0.86rem;
    color: #065f46;
    line-height: 1.5;
}

body.dark-mode .san-info-alert p {
    color: #a7f3d0;
}

/* ─── Clean Minimalist Footer ───────────────────────────────────────────── */
.san-clean-footer {
    border-top: 1px solid #e2e8f0;
    padding: 2rem 1.25rem;
    text-align: center;
    background: #ffffff;
}

body.dark-mode .san-clean-footer {
    background: #0f172a;
    border-top-color: #1e293b;
}

.san-footer-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.san-footer-nav a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}

body.dark-mode .san-footer-nav a {
    color: #94a3b8;
}

.san-footer-nav a:hover {
    color: #047857;
    text-decoration: underline;
}

body.dark-mode .san-footer-nav a:hover {
    color: #34d399;
}

.san-clean-footer p {
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 0;
}

/* ─── Modern Collector Login Modal Popup ────────────────────────────────── */
.san-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    z-index: 9999;
    animation: sanModalFadeIn 0.22s ease-out;
}

@keyframes sanModalFadeIn {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

.san-modal-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    width: 100%;
    max-width: 480px;
    padding: 2rem 1.8rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
    position: relative;
}

body.dark-mode .san-modal-card {
    background: #0f172a;
    border-color: #1e293b;
}

.san-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 1rem;
}

body.dark-mode .san-modal-header {
    border-bottom-color: #1e293b;
}

.san-modal-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #047857;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 12px rgba(4, 120, 87, 0.25);
    flex-shrink: 0;
}

.san-modal-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

body.dark-mode .san-modal-title {
    color: #f8fafc;
}

.san-modal-subtitle {
    font-size: 0.8rem;
    color: #64748b;
    margin: 2px 0 0 0;
}

body.dark-mode .san-modal-subtitle {
    color: #94a3b8;
}

.san-modal-close-btn {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.15s;
}

.san-modal-close-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

body.dark-mode .san-modal-close-btn:hover {
    background: #1e293b;
    color: #ffffff;
}

.san-alert {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.84rem;
    line-height: 1.4;
}

.san-alert-danger {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

body.dark-mode .san-alert-danger {
    background: rgba(185, 28, 28, 0.2);
    color: #fca5a5;
    border-color: rgba(185, 28, 28, 0.4);
}

/* ─── Ultra-Smooth Single Page Application (SPA) Transition Styles ──────── */
#san-spa-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #10b981, #34d399, #6ee7b7);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.8);
    z-index: 99999;
    transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.28s ease;
    pointer-events: none;
}

main {
    transition: opacity 0.16s ease, transform 0.16s ease;
}

main.spa-loading {
    opacity: 0.35;
    transform: translateY(4px);
    pointer-events: none;
}
