.gradient-mesh {
    background-color: #030712;
    background-image:
        radial-gradient(at 0% 0%, hsla(220, 100%, 15%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(250, 100%, 10%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(220, 100%, 15%, 1) 0, transparent 50%);
}

.animated-wave {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 51, 234, 0.1) 50%, rgba(59, 130, 246, 0.1) 100%);
    mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 320" xmlns="http://www.w3.org/2000/svg"><path fill="black" d="M0,160L48,176C96,192,192,224,288,224C384,224,480,192,576,165.3C672,139,768,117,864,128C960,139,1056,181,1152,197.3C1248,213,1344,203,1392,197.3L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    mask-repeat: repeat-x;
    mask-size: 200% 100%;
    animation: move-wave 15s linear infinite;
}

@keyframes move-wave {
    0% { mask-position: 0 0; }
    100% { mask-position: 200% 0; }
}

.glow-hover:hover {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.glass {
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

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

::-webkit-scrollbar-track {
    background: #030712;
}

::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2563eb;
}

.hero-video {
    filter: brightness(0.54) saturate(0.92);
    transform: scale(1.3);
    transform-origin: center center;
}

.hero-video-overlay {
    background: linear-gradient(to top, rgba(3, 7, 18, 0.90), rgba(3, 7, 18, 0.58), rgba(3, 7, 18, 0.18));
}

.anim-delay-100 { animation-delay: 100ms; }
.anim-delay-200 { animation-delay: 200ms; }
.anim-delay-300 { animation-delay: 300ms; }
.anim-delay-400 { animation-delay: 400ms; }

.reveal-delay-50 { transition-delay: 50ms; }
.reveal-delay-150 { transition-delay: 150ms; }
.reveal-delay-250 { transition-delay: 250ms; }
.reveal-delay-350 { transition-delay: 350ms; }
.reveal-delay-450 { transition-delay: 450ms; }
.reveal-delay-200 { transition-delay: 200ms; }

.cookie-banner {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    z-index: 8999;
    width: calc(100% - 48px);
    max-width: 680px;
    background: rgba(10, 14, 22, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 20px;
    padding: 20px 24px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    pointer-events: none;
}

.cookie-banner-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    border: 1px solid rgba(59, 130, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-banner-copy {
    flex: 1;
    min-width: 200px;
}

.cookie-banner-text {
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.6;
    margin: 0;
}

.cookie-banner-link {
    color: #60a5fa;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-banner-btn-secondary {
    padding: 9px 18px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    transition: all 0.2s;
}

.cookie-banner-btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.25);
    color: #e2e8f0;
}

.cookie-banner-btn-primary {
    padding: 9px 22px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    background: linear-gradient(90deg, #3b82f6, #6366f1);
    border: none;
    color: #fff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
    transition: opacity 0.2s, transform 0.2s;
}

.cookie-banner-btn-primary:hover {
    opacity: 0.85;
    transform: scale(1.03);
}

.auth-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9000;
    align-items: center;
    justify-content: center;
}

.auth-modal.active {
    display: flex !important;
}

.auth-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
}

.auth-modal-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    margin: 16px;
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 36px;
}

.auth-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: #64748b;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.auth-brand {
    text-align: center;
    margin-bottom: 28px;
}

.auth-brand-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.2em;
}

.auth-brand-subtitle {
    color: #64748b;
    font-size: 13px;
    margin-top: 4px;
}

.auth-view-hidden {
    display: none;
}

.auth-mb-8 { margin-bottom: 8px; }
.auth-mb-12 { margin-bottom: 12px; }
.auth-mb-14 { margin-bottom: 14px; }
.auth-mb-16 { margin-bottom: 16px; }
.auth-mb-20 { margin-bottom: 20px; }
.auth-mt-20 {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #64748b;
}

.modal-field {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #e2e8f0;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.modal-field:focus {
    border-color: rgba(99, 102, 241, 0.5) !important;
}

.modal-message {
    display: none;
    font-size: 13px;
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: 8px;
}

.modal-message-error {
    color: #f87171;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.modal-message-success {
    color: #34d399;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.modal-submit-btn {
    width: 100%;
    padding: 13px;
    background: linear-gradient(90deg, #6366f1, #a855f7);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.modal-submit-btn:hover {
    opacity: 0.85;
}

.auth-link {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
}

.auth-strength-track {
    height: 3px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.auth-strength-group {
    display: grid;
    gap: 6px;
    max-height: 40px;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.2s ease, opacity 0.2s ease, margin-bottom 0.2s ease;
}

.auth-strength-group.is-hidden {
    display: none;
    max-height: 0;
    opacity: 0;
    margin-bottom: 0 !important;
}

.auth-strength-bar {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    transition: width 0.35s ease, background 0.35s ease;
}

.auth-strength-msg {
    font-size: 11px;
    min-height: 0;
    line-height: 1.35;
    transition: color 0.3s;
    color: #64748b;
}

.auth-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.2s;
}

.auth-consent-box-wrap {
    position: relative;
    flex-shrink: 0;
    margin-top: 1px;
}

.auth-consent-input {
    position: absolute;
    opacity: 0;
    inset: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.auth-consent-box {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.auth-consent-check {
    display: none;
}

.auth-consent-text {
    font-size: 12px;
    color: #64748b;
    line-height: 1.6;
}

.auth-consent-link {
    color: #6366f1;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.modal-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: modal-spin .7s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

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