/* USEC Sentinel - Futuristic Corporate Interface */

/* CSS Variables for USEC Theme */
:root {
    /* USEC Corporate Colors */
    --usec-primary: #cc3333;
    --usec-secondary: #991111;
    --usec-accent: #c0c0c0;
    --usec-warning: #ff6666;
    --usec-success: #999999;
    --usec-error: #ff0000;
    
    /* Corporate Dark Theme */
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-tertiary: #1a1a25;
    --bg-accent: #222235;
    --bg-glass: rgba(204, 51, 51, 0.08);
    --bg-glow: rgba(204, 51, 51, 0.15);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #b8c5d6;
    --text-muted: #8892a3;
    --text-accent: var(--usec-primary);
    
    /* Borders & Shadows */
    --border-primary: rgba(204, 51, 51, 0.4);
    --border-secondary: rgba(192, 192, 192, 0.2);
    --shadow-glow: 0 0 20px rgba(204, 51, 51, 0.4);
    --shadow-deep: 0 8px 32px rgba(0, 0, 0, 0.6);
    
    /* Animations */
    --animation-speed: 0.3s;
    --glow-animation: glow 2s ease-in-out infinite alternate;
    
    /* Typography */
    --font-primary: 'Courier New', 'Consolas', 'Monaco', monospace;
    --font-mono: 'Courier New', 'Consolas', 'Monaco', monospace;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
}

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

html, body {
    height: 100%;
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(204, 51, 51, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(192, 192, 192, 0.15) 0%, transparent 50%),
        linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    background-attachment: fixed;
    position: relative;
}

/* Terminal scan lines effect */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(204, 51, 51, 0.03) 0px,
        transparent 1px,
        transparent 2px,
        rgba(204, 51, 51, 0.03) 3px
    );
    pointer-events: none;
    z-index: 9999;
    animation: scanline 8s linear infinite;
}

@keyframes scanline {
    0% { transform: translateY(0); }
    100% { transform: translateY(10px); }
}

/* Animated Background Particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 10% 20%, rgba(204, 51, 51, 0.4), transparent),
        radial-gradient(1px 1px at 30% 50%, rgba(192, 192, 192, 0.4), transparent),
        radial-gradient(1px 1px at 50% 80%, rgba(204, 51, 51, 0.3), transparent),
        radial-gradient(1px 1px at 70% 30%, rgba(192, 192, 192, 0.3), transparent),
        radial-gradient(1px 1px at 90% 60%, rgba(204, 51, 51, 0.4), transparent);
    background-size: 200px 200px;
    animation: starfield 60s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes starfield {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-200px, -200px); }
}

/* Glow Effects */
@keyframes glow {
    from { box-shadow: 0 0 10px rgba(204, 51, 51, 0.3); }
    to { box-shadow: 0 0 20px rgba(204, 51, 51, 0.6); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    41%, 42.9% { opacity: 0.8; }
    43%, 44.9% { opacity: 1; }
    45%, 46.9% { opacity: 0.9; }
}

@keyframes slideInFromTop {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: linear-gradient(135deg, rgba(5, 5, 10, 0.98) 0%, rgba(0, 0, 5, 0.99) 100%);
    border-bottom: 1px solid var(--usec-primary);
    box-shadow: 0 4px 30px rgba(204, 51, 51, 0.2), inset 0 1px 0 rgba(204, 51, 51, 0.2);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 65px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-logo {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    filter: drop-shadow(0 0 15px var(--usec-primary));
    transition: filter 0.3s ease;
}

.nav-logo:hover {
    filter: drop-shadow(0 0 25px var(--usec-primary)) brightness(1.2);
}

.nav-brand h1 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 0 20px var(--usec-primary), 0 0 40px var(--usec-primary);
    letter-spacing: 4px;
    margin: 0;
    font-family: var(--font-mono);
    animation: flicker 8s infinite;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(204, 51, 51, 0.05);
    border: 1px solid rgba(204, 51, 51, 0.2);
    border-radius: 8px;
    position: relative;
}

.nav-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, transparent, var(--usec-primary), transparent);
    border-radius: 8px 0 0 8px;
}

.nav-section-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 1px;
    padding-right: 0.5rem;
    border-right: 1px solid rgba(204, 51, 51, 0.3);
    margin-right: 0.25rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    white-space: nowrap;
    border: 1px solid transparent;
    letter-spacing: 0.5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--usec-primary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--usec-primary);
    background: rgba(204, 51, 51, 0.15);
    border-color: var(--usec-primary);
    transform: translateY(-1px);
}

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

.nav-link.active {
    color: var(--usec-primary);
    background: rgba(204, 51, 51, 0.2);
    border-color: var(--usec-primary);
    box-shadow: 0 0 15px rgba(204, 51, 51, 0.3), inset 0 0 15px rgba(204, 51, 51, 0.1);
}

.nav-link.active::after {
    width: 80%;
}

.nav-status-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 0.4rem 0.75rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #666;
    box-shadow: 0 0 6px #666;
    transition: all 0.3s ease;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--usec-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    transform: scale(1.1);
}

.nav-status {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-glass);
    border: 1px solid var(--border-secondary);
    border-radius: 20px;
}

.status-indicator {
    font-size: 1.2rem;
    animation: var(--glow-animation);
}

.status-indicator.online { color: var(--usec-success); }
.status-indicator.offline { color: var(--usec-error); }
.status-indicator.connecting { color: var(--usec-warning); }

/* User Section */
.nav-user {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.user-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-glass);
    border: 1px solid var(--border-secondary);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--animation-speed) ease;
}

.user-info:hover {
    background: var(--bg-glow);
    border-color: var(--usec-primary);
    transform: translateY(-2px);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--usec-primary);
}

.user-name {
    font-weight: 500;
}

.user-role {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Main Content */
.main-content {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
    padding: var(--spacing-xxl) var(--spacing-lg);
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Content Header */
.content-header {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
}

.content-header h1 {
    font-size: 2.5rem;
    color: var(--usec-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--spacing-md);
    font-family: var(--font-mono);
}

.content-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Card Styles */
.card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    padding: var(--spacing-xl);
    position: relative;
    overflow: hidden;
    margin-bottom: var(--spacing-xl);
}

.card-elevated {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--usec-primary), transparent);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(204, 51, 51, 0.2);
}

.card-header h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-mono);
}

/* Hero Section */
.hero-section {
    padding: var(--spacing-xxl) 0;
    text-align: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--usec-primary), transparent);
    box-shadow: var(--shadow-glow);
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(135deg, var(--usec-primary), var(--usec-secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
    animation: fadeIn 1s ease-out 0.3s both;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 4px;
    position: relative;
}

.hero-content h2::after {
    content: '_';
    animation: blink 1s infinite;
    color: var(--usec-primary);
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xxl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    animation: fadeIn 1s ease-out 0.5s both;
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xxl);
}

.stat-card {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-primary);
    border-radius: 4px;
    padding: var(--spacing-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all var(--animation-speed) ease;
    animation: fadeIn 1s ease-out calc(0.7s + var(--i, 0) * 0.1s) both;
    font-family: var(--font-mono);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(204, 51, 51, 0.15), transparent);
    transition: left 0.6s ease;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--usec-primary);
    box-shadow: inset 0 0 20px rgba(204, 51, 51, 0.1), 0 0 20px rgba(204, 51, 51, 0.3);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--usec-primary);
    text-shadow: 0 0 15px var(--usec-primary), 0 0 30px var(--usec-primary);
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-mono);
    animation: pulse 3s ease-in-out infinite;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xxl);
}

/* Allow certain cards to intentionally span full grid width */
.dashboard-card.full-width {
    grid-column: 1 / -1;
}

.dashboard-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-primary);
    border-radius: 4px;
    padding: var(--spacing-xl);
    position: relative;
    overflow: hidden;
    transition: all var(--animation-speed) ease;
    animation: fadeIn 1s ease-out calc(0.9s + var(--i, 0) * 0.1s) both;
    box-shadow: inset 0 0 20px rgba(204, 51, 51, 0.05), 0 0 10px rgba(0, 0, 0, 0.5);
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--usec-primary), transparent);
    border-radius: 4px 4px 0 0;
    box-shadow: 0 0 10px var(--usec-primary);
}

.dashboard-card:hover {
    transform: translateY(-3px);
    border-color: var(--usec-primary);
    box-shadow: inset 0 0 30px rgba(204, 51, 51, 0.1), 0 0 20px rgba(204, 51, 51, 0.3);
}

/* Feature Tiles */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.feature-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: var(--spacing-md) var(--spacing-md) calc(var(--spacing-md) + 4px);
    background: var(--bg-secondary);
    border: 1px solid var(--border-secondary);
    border-radius: 10px;
    min-height: 110px;
    overflow: hidden;
    transition: border-color var(--animation-speed) ease, background var(--animation-speed) ease, transform var(--animation-speed) ease;
}

.feature-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(0,212,255,0.12), transparent 60%);
    opacity: 0;
    transition: opacity var(--animation-speed) ease;
    pointer-events: none;
}

.feature-item:hover {
    border-color: var(--usec-primary);
    background: var(--bg-tertiary);
    transform: translateY(-3px);
}

.feature-item:hover::before { opacity: 1; }

.feature-icon {
    font-size: 1.4rem;
    line-height: 1;
    filter: drop-shadow(0 0 6px var(--usec-primary));
}

.feature-name {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.feature-status {
    margin-top: auto;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-secondary);
    color: var(--text-muted);
    backdrop-filter: blur(6px);
}

.feature-status.enabled {
    background: rgba(0,212,255,0.15);
    border-color: rgba(0,212,255,0.4);
    color: var(--usec-primary);
    box-shadow: 0 0 8px rgba(0,212,255,0.4);
}

.feature-status.disabled {
    background: rgba(255,68,68,0.15);
    border-color: rgba(255,68,68,0.4);
    color: var(--usec-error);
}

@media (max-width: 600px) {
  .features-grid { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
  .feature-item { min-height: 95px; }
}

/* About / Information Card */
.about-card .about-content {
    display: grid;
    grid-template-columns: minmax(250px, 1fr) minmax(250px, 1fr);
    gap: var(--spacing-xl);
    margin-top: var(--spacing-md);
}

/* Constrain long paragraphs for readability */
.about-card .about-lead {
    max-width: 65ch;
}

@media (max-width: 900px) { .about-card .about-content { grid-template-columns: 1fr; } }

.about-lead {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.about-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.about-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-secondary);
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.4;
    position: relative;
}

/* Improve contrast & hover feedback for feature list items */
.about-features li:hover {
    border-color: var(--usec-primary);
    background: var(--bg-tertiary);
}

/* Focus styles for accessibility if list items become interactive later */
.about-features li:focus-within {
    outline: 2px solid var(--usec-primary);
    outline-offset: 2px;
}

/* Heading refinement */
.dashboard-card > h3 {
    margin-top: 0;
    margin-bottom: var(--spacing-lg);
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Optional subtle gradient background for full-width informational cards */
.dashboard-card.full-width.about-card {
    background: linear-gradient(145deg, rgba(0,212,255,0.05), rgba(0,0,0,0.2)), var(--bg-glass);
}

/* Adjust guild overview internal grid spacing */
#guilds-container {
    display: grid;
    gap: var(--spacing-lg);
}

/* Guild Cards */
.guild-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-secondary);
    border-radius: 10px;
    padding: var(--spacing-md);
    transition: all var(--animation-speed) ease;
}

.guild-card:hover {
    border-color: var(--usec-primary);
    background: var(--bg-tertiary);
    transform: translateY(-2px);
}

.guild-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.guild-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--border-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--usec-primary);
    background: var(--bg-accent);
    flex-shrink: 0;
}

.guild-icon img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.guild-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.guild-id {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.guild-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-secondary);
}

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

.guild-stat-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--usec-primary);
    font-family: var(--font-mono);
}

.guild-stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Guild Overview Actions */
.guild-actions {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-secondary);
    text-align: center;
}

/* Reduce excessive vertical spacing on smaller screens */
@media (max-width: 900px) {
  .about-card .about-lead { max-width: 100%; }
}

.badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--usec-primary), var(--usec-secondary));
    color: var(--bg-primary);
    box-shadow: 0 0 10px rgba(0,212,255,0.4);
    white-space: nowrap;
    flex-shrink: 0;
}

.badge.alt { background: linear-gradient(135deg, var(--usec-accent), var(--usec-warning)); box-shadow: 0 0 10px rgba(255,102,0,0.4); }
.badge.sec { background: linear-gradient(135deg, var(--usec-success), #00aa66); box-shadow: 0 0 10px rgba(0,255,136,0.4); }

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

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-icon {
    width: 24px;
    height: 24px;
    color: var(--usec-primary);
    filter: drop-shadow(0 0 5px var(--usec-primary));
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--animation-speed) ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--usec-primary), var(--usec-secondary));
    color: var(--bg-primary);
    border: 1px solid var(--usec-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}

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

.btn-secondary:hover {
    background: var(--bg-accent);
    border-color: var(--usec-primary);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, var(--usec-error), #cc3333);
    color: white;
    border: 1px solid var(--usec-error);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 68, 68, 0.4);
}

/* Login Section */
.login-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 70px);
    padding: var(--spacing-xxl);
}

.login-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    padding: var(--spacing-xxl);
    text-align: center;
    max-width: 400px;
    width: 100%;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--usec-primary), var(--usec-accent));
    border-radius: 16px 16px 0 0;
}

.login-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-lg);
    border-radius: 12px;
    filter: drop-shadow(0 0 20px var(--usec-primary));
}

.login-title {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--usec-primary);
    text-shadow: 0 0 15px var(--usec-primary);
}

.login-subtitle {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xxl);
    line-height: 1.5;
}

.discord-login-btn {
    background: linear-gradient(135deg, #5865f2, #404eed);
    color: white;
    border: none;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--animation-speed) ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    text-decoration: none;
}

.discord-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(88, 101, 242, 0.4);
}

/* Activity Feed */
.activity-feed {
    max-height: 400px;
    overflow-y: auto;
    padding-right: var(--spacing-sm);
}

.activity-feed::-webkit-scrollbar {
    width: 6px;
}

.activity-feed::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.activity-feed::-webkit-scrollbar-thumb {
    background: var(--usec-primary);
    border-radius: 3px;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    background: var(--bg-secondary);
    border: 1px solid var(--border-secondary);
    border-radius: 8px;
    transition: all var(--animation-speed) ease;
}

.activity-item:hover {
    background: var(--bg-accent);
    border-color: var(--border-primary);
    transform: translateX(5px);
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--usec-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--spacing-md);
    color: var(--bg-primary);
    font-weight: 600;
}

.activity-content {
    flex: 1;
}

.activity-text {
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

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

/* Forms */
.form-group {
    margin-bottom: var(--spacing-lg);
    text-align: left;
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
    font-weight: 500;
}

.form-input,
.form-select {
    width: 100%;
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-secondary);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--animation-speed) ease;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--usec-primary);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

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

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    margin-top: var(--spacing-lg);
}

.data-table th,
.data-table td {
    padding: var(--spacing-md);
    text-align: left;
    border-bottom: 1px solid var(--border-secondary);
}

.data-table th {
    background: var(--bg-accent);
    color: var(--usec-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.data-table tbody tr {
    transition: all var(--animation-speed) ease;
}

.data-table tbody tr:hover {
    background: var(--bg-glass);
}

.data-table .user-cell {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.data-table .user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-secondary);
}

.data-table .role-badge {
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-badge.admin {
    background: rgba(255, 102, 0, 0.2);
    color: var(--usec-accent);
    border: 1px solid var(--usec-accent);
}

.role-badge.moderator {
    background: rgba(0, 212, 255, 0.2);
    color: var(--usec-primary);
    border: 1px solid var(--usec-primary);
}

.role-badge.member {
    background: rgba(0, 255, 136, 0.2);
    color: var(--usec-success);
    border: 1px solid var(--usec-success);
}

/* Admin Panel Specific */
.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border-primary);
}

.admin-title {
    font-size: 2.5rem;
    color: var(--usec-primary);
    text-shadow: 0 0 15px var(--usec-primary);
}

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

.admin-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: var(--spacing-lg);
    position: relative;
    overflow: hidden;
}

.admin-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--usec-primary);
    border-radius: 12px 12px 0 0;
}

.admin-card h3 {
    color: var(--usec-primary);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
}

.admin-card .number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

/* Filters */
.filters-section {
    background: var(--bg-glass);
    border: 1px solid var(--border-secondary);
    border-radius: 12px;
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.filters-title {
    color: var(--usec-primary);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-lg);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.pagination-btn {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-glass);
    border: 1px solid var(--border-secondary);
    border-radius: 6px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--animation-speed) ease;
}

.pagination-btn:hover,
.pagination-btn.active {
    background: var(--usec-primary);
    color: var(--bg-primary);
    border-color: var(--usec-primary);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* EVE Frontier News Styles */
.news-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.news-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--spacing-md);
    align-items: center;
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-secondary);
    border-radius: 8px;
    transition: all var(--animation-speed) ease;
}

.news-item:hover {
    border-color: var(--usec-primary);
    background: var(--bg-tertiary);
    transform: translateX(4px);
}

.news-category {
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--bg-primary);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.news-content {
    flex: 1;
    min-width: 0;
}

.news-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.news-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--animation-speed) ease;
}

.news-title a:hover {
    color: var(--usec-primary);
}

.news-link {
    display: flex;
    align-items: center;
}

.btn-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--border-secondary);
    border-radius: 6px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all var(--animation-speed) ease;
}

.btn-icon:hover {
    background: var(--usec-primary);
    border-color: var(--usec-primary);
    color: var(--bg-primary);
    transform: translateX(2px);
}

.news-footer {
    margin-top: var(--spacing-md);
    text-align: center;
}

/* News Ticker */
.news-ticker {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 10px 16px;
    background: linear-gradient(90deg, rgba(31, 41, 90, 0.8), rgba(21, 25, 45, 0.9));
    border-bottom: 1px solid var(--border-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
}

.news-ticker-label {
    font-weight: 700;
    color: var(--usec-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.news-ticker-window {
    flex: 1;
    overflow: hidden;
}

.news-ticker-track {
    display: flex;
    gap: 20px;
    align-items: center;
    white-space: nowrap;
    animation: ticker-scroll 40s linear infinite;
}

.news-ticker:hover .news-ticker-track {
    animation-play-state: paused;
}

.news-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--bg-glass);
    border: 1px solid var(--border-secondary);
    border-radius: 999px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--animation-speed) ease;
}

.news-ticker-item:hover {
    border-color: var(--usec-primary);
    color: var(--usec-primary);
}

.news-ticker-category {
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-secondary);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-ticker-title {
    font-weight: 600;
    color: var(--text-primary);
}

.news-ticker-link {
    color: var(--usec-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.news-ticker-link:hover {
    text-decoration: underline;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* EVE Frontier News Floating Box */
.news-floating {
    position: fixed;
    right: 20px;
    top: 120px;
    width: 320px;
    max-height: 500px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: var(--spacing-md);
    z-index: 901;
    box-shadow: var(--shadow-deep);
    backdrop-filter: blur(10px);
    transition: all var(--animation-speed) ease;
    display: flex;
    flex-direction: column;
}

.news-floating:hover {
    border-color: var(--usec-primary);
    box-shadow: 0 0 20px rgba(204, 51, 51, 0.3);
}

.floating-box-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-secondary);
}

.floating-box-header h4 {
    margin: 0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.news-icon {
    font-size: 1.2rem;
}

.news-container-floating {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    margin-bottom: var(--spacing-md);
}

.news-container-floating::-webkit-scrollbar {
    width: 6px;
}

.news-container-floating::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-radius: 3px;
}

.news-container-floating::-webkit-scrollbar-thumb {
    background: var(--border-primary);
    border-radius: 3px;
}

.news-container-floating::-webkit-scrollbar-thumb:hover {
    background: var(--usec-primary);
}

.news-item-compact {
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    background: var(--bg-glass);
    border: 1px solid transparent;
    border-radius: 6px;
    transition: all var(--animation-speed) ease;
}

.news-item-compact:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-secondary);
    transform: translateX(2px);
}

.news-item-compact .news-category {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--bg-primary);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.news-item-compact .news-title {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
}

.news-item-compact .news-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--animation-speed) ease;
}

.news-item-compact .news-title a:hover {
    color: var(--usec-primary);
}

.floating-box-footer {
    text-align: center;
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--border-secondary);
}

.btn-link-small {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color var(--animation-speed) ease;
}

.btn-link-small:hover {
    color: var(--usec-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 var(--spacing-md);
        height: 60px;
    }
    
    .nav-brand h1 {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }

    .nav-logo {
        width: 36px;
        height: 36px;
    }
    
    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(5, 5, 10, 0.98);
        flex-direction: column;
        gap: 0.5rem;
        padding: var(--spacing-md);
        border-bottom: 1px solid var(--usec-primary);
        box-shadow: 0 4px 30px rgba(204, 51, 51, 0.3);
        display: none;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-section {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0;
        background: rgba(204, 51, 51, 0.08);
    }

    .nav-section::before {
        display: none;
    }

    .nav-section-label {
        padding: 0.75rem;
        border-right: none;
        border-bottom: 1px solid rgba(204, 51, 51, 0.3);
        text-align: center;
        background: rgba(204, 51, 51, 0.15);
    }

    .nav-link {
        display: block;
        width: 100%;
        padding: 0.75rem;
        text-align: center;
        border-radius: 0;
    }

    .nav-status-inline {
        justify-content: center;
        padding: 0.75rem;
    }

    .nav-user {
        display: none;
    }

    .mobile-menu-toggle {
        display: block !important;
        background: none;
        border: 2px solid var(--usec-primary);
        color: var(--usec-primary);
        padding: 8px 12px;
        border-radius: 6px;
        cursor: pointer;
        font-size: 1.2rem;
        transition: all 0.3s ease;
    }

    .mobile-menu-toggle:hover {
        background: rgba(204, 51, 51, 0.2);
    }

    /* Hide floating boxes on mobile */
    .news-floating {
        display: none !important;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 0.95rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
    }

    /* Dashboard cards */
    .dashboard-card {
        padding: var(--spacing-lg);
    }

    .dashboard-card h3 {
        font-size: 1.1rem;
    }

    /* Activity items */
    .activity-item {
        padding: var(--spacing-md);
    }

    .activity-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }

    /* Tables */
    .admin-table {
        font-size: 0.85rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 10px 8px;
    }

    /* Buttons */
    .btn,
    .btn-primary,
    .btn-secondary {
        font-size: 0.9rem;
        padding: 10px 20px;
    }

    /* Input fields */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    select,
    textarea {
        font-size: 16px !important; /* Prevents iOS zoom */
    }

    /* News items */
    .news-item {
        padding: var(--spacing-md);
    }

    .news-item h4 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .nav-brand h1 {
        font-size: 0.95rem;
        letter-spacing: 1px;
    }

    .nav-logo {
        width: 32px;
        height: 32px;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: var(--spacing-lg);
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }
    
    .dashboard-card {
        padding: var(--spacing-md);
    }
    
    .admin-stats {
        grid-template-columns: 1fr;
    }

    /* Activity details */
    .activity-details {
        font-size: 0.85rem;
    }

    /* Table scrolling on small screens */
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-table {
        min-width: 600px;
    }

    /* Modal adjustments */
    .modal-content {
        width: 95%;
        margin: var(--spacing-sm);
        padding: var(--spacing-lg);
    }
}

/* Loading States */
.loading {
    position: relative;
    color: transparent !important;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-secondary);
    border-top: 2px solid var(--usec-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Special Effects */
.holographic {
    background: linear-gradient(
        45deg,
        transparent 30%, 
        rgba(0, 212, 255, 0.1) 50%, 
        transparent 70%
    );
    background-size: 200% 200%;
    animation: holographicShift 3s ease-in-out infinite;
}

@keyframes holographicShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Notifications */
.notification {
    position: fixed;
    top: 90px;
    right: var(--spacing-lg);
    background: var(--bg-glass);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    padding: var(--spacing-lg);
    max-width: 300px;
    z-index: 1001;
    backdrop-filter: blur(20px);
    animation: slideInFromRight 0.3s ease-out;
}

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

.notification.success {
    border-color: var(--usec-success);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.notification.error {
    border-color: var(--usec-error);
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.3);
}

/* Footer */
.main-footer {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
    border-top: 1px solid var(--border-primary);
    margin-top: var(--spacing-xxl);
    padding: var(--spacing-xxl) 0 0;
    font-family: var(--font-mono);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid var(--border-secondary);
}

.footer-section h4 {
    color: var(--usec-primary);
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

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

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color var(--animation-speed) ease;
    display: inline-block;
}

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

.footer-status {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--usec-primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px var(--usec-primary);
}

.footer-version {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.footer-bottom {
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: var(--spacing-xs) 0;
}

.footer-motto {
    color: var(--usec-primary);
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
}
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.hidden { display: none; }
.visible { display: block; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }

/* ============================================
   EVE Frontier Manual Styles
   ============================================ */

.manual-body {
    background: linear-gradient(135deg, #0a0e27 0%, #1a1a2e 100%);
}

.manual-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.manual-header {
    background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
    border-bottom: 3px solid #e94560;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
}

.manual-header h1 {
    color: #e94560;
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.manual-header .subtitle {
    color: #a0a0a0;
    font-size: 1.1em;
    margin-top: 10px;
}

.manual-header .meta-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.manual-header .meta-info span {
    color: #5bc0de;
}

.manual-nav {
    background: #16213e;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.manual-nav h2 {
    color: #e94560;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.manual-nav ul {
    list-style: none;
    columns: 2;
    column-gap: 30px;
}

.manual-nav li {
    margin-bottom: 8px;
}

.manual-nav a {
    color: #5bc0de;
    text-decoration: none;
    transition: color 0.3s;
}

.manual-nav a:hover {
    color: #e94560;
}

.manual-section {
    background: rgba(22, 33, 62, 0.6);
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 10px;
    border-left: 4px solid #e94560;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.manual-section h2 {
    color: #e94560;
    font-size: 2em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0f3460;
}

.manual-section h3 {
    color: #5bc0de;
    font-size: 1.5em;
    margin: 25px 0 15px 0;
}

.manual-section h4 {
    color: #5bc0de;
    font-size: 1.2em;
    margin: 20px 0 10px 0;
}

.manual-section p {
    margin-bottom: 15px;
    text-align: justify;
}

.manual-section ul,
.manual-section ol {
    margin-left: 30px;
    margin-bottom: 15px;
}

.manual-section li {
    margin-bottom: 8px;
}

.manual-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: rgba(15, 52, 96, 0.3);
}

.manual-section th {
    background: #0f3460;
    color: #e94560;
    padding: 12px;
    text-align: left;
    border: 1px solid #16213e;
}

.manual-section td {
    padding: 10px;
    border: 1px solid #16213e;
}

.manual-section tr:nth-child(even) {
    background: rgba(22, 33, 62, 0.3);
}

.manual-warning {
    background: rgba(233, 69, 96, 0.1);
    border-left: 4px solid #e94560;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
}

.manual-info {
    background: rgba(91, 192, 222, 0.1);
    border-left: 4px solid #5bc0de;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
}

.manual-tip {
    background: rgba(92, 184, 92, 0.1);
    border-left: 4px solid #5cb85c;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
}

.manual-section code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 3px;
    color: #5bc0de;
    font-family: 'Courier New', monospace;
}

.manual-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #e94560;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
    text-decoration: none;
    font-size: 24px;
}

.manual-back-to-top:hover {
    background: #d63447;
    transform: translateY(-5px);
}

.manual-footer {
    text-align: center;
    padding: 30px;
    margin-top: 50px;
    border-top: 2px solid #16213e;
    color: #a0a0a0;
}

@media (max-width: 768px) {
    .manual-container {
        display: block;
        padding: var(--spacing-md);
    }

    .manual-nav {
        position: static;
        width: 100%;
        max-height: none;
        margin-bottom: var(--spacing-lg);
        border-right: none;
        border-bottom: 2px solid #16213e;
        padding-bottom: var(--spacing-lg);
    }

    .manual-nav ul {
        columns: 1;
    }

    .manual-header h1 {
        font-size: 1.8em;
    }

    .manual-header .meta-info {
        flex-direction: column;
        gap: 10px;
    }

    .manual-section {
        padding: 20px;
        margin-left: 0;
    }

    .manual-section h2 {
        font-size: 1.5em;
    }

    .manual-section h3 {
        font-size: 1.2em;
    }

    .manual-back-to-top {
        width: 45px;
        height: 45px;
        font-size: 20px;
        bottom: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .manual-header h1 {
        font-size: 1.5em;
    }

    .manual-section {
        padding: 15px;
    }

    .manual-section h2 {
        font-size: 1.3em;
    }

    .manual-section h3 {
        font-size: 1.1em;
    }
}

/* ============================================
   Members Page Spacing
   ============================================ */
.members-page .members-container,
.members-page .container {
    margin-top: calc(var(--spacing-xxl) + 20px);
}

.members-page .member-card {
    margin-bottom: var(--spacing-md);
}

/* Ensure main content clears the fixed nav on members page */
.members-page .main-content {
    margin-top: 100px; /* nav is ~65px; add comfortable breathing room */
    padding-top: var(--spacing-xxl);
}

/* ============================================
   Base Building Guide Styles
   ============================================ */
.guide-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.guide-header {
    text-align: center;
    margin-bottom: 3rem;
}

.guide-section {
    margin-bottom: 3rem;
}

.guide-section h2 {
    color: #00d4ff;
    border-bottom: 2px solid #00d4ff;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.guide-section h3 {
    color: #4a9eff;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.guide-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: rgba(0, 0, 0, 0.3);
}

.guide-table th,
.guide-table td {
    padding: 0.75rem;
    border: 1px solid #333;
    text-align: left;
}

.guide-table th {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    font-weight: 600;
}

.guide-table tr:hover {
    background: rgba(0, 212, 255, 0.05);
}

.progression-list {
    list-style: none;
    padding: 0;
}

.progression-list li {
    padding: 1rem;
    margin: 0.5rem 0;
    background: rgba(0, 212, 255, 0.05);
    border-left: 4px solid #00d4ff;
}

.progression-list li strong {
    color: #00d4ff;
}

.tips-list {
    list-style: none;
    padding: 0;
}

.tips-list li {
    padding: 0.75rem;
    margin: 0.5rem 0;
    background: rgba(74, 158, 255, 0.1);
    border-radius: 4px;
}

.tips-list li::before {
    content: "💡 ";
    margin-right: 0.5rem;
}

.checklist {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.checklist h4 {
    color: #00d4ff;
    margin-bottom: 1rem;
}

.checklist ul {
    list-style: none;
    padding: 0;
}

.checklist li::before {
    content: "☐ ";
    color: #4a9eff;
    margin-right: 0.5rem;
}

/* Route Planner Styles */

.mode-toggle {
    display: flex;
    gap: 0.5rem;
}

.mode-btn {
    padding: 0.5rem 1rem;
    background: rgba(204, 51, 51, 0.2);
    border: 1px solid rgba(204, 51, 51, 0.4);
    color: var(--text-secondary);
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-mono);
    transition: all 0.3s ease;
}

.mode-btn:hover {
    background: rgba(204, 51, 51, 0.3);
    color: var(--text-primary);
}

.mode-btn.active {
    background: var(--usec-primary);
    color: white;
    border-color: var(--usec-primary);
    box-shadow: var(--shadow-glow);
}

.route-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-wrapper {
    position: relative;
}

.system-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
    border-radius: 4px;
    font-family: var(--font-mono);
    transition: all 0.2s ease;
}

.system-input:focus {
    outline: none;
    border-color: var(--usec-primary);
    background: rgba(204, 51, 51, 0.1);
    box-shadow: 0 0 10px rgba(204, 51, 51, 0.2);
}

.autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
    display: none;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.autocomplete-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(204, 51, 51, 0.1);
    transition: all 0.2s ease;
}

.autocomplete-item:hover {
    background: rgba(204, 51, 51, 0.2);
    padding-left: 1.5rem;
}

.autocomplete-item strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.25rem;
}

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

.system-info {
    display: flex;
    gap: 1rem;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.system-detail {
    display: flex;
    gap: 0.5rem;
}

.detail-label {
    color: var(--text-muted);
}

.detail-value {
    color: var(--usec-primary);
    font-weight: 500;
}

.slider-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.slider {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, var(--usec-secondary), var(--usec-primary));
    outline: none;
    border-radius: 3px;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--usec-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: all 0.2s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(204, 51, 51, 0.6);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--usec-primary);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-glow);
    transition: all 0.2s ease;
}

.slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(204, 51, 51, 0.6);
}

.number-input {
    width: 60px;
    padding: 0.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
    border-radius: 4px;
    font-family: var(--font-mono);
    text-align: center;
}

.info-icon {
    font-size: 0.8em;
    color: var(--text-muted);
    cursor: help;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

.btn-icon {
    margin-right: 0.5rem;
}

.route-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.stat-card {
    background: linear-gradient(135deg, rgba(204, 51, 51, 0.1), rgba(204, 51, 51, 0.05));
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--usec-primary);
    background: linear-gradient(135deg, rgba(204, 51, 51, 0.15), rgba(204, 51, 51, 0.1));
    box-shadow: 0 0 15px rgba(204, 51, 51, 0.2);
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--usec-primary);
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.route-path-container {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-secondary);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.route-path-container h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.route-path {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.route-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.step-number {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--usec-primary);
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
}

.step-system {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    min-width: 120px;
}

.step-system strong {
    color: var(--text-primary);
    display: block;
}

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

.step-arrow {
    color: var(--usec-primary);
    font-weight: bold;
    font-size: 1.2rem;
}

.regions-breakdown {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.region-card {
    background: rgba(204, 51, 51, 0.1);
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    padding: 1rem;
    text-align: center;
    transition: all 0.2s ease;
}

.region-card:hover {
    border-color: var(--usec-primary);
    background: rgba(204, 51, 51, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(204, 51, 51, 0.2);
}

.region-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.region-count {
    color: var(--usec-primary);
    font-size: 0.9rem;
    font-family: var(--font-mono);
}

.route-table-container {
    margin: 1.5rem 0;
}

.route-table-container h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.data-table thead {
    background: rgba(204, 51, 51, 0.15);
    border-bottom: 2px solid var(--border-primary);
}

.data-table th {
    padding: 1rem;
    text-align: left;
    color: var(--text-primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.data-table tbody tr {
    border-bottom: 1px solid rgba(204, 51, 51, 0.1);
    transition: all 0.2s ease;
}

.data-table tbody tr:hover {
    background: rgba(204, 51, 51, 0.1);
}

.data-table td {
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
}

.data-table td strong {
    color: var(--text-primary);
}

.data-table td small {
    color: var(--text-muted);
    display: block;
    font-size: 0.8rem;
}

.quick-routes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.quick-route-btn {
    background: linear-gradient(135deg, rgba(204, 51, 51, 0.1), rgba(204, 51, 51, 0.05));
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.quick-route-btn:hover {
    border-color: var(--usec-primary);
    background: linear-gradient(135deg, rgba(204, 51, 51, 0.2), rgba(204, 51, 51, 0.15));
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.route-name {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.route-meta {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.help-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.help-item {
    background: rgba(0, 0, 0, 0.3);
    border-left: 3px solid var(--usec-primary);
    border-radius: 4px;
    padding: 1rem;
}

.help-item h4 {
    color: var(--usec-primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.help-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

.result-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Loading Indicator */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.loading-spinner p {
    color: var(--text-primary);
    font-size: 1.1rem;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(204, 51, 51, 0.2);
    border-top-color: var(--usec-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .route-form {
        gap: 1rem;
    }

    .route-path {
        flex-direction: column;
        gap: 0.5rem;
    }

    .step-arrow {
        display: none;
    }

    .quick-routes {
        grid-template-columns: 1fr;
    }

    .help-content {
        grid-template-columns: 1fr;
    }

    .data-table {
        font-size: 0.9rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.5rem;
    }

    .mode-toggle {
        width: 100%;
    }

    .mode-btn {
        flex: 1;
    }
}