/* ===================================================
   Aurora Design System v3 - New Layout
   Sidebar navigation, card grid, refined aesthetics
   =================================================== */

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

:root {
    /* Colors */
    --bg-void: #030308;
    --bg-deep: #080812;
    --bg-primary: #0c0c1a;
    --bg-elevated: #14142a;
    --bg-surface: rgba(22, 22, 48, 0.65);
    --bg-surface-solid: #16162e;

    /* Aurora Palette */
    --aurora-cyan: #00d4ff;
    --aurora-blue: #4d7cff;
    --aurora-purple: #9d4edd;
    --aurora-magenta: #e040fb;
    --aurora-pink: #ff4d8d;
    --aurora-green: #00ff94;
    --aurora-yellow: #ffd54f;
    --aurora-orange: #ff7043;

    /* Gradients */
    --gradient-aurora: linear-gradient(135deg, #00d4ff 0%, #9d4edd 50%, #ff4d8d 100%);
    --gradient-ocean: linear-gradient(135deg, #00d4ff 0%, #4d7cff 100%);
    --gradient-forest: linear-gradient(135deg, #00ff94 0%, #00d4ff 100%);
    --gradient-sunset: linear-gradient(135deg, #ff4d8d 0%, #ffd54f 100%);

    /* Text */
    --text-bright: #ffffff;
    --text-primary: #e8e8f0;
    --text-secondary: #a0a0c0;
    --text-muted: #606080;

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.12);

    /* Shadows */
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow-cyan: 0 0 40px rgba(0, 212, 255, 0.25);

    /* Sizing */
    --sidebar-width: 260px;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-void);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

/* Aurora Background */
.aurora-bg::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 10% 20%, rgba(0, 212, 255, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 85% 10%, rgba(157, 78, 221, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse 50% 40% at 50% 90%, rgba(255, 77, 141, 0.08) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* ========== LOGIN ========== */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    position: relative;
    z-index: 1;
}

.login-card {
    position: relative;
    background: var(--bg-surface);
    backdrop-filter: blur(40px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    text-align: center;
    max-width: 420px;
    width: 100%;
    box-shadow: var(--shadow-md), var(--shadow-glow-cyan);
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-aurora);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.login-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.login-content {
    position: relative;
    z-index: 1;
}

.logo-ring {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(157, 78, 221, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(0, 212, 255, 0.3);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.3);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(0, 212, 255, 0);
    }
}

.logo-icon {
    font-size: 48px;
}

.login-card h1 {
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient-ocean);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 32px;
}

.btn-discord {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #5865F2, #7289DA);
    color: white;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.4);
}

.btn-discord:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(88, 101, 242, 0.5);
}

.discord-icon {
    width: 22px;
    height: 22px;
}

.login-footer {
    margin-top: 24px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Login Divider */
.login-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-light), transparent);
}

/* Password Form */
.password-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.password-input-wrap {
    position: relative;
    width: 100%;
}

.password-lock-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.4;
    pointer-events: none;
}

.password-input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    background: var(--bg-elevated);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s;
}

.password-input:focus {
    outline: none;
    border-color: var(--aurora-cyan);
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.1);
}

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

.btn-password {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #00d4ff, #4d7cff);
    color: white;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
    width: 100%;
}

.btn-password:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4);
}

.btn-password:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.password-error {
    color: var(--aurora-pink);
    font-size: 13px;
    font-weight: 500;
    margin: 0;
    padding: 8px 12px;
    background: rgba(255, 77, 141, 0.1);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 77, 141, 0.2);
}

/* Shake animation for invalid password */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-6px); }
    80% { transform: translateX(6px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

/* ========== DASHBOARD LAYOUT ========== */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-surface-solid);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 200;
}

.sidebar-header {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.sidebar-logo {
    font-size: 28px;
}

.sidebar-title {
    font-size: 20px;
    font-weight: 800;
    background: var(--gradient-ocean);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all 0.2s;
    text-align: left;
    width: 100%;
}

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

.nav-item.active {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(157, 78, 221, 0.1));
    color: var(--aurora-cyan);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.nav-icon {
    font-size: 18px;
}

.nav-label {
    flex: 1;
}

.nav-badge {
    background: var(--bg-elevated);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
}

.nav-badge.pending {
    background: linear-gradient(135deg, rgba(255, 213, 79, 0.2), rgba(255, 112, 67, 0.2));
    color: var(--aurora-yellow);
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-subtle);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--gradient-ocean);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.user-details {
    flex: 1;
}

.user-name {
    display: block;
    font-weight: 600;
    font-size: 14px;
}

.logout-link {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
}

.logout-link:hover {
    color: var(--aurora-pink);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 32px;
    min-height: 100vh;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Hero Section */
.hero-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.page-title {
    font-size: 32px;
    font-weight: 800;
    background: var(--gradient-ocean);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 15px;
}

.btn-lg {
    padding: 16px 28px;
    font-size: 15px;
}

.btn-icon-left {
    font-size: 20px;
    margin-right: 4px;
}

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

.stat-card {
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s;
}

.stat-card:hover {
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow-cyan);
}

.stat-ring {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(157, 78, 221, 0.1));
    border: 2px solid rgba(0, 212, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-ring.protected {
    border-color: rgba(0, 255, 148, 0.3);
    background: linear-gradient(135deg, rgba(0, 255, 148, 0.1), rgba(0, 212, 255, 0.1));
}

.stat-ring.pending {
    border-color: rgba(255, 213, 79, 0.3);
    background: linear-gradient(135deg, rgba(255, 213, 79, 0.1), rgba(255, 112, 67, 0.1));
}

.stat-ring.players {
    border-color: rgba(157, 78, 221, 0.3);
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.1), rgba(224, 64, 251, 0.1));
}

.stat-icon {
    font-size: 26px;
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    background: var(--gradient-forest);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.search-wrapper {
    flex: 1;
    min-width: 280px;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    opacity: 0.5;
}

.search-input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    background: var(--bg-elevated);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--aurora-cyan);
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.1);
}

.filter-chips {
    display: flex;
    gap: 8px;
}

.filter-chip {
    padding: 10px 18px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-chip:hover {
    background: var(--bg-surface);
    color: var(--text-primary);
}

.filter-chip.active {
    background: var(--gradient-ocean);
    color: var(--bg-void);
    border-color: transparent;
}

/* Claims Grid */
.claims-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.claim-card {
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.claim-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-ocean);
    opacity: 0;
    transition: opacity 0.3s;
}

.claim-card:hover {
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow-cyan);
}

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

.claim-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.claim-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-bright);
}

.claim-dimension {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.claim-dimension.overworld {
    background: rgba(0, 255, 148, 0.15);
    color: var(--aurora-green);
}

.claim-dimension.nether {
    background: rgba(255, 77, 141, 0.15);
    color: var(--aurora-pink);
}

.claim-dimension.the_end {
    background: rgba(157, 78, 221, 0.15);
    color: var(--aurora-purple);
}

.claim-coords {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.claim-owners {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.owner-tag {
    padding: 4px 10px;
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.15), rgba(0, 212, 255, 0.15));
    border: 1px solid rgba(157, 78, 221, 0.2);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
}

.claim-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}

.claim-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.protected {
    background: var(--aurora-green);
    box-shadow: 0 0 8px var(--aurora-green);
}

.status-dot.open {
    background: var(--aurora-yellow);
}

.claim-actions {
    display: flex;
    gap: 8px;
}

/* Loading Placeholder */
.loading-placeholder {
    display: contents;
}

.skeleton-card {
    height: 200px;
    background: linear-gradient(90deg, var(--bg-elevated) 0%, rgba(0, 212, 255, 0.05) 50%, var(--bg-elevated) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-lg);
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 64px 24px;
}

.empty-visual {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
}

.empty-icon {
    font-size: 64px;
    position: relative;
    z-index: 1;
}

.empty-rings {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-radius: 50%;
    animation: ringPulse 2s ease-in-out infinite;
}

@keyframes ringPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.empty-state p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Requests Grid */
.requests-grid {
    display: grid;
    gap: 16px;
}

.request-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
    border-left: 4px solid var(--aurora-yellow);
}

.request-card:hover {
    border-color: var(--aurora-yellow);
    transform: translateX(4px);
}

/* Bulk Layout */
.bulk-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.bulk-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px;
}

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

.bulk-icon {
    font-size: 28px;
}

.bulk-header h2 {
    font-size: 20px;
    font-weight: 700;
}

.bulk-description {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.6;
}

.import-mode-toggle {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.mode-option {
    flex: 1;
    cursor: pointer;
}

.mode-option input {
    display: none;
}

.mode-label {
    display: block;
    padding: 16px;
    background: var(--bg-elevated);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-md);
    text-align: center;
    transition: all 0.2s;
}

.mode-option input:checked+.mode-label {
    border-color: var(--aurora-cyan);
    background: rgba(0, 212, 255, 0.1);
}

.mode-title {
    display: block;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 4px;
}

.mode-desc {
    font-size: 12px;
    color: var(--text-muted);
}

.dropzone {
    border: 2px dashed var(--border-light);
    border-radius: var(--radius-lg);
    padding: 40px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.dropzone:hover,
.dropzone.dragover {
    border-color: var(--aurora-cyan);
    background: rgba(0, 212, 255, 0.05);
}

.dropzone-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.dropzone p {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.dropzone-or {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    margin: 12px 0;
}

.dropzone-hint {
    display: block;
    color: var(--text-muted);
    font-size: 11px;
    margin-top: 12px;
}

.export-preview {
    margin-bottom: 24px;
}

.export-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.export-check {
    color: var(--aurora-green);
    font-weight: bold;
}

.code-preview {
    background: rgba(0, 0, 0, 0.4);
    padding: 16px;
    border-radius: var(--radius-md);
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: var(--aurora-cyan);
    overflow-x: auto;
    white-space: pre;
    margin-bottom: 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-ocean);
    color: var(--bg-void);
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.3);
}

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

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

.btn-secondary:hover {
    background: var(--bg-surface);
    border-color: var(--aurora-cyan);
}

.btn-success {
    background: var(--gradient-forest);
    color: var(--bg-void);
}

.btn-danger {
    background: var(--gradient-sunset);
    color: white;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

.btn-block {
    width: 100%;
}

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

/* Inputs */
.input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-elevated);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.2s;
}

.input:focus {
    outline: none;
    border-color: var(--aurora-cyan);
}

.textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

select.input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a0a0c0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 24px;
}

.modal {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

.modal-lg {
    max-width: 720px;
}

.modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-aurora);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

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

.modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    background: var(--gradient-ocean);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

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

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid var(--border-subtle);
    background: rgba(0, 0, 0, 0.2);
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label,
.form-group-label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.form-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 28px 0;
}

.form-section h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--aurora-cyan);
    margin-bottom: 16px;
}

.coord-box {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    padding: 16px;
}

.coord-row {
    margin-bottom: 12px;
}

.coord-row:last-child {
    margin-bottom: 0;
}

.coord-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.coord-inputs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.coord-input {
    text-align: center;
    padding: 10px 8px;
    font-size: 13px;
}

/* Flags Grid */
.flags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.flag-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.flag-toggle:hover {
    background: var(--bg-surface);
}

.flag-toggle input {
    display: none;
}

.flag-switch {
    width: 40px;
    height: 22px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 11px;
    position: relative;
    transition: all 0.3s;
    flex-shrink: 0;
}

.flag-switch::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--text-muted);
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: all 0.3s;
}

.flag-toggle input:checked+.flag-switch {
    background: var(--aurora-cyan);
}

.flag-toggle input:checked+.flag-switch::after {
    left: 21px;
    background: white;
}

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

.flag-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.flag-desc {
    font-size: 11px;
    color: var(--text-muted);
}

/* Toast */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    padding: 16px 20px;
    background: var(--bg-surface-solid);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--aurora-cyan);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
    min-width: 300px;
    box-shadow: var(--shadow-md);
}

.toast.success {
    border-left-color: var(--aurora-green);
}

.toast.error {
    border-left-color: var(--aurora-pink);
}

.toast-icon {
    font-size: 20px;
}

.toast-message {
    flex: 1;
    font-size: 14px;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ========== MOBILE HEADER ========== */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg-surface-solid);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 200;
    padding: 0 16px;
    align-items: center;
    gap: 12px;
}

.menu-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-title {
    flex: 1;
    font-size: 18px;
    font-weight: 700;
    background: var(--gradient-ocean);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.user-name-mobile {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 150;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Sidebar Close Button */
.sidebar-close {
    display: none;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}

.sidebar-close:hover {
    color: var(--aurora-pink);
}

/* Responsive */
@media (max-width: 1024px) {

    /* Show mobile header */
    .mobile-header {
        display: flex;
    }

    /* Show sidebar overlay */
    .sidebar-overlay {
        display: block;
        pointer-events: none;
    }

    .sidebar-overlay.active {
        pointer-events: auto;
    }

    /* Sidebar slides in from left */
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: none;
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    }

    /* Show close button in sidebar */
    .sidebar-close {
        display: block;
    }

    /* Adjust main content */
    .main-content {
        margin-left: 0;
        padding-top: 76px;
        /* Account for mobile header */
        padding-left: 16px;
        padding-right: 16px;
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .page-title {
        font-size: 24px;
    }

    .filter-bar {
        flex-direction: column;
    }

    .filter-chips {
        justify-content: center;
        flex-wrap: wrap;
    }

    .claims-grid {
        grid-template-columns: 1fr;
    }

    .stats-row {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .stat-value {
        font-size: 24px;
    }

    .search-wrapper {
        min-width: 100%;
    }

    .modal {
        margin: 0;
        max-height: 100vh;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
}