:root {
    --primary: #d4af37;
    --primary-dark: #b8941f;
    --primary-light: #f4e4a6;
    --secondary: #ffd700;
    --accent: #ffed4e;
    --dark: #0a0a0a;
    --darker: #000000;
    --light: #f8f8f8;
    --gray: #a0a0a0;
    --gray-dark: #505050;
    --glass: rgba(212, 175, 55, 0.1);
    --glass-dark: rgba(0, 0, 0, 0.5);
    --gradient: linear-gradient(135deg, #d4af37, #ffd700, #f4e4a6);
    --gradient-dark: linear-gradient(135deg, #0a0a0a, #1a1a1a, #2a2a2a);
    --gold-gradient: linear-gradient(135deg, #d4af37, #ffd700, #f4e4a6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.7;
    color: var(--light);
    background: var(--darker);
    background-image: 
        radial-gradient(at 80% 20%, rgba(212, 175, 55, 0.15) 0px, transparent 50%),
        radial-gradient(at 20% 80%, rgba(255, 215, 0, 0.1) 0px, transparent 50%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Анимированный фон */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.background-animation::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: var(--gold-gradient);
    animation: rotate 20s linear infinite;
    opacity: 0.03;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Партиклы */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.particle {
    position: absolute;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.1;
    animation: float 15s infinite linear;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); }
    25% { transform: translateY(-100px) translateX(100px) rotate(90deg); }
    50% { transform: translateY(0) translateX(200px) rotate(180deg); }
    75% { transform: translateY(100px) translateX(100px) rotate(270deg); }
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Хедер - УЛУЧШЕННАЯ ВЕРСИЯ ДЛЯ МОБИЛЬНЫХ */
header {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    min-height: 70px;
    display: flex;
    align-items: center;
}

header.scrolled {
    background: rgba(10, 10, 10, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    width: 100%;
    flex-wrap: nowrap;
    gap: 0.5rem;
}

/* Логотип - ОПТИМИЗИРОВАН ДЛЯ МОБИЛЬНЫХ */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
    min-width: 0;
}

.logo-icon {
    width: 35px;
    height: 35px;
    background: var(--gold-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    color: var(--dark);
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.logo h1 {
    font-size: 1.2rem;
    background: linear-gradient(135deg, var(--light), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.logo div {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.logo span {
    display: none;
}

/* Навигация - ОПТИМИЗИРОВАНА ДЛЯ МОБИЛЬНЫХ */
nav {
    flex: 0 0 auto;
    min-width: 0;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 0.3rem;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    justify-content: flex-end;
}

nav ul li a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    display: block;
    white-space: nowrap;
    font-size: 0.75rem;
}

nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gold-gradient);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav ul li a:hover::before,
nav ul li a.active::before {
    width: 80%;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-light);
}

/* Главная секция */
.hero {
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--light), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--gray);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.current-rate {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.rate, .cap {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.5rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--glass);
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 250px;
}

.rate::before, .cap::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.rate:hover::before, .cap:hover::before {
    left: 100%;
}

.rate:hover, .cap:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* Обзор статистики */
.stats-overview {
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-item {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid var(--glass);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    font-size: 2rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Статистика монет */
.coin-stats {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--light), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--glass);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gold-gradient);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.stat-header h4 {
    color: var(--gray);
    font-weight: 600;
    font-size: 1.1rem;
}

.stat-header .stat-icon {
    font-size: 1.5rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.stat-progress {
    background: var(--glass-dark);
    border-radius: 10px;
    overflow: hidden;
    height: 10px;
    margin: 1rem 0;
}

.stat-progress-bar {
    height: 100%;
    background: var(--gold-gradient);
    transition: width 0.5s ease;
    position: relative;
}

.stat-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.stat-description {
    color: var(--gray);
    font-size: 0.9rem;
}

.stat-percent {
    color: var(--secondary);
    font-weight: 600;
}

/* Секция с графиком */
.chart-section {
    padding: 80px 0;
    position: relative;
}

.chart-container {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid var(--glass);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    height: 400px;
    position: relative;
}

.chart-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

/* Особенности */
.features {
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--glass);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gold-gradient);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.feature-card h4 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* Информационная сетка */
.info {
    padding: 80px 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.info-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--glass);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gold-gradient);
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.info-card h4 {
    margin-bottom: 1rem;
    color: var(--gray);
    font-weight: 600;
    font-size: 1.1rem;
}

.info-card p {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Футер */
footer {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section p {
    color: var(--gray);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid var(--glass);
    padding-top: 2rem;
    text-align: center;
    color: var(--gray);
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--gradient);
    color: var(--dark);
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    font-family: inherit;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
    color: var(--dark);
    text-decoration: none;
}

.btn-gold {
    background: var(--gold-gradient);
    color: var(--dark);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--glass);
    color: var(--light);
}

.btn-outline:hover {
    background: var(--glass);
    border-color: var(--primary);
    color: var(--light);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

/* Анимации появления */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Уведомления */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    border: 1px solid transparent;
}

.alert-success {
    background: rgba(6, 214, 160, 0.1);
    border-color: rgba(6, 214, 160, 0.3);
    color: #06d6a0;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Формы */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--light);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--glass);
    border: 1px solid var(--glass);
    border-radius: 12px;
    color: #8c8b8b;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: var(--gray);
    font-size: 0.8rem;
}

/* Аутентификация - УВЕЛИЧЕННЫЕ ОТСТУПЫ ДЛЯ МОБИЛЬНЫХ */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 140px 0 2rem;
}

.auth-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--glass);
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    margin: 1rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    margin-bottom: 0.5rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
}

.auth-header p {
    color: var(--gray);
    font-size: 1rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass);
    color: var(--gray);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Личный кабинет и админ-панель - УВЕЛИЧЕННЫЕ ОТСТУПЫ */
.dashboard {
    padding: 140px 0 60px;
    min-height: 100vh;
}

.admin-panel {
    padding: 140px 0 60px;
    min-height: 100vh;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.user-welcome {
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-badge {
    background: var(--gold-gradient);
    color: var(--dark);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.balance-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.balance-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--glass);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.balance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gold-gradient);
}

.balance-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.balance-card h3 {
    margin-bottom: 1rem;
    color: var(--gray);
    font-weight: 600;
    font-size: 1.1rem;
}

.balance-amount {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.balance-change {
    font-size: 0.9rem;
    font-weight: 600;
}

.balance-change.positive {
    color: var(--secondary);
}

.balance-change.negative {
    color: #ef4444;
}

.actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.action-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--glass);
}

.action-card h3 {
    margin-bottom: 1.5rem;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
}

.tabs {
    display: flex;
    border-bottom: 1px solid var(--glass);
    margin-bottom: 1.5rem;
}

.tab {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.calculation-block {
    background: var(--glass-dark);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.calculation-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--glass);
}

.calculation-row:last-child {
    border-bottom: none;
}

.calculation-row.total {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
}

.history-section {
    margin-top: 2rem;
}

.history-tabs {
    display: flex;
    border-bottom: 1px solid var(--glass);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.history-tab {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
}

.history-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.history-content {
    display: none;
}

.history-content.active {
    display: block;
}

.table-container {
    overflow-x: auto;
    border-radius: 12px;
    background: var(--glass);
}

.history-table {
    width: 100%;
    border-collapse: collapse;
}

.history-table th,
.history-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--glass);
}

.history-table th {
    background: var(--glass-dark);
    font-weight: 600;
    color: var(--primary-light);
}

.history-table tr:last-child td {
    border-bottom: none;
}

.history-table tr:hover {
    background: rgba(212, 175, 55, 0.05);
}

.transaction-buy {
    background: rgba(6, 214, 160, 0.05);
}

.transaction-sell {
    background: rgba(239, 68, 68, 0.05);
}

.transaction-type {
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.transaction-type.buy {
    background: rgba(6, 214, 160, 0.2);
    color: #06d6a0;
}

.transaction-type.sell {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.status-pending {
    color: var(--secondary);
    font-weight: 600;
}

.status-completed {
    color: #06d6a0;
    font-weight: 600;
}

.status-rejected {
    color: #ef4444;
    font-weight: 600;
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--gray);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h4 {
    margin-bottom: 0.5rem;
    color: var(--light);
}

/* ЗАЯВКИ НА ПОПОЛНЕНИЕ - ОБНОВЛЕННЫЙ РАЗДЕЛ */
.deposit-requests {
    padding: 80px 0;
}

.deposit-requests .section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--light), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.deposit-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.deposit-filters .search-input {
    flex: 1;
    min-width: 250px;
    padding: 0.8rem 1rem;
    background: var(--glass);
    border: 1px solid var(--glass);
    border-radius: 10px;
    color: var(--light);
    font-size: 0.9rem;
}

.filter-select {
    padding: 0.8rem 1rem;
    background: var(--glass);
    border: 1px solid var(--glass);
    border-radius: 10px;
    color: var(--light);
    font-size: 0.9rem;
    min-width: 150px;
}

.deposit-requests-grid {
    display: grid;
    gap: 1.5rem;
}

.deposit-request-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid var(--glass);
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.deposit-request-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gold-gradient);
}

.deposit-request-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.deposit-request-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.deposit-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 200px;
}

.deposit-user-avatar {
    width: 50px;
    height: 50px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--dark);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.deposit-user-details {
    flex: 1;
}

.deposit-user-name {
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--light);
}

.deposit-user-email {
    color: var(--gray);
    font-size: 0.9rem;
}

.deposit-amount-info {
    text-align: right;
    flex-shrink: 0;
}

.deposit-amount {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.deposit-currency {
    color: var(--gray);
    font-size: 0.9rem;
}

.deposit-request-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--glass-dark);
    border-radius: 10px;
}

.detail-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-label {
    color: var(--gray);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-weight: 600;
    color: var(--light);
    font-size: 0.95rem;
}

.deposit-payment-method {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.8rem;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.method-icon {
    font-size: 1.2rem;
}

.method-name {
    font-weight: 600;
    color: var(--primary-light);
    font-size: 0.9rem;
}

.deposit-request-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.deposit-status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.status-pending {
    background: rgba(255, 215, 0, 0.2);
    color: var(--secondary);
    border: 1px solid rgba(255, 215, 0, 0.4);
}

.status-approved {
    background: rgba(6, 214, 160, 0.2);
    color: #06d6a0;
    border: 1px solid rgba(6, 214, 160, 0.4);
}

.status-rejected {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.status-processing {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.deposit-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.action-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-approve {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.btn-reject {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.btn-view {
    background: var(--glass);
    color: var(--light);
    border: 1px solid var(--glass);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.deposit-request-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass);
    color: var(--gray);
    font-size: 0.8rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.deposit-id {
    font-family: 'Courier New', monospace;
    background: var(--glass-dark);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
}

.deposit-time {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Модальное окно подтверждения */
.deposit-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.deposit-modal.active {
    display: flex;
}

.modal-content {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--glass);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    background: none;
    border: none;
    color: var(--gray);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--light);
}

.modal-body {
    margin-bottom: 2rem;
}

.confirmation-details {
    background: var(--glass-dark);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.confirmation-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--glass);
}

.confirmation-row:last-child {
    border-bottom: none;
}

.confirmation-label {
    color: var(--gray);
    font-weight: 500;
}

.confirmation-value {
    font-weight: 600;
    color: var(--light);
}

.confirmation-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* Админ-панель */
.admin-header {
    margin-bottom: 2rem;
}

.admin-subtitle {
    color: var(--gray);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.admin-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
}

.admin-sidebar {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid var(--glass);
    padding: 1.5rem;
    position: sticky;
    top: 120px;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--glass-dark);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.admin-avatar {
    width: 40px;
    height: 40px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.admin-info {
    flex: 1;
}

.admin-info strong {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--light);
}

.admin-info span {
    color: var(--gray);
    font-size: 0.9rem;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: var(--light);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.admin-nav-link:hover,
.admin-nav-link.active {
    background: var(--glass-dark);
    color: var(--primary-light);
}

.nav-icon {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.admin-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
}

.admin-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.admin-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Формы в админке */
.admin-form {
    background: var(--glass);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
}

/* Списки */
.users-list,
.withdrawals-list,
.deposits-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.search-input {
    padding: 0.5rem 1rem;
    background: var(--glass);
    border: 1px solid var(--glass);
    border-radius: 8px;
    color: var(--light);
    width: 250px;
    font-size: 0.9rem;
}

.user-item,
.withdrawal-item,
.deposit-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--glass);
    border-radius: 12px;
    transition: all 0.3s ease;
    flex-wrap: wrap;
}

.user-item:hover,
.withdrawal-item:hover,
.deposit-item:hover {
    transform: translateX(5px);
    background: rgba(212, 175, 55, 0.15);
}

.user-main,
.withdrawal-main,
.deposit-main {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    min-width: 300px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--gold-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--dark);
    font-size: 1.1rem;
}

.user-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.user-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
}

.user-badge.admin {
    background: var(--gold-gradient);
    color: var(--dark);
}

.user-meta {
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

.user-balance {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: right;
    min-width: 150px;
}

.balance-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-end;
}

.balance-label {
    color: var(--gray);
    font-size: 0.9rem;
}

.balance-value {
    font-weight: 600;
}

.user-actions {
    display: flex;
    gap: 0.5rem;
}

.inline-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-select {
    padding: 0.5rem;
    background: var(--glass);
    color: #8c8b8b;
    border: 1px solid var(--glass);
    border-radius: 6px;
    font-size: 0.9rem;
}

.withdrawal-details,
.deposit-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 200px;
}

.detail-item {
    display: flex;
    gap: 0.5rem;
}

.detail-label {
    color: var(--gray);
    font-size: 0.9rem;
    min-width: 80px;
}

.detail-value {
    font-weight: 500;
}

.withdrawal-actions,
.deposit-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.withdrawal-status,
.deposit-status {
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-pending {
    background: rgba(255, 215, 0, 0.2);
    color: var(--secondary);
}

.status-completed {
    background: rgba(6, 214, 160, 0.2);
    color: #06d6a0;
}

.status-rejected {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Системная информация */
.system-info,
.system-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--glass);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--gray);
}

.info-value {
    font-weight: 600;
    color: var(--primary-light);
}

.stats-grid.compact {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat-item.compact {
    padding: 1rem;
    background: var(--glass-dark);
}

.stat-change {
    font-size: 0.8rem;
    font-weight: 600;
}

.stat-change.positive {
    color: var(--secondary);
}

.stat-change.warning {
    color: var(--accent);
}

/* Распределение монет */
.coin-distribution {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.distribution-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.distribution-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.distribution-bar {
    height: 8px;
    background: var(--glass-dark);
    border-radius: 4px;
    overflow: hidden;
}

.distribution-fill {
    height: 100%;
    background: var(--gold-gradient);
    transition: width 0.5s ease;
}

.distribution-value {
    font-size: 0.8rem;
    color: var(--gray);
}

.coin-stats-detailed {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-detail {
    text-align: center;
    padding: 1rem;
    background: var(--glass);
    border-radius: 8px;
}

.stat-detail .stat-label {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.stat-detail .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-detail .stat-percent {
    font-size: 0.9rem;
    color: var(--secondary);
    font-weight: 600;
}

.distribution-visual {
    display: flex;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--glass);
}

.distribution-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.8rem;
    transition: width 0.5s ease;
}

.distribution-segment.circulating {
    background: var(--gold-gradient);
}

.distribution-segment.available {
    background: var(--primary-light);
}

/* Быстрые действия */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

/* Стили для изменения курса */
.rate-change, .cap-change {
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.rate-change.positive, .cap-change.positive {
    color: #06d6a0;
}

.rate-change.negative, .cap-change.negative {
    color: #ef4444;
}

.rate, .cap {
    position: relative;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rate .currency-value, .cap .currency-value {
    font-size: 1.3rem;
    font-weight: 700;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 0.5rem;
}

/* Стили для пополнений */
.payment-details {
    background: var(--glass-dark);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.payment-details .detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--glass);
}

.payment-details .detail-item:last-child {
    border-bottom: none;
}

/* АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ */

@media (max-width: 1024px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-sidebar {
        position: static;
    }
    
    .admin-row {
        grid-template-columns: 1fr;
    }
    
    .stats-row {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stats-grid.compact {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Хедер - исправляем наложение элементов */
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.8rem 0;
        flex-wrap: nowrap;
        gap: 0.5rem;
    }
    
    .logo {
        min-width: auto;
        flex: 0 0 auto;
        gap: 0.5rem;
    }
    
    .logo-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .logo h1 {
        font-size: 1.2rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 120px;
    }
    
    .logo div {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    
    .logo span {
        display: none;
    }
    
    nav {
        min-width: auto;
        flex: 0 0 auto;
    }
    
    nav ul {
        gap: 0.3rem;
        flex-wrap: nowrap;
        justify-content: flex-end;
    }
    
    nav ul li a {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
        white-space: nowrap;
    }

    /* Увеличиваем отступы для форм аутентификации */
    .auth-container {
        padding: 140px 0 2rem;
        min-height: calc(100vh - 140px);
    }
    
    .auth-card {
        margin: 1rem 0.5rem;
        padding: 2rem 1.5rem;
    }

    /* Улучшаем отображение в личном кабинете и админ-панели */
    .dashboard,
    .admin-panel {
        padding: 140px 0 40px;
    }

    /* Герой-секция - улучшаем отступы */
    .hero {
        padding: 140px 0 60px;
    }

    /* Заявки на пополнение - адаптивность */
    .deposit-request-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .deposit-amount-info {
        text-align: left;
        width: 100%;
    }
    
    .deposit-request-details {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .deposit-request-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .deposit-status-badge {
        align-self: flex-start;
    }
    
    .deposit-actions {
        justify-content: stretch;
    }
    
    .action-btn {
        flex: 1;
        justify-content: center;
    }
    
    .deposit-request-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    
    .deposit-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .deposit-filters .search-input,
    .filter-select {
        min-width: auto;
    }
    
    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .confirmation-actions {
        flex-direction: column;
    }
    
    .confirmation-actions .btn {
        width: 100%;
    }

    /* Улучшаем навигацию в админ-панели */
    .admin-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .admin-nav-link {
        flex: 1;
        min-width: 100px;
        padding: 0.8rem 0.5rem;
        font-size: 0.8rem;
        justify-content: center;
    }
    
    .nav-text {
        font-size: 0.75rem;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .balance-cards {
        grid-template-columns: 1fr;
    }
    
    .actions {
        grid-template-columns: 1fr;
    }
    
    .user-item,
    .withdrawal-item,
    .deposit-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .user-balance {
        text-align: left;
        flex-direction: row;
        gap: 1rem;
        width: 100%;
        justify-content: space-between;
    }
    
    .balance-item {
        justify-content: space-between;
        flex: 1;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .search-input {
        width: 100%;
    }
    
    .withdrawal-actions,
    .deposit-actions {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .inline-form {
        flex-direction: column;
        width: 100%;
    }
    
    .admin-user {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .admin-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .admin-nav-link {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
    
    .nav-text {
        font-size: 0.9rem;
    }
    
    /* Специфичные стили для deposit-item на мобильных */
    .deposit-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        min-width: auto;
        width: 100%;
    }
    
    .deposit-user {
        min-width: auto;
    }
    
    .deposit-details {
        width: 100%;
    }
    
    .deposit-actions {
        width: 100%;
    }
    
    .deposit-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 0 15px;
    }
    
    .header-content {
        padding: 0.6rem 0;
    }
    
    .logo h1 {
        font-size: 1rem;
        max-width: 100px;
    }
    
    .logo-icon {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    nav ul li a {
        padding: 0.3rem 0.4rem;
        font-size: 0.7rem;
    }
    
    /* Увеличиваем отступы для очень маленьких экранов */
    .auth-container {
        padding: 130px 0 1rem;
        min-height: calc(100vh - 130px);
    }
    
    .dashboard,
    .admin-panel {
        padding: 130px 0 30px;
    }
    
    .hero {
        padding: 130px 0 40px;
    }
    
    .auth-card {
        padding: 1.5rem 1rem;
        margin: 0.5rem;
    }

    /* Заявки на пополнение - улучшения для маленьких экранов */
    .deposit-request-card {
        padding: 1rem;
    }
    
    .deposit-user-info {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .deposit-user-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .deposit-amount {
        font-size: 1.5rem;
    }
    
    .action-btn {
        padding: 0.8rem 1rem;
        font-size: 0.8rem;
    }
    
    .modal-content {
        padding: 1rem;
    }

    /* Улучшаем элементы форм */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Админ-навигация для очень маленьких экранов */
    .admin-nav {
        gap: 0.3rem;
    }
    
    .admin-nav-link {
        min-width: 80px;
        padding: 0.6rem 0.3rem;
        font-size: 0.7rem;
    }
    
    .nav-icon {
        font-size: 1rem;
    }

    .tabs,
    .history-tabs {
        flex-direction: column;
    }
    
    .tab,
    .history-tab {
        width: 100%;
        text-align: center;
    }
    
    .user-main,
    .withdrawal-main,
    .deposit-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .user-actions {
        width: 100%;
        justify-content: stretch;
    }
    
    .user-actions .btn {
        flex: 1;
        text-align: center;
    }
}

/* Дополнительные исправления для Safari на iOS */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        .auth-container {
            padding-top: 150px;
        }
        
        .dashboard,
        .admin-panel {
            padding-top: 150px;
        }
    }
}

/* Гарантируем, что контент не скрывается под фиксированным хедером */
main {
    position: relative;
    z-index: 1;
}

/* Улучшаем скроллинг на мобильных */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 140px;
    }
}

/* Исправления для Safari */
@supports (-webkit-touch-callout: none) {
    .background-animation::before {
        animation-duration: 30s;
    }
    
    header, .auth-card, .action-card, .balance-card, .info-card, .chart-container,
    .admin-sidebar, .admin-form, .user-item, .withdrawal-item, .deposit-item,
    .deposit-request-card, .modal-content {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(10, 10, 10, 0.95);
    }
}

/* Анимации для заявок на пополнение */
.deposit-request-card {
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Состояние загрузки */
.deposit-request-card.loading {
    position: relative;
    overflow: hidden;
}

.deposit-request-card.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Пустое состояние для заявок */
.deposit-requests-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray);
}

.deposit-requests-empty .empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.deposit-requests-empty h3 {
    margin-bottom: 0.5rem;
    color: var(--light);
    font-size: 1.5rem;
}

.deposit-requests-empty p {
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* Стили для розыгрыша */
.lottery-timer {
    background: linear-gradient(135deg, #d4af37, #ffd700);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 1rem;
    color: #000;
}

.timer-label {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timer-display {
    font-size: 1.5rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.lottery-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-item {
    text-align: center;
    padding: 0.5rem;
    background: var(--glass);
    border-radius: 8px;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--gray);
}

.stat-value {
    display: block;
    font-weight: bold;
    color: var(--secondary);
}

.participants-scroll, .winners-scroll {
    max-height: 300px;
    overflow-y: auto;
}

.participant-item, .winner-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: var(--glass);
    border-radius: 8px;
    border-left: 3px solid transparent;
}

.participant-item.winner {
    border-left-color: var(--secondary);
    background: rgba(212, 175, 55, 0.1);
}

.participant-email, .winner-email {
    font-family: monospace;
}

.participant-date, .winner-date {
    font-size: 0.8rem;
    color: var(--gray);
}

.winner-badge {
    color: var(--secondary);
    font-size: 1.2rem;
}

.winner-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.winner-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: bold;
}

.participants-preview {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.participants-preview h5 {
    margin-bottom: 0.5rem;
    color: var(--gray);
}

.participants-scroll .participant-email {
    padding: 0.25rem 0;
    font-family: monospace;
    border-bottom: 1px solid var(--glass-border);
}

.participants-scroll .participant-email:last-child {
    border-bottom: none;
}

/* Адаптивность */
@media (max-width: 768px) {
    .lottery-stats {
        grid-template-columns: 1fr;
    }
    
    .participant-item, .winner-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}