/* Thunder VPN Market Theme (full redesign) */
:root {
    --primary: #00ff88;
    --primary-dark: #00cc6a;
    --primary-light: #33ffaa;
    --primary-hover: #00e67a;
    --primary-rgb: 0, 255, 136;

    --secondary: #33ffaa;
    --secondary-dark: #00cc6a;

    --accent: #00ff88;
    --accent-dark: #00cc6a;

    --danger: #ef4444;
    --danger-dark: #dc2626;

    --warning: #f59e0b;
    --success: #16a34a;
    --info: #38bdf8;

    --bg-dark: #0a0e14;
    --bg-darker: #070a0f;
    --bg-card: #131820;
    --bg-card-hover: #181f2a;

    --text-primary: #e6e6e6;
    --text-secondary: #9ca3af;
    --text-muted: #8a8f98;

    --border-color: rgba(0, 255, 136, 0.12);

    --shadow-sm: 0 1px 2px rgba(0, 255, 136, 0.08);
    --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.45);
    --shadow-xl: 0 30px 60px rgba(0, 0, 0, 0.55);

    --glow-primary: 0 0 18px rgba(0, 255, 136, 0.45);
    --glow-accent: 0 0 24px rgba(0, 255, 136, 0.25);
}

body.theme-thunder {
    color: var(--text-primary);
    background: var(--bg-dark);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body.theme-thunder::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 30%, rgba(0, 255, 136, 0.05) 0%, transparent 35%),
        radial-gradient(circle at 80% 70%, rgba(0, 255, 136, 0.03) 0%, transparent 35%);
    pointer-events: none;
    z-index: -2;
}

body.theme-thunder::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300ff88' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.35;
    pointer-events: none;
    z-index: -1;
}

.navbar {
    background-color: rgba(10, 14, 20, 0.9);
    backdrop-filter: blur(12px) saturate(140%);
    border-bottom: 1px solid rgba(0, 255, 136, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.nav-logo {
    gap: 0.4rem;
}

.nav-logo .logo-mark {
    width: auto;
    height: 42px;
    max-width: 150px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(45, 157, 120, 0.3));
}

.footer-logo .logo-mark {
    width: auto;
    height: 38px;
    max-width: 150px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(45, 157, 120, 0.3));
}

.nav-logo .logo-wordmark {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.nav-logo .logo-wordmark span {
    background: none;
    -webkit-text-fill-color: currentColor;
}

.nav-logo .logo-title {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.nav-logo .logo-subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.32em;
    color: var(--primary);
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    position: relative;
    padding: 8px 0;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.btn {
    border-radius: 12px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #0a0e14;
    font-weight: 700;
    box-shadow: var(--glow-primary);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.6);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover:not(:disabled) {
    background: var(--primary);
    color: #0a0e14;
    box-shadow: var(--glow-primary);
}

.card,
.product-card,
.user-profile-card,
.stat-card,
.action-card,
.section-card,
.key-card,
.order-card,
.info-card,
.payment-details-card,
.topup-card,
.tariff-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.card:hover,
.product-card:hover,
.stat-card:hover,
.action-card:hover,
.tariff-card:hover {
    border-color: rgba(45, 157, 120, 0.3);
    box-shadow: var(--shadow-lg);
}

.product-card {
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(25, 163, 90, 0.08), transparent 45%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.product-card:hover::before {
    opacity: 1;
}

.product-logo {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    border-radius: 18px;
    background: rgba(45, 157, 120, 0.08);
    border: 1px solid rgba(45, 157, 120, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.product-logo img {
    width: 44px;
    height: 44px;
    display: block;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.badge-discount {
    background: rgba(45, 157, 120, 0.15);
    color: #1e7d5f;
}

.badge-featured {
    background: rgba(45, 157, 120, 0.18);
    color: #1e7d5f;
}

.badge-success {
    background: rgba(34, 197, 94, 0.16);
    color: #1e7d5f;
}

.product-meta [data-icon] {
    color: var(--primary-dark);
}

.shop-hero {
    background: linear-gradient(135deg, rgba(45, 157, 120, 0.12), rgba(52, 196, 151, 0.08));
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.hero-stats .stat-item {
    background: rgba(19, 24, 32, 0.8);
    border: 1px solid rgba(0, 255, 136, 0.16);
    box-shadow: var(--shadow-sm);
}

.filters-panel {
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

input,
select,
textarea {
    background: rgba(19, 24, 32, 0.85);
    border: 1px solid rgba(0, 255, 136, 0.18);
    border-radius: 12px;
    color: var(--text-primary);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45, 157, 120, 0.12);
}

.dashboard.dashboard-page .dashboard-header {
    padding: 2rem 2.5rem;
    background: linear-gradient(135deg, rgba(25, 163, 90, 0.12), rgba(16, 185, 129, 0.08));
    border-radius: 18px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.dashboard.dashboard-page .dashboard-subtitle {
    color: var(--text-secondary);
}

.dashboard.dashboard-page .user-profile-card {
    border: 1px solid rgba(25, 163, 90, 0.2);
}

.dashboard.dashboard-page .stat-card .stat-action {
    color: #ffffff;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.status-pill.active {
    background: rgba(34, 197, 94, 0.15);
    color: #15803d;
}

.status-pill.expired {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
}

.status-pill.pending {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}

.status-pill.suspended {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

.profile-shell {
    display: grid;
    gap: 2rem;
}

.profile-hero {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: center;
    padding: 2rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(25, 163, 90, 0.12), rgba(16, 185, 129, 0.08));
    border: 1px solid var(--border-color);
}

.profile-hero .profile-avatar {
    width: 88px;
    height: 88px;
    border-radius: 24px;
    background: rgba(25, 163, 90, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    border: 1px solid rgba(25, 163, 90, 0.26);
}

.profile-hero .profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.profile-stat {
    padding: 1.25rem;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid var(--border-color);
}

.profile-stat h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.profile-stat .stat-value {
    font-size: 1.6rem;
    font-weight: 800;
}

.profile-keys {
    display: grid;
    gap: 1rem;
}

.key-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
}

.key-row h4 {
    margin: 0;
    font-size: 1rem;
}

.key-row small {
    color: var(--text-muted);
}

.site-footer {
    background: #070a0f;
    border-top: 1px solid rgba(0, 255, 136, 0.1);
}

.footer-links li a,
.footer-legal a {
    color: var(--text-muted);
}

.footer-links li a:hover,
.footer-legal a:hover {
    color: var(--primary);
}

@media (max-width: 900px) {
    .profile-hero {
        grid-template-columns: 1fr;
    }

    .key-row {
        grid-template-columns: 1fr;
    }
}