@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;700;800;900&family=Inter:wght@400;500;600&display=swap');

:root {
    --primary: #000091;
    --primary-hover: #000074;
    --secondary: #e1000f;

    --background: #f8fafc; /* Très léger gris-bleuté pour contraster avec le blanc */
    --surface: #ffffff;
    
    --text: #0f172a;
    --text-soft: #475569;
    --muted: #94a3b8;

    --border: #e2e8f0;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.05), 0 4px 6px -4px rgb(0 0 0 / 0.05);
    --shadow-hover: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.08);

    --radius-small: 6px;
    --radius-medium: 12px;
    --radius-large: 24px;

    --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    color: var(--text);
    background: var(--background);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', system-ui, sans-serif;
    color: var(--text);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.02em;
}

main {
    min-height: 65vh;
}

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

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

button, input, textarea, select {
    font: inherit;
}

.container {
    width: min(1200px, calc(100% - 48px));
    margin-inline: auto;
}

.small-container {
    width: min(760px, calc(100% - 48px));
    margin-inline: auto;
}

/* Header (Glassmorphism) */
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.site-brand-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-small);
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-sm);
    display: grid;
    place-items: center;
}

.site-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-brand-text {
    display: flex;
    flex-direction: column;
}

.site-brand-text strong {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.site-brand-text span {
    font-size: 0.75rem;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-soft);
    padding: 8px 0;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition);
    border-radius: 2px;
}

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

/* Hero Section */
.hero-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 0, 145, 0.03) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--primary);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-soft);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.hero-image-wrapper:hover img {
    transform: scale(1.03);
}

/* Section general */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-soft);
    max-width: 600px;
    margin: 0 auto;
}

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

.news-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 0, 145, 0.2);
}

.news-image {
    height: 200px;
    background: #f1f5f9;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-date {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.news-content h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.news-content p {
    color: var(--text-soft);
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

/* Team Grid */
.team-grid {
    display: flex;
    flex-direction: column;
    gap: 48px;
    align-items: center;
}

.pyramid-level {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    width: 100%;
}

.member-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    padding: 32px 24px;
    text-align: center;
    width: 280px;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform var(--transition);
    transform-origin: left;
}

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

.member-card:hover::before {
    transform: scaleX(1);
}

.member-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    background: #f1f5f9;
    border: 3px solid white;
    box-shadow: var(--shadow-sm);
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-name {
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 4px;
}

.member-role {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Forms & Buttons */
.button, button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-small);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
}

.button-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(0, 0, 145, 0.39);
}

.button-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 145, 0.23);
}

.button-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

.button-secondary:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    color: var(--text);
    transition: all var(--transition);
    font-family: 'Inter', sans-serif;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    background: var(--surface);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 0, 145, 0.1);
}

/* Footer */
.main-footer {
    background: #0f172a;
    color: #f8fafc;
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-section p {
    color: #94a3b8;
    margin-bottom: 10px;
}

.footer-section a {
    color: #cbd5e1;
}

.footer-section a:hover {
    color: white;
}

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

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

/* Admin / Login overrides */
.login-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.login-card {
    width: 100%;
    max-width: 400px;
    padding: 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-lg);
}

.login-form {
    display: grid;
    gap: 20px;
}

.button-discord {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px 20px;
    background: #5865F2;
    color: white;
    border-radius: var(--radius-small);
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    transition: all var(--transition);
}

.button-discord:hover {
    background: #4752C4;
    transform: translateY(-2px);
}

.login-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
}

.login-divider span {
    padding: 0 16px;
}

/* Utility */
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }

.page-heading {
    text-align: center;
    margin-bottom: 40px;
}

.subtitle {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.alert {
    padding: 16px;
    border-radius: var(--radius-small);
    margin-bottom: 24px;
    font-weight: 500;
}

.alert.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert.success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

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

.animate-fade-in {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Contact Page Split Screen */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    margin-top: 40px;
}

.contact-info {
    padding: 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow);
}

.contact-info h3 {
    color: var(--primary);
    margin-bottom: 24px;
    font-size: 1.5rem;
}

.info-block {
    margin-bottom: 24px;
}

.info-block strong {
    display: block;
    color: var(--text);
    margin-bottom: 4px;
}

.info-block p {
    color: var(--text-soft);
}

/* Admin Sidebar Layout */
.admin-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: calc(100vh - 80px); /* 80px is header height */
    background: var(--background);
}

.admin-sidebar {
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 32px 0;
    display: flex;
    flex-direction: column;
}

.admin-sidebar-header {
    padding: 0 24px 32px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.admin-sidebar-header h2 {
    font-size: 1.25rem;
    color: var(--primary);
}

.admin-sidebar-header p {
    font-size: 0.85rem;
    color: var(--text-soft);
    margin-top: 4px;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 12px;
}

.admin-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: var(--radius-small);
    color: var(--text-soft);
    font-weight: 500;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: #f1f5f9;
    color: var(--primary);
}

.admin-nav a .badge {
    background: var(--secondary);
    color: white;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 700;
}

.admin-main {
    padding: 40px;
    overflow-y: auto;
}

.admin-panel {
    background: var(--surface);
    padding: 32px;
    border-radius: var(--radius-medium);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.admin-panel h2 {
    font-size: 1.25rem;
    margin-bottom: 24px;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

@media (max-width: 1024px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
}

.admin-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.admin-form input[type="text"],
.admin-form input[type="url"],
.admin-form input[type="number"],
.admin-form input[type="password"],
.admin-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all var(--transition);
}

.admin-form input:focus,
.admin-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 0, 145, 0.1);
    outline: none;
}

.admin-table, 
.admin-panel table, 
.table-wrapper table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th, 
.admin-panel table th, 
.table-wrapper table th,
.admin-table td, 
.admin-panel table td, 
.table-wrapper table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.admin-panel table th {
    font-weight: 700;
    color: var(--primary);
    background: #f8fafc;
}

.table-responsive,
.table-wrapper {
    overflow-x: auto;
}

.actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.actions form {
    margin: 0;
}

.small-button,
.danger-button {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-small);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.small-button {
    background: #f1f5f9;
    color: #475569;
}

.small-button:hover {
    background: #e2e8f0;
}

.danger-button {
    background: #fef2f2;
    color: #ef4444;
}

.danger-button:hover {
    background: #fee2e2;
}

/* Personnel Pyramid Level 1 */
.team-level-1 {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
}

.team-level-1 .member-card {
    width: 340px;
    padding: 40px;
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(to bottom, #ffffff, #f8fafc);
}

.team-level-1 .member-avatar {
    width: 150px;
    height: 150px;
    border-width: 4px;
}

.team-level-1 .member-name {
    font-size: 1.5rem;
}

.team-level-1 .member-role {
    font-size: 1rem;
}

/* Missions Section */
.missions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.mission-card {
    background: var(--surface);
    padding: 40px 32px;
    border-radius: var(--radius-large);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all var(--transition);
}

.mission-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 0, 145, 0.2);
}

.mission-icon {
    width: 64px;
    height: 64px;
    background: #f1f5f9;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 1.5rem;
    font-weight: bold;
}

.mission-card h3 {
    margin-bottom: 16px;
    font-size: 1.25rem;
}

.mission-card p {
    color: var(--text-soft);
    font-size: 0.95rem;
}

/* Stats Section */
.stats-section {
    background: var(--primary);
    color: white;
    padding: 80px 0;
    margin: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #e2e8f0;
}

/* =========================================
   AC-NOVA THEME OVERRIDES 
   ========================================= */

h1, h2, h3, h4, h5, h6, .stat-number {
    font-family: 'Quicksand', system-ui, sans-serif !important;
}

.button {
    border-radius: 50px !important;
    padding: 14px 28px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hero-section {
    position: relative;
    overflow: visible;
    padding-bottom: 120px; /* Space for overlapping stats */
    border-bottom: none;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(0,0,145,0.08) 0%, transparent 60%);
    z-index: -1;
    border-radius: 50%;
}

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

.badge-promo {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 0, 145, 0.05);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 24px;
    border: 1px solid rgba(0, 0, 145, 0.1);
}

.stats-section {
    background: transparent !important;
    padding: 0 !important;
    margin-top: -80px !important;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    background: white;
    padding: 32px;
    border-radius: var(--radius-large);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border: 1px solid var(--border);
}

.stat-item {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-number {
    background: none !important;
    -webkit-text-fill-color: var(--primary) !important;
    font-size: 3rem !important;
    margin-bottom: 8px !important;
}

.stat-label {
    color: var(--text-soft) !important;
    font-size: 0.9rem !important;
    letter-spacing: 0 !important;
}

/* =========================================
   AC-NOVA FOOTER OVERRIDES 
   ========================================= */

.ac-footer {
    background: #f8fafc;
    padding: 60px 0 20px;
    border-top: 1px solid #e2e8f0;
    color: #475569;
    font-family: 'Inter', sans-serif;
}

.ac-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.ac-footer-brand .ac-brand-logo img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: transparent;
    margin-bottom: 16px;
}

.ac-footer-brand h2 {
    font-family: 'Quicksand', sans-serif;
    font-weight: 800;
    color: #0f172a;
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.ac-brand-subtitle {
    color: #0f62fe;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.ac-footer-brand p {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 24px;
    color: #64748b;
}

.ac-btn-discord {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #5865F2;
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
}

.ac-btn-discord:hover {
    background: #4752C4;
    color: white;
}

.ac-footer-links h3 {
    font-size: 0.85rem;
    color: #0f172a;
    margin-bottom: 20px;
    font-weight: 700;
}

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

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

.ac-footer-links a {
    color: #64748b;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}

.ac-footer-links a i {
    font-size: 0.7rem;
    color: #0f62fe;
}

.ac-footer-links a:hover {
    color: #0f62fe;
}

.ac-footer-host {
    display: flex;
    justify-content: flex-end;
}

.host-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: none;
    display: flex;
    gap: 16px;
    max-width: 300px;
}

.host-icon {
    background: rgba(15, 98, 254, 0.1);
    color: #0f62fe;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.host-info strong {
    display: block;
    color: #0f172a;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.host-info p {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 8px;
    line-height: 1.4;
}

.host-info a {
    font-size: 0.8rem;
    color: #0f62fe;
    font-weight: 600;
}

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

/* =========================================
   ELEGANT DASHBOARD OVERRIDES 
   ========================================= */

.admin-layout {
    background: #f5f7fa; /* Light gray/blue background for main area */
}

.elegant-sidebar {
    background: #0f62fe !important; /* Deep bright blue */
    color: white;
    padding: 0 !important;
    justify-content: space-between;
}

.elegant-sidebar .sidebar-top {
    padding: 32px 16px;
}

.elegant-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    padding-left: 8px;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Quicksand', sans-serif;
}

.elegant-logo {
    width: 36px;
    height: 36px;
    background: white;
    color: #0f62fe;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.elegant-nav a {
    color: rgba(255, 255, 255, 0.7) !important;
    border-radius: 12px !important;
    margin-bottom: 4px;
    padding: 14px 16px !important;
    transition: all 0.2s;
}

.elegant-nav a i {
    width: 20px;
    text-align: center;
    margin-right: 12px;
    font-size: 1.1rem;
}

.elegant-nav a:hover,
.elegant-nav a.active {
    background: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
}

.elegant-nav .nav-category {
    margin-top: 32px;
    margin-bottom: 12px;
    padding-left: 16px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.05em;
}

.sidebar-bottom {
    padding: 24px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.elegant-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.user-info {
    flex-grow: 1;
    overflow: hidden;
}

.user-info strong {
    display: block;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-info span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    display: block;
}

.logout-btn {
    color: rgba(255, 255, 255, 0.7);
    transition: 0.2s;
    padding: 8px;
}

.logout-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

/* Enhancing panels to match screenshot */
.admin-panel {
    border: none !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03) !important;
    border-radius: 16px !important;
}

.admin-stat-card {
    border: none !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03) !important;
    border-radius: 16px !important;
}

.elegant-dashboard-header {
    margin-bottom: 32px;
}

.elegant-dashboard-header h1 {
    font-size: 1.75rem;
    color: #0f172a;
    font-weight: 800;
}

.elegant-dashboard-header p {
    color: #64748b;
    margin-top: 4px;
}

.elegant-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

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

@media (max-width: 768px) {
    .elegant-stats-grid { grid-template-columns: 1fr; }
}

.elegant-stat-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    position: relative;
}

.elegant-stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.stat-trend {
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.trend-up { color: #10b981; }
.trend-down { color: #ef4444; }

.elegant-dashboard-body {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

@media (max-width: 1024px) {
    .elegant-dashboard-body { grid-template-columns: 1fr; }
}

.elegant-main-chart {
    background: white;
    padding: 24px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.chart-header h2 {
    font-size: 1.25rem;
    color: #0f172a;
    margin: 0;
}

.chart-legend {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    font-weight: 600;
}

.chart-legend i { font-size: 0.6rem; }

.chart-placeholder {
    height: 250px;
    position: relative;
    border-bottom: 1px solid #e2e8f0;
    border-left: 1px solid #e2e8f0;
    background-image: linear-gradient(#f8fafc 1px, transparent 1px);
    background-size: 100% 50px;
}

.chart-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
}

.chart-line.line-1 {
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><path d="M0,80 Q20,20 40,50 T80,30 T100,10" fill="none" stroke="%230f62fe" stroke-width="2"/></svg>') no-repeat;
    background-size: 100% 100%;
}

.chart-line.line-2 {
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 100 100" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><path d="M0,60 Q25,80 50,40 T75,70 T100,50" fill="none" stroke="%2310b981" stroke-width="2"/></svg>') no-repeat;
    background-size: 100% 100%;
}

.elegant-side-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.accent-panel {
    background: #0f62fe !important;
    color: white;
}

.accent-panel h3 {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: 8px;
}

.accent-panel .big-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.action-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.action-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8fafc;
    color: #0f172a;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.2s;
}

.action-list a i {
    color: #0f62fe;
}

.action-list a:hover {
    background: #eff6ff;
    transform: translateX(4px);
}

.ac-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    font-size: 0.8rem;
    color: #64748b;
}

.ac-footer-bottom a {
    color: #64748b;
    text-decoration: underline;
}

.ac-footer-bottom i {
    color: #2a9d8f;
    margin-right: 4px;
}

@media (max-width: 992px) {
    .ac-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .ac-footer-host {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .ac-footer-grid {
        grid-template-columns: 1fr;
    }
    .ac-footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}