/* ==========================================================================
   Help Madhes – Comprehensive Responsive Design System
   Mobile-First Approach | 3 Breakpoints
   Mobile: 320px – 767px | Tablet: 768px – 1024px | Desktop: 1025px+
   ========================================================================== */

/* ==========================================================================
   BASE / MOBILE STYLES (Default — applies to ALL devices unless overridden)
   ========================================================================== */

/* ── Reset & Accessibility ── */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
}

body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    position: relative;
    min-width: 320px;
    margin: 0;
    padding: 0;
    padding-top: 60px !important;
    padding-bottom: 68px !important;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

/* ── Touch-Friendly Base ── */
a, button, [role="button"], input[type="submit"] {
    touch-action: manipulation;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

/* ==========================================================================
   TOP BAR — Hidden on Mobile, shown via media queries above
   ========================================================================== */

.top-bar {
    display: none;
}

/* ==========================================================================
   HEADER — Mobile First
   ========================================================================== */

.site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
}

.header-inner {
    padding: 0.75rem 1rem;
    flex-wrap: nowrap;
    gap: 0.5rem;
}

/* Brand Logo – Mobile */
.brand-logo {
    gap: 0.5rem;
    flex-shrink: 0;
    min-width: 0;
}

.logo-symbol-wrap {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.brand-logo-img {
    max-width: 36px;
    max-height: 36px;
}

.logo-symbol {
    width: 36px;
    height: 36px;
    font-size: 1rem;
}

.brand-text .brand-title,
.brand-text h1 {
    font-size: 1.05rem;
    letter-spacing: -0.3px;
}

/* Hide tagline on mobile for clean header */
.brand-text .brand-sub,
.brand-text span {
    display: none;
}

/* Direct navigation and menu button responsiveness on mobile */
@media (max-width: 680px) {
    .header-direct-nav {
        display: none !important;
    }
    .header-login-link {
        display: none !important;
    }
    .header-donate-btn {
        padding: 0.35rem 0.75rem !important;
        font-size: 0.8rem !important;
    }
    .btn-master-menu {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .btn-master-menu .menu-label {
        display: none !important;
    }
    .central-press-notice-bar {
        font-size: 0.76rem !important;
        padding: 0.35rem 0.6rem !important;
    }
    .notice-live-chip {
        font-size: 0.68rem !important;
        padding: 1px 6px !important;
    }
}

.mobile-toggle {
    display: none !important;

    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1.35rem;
    color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
}

.mobile-toggle:hover {
    background: var(--bg-main);
    border-color: var(--secondary);
    color: var(--secondary-hover);
}

/* ── Mobile Nav Drawer ── */
.nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%);
    visibility: hidden;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background: var(--bg-card);
    flex-direction: column !important;
    align-items: stretch !important;
    list-style: none;
    padding: 4.5rem 1.25rem 1.25rem;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
    z-index: 1100;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
    overflow-y: auto;
    gap: 0 !important;
}

.nav-menu.active {
    transform: translateX(0);
    visibility: visible;
}

/* Mobile Nav Overlay Backdrop */
.nav-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 49, 0.55);
    backdrop-filter: blur(3px);
    z-index: 1050;
}

.nav-backdrop.active {
    display: block;
}

/* Close button injected by JS inside drawer */
.nav-drawer-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--text-muted);
    z-index: 10;
}

.nav-menu .nav-link {
    display: block;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.25rem;
}

.nav-menu .nav-link:hover,
.nav-menu .nav-link.active {
    background: var(--secondary-light);
    color: var(--secondary-hover);
    padding-left: 1.25rem;
}

.nav-menu .nav-link.active::after {
    display: none;
}

/* Header Actions – Mobile: Only Donate Now */
.header-actions {
    gap: 0.5rem;
    flex-shrink: 0;
}

.header-actions .btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    min-height: 38px;
}

.header-actions .btn-outline,
.header-actions .btn-primary {
    display: none;
}

.header-actions .btn-secondary {
    display: inline-flex;
}

/* ==========================================================================
   CONTAINER – Mobile Padding
   ========================================================================== */

.container {
    padding: 0 1rem;
}

/* ==========================================================================
   HERO SECTION – Mobile First
   ========================================================================== */

/* Cinematic 16:9 Banner Ratio for Large, Clean Video & Photo Playback */
.hero-slider-container {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    min-height: 220px !important;
    max-height: 290px !important;
    overflow: hidden;
}

.hero-slide-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important; /* Top of wallpaper/photo never cut off */
}

.hero-slide-img.hero-slide-img-contain {
    object-fit: contain !important;
    object-position: center center !important;
    background: #ffffff !important;
}

.hero-slide-item {
    padding: 0.35rem 0.5rem !important;
    align-items: flex-end !important;
}

.hero-slider-container .hero-tag,
.hero-slider-container .hero-desc {
    display: none !important; /* Keep wallpaper 100% visible without text clutter on mobile */
}

.hero-slider-container .hero-title {
    font-size: clamp(0.75rem, 2.8vw, 0.95rem) !important;
    margin: 0 0 2px !important;
    line-height: 1.2 !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.9);
}

.hero-video-actions {
    flex-direction: row;
    gap: 4px !important;
    width: 100%;
    justify-content: center;
    margin-top: 2px !important;
}

.hero-video-actions .btn {
    padding: 2px 8px !important;
    font-size: 0.68rem !important;
    border-radius: 6px !important;
}

.hero-slider-dots {
    bottom: 3px !important;
    gap: 4px !important;
}

.hero-slider-dot {
    width: 6px !important;
    height: 6px !important;
}

.hero-slider-dot.active {
    width: 14px !important;
}

.hero-slider-nav {
    width: 26px !important;
    height: 26px !important;
    font-size: 1.1rem !important;
}

.hero-compact-stats-strip {
    padding: 0.28rem 0.4rem !important;
}

.hero-compact-stats-grid {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 0.2rem !important;
}

.compact-stat-item {
    flex: 1 !important;
    padding: 1px 2px !important;
}

.compact-stat-item h4 {
    font-size: 0.74rem !important;
    margin: 0 !important;
    line-height: 1.15 !important;
}

.compact-stat-item p {
    font-size: 0.54rem !important;
    margin: 0 !important;
    line-height: 1.15 !important;
    letter-spacing: -0.2px;
}

/* App Action Grid on Mobile - 2x2 touch cards */
.app-action-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.6rem !important;
}

.action-levels-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.video-player-frame {
    height: 220px;
}

.hero-section {
    padding: 3rem 0 2.5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.hero-title {
    font-size: 1.9rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.hero-cta {
    flex-direction: column;
    gap: 0.75rem;
}

.hero-cta .btn {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    min-height: 50px;
}

.hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding-top: 1.5rem;
}

.stat-item h3 {
    font-size: 1.5rem;
}

.stat-item p {
    font-size: 0.75rem;
}

.hero-card-preview {
    padding: 1.25rem;
}

/* ==========================================================================
   SECTIONS – Mobile First
   ========================================================================== */

.section {
    padding: 3rem 0;
}

.section-header {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.75rem;
}

.section-desc {
    font-size: 0.95rem;
}

/* ==========================================================================
   CARDS GRID – Mobile (Single Column)
   ========================================================================== */

.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.campaign-card {
    max-width: 100%;
}

.card-img-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
}

.card-body {
    padding: 1.25rem;
}

.card-title {
    font-size: 1.1rem;
}

/* ==========================================================================
   TEAM CARDS – Mobile (Single Column)
   ========================================================================== */

.teams-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.team-card {
    padding: 1.25rem;
}

/* ==========================================================================
   FORMS – Mobile (Full Width, iOS Zoom Prevention)
   ========================================================================== */

.form-card {
    padding: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

/* Font-size 16px prevents auto-zoom on iOS */
.form-control,
select.form-control,
textarea.form-control {
    font-size: 1rem;
    padding: 0.85rem 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

/* ==========================================================================
   AUTH PAGES (Login & Register) – Mobile First (<768px)
   ========================================================================== */

.auth-page-wrapper {
    padding: 1.5rem 0 3rem;
    min-height: auto;
}

.auth-grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.auth-showcase-panel {
    padding: 1.5rem;
    border-radius: 18px;
    order: 2;
}

.auth-showcase-panel h2 {
    font-size: 1.45rem;
}

.auth-form-panel {
    padding: 1.6rem 1.25rem;
    border-radius: 18px;
    order: 1;
}

.auth-mobile-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border-color);
}

.auth-mobile-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex-shrink: 0;
}

.auth-steps-bar {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
}

.step-indicator {
    padding: 6px 10px;
    font-size: 0.74rem;
}

.quick-demo-pills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.quick-role-pill {
    justify-content: center;
    padding: 8px 6px;
    font-size: 0.74rem;
}

/* Smart Hero Card – Mobile */
.smart-hero-card {
    padding: 1.15rem;
    border-radius: 18px;
    margin-top: 1rem;
}

.smart-tabs-nav {
    gap: 3px;
    padding: 4px;
}

.smart-tab-btn {
    padding: 0.45rem 0.55rem;
    font-size: 0.72rem;
}

/* Page Specific Grids – Mobile */
.developer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.project-feature-card,
.project-feature-card.is-even {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
}

.contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
}

.card-preview-wrapper,
.cert-preview-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0.5rem 0;
}

/* ==========================================================================
   TABLES – Horizontal Scroll on Mobile
   ========================================================================== */

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Scroll hint */
.table-responsive::before {
    content: "← Scroll to see more →";
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    padding: 0.3rem 0;
    background: var(--bg-main);
}

.data-table {
    min-width: 540px;
    font-size: 0.85rem;
}

.data-table th,
.data-table td {
    padding: 0.7rem 0.75rem;
    white-space: nowrap;
}

/* ==========================================================================
   DONATE WRAPPER – Mobile (Stacked)
   ========================================================================== */

.donate-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.bank-info-box {
    padding: 1.5rem;
}

.qr-codes-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

/* ==========================================================================
   ADMIN / DASHBOARD – Mobile First
   ========================================================================== */

.admin-layout {
    flex-direction: column;
}

.admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1050;
    transform: translateX(-100%);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.4);
}

.admin-sidebar.open,
.admin-sidebar.active {
    transform: translateX(0);
}

.sidebar-close-btn {
    display: flex !important;
}

.admin-mobile-toggle {
    display: block !important;
}

.admin-body {
    padding: 1rem;
}

.admin-topbar {
    padding: 0.85rem 1rem;
    flex-wrap: wrap;
}

.admin-topbar h2 {
    font-size: 1.1rem;
}

.kpi-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
}

.kpi-card {
    padding: 1rem;
}

.kpi-info h3 {
    font-size: 1.45rem;
}

.admin-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
}

.admin-card-header .btn {
    width: 100%;
    justify-content: center;
}

.admin-card-body {
    padding: 1rem;
}

/* Modal – Mobile: bottom sheet */
.modal-overlay {
    padding: 0;
    align-items: flex-end;
}

.modal-box {
    max-height: 92vh;
    border-radius: 16px 16px 0 0;
    width: 100%;
    max-width: 100%;
}

.modal-footer {
    flex-direction: column;
    gap: 0.5rem;
}

.modal-footer .btn {
    width: 100%;
    justify-content: center;
}

/* ==========================================================================
   FOOTER – Mobile (Single Column)
   ========================================================================== */

.site-footer {
    padding: 2.5rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.8rem;
    padding-top: 1.25rem;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.hide-mobile { display: none !important; }
.show-mobile { display: block !important; }

/* ==========================================================================
   ╔══════════════════════════════════════════╗
   ║  TABLET LAYOUT  (768px – 1024px)         ║
   ╚══════════════════════════════════════════╝
   ========================================================================== */

@media (min-width: 768px) and (max-width: 1024px) {

    /* Container */
    .container {
        padding: 0 1.5rem;
    }

    /* ── Top Bar ── */
    .top-bar {
        display: block;
    }

    .top-bar-inner {
        flex-direction: column;
        gap: 0.3rem;
        text-align: center;
    }

    .top-bar-left,
    .top-bar-right {
        gap: 0.9rem;
        font-size: 0.78rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* ── Header ── */
    .header-inner {
        padding: 0.85rem 0;
    }

    .logo-symbol-wrap { width: 42px; height: 42px; }
    .brand-logo-img { max-width: 42px; max-height: 42px; }
    .logo-symbol { width: 42px; height: 42px; font-size: 1.2rem; }

    .brand-text .brand-title,
    .brand-text h1 { font-size: 1.2rem; }

    /* Show tagline on tablet */
    .brand-text .brand-sub,
    .brand-text span {
        display: block;
        font-size: 0.72rem;
    }

    /* Header direct nav & menu on tablet */
    .header-direct-nav {
        display: flex !important;
        gap: 0.9rem !important;
    }
    .header-direct-nav .nav-direct-link {
        font-size: 0.85rem !important;
        padding: 0.35rem 0.5rem !important;
    }
    .btn-master-menu {
        display: inline-flex !important;
    }


    /* Show Login/Join on Tablet */
    .header-actions .btn-outline,
    .header-actions .btn-primary {
        display: inline-flex;
    }

    .header-actions .btn {
        padding: 0.45rem 0.9rem;
        font-size: 0.85rem;
    }

    /* ── Hero ── */
    .video-hero-banner {
        padding: 2.2rem 1.5rem 2rem;
        min-height: 260px;
        max-height: 360px;
    }

    .hero-video-actions {
        flex-direction: row;
        gap: 0.8rem;
    }

    .btn-watch-video {
        width: auto;
        padding: 0.6rem 1.2rem;
        font-size: 0.88rem;
    }

    .hero-compact-stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.8rem;
    }

    .action-levels-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .video-player-frame {
        height: 320px;
    }

    .hero-section {
        padding: 4rem 0 3rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.05rem; }

    .hero-cta {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .hero-cta .btn {
        width: auto;
        flex: 1;
        min-width: 150px;
    }

    .hero-stats { grid-template-columns: repeat(3, 1fr); }
    .stat-item h3 { font-size: 1.75rem; }

    /* ── Sections ── */
    .section { padding: 3.5rem 0; }
    .section-title { font-size: 2rem; }

    /* ── Cards – 2 Columns ── */
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .card-img-wrap {
        width: 100%;
        aspect-ratio: 16 / 9;
        height: auto;
    }

    /* ── Teams – 2 Columns ── */
    .teams-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* ── Forms ── */
    .form-card { padding: 2rem; }
    .form-row { grid-template-columns: 1fr 1fr; gap: 1rem; }

    /* ── Auth Layout Tablet ── */
    .auth-page-wrapper {
        padding: 2.5rem 0 4rem;
    }

    .auth-grid-container {
        grid-template-columns: 1fr;
        max-width: 620px;
        margin: 0 auto;
        gap: 2rem;
    }

    .auth-showcase-panel {
        order: 2;
        padding: 2rem;
    }

    .auth-form-panel {
        order: 1;
        padding: 2rem;
    }

    .auth-steps-bar {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.4rem;
    }

    /* Page Specific Grids – Tablet */
    .developer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-feature-card,
    .project-feature-card.is-even {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    /* ── Table scroll hint hidden on tablet ── */
    .table-responsive::before { display: none; }

    /* ── Donate – Still stacked on tablet ── */
    .donate-wrapper { grid-template-columns: 1fr; gap: 2rem; }

    /* ── Admin ── */
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }

    .admin-card-header {
        flex-direction: row;
        align-items: center;
    }

    .admin-card-header .btn {
        width: auto;
    }

    /* Modal – Centered on tablet */
    .modal-overlay {
        padding: 1.5rem;
        align-items: center;
    }

    .modal-box {
        max-width: 600px;
        border-radius: 16px;
        width: 100%;
    }

    .modal-footer {
        flex-direction: row;
    }

    .modal-footer .btn {
        width: auto;
    }

    /* ── Footer – 2 Columns ── */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }

    .site-footer {
        padding: 3.5rem 0 2rem;
    }

    /* ── Utilities ── */
    .hide-mobile { display: unset !important; }
    .show-mobile { display: none !important; }
    .hide-tablet { display: none !important; }
    .show-tablet { display: block !important; }
}

/* ==========================================================================
   ╔══════════════════════════════════════════╗
   ║  DESKTOP LAYOUT  (1025px and above)      ║
   ╚══════════════════════════════════════════╝
   ========================================================================== */

@media (min-width: 1025px) {

    /* Container */
    .container { padding: 0 1.25rem; }

    /* ── Top Bar – Full ── */
    .top-bar { display: block; }
    .top-bar-inner { flex-direction: row; }
    .top-bar-left, .top-bar-right { gap: 1.2rem; font-size: 0.85rem; }

    /* ── Header – Full Nav Bar ── */
    .header-inner { padding: 0.9rem 0; }

    /* Direct Navigation on Desktop */
    .header-direct-nav {
        display: flex !important;
        align-items: center;
        gap: 1.5rem;
    }

    .btn-master-menu {
        display: inline-flex !important;
    }


    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        background: transparent;
        color: var(--secondary-hover);
        padding-left: 0.2rem;
    }

    .nav-menu .nav-link.active::after { display: block; }

    /* Brand Logo – Full size */
    .logo-symbol-wrap { width: 48px; height: 48px; }
    .brand-logo-img { max-width: 48px; max-height: 48px; }
    .logo-symbol { width: 44px; height: 44px; font-size: 1.35rem; }
    .brand-text .brand-title, .brand-text h1 { font-size: 1.35rem; }
    .brand-text .brand-sub, .brand-text span { display: block; }

    /* All Header Actions Visible */
    .header-actions { gap: 0.75rem; }
    .header-actions .btn-outline,
    .header-actions .btn-primary { display: inline-flex; }
    .header-actions .btn { padding: 0.4rem 0.9rem; font-size: 0.85rem; }

    /* ── Hero & Video Banner ── */
    .video-hero-banner {
        padding: 2.5rem 2rem 2.2rem;
        min-height: 320px;
        max-height: 420px;
    }

    .hero-video-actions {
        flex-direction: row;
        gap: 1rem;
    }

    .action-levels-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }

    .video-player-frame {
        height: 420px;
    }

    .hero-section { padding: 5rem 0 4rem; }
    .hero-grid { grid-template-columns: 1.2fr 0.8fr; gap: 3rem; align-items: center; }
    .hero-title { font-size: 3.2rem; line-height: 1.15; }
    .hero-subtitle { font-size: 1.15rem; }
    .hero-cta { flex-direction: row; flex-wrap: wrap; }
    .hero-cta .btn { width: auto; padding: 0.85rem 2rem; min-height: 52px; }
    .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; padding-top: 1.8rem; }
    .stat-item h3 { font-size: 2rem; }
    .stat-item p { font-size: 0.85rem; }

    /* ── Sections ── */
    .section { padding: 4.5rem 0; }
    .section-header { margin-bottom: 3rem; }
    .section-title { font-size: 2.4rem; }
    .section-desc { font-size: 1.05rem; }

    /* ── Cards – Multi Column Auto-Fit ── */
    .cards-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
    .card-img-wrap {
        width: 100%;
        aspect-ratio: 16 / 9;
        height: auto;
    }

    /* ── Teams – Multi Column Auto-Fit ── */
    .teams-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }

    /* ── Forms ── */
    .form-card { padding: 2.2rem; }
    .form-row { grid-template-columns: 1fr 1fr; gap: 1rem; }

    /* ── Auth Layout Desktop ── */
    .auth-page-wrapper {
        padding: 3.5rem 0 5rem;
        min-height: calc(100vh - 200px);
    }

    .auth-grid-container {
        grid-template-columns: 1fr 1.15fr;
        gap: 2.5rem;
    }

    .auth-showcase-panel {
        order: 1;
        padding: 2.5rem;
    }

    .auth-form-panel {
        order: 2;
        padding: 2.5rem;
    }

    .auth-mobile-header {
        display: none !important;
    }

    .auth-steps-bar {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .quick-demo-pills {
        display: flex;
        flex-wrap: wrap;
    }

    /* Page Specific Grids – Desktop */
    .developer-grid {
        grid-template-columns: 340px 1fr;
        gap: 2.5rem;
    }

    .project-feature-card {
        grid-template-columns: 0.8fr 1.2fr;
        gap: 3rem;
    }

    .project-feature-card.is-even {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 3rem;
    }

    .contact-grid {
        grid-template-columns: 1fr 1.2fr;
        gap: 3.5rem;
    }

    /* Table scroll hint hidden */
    .table-responsive::before { display: none; }

    /* ── Donate – Side by Side ── */
    .donate-wrapper { grid-template-columns: 1fr 1.2fr; gap: 2.5rem; }

    /* ── Admin – Full Sidebar Layout ── */
    .admin-layout { flex-direction: row; }
    .admin-sidebar { position: sticky; transform: none !important; box-shadow: 2px 0 10px rgba(0, 0, 0, 0.12); }
    .sidebar-close-btn { display: none !important; }
    .admin-mobile-toggle { display: none !important; }
    .admin-body { padding: 1.75rem; }
    .admin-topbar { padding: 1rem 1.75rem; flex-wrap: nowrap; }
    .admin-topbar h2 { font-size: 1.3rem; }
    .kpi-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
    .admin-card-header { flex-direction: row; align-items: center; }
    .admin-card-header .btn { width: auto; }
    .admin-card-body { padding: 1.35rem; }

    /* Modal – Desktop centered */
    .modal-overlay { padding: 1rem; align-items: center; }
    .modal-box { max-width: 650px; border-radius: 16px; }
    .modal-footer { flex-direction: row; }
    .modal-footer .btn { width: auto; }

    /* ── Footer – 4 Columns ── */
    .site-footer { padding: 4.5rem 0 2rem; }
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 3rem; margin-bottom: 3.5rem; }
    .footer-bottom { flex-direction: row; align-items: center; padding-top: 2rem; font-size: 0.85rem; }

    /* ── Utilities ── */
    .hide-mobile, .hide-tablet { display: unset !important; }
    .show-mobile, .show-tablet { display: none !important; }
    .hide-desktop { display: none !important; }
    .show-desktop { display: block !important; }
}

/* ==========================================================================
   WIDE DESKTOP (1280px+) — Enhanced spacing
   ========================================================================== */

@media (min-width: 1280px) {
    .nav-menu { gap: 0.75rem !important; }
    .nav-menu .nav-link { font-size: 0.95rem; }
    .hero-title { font-size: 3.5rem; }
}

/* ==========================================================================
   EXTRA SMALL MOBILE (< 400px) — Extra compact
   ========================================================================== */

@media (max-width: 399px) {
    .container { padding: 0 0.75rem; }
    .hero-title { font-size: 1.65rem; }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .stat-item {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .stat-item h3 {
        font-size: 1.35rem;
        margin-bottom: 0;
    }

    .section-title { font-size: 1.5rem; }
    .brand-text .brand-title, .brand-text h1 { font-size: 0.95rem; }
    .form-card { padding: 1.25rem; }
    .bank-info-box { padding: 1.25rem; }
    .footer-grid { gap: 1.5rem; }
}

/* ==========================================================================
   REDUCED MOTION — Accessibility
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .nav-menu { transition: none !important; }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .top-bar, .site-header, .mobile-toggle, .nav-menu,
    .hero-cta, .header-actions, .site-footer,
    .admin-sidebar, .admin-topbar, .admin-mobile-toggle {
        display: none !important;
    }

    body { font-size: 12pt; color: #000; background: #fff; }
    .container { max-width: 100%; padding: 0; }

    a::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #555;
    }
}
