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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    min-height: 100vh;
    color: var(--gray-900);
    line-height: 1.6;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

.screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.logo {
    text-align: center;
    color: white;
    margin-bottom: 1rem;
}

h1 {
    text-align: center;
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(32px) saturate(200%);
    -webkit-backdrop-filter: blur(32px) saturate(200%);
    border-radius: 1.75rem;
    padding: 2rem;
    box-shadow:
        0 8px 32px 0 rgba(0, 0, 0, 0.4),
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 1px 0 rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.05);
    box-shadow:
        0 16px 56px 0 rgba(0, 0, 0, 0.5),
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 1px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tab {
    flex: 1;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 0.5rem;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.tab:hover {
    background: rgba(255, 255, 255, 0.3);
}

.tab.active {
    background: white;
    color: var(--primary);
    font-weight: 600;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.verification-form-active {
    display: block !important;
}

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

.checkbox-group {
    margin-bottom: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    accent-color: var(--primary);
    cursor: pointer;
}

.checkbox-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.field-help {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.375rem;
    line-height: 1.4;
}

.field-error {
    display: none;
    font-size: 0.85rem;
    color: #ef4444;
    margin-top: 0.375rem;
    line-height: 1.4;
    font-weight: 500;
}

.field-error.show {
    display: block;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

input.error {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.1) !important;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"] {
    width: 100%;
    padding: 0.75rem;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    box-shadow:
        0 0 0 4px rgba(99, 102, 241, 0.15),
        inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn {
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

.btn:hover::before {
    transform: translateX(100%);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    width: 100%;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 0.625rem 1.25rem;
    font-size: 0.925rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    width: 100%;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    border: 1px solid rgba(239, 68, 68, 0.5);
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
}

.btn-danger:active {
    transform: translateY(0);
}

.btn-large {
    padding: 1.125rem 2rem;
    font-size: 1.125rem;
    border-radius: 1rem;
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    top: 5rem;
    right: 1.5rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;
}

.toast {
    min-width: 320px;
    max-width: 400px;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: toastSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: all;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.toast-exit {
    animation: toastSlideOut 0.3s cubic-bezier(0.4, 0, 1, 1);
}

.toast-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.toast.toast-success .toast-icon {
    background: rgba(16, 185, 129, 0.25);
    color: #10b981;
}

.toast.toast-error .toast-icon {
    background: rgba(239, 68, 68, 0.25);
    color: #ef4444;
}

.toast.toast-info .toast-icon {
    background: rgba(99, 102, 241, 0.25);
    color: #818cf8;
}

.toast.toast-verified {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.15));
    border: 1px solid rgba(251, 191, 36, 0.4);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(251, 191, 36, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.toast.toast-verified .toast-icon {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.4), rgba(245, 158, 11, 0.4));
    color: #fbbf24;
}

.toast.toast-verified .toast-title {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Points Toast (for +5 points on report) */
.toast.toast-points {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.2));
    border: 1px solid rgba(251, 191, 36, 0.5);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(251, 191, 36, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.toast.toast-points .toast-icon {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.5), rgba(245, 158, 11, 0.5));
    color: #fbbf24;
}

.toast.toast-points .toast-title {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.toast-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.toast-title {
    font-weight: 700;
    font-size: 0.975rem;
    color: white;
}

.toast-message {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

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

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

@media (max-width: 640px) {
    #toast-container {
        top: auto;
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
    }

    .toast {
        min-width: auto;
        width: 100%;
    }
}

.header {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(32px) saturate(200%);
    -webkit-backdrop-filter: blur(32px) saturate(200%);
    box-shadow:
        0 4px 24px 0 rgba(0, 0, 0, 0.25),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
}

.header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-icon {
    color: rgba(255, 255, 255, 0.9);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.user-dropdown {
    position: relative;
}

.user-name-badge {
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    font-size: 0.925rem;
    letter-spacing: 0.01em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.user-name-badge:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.user-name-badge.verified {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border: 1px solid rgba(251, 191, 36, 0.4);
    box-shadow:
        0 2px 8px rgba(245, 158, 11, 0.3),
        0 0 20px rgba(251, 191, 36, 0.15);
}

.user-name-badge.verified:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow:
        0 4px 12px rgba(245, 158, 11, 0.5),
        0 0 30px rgba(251, 191, 36, 0.2);
}

.user-icon {
    flex-shrink: 0;
}

/* Points Badge in Header */
.online-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1.25;
    padding: 0.4rem 0.75rem;
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    cursor: default;
    transition: all 0.3s ease;
    white-space: nowrap;
    margin-right: 0.5rem;
}

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

.points-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    font-weight: 600;
    font-size: 0.925rem;
    line-height: 1.25;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
    cursor: default;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.points-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.5);
}

.points-badge i {
    font-size: 1rem;
    line-height: 1;
}

/* Points Badge Inline (inside username button) */
.points-badge-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1e1e1e;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 1rem;
    margin-right: 0.5rem;
    white-space: nowrap;
}

.points-badge-inline i {
    font-size: 0.65rem;
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: 100%;
    min-width: 100%;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(32px) saturate(200%);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

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

.dropdown-item {
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.925rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.dropdown-item svg,
.dropdown-item i {
    flex-shrink: 0;
    opacity: 0.8;
    width: 16px;
    text-align: center;
}

.live-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    margin: 0 0.25rem;
    animation: flicker 1.5s infinite;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
}

@keyframes flicker {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
    }
    50% {
        opacity: 0.3;
        box-shadow: 0 0 4px rgba(239, 68, 68, 0.4);
    }
}

.status-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.status-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.status-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.status-icon {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.15);
    padding: 1.25rem;
    border-radius: 1.25rem;
    backdrop-filter: blur(10px);
}

.status-text h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.status-text p {
    opacity: 0.95;
    font-size: 1.125rem;
    font-weight: 500;
}

.status-meta {
    display: flex;
    justify-content: space-between;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    opacity: 0.95;
    font-size: 0.975rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.load-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.load-option {
    cursor: pointer;
}

.load-option input {
    display: none;
}

.load-content {
    padding: 0.75rem 0.5rem;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 4px 16px 0 rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 70px;
}

.load-icon {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s;
}

.load-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    opacity: 0;
    transition: opacity 0.3s;
}

.load-option:hover .load-content {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-4px);
    box-shadow:
        0 8px 24px rgba(99, 102, 241, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.1);
}

.load-option input:checked + .load-content {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.load-option input:checked + .load-content::before {
    opacity: 1;
}

.load-option input:checked + .load-content .load-icon {
    color: white;
    transform: scale(1.1);
}

.load-option:hover .load-content .load-icon {
    transform: scale(1.05);
}

.load-label {
    font-weight: 700;
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
    letter-spacing: 0.025em;
    color: rgba(255, 255, 255, 0.95);
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
}

.info-text {
    color: var(--gray-700);
    margin-bottom: 1rem;
}

#main-screen h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: white;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.info-text {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6;
}

.status-card.level-1 {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.3);
}

.status-card.level-2 {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3);
}

.status-card.level-3 {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.3);
}

.status-card.level-4 {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    box-shadow: 0 20px 40px rgba(249, 115, 22, 0.3);
}

.status-card.level-5 {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 20px 40px rgba(239, 68, 68, 0.3);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.show {
    animation: fadeIn 0.3s ease;
}

.modal.hide {
    animation: fadeOut 0.3s ease;
}

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

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.modal-content {
    background: rgba(99, 102, 241, 0.1);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1.75rem;
    padding: 2.5rem;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.6),
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.1);
}

.modal.show .modal-content {
    animation: slideUp 0.3s ease;
}

.modal.hide .modal-content {
    animation: slideDown 0.3s ease;
}

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

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

.close-modal {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    color: white;
    font-size: 1.75rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.1);
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Slider Styles */
.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: linear-gradient(to right,
        var(--success) 0%,
        var(--warning) 33%,
        var(--danger) 100%);
    outline: none;
    opacity: 0.9;
    transition: opacity 0.2s;
    margin: 1rem 0;
}

.slider:hover {
    opacity: 1;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 3px solid var(--primary);
    transition: all 0.2s;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 3px solid var(--primary);
    transition: all 0.2s;
}

.slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    margin-top: 0.5rem;
    padding: 0 0.25rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

#wait-time-display {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.125rem;
}

@media (max-width: 640px) {
    .container {
        padding: 1rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    .header .container {
        flex-direction: column;
        gap: 0.75rem;
    }

    .header .user-info {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.5rem;
    }


    .modal-content {
        padding: 1.5rem;
    }

    .slider-labels {
        font-size: 0.75rem;
    }

    .header h2 {
        font-size: 1.25rem;
    }
}

/* Share Buttons */
.share-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.btn-share {
    padding: 0.875rem 1.25rem;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.875rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    color: white;
    font-weight: 600;
    font-size: 0.925rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-share svg {
    transition: transform 0.3s;
}

.btn-share:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.btn-share:hover svg {
    transform: scale(1.1);
}

.btn-share:active {
    transform: translateY(0);
}

.btn-share-copy.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #10b981;
    animation: successPulse 0.6s ease;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.btn-share-copy.success::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    to {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

/* Border Status Container */
.border-status-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.direction-card {
    min-height: 250px;
    margin-bottom: 0;
}

.direction-header {
    text-align: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.direction-header h3 {
    font-size: 1.1rem;
    margin: 0;
    color: white;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.direction-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
}

.status-loading {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
}

.no-reports {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.no-reports p {
    margin: 0.5rem 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.no-reports .sub-text {
    font-size: 0.925rem;
    opacity: 0.8;
}

/* Modern Status Display */
.modern-status {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.status-main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.load-meter {
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.load-meter::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.6) 50%, transparent 100%);
    animation: shimmer 2.5s infinite;
    z-index: 10;
    pointer-events: none;
}

.load-fill {
    height: 100%;
    background: var(--status-color);
    border-radius: 1rem;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
    box-shadow:
        0 0 20px var(--status-color),
        0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
}

@keyframes shimmer {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(525%); }
}

/* Load meter markers at 1/3 and 2/3 positions */
.load-meter-marker {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.25);
    z-index: 5;
    pointer-events: none;
}

.load-meter-marker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 12px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
}

.load-meter-marker.marker-1 {
    left: 33.33%;
}

.load-meter-marker.marker-2 {
    left: 66.67%;
}

.load-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.load-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1;
}

.load-label {
    font-size: 1.25rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    text-align: right;
}

.queue-display {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.queue-main-icon {
    color: rgba(255, 255, 255, 0.9);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.queue-count {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
}

.modern-status .status-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.modern-status .status-meta > * {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.meta-icon {
    color: rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
}

/* Form Sections */
.form-section {
    margin-bottom: 2rem;
}

.section-label {
    display: block;
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Direction Options */
.direction-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.direction-option {
    cursor: pointer;
}

.direction-option input {
    display: none;
}

.direction-option-content {
    padding: 0.75rem 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.direction-arrow {
    color: rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
}

.direction-option-content div {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.975rem;
}

.direction-option input:checked + .direction-option-content .direction-arrow {
    color: white;
}

.direction-option:hover .direction-option-content {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
}

.direction-option input:checked + .direction-option-content {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

/* Queue Options */
.queue-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.queue-option {
    cursor: pointer;
}

.queue-option input {
    display: none;
}

.queue-content {
    padding: 0.75rem 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.05);
}

.queue-option:hover .queue-content {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
}

.queue-option input:checked + .queue-content {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

/* Disclaimer Card */
.disclaimer-card {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 1rem;
    padding: 0.875rem 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.disclaimer-icon {
    flex-shrink: 0;
    color: rgba(59, 130, 246, 0.9);
}

.disclaimer-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}

.disclaimer-text strong {
    color: white;
    font-weight: 700;
}

/* Responsive Updates */
@media (max-width: 768px) {
    .border-status-container {
        grid-template-columns: 1fr;
    }

    .load-value {
        font-size: 2rem;
    }

    .load-label {
        font-size: 1rem;
    }

    .queue-icon {
        font-size: 1.5rem;
    }
}

@media (max-width: 640px) {
    .direction-options {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .queue-options {
        grid-template-columns: repeat(4, 1fr);
    }

    .load-options {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }

    .load-content {
        padding: 0.5rem 0.25rem;
        min-height: 70px;
        gap: 0.25rem;
    }

    .load-icon {
        width: 20px;
        height: 20px;
    }

    .load-label {
        font-size: 0.8rem;
        min-height: auto;
    }

    .direction-option-content {
        padding: 0.5rem 0.25rem;
        gap: 0.25rem;
        flex-direction: column;
    }

    .direction-arrow {
        width: 20px;
        height: 20px;
    }

    .direction-option-content div {
        font-size: 0.75rem;
    }

    .slider-labels span {
        font-size: 0.75rem;
    }
}

/* Admin Panel Styles */
.btn-mini {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-mini:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-mini.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #10b981;
}

.btn-mini-danger {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-mini-danger:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.6);
}

/* Report Type Filter Buttons */
.filter-btn {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.user-name-badge svg {
    vertical-align: middle;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.verified-badge {
    display: inline-block;
    position: relative;
    width: 16px;
    height: 16px;
    margin-left: 4px;
    vertical-align: middle;
}

.verified-badge .fa-certificate {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 16px;
    color: #3b82f6;
}

.verified-badge .fa-check {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 8px;
    color: white;
}

/* Email Verification Styles */
.resend-link {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.5rem;
    transition: color 0.2s;
}

.resend-link:hover {
    color: white;
}

#verification-code::-webkit-inner-spin-button,
#verification-code::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Form Loading State */
.modal-content.loading-active {
    overflow: hidden !important;
}

.form-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 1.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    animation: fadeIn 0.2s ease forwards;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid rgba(99, 102, 241, 1);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 1rem;
}

.loading-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
}

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

.auth-form {
    position: relative;
}

.auth-form.loading {
    pointer-events: none;
}

.auth-form.loading input,
.auth-form.loading button {
    opacity: 0.5;
}

/* Floating Feedback Button */
.feedback-floating-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feedback-floating-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.6);
}

.feedback-floating-btn:active {
    transform: translateY(-2px) scale(1);
}

.close-feedback-modal {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    color: white;
    font-size: 1.75rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.1);
}

.close-feedback-modal:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

@media (max-width: 640px) {
    .feedback-floating-btn {
        bottom: 1rem;
        right: 1rem;
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
}

/* Privacy Policy Toggle */
.privacy-toggle-container {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.privacy-toggle-container:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.privacy-toggle {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
    cursor: pointer;
}

.privacy-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.privacy-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 34px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.privacy-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.privacy-toggle input:checked + .privacy-slider {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.privacy-toggle input:checked + .privacy-slider:before {
    transform: translateX(24px);
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.privacy-toggle input:focus + .privacy-slider {
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

.privacy-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.privacy-text > span {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
}

.privacy-link {
    color: #a78bfa;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.privacy-link:hover {
    color: #c4b5fd;
    border-bottom-color: #c4b5fd;
}

.privacy-help {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 640px) {
    .privacy-toggle-container {
        padding: 1rem;
        gap: 0.75rem;
    }

    .privacy-toggle {
        width: 48px;
        height: 26px;
    }

    .privacy-slider:before {
        height: 18px;
        width: 18px;
    }

    .privacy-toggle input:checked + .privacy-slider:before {
        transform: translateX(22px);
    }

    .privacy-text > span {
        font-size: 0.875rem;
    }

    .privacy-help {
        font-size: 0.75rem;
    }
}

/* Privacy Toggle Error State */
.privacy-toggle-container.error {
    border-color: rgba(239, 68, 68, 0.6);
    background: rgba(239, 68, 68, 0.15);
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-6px); }
    20%, 40%, 60%, 80% { transform: translateX(6px); }
}

/* Terms Acceptance Text */
.terms-acceptance-text {
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0.75rem 0;
    line-height: 1.5;
}

.terms-acceptance-text a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.terms-acceptance-text a:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* Site Footer */
.site-footer {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 1rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 1);
}

.footer-divider {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.875rem;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    margin: 0;
}

@media (max-width: 640px) {
    .site-footer {
        padding: 1.5rem 1rem;
        margin-top: 2rem;
    }

    .footer-links {
        gap: 0.5rem;
    }

    .footer-links a {
        font-size: 0.8rem;
    }

    .footer-tagline {
        font-size: 0.75rem;
    }
}

/* ==================== */
/* Chat Styles - Mobile First */
/* ==================== */

/* Chat Floating Button */
.chat-floating-btn {
    position: fixed;
    bottom: 2rem;
    right: 5.5rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-floating-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.6);
}

.chat-floating-btn:active {
    transform: translateY(-2px) scale(1);
}

.chat-unread-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.5);
}

/* Chat Panel - Mobile First (Full Screen) */
.chat-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-panel.open {
    transform: translateY(0);
}

.chat-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    position: relative;
    z-index: 20;
}

.chat-panel-header h3 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-panel-header h3 i {
    color: #10b981;
}

.chat-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 20;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.2s;
}

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

/* Chat Disabled Overlay */
.chat-disabled-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-disabled-content {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.chat-disabled-content i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Chat Messages Container */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

/* Chat Message */
.chat-message {
    max-width: 85%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    border-top-left-radius: 0.25rem;
    animation: messageSlideIn 0.2s ease-out;
}

.chat-message.own {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.4) 0%, rgba(79, 70, 229, 0.4) 100%);
    border-top-left-radius: 1rem;
    border-top-right-radius: 0.25rem;
}

.chat-system-message {
    align-self: center;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 1rem;
    color: #fca5a5;
    font-size: 0.8rem;
    max-width: 90%;
    text-align: center;
}

.chat-system-message i {
    color: #ef4444;
    font-size: 0.75rem;
}

.chat-message.deleted {
    opacity: 0.5;
    font-style: italic;
}

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

.chat-message-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    flex-wrap: wrap;
}

.chat-username {
    color: #10b981;
    font-weight: 600;
    font-size: 0.85rem;
}

.chat-username.bannable {
    cursor: pointer;
    transition: all 0.2s;
}

.chat-username.bannable:hover {
    color: #34d399;
    text-decoration: underline;
}

.chat-message.own .chat-username {
    color: #a5b4fc;
}

/* Chat Ban Popup */
.chat-ban-popup {
    z-index: 10000;
    animation: fadeIn 0.15s ease;
}

.chat-ban-popup-content {
    background: rgba(30, 30, 40, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    padding: 0.75rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    min-width: 160px;
}

.chat-ban-popup-header {
    color: white;
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-ban-popup-btn {
    width: 100%;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.chat-ban-popup-btn:hover {
    background: rgba(239, 68, 68, 0.4);
    color: white;
}

.chat-ban-popup-btn.permanent {
    margin-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.75rem;
}

.chat-ban-reason-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: white;
    font-size: 0.85rem;
    outline: none;
}

.chat-ban-reason-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.chat-ban-reason-input:focus {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.chat-ban-popup-btn.unban {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(5, 150, 105, 0.3));
    border-color: rgba(16, 185, 129, 0.4);
    color: #10b981;
}

.chat-ban-popup-btn.unban:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.5), rgba(5, 150, 105, 0.5));
}

.chat-ban-status {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(220, 38, 38, 0.3));
    color: #ef4444;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    margin-left: 0.5rem;
}

.chat-admin-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    text-transform: uppercase;
}

.chat-verified-badge {
    color: #3b82f6;
    font-size: 0.8rem;
}

.chat-timestamp {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
    margin-left: auto;
}

.chat-message-content {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.5;
    word-break: break-word;
}

.chat-delete-btn {
    background: none;
    border: none;
    color: rgba(239, 68, 68, 0.7);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    margin-top: 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.2s;
}

.chat-delete-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Chat Form */
/* Ban banner */
.chat-ban-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.15));
    border-top: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    font-size: 0.85rem;
    font-weight: 500;
    flex-shrink: 0;
}

.chat-ban-banner i {
    color: #ef4444;
}

.chat-form {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0));
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

#chat-input {
    flex: 1;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    outline: none;
    transition: all 0.2s;
}

#chat-input:focus {
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(255, 255, 255, 0.12);
}

#chat-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.chat-send-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.chat-send-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

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

/* Empty Chat State */
.chat-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    padding: 2rem;
}

.chat-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Desktop Styles */
@media (min-width: 769px) {
    .chat-floating-btn {
        bottom: 2rem;
        right: 6rem;
    }

    .chat-panel {
        top: auto;
        bottom: 6rem;
        left: auto;
        right: 1.5rem;
        width: 400px;
        height: 550px;
        border-radius: 1.5rem;
        border: 1px solid rgba(255, 255, 255, 0.15);
        background: rgba(15, 23, 42, 0.7);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
        transform: translateY(20px);
        opacity: 0;
        pointer-events: none;
    }

    .chat-panel.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .chat-panel-header {
        border-radius: 1.5rem 1.5rem 0 0;
    }

    .chat-form {
        border-radius: 0 0 1.5rem 1.5rem;
        padding-bottom: 1rem;
    }
}

@media (max-width: 640px) {
    .chat-floating-btn {
        bottom: 1rem;
        right: 4.5rem;
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    .chat-message {
        max-width: 90%;
    }
}

/* Admin Chat Toggle Switch */
.chat-toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
    cursor: pointer;
}

.chat-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.chat-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 34px;
}

.chat-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
}

.chat-toggle-switch input:checked + .chat-toggle-slider {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #10b981;
}

.chat-toggle-switch input:checked + .chat-toggle-slider:before {
    transform: translateX(24px);
}

/* Chat Ban Item */
.chat-ban-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.chat-ban-item:last-child {
    margin-bottom: 0;
}

.chat-ban-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.chat-ban-username {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.chat-ban-reason {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

.chat-ban-date {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
}

.chat-ban-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.chat-edit-btn {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #3b82f6;
    padding: 0.4rem 0.6rem;
    border-radius: 0.4rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-edit-btn:hover {
    background: rgba(59, 130, 246, 0.3);
}

.chat-unban-btn {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #10b981;
    padding: 0.4rem 0.6rem;
    border-radius: 0.4rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-unban-btn:hover {
    background: rgba(16, 185, 129, 0.3);
}

.chat-ban-expires {
    font-size: 0.75rem;
    color: #fbbf24;
    font-weight: 500;
}

/* Feature Announcement Modal */
.announcement-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

.announcement-modal.closing {
    animation: fadeOut 0.3s ease forwards;
}

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

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.announcement-content {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 1.5rem;
    padding: 2rem;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 100px rgba(59, 130, 246, 0.1);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.announcement-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.announcement-icon i {
    font-size: 2rem;
    color: white;
}

.announcement-content h2 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.announcement-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.announcement-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    text-align: left;
}

.announcement-content ul li {
    color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.announcement-content ul li i {
    color: #10b981;
    font-size: 0.9rem;
}

.announcement-btn {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.announcement-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.announcement-btn:active {
    transform: translateY(0);
}

/* ============================================
   Queue Type Tabs (Glassmorphic Design)
   ============================================ */

/* Wrapper for global queue type selector */
.queue-type-selector-wrapper {
    margin-bottom: 1.5rem;
}

.queue-type-selector-wrapper .queue-type-tabs {
    margin-bottom: 0;
    transition: all 0.3s ease;
}

/* When stuck to top via JS (top is set dynamically by JS to be below header) */
.queue-type-selector-wrapper.is-sticky {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 99;
    padding: 0.5rem 1rem;
    margin-bottom: 0;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.queue-type-selector-wrapper.is-sticky .queue-type-tabs {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Placeholder to prevent layout jump when sticky */
.queue-type-selector-placeholder {
    display: none;
}

.queue-type-selector-placeholder.is-active {
    display: block;
}

@media (max-width: 480px) {
    .queue-type-selector-wrapper.is-sticky {
        padding: 0.5rem 0.75rem;
    }
}

.queue-type-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 1rem;
    padding: 0.35rem;
    gap: 0.35rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.queue-type-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.queue-type-tab i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.queue-type-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
}

.queue-type-tab:hover i {
    transform: scale(1.1);
}

.queue-type-tab.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow:
        0 4px 15px rgba(99, 102, 241, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.queue-type-tab.active i {
    transform: scale(1.1);
}

/* Responsive adjustments for queue type tabs */
@media (max-width: 480px) {
    .queue-type-tabs {
        padding: 0.25rem;
        gap: 0.25rem;
    }

    .queue-type-tab {
        padding: 0.6rem 0.5rem;
        font-size: 0.8rem;
        flex-direction: column;
        gap: 0.25rem;
    }

    .queue-type-tab i {
        font-size: 1.2rem;
    }

    .queue-type-tab span {
        font-size: 0.7rem;
    }
}
