/* SocialBoostPK - Main Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@600;700;800&display=swap');

:root {
  --navy: #1a3a6b;
  --navy-dark: #0f2447;
  --navy-light: #2453a0;
  --blue: #1565c0;
  --blue-accent: #1976d2;
  --silver: #8a9bb5;
  --silver-light: #b0bec5;
  --silver-dark: #607d8b;
  --white: #ffffff;
  --bg: #f0f4f9;
  --bg-card: #ffffff;
  --text: #1a2332;
  --text-muted: #5c6b7e;
  --border: #d8e3f0;
  --success: #2e7d32;
  --success-bg: #e8f5e9;
  --warning: #e65100;
  --warning-bg: #fff3e0;
  --danger: #c62828;
  --danger-bg: #ffebee;
  --info: #0277bd;
  --info-bg: #e1f5fe;
  --shadow: 0 2px 12px rgba(26,58,107,0.10);
  --shadow-lg: 0 8px 32px rgba(26,58,107,0.16);
  --radius: 12px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); font-size: 14px; }
a { color: var(--navy-light); text-decoration: none; }
a:hover { color: var(--blue-accent); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--silver); border-radius: 3px; }

/* ========= LAYOUT ========= */
.wrapper { display: flex; min-height: 100vh; }
.sidebar { width: 260px; background: linear-gradient(180deg, var(--navy-dark) 0%, var(--navy) 100%); position: fixed; top: 0; left: 0; height: 100vh; overflow-y: auto; z-index: 100; transition: transform 0.3s; }
.main-content { margin-left: 260px; flex: 1; min-height: 100vh; }
.topbar { background: var(--white); border-bottom: 1px solid var(--border); padding: 0 24px; height: 64px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 50; box-shadow: var(--shadow); }
.page-content { padding: 24px; }

/* ========= SIDEBAR ========= */
.sidebar-logo { padding: 20px 20px 10px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.sidebar-logo img { height: 44px; filter: brightness(0) invert(1); width: auto; }
.sidebar-logo span { display: block; color: var(--silver-light); font-size: 11px; margin-top: 4px; }

.sidebar-menu { padding: 12px 0; }
.menu-section { padding: 16px 20px 6px; color: rgba(255,255,255,0.35); font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; }
.menu-item { display: flex; align-items: center; gap: 12px; padding: 11px 20px; color: rgba(255,255,255,0.7); font-size: 13.5px; font-weight: 500; cursor: pointer; transition: all 0.2s; border-left: 3px solid transparent; }
.menu-item:hover { background: rgba(255,255,255,0.08); color: var(--white); border-left-color: var(--silver-light); }
.menu-item.active { background: rgba(255,255,255,0.12); color: var(--white); border-left-color: #60a5fa; }
.menu-item i { width: 18px; text-align: center; font-size: 15px; }
.sidebar-badge { margin-left: auto; background: #ef4444; color: white; font-size: 10px; padding: 2px 7px; border-radius: 10px; font-weight: 600; }

.sidebar-balance { margin: 12px 16px; background: rgba(255,255,255,0.08); border-radius: var(--radius-sm); padding: 14px 16px; border: 1px solid rgba(255,255,255,0.1); }
.sidebar-balance .label { color: rgba(255,255,255,0.5); font-size: 11px; }
.sidebar-balance .amount { color: var(--white); font-size: 22px; font-weight: 700; font-family: 'Poppins', sans-serif; }
.sidebar-balance .currency { color: var(--silver-light); font-size: 12px; }

/* ========= TOPBAR ========= */
.topbar-left { display: flex; align-items: center; gap: 16px; }
.topbar-title { font-size: 17px; font-weight: 600; color: var(--text); }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-user { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 6px 12px; border-radius: var(--radius-sm); transition: background 0.2s; }
.topbar-user:hover { background: var(--bg); }
.user-avatar { width: 36px; height: 36px; background: linear-gradient(135deg, var(--navy), var(--blue-accent)); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 14px; }
.user-name { font-weight: 600; font-size: 13px; }
.btn-menu { display: none; background: none; border: none; font-size: 20px; cursor: pointer; color: var(--text); }

/* ========= CARDS ========= */
.card { background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); margin-bottom: 20px; }
.card-header { padding: 18px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-title { font-size: 15px; font-weight: 600; color: var(--text); }
.card-body { padding: 20px; }

/* ========= STAT CARDS ========= */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat-card { background: var(--white); border-radius: var(--radius); padding: 20px; border: 1px solid var(--border); box-shadow: var(--shadow); display: flex; align-items: center; gap: 16px; }
.stat-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.stat-icon.blue { background: linear-gradient(135deg, var(--navy), var(--blue-accent)); color: white; }
.stat-icon.green { background: linear-gradient(135deg, #2e7d32, #43a047); color: white; }
.stat-icon.orange { background: linear-gradient(135deg, #e65100, #ef6c00); color: white; }
.stat-icon.purple { background: linear-gradient(135deg, #6a1b9a, #8e24aa); color: white; }
.stat-value { font-size: 24px; font-weight: 700; font-family: 'Poppins', sans-serif; color: var(--text); }
.stat-label { font-size: 12px; color: var(--text-muted); font-weight: 500; margin-top: 2px; }
.stat-change { font-size: 11px; font-weight: 600; margin-top: 3px; }
.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* ========= BUTTONS ========= */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; border: none; cursor: pointer; transition: all 0.2s; font-family: 'Inter', sans-serif; }
.btn-primary { background: linear-gradient(135deg, var(--navy), var(--blue-accent)); color: white; }
.btn-primary:hover { background: linear-gradient(135deg, var(--navy-dark), var(--navy)); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(26,58,107,0.35); }
.btn-success { background: linear-gradient(135deg, #2e7d32, #43a047); color: white; }
.btn-success:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-danger { background: linear-gradient(135deg, #c62828, #e53935); color: white; }
.btn-warning { background: linear-gradient(135deg, #e65100, #ef6c00); color: white; }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--navy-light); color: var(--navy-light); background: var(--info-bg); }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-lg { padding: 13px 28px; font-size: 15px; }
.btn-wa { background: #25d366; color: white; position: fixed; bottom: 24px; right: 24px; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; box-shadow: 0 4px 20px rgba(37,211,102,0.4); z-index: 999; transition: transform 0.2s; }
.btn-wa:hover { transform: scale(1.1); color: white; }

/* ========= FORMS ========= */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-control { width: 100%; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 13.5px; font-family: 'Inter', sans-serif; color: var(--text); background: var(--white); transition: border-color 0.2s; }
.form-control:focus { outline: none; border-color: var(--blue-accent); box-shadow: 0 0 0 3px rgba(21,101,192,0.1); }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%235c6b7e'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.form-hint { font-size: 11.5px; color: var(--text-muted); margin-top: 4px; }
.input-group { display: flex; }
.input-group .form-control { border-radius: var(--radius-sm) 0 0 var(--radius-sm); border-right: none; }
.input-group .btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.price-preview { background: var(--info-bg); border: 1px solid #90caf9; border-radius: var(--radius-sm); padding: 12px 16px; margin-top: 12px; font-size: 13px; color: var(--info); }
.price-preview strong { font-size: 18px; }

/* ========= TABLES ========= */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th { background: var(--bg); padding: 12px 14px; text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-muted); font-weight: 600; border-bottom: 2px solid var(--border); }
tbody td { padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text); }
tbody tr:hover { background: rgba(240,244,249,0.7); }
tbody tr:last-child td { border-bottom: none; }

/* ========= BADGES ========= */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-secondary { background: #eceff1; color: var(--silver-dark); }
.badge-processing { background: #e8eaf6; color: #3949ab; }

/* ========= ALERTS ========= */
.alert { padding: 13px 16px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 16px; display: flex; align-items: flex-start; gap: 10px; }
.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid #a5d6a7; }
.alert-danger { background: var(--danger-bg); color: var(--danger); border: 1px solid #ef9a9a; }
.alert-warning { background: var(--warning-bg); color: var(--warning); border: 1px solid #ffcc80; }
.alert-info { background: var(--info-bg); color: var(--info); border: 1px solid #81d4fa; }

/* ========= PAYMENT METHODS ========= */
.payment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.payment-card { border: 2px solid var(--border); border-radius: var(--radius); padding: 16px; text-align: center; cursor: pointer; transition: all 0.2s; }
.payment-card:hover, .payment-card.selected { border-color: var(--navy-light); background: var(--info-bg); }
.payment-card img { height: 36px; margin-bottom: 8px; }
.payment-card .pm-name { font-size: 12px; font-weight: 600; color: var(--text); }
.payment-card .pm-icon { font-size: 28px; margin-bottom: 8px; }

/* ========= CURRENCY BADGES ========= */
.currency-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.currency-chip { background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 6px 12px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.currency-chip:hover, .currency-chip.active { background: var(--navy); color: white; border-color: var(--navy); }

/* ========= LOGIN PAGE ========= */
.login-page { min-height: 100vh; background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--blue-accent) 100%); display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-box { background: white; border-radius: 20px; padding: 40px; width: 100%; max-width: 420px; box-shadow: var(--shadow-lg); }
.login-logo { text-align: center; margin-bottom: 28px; }
.login-logo img { height: 56px; }
.login-title { font-size: 22px; font-weight: 700; color: var(--text); text-align: center; margin-bottom: 6px; font-family: 'Poppins', sans-serif; }
.login-sub { text-align: center; color: var(--text-muted); font-size: 13px; margin-bottom: 28px; }
.login-divider { text-align: center; color: var(--text-muted); font-size: 12px; margin: 16px 0; position: relative; }
.login-divider::before, .login-divider::after { content: ''; position: absolute; top: 50%; width: 40%; height: 1px; background: var(--border); }
.login-divider::before { left: 0; }
.login-divider::after { right: 0; }

/* ========= SERVICES ========= */
.services-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filter-btn { padding: 7px 16px; border-radius: 20px; border: 1.5px solid var(--border); background: var(--white); color: var(--text-muted); font-size: 12.5px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.filter-btn:hover, .filter-btn.active { border-color: var(--navy-light); background: var(--navy); color: white; }
.service-row td:first-child { font-weight: 600; }
.service-platform { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }

/* ========= WALLET ========= */
.wallet-hero { background: linear-gradient(135deg, var(--navy-dark), var(--navy-light)); border-radius: var(--radius); padding: 30px; color: white; margin-bottom: 20px; }
.wallet-balance-label { font-size: 13px; opacity: 0.7; margin-bottom: 8px; }
.wallet-balance-amount { font-size: 42px; font-weight: 800; font-family: 'Poppins', sans-serif; }
.wallet-balance-currency { font-size: 14px; opacity: 0.8; margin-top: 4px; }

/* ========= RESPONSIVE ========= */
@media (max-width: 992px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .payment-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(-260px); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .btn-menu { display: block; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .payment-grid { grid-template-columns: 1fr 1fr; }
  .page-content { padding: 14px; }
}
