/*
 * LonexCommunity - Gaming Theme
 * Clean, modern gaming aesthetic
 */

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

:root {
    --bg-dark: #0c0c0c;
    --bg-darker: #080808;
    --bg-card: #141414;
    --bg-card-hover: #1a1a1a;
    --bg-input: #0f0f0f;
    
    --accent: #00a8ff;
    --accent-dim: rgba(0, 168, 255, 0.15);
    --accent-glow: rgba(0, 168, 255, 0.4);
    --success: #00d97e;
    --warning: #f5a623;
    --danger: #ff4757;
    
    --text: #ffffff;
    --text-dim: #a0a0a0;
    --text-muted: #606060;
    
    --border: #222222;
    --border-light: #2a2a2a;
    
    --radius: 8px;
    --radius-lg: 12px;
    
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    
    --nav-height: 64px;
    --container: 1140px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

main {
    min-height: calc(100vh - var(--nav-height));
    padding-top: var(--nav-height);
    position: relative;
    z-index: 1;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(12, 12, 12, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

.nav-brand img {
    height: 32px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-menu a {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dim);
    border-radius: 6px;
    transition: all 0.15s ease;
}

.nav-menu a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.nav-menu a.active {
    color: var(--accent);
}

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

.nav-user {
    position: relative;
}

.nav-user-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 4px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    cursor: pointer;
    transition: border-color 0.15s;
}

.nav-user-toggle:hover {
    border-color: var(--border-light);
}

.nav-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-user-name {
    font-size: 0.875rem;
    font-weight: 500;
}

.nav-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.15s ease;
}

.nav-user:hover .nav-user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-user-dropdown a {
    display: block;
    padding: 10px 14px;
    font-size: 0.875rem;
    color: var(--text-dim);
    transition: all 0.1s;
}

.nav-user-dropdown a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
}

.nav-user-dropdown a:first-child {
    border-radius: var(--radius) var(--radius) 0 0;
}

.nav-user-dropdown a:last-child {
    border-radius: 0 0 var(--radius) var(--radius);
}

/* Mobile nav */
.nav-toggle {
    display: none;
    width: 24px;
    height: 24px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 100%;
    height: 2px;
    background: var(--text);
    transition: all 0.2s;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        background: var(--bg-dark);
        padding: 24px;
        gap: 8px;
        transform: translateX(100%);
        transition: transform 0.25s ease;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-menu a {
        padding: 14px 16px;
        font-size: 1rem;
    }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-primary {
    background: var(--accent);
    color: #000;
}

.btn-primary:hover {
    background: #1ab8ff;
    box-shadow: 0 0 24px var(--accent-glow);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
}

.btn-discord {
    background: #5865F2;
    color: #fff;
}

.btn-discord:hover {
    background: #6873f5;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 0.95rem;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

/* ============================================
   Hero
   ============================================ */
.hero {
    padding: 100px 0 80px;
    text-align: center;
}

/* Fullscreen Hero */
.hero-fullscreen {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--bg-darker);
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: calc(-1 * var(--nav-height));
    padding-top: var(--nav-height);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(8, 8, 20, 0.85) 0%, rgba(8, 8, 20, 0.6) 50%, rgba(8, 8, 20, 0.75) 100%);
    pointer-events: none;
}

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

.hero-content {
    max-width: 700px;
    text-align: left;
}

.hero-label {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

.hero-fullscreen h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 32px;
    color: var(--text);
    letter-spacing: -0.01em;
}

.hero-fullscreen .hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.hero-buttons-wrapper {
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
}

.hero-fullscreen .hero-buttons .btn {
    min-width: 140px;
    justify-content: center;
}

.hero-discord-btn {
    margin-top: 16px;
    width: 100%;
    justify-content: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    margin-bottom: 24px;
    background: var(--accent-dim);
    border: 1px solid rgba(0, 168, 255, 0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent);
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero h1 .highlight {
    color: var(--accent);
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-dim);
    max-width: 540px;
    margin: 0 auto 36px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Stats
   ============================================ */
.stats-section {
    padding: 48px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.stat-card {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    margin-bottom: 4px;
}

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

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

/* ============================================
   Cards
   ============================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.2s ease;
}

.card:hover {
    border-color: var(--border-light);
    background: var(--bg-card-hover);
}

.card-header {
    margin-bottom: 16px;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
}

/* ============================================
   Team
   ============================================ */
.team-section,
.team-preview {
    padding: 80px 0;
}

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

.section-header h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.section-header p {
    color: var(--text-dim);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
    transition: all 0.2s ease;
}

.team-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 16px;
    object-fit: cover;
    border: 2px solid var(--border);
}

.team-card:hover .team-avatar {
    border-color: var(--accent);
}

.team-card h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.team-role {
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 12px;
}

.team-category {
    margin-bottom: 56px;
}

.team-category:last-child {
    margin-bottom: 0;
}

.team-category-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.team-category-header h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent);
}

/* ============================================
   Gallery
   ============================================ */
/* ============================================
   Gallery
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    cursor: pointer;
    background: var(--bg-card);
}

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

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
}

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

.gallery-caption {
    color: #fff;
}

.gallery-caption h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.gallery-caption p {
    font-size: 0.85rem;
    opacity: 0.8;
    margin: 0;
}

.gallery-zoom {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-zoom {
    opacity: 1;
    transform: scale(1);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
}

.lightbox-title {
    margin-top: 16px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: #fff;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

@media (max-width: 768px) {
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
    }
}

/* ============================================
   Status
   ============================================ */
.status-section {
    padding: 80px 0;
}

.status-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
    font-family: var(--font-display);
    font-weight: 600;
}

.status-banner.operational {
    background: rgba(0, 217, 126, 0.1);
    border: 1px solid rgba(0, 217, 126, 0.2);
    color: var(--success);
}

.status-banner.degraded {
    background: rgba(245, 166, 35, 0.1);
    border: 1px solid rgba(245, 166, 35, 0.2);
    color: var(--warning);
}

.status-banner.outage {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.2);
    color: var(--danger);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
}

.status-list {
    max-width: 700px;
    margin: 0 auto;
}

.status-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.status-indicator.status-operational { background: var(--success); }
.status-indicator.status-degraded { background: var(--warning); }
.status-indicator.status-outage { background: var(--danger); }

.status-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.status-content p {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 6px;
}

.status-content small {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================
   FAQ
   ============================================ */
.faq-section {
    padding: 80px 0;
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.1s;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.02);
}

.faq-icon {
    width: 20px;
    height: 20px;
    position: relative;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background: var(--text-dim);
    transition: transform 0.2s;
}

.faq-icon::before {
    width: 12px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.faq-icon::after {
    width: 2px;
    height: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.faq-item.active .faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 20px 20px;
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* ============================================
   CTA
   ============================================ */
.cta-section {
    padding: 80px 0;
    text-align: center;
}

.cta-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 56px 32px;
    max-width: 600px;
    margin: 0 auto;
}

.cta-card h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-card p {
    color: var(--text-dim);
    margin-bottom: 28px;
}

/* ============================================
   Page Header
   ============================================ */
.page-header {
    padding: 48px 0 32px;
    text-align: center;
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-header p {
    color: var(--text-dim);
    max-width: 500px;
    margin: 0 auto;
}

/* ============================================
   Simple Page Styles
   ============================================ */
.container-sm {
    max-width: 800px;
}

.page-section {
    padding: 60px 0 80px;
}

.page-title {
    text-align: center;
    margin-bottom: 48px;
}

.page-title h1 {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.page-title p {
    color: var(--text-dim);
    font-size: 1.1rem;
}

/* Prose - for markdown content */
.prose {
    line-height: 1.8;
    color: var(--text-dim);
}

.prose h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 40px;
    margin-bottom: 16px;
}

.prose h2:first-child {
    margin-top: 0;
}

.prose h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 32px;
    margin-bottom: 12px;
}

.prose p {
    margin-bottom: 16px;
}

.prose ul,
.prose ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.prose li {
    margin-bottom: 8px;
}

.prose strong {
    color: var(--text);
    font-weight: 600;
}

.prose a {
    color: var(--accent);
}

.prose a:hover {
    text-decoration: underline;
}

.empty-state {
    text-align: center;
    padding: 80px 24px;
    color: var(--text-dim);
}

.empty-state svg {
    margin-bottom: 20px;
    opacity: 0.4;
}

.empty-state h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.empty-state p {
    max-width: 400px;
    margin: 0 auto;
    font-size: 0.95rem;
}

.page-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
    padding: 16px 20px;
    background: rgba(245, 166, 35, 0.1);
    border: 1px solid rgba(245, 166, 35, 0.2);
    border-radius: var(--radius);
    color: var(--warning);
    font-size: 0.9rem;
}

.page-notice svg {
    flex-shrink: 0;
}

/* ============================================
   Rules Page
   ============================================ */
.rules-container {
    max-width: 800px;
    margin: 0 auto;
}

.rules-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.rules-content h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 48px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.rules-content h2:first-child {
    margin-top: 0;
}

.rules-content h2::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--accent);
    border-radius: 2px;
}

.rules-content h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 28px;
    margin-bottom: 12px;
}

.rules-content p {
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 16px;
}

.rules-content ol {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    counter-reset: rule-counter;
}

.rules-content ol li {
    position: relative;
    padding: 16px 20px 16px 60px;
    margin-bottom: 12px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    counter-increment: rule-counter;
    line-height: 1.6;
    color: var(--text-dim);
}

.rules-content ol li::before {
    content: counter(rule-counter);
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rules-content ol li strong {
    color: var(--text);
    font-weight: 600;
}

.rules-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.rules-content ul li {
    position: relative;
    padding: 12px 16px 12px 36px;
    margin-bottom: 8px;
    background: var(--bg-dark);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    line-height: 1.6;
    color: var(--text-dim);
}

.rules-content ul li::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 18px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.rules-content ul li strong {
    color: var(--text);
}

/* Rules Footer */
.rules-footer {
    max-width: 800px;
    margin: 32px auto 0;
}

.rules-notice {
    display: flex;
    gap: 16px;
    padding: 20px 24px;
    background: rgba(245, 166, 35, 0.08);
    border: 1px solid rgba(245, 166, 35, 0.2);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}

.notice-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(245, 166, 35, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--warning);
}

.notice-content strong {
    display: block;
    color: var(--warning);
    font-size: 1rem;
    margin-bottom: 4px;
}

.notice-content p {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

.rules-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.rules-cta p {
    color: var(--text-dim);
    margin: 0;
}

@media (max-width: 640px) {
    .rules-content {
        padding: 24px;
    }
    
    .rules-content ol li {
        padding: 14px 16px 14px 52px;
    }
    
    .rules-content ol li::before {
        left: 12px;
        width: 26px;
        height: 26px;
        font-size: 0.8rem;
    }
    
    .rules-cta {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

.page-cta {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.page-cta p {
    color: var(--text-dim);
    margin-bottom: 16px;
}

/* ============================================
   Features Section
   ============================================ */
.features-section {
    padding: 60px 0;
    background: var(--bg-darker);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.section-title p {
    color: var(--text-dim);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.feature-item {
    text-align: center;
    padding: 32px 24px;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--accent-dim);
    border-radius: 12px;
    color: var(--accent);
    margin-bottom: 16px;
}

.feature-item h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-item p {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    padding: 80px 0;
}

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

.cta-content h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-content p {
    color: var(--text-dim);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Team Page
   ============================================ */
.team-category {
    margin-bottom: 48px;
}

.team-category:last-child {
    margin-bottom: 0;
}

.category-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--cat-color, var(--accent));
}

.category-header h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--cat-color, var(--accent));
}

.category-header p {
    color: var(--text-dim);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s;
}

.team-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.team-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 16px;
    border: 3px solid var(--border);
}

.team-card h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.team-role {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.team-bio {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ============================================
   Content
   ============================================ */
.content-section {
    padding: 40px 0 80px;
}

.content-block {
    max-width: 720px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.content-block h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 16px;
}

.content-block h2:first-child {
    margin-top: 0;
}

.content-block p {
    color: var(--text-dim);
    margin-bottom: 16px;
}

.content-block ul,
.content-block ol {
    color: var(--text-dim);
    margin: 0 0 16px 24px;
}

.content-block li {
    margin-bottom: 8px;
}

.rules-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rule-item {
    display: flex;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
}

.rule-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--accent);
    color: #000;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 6px;
    flex-shrink: 0;
}

.rule-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.rule-content p {
    font-size: 0.9rem;
    margin: 0;
}

/* ============================================
   Forms
   ============================================ */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.15s;
}

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

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

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

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ============================================
   Alerts
   ============================================ */
.alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.alert-success {
    background: rgba(0, 217, 126, 0.1);
    border: 1px solid rgba(0, 217, 126, 0.2);
    color: var(--success);
}

.alert-error {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.2);
    color: var(--danger);
}

.alert-warning {
    background: rgba(245, 166, 35, 0.1);
    border: 1px solid rgba(245, 166, 35, 0.2);
    color: var(--warning);
}

.alert-info {
    background: var(--accent-dim);
    border: 1px solid rgba(0, 168, 255, 0.2);
    color: var(--accent);
}

.alert-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.6;
    color: inherit;
    line-height: 1;
}

.alert-close:hover {
    opacity: 1;
}

/* ============================================
   Toast Notifications
   ============================================ */
.toast-container {
    position: fixed;
    top: calc(var(--nav-height) + 16px);
    right: 16px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
}

.toast {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    font-size: 0.9rem;
    animation: toastSlideIn 0.3s ease-out;
}

.toast.hiding {
    animation: toastSlideOut 0.3s ease-in forwards;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.toast-success {
    background: rgba(0, 217, 126, 0.15);
    border-color: rgba(0, 217, 126, 0.3);
}

.toast-success .toast-message {
    color: var(--success);
}

.toast-error {
    background: rgba(255, 71, 87, 0.15);
    border-color: rgba(255, 71, 87, 0.3);
}

.toast-error .toast-message {
    color: var(--danger);
}

.toast-warning {
    background: rgba(245, 166, 35, 0.15);
    border-color: rgba(245, 166, 35, 0.3);
}

.toast-warning .toast-message {
    color: var(--warning);
}

.toast-info {
    background: rgba(0, 168, 255, 0.15);
    border-color: rgba(0, 168, 255, 0.3);
}

.toast-info .toast-message {
    color: var(--accent);
}

.toast-message {
    flex: 1;
    font-weight: 500;
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.6;
    color: var(--text);
    line-height: 1;
    padding: 0;
    transition: opacity 0.15s;
}

.toast-close:hover {
    opacity: 1;
}

@media (max-width: 480px) {
    .toast-container {
        left: 16px;
        right: 16px;
        max-width: none;
    }
}

/* ============================================
   Badge
   ============================================ */
.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    background: var(--accent-dim);
    color: var(--accent);
}

.badge-success {
    background: rgba(0, 217, 126, 0.15);
    color: var(--success);
}

.badge-danger {
    background: rgba(255, 71, 87, 0.15);
    color: var(--danger);
}

.badge-warning {
    background: rgba(245, 166, 35, 0.15);
    color: var(--warning);
}

/* ============================================
   Footer
   ============================================ */
footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-left {
    color: var(--text-muted);
}

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

.footer-version {
    color: var(--text-dim);
}

.footer-separator {
    opacity: 0.5;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    opacity: 0.8;
    transition: opacity 0.15s;
}

.footer-brand:hover {
    opacity: 1;
}

.footer-brand .lonexlabs-logo {
    height: 22px;
    width: auto;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .footer-right {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ============================================
   Error Page
   ============================================ */
.error-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
}

.error-content {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.error-code {
    font-family: var(--font-display);
    font-size: 6rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 16px;
}

.error-content h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text);
}

.error-content p {
    color: var(--text-dim);
    margin-bottom: 28px;
    font-size: 1rem;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Utilities
   ============================================ */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.text-accent { color: var(--accent); }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.d-flex { display: flex; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.gap-2 { gap: 16px; }

/* ============================================
   Scrollbar
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3a3a3a;
}

/* ============================================
   Selection
   ============================================ */
::selection {
    background: var(--accent);
    color: #000;
}

/* ============================================
   Changelog Page
   ============================================ */
.changelog-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.changelog-entry {
    display: flex;
    gap: 24px;
    position: relative;
    padding-bottom: 48px;
}

.changelog-entry:last-child {
    padding-bottom: 0;
}

.changelog-entry:last-child .marker-line {
    display: none;
}

.changelog-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 20px;
}

.marker-dot {
    width: 16px;
    height: 16px;
    background: var(--bg-card);
    border: 3px solid var(--border);
    border-radius: 50%;
    z-index: 1;
    transition: all 0.3s;
}

.changelog-entry.latest .marker-dot {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-dim);
}

.marker-line {
    width: 2px;
    flex: 1;
    background: var(--border);
    margin-top: 8px;
}

.changelog-content {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s;
}

.changelog-entry.latest .changelog-content {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent-dim);
}

.changelog-header {
    padding: 24px 24px 20px;
    border-bottom: 1px solid var(--border);
}

.changelog-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.version-tag {
    background: linear-gradient(135deg, var(--accent), #0084c7);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-display);
}

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

.latest-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.changelog-header h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: var(--text);
}

.changelog-image {
    border-bottom: 1px solid var(--border);
}

.changelog-image img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
}

.changelog-changes {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.change-section {
    background: var(--bg-dark);
    border-radius: var(--radius);
    padding: 20px;
    border-left: 4px solid;
}

.change-section.added {
    border-left-color: #10b981;
}

.change-section.fixed {
    border-left-color: #3b82f6;
}

.change-section.removed {
    border-left-color: #ef4444;
}

.change-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.change-section.added .change-header {
    color: #10b981;
}

.change-section.fixed .change-header {
    color: #3b82f6;
}

.change-section.removed .change-header {
    color: #ef4444;
}

.change-header h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.change-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.change-section li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--text-dim);
    line-height: 1.5;
}

.change-section li:last-child {
    margin-bottom: 0;
}

.change-section li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.change-section.added li::before {
    background: #10b981;
}

.change-section.fixed li::before {
    background: #3b82f6;
}

.change-section.removed li::before {
    background: #ef4444;
}

@media (max-width: 640px) {
    .changelog-entry {
        gap: 16px;
    }
    
    .changelog-marker {
        width: 14px;
    }
    
    .marker-dot {
        width: 12px;
        height: 12px;
        border-width: 2px;
    }
    
    .changelog-header {
        padding: 20px;
    }
    
    .changelog-header h2 {
        font-size: 1.25rem;
    }
    
    .changelog-changes {
        padding: 20px;
    }
    
    .change-section {
        padding: 16px;
    }
}

/* ============================================
   Applications Page
   ============================================ */
.applications-login-prompt {
    display: flex;
    justify-content: center;
    padding: 60px 0;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
    max-width: 400px;
}

.login-icon {
    color: var(--accent);
    margin-bottom: 20px;
}

.login-card h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin: 0 0 12px 0;
}

.login-card p {
    color: var(--text-dim);
    margin-bottom: 24px;
}

.application-success {
    display: flex;
    justify-content: center;
    padding: 60px 0;
}

.success-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
    max-width: 500px;
}

.success-icon {
    color: #10b981;
    margin-bottom: 20px;
}

.success-card h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin: 0 0 12px 0;
}

.success-card p {
    color: var(--text-dim);
    margin-bottom: 24px;
}

.success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.applications-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
}

.applications-forms h2,
.applications-history h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin: 0 0 20px 0;
}

.forms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: all 0.2s;
}

.form-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.form-card.has-pending {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.05);
}

.form-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.form-card-header h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.status-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.status-badge.status-approved {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.status-badge.status-denied {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.form-card-desc {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 16px 0;
    flex: 1;
}

.form-card-footer {
    display: flex;
    justify-content: flex-end;
}

.form-card-footer .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.applications-history {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg-dark);
    border-radius: var(--radius);
}

.history-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.history-info strong {
    font-size: 0.9rem;
}

.history-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Application Form */
.application-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.form-back {
    margin-bottom: 20px;
}

.form-back .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.application-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative;
}

.application-form-card > .alert {
    margin: 24px 32px 0 32px;
}

.form-header {
    padding: 32px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-dark);
    position: relative;
}

.form-header h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin: 0 0 12px 0;
}

.form-description {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.6;
}

.form-description p:last-child {
    margin-bottom: 0;
}

.application-form {
    padding: 32px;
    position: relative;
    pointer-events: auto;
}

.application-form .form-group {
    margin-bottom: 24px;
    position: relative;
    pointer-events: auto;
}

.application-form .form-control {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.15s, box-shadow 0.15s;
    -webkit-appearance: none;
    appearance: none;
}

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

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

.application-form select.form-control {
    cursor: pointer;
}

.application-form .form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.application-form .form-label .required {
    color: #ef4444;
}

.checkbox-group,
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-label,
.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px 12px;
    background: var(--bg-dark);
    border-radius: var(--radius);
    transition: background 0.2s;
}

.checkbox-label:hover,
.radio-label:hover {
    background: var(--bg-input);
}

.checkbox-label input,
.radio-label input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.application-form .form-actions {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.application-form .form-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 900px) {
    .applications-layout {
        grid-template-columns: 1fr;
    }
    
    .applications-history {
        order: -1;
    }
}

@media (max-width: 640px) {
    .login-card,
    .success-card {
        padding: 32px 24px;
    }
    
    .success-actions {
        flex-direction: column;
    }
    
    .form-header,
    .application-form {
        padding: 24px;
    }
}

/* ============================================
   Custom Pages
   ============================================ */

.custom-page-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.custom-page-content h1,
.custom-page-content h2,
.custom-page-content h3,
.custom-page-content h4,
.custom-page-content h5,
.custom-page-content h6 {
    color: var(--text);
    margin-bottom: 16px;
}

.custom-page-content h1 { font-size: 2rem; }
.custom-page-content h2 { font-size: 1.5rem; }
.custom-page-content h3 { font-size: 1.25rem; }

.custom-page-content p {
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 16px;
}

.custom-page-content a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

.custom-page-content a:hover {
    color: var(--text);
}

.custom-page-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.custom-page-content ul,
.custom-page-content ol {
    color: var(--text-dim);
    padding-left: 24px;
    margin-bottom: 16px;
}

.custom-page-content li {
    margin-bottom: 8px;
}

.custom-page-content code {
    background: var(--bg-dark);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9em;
}

.custom-page-content pre {
    background: var(--bg-dark);
    padding: 20px;
    border-radius: var(--radius);
    overflow-x: auto;
    margin-bottom: 16px;
}

.custom-page-content pre code {
    background: transparent;
    padding: 0;
}

.custom-page-content blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 20px;
    margin: 20px 0;
    color: var(--text-dim);
    font-style: italic;
}

.custom-page-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 30px 0;
}

.custom-page-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.custom-page-content th,
.custom-page-content td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.custom-page-content th {
    background: var(--bg-dark);
    color: var(--text);
    font-weight: 600;
}

.custom-page-full-width {
    width: 100%;
}

.page-subtitle {
    color: var(--text-dim);
    font-size: 1.1rem;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .custom-page-content {
        padding: 24px;
    }
}
