/* ============================================
   assets/css/style.css - ПОЛНЫЕ СТИЛИ ДЛЯ ВСЕГО САЙТА
   ============================================ */

/* ============================================
   ОБЩИЕ СТИЛИ
   ============================================ */
:root {
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --secondary: #2c3e50;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --info: #3498db;
    --light: #f8f9fa;
    --dark: #2c3e50;
    --text-muted: #7f8c8d;
    --border-radius: 12px;
    --box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
    color: #2c3e50;
    line-height: 1.6;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* ============================================
   ГЛАВНАЯ СТРАНИЦА (site/index.php)
   ============================================ */
body.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Карточки */
.card-glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* Кнопки */
.btn-tg {
    background: #0088cc;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-size: 18px;
    transition: var(--transition);
}

.btn-tg:hover {
    background: #006699;
    color: white;
    transform: scale(1.05);
}

/* Фичи */
.feature-icon {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 20px;
}

.feature-card {
    padding: 30px;
    border-radius: 15px;
    background: #f8f9fa;
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Статистика на главной */
.stat-number {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary);
}

.stat-label {
    color: #6c757d;
    font-size: 16px;
}

/* Навигация */
.navbar-custom {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.telegram-login {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wow {
    visibility: hidden;
}

/* Прайс-карты */
.pricing-card {
    padding: 30px;
    border-radius: 15px;
    background: white;
    transition: var(--transition);
    height: 100%;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.pricing-card.popular {
    border: 2px solid var(--primary);
}

.pricing-card .badge-popular {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
}

.pricing-card .price {
    font-size: 36px;
    font-weight: bold;
    color: var(--dark);
}

.pricing-card .price span {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: normal;
}

.btn-outline-primary-custom {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    padding: 10px 30px;
    border-radius: 10px;
    font-weight: bold;
    transition: var(--transition);
    width: 100%;
}

.btn-outline-primary-custom:hover {
    background: var(--primary);
    color: white;
}

.btn-primary-custom {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 10px;
    font-weight: bold;
    transition: var(--transition);
    width: 100%;
}

.btn-primary-custom:hover {
    background: var(--primary-dark);
    color: white;
    transform: scale(1.02);
}

/* FAQ */
.accordion-button:not(.collapsed) {
    background: var(--primary);
    color: white;
}

.accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

/* ============================================
   ЛИЧНЫЙ КАБИНЕТ (site/cabinet.php)
   ============================================ */
/* Сайдбар */
.sidebar {
    min-height: 100vh;
    background: var(--secondary);
    padding: 20px;
    position: sticky;
    top: 0;
}

.sidebar a {
    color: #ecf0f1;
    text-decoration: none;
    padding: 12px 15px;
    display: block;
    border-radius: 8px;
    margin-bottom: 3px;
    transition: var(--transition);
}

.sidebar a:hover,
.sidebar a.active {
    background: #34495e;
}

.sidebar a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.sidebar a .badge {
    float: right;
    margin-top: 2px;
}

.sidebar .user-info {
    color: white;
    padding: 20px 15px;
    border-bottom: 1px solid #34495e;
    margin-bottom: 20px;
    text-align: center;
}

.sidebar .user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 10px auto;
}

.sidebar .balance-badge {
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    display: inline-block;
}

/* Основной контент */
.main-content {
    padding: 30px;
}

/* ============================================
   КАРТОЧКИ СТАТИСТИКИ
   ============================================ */
.stat-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px 25px;
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.10);
}

.stat-card .number {
    font-size: 32px;
    font-weight: bold;
    color: var(--dark);
}

.stat-card .label {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 5px;
}

.stat-card .icon {
    font-size: 36px;
    position: absolute;
    right: 20px;
    top: 20px;
    opacity: 0.15;
}

.stat-card.primary .number { color: var(--primary); }
.stat-card.success .number { color: var(--success); }
.stat-card.warning .number { color: var(--warning); }
.stat-card.danger .number { color: var(--danger); }
.stat-card.info .number { color: var(--info); }

/* ============================================
   БЭДЖИ СТАТУСОВ
   ============================================ */
.badge-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    display: inline-block;
}

.badge-status.draft { background: #e9ecef; color: #6c757d; }
.badge-status.ordered { background: #cce5ff; color: #004085; }
.badge-status.verification { background: #fff3cd; color: #856404; }
.badge-status.done { background: #d4edda; color: #155724; }
.badge-status.cancelled { background: #f8d7da; color: #721c24; }
.badge-status.not_paid { background: #f8d7da; color: #721c24; }
.badge-status.paid { background: #d4edda; color: #155724; }
.badge-status.refunded { background: #fff3cd; color: #856404; }
.badge-status.new { background: #cce5ff; color: #004085; }
.badge-status.in_progress { background: #fff3cd; color: #856404; }

/* ============================================
   ТАБЛИЦЫ
   ============================================ */
.table-hover tbody tr:hover {
    background: #f8f9fa;
    cursor: pointer;
}

.table thead th {
    background: var(--dark);
    color: white;
    border: none;
    padding: 12px 15px;
}

/* ============================================
   МОДАЛЬНЫЕ ОКНА
   ============================================ */
.modal-content {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* ============================================
   СТРАНИЦА ОПЛАТЫ
   ============================================ */
.checkout-container {
    max-width: 500px;
    margin: 50px auto;
}

.checkout-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    text-align: center;
}

.checkout-card .amount {
    font-size: 48px;
    font-weight: bold;
    color: var(--dark);
}

.checkout-card .amount span {
    color: var(--primary);
}

.checkout-card .price {
    font-size: 32px;
    font-weight: bold;
    color: var(--success);
}

.checkout-card .details {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.checkout-card .details .row {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.checkout-card .details .row:last-child {
    border-bottom: none;
}

.btn-pay {
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    transition: var(--transition);
    width: 100%;
}

.btn-pay:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
    color: white;
}

.btn-pay:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

/* ============================================
   СТРАНИЦЫ УСПЕШНОЙ/НЕУДАЧНОЙ ОПЛАТЫ
   ============================================ */
.success-container,
.fail-container {
    max-width: 500px;
    width: 100%;
    padding: 20px;
    margin: 0 auto;
}

.success-card,
.fail-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    text-align: center;
}

.success-icon {
    font-size: 80px;
    color: var(--success);
    margin-bottom: 20px;
}

.fail-icon {
    font-size: 80px;
    color: var(--danger);
    margin-bottom: 20px;
}

/* ============================================
   АНИМАЦИИ
   ============================================ */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes checkmark {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.checkmark-animate {
    animation: checkmark 0.5s ease-in-out;
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */
@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
        position: relative;
    }
    
    .stat-card .number {
        font-size: 24px;
    }
    
    .card-glass {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .pricing-card .price {
        font-size: 28px;
    }
    
    .table-responsive {
        overflow-x: auto;
    }
    
    .checkout-card {
        padding: 20px;
    }
    
    .checkout-card .amount {
        font-size: 32px;
    }
    
    .checkout-card .price {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .container-main {
        padding: 20px 10px;
    }
    
    .card-glass {
        padding: 15px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-card .number {
        font-size: 20px;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .sidebar {
        padding: 10px;
    }
}

/* ============================================
   УТИЛИТЫ
   ============================================ */
.text-primary-custom { color: var(--primary); }
.text-success-custom { color: var(--success); }
.text-warning-custom { color: var(--warning); }
.text-danger-custom { color: var(--danger); }
.text-muted-custom { color: var(--text-muted); }

.bg-primary-custom { background: var(--primary); }
.bg-secondary-custom { background: var(--secondary); }

.rounded-custom { border-radius: var(--border-radius); }
.shadow-custom { box-shadow: var(--box-shadow); }

.cursor-pointer { cursor: pointer; }
.transition { transition: var(--transition); }

.overflow-ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.max-height-200 { max-height: 200px; overflow-y: auto; }
.max-height-300 { max-height: 300px; overflow-y: auto; }
.max-height-400 { max-height: 400px; overflow-y: auto; }

/* ============================================
   АДМИН-ПАНЕЛЬ
   ============================================ */
.admin-sidebar {
    min-height: 100vh;
    background: var(--secondary);
    padding: 20px;
    position: sticky;
    top: 0;
}

.admin-sidebar .brand {
    color: white;
    font-size: 20px;
    font-weight: bold;
    padding: 15px 0 20px 0;
    border-bottom: 1px solid #34495e;
    margin-bottom: 20px;
    text-align: center;
}

.admin-sidebar .brand small {
    display: block;
    font-size: 12px;
    font-weight: normal;
    color: var(--text-muted);
    margin-top: 5px;
}

.admin-sidebar a {
    color: #ecf0f1;
    text-decoration: none;
    padding: 12px 15px;
    display: block;
    border-radius: 8px;
    margin-bottom: 3px;
    transition: var(--transition);
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    background: #34495e;
}

.admin-sidebar a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.admin-sidebar a .badge {
    float: right;
    margin-top: 2px;
}

.admin-sidebar .admin-info {
    color: var(--text-muted);
    padding: 15px 0;
    border-top: 1px solid #34495e;
    margin-top: 20px;
    font-size: 12px;
    text-align: center;
}

/* ============================================
   СТРАНИЦА ВХОДА В АДМИНКУ
   ============================================ */
.login-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.login-card h3 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--dark);
}

.login-card .logo {
    text-align: center;
    font-size: 48px;
    margin-bottom: 20px;
}

.login-card .btn-login {
    background: var(--dark);
    color: white;
    border: none;
    padding: 12px;
    width: 100%;
    border-radius: 10px;
    font-weight: bold;
    transition: var(--transition);
}

.login-card .btn-login:hover {
    background: #1a2a3a;
    transform: scale(1.02);
}

.login-card .form-control {
    border-radius: 10px;
    padding: 12px 15px;
}

.login-card .alert {
    border-radius: 10px;
}