/**
 * PolarOS - Polizei Webportal
 * Main Stylesheet
 */

:root {
    /* Primary Colors - Police Blue Theme */
    --primary: #1565C0;
    --primary-dark: #0D47A1;
    --primary-light: #1976D2;
    --primary-glow: rgba(21, 101, 192, 0.3);
    
    /* Accent */
    --accent: #00B0FF;
    --accent-dark: #0091EA;
    
    /* Status Colors */
    --success: #00C853;
    --warning: #FFD600;
    --danger: #FF1744;
    --info: #00B8D4;
    
    /* Neutrals */
    --dark-900: #0a0e14;
    --dark-800: #0f1419;
    --dark-700: #151c24;
    --dark-600: #1c252f;
    --dark-500: #242d3a;
    --dark-400: #2d3845;
    --dark-300: #3d4a5c;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Spacing */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
    --shadow: 0 4px 20px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 40px var(--primary-glow);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition: 0.25s ease;
    --transition-slow: 0.4s ease;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark-900);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Global Scrollbar - Dark Theme */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--dark-500) var(--dark-700);
}

*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-track {
    background: var(--dark-700);
}

*::-webkit-scrollbar-thumb {
    background: var(--dark-500);
    border-radius: 5px;
    border: 2px solid var(--dark-700);
}

*::-webkit-scrollbar-thumb:hover {
    background: var(--dark-400);
}

*::-webkit-scrollbar-corner {
    background: var(--dark-700);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p { color: var(--text-secondary); }

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(21, 101, 192, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(21, 101, 192, 0.5);
    color: white;
}

.btn-secondary {
    background: var(--dark-600);
    color: var(--text-primary);
    border: 1px solid var(--dark-400);
}

.btn-secondary:hover {
    background: var(--dark-500);
    border-color: var(--primary);
    color: white;
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #d50000 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.5);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #00a544 100%);
    color: white;
}

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

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-sm);
}

/* Cards */
.card {
    background: var(--dark-700);
    border: 1px solid var(--dark-500);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all var(--transition);
}

.card:last-child {
    margin-bottom: 0;
}

.card-hoverable:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--dark-500);
}

.card-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.card-header h3 i {
    color: var(--primary-light);
}

.card-body {
    padding: 0;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-title i {
    color: var(--primary-light);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-input,
.form-control,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--dark-800);
    border: 1px solid var(--dark-500);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-control:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

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

.form-input:disabled,
.form-control:disabled {
    background: var(--dark-700);
    color: var(--text-muted);
    cursor: not-allowed;
}

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

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.form-check input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
}

.input-group {
    display: flex;
    gap: 0.5rem;
}

.input-group .form-input {
    flex: 1;
}

/* Tables */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--dark-500);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: var(--dark-600);
}

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

td {
    padding: 1rem;
    border-top: 1px solid var(--dark-500);
}

tbody tr {
    transition: background var(--transition-fast);
}

tbody tr:hover {
    background: var(--dark-600);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-primary { background: var(--primary-glow); color: var(--accent); }
.badge-success { background: rgba(0, 200, 83, 0.2); color: var(--success); }
.badge-warning { background: rgba(255, 214, 0, 0.2); color: var(--warning); }
.badge-danger { background: rgba(255, 23, 68, 0.2); color: var(--danger); }
.badge-info { background: rgba(0, 184, 212, 0.2); color: var(--info); }

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: rgba(0, 200, 83, 0.15);
    border: 1px solid rgba(0, 200, 83, 0.3);
    color: var(--success);
}

.alert-danger {
    background: rgba(255, 23, 68, 0.15);
    border: 1px solid rgba(255, 23, 68, 0.3);
    color: var(--danger);
}

.alert-warning {
    background: rgba(255, 214, 0, 0.15);
    border: 1px solid rgba(255, 214, 0, 0.3);
    color: var(--warning);
}

.alert-info {
    background: rgba(0, 184, 212, 0.15);
    border: 1px solid rgba(0, 184, 212, 0.3);
    color: var(--info);
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--dark-700);
    border: 1px solid var(--dark-500);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform var(--transition);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--dark-500);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.modal-close:hover {
    color: var(--danger);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--dark-500);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--dark-500);
    margin-bottom: 1.5rem;
}

.tab {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: color var(--transition-fast);
}

.tab:hover {
    color: var(--text-primary);
}

.tab.active {
    color: var(--primary-light);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--dark-500);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.animate-fadeIn { animation: fadeIn 0.5s ease; }
.animate-slideUp { animation: slideUp 0.5s ease; }

/* Utility Classes */
.text-center { text-align: center; }
.text-primary { color: var(--primary-light) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

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

@media (max-width: 640px) {
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    .container { padding: 0 1rem; }
}

/* ================================================
   LANDING PAGE STYLES
   ================================================ */

.landing-page {
    background: var(--dark-900);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 0;
    background: rgba(10, 14, 20, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition);
}

.navbar.scrolled {
    border-bottom-color: var(--dark-500);
}

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

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-logo {
    height: 40px;
    width: auto;
}

.navbar-title {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar-link {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.navbar-link:hover {
    color: var(--text-primary);
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, var(--primary-glow), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(0, 176, 255, 0.1), transparent);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(var(--dark-700) 1px, transparent 1px),
        linear-gradient(90deg, var(--dark-700) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.3;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--dark-600);
    border: 1px solid var(--dark-400);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: slideUp 0.6s ease;
}

.hero-badge i {
    color: var(--primary-light);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: slideUp 0.6s ease 0.1s backwards;
}

.hero-title span {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    animation: slideUp 0.6s ease 0.2s backwards;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: slideUp 0.6s ease 0.3s backwards;
}

.hero-visual {
    position: absolute;
    right: -5%;
    top: 50%;
    transform: translateY(-50%);
    width: 55%;
    z-index: 0;
    opacity: 0.8;
}

.hero-shield {
    width: 100%;
    filter: drop-shadow(0 0 60px var(--primary-glow));
    animation: float 6s ease-in-out infinite;
}

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

/* Features Section */
.features {
    padding: 8rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-glow);
    color: var(--primary-light);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

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

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: var(--dark-700);
    border: 1px solid var(--dark-500);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-description {
    font-size: 0.95rem;
}

/* Stats Section */
.stats {
    padding: 6rem 0;
    background: var(--dark-800);
    border-top: 1px solid var(--dark-600);
    border-bottom: 1px solid var(--dark-600);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

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

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background: var(--dark-700);
    border: 1px solid var(--dark-500);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all var(--transition);
}

.stat-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.stat-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-icon-wrapper.blue {
    background: rgba(21, 101, 192, 0.15);
    color: var(--primary-light);
}

.stat-icon-wrapper.green {
    background: rgba(0, 200, 83, 0.15);
    color: var(--success);
}

.stat-icon-wrapper.purple {
    background: rgba(156, 39, 176, 0.15);
    color: #c084fc;
}

.stat-icon-wrapper.orange {
    background: rgba(255, 152, 0, 0.15);
    color: #ff9800;
}

.stat-content {
    flex: 1;
}

.stats .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.stats .stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

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

.stat-value {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

/* CTA Section */
.cta {
    padding: 8rem 0;
    text-align: center;
    position: relative;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    margin-bottom: 1.5rem;
}

.cta-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--dark-600);
    background: var(--dark-800);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo {
    height: 30px;
}

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

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-link:hover {
    color: var(--text-primary);
}

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

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.auth-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 60% 40% at 20% 30%, var(--primary-glow), transparent),
        radial-gradient(ellipse 50% 30% at 80% 70%, rgba(0, 176, 255, 0.1), transparent);
}

.auth-card {
    background: var(--dark-700);
    border: 1px solid var(--dark-500);
    border-radius: var(--radius-xl);
    padding: 3rem;
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    height: 50px;
    margin-bottom: 1.5rem;
}

.auth-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--text-secondary);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--dark-500);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ================================================
   DASHBOARD LAYOUT
   ================================================ */

.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--dark-800);
    border-right: 1px solid var(--dark-600);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 50;
    transition: transform var(--transition);
    overflow: hidden;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--dark-600);
    flex-shrink: 0;
    display: flex;
    justify-content: center;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-primary);
}

.sidebar-brand:hover {
    opacity: 0.9;
}

.sidebar-logo {
    height: 40px;
}

/* Maintenance Banner in Sidebar */
.maintenance-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    background: linear-gradient(135deg, var(--warning), #ffa000);
    color: #000;
    font-size: 0.8rem;
    font-weight: 600;
    animation: pulse-banner 2s ease-in-out infinite;
}

@keyframes pulse-banner {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.sidebar-station {
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--dark-700);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    overflow: hidden;
}

.station-logo {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--dark-600);
    flex-shrink: 0;
}

.station-name {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--dark-500) transparent;
}

.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: var(--dark-500);
    border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: var(--dark-400);
}

.nav-section {
    margin-bottom: 1.5rem;
}

.nav-section-title {
    padding: 0.5rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
    transform: scaleY(0);
    transition: transform var(--transition-fast);
}

.nav-item:hover {
    background: var(--dark-700);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--dark-700);
    color: var(--primary-light);
}

.nav-item.active::before {
    transform: scaleY(1);
}

.nav-item i {
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--dark-600);
    flex-shrink: 0;
    background: var(--dark-800);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--dark-700);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.user-menu:hover {
    background: var(--dark-600);
}

.user-avatar-wrapper {
    position: relative;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.user-avatar {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px;
    min-height: 36px;
    max-width: 36px;
    max-height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    overflow: hidden;
    flex-shrink: 0;
    flex-grow: 0;
}

.user-avatar img {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px;
    min-height: 36px;
    max-width: 36px;
    max-height: 36px;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-sm);
}

.user-avatar-wrapper .discord-mini-avatar {
    position: absolute;
    bottom: -3px;
    left: -3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--dark-700);
    overflow: hidden;
    background: #5865F2;
}

.user-avatar-wrapper .discord-mini-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.user-menu-arrow {
    color: var(--text-muted);
    transition: transform var(--transition);
}

.user-menu-arrow.rotated {
    transform: rotate(180deg);
}

.user-dropdown {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: var(--dark-600);
    border-radius: var(--radius);
    border: 1px solid var(--dark-500);
}

.user-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    font-size: 0.9rem;
}

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

.user-dropdown .dropdown-item.logout {
    color: var(--danger);
}

.user-dropdown .dropdown-item.logout:hover {
    background: rgba(244, 67, 54, 0.15);
    color: var(--danger);
}

.user-dropdown .dropdown-item.admin-link {
    color: var(--danger);
}

.user-dropdown .dropdown-item.admin-link:hover {
    background: rgba(244, 67, 54, 0.15);
    color: var(--danger);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content-full {
    flex: 1;
    margin-left: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--dark-900);
}

.topbar {
    padding: 1rem 2rem;
    background: var(--dark-800);
    border-bottom: 1px solid var(--dark-600);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 40;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar-search {
    position: relative;
}

.topbar-search input {
    width: 250px;
    padding: 0.625rem 1rem 0.625rem 2.5rem;
    background: var(--dark-700);
    border: 1px solid var(--dark-500);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.topbar-search i {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.page-content,
.content-wrapper {
    flex: 1;
    padding: 2rem 2.5rem;
    max-width: 100%;
    overflow-x: hidden;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.page-header p {
    color: var(--text-secondary);
    margin: 0;
}

.page-header .btn {
    margin-top: 0;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .page-header {
        flex-direction: column;
    }
    
    .page-header .btn {
        width: 100%;
    }
}

@media (max-width: 1400px) {
    .page-content,
    .content-wrapper {
        padding: 1.5rem 2rem;
    }
}

@media (max-width: 768px) {
    .page-content,
    .content-wrapper {
        padding: 1rem 1.25rem;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
}

/* Dashboard Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

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

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

.stat-card {
    background: var(--dark-700);
    border: 1px solid var(--dark-500);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all var(--transition);
}

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

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: rgba(21, 101, 192, 0.2);
    color: var(--primary-light);
}

.stat-icon.blue { background: rgba(21, 101, 192, 0.2); color: var(--primary-light); }
.stat-icon.green, .stat-icon.success { background: rgba(0, 200, 83, 0.2); color: var(--success); }
.stat-icon.orange, .stat-icon.warning { background: rgba(255, 152, 0, 0.2); color: #ff9800; }
.stat-icon.purple { background: rgba(156, 39, 176, 0.2); color: #9c27b0; }
.stat-icon.info { background: rgba(0, 184, 212, 0.2); color: var(--info); }

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
}

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

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

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

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

/* Filter Form */
.filter-form {
    width: 100%;
}

.filter-row {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-row .form-group {
    flex: 1;
    min-width: 150px;
    margin-bottom: 0;
}

.filter-row .form-group:last-child {
    flex: 0 0 auto;
    display: flex;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
    }
    
    .filter-row .form-group {
        width: 100%;
    }
    
    .filter-row .form-group:last-child {
        width: 100%;
        flex-direction: row;
    }
}

/* Setup Page */
.setup-container {
    max-width: 700px;
    margin: 0 auto;
}

.setup-step {
    margin-bottom: 2rem;
}

.step-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.step-title {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Search Results */
.search-results {
    margin-top: 2rem;
}

.result-card {
    background: var(--dark-700);
    border: 1px solid var(--dark-500);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all var(--transition-fast);
}

.result-card:hover {
    border-color: var(--primary);
}

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

.result-name {
    font-size: 1.1rem;
    font-weight: 600;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 768px) {
    .result-grid {
        grid-template-columns: 1fr;
    }
}

.result-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

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

.result-value {
    font-weight: 500;
}

/* File Cards */
.file-card {
    background: var(--dark-700);
    border: 1px solid var(--dark-500);
    border-radius: var(--radius);
    padding: 1.25rem;
    transition: all var(--transition-fast);
    cursor: pointer;
}

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

.file-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.file-type {
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.file-type.bericht { background: rgba(21, 101, 192, 0.2); color: var(--primary-light); }
.file-type.beweismittel { background: rgba(156, 39, 176, 0.2); color: #9c27b0; }
.file-type.fahndung { background: rgba(255, 23, 68, 0.2); color: var(--danger); }
.file-type.vorgang { background: rgba(255, 152, 0, 0.2); color: #ff9800; }
.file-type.sonstiges { background: rgba(96, 125, 139, 0.2); color: #607d8b; }

.file-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.file-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.file-meta span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* Fleet Cards */
.fleet-card {
    background: var(--dark-700);
    border: 1px solid var(--dark-500);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}

.fleet-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.fleet-image {
    height: 160px;
    background: var(--dark-600);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 3rem;
}

.fleet-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fleet-content {
    padding: 1.25rem;
}

.fleet-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.fleet-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.fleet-details span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fleet-details i {
    width: 16px;
    color: var(--text-muted);
}

.fleet-status {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--dark-500);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Member List */
.member-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--dark-700);
    border: 1px solid var(--dark-500);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
}

.member-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.member-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.member-name {
    font-weight: 600;
}

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

.member-role {
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Role Cards */
.role-card {
    background: var(--dark-700);
    border: 1px solid var(--dark-500);
    border-radius: var(--radius);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.role-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.role-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.role-name {
    font-weight: 600;
}

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

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    font-size: 4rem;
    color: var(--dark-400);
    margin-bottom: 1.5rem;
}

.empty-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.empty-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-visual {
        display: none;
    }
    
    .navbar-nav {
        display: none;
    }
}

@media (max-width: 640px) {
    .topbar-search {
        display: none;
    }
    
    .page-content {
        padding: 1rem;
    }
    
    .auth-card {
        padding: 2rem 1.5rem;
    }
}

/* =====================================================
   PROFILE PAGE STYLES
   ===================================================== */

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 1.5rem;
}

.profile-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-sidebar .card {
    margin-bottom: 0;
}

.simple-topbar {
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--dark-700);
    background: var(--dark-800);
}

.back-link {
    color: var(--text-secondary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color var(--transition);
}

.back-link:hover {
    color: var(--primary);
}

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

.empty-state-small {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-muted);
}

.empty-state-small i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
    display: block;
}

.empty-state-small p {
    margin: 0 0 1rem 0;
}

.stations-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.station-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--dark-800);
    border: 1px solid var(--dark-600);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.station-item.active {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
}

.station-logo-small {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--dark-700);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.station-logo-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.station-logo-small i {
    color: var(--text-muted);
}

.station-info {
    flex: 1;
    min-width: 0;
}

.station-info h4 {
    font-size: 0.9rem;
    margin: 0 0 0.15rem 0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 500;
}

.owner-badge {
    color: var(--warning);
    font-size: 0.75rem;
}

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

/* Discord Verknüpfung */
.discord-card .card-header h3 {
    color: #5865F2;
}

.discord-card .card-header h3 i {
    color: #5865F2;
}

.discord-linked {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.discord-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--dark-800);
    border-radius: var(--radius);
}

.discord-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #5865F2;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.discord-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discord-avatar i {
    font-size: 1.5rem;
    color: white;
}

.discord-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    flex: 1;
}

.discord-name {
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.discord-id {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: monospace;
}

.discord-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.discord-unlinked {
    text-align: center;
}

.discord-unlinked p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.btn-discord {
    background: #5865F2;
    color: white;
    border: none;
}

.btn-discord:hover {
    background: #4752C4;
    color: white;
}

/* Discord Badges */
.discord-badges {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
    flex-shrink: 0;
}

.discord-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: default;
    transition: transform 0.2s ease;
}

.discord-badge:hover {
    transform: scale(1.1);
}

.discord-badge.partner {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.discord-badge.booster {
    background: linear-gradient(135deg, #ec4899, #be185d);
    color: white;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.4);
}

.discord-badge.partner i {
    font-size: 0.85rem;
}

.discord-badge.booster i {
    font-size: 0.8rem;
}

@media (max-width: 1024px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .simple-topbar {
        padding: 1rem;
    }
}

/* =====================================================
   PROFILE DROPDOWN (Topbar)
   ===================================================== */

.profile-dropdown {
    position: relative;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: var(--dark-700);
    border: 1px solid var(--dark-500);
    border-radius: var(--radius);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition);
}

.profile-trigger:hover {
    background: var(--dark-600);
    border-color: var(--dark-400);
}

.profile-avatar-wrapper {
    position: relative;
    width: 32px;
    height: 32px;
}

.profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    color: white;
}

.discord-mini-avatar {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--dark-700);
    overflow: hidden;
    background: #5865F2;
}

.discord-mini-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-size: 0.9rem;
    font-weight: 500;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-trigger i.fa-chevron-down {
    font-size: 0.7rem;
    color: var(--text-muted);
    transition: transform var(--transition);
}

.profile-dropdown:has(.profile-menu.active) .profile-trigger i.fa-chevron-down {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.profile-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: 240px;
    background: var(--dark-700);
    border: 1px solid var(--dark-500);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 100;
}

.profile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-menu-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
}

.profile-avatar-large {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    color: white;
    flex-shrink: 0;
}

.profile-menu-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.profile-menu-name {
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-menu-role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.profile-menu-divider {
    height: 1px;
    background: var(--dark-500);
    margin: 0.25rem 0;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition);
}

.profile-menu-item:hover {
    background: var(--dark-600);
    color: var(--text-primary);
}

.profile-menu-item i {
    width: 18px;
    text-align: center;
}

.profile-menu-item.text-danger {
    color: var(--danger);
}

.profile-menu-item.text-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

@media (max-width: 768px) {
    .profile-name {
        display: none;
    }
    
    .profile-trigger i.fa-chevron-down {
        display: none;
    }
    
    .profile-trigger {
        padding: 0.5rem;
    }
}
