* {
    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;
    overflow-x: hidden;
}

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;
}

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

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

input[type="text"],
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-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-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-icon {
    flex-shrink: 0;
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    left: 0;
    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(auto-fit, minmax(110px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.load-option {
    cursor: pointer;
}

.load-option input {
    display: none;
}

.load-content {
    padding: 1rem 0.75rem;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
    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;
    gap: 0.5rem;
}

.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.9rem;
    position: relative;
    z-index: 1;
    letter-spacing: 0.025em;
    color: rgba(255, 255, 255, 0.95);
}

.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;
    }

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

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

    .modal-content {
        padding: 1.5rem;
    }

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

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

    .user-dropdown-menu {
        right: auto;
        left: 0;
    }
}

/* 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);
}

.direction-header h3 {
    font-size: 1.25rem;
    margin: 0;
    color: white;
    font-weight: 700;
}

.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-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: 1rem;
}

.direction-option {
    cursor: pointer;
}

.direction-option input {
    display: none;
}

.direction-option-content {
    padding: 1.5rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
    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);
}

.direction-arrow {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.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: 1rem;
}

.queue-option {
    cursor: pointer;
}

.queue-option input {
    display: none;
}

.queue-content {
    padding: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
    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;
    }

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

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

    .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);
}

.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;
}
