body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #000000;
    color: #ffffff;
    -webkit-font-smoothing: antialiased;
    user-select: none;
    -webkit-user-select: none;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}
.animate-float {
    animation: float 4s ease-in-out infinite;
}

.ease-spring {
    transition-timing-function: cubic-bezier(0.32, 0.72, 0, 1);
}

/* Скрытие скроллбара */
::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Убираем стрелки у input number */
input[type="tel"]::-webkit-outer-spin-button,
input[type="tel"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Стилизация полей ввода OTP */
.otp-input {
    caret-color: #000;
}
.otp-input:focus {
    outline: 2px solid #000;
}
.otp-input.error {
    background-color: #fff0f0;
    color: #ff3b30;
    outline-color: #ff3b30;
}

/* Пользовательские классы */
.font-semibold {
    font-weight: 700 !important;
}

/* iOS 26 Liquid Glass Style */
.liquid-glass {
    background: rgba(245, 245, 245, 0.55);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow:
        0 20px 40px -10px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.dark .liquid-glass {
    background: rgba(47, 47, 47, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 20px 40px -10px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Nav indicator dark mode */
.dark #nav-indicator {
    background: #1F1F1F;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

/* Reusable nav button colors (toggled by JS) */
.nav-btn-active { color: #000000; }
.nav-btn-inactive { color: #A2A2A2; }
.dark .nav-btn-active { color: #DFDFDF; }
.dark .nav-btn-inactive { color: #616161; }

/* Skeleton loading animation */
@keyframes shimmer {
    0% { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}
.skeleton {
    background: linear-gradient(90deg, #F0F0F0 25%, #E0E0E0 50%, #F0F0F0 75%);
    background-size: 400px 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 6px;
}
.dark .skeleton {
    background: linear-gradient(90deg, #2F2F2F 25%, #3A3A3A 50%, #2F2F2F 75%);
    background-size: 400px 100%;
}

/* Reusable Toggle Switch */
.toggle-switch {
    width: 39px;
    height: 24px;
    border-radius: 12px;
    background: #E6E6E6;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}
.dark .toggle-switch {
    background: #1F1F1F;
}
.toggle-switch::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 10px;
    background: #ffffff;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
}
.toggle-switch.active {
    background: #0285FF;
}
.toggle-switch.active::after {
    transform: translateX(15px);
}

/* Защита от системных заголовков Telegram */
:root {
    --safe-top: max(env(safe-area-inset-top), 24px);
}
