/* ===========================
   COMPETITION SYSTEM - STYLES
   =========================== */

/* --- CSS Variables --- */
:root {
    --cs-primary: #4f46e5;
    --cs-primary-dark: #4338ca;
    --cs-primary-light: #ede9fe;
    --cs-dark: #0f172a;
    --cs-dark-nav: #1e1b4b;
    --cs-text: #1e293b;
    --cs-text-muted: #64748b;
    --cs-border: #e2e8f0;
    --cs-bg: #f8fafc;
    --cs-bg-card: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.05);
    --shadow-vibrant: 0 8px 32px rgba(79,70,229,.22), 0 2px 8px rgba(79,70,229,.12);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
}

/* --- Base --- */
html {
    font-size: 14px;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html { font-size: 15px; }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--cs-bg);
    color: var(--cs-text);
    margin-bottom: 60px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--cs-dark);
    letter-spacing: -0.2px;
}

/* --- Focus Styles --- */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus,
.form-control:focus, .form-check-input:focus, .form-select:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    border-color: #93c5fd;
    outline: none;
}

/* ===========================
   STICKY HEADER
   =========================== */

.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1030;
}

/* ===========================
   NAVBAR
   =========================== */

.navbar {
    min-height: 64px;
    background: linear-gradient(135deg, #0d0628 0%, #1e1b4b 60%, #312e81 100%) !important;
    box-shadow: 0 2px 20px rgba(79,70,229,0.3);
    padding-top: 0;
    padding-bottom: 0;
    border-bottom: 1px solid rgba(167,139,250,0.15) !important;
    transition: box-shadow 0.3s ease, background 0.3s ease !important;
}

.navbar.navbar-scrolled {
    box-shadow: 0 4px 40px rgba(79,70,229,0.5) !important;
    border-bottom-color: rgba(167,139,250,0.35) !important;
}

.navbar-brand {
    font-weight: 700 !important;
    font-size: 1rem !important;
    letter-spacing: -0.2px;
    color: #fff !important;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 0;
    padding-bottom: 0;
}

.navbar-brand .brand-icon {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #a78bfa, #7c3aed);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 2px 12px rgba(124,58,237,0.5);
}

.navbar-nav .nav-link {
    font-size: 0.875rem !important;
    font-weight: 500;
    padding: 0.45rem 0.8rem !important;
    border-radius: var(--radius-sm);
    margin: 0 2px;
    transition: background 0.15s ease;
    color: rgba(255,255,255,0.78) !important;
}

.navbar-nav .nav-link:hover {
    background: rgba(255,255,255,0.1);
    color: #fff !important;
}

.navbar-user-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 4px 14px 4px 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
}

.navbar-user-badge .user-avatar {
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.navbar-logout-btn {
    background: none !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    color: rgba(255,255,255,0.78) !important;
    border-radius: var(--radius-sm) !important;
    font-size: 0.875rem !important;
    padding: 0.4rem 0.8rem !important;
    font-weight: 500 !important;
    transition: all 0.15s ease !important;
    text-decoration: none !important;
}

.navbar-logout-btn:hover {
    background: rgba(255,255,255,0.1) !important;
    color: #fff !important;
    border-color: rgba(255,255,255,0.35) !important;
}

/* ===========================
   CARDS
   =========================== */

.card {
    border: 1px solid var(--cs-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    background: var(--cs-bg-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card-header {
    background-color: #f8fafc;
    border-bottom: 1px solid var(--cs-border);
    font-weight: 600;
    font-size: 0.9rem;
    color: #374151;
    padding: 0.875rem 1.25rem;
    border-radius: var(--radius-md) var(--radius-md) 0 0 !important;
}

.card-header.bg-dark {
    background: linear-gradient(135deg, #0f172a, var(--cs-dark-nav)) !important;
}

/* --- Stat Cards --- */
.stat-card {
    border: 1px solid var(--cs-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: white;
    padding: 1.25rem;
}

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

.stat-card .stat-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.stat-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--cs-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 4px;
    display: block;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--cs-dark);
}

/* Stat color variants */
.stat-card.stat-primary   { border-top: 3px solid #3b82f6; }
.stat-card.stat-warning   { border-top: 3px solid #f59e0b; }
.stat-card.stat-success   { border-top: 3px solid #10b981; }
.stat-card.stat-info      { border-top: 3px solid #06b6d4; }
.stat-card.stat-danger    { border-top: 3px solid #ef4444; }
.stat-card.stat-secondary { border-top: 3px solid #8b5cf6; }

.stat-icon.icon-primary   { background: #dbeafe; color: #2563eb; }
.stat-icon.icon-warning   { background: #fef3c7; color: #d97706; }
.stat-icon.icon-success   { background: #d1fae5; color: #059669; }
.stat-icon.icon-info      { background: #cffafe; color: #0891b2; }
.stat-icon.icon-danger    { background: #fee2e2; color: #dc2626; }
.stat-icon.icon-secondary { background: #ede9fe; color: #7c3aed; }

/* ===========================
   TABLES
   =========================== */

.table {
    font-size: 0.875rem;
    margin-bottom: 0;
}

.table thead th {
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 0.75rem 1rem;
    white-space: nowrap;
    border-bottom-width: 2px;
}

.table thead.table-dark th {
    background: linear-gradient(135deg, #0f172a, var(--cs-dark-nav));
    color: rgba(255,255,255,0.88);
    border-color: transparent;
}

.table tbody td {
    padding: 0.875rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    color: #374151;
}

.table-hover tbody tr:hover td {
    background-color: #f8fafc;
}

.table-responsive {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--cs-border);
    background: white;
    overflow: hidden;
}

/* ===========================
   BADGES
   =========================== */

.badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.35em 0.75em;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

/* ===========================
   BUTTONS
   =========================== */

.btn {
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #818cf8, #4f46e5);
    border-color: #4f46e5;
    box-shadow: 0 1px 3px rgba(79,70,229,0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    border-color: #4338ca;
    box-shadow: 0 4px 14px rgba(79,70,229,0.4);
    transform: translateY(-1px);
}

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

.btn-sm {
    font-size: 0.8rem;
    padding: 0.3rem 0.7rem;
    border-radius: 5px;
}

.btn-lg {
    font-size: 1rem;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-md);
}

/* ===========================
   FORMS
   =========================== */

.form-control, .form-select {
    border-radius: var(--radius-sm);
    border-color: #d1d5db;
    font-size: 0.9rem;
    padding: 0.5rem 0.85rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    background-color: #fff;
}

.form-control:hover:not(:focus), .form-select:hover:not(:focus) {
    border-color: #9ca3af;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.4rem;
}

/* ===========================
   PAGE HEADERS
   =========================== */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--cs-border);
}

.page-header-title {
    margin: 0 0 2px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cs-dark);
    letter-spacing: -0.3px;
}

.page-header-subtitle {
    font-size: 0.875rem;
    color: var(--cs-text-muted);
    margin: 0;
}

/* ===========================
   HERO SECTION
   =========================== */

.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #2563eb 100%);
    color: white;
    border-radius: var(--radius-lg);
    padding: 3.5rem 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -8%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -5%;
    width: 280px;
    height: 280px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(167,139,250,0.3), rgba(6,182,212,0.2));
    border: 1px solid rgba(167,139,250,0.5);
    color: rgba(255,255,255,0.95);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.35em 1em;
    border-radius: 20px;
    margin-bottom: 1.25rem;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 12px rgba(124,58,237,0.25);
}

.hero-icon-wrapper {
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.1);
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.15);
}

/* ===========================
   COMPETITION CARDS (Home)
   =========================== */

.competition-card {
    background: white;
    border: 1px solid var(--cs-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.competition-card .card-body {
    padding: 1.25rem;
    flex: 1;
}

.competition-card .card-footer {
    background: #f8fafc;
    border-top: 1px solid var(--cs-border);
    font-size: 0.8rem;
    color: var(--cs-text-muted);
    padding: 0.6rem 1.25rem;
}

.type-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3em 0.8em;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.deadline-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3em 0.8em;
    border-radius: 20px;
}

/* ===========================
   AUTH PAGES
   =========================== */

.auth-card {
    width: 100%;
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 8px 20px rgba(0,0,0,0.06);
    overflow: hidden;
}

.auth-card .card-header.bg-dark {
    padding: 2rem 2rem 1.5rem;
    text-align: center;
}

.auth-logo {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(37,99,235,0.4);
}

.auth-card .card-body {
    padding: 1.75rem 2rem;
}

.auth-card .card-footer {
    padding: 1rem 2rem;
    background: #f8fafc;
    border-top: 1px solid var(--cs-border);
    text-align: center;
}

.demo-credentials {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 0.875rem 1rem;
    margin-top: 1rem;
}

.demo-credentials-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--cs-text-muted);
    margin-bottom: 0.5rem;
}

.demo-credentials-item {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    color: #374151;
    padding: 3px 0;
    gap: 8px;
}

.demo-credentials-item .demo-role {
    width: 52px;
    font-weight: 700;
    color: var(--cs-dark);
    flex-shrink: 0;
}

.demo-credentials-item .demo-email {
    color: var(--cs-text-muted);
    font-family: 'Courier New', monospace;
    font-size: 0.77rem;
}

/* ===========================
   ALERTS
   =========================== */

.alert {
    border-radius: var(--radius-sm);
    border: none;
    font-size: 0.9rem;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.alert-info {
    background-color: #dbeafe;
    color: #1e40af;
}

.alert-warning {
    background-color: #fef3c7;
    color: #92400e;
}

/* ===========================
   STATUS COLORS
   =========================== */

.status-Pending          { color: #6c757d; }
.status-UnderReview      { color: #0d6efd; }
.status-RevisionRequested { color: #fd7e14; }
.status-Approved         { color: #198754; }
.status-Rejected         { color: #dc3545; }

/* ===========================
   SECTION HEADERS
   =========================== */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--cs-dark);
    margin: 0;
}

/* ===========================
   DEFINITION LISTS
   =========================== */

dl.row dt {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--cs-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding-top: 0.625rem;
    padding-bottom: 0.375rem;
}

dl.row dd {
    font-size: 0.9rem;
    color: var(--cs-text);
    padding-top: 0.625rem;
    padding-bottom: 0.375rem;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 0;
}

dl.row dt { border-bottom: 1px solid #f1f5f9; }

dl.row > :last-child { border-bottom: none; }

/* ===========================
   FOOTER
   =========================== */

footer {
    background-color: #f1f5f9 !important;
    border-top: 1px solid var(--cs-border) !important;
    color: var(--cs-text-muted);
    font-size: 0.8125rem;
}

/* ===========================
   SCROLL ANIMATIONS
   =========================== */

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

.animate-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

/* ===========================
   ONE-PAGE HOME SECTIONS
   =========================== */

/* Full-width hero — fills viewport below sticky navbar */
.hero-full {
    background: linear-gradient(135deg, #0d0628 0%, #2d1b69 30%, #4f46e5 65%, #06b6d4 100%);
    color: white;
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

/* Mesh grid overlay */
.hero-mesh {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

/* Decorative orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(60px);
}

.hero-orb-1 {
    width: 600px; height: 600px;
    top: -25%; right: -10%;
    background: rgba(6,182,212,0.22);
}

.hero-orb-2 {
    width: 350px; height: 350px;
    bottom: -35%; left: -8%;
    background: rgba(167,139,250,0.25);
}

.hero-orb-3 {
    width: 250px; height: 250px;
    top: 15%; left: 35%;
    background: rgba(236,72,153,0.12);
}

.hero-full .hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
}

/* Hero heading */
.hero-heading {
    color: white;
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 800;
    letter-spacing: -0.8px;
    line-height: 1.12;
    margin-bottom: 1.25rem;
}

.hero-heading-accent {
    background: linear-gradient(90deg, #34d399, #22d3ee, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    color: rgba(255,255,255,0.75);
    font-size: 1.08rem;
    max-width: 500px;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Trust strip */
.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
    font-weight: 500;
}

.hero-trust-item .bi-check-circle-fill {
    color: #34d399 !important;
}

/* Hero visual / floating icon */
.hero-visual-wrap {
    position: relative;
    width: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 40px rgba(167,139,250,0.4), 0 0 80px rgba(6,182,212,0.15); }
    50%       { box-shadow: 0 0 70px rgba(167,139,250,0.6), 0 0 140px rgba(6,182,212,0.3); }
}

.hero-full-icon {
    width: 160px;
    height: 160px;
    background: linear-gradient(135deg, rgba(124,58,237,0.35), rgba(6,182,212,0.2));
    border-radius: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
    color: rgba(255,255,255,0.95);
    border: 1px solid rgba(167,139,250,0.4);
    backdrop-filter: blur(10px);
    animation: float 4s ease-in-out infinite, glow-pulse 4s ease-in-out infinite;
}

/* Floating stat badges */
@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}

.hero-floating-badge {
    position: absolute;
    background: rgba(167,139,250,0.2);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(167,139,250,0.45);
    color: white;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(79,70,229,0.2);
}

.hfb-1 {
    top: 10px; right: -30px;
    animation: floatBadge 3s ease-in-out infinite;
}

.hfb-2 {
    bottom: 40px; left: -40px;
    animation: floatBadge 3.5s ease-in-out infinite 0.5s;
}

.hfb-3 {
    bottom: -10px; right: 0;
    animation: floatBadge 4s ease-in-out infinite 1s;
}

/* Page sections */
.page-section {
    padding: 4rem 0;
}

.page-section-gray {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 50%, #e0e7ff 100%);
    padding: 4rem 0;
}

.page-section-dark {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    padding: 4rem 0;
    color: white;
}

/* Section headings */
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    color: #6d28d9;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.35em 1em;
    border-radius: 20px;
    margin-bottom: 1rem;
    border: 1px solid rgba(109,40,217,0.15);
}

.section-heading {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--cs-dark);
    letter-spacing: -0.4px;
    margin-bottom: 0.5rem;
}

.section-subheading {
    font-size: 1rem;
    color: var(--cs-text-muted);
    max-width: 520px;
    margin: 0 auto;
}

/* Steps wrapper with connector line */
.steps-wrapper {
    position: relative;
}

.steps-connector {
    display: none;
}

@media (min-width: 768px) {
    .steps-connector {
        display: block;
        position: absolute;
        top: 62px;
        left: calc(12.5% + 14px);
        right: calc(12.5% + 14px);
        height: 3px;
        background: linear-gradient(90deg, #818cf8, #c084fc, #f472b6, #fb923c);
        z-index: 0;
        border-radius: 4px;
        box-shadow: 0 0 12px rgba(129,140,248,0.4);
    }
}

/* How it works steps */
.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid rgba(167,139,250,0.2);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    position: relative;
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(79,70,229,0.15);
    border-color: rgba(129,140,248,0.4);
}

.step-number {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #818cf8, #6d28d9);
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(79,70,229,0.5);
}

.step-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1.25rem;
}

.step-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--cs-dark);
    margin-bottom: 0.5rem;
}

.step-desc {
    font-size: 0.875rem;
    color: var(--cs-text-muted);
    line-height: 1.6;
}

/* CTA section */
.cta-section {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 35%, #ec4899 70%, #f97316 100%);
    padding: 5rem 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(70px);
}

.cta-shape-1 {
    width: 500px; height: 500px;
    top: -60%; right: -8%;
    background: rgba(236,72,153,0.3);
}

.cta-shape-2 {
    width: 400px; height: 400px;
    bottom: -50%; left: 3%;
    background: rgba(249,115,22,0.25);
}

.cta-icon-wrap {
    width: 72px;
    height: 72px;
    background: rgba(255,255,255,0.18);
    border: 1.5px solid rgba(255,255,255,0.35);
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.cta-section h2 {
    color: white;
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 0.75rem;
}

.cta-section p {
    color: rgba(255,255,255,0.72);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* Role-aware hero buttons */
.btn-hero-primary {
    background: linear-gradient(135deg, #a78bfa, #7c3aed);
    color: white;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.7rem 1.75rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(124,58,237,0.5);
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-hero-primary:hover {
    background: linear-gradient(135deg, #c084fc, #6d28d9);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(124,58,237,0.65);
}

.btn-hero-secondary {
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.95);
    border: 1.5px solid rgba(255,255,255,0.4);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.7rem 1.75rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(8px);
}

.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.25);
    color: white;
    border-color: rgba(255,255,255,0.65);
    transform: translateY(-2px);
}

/* Role badge (shown in hero when logged in) */
.role-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.9);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

/* ===========================
   HOME STAT CARDS
   =========================== */

.home-stat-card {
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.home-stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.home-stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.home-stat-blue   { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); border-color: rgba(59,130,246,0.2); }
.home-stat-blue::before   { background: linear-gradient(90deg, #60a5fa, #3b82f6); }

.home-stat-green  { background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); border-color: rgba(34,197,94,0.2); }
.home-stat-green::before  { background: linear-gradient(90deg, #4ade80, #16a34a); }

.home-stat-purple { background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%); border-color: rgba(139,92,246,0.2); }
.home-stat-purple::before { background: linear-gradient(90deg, #c084fc, #9333ea); }

.home-stat-amber  { background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%); border-color: rgba(245,158,11,0.2); }
.home-stat-amber::before  { background: linear-gradient(90deg, #fbbf24, #d97706); }

.home-stat-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin: 0 auto 1.1rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.home-stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--cs-dark);
    line-height: 1;
    margin-bottom: 0.25rem;
    letter-spacing: -0.8px;
}

.home-stat-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--cs-text-muted);
    margin-bottom: 0.6rem;
}

.home-stat-desc {
    font-size: 0.825rem;
    color: var(--cs-text-muted);
    line-height: 1.5;
    margin: 0;
}

/* ===========================
   HOME FEATURE CARDS
   =========================== */

.feature-card {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.75rem 1.5rem;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.1);
}

.feature-card-blue   { background: linear-gradient(135deg, #eff6ff, #dbeafe); border-color: rgba(59,130,246,0.2); }
.feature-card-blue::after   { background: linear-gradient(90deg, #60a5fa, #2563eb); }

.feature-card-green  { background: linear-gradient(135deg, #f0fdf4, #dcfce7); border-color: rgba(34,197,94,0.2); }
.feature-card-green::after  { background: linear-gradient(90deg, #4ade80, #16a34a); }

.feature-card-purple { background: linear-gradient(135deg, #faf5ff, #f3e8ff); border-color: rgba(139,92,246,0.2); }
.feature-card-purple::after { background: linear-gradient(90deg, #c084fc, #7c3aed); }

.feature-card-amber  { background: linear-gradient(135deg, #fffbeb, #fef3c7); border-color: rgba(245,158,11,0.2); }
.feature-card-amber::after  { background: linear-gradient(90deg, #fbbf24, #d97706); }

/* ===========================
   COMPETITION CARDS (Home listing)
   =========================== */

.comp-card {
    background: white;
    border: 1px solid var(--cs-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

.comp-card-top {
    padding: 1.25rem 1.25rem 1rem;
    flex: 1;
}

.comp-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--cs-dark);
    margin-bottom: 0.75rem;
    letter-spacing: -0.1px;
    line-height: 1.4;
}

.comp-card-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--cs-text-muted);
}

.comp-card-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.comp-card-footer {
    background: #f8fafc;
    border-top: 1px solid var(--cs-border);
    padding: 1rem 1.25rem;
}

.deadline-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.deadline-urgent {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3em 0.8em;
    border-radius: 20px;
    white-space: nowrap;
}

.deadline-success { background: #d1fae5; color: #065f46; }
.deadline-warning { background: #fef3c7; color: #92400e; }
.deadline-danger  { background: #fee2e2; color: #991b1b; }

.feature-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.1rem;
}

.feature-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--cs-dark);
    margin-bottom: 0.6rem;
    letter-spacing: -0.1px;
}

.feature-desc {
    font-size: 0.875rem;
    color: var(--cs-text-muted);
    line-height: 1.65;
    margin: 0;
}

/* ===========================
   REGISTER COMBINED FORM
   =========================== */

.register-section-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--cs-text-muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.project-toggle-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f1f5f9;
    border: 1px solid var(--cs-border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    margin-bottom: 0;
}

#projectFields {
    border-left: 3px solid #3b82f6;
    padding-left: 1.25rem;
    margin-top: 1rem;
}

/* ===========================
   FILTER PANEL
   =========================== */

.filter-card {
    background: #fff;
    border: 1px solid var(--cs-border);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem 1rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.filter-label {
    display: block;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--cs-text-muted);
    margin-bottom: .35rem;
}

/* Styled select */
.filter-select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    padding: .45rem .9rem;
    padding-right: 2.25rem;
    font-size: .875rem;
    font-weight: 500;
    color: var(--cs-text);
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    border: 1.5px solid var(--cs-border);
    border-radius: var(--radius-sm);
    transition: border-color .15s, box-shadow .15s;
    cursor: pointer;
    line-height: 1.5;
}

.filter-select:focus {
    outline: none;
    border-color: var(--cs-primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.filter-select:hover:not(:focus) {
    border-color: #94a3b8;
}

.filter-select option {
    font-weight: 400;
    color: var(--cs-text);
}

/* Styled text/date inputs inside filter */
.filter-input {
    width: 100%;
    padding: .45rem .9rem;
    font-size: .875rem;
    color: var(--cs-text);
    background-color: #fff;
    border: 1.5px solid var(--cs-border);
    border-radius: var(--radius-sm);
    transition: border-color .15s, box-shadow .15s;
    line-height: 1.5;
}

.filter-input:focus {
    outline: none;
    border-color: var(--cs-primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.filter-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

/* Search field with icon */
.filter-search-wrap {
    position: relative;
}

.filter-search-wrap .filter-search-icon {
    position: absolute;
    left: .75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: .875rem;
    pointer-events: none;
}

.filter-search-wrap .filter-input {
    padding-left: 2.1rem;
}

/* Date range group */
.filter-date-group {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.filter-date-group .filter-input {
    flex: 1;
}

.filter-date-sep {
    font-size: .75rem;
    color: var(--cs-text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Active filter badge on button */
.filter-active-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cs-primary);
    margin-left: .35rem;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

/* ===========================
   UTILITIES
   =========================== */

.text-muted { color: var(--cs-text-muted) !important; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }

/* ===========================
   HOMEPAGE SLIDER
   =========================== */

/* When slider is active, hero background becomes transparent (slider provides it) */
.hero-with-slider {
    background: linear-gradient(135deg, #0d0628 0%, #2d1b69 30%, #4f46e5 65%, #06b6d4 100%);
}

/* Slider fills entire hero section as background */
.hero-slider-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slider-bg .carousel-inner,
.hero-slider-bg .carousel-item {
    height: 100%;
    overflow: hidden;
}

.hero-slide-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-slide-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a1628, #1a3a6e);
}

/* Very light colorful overlay — keeps text readable without grey dimming */
.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(79, 70, 229, 0.18) 0%,
        rgba(6, 182, 212, 0.08) 60%,
        transparent 100%
    );
}

/* Slide caption (title/subtitle shown at bottom of slider) */
.hero-slide-caption {
    position: absolute;
    bottom: 1.75rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255,255,255,0.85);
    z-index: 2;
    width: 90%;
    max-width: 700px;
    pointer-events: none;
}

.hero-slide-title {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .02em;
    margin-bottom: .25rem;
    text-shadow: 0 1px 6px rgba(0,0,0,.5);
}

.hero-slide-subtitle {
    font-size: .8rem;
    opacity: .8;
    margin: 0;
    text-shadow: 0 1px 4px rgba(0,0,0,.4);
}

/* Carousel controls sit above content overlay */
.hero-slider-bg .carousel-control-prev,
.hero-slider-bg .carousel-control-next {
    z-index: 3;
    width: 3rem;
    opacity: .55;
    transition: opacity .2s;
}

.hero-slider-bg .carousel-control-prev:hover,
.hero-slider-bg .carousel-control-next:hover {
    opacity: .9;
}

.hero-slider-bg .carousel-indicators {
    z-index: 3;
    bottom: .4rem;
    margin-bottom: 0;
}

.hero-slider-bg .carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    opacity: .5;
    background-color: #fff;
}

.hero-slider-bg .carousel-indicators .active {
    opacity: 1;
}


/* ─── Partners Section ─────────────────────────────────────────────────────── */

.partners-section {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 50%, #e0e7ff 100%);
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.partners-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f97316, #ec4899, #8b5cf6, #06b6d4);
}

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

.partners-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: .5rem;
}

.partners-section-subtitle {
    color: #64748b;
    font-size: .95rem;
    margin: 0;
}

.partners-slider-wrap {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3.5rem;
}

.partners-slide-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    padding: .5rem 0 2.5rem;
    flex-wrap: wrap;
}

.partner-logo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 1.5rem 2rem;
    width: 220px;
    min-height: 120px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    transition: transform .25s ease, box-shadow .25s ease;
    text-decoration: none;
    color: inherit;
}

.partner-logo-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(139,92,246,.25);
    border-color: #c4b5fd;
}

.partner-logo-card a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.partner-logo-img {
    max-width: 160px;
    max-height: 70px;
    object-fit: contain;
    filter: grayscale(30%);
    transition: filter .25s ease;
}

.partner-logo-card:hover .partner-logo-img,
.partner-logo-card a:hover .partner-logo-img {
    filter: grayscale(0%);
}

.partner-logo-text {
    font-size: 1rem;
    font-weight: 700;
    color: #334155;
    text-align: center;
}

.partner-logo-desc {
    font-size: .75rem;
    color: #94a3b8;
    text-align: center;
    margin: .5rem 0 0;
    line-height: 1.4;
}

/* Partners carousel controls */
.partners-prev,
.partners-next {
    width: 2.5rem;
    background-color: rgba(99,102,241,.12);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-60%);
    opacity: .8;
    transition: background-color .2s, opacity .2s;
}

.partners-prev { left: 0; }
.partners-next { right: 0; }

.partners-prev:hover,
.partners-next:hover {
    background-color: rgba(99,102,241,.25);
    opacity: 1;
}

.partners-indicators {
    bottom: 0;
}

.partners-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background-color: #cbd5e1;
    opacity: 1;
}

.partners-indicators .active {
    background-color: #6366f1;
}

@media (max-width: 768px) {
    .partners-slider-wrap {
        padding: 0 2.5rem;
    }

    .partner-logo-card {
        width: 155px;
        min-height: 100px;
        padding: 1rem 1.25rem;
    }

    .partner-logo-img {
        max-width: 120px;
        max-height: 55px;
    }

    .partners-slide-row {
        gap: 1rem;
    }
}
