/**
 * D.O.A WEB PORTAL - TACTICAL AIRSOFT DESIGN SYSTEM
 * Theme: Modern Tactical Military / Gunmetal / Tactical Crimson
 */

@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:ital,wght@0,400;0,600;0,700;1,700&family=Rajdhani:wght@500;600;700&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
    --doa-bg: #0a0c10;
    --doa-card-bg: rgba(16, 20, 28, 0.82);
    --doa-card-hover: rgba(22, 28, 40, 0.92);
    --doa-surface: #141720;
    --doa-surface-2: #1b202c;
    --doa-surface-3: #242c3d;
    --doa-red: #e50914;
    --doa-red-glow: rgba(229, 9, 20, 0.4);
    --doa-red-border: rgba(229, 9, 20, 0.3);
    --doa-gold: #d4af37;
    --doa-text-main: #f8f9fa;
    --doa-text-muted: #9aa5b8;
    --doa-text-dim: #6c788d;
    --doa-border: rgba(255, 255, 255, 0.08);
    --doa-border-active: rgba(229, 9, 20, 0.6);
    --font-heading: 'Rajdhani', 'Chakra Petch', sans-serif;
    --font-tech: 'Chakra Petch', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

.theme-settings-panel {
    background: rgba(14, 18, 25, 0.85);
    border: 1px dashed var(--doa-red-border);
}

.theme-color-input {
    width: 100%;
    min-width: 100%;
    height: 42px;
    background-color: var(--doa-surface);
    border-color: var(--doa-border);
}

.theme-preview-card {
    background: var(--preview-bg, var(--doa-bg));
}

.theme-preview-hero {
    background: linear-gradient(135deg, color-mix(in srgb, var(--preview-red, var(--doa-red)) 24%, var(--preview-bg, var(--doa-bg))), var(--preview-surface, var(--doa-surface)));
    border: 1px solid color-mix(in srgb, var(--preview-red, var(--doa-red)) 55%, transparent);
    color: color-mix(in srgb, var(--preview-text, var(--doa-text-main)) 78%, transparent);
}

.theme-preview-title {
    color: var(--preview-text, var(--doa-text-main));
    background: linear-gradient(110deg, var(--preview-text, var(--doa-text-main)), var(--preview-red, var(--doa-red)), var(--preview-gold, var(--doa-gold)));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.theme-preview-badge, .theme-preview-highlight { color: var(--preview-gold, var(--doa-gold)); }
.theme-preview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.theme-preview-grid span { height: 30px; border: 1px solid color-mix(in srgb, var(--preview-red, var(--doa-red)) 45%, transparent); background: color-mix(in srgb, var(--preview-red, var(--doa-red)) 12%, var(--preview-bg, var(--doa-bg))); }
.theme-preview-surface { background: var(--preview-surface, var(--doa-surface)); color: var(--preview-text, var(--doa-text-main)); }
.theme-preview-button { border: 1px solid var(--preview-red, var(--doa-red)); background: var(--preview-red, var(--doa-red)); color: #fff; padding: 0.35rem 0.7rem; }


/* Homepage Hero Typography */
.hero-title-gradient {
    color: #ffffff;
    background: linear-gradient(110deg, var(--doa-hero-start) 0%, var(--doa-red) 42%, var(--doa-gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none !important;
}

.hero-description {
    color: #b8c4d6 !important;
}

.hero-highlight {
    color: #d4af37 !important;
    text-shadow: 0 0 14px rgba(212, 175, 55, 0.18);
}

.hero-highlight strong {
    color: inherit;
}

.homepage-section-heading {
    position: relative;
    min-height: 54px;
    border-bottom: 0;
}

.homepage-section-heading::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--doa-red), var(--doa-gold) 42%, transparent 78%);
}

.homepage-section-heading::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 34px;
    height: 8px;
    background: var(--doa-red);
    clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
}

.homepage-section-heading-compact {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.65rem;
}

.js-reveal.is-ready {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.js-reveal.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 70ms; }
.reveal-delay-2 { transition-delay: 140ms; }
.reveal-delay-3 { transition-delay: 210ms; }
.reveal-delay-4 { transition-delay: 280ms; }

/* Global Reset & Tactical Background */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    font-family: var(--font-body);
    color: var(--doa-text-main);
    background-color: var(--doa-bg);
    overflow-x: hidden;
}

/* Tactical Background with Fixed Fullscreen Cover & Dark Vignette Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('/public/assets/images/bg.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -2;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(var(--doa-grid-color) 1px, transparent 1px), linear-gradient(90deg, var(--doa-grid-color) 1px, transparent 1px), radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--doa-bg) 78%, transparent) 0%, color-mix(in srgb, var(--doa-bg) 94%, transparent) 75%, var(--doa-bg) 100%);
    background-size: 48px 48px, 48px 48px, auto;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: -1;
}

/* Tactical particle network background */
#particleCanvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    opacity: 1;
}

/* Keep the interface legible above the animated background. */
.tactical-navbar,
body > main,
body > footer,
body > .offcanvas {
    position: relative;
    z-index: 2;
}

/* Bootstrap modals already have z-index: 1055, keep them above everything */
.modal {
    z-index: 1055 !important;
}

.modal-backdrop {
    z-index: 1050 !important;
}

@media (prefers-reduced-motion: reduce) {
    #particleCanvas {
        display: none;
    }

    .js-reveal.is-ready {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
/* Typography */
h1, h2, h3, h4, h5, h6, .font-tech {
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
}

.text-tech {
    font-family: var(--font-tech);
    letter-spacing: 0.1em;
}

.text-mono {
    font-family: var(--font-mono);
}

.text-red {
    color: var(--doa-red) !important;
}

.text-gold {
    color: var(--doa-gold) !important;
}

.text-muted {
    color: var(--doa-text-muted) !important;
}

/* Tactical Topbar Navigation (Center Logo Header) */
.tactical-navbar {
    background: rgba(10, 12, 16, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--doa-red-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(229, 9, 20, 0.2);
    position: sticky;
    top: 0;
    z-index: 1030;
    padding: 0.6rem 0;
}

.navbar-brand-center {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.25s ease;
}

.navbar-brand-center:hover {
    transform: scale(1.04);
}

.navbar-brand-logo {
    height: 72px;
    width: auto;
    filter: drop-shadow(0 0 12px rgba(229, 9, 20, 0.45));
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: #ffffff;
    margin-top: 2px;
}

.brand-sub {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--doa-red);
}

/* ==========================================================================
   TACTICAL TOPBAR HEADER STYLES (DYNAMIC HUD / WINGS / TICKER / RADAR)
   ========================================================================== */
.tactical-hud-topbar {
    width: 100%;
}

.hud-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: rgba(229, 9, 20, 0.12);
    border: 1px solid rgba(229, 9, 20, 0.4);
    border-radius: 4px;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    box-shadow: 0 0 10px rgba(229, 9, 20, 0.2);
}

.hud-clock {
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    background: rgba(16, 21, 30, 0.6);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hud-social-btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: rgba(20, 26, 38, 0.85);
    border: 1px solid rgba(229, 9, 20, 0.35);
    color: #ffffff;
    text-decoration: none;
    transition: all 0.25s ease;
}

.hud-social-btn:hover {
    background: var(--doa-red);
    color: #ffffff;
    box-shadow: 0 0 12px var(--doa-red-glow);
    transform: translateY(-1px);
}

.hud-tag {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--doa-text-muted);
    border-left: 2px solid var(--doa-red);
    padding-left: 8px;
}

/* 2. Tactical Wings */
.tactical-wings-container {
    width: 100%;
}

.tactical-wing-line {
    height: 2px;
    flex-grow: 1;
    max-width: 260px;
    position: relative;
}

.tactical-wing-left {
    background: linear-gradient(90deg, transparent, var(--doa-red));
}

.tactical-wing-right {
    background: linear-gradient(90deg, var(--doa-red), transparent);
}

/* 3. Radar Scanner Glow & Running Neon Rays */
.tactical-radar-header-container {
    width: 100%;
}

.tactical-radar-wrapper {
    position: relative;
    overflow: visible;
}

.tactical-radar-beam {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 220px;
    height: 220px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(229, 9, 20, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: radarPulse 3s infinite ease-out;
    pointer-events: none;
}

@keyframes radarPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.6);
        opacity: 0.85;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.6);
        opacity: 0;
    }
}

.radar-glow-logo {
    filter: drop-shadow(0 0 16px rgba(229, 9, 20, 0.85));
}

/* Running Neon Ray Lines */
.radar-neon-ray {
    flex-grow: 1;
    height: 2px;
    position: relative;
    background: rgba(229, 9, 20, 0.18);
    overflow: hidden;
    border-radius: 2px;
}

/* Left Ray: Base line gradient fading to left, laser shoots center -> left (right to left) */
.radar-neon-ray-left {
    background: linear-gradient(270deg, rgba(229, 9, 20, 0.6) 0%, rgba(229, 9, 20, 0.05) 100%);
}

.radar-neon-ray-left .radar-ray-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    background: linear-gradient(270deg, #ffffff, var(--doa-red), transparent);
    box-shadow: 0 0 14px #ff1e27, 0 0 24px var(--doa-red);
    animation: neonRayRunLeft 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes neonRayRunLeft {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateX(-260%);
        opacity: 0;
    }
}

/* Right Ray: Base line gradient fading to right, laser shoots center -> right (left to right) */
.radar-neon-ray-right {
    background: linear-gradient(90deg, rgba(229, 9, 20, 0.6) 0%, rgba(229, 9, 20, 0.05) 100%);
}

.radar-neon-ray-right .radar-ray-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 45%;
    height: 100%;
    background: linear-gradient(90deg, #ffffff, var(--doa-red), transparent);
    box-shadow: 0 0 14px #ff1e27, 0 0 24px var(--doa-red);
    animation: neonRayRunRight 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes neonRayRunRight {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateX(260%);
        opacity: 0;
    }
}

.radar-neon-ray-left .radar-ray-node {
    position: absolute;
    right: 0;
    top: -3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--doa-red);
    box-shadow: 0 0 8px var(--doa-red);
}

.radar-neon-ray-right .radar-ray-node {
    position: absolute;
    left: 0;
    top: -3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--doa-red);
    box-shadow: 0 0 8px var(--doa-red);
}

/* ==========================================================================
   DESKTOP FLOATING SIDE DOCKS (Sticky / Fixed Vertically Centered on Screen)
   ========================================================================== */
.tactical-side-dock {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1025;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none; /* Allows click-through outside links */
}

.tactical-side-dock-left {
    left: 0;
    align-items: flex-start;
}

.tactical-side-dock-right {
    right: 0;
    align-items: flex-end;
}

/* Base Side Dock Link */
.tactical-side-dock-link {
    pointer-events: auto;
    font-family: var(--font-tech);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #e2e8f0;
    text-decoration: none;
    height: 46px;
    display: inline-flex;
    align-items: center;
    background: rgba(14, 18, 26, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 14px rgba(229, 9, 20, 0.45);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    user-select: none;
    animation: tacticalDockPulse 3s ease-in-out infinite alternate;
}

@keyframes tacticalDockPulse {
    0% {
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.8), 0 0 12px rgba(229, 9, 20, 0.4);
        border-color: rgba(229, 9, 20, 0.5);
    }
    100% {
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.9), 0 0 20px rgba(229, 9, 20, 0.75), inset 0 0 10px rgba(229, 9, 20, 0.2);
        border-color: rgba(229, 9, 20, 0.85);
    }
}

/* Page Load Peek Animation for Onboarding */
@keyframes tacticalDockPeekLeft {
    0%, 10% {
        max-width: 52px;
    }
    30%, 70% {
        max-width: 260px;
        background: rgba(22, 28, 42, 0.98);
        border-color: #ff1e27;
        box-shadow: 0 0 25px rgba(229, 9, 20, 0.85);
        color: #ffffff;
    }
    90%, 100% {
        max-width: 52px;
    }
}

@keyframes tacticalDockPeekRight {
    0%, 10% {
        max-width: 52px;
    }
    30%, 70% {
        max-width: 260px;
        background: rgba(22, 28, 42, 0.98);
        border-color: #ff1e27;
        box-shadow: 0 0 25px rgba(229, 9, 20, 0.85);
        color: #ffffff;
    }
    90%, 100% {
        max-width: 52px;
    }
}

@keyframes tacticalDockTextPeek {
    0%, 10% {
        opacity: 0;
        max-width: 0;
        padding-left: 0;
        padding-right: 0;
    }
    30%, 70% {
        opacity: 1;
        max-width: 220px;
        padding-left: 0.6rem;
        padding-right: 0.6rem;
    }
    90%, 100% {
        opacity: 0;
        max-width: 0;
        padding-left: 0;
        padding-right: 0;
    }
}

/* Left Dock Item Defaults */
.tactical-side-dock-left .tactical-side-dock-link {
    border-top-right-radius: 24px;
    border-bottom-right-radius: 24px;
    border: 1.5px solid rgba(229, 9, 20, 0.6);
    border-left: 4px solid var(--doa-red);
    padding: 0 0.5rem 0 0.25rem;
    max-width: 52px; /* Default collapsed width */
    animation: tacticalDockPulse 3s ease-in-out infinite alternate;
}

/* Right Dock Item Defaults */
.tactical-side-dock-right .tactical-side-dock-link {
    border-top-left-radius: 24px;
    border-bottom-left-radius: 24px;
    border: 1.5px solid rgba(229, 9, 20, 0.6);
    border-right: 4px solid var(--doa-red);
    padding: 0 0.25rem 0 0.5rem;
    max-width: 52px; /* Default collapsed width */
    animation: tacticalDockPulse 3s ease-in-out infinite alternate;
}

/* One-time Initial Page Load Peek using JS class */
body.is-dock-peeking .tactical-side-dock-left .tactical-side-dock-link:not(:hover) {
    animation: tacticalDockPeekLeft 2.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.is-dock-peeking .tactical-side-dock-right .tactical-side-dock-link:not(:hover) {
    animation: tacticalDockPeekRight 2.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.is-dock-peeking .tactical-side-dock-link:not(:hover) .dock-text {
    animation: tacticalDockTextPeek 2.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Icon Container */
.dock-icon-wrapper {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dock-icon {
    font-size: 1.15rem;
    color: #ff3344;
    text-shadow: 0 0 10px rgba(229, 9, 20, 0.9), 0 0 20px rgba(229, 9, 20, 0.6);
    transition: transform 0.25s ease, color 0.25s ease, text-shadow 0.25s ease;
}

/* Text Element */
.dock-text {
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    display: inline-block;
    transition: opacity 0.25s ease, max-width 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.25s ease;
    padding: 0;
}

/* Left Text Expand */
.tactical-side-dock-left .tactical-side-dock-link:hover .dock-text,
.tactical-side-dock-left .tactical-side-dock-link:focus-visible .dock-text {
    opacity: 1 !important;
    max-width: 240px !important;
    padding-right: 0.85rem !important;
    padding-left: 0.25rem !important;
    animation: none !important;
}

/* Right Text Expand */
.tactical-side-dock-right .tactical-side-dock-link:hover .dock-text,
.tactical-side-dock-right .tactical-side-dock-link:focus-visible .dock-text {
    opacity: 1 !important;
    max-width: 240px !important;
    padding-left: 0.85rem !important;
    padding-right: 0.25rem !important;
    animation: none !important;
}

/* Left Dock Link Hover/Focus */
.tactical-side-dock-left .tactical-side-dock-link:hover,
.tactical-side-dock-left .tactical-side-dock-link:focus-visible {
    max-width: 300px !important;
    background: rgba(22, 28, 42, 0.98) !important;
    border-color: #ff1e27 !important;
    box-shadow: 0 0 30px rgba(229, 9, 20, 0.9), 0 10px 30px rgba(0, 0, 0, 0.95), inset 0 0 15px rgba(229, 9, 20, 0.35) !important;
    color: #ffffff !important;
    transform: translateX(6px) !important;
    animation: none !important;
}

/* Right Dock Link Hover/Focus */
.tactical-side-dock-right .tactical-side-dock-link:hover,
.tactical-side-dock-right .tactical-side-dock-link:focus-visible {
    max-width: 300px !important;
    background: rgba(22, 28, 42, 0.98) !important;
    border-color: #ff1e27 !important;
    box-shadow: 0 0 30px rgba(229, 9, 20, 0.9), 0 10px 30px rgba(0, 0, 0, 0.95), inset 0 0 15px rgba(229, 9, 20, 0.35) !important;
    color: #ffffff !important;
    transform: translateX(-6px) !important;
    animation: none !important;
}

.tactical-side-dock-link:hover .dock-icon,
.tactical-side-dock-link:focus-visible .dock-icon {
    transform: scale(1.25);
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.9), 0 0 25px rgba(229, 9, 20, 1);
}

/* Active Link State */
.tactical-side-dock-link.active {
    background: rgba(229, 9, 20, 0.32);
    border-color: #ff1e27;
    color: #ffffff;
    box-shadow: 0 0 22px rgba(229, 9, 20, 0.85);
}

.tactical-side-dock-link.active .dock-icon {
    color: #ffffff;
    text-shadow: 0 0 12px var(--doa-red);
}

/* Special Portal Member Dock Link */
.dock-member-link {
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.45) 0%, rgba(184, 0, 11, 0.55) 100%) !important;
    border-color: rgba(229, 9, 20, 0.9) !important;
}

.dock-member-link .dock-icon {
    color: var(--doa-gold) !important;
    text-shadow: 0 0 12px rgba(212, 175, 55, 0.9) !important;
}

/* Glassmorphism Tactical Cards */
.tactical-card {
    background: var(--doa-card-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--doa-red-border);
    border-radius: 8px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.65);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.tactical-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--doa-red), transparent);
    opacity: 0.7;
}

.tactical-card:hover {
    border-color: var(--doa-border-active);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.8), 0 0 20px var(--doa-red-glow);
    transform: translateY(-3px);
}

.homepage-gallery-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.homepage-gallery-card-image {
    display: block;
    height: 200px;
    flex: 0 0 200px;
    object-fit: cover;
}

.homepage-gallery-card-body {
    flex: 1 1 auto;
    min-height: 86px;
    display: flex;
    flex-direction: column;
}

.homepage-gallery-card-description {
    margin-top: 0.2rem;
    font-size: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.event-ledger-table-wrap {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.event-ledger-table {
    width: 100%;
    min-width: 1120px;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--doa-text-main);
}

.event-ledger-table th,
.event-ledger-table td {
    padding: 0.85rem 0.9rem;
    vertical-align: middle;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.event-ledger-table th:last-child,
.event-ledger-table td:last-child {
    border-right: 0;
}

.event-ledger-table-head th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(42, 48, 61, 0.98), rgba(25, 30, 40, 0.98));
    color: #ffffff;
    border-top: 2px solid var(--doa-red);
    border-bottom: 2px solid rgba(229, 9, 20, 0.72);
    font-family: var(--font-tech);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    line-height: 1.25;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.event-ledger-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.025);
}

.event-ledger-table tbody tr:hover {
    background: rgba(229, 9, 20, 0.09);
}

.event-ledger-col-no {
    width: 58px;
    min-width: 58px;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    color: #f5f7fa;
    text-align: center;
    border-right: 2px solid rgba(229, 9, 20, 0.3) !important;
}

.event-ledger-table-head .event-ledger-col-no {
    color: #ff6971;
    text-align: center;
}

.event-ledger-table td:nth-child(2),
.event-ledger-table td:nth-child(3),
.event-ledger-table td:nth-child(6),
.event-ledger-table td:nth-child(8),
.event-ledger-table td:nth-child(9) {
    white-space: nowrap;
}

.event-ledger-table td:nth-child(6) {
    text-align: right;
}

.event-ledger-col-code,
.event-ledger-col-time,
.event-ledger-col-type,
.event-ledger-col-staff {
    width: 1%;
    max-width: 125px;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.event-ledger-col-code { min-width: 92px; }
.event-ledger-col-time { min-width: 105px; }
.event-ledger-col-type { min-width: 120px; }
.event-ledger-col-staff { min-width: 95px; }

.event-ledger-col-detail {
    width: 34%;
    min-width: 330px;
}

.event-ledger-detail-preview {
    max-height: 92px;
    overflow: hidden;
}

.event-ledger-detail-button {
    font-size: 0.65rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.event-ledger-mobile-list {
    padding: 0.75rem;
}

.event-ledger-mobile-card {
    margin-bottom: 0.75rem;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(27, 33, 44, 0.98), rgba(13, 17, 24, 0.98));
    border: 1px solid rgba(229, 9, 20, 0.3);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.event-ledger-mobile-card:last-child {
    margin-bottom: 0;
}

.event-ledger-mobile-card-top,
.event-ledger-mobile-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 0.85rem;
}

.event-ledger-mobile-card-top {
    background: rgba(255, 255, 255, 0.035);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.event-ledger-mobile-number {
    min-width: 32px;
    color: #ff6971;
    font-family: var(--font-tech);
    font-size: 0.75rem;
    font-weight: 800;
}

.event-ledger-mobile-code {
    flex: 1;
    min-width: 0;
    color: #dce3ed;
    font-size: 0.75rem;
    overflow-wrap: anywhere;
}

.event-ledger-mobile-card-body {
    padding: 0.85rem;
}

.event-ledger-mobile-type {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.event-ledger-mobile-amount {
    flex-shrink: 0;
    font-size: 0.8rem;
    text-align: right;
}

.event-ledger-mobile-title {
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.event-ledger-mobile-detail {
    margin-top: 0.25rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.event-ledger-mobile-card-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 375px) {
    .event-ledger-mobile-card-top {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .event-ledger-mobile-card-top > .text-end {
        width: 100%;
        text-align: left !important;
        padding-left: 2.35rem;
    }

    .event-ledger-mobile-amount {
        font-size: 0.72rem;
    }
}

.card-header-tactical {
    background: rgba(20, 24, 34, 0.85);
    border-bottom: 1px solid rgba(229, 9, 20, 0.25);
    padding: 1rem 1.25rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Tactical Buttons */
.btn-tactical {
    font-family: var(--font-tech);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 4px;
    padding: 0.6rem 1.4rem;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-tactical-red {
    background: linear-gradient(135deg, #e50914 0%, #b00710 100%);
    color: #ffffff !important;
    border: 1px solid #ff3344;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
}

.btn-tactical-red:hover {
    background: linear-gradient(135deg, #ff1a27 0%, #d10813 100%);
    box-shadow: 0 0 25px rgba(229, 9, 20, 0.7);
    transform: translateY(-2px);
}

.btn-tactical-outline {
    background: rgba(229, 9, 20, 0.08);
    color: #ffffff !important;
    border: 1px solid var(--doa-red);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.btn-tactical-outline:hover {
    background: rgba(229, 9, 20, 0.25);
    border-color: #ff3344;
    box-shadow: 0 0 20px var(--doa-red-glow);
    transform: translateY(-2px);
}

.btn-tactical-dark {
    background: var(--doa-surface-2);
    color: var(--doa-text-main) !important;
    border: 1px solid var(--doa-border);
}

.btn-tactical-dark:hover {
    background: var(--doa-surface-3);
    border-color: var(--doa-red-border);
    color: #ffffff !important;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.scroll-to-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 1020;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #ffffff;
    background: linear-gradient(135deg, #e50914 0%, #b00710 100%);
    border: 1px solid #ff3344;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
    cursor: pointer;
    touch-action: manipulation;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.scroll-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-to-top:hover,
.scroll-to-top:focus-visible {
    box-shadow: 0 0 25px rgba(229, 9, 20, 0.7);
    outline: none;
}

/* Homepage affiliations marquee */
.homepage-affiliations {
    width: 100%;
    padding: 1.25rem 0 0.35rem;
    border-top: 1px solid rgba(229, 9, 20, 0.18);
}

.homepage-affiliations-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.25rem;
}

.homepage-affiliations-kicker {
    color: var(--doa-red);
    font-family: var(--font-tech);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    white-space: nowrap;
}

.homepage-affiliations-heading h2 {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    white-space: nowrap;
}

.homepage-affiliations-rule {
    width: 42px;
    height: 1px;
    background: linear-gradient(90deg, var(--doa-red), transparent);
}

.homepage-logo-marquee {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 78px;
    padding: 0.35rem 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.homepage-logo-track {
    display: flex;
    width: 100%;
    justify-content: center;
}

.homepage-logo-track.is-scrolling {
    width: max-content;
    justify-content: flex-start;
    animation: homepageLogoMarquee 34s linear infinite;
    will-change: transform;
}

.homepage-logo-marquee:hover .homepage-logo-track,
.homepage-logo-marquee:focus-within .homepage-logo-track {
    animation-play-state: paused;
}

.homepage-logo-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-right: 1rem;
}

.homepage-logo-item {
    display: flex;
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    gap: 0.65rem;
    width: auto;
    min-width: 170px;
    height: 62px;
    padding: 0.35rem 0.65rem 0.35rem 0.35rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(24, 29, 40, 0.88), rgba(12, 16, 23, 0.95));
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
    color: inherit;
    text-decoration: none;
    cursor: zoom-in;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.homepage-logo-item:hover,
.homepage-logo-item:focus-visible {
    border-color: rgba(229, 9, 20, 0.75);
    background: linear-gradient(180deg, rgba(38, 29, 38, 0.96), rgba(17, 18, 26, 0.98));
    color: #ffffff;
    transform: translateY(-2px);
    outline: none;
}

.homepage-logo-frame {
    display: flex;
    flex: 0 0 52px;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0.25rem;
    border-radius: 5px;
    border: 1px solid rgba(229, 9, 20, 0.18);
    background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.1), rgba(5, 8, 12, 0.86));
}

.homepage-logo-frame img {
    display: block;
    width: auto;
    height: auto;
    max-width: 48px;
    max-height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 3px 7px rgba(0, 0, 0, 0.65));
}

.homepage-logo-item span {
    overflow: hidden;
    width: auto;
    max-width: 170px;
    color: rgba(255, 255, 255, 0.82);
    font-family: var(--font-tech);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    line-height: 1.25;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.homepage-logo-modal .modal-content {
    overflow: hidden;
    border: 1px solid var(--doa-red-border);
    border-radius: 8px;
    background: rgba(12, 16, 23, 0.98);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.8), 0 0 30px var(--doa-red-glow);
}

.homepage-logo-modal .modal-header {
    border-bottom: 1px solid rgba(229, 9, 20, 0.25);
}

.homepage-logo-modal .modal-title {
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.homepage-logo-modal .modal-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    padding: 2rem;
    background: radial-gradient(circle, rgba(229, 9, 20, 0.12), transparent 68%);
}

.homepage-logo-modal .modal-body img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 330px;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.7));
}

/* Keep the right-side admin cards independent from the taller settings form. */
.admin-brand-guide {
    height: 330px;
    overflow-y: auto;
}

.admin-homepage-logos {
    height: 650px;
    overflow-y: auto;
}

@media (max-width: 991.98px) {
    .admin-brand-guide,
    .admin-homepage-logos {
        height: auto;
        overflow: visible;
    }
}

@media (max-width: 576px) {
    .homepage-logo-marquee {
        height: 72px;
    }

    .homepage-logo-item {
        min-width: 150px;
        height: 58px;
    }

    .homepage-logo-frame {
        flex-basis: 46px;
        width: 46px;
        height: 46px;
    }

    .homepage-logo-frame img {
        max-width: 42px;
        max-height: 42px;
    }

    .homepage-logo-item span {
        max-width: 145px;
        font-size: 0.66rem;
    }
}

@keyframes homepageLogoMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .homepage-logo-track.is-scrolling {
        animation: none;
    }
}

/* Clickable profile and unit photo preview */
.js-image-preview { cursor: zoom-in; transition: transform 0.2s ease, filter 0.2s ease; }
.js-image-preview:hover, .js-image-preview:focus-visible { filter: brightness(1.12) drop-shadow(0 0 10px var(--doa-red-glow)); transform: scale(1.04); outline: none; }
.admin-notification-balloon { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; margin-left: 8px; padding: 0 5px; border: 1px solid rgba(255, 255, 255, 0.72); border-radius: 999px; background: #e50914; color: #fff; font: 700 0.64rem/1 var(--font-mono, monospace); box-shadow: 0 0 10px rgba(229, 9, 20, 0.55); vertical-align: middle; }
.mobile-notification-balloon { min-width: 16px; height: 16px; margin-left: 4px; padding: 0 4px; font-size: 0.52rem; }
.mobile-tile-notification { position: absolute; top: 8px; right: 8px; margin-left: 0; }
.change-request-photo-preview { display: block; width: 96px; height: 72px; object-fit: contain; border: 1px solid rgba(229, 9, 20, 0.45); border-radius: 5px; background: rgba(255, 255, 255, 0.06); }
.member-list-avatar { width: 34px; height: 34px; flex: 0 0 34px; object-fit: cover; box-shadow: 0 0 8px rgba(229, 9, 20, 0.24); }
.member-list-avatar-mobile { width: 42px; height: 42px; flex-basis: 42px; }
.member-detail-photo { width: 58px; height: 58px; object-fit: cover; box-shadow: 0 0 10px var(--doa-red-glow); }
.admin-unit-photo { display: block; width: 150px !important; height: 100px !important; max-width: 150px !important; max-height: 100px !important; object-fit: contain; margin: 0 auto; padding: 4px; background: rgba(255, 255, 255, 0.06); box-shadow: 0 0 10px rgba(229, 9, 20, 0.18); }
.unit-detail-photo { display: block; width: 64px !important; height: 48px !important; max-width: 64px !important; max-height: 48px !important; object-fit: contain; padding: 2px; background: rgba(255, 255, 255, 0.06); }
.doa-image-preview-modal .modal-content { overflow: hidden; border: 1px solid var(--doa-red-border); border-radius: 8px; background: rgba(12, 16, 23, 0.98); box-shadow: 0 18px 60px rgba(0, 0, 0, 0.8), 0 0 30px var(--doa-red-glow); }
.doa-image-preview-modal .modal-header { border-bottom: 1px solid rgba(229, 9, 20, 0.25); }
.doa-image-preview-modal .modal-title { color: #ffffff; font-family: var(--font-heading); font-size: 0.9rem; letter-spacing: 0.08em; }
.doa-image-preview-modal .modal-body { display: flex; align-items: center; justify-content: center; min-height: 280px; padding: 1.5rem; background: radial-gradient(circle, rgba(229, 9, 20, 0.12), transparent 68%); }
.doa-image-preview-modal .modal-body img { display: block; width: auto; max-width: 100%; max-height: 70vh; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.7)); }

/* Tactical Badges */
.badge-tactical {
    font-family: var(--font-tech);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.35em 0.75em;
    border-radius: 3px;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.badge-tactical-red {
    background: rgba(229, 9, 20, 0.2);
    color: #ff4d58;
    border-color: rgba(229, 9, 20, 0.5);
}

.badge-tactical-green {
    background: rgba(40, 167, 69, 0.2);
    color: #4ade80;
    border-color: rgba(40, 167, 69, 0.5);
}

.badge-tactical-yellow {
    background: rgba(255, 193, 7, 0.2);
    color: #facc15;
    border-color: rgba(255, 193, 7, 0.5);
}

.badge-tactical-blue {
    background: rgba(13, 110, 253, 0.2);
    color: #60a5fa;
    border-color: rgba(13, 110, 253, 0.5);
}

.badge-tactical-gray {
    background: rgba(108, 117, 125, 0.2);
    color: #cbd5e1;
    border-color: rgba(108, 117, 125, 0.4);
}

/* Form Controls */
.tactical-input, .form-control, .form-select {
    background-color: rgba(14, 18, 25, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    border-radius: 4px;
    padding: 0.65rem 0.9rem;
    font-family: var(--font-body);
    transition: all 0.2s ease;
}

.tactical-input:focus, .form-control:focus, .form-select:focus {
    background-color: rgba(18, 22, 32, 0.95) !important;
    border-color: var(--doa-red) !important;
    box-shadow: 0 0 15px var(--doa-red-glow) !important;
    color: #ffffff !important;
    outline: none;
}

.form-label {
    font-family: var(--font-tech);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--doa-text-muted);
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

/* Tactical Tables */
.table-tactical {
    width: 100%;
    color: var(--doa-text-main);
    margin-bottom: 0;
    vertical-align: middle;
    border-collapse: separate;
    border-spacing: 0;
}

.table-tactical thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(42, 48, 61, 0.98), rgba(25, 30, 40, 0.98));
    font-family: var(--font-tech);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
    line-height: 1.25;
    white-space: nowrap;
    border-top: 2px solid var(--doa-red);
    border-bottom: 2px solid rgba(229, 9, 20, 0.72);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.85rem 0.9rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.table-tactical thead th:last-child,
.table-tactical tbody td:last-child {
    border-right: 0;
}

.table-tactical tbody td {
    padding: 0.85rem 0.9rem;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    color: var(--doa-text-main);
    overflow-wrap: anywhere;
}

.table-tactical tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.025);
}

.table-tactical tbody tr:hover td {
    background: rgba(229, 9, 20, 0.08);
}

.tactical-table:not(.event-ledger-table) {
    width: 100%;
    color: var(--doa-text-main);
    margin-bottom: 0;
    vertical-align: middle;
    border-collapse: separate;
    border-spacing: 0;
}

.tactical-table:not(.event-ledger-table) thead th {
    background: linear-gradient(180deg, rgba(42, 48, 61, 0.98), rgba(25, 30, 40, 0.98));
    color: #ffffff;
    border-top: 2px solid var(--doa-red);
    border-bottom: 2px solid rgba(229, 9, 20, 0.72);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--font-tech);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.25;
    text-transform: uppercase;
    white-space: nowrap;
    padding: 0.85rem 0.9rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.tactical-table:not(.event-ledger-table) thead th:last-child,
.tactical-table:not(.event-ledger-table) tbody td:last-child {
    border-right: 0;
}

.tactical-table:not(.event-ledger-table) tbody td {
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--doa-text-main);
    overflow-wrap: anywhere;
}

.tactical-table:not(.event-ledger-table) tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.025);
}

.tactical-table:not(.event-ledger-table) tbody tr:hover td {
    background: rgba(229, 9, 20, 0.08);
}

.table-tactical tbody td:first-child,
.table-tactical thead th:first-child {
    border-right: 2px solid rgba(229, 9, 20, 0.3);
}

.table-tactical .text-mono {
    overflow-wrap: anywhere;
}

.table-responsive:has(.dropdown-menu),
.table-responsive.has-dropdown {
    min-height: 380px;
}

.dashboard-table-wrap {
    overflow: visible;
}

@media (max-width: 767.98px) {
    .dashboard-table-wrap {
        padding: 0.75rem !important;
    }

    .dashboard-table-wrap table,
    .dashboard-table-wrap tbody {
        display: block;
        width: 100%;
    }

    .dashboard-table-wrap thead {
        display: none;
    }

    .dashboard-table-wrap tr {
        display: block;
        padding: 0.85rem;
        margin-bottom: 0.75rem;
        border: 1px solid var(--doa-border);
        border-left: 3px solid var(--doa-red);
        border-radius: 0.45rem;
        background: color-mix(in srgb, var(--doa-surface) 92%, var(--doa-bg));
    }

    .dashboard-table-wrap tr:last-child {
        margin-bottom: 0;
    }

    .dashboard-table-wrap td {
        display: flex;
        justify-content: space-between;
        gap: 0.75rem;
        align-items: flex-start;
        padding: 0.4rem 0;
        border: 0;
        text-align: right;
    }

    .dashboard-table-wrap td:first-child {
        display: block;
        padding-top: 0;
        text-align: left;
    }

    .dashboard-table-wrap td:not(:first-child)::before {
        color: var(--doa-text-muted);
        content: 'Detail';
        font-size: 0.68rem;
        font-family: var(--font-tech);
        text-align: left;
        text-transform: uppercase;
    }

    .dashboard-table-wrap td:nth-child(2)::before { content: 'Kontak / Kode'; }
    .dashboard-table-wrap td:nth-child(3)::before { content: 'Status / Tipe'; }
    .dashboard-table-wrap td:nth-child(4)::before { content: 'Tanggal / Jumlah'; }
    .dashboard-table-wrap td:nth-child(5)::before { content: 'Aksi / Detail'; }
    .dashboard-table-wrap td[colspan] {
        display: block;
        text-align: center;
    }

    .dashboard-table-wrap td[colspan]::before {
        display: none;
    }

    .dashboard-table-wrap td form,
    .dashboard-table-wrap td .btn-group,
    .dashboard-table-wrap td .d-flex {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .dashboard-table-wrap td > * {
        max-width: 100%;
    }

    .dashboard-table-wrap .btn-group,
    .dashboard-table-wrap td form {
        margin-top: 0.2rem;
    }

    .dashboard-table-wrap td:not(:first-child) > * {
        min-width: 0;
    }
}

@media (max-width: 767.98px) {
    .tactical-card > .d-md-none,
    .tactical-card > .p-3 > .d-md-none {
        padding: 0.25rem;
    }

    .mobile-data-card {
        width: 100%;
        min-width: 0;
        padding: 1rem;
        border: 1px solid var(--doa-border);
        border-left: 3px solid var(--doa-red);
        border-radius: 0.55rem;
        overflow: hidden;
    }

    .mobile-data-card-header {
        min-width: 0;
        align-items: flex-start;
        gap: 0.9rem;
        padding-bottom: 0.9rem;
    }

    .mobile-data-card-header > div:first-child,
    .mobile-data-card-title {
        min-width: 0;
        flex: 1 1 auto;
    }

    .mobile-data-card-header > .badge-tactical {
        flex: 0 1 auto;
        max-width: 45%;
        line-height: 1.25;
    }

    .mobile-data-card-content {
        gap: 0.8rem;
        padding-top: 0.9rem;
    }

    .mobile-data-card-field {
        min-width: 0;
        gap: 0.25rem;
        padding-bottom: 0.15rem;
    }

    .mobile-data-card-value {
        min-width: 0;
        word-break: break-word;
    }

    .mobile-data-card .d-flex {
        gap: 0.6rem !important;
    }

    .mobile-data-card form {
        min-width: 0;
    }
}


.mobile-data-card {

    background: linear-gradient(145deg, rgba(27, 33, 44, 0.98), rgba(13, 17, 24, 0.98));
    border-color: rgba(229, 9, 20, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.mobile-data-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-data-card-title {
    font-family: var(--font-tech);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.mobile-data-card-content {
    display: grid;
    gap: 0.65rem;
    padding-top: 0.8rem;
}

.mobile-data-card-field {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.mobile-data-card-label {
    color: var(--doa-text-muted);
    font-family: var(--font-tech);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mobile-data-card-label i {
    color: var(--doa-red);
}

.mobile-data-card-value {
    color: var(--doa-text-main);
    font-size: 0.8rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

@media (max-width: 767.98px) {
    .table-responsive {
        -webkit-overflow-scrolling: touch;
    }

    .mobile-data-card .badge-tactical {
        white-space: normal;
        text-align: center;
    }
}

/* Alert Notification */
.tactical-alert {
    background: rgba(16, 20, 28, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 6px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.alert-success.tactical-alert {
    border-color: rgba(40, 167, 69, 0.6);
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.3);
}

.alert-danger.tactical-alert {
    border-color: var(--doa-red);
    box-shadow: 0 0 15px var(--doa-red-glow);
}

.alert-warning.tactical-alert {
    border-color: rgba(255, 193, 7, 0.6);
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.3);
}

.alert-info.tactical-alert {
    border-color: rgba(13, 110, 253, 0.6);
    box-shadow: 0 0 15px rgba(13, 110, 253, 0.3);
}

/* Admin & Member Layout Styling */
.portal-sidebar {
    width: 260px;
    height: 100vh;
    max-height: 100vh;
    background: rgba(10, 12, 16, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--doa-red-border);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(229, 9, 20, 0.5) rgba(10, 12, 16, 0.9);
}

.portal-sidebar::-webkit-scrollbar {
    width: 5px;
}

.portal-sidebar::-webkit-scrollbar-track {
    background: rgba(10, 12, 16, 0.9);
}

.portal-sidebar::-webkit-scrollbar-thumb {
    background: rgba(229, 9, 20, 0.4);
    border-radius: 3px;
}

.portal-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--doa-red);
}

.sidebar-brand {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(229, 9, 20, 0.25);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
}

.sidebar-nav {
    padding: 1rem 0.5rem 2.5rem 0.5rem;
    list-style: none;
    margin: 0;
    flex-grow: 1;
}

.sidebar-header {
    font-family: var(--font-tech);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--doa-red);
    padding: 0.75rem 1rem 0.35rem 1rem;
    text-transform: uppercase;
}

.sidebar-item {
    margin-bottom: 3px;
}

.sidebar-link {
    font-family: var(--font-tech);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--doa-text-muted);
    text-decoration: none;
    padding: 0.6rem 1rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.sidebar-link:hover, .sidebar-link.active {
    color: #ffffff;
    background: rgba(229, 9, 20, 0.15);
    border-color: rgba(229, 9, 20, 0.4);
    box-shadow: 0 0 15px var(--doa-red-glow);
}

.portal-main {
    margin-left: 260px;
    padding: 1.5rem;
    min-height: 100vh;
}

.portal-topbar {
    background: rgba(14, 18, 25, 0.88);
    backdrop-filter: blur(14px);
    border: 1px solid var(--doa-red-border);
    border-radius: 6px;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Stat Cards */
.stat-card {
    background: var(--doa-card-bg);
    border: 1px solid var(--doa-red-border);
    border-radius: 6px;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
}

.stat-card .stat-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.75rem;
    color: rgba(229, 9, 20, 0.15);
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    margin-top: 0.25rem;
}

.stat-label {
    font-family: var(--font-tech);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--doa-text-muted);
    text-transform: uppercase;
}

/* Attendance Quick Search Highlighting */
.attendance-match-card {
    background: rgba(20, 26, 38, 0.95);
    border: 1px solid var(--doa-red);
    border-radius: 6px;
    padding: 1.25rem;
    box-shadow: 0 0 20px var(--doa-red-glow);
    margin-bottom: 1rem;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    body {
        padding-bottom: 85px !important;
    }

    .scroll-to-top {
        right: 1rem;
        bottom: 112px;
        z-index: 1040;
    }

    .portal-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    .portal-sidebar.show {
        transform: translateX(0);
    }
    .portal-main {
        margin-left: 0;
        padding-bottom: 85px !important;
    }
    .tactical-navbar .nav-left, .tactical-navbar .nav-right {
        text-align: center;
    }

    /* Mobile Floating Rounded Capsule Bottom Navigation Bar */
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 16px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: calc(100% - 24px) !important;
        max-width: 440px !important;
        height: 64px !important;
        background: rgba(13, 17, 26, 0.96) !important;
        backdrop-filter: blur(25px) !important;
        -webkit-backdrop-filter: blur(25px) !important;
        border: 1.5px solid rgba(229, 9, 20, 0.45) !important;
        border-radius: 40px !important;
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.95), 0 0 25px rgba(229, 9, 20, 0.3) !important;
        z-index: 9999 !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0 10px !important;
        margin: 0 !important;
    }

    .mobile-nav-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-decoration: none !important;
        color: #8b9bb4 !important;
        font-family: var(--font-tech), sans-serif !important;
        font-size: 0.65rem !important;
        font-weight: 700 !important;
        letter-spacing: 0.04em !important;
        text-transform: uppercase !important;
        padding: 6px 4px !important;
        border-radius: 16px !important;
        flex: 1 1 0 !important;
        text-align: center !important;
        border: none !important;
        background: transparent !important;
        cursor: pointer !important;
        line-height: 1.1 !important;
        user-select: none !important;
        outline: none !important;
        box-shadow: none !important;
    }

    .mobile-nav-item i {
        font-size: 1.2rem !important;
        margin-bottom: 3px !important;
        color: #8b9bb4 !important;
        display: block !important;
        transition: transform 0.2s ease, color 0.2s ease !important;
    }

    .mobile-nav-item span {
        display: block !important;
        color: #8b9bb4 !important;
        font-size: 0.65rem !important;
    }

    .mobile-nav-item.active, .mobile-nav-item:active {
        color: #ffffff !important;
    }

    .mobile-nav-item.active i {
        color: #e50914 !important;
        transform: scale(1.1) !important;
        text-shadow: 0 0 12px rgba(229, 9, 20, 0.8) !important;
    }

    .mobile-nav-item.active span {
        color: #ffffff !important;
    }

    /* Elevated Center Action/Menu Button */
    .mobile-nav-item.mobile-nav-action-center {
        background: linear-gradient(135deg, #ff1e27 0%, #b8000b 100%) !important;
        color: #ffffff !important;
        border-radius: 50% !important;
        width: 52px !important;
        height: 52px !important;
        flex: 0 0 52px !important;
        margin-top: -24px !important;
        box-shadow: 0 0 25px rgba(229, 9, 20, 0.85), 0 6px 18px rgba(0,0,0,0.8) !important;
        border: 3px solid #0d111a !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        padding: 0 !important;
    }

    .mobile-nav-item.mobile-nav-action-center i {
        font-size: 1.4rem !important;
        color: #ffffff !important;
        margin: 0 !important;
        transform: none !important;
        text-shadow: none !important;
    }

    .mobile-nav-item.mobile-nav-action-center span {
        display: none !important;
    }


    /* Tactical Bottom Sheet / Popup Modal for Mobile */
    .tactical-bottom-sheet {
        z-index: 1060 !important;
    }

    .tactical-bottom-sheet .modal-dialog {
        margin: 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-width: 650px;
        margin-left: auto;
        margin-right: auto;
    }

    .tactical-bottom-sheet .modal-content {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        border-top-left-radius: 26px;
        border-top-right-radius: 26px;
        background: linear-gradient(180deg, #131722 0%, #0c0e14 100%);
        border: 1px solid rgba(229, 9, 20, 0.4);
        border-bottom: none;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.95), 0 0 30px rgba(229, 9, 20, 0.25);
        max-height: 88vh;
        overflow-y: auto;
        padding: 0.5rem 1.25rem 1.75rem 1.25rem;
    }

    .bottom-sheet-handle {
        width: 48px;
        height: 5px;
        background: rgba(255, 255, 255, 0.35);
        border-radius: 3px;
        margin: 8px auto 14px auto;
    }

    /* Modern App Launcher Grid for Mobile Pop-up Menu */
    .mobile-app-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 12px;
    }

    @media (min-width: 420px) {
        .mobile-app-grid {
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
        }
    }

    .mobile-app-tile {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        background: rgba(20, 26, 38, 0.85);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 12px;
        padding: 12px 8px;
        text-decoration: none !important;
        color: #ffffff !important;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        position: relative;
    }

    .mobile-app-tile:active, .mobile-app-tile:hover {
        background: rgba(229, 9, 20, 0.2);
        border-color: var(--doa-red);
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(229, 9, 20, 0.35);
        color: #ffffff !important;
    }

    .mobile-app-tile .tile-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        background: rgba(229, 9, 20, 0.15);
        border: 1px solid rgba(229, 9, 20, 0.3);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.25rem;
        color: var(--doa-red);
        margin-bottom: 6px;
        transition: transform 0.2s ease, background 0.2s ease;
    }

    .mobile-app-tile:active .tile-icon, .mobile-app-tile:hover .tile-icon {
        transform: scale(1.08);
        background: var(--doa-red);
        color: #ffffff;
    }

    .mobile-app-tile .tile-title {
        font-family: var(--font-tech);
        font-size: 0.76rem;
        font-weight: 700;
        letter-spacing: 0.03em;
        color: #ffffff;
        line-height: 1.2;
    }

    .mobile-app-tile .tile-badge {
        position: absolute;
        top: 6px;
        right: 6px;
        font-size: 0.6rem;
        padding: 2px 5px;
    }

    .btn-close-tactical {
        background: rgba(229, 9, 20, 0.15);
        border: 1px solid var(--doa-red-border);
        color: #ffffff;
        border-radius: 20px;
        padding: 4px 12px;
        font-family: var(--font-tech);
        font-size: 0.75rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 6px;
        transition: all 0.2s ease;
        cursor: pointer;
    }

    .btn-close-tactical:active, .btn-close-tactical:hover {
        background: var(--doa-red);
        color: #ffffff;
        border-color: #ffffff;
    }

    .bottom-sheet-link {
        display: flex;
        align-items: center;
        padding: 0.75rem 1rem;
        color: var(--doa-text-main);
        text-decoration: none;
        border-radius: 8px;
        margin-bottom: 0.35rem;
        font-family: var(--font-tech);
        font-size: 0.88rem;
        letter-spacing: 0.04em;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.05);
        transition: all 0.2s ease;
    }

    .bottom-sheet-link:hover, .bottom-sheet-link:active {
        background: rgba(229, 9, 20, 0.15);
        border-color: var(--doa-red-border);
        color: #ffffff;
    }

    /* Mobile Form and Button Enhancements */
    .btn-tactical, .form-control, .form-select {
        min-height: 44px;
    }

    /* Mobile Participant and Member Card Styles */
    .mobile-tactical-card {
        background: rgba(16, 21, 30, 0.92);
        border: 1px solid var(--doa-border);
        border-radius: 8px;
        padding: 1rem;
        margin-bottom: 0.85rem;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
        transition: all 0.2s ease;
    }

    .mobile-tactical-card:hover, .mobile-tactical-card:focus-within {
        border-color: var(--doa-red-border);
        box-shadow: 0 0 15px var(--doa-red-glow);
    }
}

@media (max-width: 576px) {
    .display-4 {
        font-size: 1.85rem !important;
    }
    .stat-value {
        font-size: 1.45rem !important;
    }
    .stat-card {
        padding: 0.85rem;
    }
    .tactical-card {
        padding: 1rem !important;
    }
    .btn-tactical.btn-lg {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    .portal-topbar {
        padding: 0.5rem 0.75rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .portal-topbar h5 {
        font-size: 1rem;
    }
}


