/* VIP Theme & Core Styles */
:root {
    --vip-bg: #0a0a0a;
    --vip-card-bg: rgba(20, 20, 20, 0.7);
    --vip-text: #ffffff;
    --vip-text-muted: #a0a0a0;
    --vip-gold: #d4af37;
    --vip-gold-gradient: linear-gradient(135deg, #d4af37 0%, #aa771c 100%);
    --vip-dark-gradient: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    --vip-glass-border: 1px solid rgba(212, 175, 55, 0.15);
    --vip-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    
    /* Button Variants VIP Style */
    --vip-primary-grad: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    --vip-success-grad: linear-gradient(135deg, #198754 0%, #146c43 100%);
    --vip-danger-grad: linear-gradient(135deg, #dc3545 0%, #b02a37 100%);
    --vip-info-grad: linear-gradient(135deg, #0dcaf0 0%, #0aa2c0 100%);
}

body {
    background-color: var(--vip-bg);
    color: var(--vip-text);
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #000;
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--vip-gold);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff;
}
.text-gold {
    color: var(--vip-gold) !important;
}
.text-gradient-gold {
    background: var(--vip-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* VIP Card (Glassmorphism) */
.vip-card {
    background: var(--vip-card-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: var(--vip-glass-border);
    border-radius: 20px;
    box-shadow: var(--vip-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.vip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.4);
}

/* Buttons */
.btn-vip {
    background: var(--vip-gold-gradient);
    color: #000;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    padding: 10px 30px;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}
.btn-vip:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.5);
    color: #000;
}
.btn-vip:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    border: 1px solid #444;
}

/* Global Button Overrides for VIP Consistency */
.btn-primary, .btn-success, .btn-danger, .btn-info, .btn-warning {
    border: none !important;
    border-radius: 50px !important;
    font-weight: bold !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
    transition: all 0.3s !important;
}

.btn-primary { background: var(--vip-primary-grad) !important; color: #fff !important; }
.btn-success { background: var(--vip-success-grad) !important; color: #fff !important; }
.btn-danger { background: var(--vip-danger-grad) !important; color: #fff !important; }
.btn-info { background: var(--vip-info-grad) !important; color: #000 !important; }
.btn-warning { background: var(--vip-gold-gradient) !important; color: #000 !important; }

.btn-primary:hover, .btn-success:hover, .btn-danger:hover, .btn-info:hover, .btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4) !important;
    opacity: 0.9;
}

/* Form Controls (Dark Mode) */
.form-control, .form-select {
    background-color: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    border-radius: 10px;
}
.form-control:focus, .form-select:focus {
    background-color: #222;
    border-color: var(--vip-gold);
    color: #fff;
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
}
.form-control::placeholder {
    color: #666;
}

/* Navbar Overrides */
.navbar-vip {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.navbar-nav .nav-link {
    transition: color 0.3s;
    font-weight: 500;
}

.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    color: var(--vip-gold) !important;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* Dropdown Menu */
.dropdown-menu {
    background: rgba(20, 20, 20, 0.95) !important;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
    box-shadow: 0 15px 30px rgba(0,0,0,0.5) !important;
    padding: 10px 0;
}
.dropdown-item {
    color: #ccc !important;
    transition: all 0.2s;
}
.dropdown-item:hover {
    background: rgba(212, 175, 55, 0.1) !important;
    color: var(--vip-gold) !important;
    padding-left: 1.5rem;
}
.dropdown-header {
    color: var(--vip-gold) !important;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* Modal */
.modal-content {
    background-color: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
}
.modal-header {
    border-bottom: 1px solid #333;
}
.modal-footer {
    border-top: 1px solid #333;
}
.btn-close {
    filter: invert(1);
}

/* Animations */
@keyframes goldPulse {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

/* Admin Sidebar */
.sidebar {
    background: linear-gradient(180deg, #0f0f0f 0%, #1a1a1a 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    height: 100vh;
    position: fixed;
    width: 250px;
    padding-top: 20px;
    z-index: 1000;
}
.sidebar a {
    color: #ccc;
    text-decoration: none;
    display: block;
    padding: 10px 20px;
    border-left: 3px solid transparent;
    transition: all 0.3s;
}
.sidebar a:hover, .sidebar a.active {
    background: rgba(212, 175, 55, 0.1);
    color: var(--vip-gold);
    border-left: 3px solid var(--vip-gold);
}
.main-content {
    margin-left: 250px;
    padding: 20px;
    min-height: 100vh;
}

/* Stats Card for Admin */
.stat-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 15px;
    padding: 20px;
    transition: 0.3s;
}
.stat-card:hover {
    border-color: var(--vip-gold);
    transform: translateY(-5px);
}
.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: rgba(255, 255, 255, 0.05);
}

/* Nav Tabs */
.nav-pills .nav-link {
    background: #1a1a1a;
    color: #ccc;
    border: 1px solid #333;
}
.nav-pills .nav-link.active {
    background: var(--vip-gold);
    color: #000;
    border-color: var(--vip-gold);
}

/* Table */
.table {
    color: #ccc;
    border-color: #333;
    background: transparent;
}
.table thead th {
    border-bottom: 2px solid #333;
    color: var(--vip-gold);
    background: transparent;
}
.table td, .table th {
    border-top: 1px solid #333;
    background: transparent;
}

/* --- VIP Index Page Styles --- */

/* Hero Section */
.hero-section {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}
.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.15), transparent 70%);
    z-index: -1;
}

/* VIP Text Gradient */
.text-gradient {
    background: var(--vip-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

/* VIP Hero Card (Free SMM) */
.vip-hero-card {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 30px;
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.1);
    position: relative;
    overflow: hidden;
}
.vip-hero-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1), transparent 60%);
    animation: rotate 10s linear infinite;
    z-index: -1;
}
@keyframes rotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.vip-badge-hero {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--vip-gold-gradient);
    color: #000;
    font-weight: 800;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* Tool Cards */
.tool-card-modern {
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    height: 100%;
}
.tool-card-modern:hover {
    transform: translateY(-10px);
    border-color: var(--vip-gold);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.15);
}
.icon-box-modern {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--vip-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 1.5rem;
}
.tool-card-modern:hover .icon-box-modern {
    background: var(--vip-gold);
    color: #000;
    transform: rotate(10deg);
}

/* Buttons */
.btn-vip-action {
    background: rgba(255, 255, 255, 0.05);
    color: var(--vip-gold);
    border: 1px solid rgba(212, 175, 55, 0.3);
    transition: all 0.3s;
}
.btn-vip-action:hover {
    background: var(--vip-gold);
    color: #000;
    border-color: var(--vip-gold);
}

.card-ribbon {
    position: absolute;
    top: 15px;
    right: -28px;
    background: var(--vip-gold-gradient);
    color: #000;
    transform: rotate(45deg);
    padding: 5px 40px;
    font-size: 0.7rem;
    font-weight: bold;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

/* --- Viral Hub VIP Styles --- */
.viral-card {
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    color: #fff;
}
.viral-card:hover {
    transform: translateY(-5px);
    border-color: var(--vip-gold);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
}
.viral-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--vip-gold);
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* --- Leaderboard VIP Styles --- */
.leaderboard-card {
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 175, 55, 0.2);
}
.leaderboard-header {
    background: var(--vip-gold-gradient) !important;
    color: #000 !important;
    border-bottom: none;
}
.avatar-circle {
    background: rgba(255,255,255,0.1);
    color: var(--vip-gold);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

/* --- Footer VIP Styles --- */
.footer-vip {
    background: linear-gradient(180deg, #111 0%, #000 100%);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    color: #aaa;
}
.social-btn-vip {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    transition: all 0.3s;
}
.social-btn-vip:hover {
    background: var(--vip-gold);
    border-color: var(--vip-gold);
    color: #000;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

/* Helper Text Classes */
.text-white-50 { color: rgba(255, 255, 255, 0.5) !important; }
.text-dark { color: #fff !important; } /* Invert text-dark for VIP theme */
.text-muted { color: #aaa !important; }
.bg-white { background: transparent !important; } /* Dangerous but needed for quick fix */
.bg-light { background: rgba(255,255,255,0.05) !important; }

/* Blob Shapes - Dark Mode */
.blob-shape {
    filter: blur(80px);
    opacity: 0.2;
}
.bg-purple { background: #d4af37; }
.bg-blue { background: #aa771c; }
.bg-pink { background: #fff; opacity: 0.05; }

/* --- Utilities & Animations (Restored from Index) --- */
.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.icon-float {
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.btn-hover-scale {
    transition: transform 0.2s;
}
.btn-hover-scale:hover {
    transform: scale(1.05);
}

/* --- Global Overrides for Legacy Tools (VIP Theme Enforcer) --- */
.card {
    background: var(--vip-card-bg) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: var(--vip-glass-border) !important;
    color: var(--vip-text) !important;
}

/* Fix for legacy card headers (e.g. Age Calculator) */
.card-header.bg-warning {
    background: var(--vip-gold-gradient) !important;
    color: #000 !important;
    border-bottom: 1px solid rgba(0,0,0,0.1) !important;
}
.card-header.bg-warning h1, 
.card-header.bg-warning h2, 
.card-header.bg-warning h3, 
.card-header.bg-warning h4, 
.card-header.bg-warning h5, 
.card-header.bg-warning h6,
.card-header.bg-warning i,
.card-header.bg-warning .text-dark {
    color: #000 !important;
}

/* Upgrade Warning Buttons to VIP Style */
/* Already handled by global button overrides, but keeping specific just in case */

.card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.bg-light, .bg-white {
    background: transparent !important; /* Let the card background show through */
}

/* Fix input groups in tools */
.input-group.bg-white {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.input-group-text {
    background: transparent !important;
    border: none !important;
    color: var(--vip-gold) !important;
}

.form-control {
    background: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}
.form-control:focus {
    background: rgba(0, 0, 0, 0.4) !important;
    color: #fff !important;
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25) !important;
    border-color: var(--vip-gold) !important;
}

/* Text Visibility Fixes */
.text-muted {
    color: #b0b0b0 !important;
}
.text-dark {
    color: #fff !important;
}
.text-body {
    color: #ddd !important;
}

/* Specific Tool Fixes */
.icon-circle.bg-danger-subtle {
    background: rgba(220, 53, 69, 0.2) !important; /* Darker red background for icons */
    color: #ff6b6b !important;
}
.icon-circle.bg-primary-subtle {
    background: rgba(13, 110, 253, 0.2) !important;
    color: #6ea8fe !important;
}

/* Alerts */
.alert-light {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

/* Tables in Tools */
.table {
    color: var(--vip-text) !important;
    --bs-table-bg: transparent !important;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.05) !important;
    --bs-table-hover-bg: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}
.table-light {
    background: transparent !important;
    color: #fff !important;
}

/* --- Admin Login --- */
.login-card {
    max-width: 400px;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
}
.login-header {
    background: var(--vip-gold-gradient);
    color: #000;
    padding: 25px;
    text-align: center;
    font-weight: bold;
}

/* Pagination */
.pagination .page-item .page-link {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    color: #ccc;
}

.status-badge {
    font-size: 0.85rem;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
}

/* Common VIP Header for Tools */
.vip-header {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding: 2rem;
    position: relative;
    border-radius: 20px 20px 0 0;
}
.vip-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--vip-gold), transparent);
}
.pagination .page-item.active .page-link {
    background: var(--vip-gold);
    border-color: var(--vip-gold);
    color: #000;
}
.pagination .page-item.disabled .page-link {
    background: rgba(255, 255, 255, 0.02);
    color: #555;
    border-color: #222;
}
.pagination .page-item .page-link:hover {
    background: rgba(212, 175, 55, 0.2);
    color: var(--vip-gold);
    border-color: var(--vip-gold);
}