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

/* --- CSS Variables --- */
:root {
    --cs-primary: #2563eb;
    --cs-primary-dark: #1d4ed8;
    --cs-primary-light: #dbeafe;
    --cs-dark: #0f172a;
    --cs-dark-nav: #1a3055;
    --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);
    --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;
}

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

.navbar {
    min-height: 58px;
    background: linear-gradient(135deg, #0f172a 0%, var(--cs-dark-nav) 100%) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
    padding-top: 0;
    padding-bottom: 0;
    border-bottom: 1px solid rgba(255,255,255,0.06) !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, #3b82f6, #1d4ed8);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.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, #3b82f6, #2563eb);
    border-color: #2563eb;
    box-shadow: 0 1px 3px rgba(37,99,235,0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-color: #1d4ed8;
    box-shadow: 0 4px 10px rgba(37,99,235,0.35);
    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: rgba(255,255,255,0.13);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.92);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.35em 1em;
    border-radius: 20px;
    margin-bottom: 1.25rem;
    letter-spacing: 0.3px;
}

.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 */
.hero-full {
    background: linear-gradient(135deg, #0a1628 0%, #0f2444 40%, #1a3a6e 70%, #2563eb 100%);
    color: white;
    padding: 6.5rem 0 5.5rem;
    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: 500px; height: 500px;
    top: -20%; right: -8%;
    background: rgba(59,130,246,0.18);
}

.hero-orb-2 {
    width: 300px; height: 300px;
    bottom: -30%; left: -5%;
    background: rgba(99,102,241,0.14);
}

.hero-orb-3 {
    width: 200px; height: 200px;
    top: 10%; left: 30%;
    background: rgba(255,255,255,0.04);
}

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

/* 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, #60a5fa, #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 30px rgba(59,130,246,0.25), 0 0 60px rgba(59,130,246,0.1); }
    50%       { box-shadow: 0 0 50px rgba(59,130,246,0.4), 0 0 100px rgba(59,130,246,0.2); }
}

.hero-full-icon {
    width: 160px;
    height: 160px;
    background: rgba(255,255,255,0.1);
    border-radius: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
    color: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.18);
    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(255,255,255,0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    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;
}

.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-color: #f1f5f9;
    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: var(--cs-primary-light);
    color: var(--cs-primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.35em 1em;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.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: 2px;
        background: linear-gradient(90deg, #dbeafe, #ede9fe, #fef3c7);
        z-index: 0;
    }
}

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

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

.step-number {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    background: var(--cs-primary);
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(37,99,235,0.35);
}

.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, #0f2444 0%, #1e3a5f 40%, #2563eb 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: 400px; height: 400px;
    top: -50%; right: -5%;
    background: rgba(99,102,241,0.2);
}

.cta-shape-2 {
    width: 300px; height: 300px;
    bottom: -40%; left: 5%;
    background: rgba(59,130,246,0.2);
}

.cta-icon-wrap {
    width: 72px;
    height: 72px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 1.5rem;
}

.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: white;
    color: #1d4ed8;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.7rem 1.75rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-hero-primary:hover {
    background: #f0f7ff;
    color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.btn-hero-secondary {
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.92);
    border: 1.5px solid rgba(255,255,255,0.3);
    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;
}

.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.2);
    color: white;
    border-color: rgba(255,255,255,0.5);
}

/* 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 {
    background: white;
    border: 1px solid var(--cs-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    border-top: 3px solid transparent;
}

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

.home-stat-blue   { border-top-color: #3b82f6; }
.home-stat-green  { border-top-color: #10b981; }
.home-stat-purple { border-top-color: #8b5cf6; }
.home-stat-amber  { border-top-color: #f59e0b; }

.home-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 1rem;
}

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

.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 {
    background: white;
    border: 1px solid var(--cs-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1.75rem 1.5rem;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-bottom: 3px solid transparent;
}

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

.feature-card-blue   { border-bottom-color: #3b82f6; }
.feature-card-green  { border-bottom-color: #10b981; }
.feature-card-purple { border-bottom-color: #8b5cf6; }
.feature-card-amber  { border-bottom-color: #f59e0b; }

/* ===========================
   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;
}

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

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