/* ===== GALAXYFORGE - DARK THEME DESIGN SYSTEM ===== */

/* Font Definitions - All Local */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('/assets/fonts/Inter-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Orbitron';
  font-style: normal;
  font-weight: 400;
  src: url('/assets/fonts/Orbitron-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Orbitron';
  font-style: normal;
  font-weight: 600;
  src: url('/assets/fonts/Orbitron-SemiBold.ttf') format('truetype');
}

@font-face {
  font-family: 'Orbitron';
  font-style: normal;
  font-weight: 700;
  src: url('/assets/fonts/Orbitron-Bold.ttf') format('truetype');
}

@font-face {
  font-family: 'Orbitron';
  font-style: normal;
  font-weight: 900;
  src: url('/assets/fonts/Orbitron-Black.ttf') format('truetype');
}

/* ===== DARK THEME COLOR SYSTEM ===== */
:root {
    /* Primary Colors */
    --primary-purple: #713dff;
    --primary-light: #887dff;
    --primary-dark: #5a2fd9;
    --primary-darker: #4a1f9e;
    
    /* Background Colors */
    --background-dark: #0a0118;
    --background-darker: #140B25;
    --background-card: #1e1b2e;
    --background-elevated: #2a1f3d;
    --background-hover: #3a2f4d;
    
    /* Text Colors */
    --text-white: #ffffff;
    --text-primary: #f8f9fa;
    --text-secondary: #d2d0dd;
    --text-muted: #9b96b0;
    --text-disabled: #6c757d;
    
    /* Border Colors */
    --border-light: rgba(255, 255, 255, 0.1);
    --border-medium: rgba(255, 255, 255, 0.15);
    --border-strong: rgba(255, 255, 255, 0.2);
    --border-purple: rgba(113, 61, 255, 0.3);
    --border-purple-light: rgba(113, 61, 255, 0.2);
    
    /* Glow Effects */
    --glow-purple: rgba(113, 61, 255, 0.2);
    --glow-purple-strong: rgba(113, 61, 255, 0.4);
    --glow-white: rgba(255, 255, 255, 0.1);
    
    /* Status Colors */
    --success: #28a745;
    --success-light: #34ce57;
    --warning: #ffc107;
    --warning-light: #ffca2c;
    --danger: #dc3545;
    --danger-light: #e74c3c;
    --info: #17a2b8;
    --info-light: #20c997;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5);
    --shadow-purple: 0 4px 12px rgba(113, 61, 255, 0.3);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 999px;
}

/* ===== GLOBAL STAR BACKGROUND ===== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="0.5" fill="white" opacity="0.8"/><circle cx="80" cy="40" r="0.3" fill="white" opacity="0.6"/><circle cx="40" cy="80" r="0.4" fill="white" opacity="0.7"/><circle cx="90" cy="10" r="0.2" fill="white" opacity="0.5"/><circle cx="10" cy="90" r="0.6" fill="white" opacity="0.9"/><circle cx="60" cy="30" r="0.3" fill="white" opacity="0.4"/><circle cx="30" cy="60" r="0.4" fill="white" opacity="0.6"/><circle cx="70" cy="70" r="0.2" fill="white" opacity="0.5"/><circle cx="15" cy="50" r="0.3" fill="white" opacity="0.7"/><circle cx="85" cy="25" r="0.4" fill="white" opacity="0.5"/><circle cx="45" cy="15" r="0.2" fill="white" opacity="0.6"/><circle cx="75" cy="85" r="0.3" fill="white" opacity="0.8"/><circle cx="25" cy="75" r="0.4" fill="white" opacity="0.4"/><circle cx="95" cy="60" r="0.2" fill="white" opacity="0.7"/><circle cx="5" cy="35" r="0.3" fill="white" opacity="0.5"/></svg>') repeat;
    animation: stars 30s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes stars {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-100px); }
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== GLOBAL LINK OVERRIDES ===== */
/* Override all Bootstrap link colors */
a {
    color: var(--text-secondary) !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-light) !important;
    text-decoration: none;
}

a:focus {
    color: var(--primary-light) !important;
    outline: 2px solid var(--primary-purple);
    outline-offset: 2px;
}

/* Specific link overrides */
.nav-link {
    color: var(--text-white) !important;
}

.nav-link:hover {
    color: var(--primary-light) !important;
}

.nav-link:focus {
    color: var(--primary-light) !important;
}

/* Footer links */
.footer-links a {
    color: var(--text-muted) !important;
}

.footer-links a:hover {
    color: var(--primary-light) !important;
}

/* Social links */
.social-link {
    color: var(--text-muted) !important;
}

.social-link:hover {
    color: var(--primary-light) !important;
}

/* Button links */
.btn-link {
    color: var(--primary-purple) !important;
}

.btn-link:hover {
    color: var(--primary-light) !important;
}

/* Card links */
.card a {
    color: var(--text-secondary) !important;
}

.card a:hover {
    color: var(--primary-light) !important;
}

/* Table links */
.table a {
    color: var(--text-secondary) !important;
}

.table a:hover {
    color: var(--primary-light) !important;
}

/* Alert links */
.alert a {
    color: var(--text-white) !important;
    text-decoration: underline;
}

.alert a:hover {
    color: var(--text-white) !important;
    text-decoration: none;
}

/* ===== BOOTSTRAP OVERRIDES ===== */

/* Table Styles */
.table {
    background-color: var(--background-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table thead th {
    background-color: var(--background-elevated);
    border-bottom: 2px solid var(--border-purple);
    color: var(--text-primary);
    font-weight: 600;
    padding: 1rem;
    text-align: left;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background-color: var(--background-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-purple);
}

.table tbody td {
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
    padding: 1rem;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(113, 61, 255, 0.05);
}

.table-striped tbody tr:nth-of-type(odd):hover {
    background-color: var(--background-hover);
}

/* Form Controls */
.form-control {
    background-color: var(--background-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control:focus {
    background-color: var(--background-elevated);
    border-color: var(--primary-purple);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px var(--glow-purple);
    outline: none;
}

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

.form-control:disabled {
    background-color: var(--background-darker);
    color: var(--text-disabled);
    cursor: not-allowed;
}

/* Form Select */
.form-select {
    background-color: var(--background-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    transition: all 0.3s ease;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

.form-select:focus {
    background-color: var(--background-elevated);
    border-color: var(--primary-purple);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px var(--glow-purple);
    outline: none;
}

/* Form Checkboxes and Radios */
.form-check-input {
    background-color: var(--background-card);
    border: 2px solid var(--border-light);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.form-check-input:checked {
    background-color: var(--primary-purple);
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px var(--glow-purple);
}

.form-check-input:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px var(--glow-purple);
}

.form-check-input[type="radio"] {
    border-radius: 50%;
}

.form-check-label {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Buttons */
.btn {
    border-radius: var(--radius-full);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-light) 100%);
    border-color: var(--primary-purple);
    color: var(--text-white);
    box-shadow: var(--shadow-purple);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-purple) 100%);
    border-color: var(--primary-dark);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(113, 61, 255, 0.4);
}

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

.btn-secondary:hover {
    background-color: var(--background-elevated);
    border-color: var(--border-medium);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-outline-primary {
    background-color: transparent;
    border-color: var(--primary-purple);
    color: var(--primary-purple);
}

.btn-outline-primary:hover {
    background-color: var(--primary-purple);
    border-color: var(--primary-purple);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-purple);
}

.btn-outline-light {
    background-color: transparent;
    border-color: var(--border-light);
    color: var(--text-secondary);
}

.btn-outline-light:hover {
    background-color: var(--background-elevated);
    border-color: var(--border-medium);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* Cards */
.card {
    background-color: var(--background-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-purple-light);
}

.card-header {
    background-color: var(--background-elevated);
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    font-weight: 600;
    padding: 1.25rem 1.5rem;
}

.card-body {
    color: var(--text-secondary);
    padding: 1.5rem;
}

.card-footer {
    background-color: var(--background-elevated);
    border-top: 1px solid var(--border-light);
    color: var(--text-secondary);
    padding: 1.25rem 1.5rem;
}

/* Alerts */
.alert {
    background-color: var(--background-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
}

.alert-primary {
    background-color: rgba(113, 61, 255, 0.1);
    border-color: var(--border-purple);
    color: var(--primary-light);
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    border-color: var(--success);
    color: var(--success-light);
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    border-color: var(--warning);
    color: var(--warning-light);
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: var(--danger);
    color: var(--danger-light);
}

.alert-info {
    background-color: rgba(23, 162, 184, 0.1);
    border-color: var(--info);
    color: var(--info-light);
}

/* Progress Bars */
.progress {
    background-color: var(--background-card);
    border-radius: var(--radius-full);
    height: 8px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-purple) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-full);
    transition: width 0.6s ease;
}

/* Dropdowns */
.dropdown-menu {
    background-color: var(--background-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
}

.dropdown-item {
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--background-hover);
    color: var(--text-primary);
}

.dropdown-item.active {
    background-color: var(--primary-purple);
    color: var(--text-white);
}

.dropdown-divider {
    border-top: 1px solid var(--border-light);
    margin: 0.5rem 0;
}

/* Pagination */
.pagination {
    gap: 0.25rem;
}

.page-link {
    background-color: var(--background-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.page-link:hover {
    background-color: var(--background-hover);
    border-color: var(--border-medium);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background-color: var(--primary-purple);
    border-color: var(--primary-purple);
    color: var(--text-white);
    box-shadow: var(--shadow-purple);
}

.page-item.disabled .page-link {
    background-color: var(--background-darker);
    border-color: var(--border-light);
    color: var(--text-disabled);
    cursor: not-allowed;
}

/* Navigation */
.navbar {
    background: rgba(10, 1, 24, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar-brand {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-white) !important;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
    display: block;
}

.navbar-nav .nav-link {
    color: var(--text-white) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    border-radius: var(--radius-full);
    padding: 0.5rem 1rem;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-light) !important;
    background-color: rgba(113, 61, 255, 0.1);
    transform: translateY(-2px);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Glowing Box Button */
.glowing-box-button {
    background: radial-gradient(107.5% 107.5% at 50% 215%, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0) 100%), rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    color: var(--text-white);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 24px;
    padding: 7px 24px;
    position: relative;
    transition: all 0.3s ease;
    z-index: 1;
    text-decoration: none;
    display: inline-block;
}

.glowing-box-button:hover {
    background: radial-gradient(107.5% 107.5% at 50% 215%, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 100%), rgba(255, 255, 255, 0.08);
    border-color: var(--primary-light);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(113, 61, 255, 0.3);
    text-decoration: none;
}

.glowing-box-button:after {
    background: radial-gradient(85% 120% at 50% 120%, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: var(--radius-full);
    content: "";
    height: calc(100% + 4px);
    left: -2px;
    opacity: 0;
    position: absolute;
    top: -2px;
    transition: 1s all;
    width: calc(100% + 4px);
    z-index: -1;
}

.glowing-box-button:hover:after {
    opacity: 0.7;
}

.glowing-box-button span {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 8.85%, #FFFFFF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 500;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: radial-gradient(ellipse at center, rgba(113, 61, 255, 0.1) 0%, transparent 70%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="0.8" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="90" r="0.3" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: twinkle 4s ease-in-out infinite;
    z-index: -1;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.hero-content h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-white) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Content Sections */
.content-section {
    padding: 5rem 0;
    position: relative;
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="20" r="0.3" fill="rgba(255,255,255,0.05)"/><circle cx="20" cy="90" r="0.4" fill="rgba(255,255,255,0.05)"/></svg>') repeat;
    z-index: -1;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-white) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Feature Cards */
.feature-card {
    background: radial-gradient(107.5% 107.5% at 50% 215%, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0) 100%), rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 0;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(113, 61, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

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

.feature-card-header {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-light);
    padding: 1.5rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.feature-card-header h3 {
    color: var(--text-white);
    font-weight: 600;
    margin: 0;
}

.feature-card-body {
    padding: 1.5rem;
    color: var(--text-secondary);
}

.feature-card-body h5 {
    color: var(--text-white);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card-body ul {
    list-style: none;
    padding-left: 0;
}

.feature-card-body ul li {
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.feature-card-body ul li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--primary-light);
    font-weight: bold;
}

/* Feature Icons */
.feature-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: radial-gradient(107.5% 107.5% at 50% 215%, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0) 100%), rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(113, 61, 255, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.feature-icon i {
    font-size: 2rem;
    color: var(--primary-light);
    z-index: 1;
    position: relative;
}

/* Homepage Feature Card Icons */
.feature-card .icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: radial-gradient(107.5% 107.5% at 50% 215%, rgba(113, 61, 255, 0.2) 0%, rgba(113, 61, 255, 0.05) 100%);
    border: 1px solid rgba(113, 61, 255, 0.3);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.feature-card .icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(113, 61, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover .icon::before {
    opacity: 1;
}

.feature-card .icon svg {
    width: 32px;
    height: 32px;
    color: var(--primary-purple);
    z-index: 1;
    position: relative;
    filter: drop-shadow(0 0 8px rgba(113, 61, 255, 0.5));
    transition: all 0.3s ease;
}

.feature-card:hover .icon svg {
    color: var(--primary-light);
    filter: drop-shadow(0 0 12px rgba(113, 61, 255, 0.8));
    transform: scale(1.1);
}

/* Footer */
.footer {
    background: var(--background-darker);
    border-top: 1px solid var(--border-light);
    padding: 3rem 0 1rem;
    margin-top: 5rem;
}

.footer h5 {
    color: var(--text-white);
    font-weight: 600;
    margin-bottom: 1rem;
}

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

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(113, 61, 255, 0.1);
    border-color: var(--primary-light);
    color: var(--primary-light);
    transform: translateY(-2px);
}

/* To Top Button */
.to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: radial-gradient(107.5% 107.5% at 50% 215%, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0) 100%), rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
}

.to-top.show {
    opacity: 1;
    visibility: visible;
}

.to-top:hover {
    background: radial-gradient(107.5% 107.5% at 50% 215%, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 100%), rgba(255, 255, 255, 0.08);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(113, 61, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .navbar-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .content-section {
        padding: 3rem 0;
    }
    
    .feature-card-header,
    .feature-card-body {
        padding: 1rem;
    }
}

/* Utility Classes */
.text-primary { color: var(--primary-purple) !important; }
.text-success { color: var(--primary-purple) !important; }
.text-info { color: var(--primary-purple) !important; }
.text-warning { color: var(--primary-purple) !important; }
.text-danger { color: var(--primary-purple) !important; }
.text-muted { color: var(--text-muted) !important; }

/* Bootstrap Icons - All in Purple */
.bi.text-primary,
.bi.text-success,
.bi.text-info,
.bi.text-warning,
.bi.text-danger {
    color: var(--primary-purple) !important;
}

/* Card Icons - All in Purple */
.card .bi,
.card-body .bi {
    color: var(--primary-purple) !important;
}

/* Feature Card Icons - All in Purple */
.feature-card .bi,
.feature-card-header .bi,
.feature-card-body .bi {
    color: var(--primary-purple) !important;
}

/* Section Title Icons */
.section-title .bi {
    color: var(--primary-purple) !important;
}

/* Hero Section Icons */
.hero-title .bi,
.hero-section .bi {
    color: var(--primary-purple) !important;
}

/* Alert Icons */
.alert .bi {
    color: var(--primary-purple) !important;
}



.bg-primary { background-color: var(--primary-purple) !important; }
.bg-secondary { background-color: var(--text-muted) !important; }
.bg-success { background-color: var(--success) !important; }
.bg-warning { background-color: var(--warning) !important; }
.bg-danger { background-color: var(--danger) !important; }
.bg-info { background-color: var(--info) !important; }

/* Hero Section for Legal Pages */
.hero-section {
    padding: 5rem 0 3rem;
    text-align: center;
    background: radial-gradient(ellipse at center, rgba(113, 61, 255, 0.1) 0%, transparent 70%);
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-white) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Form Validation Styles */
.is-valid {
    border-color: var(--success) !important;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.25) !important;
}

.is-invalid {
    border-color: var(--danger) !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25) !important;
}

.valid-feedback {
    color: var(--success-light);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.invalid-feedback {
    color: var(--danger-light);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Loading States */
.btn:disabled,
.btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Focus States for Accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    outline: 2px solid var(--primary-purple);
    outline-offset: 2px;
}

/* Live Statistics Section */
.live-stats-section {
    background: var(--bs-body-bg);
    padding: 3rem 0;
    margin: 0;
    border-top: 1px solid var(--bs-border-color);
    border-bottom: 1px solid var(--bs-border-color);
}

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

.stat-tile {
    background: var(--bs-body-bg);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--bs-border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

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

.stat-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(113, 61, 255, 0.2);
    border-color: var(--primary-purple);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    color: var(--primary-purple);
}

.stat-icon svg {
    width: 3rem;
    height: 3rem;
    color: var(--primary-purple);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.5rem;
    font-family: 'Courier New', monospace;
}

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

.stats-update-info {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 1rem;
}

/* Animation for counting up */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-number.animating {
    animation: countUp 0.6s ease-out;
}

/* Responsive design for stats */
@media (max-width: 768px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-tile {
        padding: 1.5rem;
    }
    
    .stat-icon {
        font-size: 2.5rem;
    }
    
    .stat-icon svg {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .stat-tile {
        padding: 1rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .to-top {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .card {
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
} 