/* ==========================================
   RESET & BASE STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* ===== COLOR SYSTEM ===== */
    /* Primary Colors */
    --primary-color: #00bcd4;
    --primary-hover: #00acc1;
    --primary-light: #4dd0e1;
    --primary-dark: #0097a7;

    /* Secondary Colors */
    --secondary-color: #0097a7;
    --accent-color: #00e5ff;

    /* Semantic Colors */
    --success-color: #10b981;
    --success-light: #34d399;
    --warning-color: #f59e0b;
    --warning-light: #fbbf24;
    --error-color: #ef4444;
    --error-light: #f87171;
    --info-color: #3b82f6;
    --info-light: #60a5fa;

    /* Background Colors */
    --dark-bg: #0a0a0a;
    --dark-secondary: #1a1a1a;
    --dark-tertiary: #2a2a2a;
    --dark-quaternary: #3a3a3a;
    --bg-overlay: rgba(0, 0, 0, 0.8);

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    --text-disabled: #606060;

    /* Border Colors */
    --border-color: rgba(255, 255, 255, 0.1);
    --border-light: rgba(255, 255, 255, 0.05);
    --border-strong: rgba(255, 255, 255, 0.2);

    /* ===== SPACING SCALE ===== */
    --space-1: 0.25rem;  /* 4px */
    --space-2: 0.5rem;   /* 8px */
    --space-3: 0.75rem;  /* 12px */
    --space-4: 1rem;     /* 16px */
    --space-5: 1.25rem;  /* 20px */
    --space-6: 1.5rem;   /* 24px */
    --space-8: 2rem;     /* 32px */
    --space-10: 2.5rem;  /* 40px */
    --space-12: 3rem;    /* 48px */
    --space-16: 4rem;    /* 64px */
    --space-20: 5rem;    /* 80px */

    /* ===== TYPOGRAPHY SCALE ===== */
    --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-family-mono: 'Monaco', 'Courier New', monospace;

    /* Font Sizes */
    --font-xs: 0.75rem;    /* 12px */
    --font-sm: 0.875rem;   /* 14px */
    --font-base: 1rem;     /* 16px */
    --font-lg: 1.125rem;   /* 18px */
    --font-xl: 1.25rem;    /* 20px */
    --font-2xl: 1.5rem;    /* 24px */
    --font-3xl: 1.875rem;  /* 30px */
    --font-4xl: 2.25rem;   /* 36px */
    --font-5xl: 3rem;      /* 48px */

    /* Font Weights */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    --font-black: 900;

    /* Line Heights */
    --leading-none: 1;
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;

    /* ===== BORDER RADIUS ===== */
    --radius-none: 0;
    --radius-sm: 0.25rem;   /* 4px */
    --radius-base: 0.5rem;  /* 8px */
    --radius-md: 0.75rem;   /* 12px */
    --radius-lg: 1rem;      /* 16px */
    --radius-xl: 1.5rem;    /* 24px */
    --radius-full: 9999px;

    /* ===== SHADOWS ===== */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-base: 0 4px 12px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 20px rgba(0, 188, 212, 0.3);
    --shadow-glow-strong: 0 0 30px rgba(0, 188, 212, 0.5);

    /* ===== GRADIENTS ===== */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    --gradient-success: linear-gradient(135deg, var(--success-color), var(--success-light));
    --gradient-overlay: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.7));

    /* ===== TRANSITIONS ===== */
    --transition-fast: all 0.15s ease;
    --transition-base: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Legacy support */
    --transition: var(--transition-base);

    /* ===== Z-INDEX SCALE ===== */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
    --z-toast: 800;

    /* ===== BREAKPOINTS (for reference) ===== */
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
    --breakpoint-2xl: 1536px;
}

body {
    font-family: var(--font-family-base);
    font-size: var(--font-base);
    line-height: var(--leading-normal);
    font-weight: var(--font-normal);
    color: var(--text-primary);
    background-color: var(--dark-bg);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================
   NAVIGATION
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.logo-text {
    display: block;
    line-height: 1.1;
    color: var(--text-primary);
    transition: var(--transition);
}

.logo-text:hover {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn-primary {
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: var(--text-primary);
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-primary:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn-auth {
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    cursor: pointer;
}

.btn-auth:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-2px);
}

.btn-auth:active {
    transform: translateY(0);
}

.btn-auth:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn-member {
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: var(--text-primary);
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-member:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-member:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-member:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn-cta {
    padding: 1rem 2.5rem;
    background: var(--gradient-primary);
    color: var(--text-primary);
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    display: inline-block;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-cta:active {
    transform: translateY(0);
    box-shadow: var(--shadow-md);
}

.btn-cta:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    position: relative;
    padding: 120px 20px 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(0, 188, 212, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 229, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 3;
}

/* Video Background */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 aspect ratio */
    transform: translate(-50%, -50%);
    pointer-events: none;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Mobile: Hide video on small screens for performance */
@media (max-width: 768px) {
    /* Ensure buttons meet minimum touch target size (44x44px) */
    .btn-primary,
    .btn-auth,
    .btn-member,
    .btn-cta,
    .submit-btn,
    button {
        min-height: 44px;
        min-width: 44px;
        padding: 0.75rem 1.5rem;
    }

    .video-background {
        display: none !important;
    }

    .video-background video {
        display: none !important;
    }

    .hero {
        background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%) !important;
    }
}

.hero-logo {
    margin-bottom: 2rem;
    display: inline-block;
    position: relative;
}

.logo-square {
    position: absolute;
    top: -20px;
    right: -30px;
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 8px;
    animation: float 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -2px;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(0, 188, 212, 0.2);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 3rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-stats {
    display: flex;
    gap: 4rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* ==========================================
   SECTION STYLES
   ========================================== */
section {
    padding: 100px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about {
    background: var(--dark-secondary);
}

.about-content {
    display: grid;
    gap: 4rem;
}

.about-text {
    max-width: 900px;
    margin: 0 auto;
}

.about-text .lead {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.value-card {
    padding: 2rem;
    background: var(--dark-tertiary);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    text-align: center;
}

.value-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.value-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.value-card p {
    color: var(--text-secondary);
}

/* ==========================================
   TIMELINE SECTION
   ========================================== */
.timeline {
    background: var(--dark-bg);
}

.timeline-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(even) {
    direction: rtl;
}

.timeline-item:nth-child(even) > * {
    direction: ltr;
}

.timeline-date {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 2rem;
}

.timeline-item:nth-child(even) .timeline-date {
    justify-content: flex-start;
    padding-left: 2rem;
    padding-right: 0;
}

.timeline-card {
    background: var(--dark-tertiary);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    position: relative;
}

.timeline-card::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 15px;
    height: 15px;
    background: var(--primary-color);
    border: 3px solid var(--dark-bg);
    border-radius: 50%;
    transform: translateY(-50%);
    left: -2.5rem;
    box-shadow: 0 0 0 4px rgba(0, 188, 212, 0.2);
}

.timeline-item:nth-child(even) .timeline-card::before {
    left: auto;
    right: -2.5rem;
}

.timeline-card:hover {
    transform: translateX(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.timeline-item:nth-child(even) .timeline-card:hover {
    transform: translateX(5px);
}

.timeline-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.timeline-card p {
    color: var(--text-secondary);
}

/* ==========================================
   EVENTS SECTION
   ========================================== */
.events {
    background: var(--dark-secondary);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.event-card {
    background: var(--dark-tertiary);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.event-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.event-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.event-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.event-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.topics-section {
    margin-top: 5rem;
    text-align: center;
}

.topics-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 800;
}

.topics-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.topic-badge {
    padding: 0.75rem 1.5rem;
    background: rgba(0, 188, 212, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 50px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.topic-badge:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

/* ==========================================
   UPCOMING EVENTS SECTION
   ========================================== */
.upcoming-events-section {
    padding: 80px 20px;
    background: var(--dark-bg);
}

.upcoming-events-section .section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.upcoming-events-section .section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.upcoming-events-section .events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.upcoming-events-section .event-card {
    background: var(--dark-tertiary);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.upcoming-events-section .event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.upcoming-events-section .event-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.event-detail {
    display: flex;
    align-items: start;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.event-detail strong {
    min-width: 100px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.partner-event-badge {
    display: inline-block;
    background: var(--primary-color);
    color: var(--dark-bg);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.upcoming-events-section .register-btn {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--text-primary);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    margin-bottom: 1.5rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    align-self: flex-start;
}

.upcoming-events-section .register-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.no-events {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.partner-event-toggle {
    width: 100%;
    background: rgba(0, 188, 212, 0.1);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.partner-event-toggle:hover {
    background: rgba(0, 188, 212, 0.2);
}

.toggle-icon {
    font-size: 0.8rem;
}

.partner-event-info {
    background: rgba(0, 188, 212, 0.05);
    padding: 1rem;
    border-radius: 8px;
    margin: 0.5rem 0 1rem 0;
    border-left: 3px solid var(--primary-color);
    font-size: 0.9rem;
}

.partner-event-info p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.partner-event-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.partner-event-info a:hover {
    text-decoration: underline;
}

/* ==========================================
   AFFILIATES SECTION
   ========================================== */
.affiliates {
    background: var(--dark-secondary);
}

.main-affiliates {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.other-affiliates {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.other-affiliates .affiliate-card {
    padding: 2rem 1.5rem;
    min-height: 100px;
}

.other-affiliates .affiliate-logo {
    max-width: 150px;
    max-height: 60px;
}

.affiliate-card {
    padding: 3rem 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
}

.affiliate-card a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.affiliate-card.dark-bg {
    background: var(--dark-tertiary);
}

.affiliate-card.light-bg {
    background: #ffffff;
}

.affiliate-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.affiliate-logo {
    max-width: 200px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

/* Increase size for specific logos that appear small */
.affiliate-logo[alt="Project Chatter"] {
    max-width: 280px;
    max-height: 110px;
}

.affiliate-logo[alt="Nodes & Links"] {
    max-width: 280px;
    max-height: 110px;
}

/* Increase size for other affiliates section logos too */
.other-affiliates .affiliate-logo[alt="Nodes & Links"] {
    max-width: 220px;
    max-height: 85px;
}

/* Tablet: 2 columns for main affiliates */
@media (max-width: 1024px) and (min-width: 769px) {
    .main-affiliates {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: 1 column for main affiliates */
@media (max-width: 768px) {
    .main-affiliates {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   GALLERY SECTION
   ========================================== */
.gallery {
    background: var(--dark-secondary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 1/1;
    background: var(--dark-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 70%, transparent 100%);
    padding: 1rem;
    transform: translateY(0);
    transition: var(--transition);
}

.gallery-overlay h4 {
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
    color: var(--text-primary);
    font-weight: 600;
}

.gallery-overlay p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

/* ==========================================
   MILESTONES SECTION
   ========================================== */
.timeline-section {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%);
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.timeline-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 191, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 107, 0, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* Toggle button */
.timeline-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.1) 0%, rgba(255, 107, 0, 0.1) 100%);
    border: 1.5px solid var(--accent-color);
    border-radius: 8px;
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.timeline-toggle:hover {
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.15) 0%, rgba(255, 107, 0, 0.15) 100%);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 191, 255, 0.3);
}

.toggle-icon {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.timeline-toggle[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

.milestones-container {
    max-width: 700px;
    margin: 1rem auto 0;
    position: relative;
    padding: 0 15px;
    max-height: 2000px;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

.milestones-container.collapsed {
    max-height: 300px;
}

.milestones-container.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent 0%, #0a0a0a 80%);
    pointer-events: none;
}

/* Vertical connecting line with glow */
.milestones-container::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 12px;
    bottom: 20px;
    width: 2px;
    background: linear-gradient(
        to bottom,
        rgba(0, 191, 255, 0.6) 0%,
        rgba(0, 191, 255, 0.3) 25%,
        rgba(255, 107, 0, 0.3) 75%,
        rgba(255, 107, 0, 0.6) 100%
    );
    border-radius: 1px;
    box-shadow:
        0 0 10px rgba(0, 191, 255, 0.15),
        0 0 20px rgba(255, 107, 0, 0.1);
}

.milestone-card {
    position: relative;
    margin-bottom: 0.65rem;
    padding-left: 55px;
    opacity: 0;
    animation: slideInFromLeft 0.5s cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
}

.milestone-card:nth-child(1) { animation-delay: 0.03s; }
.milestone-card:nth-child(2) { animation-delay: 0.06s; }
.milestone-card:nth-child(3) { animation-delay: 0.09s; }
.milestone-card:nth-child(4) { animation-delay: 0.12s; }
.milestone-card:nth-child(5) { animation-delay: 0.15s; }
.milestone-card:nth-child(6) { animation-delay: 0.18s; }
.milestone-card:nth-child(7) { animation-delay: 0.21s; }
.milestone-card:nth-child(8) { animation-delay: 0.24s; }
.milestone-card:nth-child(9) { animation-delay: 0.27s; }
.milestone-card:nth-child(10) { animation-delay: 0.3s; }
.milestone-card:nth-child(11) { animation-delay: 0.33s; }

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Pulsing dot indicator with glow */
.milestone-card::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 7px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-color) 0%, rgba(0, 191, 255, 0.6) 100%);
    border: 2px solid var(--dark-bg);
    z-index: 3;
    box-shadow:
        0 0 0 0 rgba(0, 191, 255, 0.5),
        0 0 8px rgba(0, 191, 255, 0.25);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow:
            0 0 0 0 rgba(0, 191, 255, 0.5),
            0 0 8px rgba(0, 191, 255, 0.25);
    }
    50% {
        box-shadow:
            0 0 0 4px rgba(0, 191, 255, 0),
            0 0 12px rgba(0, 191, 255, 0.4);
    }
}

/* Major milestone dots - larger with special glow */
.milestone-card.major::before {
    width: 14px;
    height: 14px;
    left: 14px;
    top: 6px;
    background: radial-gradient(circle, var(--secondary-color) 0%, rgba(255, 107, 0, 0.7) 100%);
    box-shadow:
        0 0 0 0 rgba(255, 107, 0, 0.6),
        0 0 12px rgba(255, 107, 0, 0.4),
        0 0 20px rgba(255, 107, 0, 0.15);
    animation: pulseMajor 2s infinite;
}

@keyframes pulseMajor {
    0%, 100% {
        box-shadow:
            0 0 0 0 rgba(255, 107, 0, 0.6),
            0 0 12px rgba(255, 107, 0, 0.4),
            0 0 20px rgba(255, 107, 0, 0.15);
    }
    50% {
        box-shadow:
            0 0 0 6px rgba(255, 107, 0, 0),
            0 0 18px rgba(255, 107, 0, 0.6),
            0 0 25px rgba(255, 107, 0, 0.3);
    }
}

/* Icon with elegant styling */
.milestone-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.08) 0%, rgba(255, 107, 0, 0.08) 100%);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border: 1px solid rgba(0, 191, 255, 0.25);
    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.milestone-card:hover .milestone-icon {
    transform: scale(1.05) rotate(3deg);
    border-color: var(--secondary-color);
    box-shadow:
        0 4px 15px rgba(255, 107, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 0 20px rgba(255, 107, 0, 0.15);
}

/* Content card with modern glass effect */
.milestone-content {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.7) 0%, rgba(15, 15, 30, 0.85) 100%);
    backdrop-filter: blur(10px);
    padding: 0.5rem 0.7rem;
    border-radius: 7px;
    border: 1px solid rgba(0, 191, 255, 0.1);
    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Subtle gradient overlay */
.milestone-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0.4;
}

.milestone-card.major .milestone-content::before {
    height: 2px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    opacity: 0.7;
    box-shadow: 0 1px 8px rgba(255, 107, 0, 0.25);
}

/* Shimmer effect on hover */
.milestone-content::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 100%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.03),
        transparent
    );
    transform: skewX(-20deg);
    transition: left 0.4s;
}

.milestone-card:hover .milestone-content::after {
    left: 200%;
}

.milestone-content:hover {
    transform: translateX(3px);
    border-color: rgba(0, 191, 255, 0.25);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(0, 191, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.milestone-card.major .milestone-content:hover {
    border-color: rgba(255, 107, 0, 0.25);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.3),
        0 0 25px rgba(255, 107, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Typography */
.milestone-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-shadow: 0 1px 6px rgba(0, 191, 255, 0.2);
    transition: all 0.3s ease;
}

.milestone-card.major .milestone-content h3 {
    color: var(--secondary-color);
    font-size: 0.76rem;
    text-shadow: 0 1px 8px rgba(255, 107, 0, 0.25);
}

.milestone-content:hover h3 {
    transform: translateX(2px);
}

.milestone-date {
    display: inline-block;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.68rem;
    margin-bottom: 0.3rem;
    padding: 0.15rem 0.4rem;
    background: rgba(0, 191, 255, 0.06);
    border-radius: 3px;
    border-left: 2px solid var(--accent-color);
    letter-spacing: 0.2px;
}

.milestone-card.major .milestone-date {
    background: rgba(255, 107, 0, 0.1);
    border-left-color: var(--secondary-color);
    color: var(--secondary-color);
}

.milestone-content p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.76rem;
    margin-bottom: 0.2rem;
    line-height: 1.4;
    font-weight: 400;
}

.milestone-content p:last-child {
    margin-bottom: 0;
}

.milestone-desc {
    color: rgba(255, 255, 255, 0.5) !important;
    font-style: italic;
    font-size: 0.72rem !important;
    margin-top: 0.3rem !important;
    padding-top: 0.3rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* "The journey continues..." section */
.milestone-continuing {
    margin-top: 1.5rem;
    padding-left: 55px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-align: left;
    opacity: 0;
    animation: fadeInUp 0.5s ease 0.4s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.milestone-continuing span {
    display: block;
    margin-bottom: 0.6rem;
    font-style: italic;
    font-size: 0.9rem;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.milestone-continuing a {
    display: inline-block;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    background: rgba(0, 191, 255, 0.06);
    border: 1px solid var(--accent-color);
    border-radius: 5px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.milestone-continuing a:hover {
    background: rgba(0, 191, 255, 0.12);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: translateX(3px);
    box-shadow: 0 3px 15px rgba(0, 191, 255, 0.2);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .timeline-section {
        padding: 30px 12px;
    }

    .timeline-toggle {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .milestones-container {
        margin: 0.75rem auto 0;
        padding: 0 10px;
    }

    .milestones-container.collapsed {
        max-height: 200px;
    }

    .milestones-container.collapsed::after {
        height: 80px;
    }

    .milestones-container::before {
        left: 12px;
        width: 1.5px;
        top: 8px;
        bottom: 15px;
    }

    .milestone-card {
        padding-left: 36px;
        margin-bottom: 0.5rem;
    }

    .milestone-card::before {
        left: 8px;
        top: 5px;
        width: 9px;
        height: 9px;
        border: 1.5px solid var(--dark-bg);
    }

    .milestone-card.major::before {
        left: 7px;
        top: 4px;
        width: 11px;
        height: 11px;
    }

    .milestone-icon {
        display: none;
    }

    .milestone-content {
        padding: 0.45rem 0.6rem;
        border-radius: 6px;
    }

    .milestone-content h3 {
        font-size: 0.68rem;
        letter-spacing: 0.6px;
        margin-bottom: 0.2rem;
    }

    .milestone-card.major .milestone-content h3 {
        font-size: 0.72rem;
    }

    .milestone-date {
        font-size: 0.64rem;
        padding: 0.12rem 0.35rem;
        margin-bottom: 0.25rem;
    }

    .milestone-content p {
        font-size: 0.72rem;
        margin-bottom: 0.15rem;
        line-height: 1.35;
    }

    .milestone-desc {
        font-size: 0.68rem !important;
        margin-top: 0.25rem !important;
        padding-top: 0.25rem !important;
    }

    .milestone-continuing {
        padding-left: 36px;
        font-size: 0.78rem;
        margin-top: 1.2rem;
    }

    .milestone-continuing span {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    .milestone-continuing a {
        padding: 0.45rem 0.9rem;
        font-size: 0.75rem;
    }
}

/* Tablet responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    .timeline-section {
        padding: 35px 18px;
    }

    .milestones-container {
        max-width: 650px;
        margin: 0.9rem auto 0;
    }

    .milestone-card {
        padding-left: 52px;
        margin-bottom: 0.6rem;
    }

    .milestone-icon {
        width: 34px;
        height: 34px;
        font-size: 1.05rem;
    }

    .milestone-content {
        padding: 0.55rem 0.75rem;
    }

    .milestone-content h3 {
        font-size: 0.7rem;
    }

    .milestone-card.major .milestone-content h3 {
        font-size: 0.74rem;
    }

    .milestone-date {
        font-size: 0.66rem;
    }

    .milestone-content p {
        font-size: 0.74rem;
    }
}

/* ==========================================
   TESTIMONIALS SECTION
   ========================================== */
.testimonials {
    background: var(--dark-bg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--dark-tertiary);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.testimonial-quote {
    font-size: 5rem;
    color: var(--primary-color);
    opacity: 0.3;
    line-height: 1;
    position: absolute;
    top: 1rem;
    left: 1.5rem;
}

.testimonial-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

.testimonial-author strong {
    color: var(--text-primary);
    font-size: 1.1rem;
}

.testimonial-author span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact {
    background: var(--dark-secondary);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 188, 212, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse-glow 4s ease-in-out infinite;
}

.contact::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse-glow 6s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Network connection decorative lines */
.network-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    opacity: 0.15;
    z-index: 0;
}

.network-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: network-pulse 3s ease-in-out infinite;
}

.network-node {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--primary-color);
    animation: node-pulse 2s ease-in-out infinite;
}

@keyframes network-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

@keyframes node-pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.3); opacity: 1; }
}

.contact-card {
    background: var(--dark-tertiary);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    text-align: center;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.founder-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 188, 212, 0.3);
    transition: var(--transition);
}

.founder-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.contact-card:hover .founder-image {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 188, 212, 0.5);
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.contact-role {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50px;
    color: var(--text-primary);
    transition: var(--transition);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: rgba(0, 188, 212, 0.1);
    border-radius: 8px;
    color: var(--text-secondary);
    transition: var(--transition);
    justify-content: center;
    font-size: 0.95rem;
}

.contact-link:hover {
    background: rgba(0, 188, 212, 0.2);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.contact-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.cta-banner {
    background: var(--gradient-primary);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.cta-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-bg);
    font-weight: 900;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: rgba(10, 10, 10, 0.8);
}

.free-badge {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--dark-bg);
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
}

/* Registration Form */
.registration-section {
    margin-top: 4rem;
    padding: 3rem;
    background: var(--dark-tertiary);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
}

.registration-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-weight: 900;
}

.registration-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    margin-bottom: 2rem;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Required field indicator */
.form-group label:has(+ input[required])::after,
.form-group label:has(+ div input[required])::after,
.form-group label:has(+ select[required])::after,
.form-group label:has(+ textarea[required])::after {
    content: ' *';
    color: var(--error-color);
    font-weight: 700;
}

/* Form validation states */
.form-group.error input,
.form-group.error select,
.form-group.error textarea,
input.error,
select.error,
textarea.error {
    border-color: var(--error-color);
    background: rgba(239, 68, 68, 0.05);
}

.form-group.error input:focus,
.form-group.error select:focus,
.form-group.error textarea:focus {
    border-color: var(--error-color);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group.success input,
.form-group.success select,
.form-group.success textarea {
    border-color: var(--success-color);
    background: rgba(16, 185, 129, 0.05);
}

.form-group .error-message {
    display: block;
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    padding-left: 0.25rem;
}

.form-group .error-message::before {
    content: '⚠️ ';
}

.form-group .success-message {
    display: block;
    color: var(--success-color);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    padding-left: 0.25rem;
}

.form-group .success-message::before {
    content: '✓ ';
}

.form-group input,
.form-group select {
    padding: 0.875rem 1rem;
    background: var(--dark-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.registration-form button[type="submit"] {
    width: 100%;
    margin-top: 1rem;
}

.registration-form button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--dark-bg);
    padding: 4rem 20px 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    text-align: center;
}

.logo-text-footer {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.footer-hashtags {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-hashtags span {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-text p {
    margin-bottom: 0.5rem;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
        transition: right 0.3s ease;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

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

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

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

    .timeline-content::before {
        left: 0;
        transform: none;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        padding-left: 2rem;
    }

    .timeline-item:nth-child(even) {
        direction: ltr;
    }

    .timeline-date {
        justify-content: flex-start;
        padding: 0;
        margin-bottom: 0.5rem;
    }

    .timeline-item:nth-child(even) .timeline-date {
        justify-content: flex-start;
        padding: 0;
    }

    .timeline-card::before {
        left: -2.5rem;
    }

    .timeline-item:nth-child(even) .timeline-card::before {
        left: -2.5rem;
        right: auto;
    }

    .timeline-card:hover {
        transform: translateX(0) translateY(-5px);
    }

    .timeline-item:nth-child(even) .timeline-card:hover {
        transform: translateX(0) translateY(-5px);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .container {
        padding: 0 15px;
    }

    section {
        padding: 60px 15px;
    }

    .events-grid,
    .testimonials-grid,
    .contact-grid,
    .main-affiliates,
    .other-affiliates {
        grid-template-columns: 1fr;
    }

    .logo-square {
        width: 50px;
        height: 50px;
        top: -15px;
        right: -20px;
    }

    .founder-image {
        width: 120px;
        height: 120px;
    }

    .contact-card h3 {
        font-size: 1.3rem;
    }

    .contact-btn {
        font-size: 0.9rem;
        padding: 0.75rem 1.25rem;
    }

    .contact-link {
        font-size: 0.85rem;
        padding: 0.75rem 0.875rem;
        gap: 0.5rem;
    }

    .contact-icon {
        font-size: 1rem;
    }

    .registration-section {
        padding: 2rem 1.5rem;
    }

    .registration-title {
        font-size: 1.5rem;
    }

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

@media (max-width: 380px) {
    .founder-image {
        width: 100px;
        height: 100px;
        border-width: 3px;
    }

    .contact-btn {
        font-size: 0.85rem;
        padding: 0.65rem 1rem;
    }

    .contact-link {
        font-size: 0.75rem;
        padding: 0.625rem 0.75rem;
    }

    .contact-card h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 320px) {
    .founder-image {
        width: 90px;
        height: 90px;
    }

    .contact-btn {
        font-size: 0.8rem;
        padding: 0.6rem 0.9rem;
    }

    .contact-link {
        font-size: 0.7rem;
        padding: 0.5rem 0.625rem;
        gap: 0.5rem;
    }

    .contact-icon {
        font-size: 0.9rem;
    }
}

/* ==========================================
   SCROLL ANIMATIONS
   ========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* ==========================================
   REGISTRATION MODAL
   ========================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--dark-tertiary);
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
    z-index: 10001;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--dark-secondary);
    color: var(--primary-color);
    transform: rotate(90deg);
}

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

.modal-header h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.modal-event-details {
    background: var(--dark-secondary);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.modal-event-details p {
    margin: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.modal-event-details p:first-child {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
}

.modal-form .form-group {
    margin-bottom: 1.5rem;
}

.modal-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.modal-form input,
.modal-form textarea {
    width: 100%;
    padding: 0.75rem;
    background: var(--dark-secondary);
    border: 1px solid var(--dark-bg);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.modal-form input:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--dark-bg);
}

.modal-form textarea {
    resize: vertical;
    min-height: 80px;
}

.modal-form .submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: var(--dark-bg);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-form .submit-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 188, 212, 0.3);
}

.modal-form .submit-btn:active {
    transform: translateY(0);
}

.modal-form .submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Map link styles */
.map-link:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 191, 255, 0.3);
}

.map-link:active {
    transform: translateY(0);
}

/* Responsive map link on mobile */
@media (max-width: 768px) {
    .map-link {
        font-size: 0.8rem !important;
        padding: 0.35rem 0.6rem !important;
    }

    .map-link svg {
        width: 12px;
        height: 12px;
    }
}

/* Inline validation styles */
.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: #ef4444;
    background-color: rgba(239, 68, 68, 0.05);
}

.form-group input.error:focus,
.form-group textarea.error:focus,
.form-group select.error:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group input.success,
.form-group textarea.success,
.form-group select.success {
    border-color: #10b981;
}

.error-message {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
    animation: fadeIn 0.2s ease-in;
}

.success-message {
    color: #10b981;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
    animation: fadeIn 0.2s ease-in;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 1.5rem;
        max-height: 95vh;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .modal-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 48px;
        height: 48px;
        font-size: 2.5rem;
        background: rgba(0, 0, 0, 0.7);
        color: white;
        z-index: 10001;
        pointer-events: auto;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .modal-close:hover,
    .modal-close:active,
    .modal-close:focus {
        background: var(--primary-color);
        transform: scale(0.95);
        outline: none;
    }
}

/* ==========================================
   DASHBOARD STYLES
   ========================================== */

.dashboard-body {
    background: var(--dark-bg);
    min-height: 100vh;
}

.dashboard-container {
    padding: 110px 18px 24px;
    min-height: calc(100vh - 80px);
}

.dashboard-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    color: var(--text-secondary);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--dark-secondary);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Skeleton loading states */
.skeleton {
    background: linear-gradient(90deg, var(--dark-secondary) 25%, var(--dark-tertiary) 50%, var(--dark-secondary) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

.skeleton-title {
    height: 1.5rem;
    width: 60%;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.skeleton-card {
    padding: 1.5rem;
    background: var(--dark-tertiary);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.skeleton-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.skeleton-button {
    height: 44px;
    width: 120px;
    border-radius: 50px;
}

/* Inline button spinner */
.btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

/* Button loading state */
button.loading,
.submit-btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
    cursor: not-allowed;
}

button.loading::after,
.submit-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Disabled button improved styling */
button:disabled:not(.loading),
.submit-btn:disabled:not(.loading) {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--text-disabled);
    color: var(--text-muted);
    transform: none !important;
    box-shadow: none !important;
}

/* Dashboard Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.member-welcome h1 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.member-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
}


.member-profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.profile-photo-container {
    position: relative;
    width: 64px;
    height: 64px;
}

.profile-photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.profile-photo-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark-bg);
}

.btn-edit-profile {
    padding: 0.75rem 1.25rem;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
}

.btn-edit-profile:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.stat-card {
    background: var(--dark-tertiary);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-top: 2px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-icon {
    font-size: 1.5rem;
}

.stat-info h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin: 0;
}

.stat-info p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin: 0;
}

/* Dashboard Section */
.dashboard-section {
    margin-bottom: 1.5rem;
}

.dashboard-section .section-title {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.member-search-card {
    background: var(--dark-tertiary);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid rgba(0, 188, 212, 0.1);
    box-shadow: var(--shadow-subtle);
    margin-bottom: 1rem;
}

.member-search-header h2 {
    margin: 0 0 0.25rem 0;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.member-search-subtitle {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0 0 0.75rem 0;
}

/* Badges Grid */
.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

.badge-card {
    background: var(--dark-tertiary);
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.badge-card.earned {
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 188, 212, 0.3);
}

.badge-card.next {
    border: 2px dashed var(--text-secondary);
    opacity: 0.7;
}

.badge-card:hover {
    transform: scale(1.05);
}

.badge-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.badge-card h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.badge-status {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.badge-progress {
    margin-top: 1rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--dark-secondary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

/* Events List */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.event-card-dash {
    background: var(--dark-tertiary);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    border-left: 3px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.event-card-dash:hover {
    transform: translateX(5px);
}

.event-card-dash.attended {
    border-left-color: #4caf50;
}

.event-card-dash.not-attended {
    border-left-color: #ff9800;
}

.event-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.event-date, .event-location {
    color: var(--text-secondary);
    margin: 0.25rem 0;
}

.event-actions {
    flex-shrink: 0;
}

.btn-confirmation {
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: var(--text-primary);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-confirmation:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-calendar {
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-left: 0.5rem;
}

.btn-calendar:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-2px);
}

.btn-upload-photo {
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: var(--text-primary);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    width: 100%;
}

.btn-upload-photo:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-cancel-registration {
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: #ef5350;
    border: 2px solid #ef5350;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    margin-left: 0.5rem;
}

.btn-cancel-registration:hover {
    background: #ef5350;
    color: var(--dark-bg);
    transform: translateY(-2px);
}

.btn-donate {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #00bcd4 0%, #0097a7 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    margin-left: 0.5rem;
}

.btn-donate:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 188, 212, 0.4);
}

.btn-map {
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    margin-left: 0.5rem;
}

.btn-map:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-2px);
}

.btn-donated {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    margin-left: 0.5rem;
}

.attendance-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.attendance-badge.attended {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.attendance-badge.missed {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
}

.empty-state {
    color: var(--text-secondary);
    text-align: center;
    padding: 3rem;
    font-style: italic;
}

/* Event Search Dropdown */
.event-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 0.25rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.event-search-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid var(--border-color);
    background: var(--dark-tertiary);
}

.event-search-item:last-child {
    border-bottom: none;
}

.event-search-item:hover {
    background: rgba(0, 188, 212, 0.1);
}

.event-search-item-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.event-search-item-details {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.event-search-empty {
    padding: 1rem;
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
}

/* Confirmation Card */
.confirmation-card {
    background: var(--dark-tertiary);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.confirmation-status {
    margin-bottom: 2rem;
}

.status-badge {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
}

.confirmation-details {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--dark-secondary);
}

.confirmation-details h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.confirmation-details p {
    color: var(--text-secondary);
    margin: 0.5rem 0;
}

.confirmation-attendee {
    text-align: left;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--dark-secondary);
    border-radius: 8px;
}

.confirmation-attendee h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.confirmation-attendee p {
    color: var(--text-secondary);
    margin: 0.5rem 0;
}

.confirmation-photo {
    text-align: center;
    margin-top: 2rem;
}

.confirmation-profile-photo {
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.confirmation-profile-photo img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
}

.confirmation-photo-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    font-weight: 700;
    color: var(--dark-bg);
    border: 4px solid var(--primary-color);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 120px 18px 24px;
    }

    .dashboard-header {
        flex-direction: row;
        align-items: flex-start;
        gap: 0.75rem;
        margin-bottom: 1.25rem;
    }

    .dashboard-top-grid {
        grid-template-columns: 1fr;
    }

    .member-welcome {
        flex: 1;
        min-width: 0;
    }

    .member-welcome h1 {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 0.25rem;
    }

    .member-subtitle {
        font-size: 0.85rem;
    }

    .member-profile-card {
        flex-shrink: 0;
    }

    .profile-photo,
    .profile-photo-placeholder {
        width: 48px !important;
        height: 48px !important;
        font-size: 1.25rem !important;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .event-card-dash {
        flex-direction: column;
        align-items: flex-start;
    }

    .event-actions {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn-confirmation {
        width: 100%;
        margin: 0;
    }

    .btn-calendar {
        width: 100%;
        margin: 0;
    }

    .btn-map {
        width: 100%;
        margin: 0;
    }

    .btn-donate,
    .btn-donated,
    .btn-cancel-registration {
        width: 100%;
        margin: 0;
    }

    /* Ensure all event action buttons have consistent styling on mobile */
    .event-actions a,
    .event-actions button {
        text-align: center;
        font-size: 0.9rem !important;
    }

    /* Smaller badge cards on mobile */
    .badges-grid {
        grid-template-columns: 1fr;
    }

    .badge-card {
        padding: 0.75rem;
    }

    .badge-icon {
        font-size: 1.75rem;
        margin-bottom: 0.35rem;
    }

    .badge-card h4 {
        font-size: 0.9rem;
        margin-bottom: 0.35rem;
    }

    .badge-card p {
        font-size: 0.8rem;
    }

    .badge-status {
        font-size: 0.75rem;
        margin-top: 0.35rem;
    }
}

/* ==========================================
   ALBUM VIEWER & PHOTO COMMENTS
   ========================================== */

.modal-large {
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
}

.album-photos {
    display: grid;
    gap: 3rem;
    padding: 1rem 0;
}

.album-photo-item {
    background: var(--dark-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(0, 188, 212, 0.1);
}

.album-photo-item img {
    width: 100%;
    max-height: 600px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.photo-comments-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.comments-list {
    margin-bottom: 1.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.comment-item {
    background: var(--dark-bg);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    border-left: 3px solid var(--primary-color);
}

.comment-item strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.25rem;
}

.comment-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-left: 0.5rem;
}

.comment-item p {
    color: var(--text-primary);
    margin: 0.5rem 0 0 0;
    line-height: 1.6;
}

.add-comment-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.comment-input {
    width: 100%;
    padding: 0.75rem;
    background: var(--dark-bg);
    border: 1px solid var(--dark-secondary);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: inherit;
    resize: vertical;
}

.comment-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    align-self: flex-start;
}

.photo-count {
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 0.5rem;
}

.album-cover {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.album-cover:hover {
    transform: translateY(-8px);
}

/* ==========================================
   MEMBER SEARCH
   ========================================== */

.member-search {
    padding: 3rem 0;
    background: var(--dark-bg);
}

.search-container {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 0 1rem 0;
}

.search-input {
    flex: 1;
    padding: 1rem;
    background: var(--dark-secondary);
    border: 1px solid rgba(0, 188, 212, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.member-search-results {
    max-width: 800px;
    margin: 0;
}

.member-results-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.member-result-item {
    background: var(--dark-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(0, 188, 212, 0.1);
    transition: border-color 0.3s ease;
}

.member-result-item:hover {
    border-color: var(--primary-color);
}

.member-result-info strong {
    color: var(--text-primary);
    font-size: 1.1rem;
}

/* Mobile Responsiveness for New Features */
@media (max-width: 768px) {
    .modal-large {
        max-width: 95%;
        padding: 1rem;
    }

    .album-photo-item img {
        max-height: 400px;
    }

    .search-container {
        flex-direction: column;
    }

    .member-result-item {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .member-result-item button {
        width: 100%;
    }

    .comments-list {
        max-height: 200px;
    }
}

/* ==========================================
   CHECKBOX LABELS
   ========================================== */

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    color: var(--text-primary);
}

.checkbox-label input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: var(--primary-color);
    /* Create 44x44px touch target with padding */
    padding: 10px;
    margin: -10px;
    min-width: 44px;
    min-height: 44px;
}

.checkbox-label span {
    user-select: none;
}

/* ==========================================
   TOAST NOTIFICATIONS
   ========================================== */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    pointer-events: none;
}

.toast {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 16px;
    margin-bottom: 12px;
    min-width: 320px;
    max-width: 500px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
}

.toast-show {
    opacity: 1;
    transform: translateX(0);
}

.toast-hide {
    opacity: 0;
    transform: translateX(100%);
}

.toast-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-message {
    color: #1f2937;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

.toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.toast-close:hover {
    background-color: #f3f4f6;
}

/* Toast Types */
.toast-success {
    border-left: 4px solid #10b981;
}

.toast-success .toast-icon {
    color: #10b981;
}

.toast-error {
    border-left: 4px solid #ef4444;
}

.toast-error .toast-icon {
    color: #ef4444;
}

.toast-warning {
    border-left: 4px solid #f59e0b;
}

.toast-warning .toast-icon {
    color: #f59e0b;
}

.toast-info {
    border-left: 4px solid #3b82f6;
}

.toast-info .toast-icon {
    color: #3b82f6;
}

/* Loading Toast */
.toast-loading {
    border-left: 4px solid #6366f1;
}

.toast-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #e5e7eb;
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Confirm Dialog */
.toast-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.toast-confirm-overlay.active {
    opacity: 1;
}

.toast-confirm-dialog {
    background: white;
    border-radius: 12px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.toast-confirm-overlay.active .toast-confirm-dialog {
    transform: scale(1);
}

.toast-confirm-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.toast-confirm-warning .toast-confirm-icon {
    background: #fef3c7;
    color: #f59e0b;
}

.toast-confirm-error .toast-confirm-icon {
    background: #fee2e2;
    color: #ef4444;
}

.toast-confirm-success .toast-confirm-icon {
    background: #d1fae5;
    color: #10b981;
}

.toast-confirm-info .toast-confirm-icon {
    background: #dbeafe;
    color: #3b82f6;
}

.toast-confirm-title {
    color: #111827;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
}

.toast-confirm-message {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 24px;
    text-align: center;
}

.toast-confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.toast-confirm-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.toast-confirm-cancel {
    background: #f3f4f6;
    color: #374151;
}

.toast-confirm-cancel:hover {
    background: #e5e7eb;
}

.toast-confirm-ok {
    background: var(--primary-color);
    color: white;
}

.toast-confirm-ok:hover {
    background: var(--secondary-color);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .toast {
        min-width: auto;
        max-width: none;
    }

    .toast-confirm-dialog {
        margin: 20px;
    }
}

/* ==========================================
   BUTTON LOADING STATES
   ========================================== */

.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    color: white;
}

.btn-small.btn-loading::after {
    width: 12px;
    height: 12px;
    margin-left: -6px;
    margin-top: -6px;
}

/* ==========================================
   SKELETON LOADERS
   ========================================== */

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 16px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.skeleton-text:last-child {
    width: 80%;
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.skeleton-card {
    height: 120px;
    border-radius: 8px;
}

.skeleton-table-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid #f3f4f6;
}

.skeleton-table-cell {
    height: 20px;
    border-radius: 4px;
}

/* ==========================================
   PROGRESS BARS
   ========================================== */

.progress-container {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin: 8px 0;
}

.progress-bar {
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-bar-animated {
    background: linear-gradient(90deg, 
        var(--primary-color) 0%, 
        var(--accent-color) 50%, 
        var(--primary-color) 100%);
    background-size: 200% 100%;
    animation: progress-animation 1.5s ease-in-out infinite;
}

@keyframes progress-animation {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.progress-text {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
    text-align: center;
}

/* ==========================================
   FORM VALIDATION STYLES
   ========================================== */

/* Required field indicator */
.form-group label.required::after {
    content: ' *';
    color: #ef4444;
    font-weight: bold;
}

/* Input validation states */
input.valid,
textarea.valid,
select.valid {
    border-color: #10b981;
    background-color: rgba(16, 185, 129, 0.05);
}

input.invalid,
textarea.invalid,
select.invalid {
    border-color: #ef4444;
    background-color: rgba(239, 68, 68, 0.05);
}

/* Focus states for validated inputs */
input.valid:focus,
textarea.valid:focus,
select.valid:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

input.invalid:focus,
textarea.invalid:focus,
select.invalid:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Validation icons */
.form-group {
    position: relative;
}

.form-group.has-validation input,
.form-group.has-validation textarea,
.form-group.has-validation select {
    padding-right: 40px;
}

.validation-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 18px;
    transition: opacity 0.3s ease;
}

.form-group.has-validation .validation-icon {
    top: 38px;
}

.validation-icon.valid {
    color: #10b981;
}

.validation-icon.invalid {
    color: #ef4444;
}

/* Validation messages */
.validation-message {
    display: block;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
    min-height: 20px;
}

.validation-message.error {
    color: #ef4444;
}

.validation-message.success {
    color: #10b981;
}

.validation-message.warning {
    color: #f59e0b;
}

.validation-message.info {
    color: #3b82f6;
}

/* Hide validation message when empty */
.validation-message:empty {
    display: none;
    min-height: 0;
}

/* File input validation */
.file-input-wrapper {
    position: relative;
}

.file-input-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.file-input-info.valid {
    color: #10b981;
}

.file-input-info.invalid {
    color: #ef4444;
}

/* Character counter */
.char-counter {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: right;
    margin-top: 4px;
}

.char-counter.warning {
    color: #f59e0b;
}

.char-counter.danger {
    color: #ef4444;
}

/* Form field hints */
.field-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 4px;
    font-style: italic;
}

/* Validation summary box */
.validation-summary {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    animation: shake 0.4s ease-in-out;
}

.validation-summary h4 {
    color: #ef4444;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.validation-summary ul {
    list-style: none;
    padding-left: 0;
}

.validation-summary li {
    color: #ef4444;
    font-size: 0.875rem;
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}

.validation-summary li::before {
    content: '•';
    position: absolute;
    left: 8px;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Real-time validation feedback */
.form-group.validating input,
.form-group.validating textarea {
    background-image: linear-gradient(45deg, transparent 25%, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.05) 50%, transparent 50%, transparent 75%, rgba(255, 255, 255, 0.05) 75%);
    background-size: 20px 20px;
    animation: validating-pulse 1s linear infinite;
}

@keyframes validating-pulse {
    0% { background-position: 0 0; }
    100% { background-position: 20px 20px; }
}

/* Email validation pattern feedback */
input[type="email"].checking::after {
    content: '';
    position: absolute;
    right: 40px;
    top: 50%;
    width: 16px;
    height: 16px;
    border: 2px solid var(--primary-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* Phone number formatting */
input[type="tel"].formatted {
    letter-spacing: 0.5px;
}

/* Password strength indicator */
.password-strength {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.password-strength-bar.weak {
    width: 33%;
    background-color: #ef4444;
}

.password-strength-bar.medium {
    width: 66%;
    background-color: #f59e0b;
}

.password-strength-bar.strong {
    width: 100%;
    background-color: #10b981;
}

.password-strength-text {
    font-size: 0.75rem;
    margin-top: 4px;
    text-align: right;
}

/* Inline validation for checkboxes/radios */
.checkbox-group.invalid label,
.radio-group.invalid label {
    color: #ef4444;
}

/* Multi-field validation (e.g., date ranges) */
.field-group {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.field-group .form-group {
    flex: 1;
}

/* Success state for entire form */
.form-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid #10b981;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.3s ease;
}

.form-success::before {
    content: '✓';
    font-size: 24px;
    font-weight: bold;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Disabled state with validation */
input:disabled.invalid,
textarea:disabled.invalid,
select:disabled.invalid {
    border-color: #9ca3af;
    background-color: rgba(156, 163, 175, 0.05);
    opacity: 0.6;
}

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

/* ===== SPACING UTILITIES ===== */
/* Margin */
.m-0 { margin: 0; }
.m-1 { margin: var(--space-1); }
.m-2 { margin: var(--space-2); }
.m-3 { margin: var(--space-3); }
.m-4 { margin: var(--space-4); }
.m-6 { margin: var(--space-6); }
.m-8 { margin: var(--space-8); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Padding */
.p-0 { padding: 0; }
.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

.pt-4 { padding-top: var(--space-4); }
.pb-4 { padding-bottom: var(--space-4); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }

/* ===== TYPOGRAPHY UTILITIES ===== */
.text-xs { font-size: var(--font-xs); }
.text-sm { font-size: var(--font-sm); }
.text-base { font-size: var(--font-base); }
.text-lg { font-size: var(--font-lg); }
.text-xl { font-size: var(--font-xl); }
.text-2xl { font-size: var(--font-2xl); }
.text-3xl { font-size: var(--font-3xl); }
.text-4xl { font-size: var(--font-4xl); }

.font-normal { font-weight: var(--font-normal); }
.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }
.font-extrabold { font-weight: var(--font-extrabold); }

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success-color); }
.text-warning { color: var(--warning-color); }
.text-error { color: var(--error-color); }
.text-info { color: var(--info-color); }

.leading-tight { line-height: var(--leading-tight); }
.leading-normal { line-height: var(--leading-normal); }
.leading-relaxed { line-height: var(--leading-relaxed); }

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== DISPLAY UTILITIES ===== */
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }

/* ===== FLEXBOX UTILITIES ===== */
.flex-row { flex-direction: row; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }

.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }

.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }

.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

.flex-1 { flex: 1; }
.flex-auto { flex: auto; }
.flex-none { flex: none; }

/* ===== SIZING UTILITIES ===== */
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-fit { width: fit-content; }
.h-full { height: 100%; }
.h-auto { height: auto; }

.max-w-xs { max-width: 20rem; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-full { max-width: 100%; }

/* ===== BACKGROUND UTILITIES ===== */
.bg-primary { background-color: var(--primary-color); }
.bg-secondary { background-color: var(--dark-secondary); }
.bg-tertiary { background-color: var(--dark-tertiary); }
.bg-success { background-color: var(--success-color); }
.bg-warning { background-color: var(--warning-color); }
.bg-error { background-color: var(--error-color); }
.bg-transparent { background-color: transparent; }

/* ===== BORDER UTILITIES ===== */
.border { border: 1px solid var(--border-color); }
.border-0 { border: 0; }
.border-t { border-top: 1px solid var(--border-color); }
.border-b { border-bottom: 1px solid var(--border-color); }

.rounded-none { border-radius: var(--radius-none); }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded { border-radius: var(--radius-base); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

/* ===== SHADOW UTILITIES ===== */
.shadow-none { box-shadow: none; }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow { box-shadow: var(--shadow-base); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* ===== POSITION UTILITIES ===== */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }

.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

/* ===== OVERFLOW UTILITIES ===== */
.overflow-auto { overflow: auto; }
.overflow-hidden { overflow: hidden; }
.overflow-visible { overflow: visible; }
.overflow-scroll { overflow: scroll; }

.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

/* ===== OPACITY UTILITIES ===== */
.opacity-0 { opacity: 0; }
.opacity-25 { opacity: 0.25; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

/* ===== POINTER UTILITIES ===== */
.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }
.cursor-default { cursor: default; }

/* ===== TRANSITION UTILITIES ===== */
.transition-fast { transition: var(--transition-fast); }
.transition { transition: var(--transition-base); }
.transition-slow { transition: var(--transition-slow); }
.transition-none { transition: none; }

/* ===== VISIBILITY UTILITIES ===== */
.visible { visibility: visible; }
.invisible { visibility: hidden; }

/* ===== INTERACTIVE STATES ===== */
.hover-lift:hover {
    transform: translateY(-2px);
    transition: var(--transition-fast);
}

.hover-glow:hover {
    box-shadow: var(--shadow-glow);
    transition: var(--transition-base);
}

.hover-scale:hover {
    transform: scale(1.05);
    transition: var(--transition-fast);
}

/* ===== CUSTOM UTILITIES ===== */
.card {
    background: var(--dark-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
}

.card-hover {
    transition: var(--transition-smooth);
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    font-size: var(--font-xs);
    font-weight: var(--font-semibold);
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-primary {
    background-color: var(--primary-color);
    color: white;
}

.badge-success {
    background-color: var(--success-color);
    color: white;
}

.badge-warning {
    background-color: var(--warning-color);
    color: white;
}

.badge-error {
    background-color: var(--error-color);
    color: white;
}

.badge-info {
    background-color: var(--info-color);
    color: white;
}

.divider {
    height: 1px;
    background-color: var(--border-color);
    margin: var(--space-4) 0;
}

.divider-vertical {
    width: 1px;
    height: 100%;
    background-color: var(--border-color);
    margin: 0 var(--space-4);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blur-sm {
    backdrop-filter: blur(8px);
}

.blur {
    backdrop-filter: blur(12px);
}

.blur-lg {
    backdrop-filter: blur(16px);
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus visible (accessibility) */
.focus-ring:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.focus-ring:focus:not(:focus-visible) {
    outline: none;
}

/* ==========================================
   MOBILE RESPONSIVENESS
   ========================================== */

/* ===== MOBILE NAVIGATION ===== */
@media (max-width: 768px) {
    /* Improve mobile menu */
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: var(--space-2);
        z-index: var(--z-fixed);
    }

    .mobile-menu-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--text-primary);
        margin: 5px 0;
        transition: var(--transition-fast);
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--dark-secondary);
        flex-direction: column;
        padding: var(--space-20) var(--space-6);
        box-shadow: var(--shadow-xl);
        transition: right 0.3s ease;
        z-index: calc(var(--z-fixed) - 1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: var(--space-2) 0;
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: var(--space-3) var(--space-4);
        border-radius: var(--radius-base);
        width: 100%;
    }

    .nav-links a:hover {
        background: var(--dark-tertiary);
    }

    /* Mobile overlay */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-base);
        z-index: calc(var(--z-fixed) - 2);
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* ===== RESPONSIVE TABLES ===== */
@media (max-width: 768px) {
    /* Make tables stack on mobile */
    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-responsive table {
        min-width: 600px;
    }

    /* Card-style table for mobile */
    .table-mobile-cards {
        display: block;
    }

    .table-mobile-cards thead {
        display: none;
    }

    .table-mobile-cards tbody,
    .table-mobile-cards tr,
    .table-mobile-cards td {
        display: block;
        width: 100%;
    }

    .table-mobile-cards tr {
        background: var(--dark-secondary);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-base);
        padding: var(--space-4);
        margin-bottom: var(--space-4);
    }

    .table-mobile-cards td {
        padding: var(--space-2) 0;
        border: none;
        position: relative;
        padding-left: 50%;
        text-align: right;
    }

    .table-mobile-cards td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 45%;
        padding-right: var(--space-2);
        font-weight: var(--font-semibold);
        text-align: left;
        color: var(--text-secondary);
    }
}

/* ===== TOUCH-FRIENDLY BUTTONS ===== */
@media (max-width: 768px) {
    /* Ensure minimum touch target size of 44px */
    button,
    .btn,
    a.btn,
    input[type="submit"],
    input[type="button"] {
        min-height: 44px;
        min-width: 44px;
        padding: var(--space-3) var(--space-4);
    }

    .btn-small {
        min-height: 38px;
        padding: var(--space-2) var(--space-3);
    }

    /* Larger tap targets for icons */
    .icon-button {
        padding: var(--space-3);
        min-width: 44px;
        min-height: 44px;
    }
}

/* ===== RESPONSIVE TYPOGRAPHY ===== */
@media (max-width: 768px) {
    /* Scale down heading sizes */
    h1, .text-5xl { font-size: 2rem; }
    h2, .text-4xl { font-size: 1.75rem; }
    h3, .text-3xl { font-size: 1.5rem; }
    h4, .text-2xl { font-size: 1.25rem; }
    h5, .text-xl { font-size: 1.125rem; }

    /* Adjust body text */
    body {
        font-size: 0.9375rem; /* 15px */
    }

    /* Improve readability */
    p {
        line-height: var(--leading-relaxed);
    }
}

/* ===== RESPONSIVE SPACING ===== */
@media (max-width: 768px) {
    /* Reduce padding on container */
    .container {
        padding: 0 var(--space-4);
    }

    /* Reduce margins */
    .section {
        padding: var(--space-12) 0;
    }

    /* Reduce card padding */
    .card {
        padding: var(--space-4);
    }

    /* Stack flex items on mobile */
    .flex-mobile-col {
        flex-direction: column;
    }

    .flex-mobile-wrap {
        flex-wrap: wrap;
    }

    /* Full width on mobile */
    .mobile-full {
        width: 100% !important;
    }

    /* Hide on mobile */
    .hide-mobile {
        display: none !important;
    }

    /* Show only on mobile */
    .show-mobile {
        display: block !important;
    }
}

/* ===== RESPONSIVE MODALS ===== */
@media (max-width: 768px) {
    .modal {
        padding: var(--space-4);
    }

    .modal-content {
        width: calc(100% - var(--space-8));
        max-width: 100%;
        max-height: 90vh;
        margin: auto;
        overflow-y: auto;
    }

    .modal-header {
        position: sticky;
        top: 0;
        background: var(--dark-secondary);
        z-index: var(--z-sticky);
        padding-bottom: var(--space-4);
        border-bottom: 1px solid var(--border-color);
        margin-bottom: var(--space-4);
    }

    .modal-close {
        top: var(--space-4);
        right: var(--space-4);
    }
}

/* ===== RESPONSIVE FORMS ===== */
@media (max-width: 768px) {
    .form-group {
        margin-bottom: var(--space-4);
    }

    input,
    textarea,
    select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: var(--space-3);
    }

    /* Stack form fields */
    .field-group {
        flex-direction: column;
    }

    .field-group .form-group {
        width: 100%;
    }
}

/* ===== RESPONSIVE CARDS ===== */
@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .event-card,
    .member-card,
    .badge-card {
        flex-direction: column;
    }

    .event-actions,
    .member-actions {
        flex-direction: column;
        width: 100%;
        gap: var(--space-2);
    }

    .event-actions button,
    .member-actions button {
        width: 100%;
    }
}

/* ===== RESPONSIVE DASHBOARD ===== */
@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
    }

    .stat-card {
        padding: var(--space-4);
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    /* Role navigation buttons */
    .role-navigation {
        flex-direction: column;
        gap: var(--space-3);
    }

    .role-navigation button,
    .role-navigation a {
        width: 100%;
    }
}

/* ===== RESPONSIVE ADMIN/HOST DASHBOARDS ===== */
@media (max-width: 768px) {
    .admin-container {
        flex-direction: column;
    }

    .admin-sidebar {
        position: static;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .admin-menu {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: var(--space-2) 0;
    }

    .admin-menu a {
        white-space: nowrap;
        padding: var(--space-2) var(--space-4);
        border-left: none;
        border-bottom: 2px solid transparent;
    }

    .admin-menu a.active {
        border-left: none;
        border-bottom-color: var(--primary-color);
    }

    .admin-content {
        margin-left: 0;
        padding: var(--space-4);
    }
}

/* ===== TABLET BREAKPOINT ===== */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 720px;
    }

    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== LARGE SCREENS ===== */
@media (min-width: 1280px) {
    .container {
        max-width: 1200px;
    }

    .dashboard-stats {
        grid-template-columns: repeat(4, 1fr);
    }

    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== LANDSCAPE MOBILE ===== */
@media (max-width: 768px) and (orientation: landscape) {
    .modal-content {
        max-height: 85vh;
    }

    .hero {
        min-height: 60vh;
    }
}

/* ===== EXTRA SMALL DEVICES ===== */
@media (max-width: 480px) {
    /* Further reduce spacing */
    .container {
        padding: 0 var(--space-3);
    }

    .section {
        padding: var(--space-8) 0;
    }

    /* Single column stats */
    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    /* Smaller buttons */
    .btn {
        font-size: var(--font-sm);
        padding: var(--space-2) var(--space-3);
    }

    /* Smaller modals */
    .modal-content {
        width: calc(100% - var(--space-4));
        padding: var(--space-4);
    }

    /* Reduce heading sizes more */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
}

/* ===== MOBILE UTILITIES ===== */
@media (max-width: 768px) {
    .text-mobile-center { text-align: center; }
    .text-mobile-left { text-align: left; }
    
    .mb-mobile-4 { margin-bottom: var(--space-4); }
    .mt-mobile-4 { margin-top: var(--space-4); }
    
    .p-mobile-4 { padding: var(--space-4); }
    .px-mobile-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
    .py-mobile-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
    
    .gap-mobile-2 { gap: var(--space-2); }
    .gap-mobile-3 { gap: var(--space-3); }
    .gap-mobile-4 { gap: var(--space-4); }
}

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

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.3);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.5);
}

.scroll-to-top:active {
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    :root {
        --border-color: rgba(255, 255, 255, 0.3);
        --text-secondary: #d0d0d0;
    }

    button,
    .btn {
        border: 2px solid currentColor;
    }

    input,
    textarea,
    select {
        border: 2px solid var(--border-color);
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    /* Hide navigation and non-essential elements */
    nav,
    .navbar,
    .mobile-menu-toggle,
    .admin-sidebar,
    .btn,
    button,
    .modal-close,
    .toast-container {
        display: none !important;
    }

    /* Optimize for printing */
    body {
        background: white;
        color: black;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    /* Avoid page breaks inside elements */
    .card,
    .event-card,
    table tr {
        page-break-inside: avoid;
    }

    /* Show URLs for links */
    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}

/* ==========================================
   SEARCH & PAGINATION STYLES
   ========================================== */

/* ===== SEARCH COMPONENTS ===== */
.search-container {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.search-input {
    width: 100%;
    padding-right: 80px;
}

.search-loader {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.search-loader-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.search-clear-btn {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: none;
    background: var(--dark-tertiary);
    color: var(--text-secondary);
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    padding: 0;
}

.search-clear-btn:hover {
    background: var(--dark-quaternary);
    color: var(--text-primary);
}

.search-clear-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin: var(--space-6) 0;
    flex-wrap: wrap;
}

.pagination-btn {
    min-width: 40px;
    height: 40px;
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--border-color);
    background: var(--dark-secondary);
    color: var(--text-primary);
    border-radius: var(--radius-base);
    font-size: var(--font-sm);
    font-weight: var(--font-medium);
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover:not(.disabled) {
    background: var(--dark-tertiary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    font-weight: var(--font-bold);
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-ellipsis {
    padding: var(--space-2) var(--space-1);
    color: var(--text-secondary);
    font-weight: var(--font-medium);
    user-select: none;
}

.pagination-info {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    padding: var(--space-2) var(--space-4);
    background: var(--dark-secondary);
    border-radius: var(--radius-base);
    margin-left: var(--space-3);
}

/* Mobile pagination */
@media (max-width: 768px) {
    .pagination {
        gap: var(--space-1);
    }

    .pagination-btn {
        min-width: 36px;
        height: 36px;
        padding: var(--space-1) var(--space-2);
        font-size: var(--font-xs);
    }

    .pagination-info {
        width: 100%;
        text-align: center;
        margin: var(--space-2) 0 0 0;
    }
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: var(--space-12) var(--space-6);
    background: var(--dark-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin: var(--space-6) 0;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: var(--space-4);
    opacity: 0.6;
}

.empty-state-title {
    font-size: var(--font-xl);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.empty-state-message {
    font-size: var(--font-base);
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.empty-state .btn {
    margin-top: var(--space-4);
}

/* ===== SEARCH RESULTS LOADING ===== */
.search-results-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
    gap: var(--space-4);
}

.search-results-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.search-results-loading-text {
    color: var(--text-secondary);
    font-size: var(--font-sm);
}

/* ===== FILTER BADGES ===== */
.filter-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.filter-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-3);
    background: var(--dark-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: var(--font-sm);
    color: var(--text-primary);
}

.filter-badge-remove {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.filter-badge-remove:hover {
    background: var(--dark-quaternary);
    color: var(--text-primary);
}

/* ===== RESULTS COUNT ===== */
.results-count {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
    padding: var(--space-3) 0;
}

.results-count-number {
    font-weight: var(--font-semibold);
    color: var(--primary-color);
}

/* ==========================================
   ACCESSIBILITY STYLES
   ========================================== */

/* ===== SCREEN READER ONLY ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only-focusable:focus,
.sr-only-focusable:active {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* ===== SKIP LINKS ===== */
.skip-links {
    position: absolute;
    top: 0;
    left: 0;
    z-index: var(--z-modal);
}

.skip-link {
    position: absolute;
    top: -100px;
    left: var(--space-4);
    padding: var(--space-3) var(--space-4);
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    font-weight: var(--font-semibold);
    border-radius: var(--radius-base);
    box-shadow: var(--shadow-lg);
    transition: top var(--transition-base);
    z-index: calc(var(--z-modal) + 1);
}

.skip-link:focus {
    top: var(--space-4);
    outline: 3px solid white;
    outline-offset: 2px;
}

/* ===== FOCUS INDICATORS ===== */
/* Enhanced focus styles for better visibility */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Button focus */
button:focus,
.btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(0, 188, 212, 0.2);
}

/* Input focus */
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 0;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1);
}

/* Link focus */
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Focus-visible for mouse users (removes outline when clicking) */
*:focus:not(:focus-visible) {
    outline: none;
}

button:focus:not(:focus-visible),
.btn:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

/* But keep focus visible for keyboard users */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

button:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(0, 188, 212, 0.2);
}

/* ===== KEYBOARD NAVIGATION HELPERS ===== */
/* Show keyboard shortcut hints on focus */
[data-keyboard-shortcut]::after {
    content: attr(data-keyboard-shortcut);
    position: absolute;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    padding: var(--space-1) var(--space-2);
    background: var(--dark-quaternary);
    color: var(--text-secondary);
    font-size: var(--font-xs);
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}

[data-keyboard-shortcut]:focus::after {
    opacity: 1;
}

/* ===== FOCUS TRAP INDICATOR ===== */
.focus-trap-active {
    position: relative;
}

.focus-trap-active::before {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px dashed var(--primary-color);
    border-radius: var(--radius-lg);
    pointer-events: none;
    opacity: 0.3;
}

/* ===== ARIA LIVE REGIONS ===== */
[aria-live] {
    position: relative;
}

/* Loading states with ARIA */
[aria-busy="true"] {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

[aria-busy="true"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* ===== ACCESSIBLE TABLES ===== */
.admin-table {
    position: relative;
}

/* Table caption (usually hidden but available for screen readers) */
.admin-table caption {
    padding: var(--space-3);
    font-weight: var(--font-semibold);
    text-align: left;
}

/* Keyboard focus for table rows */
.admin-table tbody tr:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
    background: rgba(0, 188, 212, 0.05);
}

/* ===== ACCESSIBLE FORMS ===== */
/* Required field indicator */
.required-indicator {
    color: var(--error-color);
    margin-left: var(--space-1);
    font-weight: var(--font-bold);
}

/* Form validation states with icons */
.form-group.valid input:not(:focus) {
    border-color: var(--success-color);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2310b981' viewBox='0 0 16 16'%3E%3Cpath d='M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-3) center;
    background-size: 16px;
    padding-right: var(--space-10);
}

.form-group.invalid input:not(:focus) {
    border-color: var(--error-color);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23ef4444' viewBox='0 0 16 16'%3E%3Cpath d='M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z'/%3E%3Cpath d='M7.002 11a1 1 0 1 1 2 0 1 1 0 0 1-2 0zM7.1 4.995a.905.905 0 1 1 1.8 0l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 4.995z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-3) center;
    background-size: 16px;
    padding-right: var(--space-10);
}

/* Error message accessibility */
.error-message,
.validation-message {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.error-message::before {
    content: '⚠';
    flex-shrink: 0;
}

/* ===== MODAL ACCESSIBILITY ===== */
.modal {
    /* Already has role="dialog" and aria-modal="true" */
}

.modal.active {
    /* Prevent background scrolling */
    position: fixed;
}

/* Modal title for screen readers */
.modal-content h2 {
    /* Should have id that matches aria-labelledby on modal */
}

/* ===== BUTTON ACCESSIBILITY ===== */
/* Disabled button states */
button:disabled,
.btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

button[aria-busy="true"],
.btn[aria-busy="true"] {
    position: relative;
    color: transparent;
}

button[aria-busy="true"]::after,
.btn[aria-busy="true"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    color: white;
}

/* ===== TOUCH TARGET SIZES ===== */
/* Ensure minimum 44x44px touch targets for all checkboxes and radios */
input[type="checkbox"],
input[type="radio"] {
    min-height: 44px;
    min-width: 44px;
    cursor: pointer;
}

/* Ensure minimum 44x44px touch targets for mobile buttons */
@media (max-width: 768px) {
    button,
    .btn,
    a {
        min-height: 44px;
        min-width: 44px;
    }

    /* Small buttons get padding to meet minimum */
    .btn-small {
        padding: var(--space-3) var(--space-4);
    }
}

/* ===== HIGH CONTRAST MODE SUPPORT ===== */
@media (prefers-contrast: high) {
    * {
        border-width: 2px;
    }

    button,
    .btn {
        border: 2px solid currentColor;
    }

    *:focus,
    *:focus-visible {
        outline-width: 3px;
    }
}

/* ===== REDUCED MOTION SUPPORT ===== */
/* Already implemented in earlier batches, but adding specific a11y enhancements */
@media (prefers-reduced-motion: reduce) {
    /* Remove all transitions */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    /* But keep essential loading spinners */
    .loading-spinner,
    .search-loader-spinner,
    [aria-busy="true"]::after {
        animation-duration: 0.6s !important;
    }
}

/* ==========================================
   UI ENHANCEMENTS & POLISH
   ========================================== */

/* ===== SKELETON LOADING STATES ===== */
.skeleton-row td {
    padding: var(--space-3) var(--space-4);
}

.skeleton-text {
    height: 16px;
    background: linear-gradient(
        90deg,
        var(--dark-tertiary) 25%,
        var(--dark-quaternary) 50%,
        var(--dark-tertiary) 75%
    );
    background-size: 200% 100%;
    border-radius: var(--radius-sm);
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

.skeleton-title {
    height: 24px;
    width: 60%;
    margin-bottom: var(--space-2);
}

.skeleton-card {
    padding: var(--space-4);
    background: var(--dark-secondary);
    border-radius: var(--radius-base);
    margin-bottom: var(--space-3);
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ===== EMPTY STATES ===== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-12) var(--space-6);
    text-align: center;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: var(--space-4);
    opacity: 0.5;
}

.empty-state-title {
    font-size: var(--font-xl);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.empty-state-message {
    font-size: var(--font-base);
    color: var(--text-secondary);
    max-width: 400px;
    margin-bottom: var(--space-4);
}

.empty-state .btn {
    margin-top: var(--space-2);
}

/* ===== CONFIRMATION DIALOG ===== */
.confirm-dialog-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    animation: fadeIn 0.2s ease;
}

.confirm-dialog {
    background: var(--dark-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2xl);
    max-width: 500px;
    width: 90%;
    animation: slideUp 0.3s ease;
}

.confirm-dialog-header {
    padding: var(--space-5) var(--space-5) var(--space-3);
    border-bottom: 1px solid var(--border-color);
}

.confirm-dialog-header h3 {
    margin: 0;
    font-size: var(--font-xl);
    color: var(--text-primary);
}

.confirm-dialog-body {
    padding: var(--space-5);
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
}

.confirm-dialog-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.confirm-dialog-warning {
    color: var(--warning-color);
}

.confirm-dialog-danger {
    color: var(--error-color);
}

.confirm-dialog-info {
    color: var(--info-color);
}

.confirm-dialog-body p {
    flex: 1;
    color: var(--text-secondary);
    margin: 0;
}

.confirm-dialog-footer {
    padding: var(--space-3) var(--space-5) var(--space-5);
    display: flex;
    gap: var(--space-3);
    justify-content: flex-end;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--dark-tertiary);
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s ease;
    position: relative;
}

.progress-bar-fill.indeterminate {
    width: 30% !important;
    animation: indeterminate 1.5s ease-in-out infinite;
}

@keyframes indeterminate {
    0% {
        left: -30%;
    }
    100% {
        left: 130%;
    }
}

/* ===== TABLE ENHANCEMENTS ===== */
.admin-table thead th.sort-asc::after,
.admin-table thead th.sort-desc::after {
    content: '';
    display: inline-block;
    margin-left: var(--space-2);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
}

.admin-table thead th.sort-asc::after {
    border-bottom: 6px solid var(--primary-color);
}

.admin-table thead th.sort-desc::after {
    border-top: 6px solid var(--primary-color);
}

.admin-table thead th[role="button"]:hover {
    background: var(--dark-quaternary);
}

/* ===== NOTIFICATION BADGE ===== */
.notification-badge {
    position: absolute;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--error-color);
    color: white;
    border-radius: 10px;
    font-size: var(--font-xs);
    font-weight: var(--font-bold);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.notification-badge-top-right {
    top: -8px;
    right: -8px;
}

.notification-badge-top-left {
    top: -8px;
    left: -8px;
}

/* ===== COPY BUTTON FEEDBACK ===== */
.copy-btn {
    position: relative;
    transition: var(--transition-fast);
}

.copy-btn.success {
    color: var(--success-color);
}

/* ===== SMOOTH ANIMATIONS ===== */
.fade-in {
    animation: fadeIn 0.3s ease;
}

.slide-in-right {
    animation: slideInRight 0.3s ease;
}

.slide-in-left {
    animation: slideInLeft 0.3s ease;
}

.scale-in {
    animation: scaleIn 0.2s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===== HOVER EFFECTS ===== */
.card-hover {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== IMPROVED BUTTON STATES ===== */
.btn:active {
    transform: scale(0.98);
}

.btn:disabled {
    transform: none;
}

/* ===== DATA TABLE ACTIONS ===== */
.table-actions {
    display: flex;
    gap: var(--space-2);
    align-items: center;
    justify-content: flex-end;
    margin-bottom: var(--space-4);
}

.table-actions .btn {
    white-space: nowrap;
}

/* ===== STATUS INDICATORS ===== */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: var(--space-2);
}

.status-dot-success {
    background: var(--success-color);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.status-dot-warning {
    background: var(--warning-color);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.status-dot-error {
    background: var(--error-color);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

.status-dot-info {
    background: var(--info-color);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

/* ===== TOOLTIP ===== */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: var(--space-2) var(--space-3);
    background: var(--dark-quaternary);
    color: var(--text-primary);
    font-size: var(--font-sm);
    white-space: nowrap;
    border-radius: var(--radius-sm);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    z-index: var(--z-toast);
}

.tooltip:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

/* ===== DANGER BUTTON VARIANT ===== */
.btn-danger {
    background: var(--error-color);
    color: white;
    border: 1px solid var(--error-color);
}

.btn-danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.btn-danger:disabled {
    background: var(--error-color);
    opacity: 0.5;
}

/* ===== CO-FOUNDERS SECTION ===== */
.founder-card {
    transition: all 0.3s ease;
}

.founder-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color) !important;
    box-shadow: 0 8px 30px rgba(0, 188, 212, 0.3);
}

.founder-card img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.founder-card:hover img {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 188, 212, 0.4);
}

/* ===== CONTACT FORM BRANDED STYLES ===== */
.contact-form-wrapper .form-group {
    margin-bottom: 1.5rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1);
}

.contact-form input:hover,
.contact-form textarea:hover {
    border-color: var(--primary-color);
}

.contact-form .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.4);
}

.contact-form .submit-btn:active {
    transform: translateY(0);
}

/* ===== MOBILE RESPONSIVENESS - CO-FOUNDERS & CONTACT ===== */
@media (max-width: 768px) {
    /* Co-founders grid - single column on mobile */
    .founders-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        padding: 0 1rem;
    }

    /* Reduce founder card padding on mobile */
    .founder-card {
        padding: 1.5rem !important;
    }

    /* Slightly smaller profile images on mobile */
    .founder-card img {
        width: 150px !important;
        height: 150px !important;
    }

    /* Contact form wrapper - reduce padding on mobile */
    .contact-form-wrapper {
        padding: 1.5rem !important;
        margin-left: 1rem !important;
        margin-right: 1rem !important;
    }

    /* Adjust form inputs on mobile */
    .contact-form input,
    .contact-form textarea {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }

    /* Contact section title */
    .contact .section-title {
        font-size: 2rem;
    }

    /* Co-founders section title */
    .founders-grid ~ .section-header {
        padding: 0 1rem;
    }
}

/* ===== TABLET RESPONSIVENESS - CO-FOUNDERS ===== */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Co-founders grid - 2 columns on tablet, with third centered */
    .founders-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem !important;
    }
}
