/* ANET VIP+ TV Store - Main Stylesheet */

:root {
    --bg-primary: #0a0a1a;
    --bg-secondary: #12122a;
    --bg-card: #1a1a2e;
    --bg-card-hover: #22223a;
    --border: #2a2a4a;
    --text-primary: #e0e0e0;
    --text-muted: #c0c0da;
    --accent: #6c5ce7;
    --accent-hover: #5a4bd1;
    --accent-soft: rgba(108, 92, 231, 0.15);
    --success: #00b894;
    --danger: #e74c3c;
    --warning: #fdcb6e;
}

* { box-sizing: border-box; }

/* Global text-muted override for dark theme — Bootstrap default is too dark */
.text-muted {
    color: #c0c0da !important;
    opacity: 1 !important;
}
small.text-muted,
.small.text-muted,
small,
.small {
    color: #b8b8d2 !important;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, sans-serif;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

/* Navbar */
.navbar {
    background: rgba(10, 10, 26, 0.85) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 12px 0;
    transition: all 0.3s;
}
.navbar.scrolled { background: rgba(10, 10, 26, 0.98) !important; }
.navbar-brand { font-size: 1.3rem; }
.navbar-brand i { color: var(--accent); }
.nav-link { color: var(--text-muted) !important; font-size: 0.9rem; transition: color 0.2s; }
.nav-link:hover { color: #fff !important; }

/* Buttons */
.btn-accent {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
}
.btn-accent:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}
.btn-outline-accent {
    border-color: var(--accent);
    color: var(--accent);
    border-radius: 8px;
}
.btn-outline-accent:hover {
    background: var(--accent);
    color: #fff;
}
.bg-accent-soft {
    background: var(--accent-soft) !important;
    color: var(--accent) !important;
    font-weight: 500;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--bg-primary) 0%, #0d0d30 50%, var(--bg-primary) 100%);
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(108,92,231,0.08) 0%, transparent 50%);
    animation: heroGlow 15s ease-in-out infinite alternate;
}
@keyframes heroGlow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(5%, 5%); }
}
.hero-title { line-height: 1.1; letter-spacing: -1px; }
.hero-subtitle { font-size: 1.15rem; line-height: 1.7; }
.hero-stats { padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); }
.hero-image-wrapper { position: relative; }
.hero-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(108,92,231,0.3), transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

.fw-800 { font-weight: 800; }

/* Cards */
.card-dark {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
}

/* Feature Cards */
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.3s;
    height: 100%;
}
.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(108,92,231,0.15);
}
.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-soft);
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
}

/* Pricing Cards */
.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px 24px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.pricing-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(108,92,231,0.2);
}
.pricing-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #a855f7);
}
.popular-badge {
    position: absolute;
    top: 16px;
    right: -32px;
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 40px;
    transform: rotate(45deg);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.price-display {
    margin: 12px 0;
}
.price-currency {
    font-size: 1.2rem;
    color: var(--accent);
    vertical-align: top;
}
.price-amount {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.pricing-features {
    flex: 1;
    margin: 20px 0;
}
.pricing-features li {
    padding: 6px 0;
    color: #d0d0e6;
    font-size: 0.9rem;
}
.pricing-features li i {
    margin-right: 8px;
}

/* Device Cards */
.device-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s;
}
.device-card:hover {
    border-color: var(--accent);
    transform: scale(1.05);
}
.text-accent { color: var(--accent) !important; }

/* Forms */
.form-label,
label.form-label,
label.form-label.text-muted,
.card-dark .form-label,
.card-dark .form-label.text-muted,
.card-dark label.text-muted,
.text-muted.form-label {
    color: #c8c8e0 !important;
    font-weight: 600 !important;
    font-size: 0.85rem;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
    opacity: 1 !important;
}
.form-dark,
.form-control.form-dark,
.form-select.form-dark {
    background: #13132b !important;
    border: 1.5px solid #3a3a5c !important;
    color: #ffffff !important;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-dark:focus,
.form-control.form-dark:focus,
.form-select.form-dark:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 0.2rem rgba(108,92,231,0.3) !important;
    background: #16163a !important;
    color: #ffffff !important;
}
.form-dark::placeholder { color: #6a6a8e !important; }
.form-dark option { background: #13132b; color: #fff; }
.input-group-text {
    background: #1e1e3a !important;
    border-color: #3a3a5c !important;
    color: #9090b0 !important;
    font-weight: 500;
}
.form-check-label { color: #b0b0cc !important; }
.form-check-input { border-color: #4a4a6a !important; background-color: #1a1a2e !important; }
.form-check-input:checked { background-color: var(--accent) !important; border-color: var(--accent) !important; }
.form-check-input:focus { box-shadow: 0 0 0 0.2rem rgba(108,92,231,0.25) !important; }
/* Section headings inside forms */
.card-dark h6.text-accent { font-size: 0.95rem; margin-top: 8px; }

/* Payment Method Selection */
.payment-option {
    display: block;
    cursor: pointer;
    margin: 0;
}
.payment-option input[type="radio"] { display: none; }
.payment-option-body {
    background: #13132b;
    border: 2px solid #3a3a5c;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.25s;
    color: #c0c0d8;
    font-weight: 500;
}
.payment-option input:checked + .payment-option-body {
    border-color: var(--accent);
    background: rgba(108, 92, 231, 0.2);
    color: #fff;
    box-shadow: 0 0 12px rgba(108,92,231,0.2);
}
.payment-option-body:hover {
    border-color: rgba(108,92,231,0.6);
    background: #1a1a35;
    color: #e0e0f0;
}

/* Accordion */
.bg-dark-card {
    background: var(--bg-card) !important;
    border-radius: 12px !important;
    border: none !important;
    color: var(--text-primary) !important;
}
.bg-dark-card:not(.collapsed) { color: var(--accent) !important; }
.bg-dark-card::after { filter: brightness(2); }
.bg-dark-card-body {
    background: var(--bg-secondary) !important;
    border-radius: 0 0 12px 12px !important;
}

/* Tables */
.table-dark {
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--border);
}
.table-dark thead th {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom-width: 1px;
}

/* Alerts */
.alert { border-radius: 12px; border: none; }
.alert-warning { background: rgba(253, 203, 110, 0.15); color: #fdcb6e; border: 1px solid rgba(253,203,110,0.2); }
.alert-info { background: rgba(9, 132, 227, 0.12); color: #74b9ff; border: 1px solid rgba(9,132,227,0.2); }
.alert-info ol { color: #b0c8e8; }

/* Admin form overrides */
.card-admin .form-label { color: #c0c0d8 !important; font-weight: 600; font-size: 0.82rem; }
.card-admin .form-control,
.card-admin .form-select {
    background: #0e0e24 !important;
    border-color: #3a3a5c !important;
    color: #fff !important;
    font-size: 0.9rem;
}
.card-admin .form-control:focus,
.card-admin .form-select:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 0.2rem rgba(108,92,231,0.25) !important;
}
.card-admin .form-control::placeholder { color: #5a5a7e !important; }

/* Reminder / opt-in box */
.card-dark .card-dark {
    background: #10102a !important;
    border-color: #2e2e4e !important;
}
.card-dark .card-dark p.text-muted { color: #9090b0 !important; }

/* Success Animation */
.success-animation { animation: bounceIn 0.6s ease; }
@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Footer */
footer a:hover { color: var(--accent) !important; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Floating Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}
.chat-widget-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(108,92,231,0.5);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.chat-widget-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(108,92,231,0.7);
}
.chat-widget-popup {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 280px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    animation: widgetSlideUp 0.3s ease;
}
@keyframes widgetSlideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.chat-widget-header {
    background: var(--accent);
    color: #fff;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.95rem;
}
.chat-widget-body {
    padding: 12px;
}
.chat-widget-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s;
    margin-bottom: 6px;
}
.chat-widget-option:last-child { margin-bottom: 0; }
.chat-widget-option i {
    font-size: 1.6rem;
    flex-shrink: 0;
}
.chat-widget-option strong {
    display: block;
    font-size: 0.9rem;
}
.chat-widget-option small {
    color: var(--text-muted);
    font-size: 0.75rem;
}
.chat-whatsapp {
    background: rgba(37,211,102,0.1);
    color: #25d366;
}
.chat-whatsapp:hover {
    background: rgba(37,211,102,0.2);
    color: #25d366;
}
.chat-telegram {
    background: rgba(36,161,222,0.1);
    color: #24a1de;
}
.chat-telegram:hover {
    background: rgba(36,161,222,0.2);
    color: #24a1de;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem !important; }
    .hero-subtitle { font-size: 1rem; }
    .price-amount { font-size: 2.2rem; }
    .hero-stats { gap: 16px !important; }
    .hero-stats h4 { font-size: 1.1rem; }
    .chat-widget { bottom: 16px; right: 16px; }
    .chat-widget-btn { width: 52px; height: 52px; font-size: 1.3rem; }
    .chat-widget-popup { width: 260px; }
}
