/* ============================================
   SocialBoost SMM Panel - Global Styles
   ============================================ */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --primary-50: #eff6ff;
    --secondary: #64748b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #0ea5e9;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --sidebar-width: 260px;
    --topbar-height: 64px;
    --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
    --shadow: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gray-100);
    color: var(--gray-900);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: all 0.2s; }
a:hover { color: var(--primary-dark); }

/* ============================================
   LANDING PAGE
   ============================================ */
.landing-nav {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.75rem 0;
}

.landing-nav .navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.landing-nav .navbar-brand i {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.75rem;
}

.hero-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
    color: white;
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.hero-section p.lead {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-section .btn {
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    border-radius: 10px;
}

.stat-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    color: white;
    transition: transform 0.3s;
}

.stat-card:hover { transform: translateY(-4px); }
.stat-card .stat-number { font-size: 2rem; font-weight: 800; }
.stat-card .stat-label { font-size: 0.85rem; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.05em; }

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    height: 100%;
    border: 1px solid var(--gray-200);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.feature-card .icon-box {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-50), #dbeafe);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1.25rem;
}

.feature-card h5 { font-weight: 700; margin-bottom: 0.5rem; }
.feature-card p { color: var(--gray-500); margin: 0; font-size: 0.9rem; }

.platform-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 16px;
    font-size: 2rem;
    color: white;
    transition: all 0.3s;
    margin: 0.5rem;
}

.platform-icon:hover { transform: scale(1.1) rotate(5deg); }
.platform-instagram { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.platform-youtube { background: #ff0000; }
.platform-facebook { background: #1877f2; }
.platform-tiktok { background: #000; }
.platform-telegram { background: #0088cc; }
.platform-twitter { background: #1da1f2; }
.platform-spotify { background: #1db954; }
.platform-whatsapp { background: #25d366; }
.platform-globe { background: linear-gradient(135deg, #6366f1, #8b5cf6); }

.landing-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 3rem 0 1.5rem;
}

.landing-footer h5 { color: white; font-weight: 700; margin-bottom: 1rem; font-size: 1rem; }
.landing-footer a { color: #94a3b8; display: block; padding: 0.25rem 0; font-size: 0.9rem; }
.landing-footer a:hover { color: white; }

/* ============================================
   AUTH PAGES
   ============================================ */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    padding: 2rem 1rem;
}

.auth-card {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
}

.auth-card .auth-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-card .auth-logo i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-card .auth-logo h3 {
    font-weight: 800;
    margin-top: 0.5rem;
    color: var(--primary);
}

.auth-card .form-control {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1.5px solid var(--gray-200);
    font-size: 0.95rem;
}

.auth-card .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.auth-card .form-label { font-weight: 600; font-size: 0.85rem; color: var(--gray-700); }

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    width: 100%;
    transition: all 0.2s;
}

.btn-primary-custom:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(37,99,235,0.3);
    color: white;
}

/* ============================================
   DASHBOARD LAYOUT
   ============================================ */
.dashboard-layout { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
    overflow-y: auto;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }

.sidebar-brand {
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.sidebar-brand i {
    font-size: 1.75rem;
    color: #60a5fa;
}

.sidebar-brand .brand-text {
    font-weight: 800;
    font-size: 1.1rem;
    line-height: 1.1;
}

.sidebar-brand .brand-text small {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.6;
}

.sidebar-nav {
    padding: 1rem 0.75rem;
    flex: 1;
    overflow-y: auto;
}

.sidebar-nav .nav-section {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.4);
    padding: 1rem 0.75rem 0.5rem;
    font-weight: 600;
}

.sidebar-nav .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    margin-bottom: 2px;
    transition: all 0.2s;
}

.sidebar-nav .nav-link i {
    width: 20px;
    text-align: center;
    font-size: 0.95rem;
}

.sidebar-nav .nav-link:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.sidebar-nav .nav-link.active {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 4px 12px rgba(59,130,246,0.4);
}

.sidebar-nav .nav-link .badge {
    margin-left: auto;
    font-size: 0.7rem;
}

/* Main content */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.topbar {
    background: white;
    height: var(--topbar-height);
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 900;
    border-bottom: 1px solid var(--gray-200);
}

.topbar .toggle-sidebar {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--gray-700);
    display: none;
    cursor: pointer;
    padding: 0.5rem;
}

.topbar .user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar .user-menu .balance-chip {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #15803d;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
}

.topbar .user-menu .user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    cursor: pointer;
}

.page-content {
    padding: 1.75rem;
    flex: 1;
}

.page-header {
    margin-bottom: 1.5rem;
}

.page-header h1 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    color: var(--gray-900);
}

.page-header p {
    color: var(--gray-500);
    margin: 0;
    font-size: 0.9rem;
}

/* Stat cards */
.stat-card-dash {
    background: white;
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
    height: 100%;
}

.stat-card-dash:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-card-dash .icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.stat-card-dash .icon.blue { background: #dbeafe; color: var(--primary); }
.stat-card-dash .icon.green { background: #d1fae5; color: var(--success); }
.stat-card-dash .icon.yellow { background: #fef3c7; color: var(--warning); }
.stat-card-dash .icon.red { background: #fee2e2; color: var(--danger); }
.stat-card-dash .icon.purple { background: #ede9fe; color: #8b5cf6; }
.stat-card-dash .icon.cyan { background: #cffafe; color: #06b6d4; }

.stat-card-dash .info .value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.1;
}

.stat-card-dash .info .label {
    color: var(--gray-500);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 600;
}

/* Cards */
.card-custom {
    background: white;
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.card-custom .card-head {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.card-custom .card-head h5 {
    margin: 0;
    font-weight: 700;
    font-size: 1rem;
    color: var(--gray-900);
}

.card-custom .card-body-custom { padding: 1.25rem; }

/* Tables */
.table-custom {
    width: 100%;
    margin: 0;
    font-size: 0.875rem;
}

.table-custom thead th {
    background: var(--gray-50);
    color: var(--gray-700);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gray-200);
    white-space: nowrap;
}

.table-custom tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
    color: var(--gray-700);
}

.table-custom tbody tr:hover { background: var(--gray-50); }
.table-custom tbody tr:last-child td { border-bottom: none; }

.table-responsive-custom {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Badges */
.badge {
    font-weight: 600;
    padding: 0.35em 0.65em;
    font-size: 0.72rem;
    border-radius: 6px;
}

/* Buttons */
.btn { border-radius: 8px; font-weight: 600; font-size: 0.875rem; transition: all 0.2s; }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8rem; }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-success { background: var(--success); border-color: var(--success); }
.btn-danger { background: var(--danger); border-color: var(--danger); }

/* Forms */
.form-control, .form-select {
    border-radius: 8px;
    border: 1.5px solid var(--gray-200);
    padding: 0.6rem 0.85rem;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.form-label { font-weight: 600; font-size: 0.85rem; color: var(--gray-700); margin-bottom: 0.4rem; }

/* Alerts */
.alert { border-radius: 10px; border: none; font-size: 0.9rem; }

/* ============================================
   RESPONSIVE
   ============================================ */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

@media (max-width: 991px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.show { transform: translateX(0); }
    .sidebar-overlay.show { display: block; }
    .main-content { margin-left: 0; }
    .topbar .toggle-sidebar { display: block; }
    .page-content { padding: 1rem; }
    .hero-section h1 { font-size: 2rem; }
    .hero-section { padding: 3rem 0 2.5rem; }
    .auth-card { padding: 1.75rem; }
}

@media (max-width: 576px) {
    .hero-section h1 { font-size: 1.65rem; }
    .stat-card-dash .info .value { font-size: 1.25rem; }
    .page-header h1 { font-size: 1.3rem; }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeIn 0.4s ease-out; }