/* 🎨 Stars Banking - iOS Темная тема с Material Icons */

:root {
    /* iOS темные цвета */
    --bg-primary: #000000;
    --bg-secondary: #1C1C1E;
    --bg-elevated: rgba(255, 255, 255, 0.05);
    
    /* Акцентные (iOS стиль) */
    --accent-primary: #0A84FF;
    --accent-secondary: #5E5CE6;
    --gradient-main: linear-gradient(135deg, #0A84FF, #5E5CE6);
    --gradient-gold: linear-gradient(135deg, #FFD700, #FFA500);
    
    /* Текст */
    --text-primary: #FFFFFF;
    --text-secondary: #8E8E93;
    --text-tertiary: #48484A;
    
    /* Статусы */
    --success: #30D158;
    --error: #FF453A;
    --warning: #FF9F0A;
    
    /* Эффекты */
    --blur: blur(20px);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    --glow: 0 0 20px rgba(10, 132, 255, 0.4);
    
    /* Размеры */
    --border-radius: 24px;
    --border-radius-sm: 16px;
    --border-radius-lg: 32px;
    --spacing: 16px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', 'Roboto', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    user-select: none;
    -webkit-user-select: none;
}

/* Material Icons стиль */
.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.nav-icon.material-icons {
    font-size: 24px;
}

#app {
    min-height: 100vh;
    padding-bottom: 120px;
    animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============== iOS Плавные анимации =============== */

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

.page {
    animation: slideInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card {
    animation: scaleIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:active {
    transform: scale(0.98);
}

.btn {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:active {
    transform: scale(0.96);
}

/* =============== Loader =============== */

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--bg-elevated);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* =============== Header =============== */

.header {
    background: linear-gradient(180deg, rgba(18, 23, 43, 0.95) 0%, rgba(18, 23, 43, 0.98) 100%);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-bottom: none;
    padding: 12px 16px;
    padding-bottom: 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    /* iOS-стиль: закругление только снизу */
    border-radius: 0 0 24px 24px;
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.4),
        0 0 1px rgba(255, 255, 255, 0.1) inset;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

/* Кнопка входа в header */
.btn-login {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(10, 132, 255, 0.1);
    border: 2px solid #0A84FF;
    border-radius: 12px;
    color: #0A84FF;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(10, 132, 255, 0.2);
}

.btn-login:hover {
    background: rgba(10, 132, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 132, 255, 0.3);
}

.btn-login:active {
    transform: scale(0.96);
}

.btn-login .material-icons {
    font-size: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 
        0 3px 12px rgba(59, 130, 246, 0.3),
        0 0 0 2px rgba(59, 130, 246, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.avatar:hover {
    transform: scale(1.05);
    box-shadow: 
        0 4px 16px rgba(59, 130, 246, 0.4),
        0 0 0 3px rgba(59, 130, 246, 0.15);
}

.user-details {
    min-width: 0;
    flex: 1;
}

.user-details h2 {
    font-size: 16px;
    font-weight: 600;
    transition: color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-id {
    font-size: 11px;
    color: var(--text-secondary);
}

/* Контейнер для баланса с закругленным фоном */
.balance-container {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 16px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 3px 12px rgba(0, 0, 0, 0.2),
        0 1px 0 rgba(255, 255, 255, 0.05) inset;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    min-width: fit-content; /* Адаптируется под размер контента */
}

.balance-container:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    transform: scale(1.02);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.3),
        0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

.balance-display {
    text-align: right;
}

.balance-label {
    font-size: 9px; /* Начальный размер, JS будет его динамически менять */
    color: var(--text-secondary);
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    font-weight: 500;
    transition: font-size 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.balance-value {
    font-size: 22px; /* Начальный размер, JS будет его динамически менять */
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    transition: font-size 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.2;
    white-space: nowrap; /* Не переносим текст */
}

.balance-currency {
    font-size: 16px; /* Начальный размер, JS будет его динамически менять */
    margin-left: 2px;
    filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.3));
    transition: font-size 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 12px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 2s infinite;
}

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

/* =============== Main Content =============== */

.main-content {
    padding: var(--spacing);
    display: flex;
    flex-direction: column;
    gap: var(--spacing);
}

/* =============== Cards =============== */

.card {
    padding: 24px;
    border-radius: var(--border-radius);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 1px 0 rgba(255, 255, 255, 0.05) inset;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px) scale(1.01);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

.card-icon {
    font-size: 48px;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.card-description {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
}

/* =============== Inputs =============== */

.input-amount {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
}

.input-amount:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 
        0 0 0 4px rgba(59, 130, 246, 0.1),
        0 4px 16px rgba(59, 130, 246, 0.2);
    transform: scale(1.01);
}

.input-amount::placeholder {
    color: var(--text-tertiary);
}

/* =============== Buttons =============== */

.btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

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

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px) scale(1.02);
}

.btn-secondary:active {
    transform: translateY(0) scale(0.98);
}

.btn-accent {
    background: var(--gradient-gold);
    color: var(--bg-primary);
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-accent:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.4);
}

.btn-accent:active {
    transform: translateY(0) scale(0.98);
}

.quick-amounts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.btn-amount {
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
}

.btn-amount:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    transform: scale(1.05);
}

.btn-amount:active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: scale(0.95);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.btn-link {
    background: none;
    border: none;
    color: var(--accent-primary);
    text-decoration: underline;
    cursor: pointer;
    padding: 4px 0;
    font-size: 14px;
    transition: all 0.2s ease;
}

.btn-link:hover {
    color: #60A5FA;
    transform: translateX(2px);
}

/* =============== Verification Warning =============== */

.verification-warning {
    margin-top: 12px;
    padding: 12px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error);
    border-radius: var(--border-radius);
    color: var(--error);
    font-size: 14px;
    text-align: center;
}

/* =============== Transactions =============== */

.transactions-list {
    max-height: 300px;
    overflow-y: auto;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-sm);
    margin-bottom: 8px;
}

.transaction-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.transaction-type {
    font-size: 14px;
    font-weight: 600;
}

.transaction-date {
    font-size: 12px;
    color: var(--text-secondary);
}

.transaction-amount {
    font-size: 18px;
    font-weight: 700;
}

.transaction-amount.positive {
    color: var(--success);
}

.transaction-amount.negative {
    color: var(--error);
}

.empty-state {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px 20px;
    animation: fadeIn 0.5s ease-out;
}

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

/* =============== Bottom Navigation =============== */

.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    background: rgba(28, 28, 30, 0.75);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-radius: 24px;
    padding: 8px;
    z-index: 100;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.4),
        0 0 0 0.5px rgba(255, 255, 255, 0.08);
    /* Адаптивная ширина */
    width: calc(100% - 32px);
    max-width: 500px;
}

/* Слайдер-индикатор */
.bottom-nav::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(25% - 4px);
    height: calc(100% - 8px);
    background: linear-gradient(135deg, rgba(10, 132, 255, 0.25), rgba(94, 92, 230, 0.25));
    border-radius: 20px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    pointer-events: none;
}

/* Позиции слайдера для каждой вкладки */
.bottom-nav[data-active="0"]::before {
    transform: translateX(0);
}

.bottom-nav[data-active="1"]::before {
    transform: translateX(calc(100% + 4px));
}

.bottom-nav[data-active="2"]::before {
    transform: translateX(calc(200% + 8px));
}

.bottom-nav[data-active="3"]::before {
    transform: translateX(calc(300% + 12px));
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 12px 8px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.nav-item:active {
    transform: scale(0.95);
}

.nav-item.active {
    color: var(--accent-primary);
}

.nav-item.active .nav-icon {
    transform: scale(1.1);
}

.nav-icon {
    font-size: 24px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-label {
    font-size: 11px;
    font-weight: 600;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Адаптивность для разных экранов */
@media (max-width: 480px) {
    .bottom-nav {
        width: calc(100% - 24px);
        bottom: 16px;
    }
}

@media (min-width: 768px) {
    .bottom-nav {
        width: calc(100% - 64px);
        max-width: 600px;
    }
}

/* =============== Modal =============== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: var(--spacing);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content {
    width: 100%;
    max-width: 400px;
    padding: 32px;
    border-radius: 24px;
    text-align: center;
}

.modal-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.modal-content h2 {
    margin-bottom: 16px;
    font-size: 24px;
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.6;
}

.modal-content .btn {
    margin-top: 12px;
}

.modal-content .input-amount {
    margin: 20px 0;
}

/* =============== Toast =============== */

.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-elevated);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    padding: 16px 24px;
    border-radius: var(--border-radius);
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow);
    z-index: 2000;
    opacity: 0;
    transition: all 0.3s ease;
    min-width: 200px;
    text-align: center;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* =============== Scrollbar =============== */

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

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 3px;
}

/* =============== Responsive =============== */

@media (max-width: 480px) {
    .header {
        padding: 10px 12px;
        padding-bottom: 14px;
        border-radius: 0 0 20px 20px;
    }
    
    .avatar {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .user-details h2 {
        font-size: 15px;
    }
    
    .balance-container {
        padding: 6px 12px;
        border-radius: 14px;
    }
    
    .balance-label {
        font-size: 8px;
    }
    
    .balance-value {
        font-size: 20px;
    }
    
    .balance-currency {
        font-size: 14px;
    }
    
    .card {
        padding: 16px;
    }
}

/* =============== Pages =============== */

.page {
    display: none;
}

.page.active {
    display: block;
}

/* =============== Guide Content =============== */

.guide-content {
    padding: 8px 0;
}

.guide-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 20px 0 8px 0;
    color: var(--text-primary);
}

.guide-content h4:first-child {
    margin-top: 0;
}

.guide-content p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.guide-content code {
    background: var(--bg-secondary);
    padding: 4px 8px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    color: var(--accent-primary);
    font-size: 13px;
}

/* =============== Stats Grid =============== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.stat-item {
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: var(--border-radius-sm);
    text-align: center;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-primary);
    word-wrap: break-word; /* Переносим длинные числа если нужно */
    line-height: 1.2;
}

/* =============== Username Warning Button Hover =============== */

#closeAppBtn:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.6);
}

#closeAppBtn:active {
    transform: scale(0.98);
}

/* =============== Remind Later Button =============== */

#remindLaterBtn {
    background: linear-gradient(135deg, #F59E0B, #D97706) !important;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
    }
    50% {
        box-shadow: 0 6px 24px rgba(245, 158, 11, 0.5);
    }
}

#remindLaterBtn:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 8px 28px rgba(245, 158, 11, 0.5) !important;
}

#remindLaterBtn:active {
    transform: translateY(0) scale(0.98) !important;
}

/* =============== Verification Check Modal Animations =============== */

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

/* 🆕 Класс для анимации ошибки при вводе */
.shake-animation {
    animation: shake 0.3s ease-in-out;
}

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

/* =============== Auth Modal Styles =============== */

.modal-close-btn:hover {
    background: rgba(255,255,255,0.15) !important;
    transform: rotate(90deg);
}

.auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 4px;
}

.auth-tab {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-tab.active {
    background: #0A84FF !important;
    color: white !important;
}

.auth-tab:not(.active) {
    background: transparent;
    color: #8E8E93;
}

.auth-tab:not(.active):hover {
    background: rgba(255,255,255,0.05);
    color: #FFFFFF;
}

.auth-form input[type="text"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: white;
    font-size: 15px;
    transition: all 0.2s;
}

.auth-form input:focus {
    outline: none;
    border-color: #0A84FF;
    background: rgba(10, 132, 255, 0.05);
}

.auth-form input::placeholder {
    color: #8E8E93;
}

