/* ===================================================
   COMRADCOM NETWORK PHILIPPINES
   Design System — Beta Cinematic Theme (v3)
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Montserrat:wght@300;400;700;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ======= CSS VARIABLES (Beta Cinematic Theme) ======= */
:root {
    /* ── Core Colors ── */
    --primary: #4F46E5; /* Indigo — kept for interactive elements */
    --primary-dim: #4338CA;
    --primary-light: rgba(79, 70, 229, 0.15);
    --primary-glow: rgba(79, 70, 229, 0.4);

    --secondary: #06B6D4; /* Cyan */
    --secondary-light: rgba(6, 182, 212, 0.15);
    --secondary-glow: rgba(6, 182, 212, 0.4);

    --accent: #EC4899; /* Pink accent */
    --accent-light: rgba(236, 72, 153, 0.15);

    --success: #10B981;
    --success-light: rgba(16, 185, 129, 0.15);
    --warning: #F59E0B;
    --danger: #EF4444;

    /* ── Backgrounds (Beta Pure Black) ── */
    --bg-page: #000000;         /* Pure black */
    --bg-darkest: #030303;
    --bg-dark: #000000;
    --bg-accent: #0b0b0b;
    --bg-medium: #0d0d0d;
    --bg-white: rgba(255, 255, 255, 0.05);
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.07);
    --bg-muted: rgba(255, 255, 255, 0.02);
    --bg-nav: transparent;       /* Nav starts transparent */
    --bg-overlay: rgba(0, 0, 0, 0.92);

    /* ── Text ── */
    --text-dark: #FFFFFF;
    --text-primary: #F8FAFC;
    --text-secondary: #CBD5E1;
    --text-muted: #888888;
    --text-bright: #FFFFFF;

    /* ── Borders ── */
    --border-light: rgba(255, 255, 255, 0.08);
    --border-primary: rgba(79, 70, 229, 0.3);
    --border-glow: rgba(79, 70, 229, 0.5);
    --border-secondary: rgba(6, 182, 212, 0.3);

    /* ── Typography (Beta Fonts) ── */
    --font-body: 'Inter', sans-serif;
    --font-modern: 'Montserrat', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-ui: 'Inter', sans-serif;

    /* ── Spacing / Radius ── */
    --nav-height: 100px;
    --section-pad: 100px;
    --card-radius: 20px;
    --border-radius: 50px; /* Pill buttons matching beta */

    /* ── Transitions ── */
    --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);

    /* ── Shadows ── */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.05) inset;
    --shadow-deep: 0 20px 60px rgba(0,0,0,0.7);
    --shadow-glow: 0 0 30px rgba(79, 70, 229, 0.3);
    --shadow-vibrant: 0 10px 30px -5px rgba(79, 70, 229, 0.25);
}

/* ======= RESET ======= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    background: var(--bg-page);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.65;
    overflow-x: hidden;
    min-height: 100vh;
    width: 100%;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* ======= GRID BG (Beta — Pure Black) ======= */
.grid-bg {
    position: fixed;
    inset: 0;
    background-color: var(--bg-page);
    pointer-events: none;
    z-index: -1;
}

/* ======= SCROLLBAR ======= */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-muted);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-dim);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ======= TYPOGRAPHY ======= */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-modern);
    color: var(--text-dark);
    letter-spacing: 0.03em;
    line-height: 1.25;
}

h1 {
    font-size: clamp(1.6rem, 5vw, 3rem);
    line-height: 1.25;
}

h2 {
    font-size: clamp(1.25rem, 3vw, 2.2rem);
}

h3 {
    font-size: clamp(1rem, 2vw, 1.6rem);
}

h4 {
    font-size: 1.1rem;
}

p {
    font-family: var(--font-ui);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dim);
}

/* ======= NAVIGATION (Unified Modern Cinematic Style) ======= */
.nav-modern {
  position: fixed; top: 0; left: 0; width: 100%; height: 100px;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 5%; z-index: 3000;
  transition: var(--transition);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: transparent;
}
.nav-modern.scrolled {
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(20px);
  height: 80px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-modern.scrolled .nav-logo-sub,
.nav-modern.scrolled .nav-link,
.nav-modern.scrolled .nav-logo,
.nav-modern.scrolled .nav-logo-main {
    opacity: 0.8 !important;
    color: white !important;
}

/* Base Accreditation Grid Styles */
.accreditation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
}
.ac-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  color: white;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
}

.nav-logo img {
    height: 48px;
    width: 48px;
    object-fit: contain;
    border-radius: 50%;
    background: #ffffff; /* White bg behind logo to prevent black edges */
    padding: 3px;
    transition: var(--transition);
    box-shadow: 0 0 15px rgba(255,255,255,0.1);
    display: block;
}

.nav-logo-main {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: white;
    display: block;
}
.nav-logo-sub {
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  opacity: 0.8;
  margin-top: 4px;
  color: white;
  display: block;
}

.nav-modern.scrolled .nav-logo img { filter: none; }

.nav-links { display: flex; list-style: none; gap: 3rem; align-items: center; }
.nav-link { 
  text-decoration: none; color: #ffffff !important; font-size: 0.75rem; 
  letter-spacing: 0.15em; font-weight: 700; transition: var(--transition);
  text-transform: uppercase;
  opacity: 0.9;
}
.nav-modern.scrolled .nav-link { color: white !important; opacity: 1 !important; }
.nav-link:hover { opacity: 1; color: white; }
.nav-modern.scrolled .nav-link:hover { opacity: 1; color: white !important; }

/* Dropdown Styles */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 0; background: #0b0b0b;
  min-width: 220px; padding: 1rem 0; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all 0.3s ease; border: 1px solid rgba(255,255,255,0.05);
  z-index: 1000;
}
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-menu a {
  display: block; padding: 0.75rem 1.5rem; color: #94a3b8;
  text-decoration: none; font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase; transition: var(--transition);
}
.nav-dropdown-menu a:hover { color: white; background: rgba(255,255,255,0.03); }

/* TICKER BAR */
.ticker-bar {
  position: fixed; top: 100px; left: 0; width: 100%; height: 40px;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(15px);
  z-index: 2100; display: flex; align-items: center; padding: 0 5%;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  border-top: 1px solid rgba(255,255,255,0.05);
  overflow: hidden;
  transition: top 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-modern.scrolled + .ticker-bar { top: 80px; background: rgba(0,0,0,0.95); }

.ticker-label { 
  background: var(--bg-dark); color: #00aaff; padding: 4px 12px; 
  font-size: 0.6rem; font-weight: 900; letter-spacing: 0.15em; 
  border-radius: 4px; margin-right: 20px; flex-shrink: 0;
  display: flex; align-items: center; gap: 8px;
  border: 1px solid rgba(0,170,255,0.2);
}
.ticker-content { 
  white-space: nowrap; display: inline-block; font-size: 0.72rem; 
  font-family: var(--font-ui); color: rgba(255,255,255,0.7); letter-spacing: 0.05em;
  text-transform: uppercase; padding-left: 2rem;
  animation: ticker-scroll 40s linear infinite;
}
@keyframes ticker-scroll {
  0% { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}


.nav-links .nav-cta {
  text-decoration: none; 
  background: white !important; 
  color: black !important;
  padding: 0.8rem 2.5rem; 
  border-radius: 50px;
  font-size: 0.7rem; 
  font-weight: 800; 
  letter-spacing: 0.15em;
  text-transform: uppercase; 
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  white-space: nowrap;
}
.nav-links .nav-cta:hover { transform: scale(1.05); background: #00aaff !important; color: white !important; }
.nav-modern.scrolled .nav-links .nav-cta { background: black !important; color: white !important; border: 1px solid rgba(255,255,255,0.2); }

.hamburger { 
  display: none; cursor: pointer; color: white; font-size: 1.5rem; 
  z-index: 6000; transition: var(--transition); 
  background: none; border: none; align-items: center; justify-content: center;
}
.hamburger:hover { color: #00aaff; }

@media (max-width: 1024px) {
  /* .nav-links { display: none; } handled in index.html */
}

/* ======= BUTTONS ======= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-ui);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.65rem 1.4rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.39);
}

.btn-primary:hover {
    background: var(--primary-dim);
    color: white;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}

.btn-secondary {
    background: white;
    border: 1.5px solid var(--border-light);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    border-color: var(--secondary);
    color: var(--secondary);
    transform: translateY(-1px);
}


.btn-danger {
    background: var(--danger);
    color: white;
}

.w-100 {
    width: 100%;
    justify-content: center;
}

/* ======= SECTION LAYOUT ======= */
.section {
    padding: var(--section-pad) 1.5rem;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* ======= SECTION HEADER ======= */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--primary);
    background: var(--primary-light);
    border: 1px solid var(--border-primary);
    padding: 0.25rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.section-title {
    font-family: var(--font-modern);
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-title span {
    color: var(--primary);
}

.section-subtitle {
    font-family: var(--font-ui);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1rem;
}

/* ======= DIVIDER ======= */
.divider {
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 1rem auto;
    border-radius: 2px;
}

/* ======= CARDS ======= */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--card-radius);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, var(--primary-light), transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-vibrant);
    transform: translateY(-8px);
    background: var(--bg-card-hover);
}

.card:hover::before {
    opacity: 1;
}


.card:hover::before {
    opacity: 1;
}

/* ======= STAT BOXES ======= */
.stat-box {
    text-align: center;
    padding: 1.75rem;
    background: linear-gradient(
        145deg,
        rgba(15, 23, 42, 0.96),
        rgba(15, 23, 42, 0.78)
    );
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.stat-box:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.stat-box::after {
    content: '';
    display: block;
    height: 2px;
    margin-top: 0.5rem;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.stat-number {
    font-family: var(--font-modern);
    font-size: 2.2rem;
    color: var(--primary);
    display: block;
    line-height: 1;
    margin-bottom: 0.4rem;
}

.stat-label {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ======= BADGES ======= */
.badge {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-success {
    background: var(--success-light);
    color: var(--success);
}

.badge-info {
    background: var(--primary-light);
    color: var(--primary);
}

.badge-warning {
    background: var(--secondary-light);
    color: var(--secondary);
}

.badge-danger {
    background: var(--accent-light);
    color: var(--accent);
}

/* ======= FORMS ======= */
.form-group {
    margin-bottom: 1.1rem;
}

.form-label {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.form-control {
    width: 100%;
    padding: 0.7rem 1rem;
    background: var(--bg-white);
    border: 1.5px solid var(--border-light);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-family: var(--font-ui);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
    background: var(--bg-white);
}

.form-control::placeholder {
    color: var(--text-muted);
}

select.form-control {
    cursor: pointer;
}

/* ======= TABLES ======= */
.table-modern {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    background: var(--bg-card);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table-modern th {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--primary);
    background: var(--primary-light);
    padding: 0.85rem 1.2rem;
    text-align: left;
    border-bottom: 2px solid var(--border-primary);
    text-transform: uppercase;
}

.table-modern td {
    padding: 0.85rem 1.2rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
}

.table-modern tr:last-child td {
    border-bottom: none;
}

.table-modern tr:hover td {
    background: var(--primary-light);
    color: var(--text-primary);
}

/* ======= FOOTER ======= */
.footer {
    background: #070A13;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 56px 1.5rem 0;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
}

.footer::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto 2.5rem;
}

/* .footer-brand */
.footer-brand {
    display: block;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.footer-logo img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(79, 70, 229, 0.5);
    box-shadow: 0 0 12px rgba(79, 70, 229, 0.3);
}

.footer-logo-text {
    font-family: var(--font-modern);
    font-size: 0.85rem;
    color: #ffffff;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.footer-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.footer-col h4 {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--secondary);
    margin-bottom: 1.1rem;
    text-transform: uppercase;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(6, 182, 212, 0.2);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-ui);
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 4px;
}

.footer-links a::before {
    content: '›';
    color: var(--primary);
    font-size: 1rem;
}

.footer-socials {
    display: flex;
    gap: 0.6rem;
    margin-top: 1rem;
}

.social-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.04);
}

.social-icon:hover {
    border-color: var(--primary);
    color: #ffffff;
    background: var(--primary);
    box-shadow: 0 0 15px rgba(79, 70, 229, 0.4);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1.25rem 0 1.5rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.3);
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
}

/* ======= PAGE HERO (Beta — Dark Cinematic Inner Pages) ======= */
.page-hero {
    padding: 140px 1.5rem 80px;
    text-align: center;
    background: linear-gradient(180deg, rgba(79,70,229,0.07) 0%, #000000 100%);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    position: relative;
}

.page-hero-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.4em;
    color: #888888;
    margin-bottom: 1.5rem;
    display: block;
    text-transform: uppercase;
}

.page-hero-title {
    font-family: var(--font-modern);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 1.25rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.page-hero-title span {
    color: #ffffff;
    opacity: 0.4;
}

/* ======= TICKER ======= */
.ticker-bar {
    background: var(--bg-muted);
    border-top: 1px solid var(--border-light);
    border-bottom: 2px solid var(--primary);
    padding: 0.5rem 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    color: var(--text-primary);
}

.ticker-label {
    background: var(--primary);
    color: white;
    font-family: var(--font-modern);
    padding: 0.2rem 1rem;
    font-size: 0.65rem;
    font-weight: 800;
    margin-right: 1.5rem;
    clip-path: polygon(0% 0%, 90% 0%, 100% 50%, 90% 100%, 0% 100%);
    white-space: nowrap;
}

.ticker-content {
    white-space: nowrap;
    animation: ticker 30s linear infinite;
    padding-left: 100%;
    color: #E2E8F0;
    font-weight: 500;
    letter-spacing: 0.05em;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ======= MODALS ======= */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg-overlay);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg-white);
    border-radius: var(--card-radius);
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-deep);
    overflow: hidden;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 1.25rem 1.5rem;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-family: var(--font-modern);
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    color: white;
}

.modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    cursor: pointer;
    padding: 4px;
    transition: var(--transition);
    border-radius: 4px;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.modal-body {
    padding: 1.5rem;
}

/* ======= GRIDS ======= */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* ======= STATUS DOTS ======= */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-online {
    background: var(--success);
    animation: pulse-dot 2s infinite;
}

.status-offline {
    background: var(--danger);
}

.status-idle {
    background: var(--secondary);
}

@keyframes pulse-dot {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(11, 122, 62, 0.4);
    }

    50% {
        box-shadow: 0 0 0 5px rgba(11, 122, 62, 0);
    }
}

/* ======= AUTH MODAL (Universal) ======= */
#universalAuthModal .modal {
    max-width: 420px;
}

.auth-logo-wrap {
    text-align: center;
    margin-bottom: 1.25rem;
}

.auth-logo-wrap img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.auth-logo-wrap .auth-org {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    margin-top: 6px;
}

.btn-google {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--bg-white);
    color: var(--text-primary);
    border: 1.5px solid var(--border-light);
    border-radius: var(--border-radius);
    padding: 0.7rem;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow-sm);
}

.btn-google:hover {
    background: var(--bg-muted);
    box-shadow: var(--shadow-card);
    transform: translateY(-1px);
}

.btn-google img {
    width: 20px;
    height: 20px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.75rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-light);
}

.auth-divider span {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.1rem;
    border: 1.5px solid var(--border-light);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.auth-tab {
    flex: 1;
    padding: 0.55rem;
    text-align: center;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    background: none;
    border: none;
}

.auth-tab.active {
    background: var(--primary);
    color: white;
}

.auth-err {
    font-size: 0.78rem;
    color: var(--danger);
    min-height: 1.2em;
    margin-bottom: 0.4rem;
}

.auth-switch {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.85rem;
}

.auth-switch a {
    color: var(--primary);
    cursor: pointer;
    font-weight: 600;
}

/* ======= MOBILE NAV ======= */
@media (max-width: 900px) {
    .nav-hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(11, 15, 25, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 2rem 1.5rem;
        gap: 0.5rem;
        z-index: 999;
        overflow-y: auto;
        border-bottom: none;
    }

    .nav-links.mobile-open {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        padding: 1rem;
        font-size: 1.1rem;
        border-radius: 8px;
        color: #ffffff;
        justify-content: center;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: rgba(79, 70, 229, 0.2);
        color: var(--primary);
    }

    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.03);
        padding: 0.5rem;
        margin-top: 0.5rem;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        display: none;
    }

    .nav-dropdown-menu a {
        padding: 0.75rem;
        font-size: 0.95rem;
        border-bottom: none;
    }

    .nav-dropdown:hover .nav-dropdown-menu {
        display: none;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        display: block;
    }

    .nav-title-main {
        font-size: 0.75rem;
    }

    .nav-auth {
        display: none;
    }
}

/* ======= RESPONSIVE GRIDS ======= */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-pad: 56px;
        --nav-height: 60px;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    h1 {
        font-size: clamp(1.4rem, 6vw, 2rem);
    }

    h2 {
        font-size: clamp(1.1rem, 4vw, 1.6rem);
    }

    .section {
        padding: 56px 1rem;
    }

    .card {
        padding: 1.15rem;
    }

    .btn {
        padding: 0.6rem 1.1rem;
        font-size: 0.82rem;
    }

    .modal-body {
        padding: 1.1rem;
    }

    .table-modern {
        font-size: 0.82rem;
    }

    .table-modern th,
    .table-modern td {
        padding: 0.65rem 0.85rem;
    }
}

@media (max-width: 480px) {
    :root {
        --nav-height: 56px;
    }

    .navbar {
        padding: 0 1rem;
    }

    .nav-logo {
        width: 36px;
        height: 36px;
    }

    .nav-title-main {
        font-size: 0.68rem;
    }

    .nav-title-sub {
        display: none;
    }
}

/* ============================================================
   COMRADCOM — ANIMATIONS & MICRO-INTERACTIONS v3
   ============================================================ */

/* ── KEYFRAMES ── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.88); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.7; transform: scale(1.15); }
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}
@keyframes rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}
@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(27, 94, 191, 0.3); }
    50%       { box-shadow: 0 0 0 10px rgba(27, 94, 191, 0); }
}
@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}
@keyframes marquee {
    0%   { transform: translateX(100vw); }
    100% { transform: translateX(-100%); }
}
@keyframes slideInNav {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── SCROLL REVEAL ── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.reveal-left  { transform: translateX(-30px); }
.reveal.reveal-right { transform: translateX(30px); }
.reveal.reveal-zoom  { transform: scale(0.9); }
.reveal.visible {
    opacity: 1 !important;
    transform: none !important;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── CARD HOVER LIFT ── */
.card, .stat-box, .feature-card, .activity-card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s ease !important;
    will-change: transform;
}
.card:hover, .stat-box:hover, .feature-card:hover, .activity-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 12px 32px rgba(27, 94, 191, 0.18) !important;
}

/* ── BUTTON MICRO-INTERACTIONS ── */
.btn {
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s !important;
}
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0);
    transition: background 0.2s;
    pointer-events: none;
}
.btn:hover::after { background: rgba(255, 255, 255, 0.1); }

/* ── NAVBAR ACTIONS & LOGO ── */
.nav-links a { 
    position: relative; 
    text-decoration: none;
    color: white;
}
.nav-links a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: #00aaff;
    transition: width 0.3s ease;
}
.nav-links a:not(.nav-cta):hover::after { width: 100%; }

.nav-logo { transition: transform 0.3s; display: flex; align-items: center; gap: 12px; }
.nav-logo:hover { transform: scale(1.05); }

/* ── FORM FOCUS ── */
.form-control { transition: border-color 0.25s, box-shadow 0.25s !important; }

/* ── SHIMMER SKELETON ── */
.skeleton {
    background: linear-gradient(90deg, var(--bg-muted) 25%, var(--bg-card) 50%, var(--bg-muted) 75%);
    background-size: 800px 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--card-radius);
}

/* ============================================================
   MOBILE OPTIMIZATION — Consolidated Unified Structure
   ============================================================ */

@media (max-width: 1024px) {
  .hamburger { 
    display: flex !important; 
    position: fixed; 
    right: 1.5rem;
    top: 1.5rem;
    z-index: 6001; 
  }
  
  .nav-links { 
    position: fixed !important; 
    top: 0 !important; 
    left: 0 !important; 
    width: 100% !important; 
    height: 100vh !important; 
    background: #050505 !important; 
    flex-direction: column !important; 
    justify-content: flex-start !important; 
    align-items: center !important; 
    padding: 120px 2rem 5rem !important; 
    z-index: 3500 !important; 
    overflow-y: auto !important;
    opacity: 0 !important; 
    pointer-events: none !important;
    transform: none !important; 
    visibility: hidden !important;
    transition: opacity 0.4s ease, visibility 0.4s !important;
    display: flex !important; 
    gap: 2rem !important;
  }
  
  .nav-links.active { 
    opacity: 1 !important; 
    pointer-events: auto !important; 
    visibility: visible !important; 
  }
  
  .nav-link { 
    font-size: 1.25rem !important; 
    font-weight: 700 !important;
    width: 100%;
    text-align: center;
    padding: 1rem !important;
  }
  
  .nav-dropdown-menu { 
    position: static !important; 
    opacity: 1 !important; 
    visibility: visible !important; 
    transform: none !important; 
    background: rgba(255,255,255,0.03) !important; 
    box-shadow: none !important; 
    border: none !important; 
    padding: 1rem 0 0 0 !important; 
    text-align: center !important;
    display: none !important;
    width: 100%;
    border-radius: 8px;
  }
  
  .nav-dropdown.open-mobile .nav-dropdown-menu { 
    display: block !important; 
  }

  .nav-links .nav-cta {
    width: calc(100% - 4rem) !important;
    max-width: 300px;
    margin: 2rem auto !important;
    background: #ffffff !important;
    color: #000000 !important;
    text-align: center !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.2rem !important;
    font-weight: 800 !important;
    border-radius: 50px !important;
    white-space: nowrap;
  }
  .nav-links .nav-cta:hover {
    background: #00aaff !important;
    color: white !important;
  }
}

@media (max-width: 768px) {
    :root {
        --section-pad: 50px;
    }
    
    .nav-modern { height: 80px !important; }
    .nav-modern.scrolled { height: 70px !important; }
    .ticker-bar { top: 80px !important; }
    .nav-modern.scrolled + .ticker-bar { top: 70px !important; }

    .nav-logo-text { display: flex !important; min-width: max-content; }
    .nav-logo-main { font-size: 0.9rem !important; }
    .nav-logo-sub { font-size: 0.45rem !important; display: block !important; opacity: 0.7; }
    .nav-logo img { height: 38px !important; width: 38px !important; flex-shrink: 0; }

    .grid-bg { opacity: 0.2; }
    .footer-grid, .accreditation-grid { grid-template-columns: 1fr !important; gap: 3rem; }
    .stats-row { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 480px) {
    .nav-logo img { height: 32px !important; width: 32px !important; flex-shrink: 0; }
    .nav-logo-text { display: flex !important; min-width: max-content; }
    .nav-logo-main { font-size: 0.8rem !important; }
    .nav-logo-sub { font-size: 0.4rem !important; display: block !important; }
    .nav-modern { padding: 0 1rem !important; }
    .hamburger { right: 1rem !important; }
    
    .ticker-content { font-size: 0.65rem !important; }
    .ticker-label { font-size: 0.5rem !important; padding: 2px 6px !important; margin-right: 10px !important; }
    
    h1 { font-size: 1.8rem !important; }
    .hero-title { font-size: 2rem !important; }
    .hero-desc { font-size: 0.9rem !important; }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1 !important; transform: none !important; }
}