/* ============================================
   منصة نادي جيل الاجتماعي — Design System CSS
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');

:root {
    /* Logo Colors */
    --primary: #F7941E;
    --primary-rgb: 247, 148, 30;
    --primary-dark: #D47910;
    --primary-light: #FFB35C;
    --primary-glow: rgba(247, 148, 30, 0.15);
    
    --secondary: #F7941E;
    --secondary-rgb: 247, 148, 30;
    --secondary-dark: #D47910;
    --secondary-light: #FFB35C;
    
    --accent: #5BBFCF;
    --accent-dark: #3A99A8;
    
    /* Light Mode Backgrounds */
    --bg-body: #EFEADC; /* Warm Premium Beige */
    --bg-card: #FFFFFF;
    --bg-card-hover: #FCFAF5;
    --bg-input: #E4DEC9;
    --bg-dark: #0F172A; /* Navy for deep sections */
    
    /* Text Colors for Light Mode */
    --text-white: #FFFFFF;
    --text-dark: #1E293B;
    --text-light: #334155;
    --text-muted: #475569;
    --text-subtle: #64748B;
    
    /* Borders & Shadows */
    --border: rgba(0, 0, 0, 0.12);
    --border-light: rgba(0, 0, 0, 0.08);
    --success: #10B981;
    --success-rgb: 16, 185, 129;
    --warning: #F59E0B;
    --warning-rgb: 245, 158, 11;
    --error: #EF4444;
    --error-rgb: 239, 68, 68;
    --danger-rgb: 239, 68, 68;
    
    /* Layout Tokens */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 12px;
    --space-lg: 16px;
    --space-xl: 24px;
    --space-2xl: 32px;
    --space-3xl: 48px;
    --space-4xl: 64px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50%;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    background: var(--bg-body);
    color: var(--text-light);
    direction: rtl;
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s;
}

a:hover {
    color: var(--primary-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 5px var(--primary-glow);
    }

    50% {
        box-shadow: 0 0 25px var(--primary-glow);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    background: rgba(250, 248, 244, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}

.main-header.scrolled {
    background: rgba(250, 248, 244, 0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.04);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.header-logo img {
    height: 48px;
    width: auto;
    transition: transform 0.4s;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05));
}

.header-logo img:hover {
    transform: scale(1.1) rotate(-3deg);
}

.header-logo h1 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    transition: all 0.3s;
    position: relative;
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.08);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

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

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    border: none;
    background: transparent;
    height: 40px;
    justify-content: center;
    align-items: center;
    width: 40px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

/* Admin Toggle Consistency */
.admin-sidebar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    border: none;
    background: var(--bg-card);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    z-index: 2200; /* Above admin-sidebar (2100) and header (1000) */
}

.admin-sidebar-toggle span {
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Hero */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

/* Hero Enhanced Aesthetics */
.hero-mesh-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(at 0% 0%, rgba(var(--primary-rgb), 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(var(--secondary-rgb), 0.08) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(91, 191, 207, 0.05) 0px, transparent 50%);
    filter: blur(80px);
    z-index: 0;
}

.hero-shape {
    position: absolute;
    background: linear-gradient(135deg, rgba(255,255,255,0.4), rgba(255,255,255,0.1));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: 1;
    pointer-events: none;
    animation: morph 15s linear infinite;
}

.hero-shape-1 { width: 300px; height: 300px; top: -100px; left: -100px; opacity: 0.3; }
.hero-shape-2 { width: 250px; height: 250px; bottom: -50px; right: -50px; opacity: 0.2; animation-delay: -5s; }

@keyframes morph {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: rotate(0deg); }
    33% { border-radius: 50% 50% 20% 80% / 25% 80% 20% 75%; transform: rotate(120deg); }
    66% { border-radius: 67% 33% 47% 53% / 37% 20% 80% 63%; transform: rotate(240deg); }
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-particles::before,
.hero-particles::after {
    content: '';
    position: absolute;
    border-radius: var(--radius-full);
    opacity: 0.2;
    animation: float 8s ease-in-out infinite;
}

.hero-particles::before {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: 10%;
    right: -100px;
}

.hero-particles::after {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    bottom: 10%;
    left: -150px;
    animation-delay: 3s;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 var(--space-xl);
}

.hero-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.hero-logo-item {
    width: auto;
    height: 120px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo-item:first-child {
    animation: slideInRight 0.8s ease 0.2s backwards;
}

.hero-logo-item:last-child {
    animation: slideInLeft 0.8s ease 0.4s backwards;
}

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

.hero-logo-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: var(--space-xl);
    line-height: 1.3;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.hero-title .highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    right: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
    opacity: 0.5;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-dark); /* Changed to dark for better visibility */
    margin-bottom: var(--space-2xl);
    animation: fadeInUp 0.8s ease 0.8s backwards;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    animation: fadeInUp 0.8s ease 1s backwards;
}

/* Camp Banner */
.camp-banner {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--secondary));
    padding: var(--space-3xl) 0;
    position: relative;
    overflow: hidden;
}

.camp-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

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

.camp-banner-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: var(--space-sm) var(--space-xl);
    border-radius: var(--radius-xl);
    font-size: 0.9rem;
    color: white;
    margin-bottom: var(--space-lg);
    animation: pulse 2s ease-in-out infinite;
}

.camp-banner-badge i {
    color: #FFD700;
}

.camp-banner h2 {
    font-size: 2rem;
    color: white;
    font-weight: 800;
    margin-bottom: var(--space-md);
}

.camp-banner p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.camp-banner .btn {
    background: white;
    color: var(--primary-dark);
    font-weight: 700;
    padding: var(--space-md) var(--space-2xl);
    font-size: 1.1rem;
    border: none;
}

.camp-banner .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    font-family: 'Tajawal', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--primary-glow);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(123, 79, 160, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(123, 79, 160, 0.4);
    color: white;
}

.btn-info {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(91, 191, 207, 0.3);
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(91, 191, 207, 0.4);
    color: white;
}

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

.btn-success:hover {
    background: #0D9668;
    color: white;
}

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

.btn-danger:hover {
    background: #DC2626;
    color: white;
}

.btn-warning {
    background: var(--warning);
    color: #1a1a1a;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
}

.btn-block {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Sections */
.section {
    padding: var(--space-4xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: var(--space-md);
}

.section-header .section-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(to left, var(--primary), var(--secondary));
    border-radius: 2px;
    margin: 0 auto var(--space-md);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* About Cards */
.active-camps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-2xl);
}

/* Empty State Styling */
.empty-state {
    text-align: center;
    padding: var(--space-4xl) var(--space-xl);
    background: var(--bg-card);
    border-radius: var(--radius-2xl);
    border: 1px dashed var(--border);
    max-width: 600px;
    margin: 0 auto;
    box-shadow: var(--shadow-sm);
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--text-dark);
    font-size: 1.8rem;
    margin-bottom: var(--space-md);
}

.empty-state p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: var(--space-2xl);
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 0;
    transition: height 0.4s;
}

.about-card:nth-child(1)::before {
    background: var(--primary);
}

.about-card:nth-child(2)::before {
    background: var(--secondary);
}

.about-card:nth-child(3)::before {
    background: var(--accent);
}

.about-card:nth-child(4)::before {
    background: var(--success);
}

.about-card:nth-child(5)::before {
    background: var(--warning);
}

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

.about-card:hover::before {
    height: 100%;
}

.about-card-icon {
    width: 65px;
    height: 65px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: var(--space-xl);
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.05);
}

.about-card:hover .about-card-icon {
    transform: scale(1.1) rotate(10deg);
}

.about-card:nth-child(1) .about-card-icon {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.about-card:nth-child(2) .about-card-icon {
    border-color: var(--secondary);
    color: var(--secondary);
    box-shadow: 0 0 15px rgba(123, 79, 160, 0.2);
}

.about-card:nth-child(3) .about-card-icon {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 15px rgba(91, 191, 207, 0.2);
}

.about-card:nth-child(4) .about-card-icon {
    border-color: var(--success);
    color: var(--success);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.about-card:nth-child(5) .about-card-icon {
    border-color: var(--warning);
    color: var(--warning);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.about-card h3 {
    font-size: 1.2rem;
    color: var(--secondary);
    margin-bottom: var(--space-md);
    font-weight: 700;
}

.about-card p {
    color: var(--text-muted);
    line-height: 1.9;
    font-size: 0.95rem;
}

/* Stats */
.stats-section {
    background: linear-gradient(135deg, var(--bg-body), rgba(245, 146, 42, 0.05));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.stat-card {
    text-align: center;
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all 0.4s;
}

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

.stat-card i {
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

.stat-card:nth-child(1) i {
    color: var(--primary);
}

.stat-card:nth-child(2) i {
    color: var(--secondary);
}

.stat-card:nth-child(3) i {
    color: var(--accent);
}

.stat-card:nth-child(4) i {
    color: var(--warning);
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-dark);
    display: block;
    margin-bottom: var(--space-xs);
}

.stat-card .stat-label {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* News Cards */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--space-xl);
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s;
}

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

.news-card-image {
    height: 200px;
    background: linear-gradient(135deg, rgba(245, 146, 42, 0.2), rgba(123, 79, 160, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-image i {
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.4;
}

.news-card-body {
    padding: var(--space-xl);
}

.news-card-body h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: var(--space-md);
    font-weight: 700;
}

.news-card-body p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-date {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    color: var(--text-subtle);
    font-size: 0.8rem;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1;
    position: relative;
    cursor: pointer;
    transition: all 0.4s;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

/* Forms */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px var(--space-xl) var(--space-3xl);
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl);
    width: 100%;
    max-width: 520px;
    position: relative;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: -2px;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.auth-card h2 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: var(--space-xl);
    text-align: center;
    border-bottom: 2px solid var(--primary-glow);
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-sm);
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-dark);
    font-family: 'Tajawal', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-control::placeholder {
    color: var(--text-subtle);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394A3B8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    padding-left: 32px;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.phone-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: var(--space-md);
}

.tabs {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    border-bottom: 2px solid var(--border);
    padding-bottom: 2px;
}

.tab-btn {
    padding: var(--space-md) var(--space-xl);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    transition: all 0.3s;
}

.tab-btn.active {
    color: var(--primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeInUp 0.3s ease;
}

/* Flash Messages */
.flash-container {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    width: 90%;
    max-width: 500px;
}

.flash-message {
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    animation: fadeInDown 0.3s;
    backdrop-filter: blur(10px);
}

.flash-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--success);
    color: var(--success);
}

.flash-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--error);
    color: var(--error);
}

.flash-warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid var(--warning);
    color: var(--warning);
}

/* Dashboard */
.dashboard-header {
    padding: var(--space-2xl) 0;
    border-bottom: 1px solid var(--border);
    margin-top: 70px;
}

.dashboard-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashboard-welcome h2 {
    font-size: 1.4rem;
    color: var(--text-dark);
}

.points-badge {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: var(--space-sm) var(--space-xl);
    border-radius: var(--radius-xl);
    font-weight: 700;
    color: white;
    animation: glow 3s ease-in-out infinite;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: var(--space-xl);
    padding: var(--space-xl) 0;
}

.dashboard-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.dashboard-card h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 700;
}

.announcement-item,
.schedule-item,
.task-item {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-light);
    transition: background 0.2s;
}

.announcement-item:hover,
.schedule-item:hover {
    background: rgba(245, 146, 42, 0.05);
}

.announcement-item:last-child,
.schedule-item:last-child,
.task-item:last-child {
    border-bottom: none;
}

.announcement-item h4,
.schedule-item h4 {
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
    font-weight: 600;
}

.announcement-item p,
.schedule-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.schedule-meta {
    display: flex;
    gap: var(--space-lg);
    margin-top: var(--space-sm);
    color: var(--text-subtle);
    font-size: 0.85rem;
}

.schedule-meta span {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.task-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.task-checkbox {
    width: 20px;
    height: 20px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--primary);
    flex-shrink: 0;
}

.task-item.completed .task-checkbox {
    background: var(--primary);
}

.task-title {
    flex: 1;
    color: var(--text-light);
}

.task-item.completed .task-title {
    text-decoration: line-through;
    color: var(--text-subtle);
}

.task-points {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
}

/* Leaderboard */
.leaderboard-list {
    list-style: none;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.02);
}

.leaderboard-item:hover {
    background: rgba(245, 146, 42, 0.08);
}

.leaderboard-item.current-user {
    background: rgba(245, 146, 42, 0.1);
    border: 1px solid var(--primary);
}

.leaderboard-rank {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.8rem;
    margin-left: var(--space-md);
    background: var(--bg-input);
    color: var(--text-muted);
}

.leaderboard-item:nth-child(1) .leaderboard-rank {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a1a;
}

.leaderboard-item:nth-child(2) .leaderboard-rank {
    background: linear-gradient(135deg, #C0C0C0, #A0A0A0);
    color: #1a1a1a;
}

.leaderboard-item:nth-child(3) .leaderboard-rank {
    background: linear-gradient(135deg, #CD7F32, #A0522D);
    color: white;
}

.leaderboard-name {
    flex: 1;
    font-weight: 500;
    color: var(--text-dark);
}

.leaderboard-points {
    font-weight: 800;
    color: var(--primary);
    font-size: 1rem;
}

/* Admin Layout */
.admin-layout {
    display: flex;
    min-height: 100vh;
    padding-top: 70px;
}

.admin-sidebar {
    width: 260px;
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    flex-shrink: 0;
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
    overflow-y: auto;
}

.admin-sidebar-header {
    padding: var(--space-xl);
    border-bottom: 1px solid var(--border);
}

.admin-sidebar-header h3 {
    color: var(--primary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.admin-sidebar-header p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: var(--space-xs);
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-xl);
    color: var(--text-muted);
    transition: all 0.3s;
    border-right: 3px solid transparent;
}

.admin-nav-item:hover {
    background: rgba(245, 146, 42, 0.08);
    color: var(--primary);
}

.admin-nav-item.active {
    background: rgba(245, 146, 42, 0.12);
    color: var(--primary);
    border-right-color: var(--primary);
    font-weight: 600;
}

.admin-main {
    flex: 1;
    padding: var(--space-xl);
    min-width: 0;
}

.admin-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
}

.admin-page-header h2 {
    font-size: 1.3rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.admin-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    transition: all 0.3s;
}

.admin-stat-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.admin-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.admin-stat-icon.primary {
    background: rgba(245, 146, 42, 0.15);
    color: var(--primary);
}

.admin-stat-icon.secondary {
    background: rgba(123, 79, 160, 0.15);
    color: var(--secondary);
}

.admin-stat-icon.accent {
    background: rgba(91, 191, 207, 0.15);
    color: var(--accent);
}

.admin-stat-icon.warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.admin-stat-icon.success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.admin-stat-info h4 {
    font-size: 1.4rem;
    color: var(--text-dark);
    font-weight: 800;
}

.admin-stat-info p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Tables */
.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead th {
    background: rgba(245, 146, 42, 0.08);
    color: var(--primary);
    padding: var(--space-md) var(--space-lg);
    text-align: right;
    font-weight: 600;
    font-size: 0.85rem;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

.data-table tbody td {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border-light);
    color: var(--text-light);
    font-size: 0.9rem;
}

.data-table tbody tr:hover {
    background: rgba(245, 146, 42, 0.04);
}

/* Global Table Responsive Wrapper */
.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: var(--space-lg);
    border-radius: var(--radius-md);
    position: relative;
}

/* Scroll indicator shadows */
.table-container::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(to left, rgba(var(--bg-card-rgb, 255,255,255), 0.5), transparent);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.table-container:hover::after {
    opacity: 1;
}

.badge {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: var(--radius-xl);
    font-size: 0.78rem;
    font-weight: 600;
}

.badge-pending {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.badge-approved,
.badge-open {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.badge-rejected,
.badge-closed {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
}

.action-btns {
    display: flex;
    gap: var(--space-sm);
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 3000;
    display: none;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    padding: var(--space-2xl);
    animation: fadeInUp 0.3s;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
}

.modal-header h3 {
    color: var(--primary);
    font-size: 1.2rem;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.filter-bar {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.filter-bar select {
    padding: var(--space-sm) var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-light);
    font-family: 'Tajawal', sans-serif;
    cursor: pointer;
}

.empty-state {
    text-align: center;
    padding: var(--space-3xl);
    color: var(--text-subtle);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: var(--space-lg);
    opacity: 0.3;
    color: var(--primary);
}

.admin-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--space-md);
}

.admin-gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1;
}

.admin-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.delete-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.admin-gallery-item:hover .delete-overlay {
    opacity: 1;
}

.points-positive {
    color: var(--success);
    font-weight: 700;
}

.points-negative {
    color: var(--error);
    font-weight: 700;
}

.no-camp-message {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl);
    text-align: center;
}

.no-camp-message i {
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.4;
    margin-bottom: var(--space-lg);
}

.no-camp-message h3 {
    color: var(--text-dark);
    margin-bottom: var(--space-md);
}

.no-camp-message p {
    color: var(--text-muted);
}

/* Footer */
.main-footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    padding: var(--space-2xl) 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.footer-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.footer-info img {
    height: 36px;
    width: auto;
    opacity: 0.8;
}

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

/* ============================================
   New Component Styles — Overhaul Additions
   ============================================ */

/* Admin Login (standalone page) */
.admin-login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-body);
}

.admin-login-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl);
    width: 100%;
    max-width: 420px;
    position: relative;
}

.admin-login-card::before {
    content: '';
    position: absolute;
    top: -2px;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

/* Dashboard Container & Header */
.dashboard-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px var(--space-xl) var(--space-3xl);
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-xl) 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--space-xl);
}

.dashboard-header h2 {
    font-size: 1.4rem;
    color: var(--text-dark);
    font-weight: 700;
}

.dashboard-points {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-xl);
}

.dashboard-points .points-value {
    font-size: 1.8rem;
    font-weight: 900;
    color: white;
    line-height: 1;
}

.dashboard-points .points-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Dashboard Grid (new version) */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
}

/* Dashboard List Items */
.dashboard-list {
    list-style: none;
    padding: 0;
}

.list-item {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-light);
    transition: background 0.2s;
}

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

.list-item:hover {
    background: rgba(245, 146, 42, 0.04);
}

.list-item h4 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: var(--space-xs);
    font-size: 0.95rem;
}

.list-item p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

.list-date {
    color: var(--text-subtle);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-top: var(--space-sm);
}

.empty-msg {
    color: var(--text-subtle);
    text-align: center;
    padding: var(--space-xl);
    font-size: 0.9rem;
}

/* Point Badges (inline) */
.points-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: var(--radius-xl);
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.points-badge.positive {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.points-badge.negative {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
}

/* Attendance Strip (Participant Dashboard) */
.attendance-strip {
    display: flex;
    gap: var(--space-sm);
    overflow-x: auto;
    padding: var(--space-md) 0;
}

.attendance-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 60px;
    padding: var(--space-sm) 4px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-input);
    font-size: 0.75rem;
    transition: all 0.3s;
}

.attendance-day .day-name {
    color: var(--text-subtle);
    font-size: 0.65rem;
}

.attendance-day .day-number {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
    line-height: 1.2;
}

.attendance-day.present {
    background: rgba(16, 185, 129, 0.12);
    border-color: var(--success);
}

.attendance-day.present i {
    color: var(--success);
}

.attendance-day.absent {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.3);
}

.attendance-day.absent i {
    color: var(--error);
}

.attendance-day.holiday {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
}

.attendance-day.holiday i {
    color: var(--warning);
}

.attendance-legend {
    display: flex;
    gap: var(--space-xl);
    margin-top: var(--space-md);
    justify-content: center;
}

.attendance-legend span {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-muted);
    font-size: 0.8rem;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    display: inline-block;
}

.legend-dot.present {
    background: var(--success);
}

.legend-dot.absent {
    background: var(--error);
}

.legend-dot.holiday {
    background: var(--warning);
}

/* Leaderboard Rows (Participant Dashboard) */
.leaderboard {
    margin-top: var(--space-md);
}

.leaderboard-row {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-xs);
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.02);
}

.leaderboard-row:hover {
    background: rgba(245, 146, 42, 0.08);
}

.leaderboard-row .rank {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.8rem;
    background: var(--bg-input);
    color: var(--text-muted);
    flex-shrink: 0;
}

.leaderboard-row.top-1 .rank {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a1a;
}

.leaderboard-row.top-2 .rank {
    background: linear-gradient(135deg, #C0C0C0, #A0A0A0);
    color: #1a1a1a;
}

.leaderboard-row.top-3 .rank {
    background: linear-gradient(135deg, #CD7F32, #A0522D);
    color: white;
}

.leaderboard-row .name {
    flex: 1;
    color: var(--text-light);
    font-weight: 500;
}

.leaderboard-row .pts {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
}

/* Camp Info Chips (Registration page & Homepage) */
.info-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(255, 255, 255, 0.08);
    padding: 4px 14px;
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    color: var(--text-muted);
    border: 1px solid var(--border-light);
}

.camp-info-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(245, 146, 42, 0.12);
    padding: var(--space-sm) var(--space-xl);
    border-radius: var(--radius-xl);
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
}

/* Member Input Rows (Registration) */
.member-input-row {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    align-items: center;
}

.member-input-row .form-control {
    flex: 1;
}

/* Attendance Matrix Table (Admin) */
.attendance-table-container {
    overflow-x: auto;
    margin-top: var(--space-lg);
}

.attendance-matrix .sticky-col {
    position: sticky;
    right: 0;
    background: var(--bg-card);
    z-index: 1;
    min-width: 120px;
}

.att-select {
    width: 48px;
    padding: 4px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    font-size: 0.85rem;
    text-align: center;
    cursor: pointer;
}

.att-select.att-present {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--success);
}

.att-select.att-absent {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.3);
}

.att-select.att-holiday {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
}

/* Card component (admin pages) */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

/* Login Entry Section (Homepage) */
.login-entry-section {
    background: var(--bg-body); /* Changed to beige to match the page */
    border-top: 1px solid var(--border);
    padding: var(--space-3xl) 0;
}

.login-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    max-width: 700px;
    margin: 0 auto;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    text-align: center;
    transition: all 0.4s;
}

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

.login-card i.icon {
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

.login-card h3 {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
}

.login-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: var(--space-lg);
}

/* Camp details on homepage */
.camp-details-row {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
    margin-bottom: var(--space-xl);
}

/* Danger color var */
:root {
    --danger: #EF4444;
}

/* Responsive */
@media (max-width: 1024px) {
    .admin-layout {
        flex-direction: column;
    }

    .admin-sidebar {
        position: fixed;
        right: -280px;
        top: 0;
        bottom: 0;
        height: 100vh;
        width: 280px;
        z-index: 2100;
        transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.2);
    }

    .admin-sidebar.mobile-open {
        right: 0;
    }

    .admin-main {
        padding: var(--space-xl) !important;
    }

    .admin-sidebar-toggle {
        display: flex;
    }

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

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

    .hero-logos {
        gap: var(--space-xl);
    }

    .hero-logo-item {
        width: 90px;
        height: 90px;
    }

    .main-nav {
        position: fixed;
        top: 65px;
        right: 0;
        width: 100%;
        background: rgba(15, 25, 35, 1); /* Fully opaque for clarity */
        z-index: 2500; /* Above everything else */
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: var(--space-xl);
        gap: var(--space-sm);
        transform: translateY(-150%);
        transition: transform 0.3s;
        border-bottom: 1px solid var(--border);
    }

    .main-nav.active {
        transform: translateY(0);
    }

    .mobile-toggle {
        display: flex;
    }

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

    .about-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

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

    .hero-btns {
        flex-direction: column;
        align-items: center;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .auth-card {
        padding: var(--space-xl);
    }

    .camp-banner h2 {
        font-size: 1.5rem;
    }

    .dashboard-header {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
        padding: var(--space-xl);
    }

    .attendance-strip {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .login-cards {
        grid-template-columns: 1fr;
        padding: 0 var(--space-lg);
    }

    /* Prevent text overlap in camp cards */
    .camp-card-premium {
        min-height: auto;
    }

    .camp-card-info h3 {
        font-size: 1.4rem;
    }

    .camp-card-image {
        height: 200px;
    }

    .camp-card-badge .badge {
        padding: 4px 12px;
        font-size: 0.75rem;
    }
}

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

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

    .hero-logo-item {
        width: 70px;
        height: 70px;
    }

    .container {
        padding: 0 var(--space-lg);
    }
}

/* --- Premium Footer --- */
.main-footer {
    background: var(--bg-dark);
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 50px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: white;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    border-bottom: 2px solid var(--primary);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.footer-logo img {
    height: 50px;
}

.footer-logo span {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-white);
}

.footer-about {
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    transform: translateY(-5px);
    color: white;
}

.social-link.wa:hover { background: #25D366; border-color: #25D366; }
.social-link.sc:hover { background: #FFFC00; border-color: #FFFC00; color: #000; }
.social-link.tk:hover { background: #000; border-color: #000; }
.social-link.tw:hover { background: #000; border-color: #000; }
.social-link.ig:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); border-color: transparent; }
.social-link.yt:hover { background: #FF0000; border-color: #FF0000; }

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    transition: all 0.3s;
    display: block;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(-5px);
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.footer-contact i {
    color: var(--primary);
    margin-top: 5px;
}

.partner-logos {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: all 0.3s ease;
    text-decoration: none !important;
    margin-right: -25px; /* Nudged even more for precise alignment with the orange line */
}

.partner-logos img {
    max-height: 80px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.partner-logos:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.3);
}

.partner-logos img {
    height: 55px;
    width: auto;
    margin-bottom: 10px;
    object-fit: contain;
}

.partner-logos p {
    font-size: 0.75rem;
    line-height: 1.4;
    color: #1a1a1a;
    margin: 0;
    font-weight: 700;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 30px;
}

.footer-bottom-links a {
    color: var(--text-subtle);
}

.dev-credit {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.dev-credit a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.dev-credit a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}.form-control, .floating-label input { text-align: center; }
