/* ============================================
   LITOCLIPS - UNIFIED THEME
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-dark: #0a0f14;
  --bg-card: #0f1419;
  --bg-elevated: #141c24;
  --bg-hover: #1a2430;
  --border: rgba(37, 99, 235, 0.15);
  --border-hover: rgba(37, 99, 235, 0.4);
  --teal: #2563eb;
  --teal-light: #3b82f6;
  --teal-dark: #1e40af;
  --teal-glow: rgba(37, 99, 235, 0.4);
  --text: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.4);
  --success: #22c55e;
  --warning: #eab308;
  --danger: #ef4444;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: rgba(10, 15, 15, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.header-link:hover {
  color: var(--teal);
}

.level-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 8px 20px 8px 8px;
}

.level-circle {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #000;
}

.level-info {
  display: flex;
  flex-direction: column;
}

.level-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.level-xp {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
}

.user-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.2s;
  font-size: 14px;
}

.user-btn:hover {
  background: var(--bg-card);
}

.user-avatar {
  width: 36px;
  height: 36px;
  background: var(--bg-elevated);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.logout-btn {
  background: var(--teal);
  color: #000;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.logout-btn:hover {
  background: var(--teal-light);
  transform: translateY(-1px);
}

/* ========== LAYOUT ========== */
.layout {
  display: flex;
  padding-top: 70px;
  min-height: 100vh;
}

/* ========== SIDEBAR ========== */
.sidebar {
  width: 260px;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 24px 16px;
  position: fixed;
  top: 70px;
  left: 0;
  bottom: 0;
  overflow-y: auto;
}

.sidebar-section {
  margin-bottom: 24px;
}

.sidebar-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0 18px;
  margin-bottom: 12px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 12px;
  margin-bottom: 6px;
  transition: all 0.2s;
  font-size: 15px;
  font-weight: 500;
}

.nav-item:hover {
  background: var(--bg-elevated);
  color: var(--text);
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(37, 99, 235, 0.05));
  color: var(--teal);
  border-left: 3px solid var(--teal);
}

.nav-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ========== MAIN CONTENT ========== */
.main {
  flex: 1;
  margin-left: 260px;
  padding: 32px 40px;
  min-height: calc(100vh - 70px);
}

/* ========== PAGE HEADER ========== */
.page-header {
  margin-bottom: 32px;
}

.page-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-header h1 span {
  color: var(--teal);
}

.page-header p {
  color: var(--text-secondary);
  font-size: 16px;
}

/* ========== CARDS ========== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s;
}

.card:hover {
  border-color: var(--border-hover);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-title svg {
  color: var(--teal);
}

/* ========== STATS GRID ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s;
}

.stat-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon.teal { background: rgba(37, 99, 235, 0.15); color: var(--teal); }
.stat-icon.blue { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.stat-icon.orange { background: rgba(249, 115, 22, 0.15); color: #f97316; }
.stat-icon.green { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.stat-icon.yellow { background: rgba(234, 179, 8, 0.15); color: #eab308; }
.stat-icon.red { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.stat-icon.purple { background: rgba(168, 85, 247, 0.15); color: #a855f7; }

.stat-icon svg {
  width: 28px;
  height: 28px;
}

.stat-content {
  flex: 1;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-trend {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
}

.stat-trend.up {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.stat-trend.down {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ========== CONTENT GRIDS ========== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.grid-60-40 {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--teal);
  color: #000;
}

.btn-primary:hover {
  background: var(--teal-light);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: #ef4444;
  color: #fff;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-full {
  width: 100%;
}

/* ========== FORMS ========== */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group small {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ========== TABS ========== */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  background: var(--bg-card);
  padding: 6px;
  border-radius: 12px;
  width: fit-content;
}

.tab {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.tab:hover {
  color: var(--text);
  background: var(--bg-elevated);
}

.tab.active {
  background: var(--teal);
  color: #000;
}

/* ========== TABLE ========== */
.table-container {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  text-align: left;
  padding: 14px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}

.table td {
  padding: 16px;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.table tr:hover td {
  background: var(--bg-elevated);
}

/* ========== BADGES ========== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge-success {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.badge-warning {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
}

.badge-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.badge-info {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.badge-teal {
  background: rgba(37, 99, 235, 0.15);
  color: var(--teal);
}

/* ========== EMPTY STATE ========== */
.empty-state {
  text-align: center;
  padding: 60px 40px;
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-state-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.empty-state-text {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ========== MODAL ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-large {
  max-width: 800px;
}

.modal-header {
  padding: 24px;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
}

.modal-header p {
  font-size: 14px;
  color: var(--text-muted);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: var(--bg-elevated);
  border: none;
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--danger);
  color: #fff;
}

/* ========== CAMPAIGN CARD ========== */
.campaign-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s;
}

.campaign-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.campaign-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--bg-elevated);
}

.campaign-content {
  padding: 20px;
}

.campaign-brand {
  font-size: 12px;
  color: var(--teal);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.campaign-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.campaign-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.campaign-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.campaign-meta-item svg {
  width: 16px;
  height: 16px;
}

.campaign-payout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.campaign-payout-label {
  font-size: 12px;
  color: var(--text-muted);
}

.campaign-payout-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--teal);
}

/* ========== SUBMISSION ITEM ========== */
.submission-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.2s;
  margin-bottom: 12px;
}

.submission-item:hover {
  border-color: var(--border-hover);
}

.submission-platform {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.submission-platform.tiktok { background: rgba(0, 242, 234, 0.15); color: #00f2ea; }
.submission-platform.youtube { background: rgba(255, 0, 0, 0.15); color: #ff0000; }
.submission-platform.instagram { background: rgba(225, 48, 108, 0.15); color: #e1306c; }
.submission-platform.twitter { background: rgba(29, 161, 242, 0.15); color: #1da1f2; }

.submission-platform svg {
  width: 24px;
  height: 24px;
}

.submission-info {
  flex: 1;
}

.submission-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.submission-campaign {
  font-size: 13px;
  color: var(--text-muted);
}

.submission-stats {
  display: flex;
  gap: 24px;
}

.submission-stat {
  text-align: center;
}

.submission-stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.submission-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ========== CHARTS ========== */
.chart-container {
  height: 280px;
  position: relative;
}

.chart-filters {
  display: flex;
  gap: 4px;
  background: var(--bg-elevated);
  padding: 4px;
  border-radius: 10px;
}

.chart-filter {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.chart-filter:hover {
  color: var(--text);
}

.chart-filter.active {
  background: var(--teal);
  color: #000;
}

/* ========== WALLET ========== */
.wallet-balance {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(37, 99, 235, 0.1) 100%);
  border: 1px solid var(--border-hover);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  margin-bottom: 24px;
}

.wallet-balance-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.wallet-balance-value {
  font-size: 48px;
  font-weight: 700;
  color: var(--teal);
}

.wallet-balance-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ========== SETTINGS ========== */
.settings-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 24px;
}

.settings-section-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.settings-section-title {
  font-size: 16px;
  font-weight: 600;
}

.settings-section-body {
  padding: 24px;
}

.settings-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.settings-item:last-child {
  border-bottom: none;
}

.settings-item-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-elevated);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.settings-item-content {
  flex: 1;
}

.settings-item-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 2px;
}

.settings-item-value {
  font-size: 13px;
  color: var(--text-muted);
}

/* ========== LEADERBOARD ========== */
.leaderboard-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  background: var(--bg-elevated);
  border-radius: 12px;
  margin-bottom: 10px;
  transition: background 0.2s;
}

.leaderboard-item:hover {
  background: var(--bg-hover);
}

.leaderboard-item.gold { background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), transparent); }
.leaderboard-item.silver { background: linear-gradient(135deg, rgba(192, 192, 192, 0.15), transparent); }
.leaderboard-item.bronze { background: linear-gradient(135deg, rgba(205, 127, 50, 0.15), transparent); }

.leaderboard-rank {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  background: var(--bg-card);
  color: var(--text-muted);
  flex-shrink: 0;
}

.leaderboard-item.gold .leaderboard-rank { background: #ffd700; color: #000; }
.leaderboard-item.silver .leaderboard-rank { background: #c0c0c0; color: #000; }
.leaderboard-item.bronze .leaderboard-rank { background: #cd7f32; color: #000; }

.leaderboard-user {
  flex: 1;
}

.leaderboard-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.leaderboard-level {
  font-size: 13px;
  color: var(--text-muted);
}

.leaderboard-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--teal);
}

/* ========== ACHIEVEMENT CARD ========== */
.achievement-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s;
}

.achievement-card:hover {
  border-color: var(--teal);
  transform: translateY(-4px);
}

.achievement-card.earned {
  border-color: var(--teal);
  background: rgba(37, 99, 235, 0.1);
}

.achievement-card.locked {
  opacity: 0.5;
}

.achievement-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.achievement-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.achievement-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.achievement-xp {
  font-size: 13px;
  color: var(--teal);
  font-weight: 600;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1400px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .sidebar {
    display: none;
    position: fixed;
    left: 0;
    top: 70px;
    width: 280px;
    z-index: 200;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
  }

  .sidebar.active {
    display: block;
  }

  .main {
    margin-left: 0;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .grid-2, .grid-3, .grid-60-40 {
    grid-template-columns: 1fr;
  }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  color: var(--text);
  font-size: 20px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1024px) {
  .mobile-menu-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 0 16px;
    height: 60px;
  }

  .logo-text {
    font-size: 16px;
  }

  .header-right {
    gap: 12px;
  }

  .level-pill {
    display: none;
  }

  .main {
    padding: 20px 16px;
  }
  .page-header h1 {
    font-size: 24px;
  }

  .sidebar {
    top: 60px;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 0 12px;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
  }

  .main {
    padding: 16px 12px;
  }

  .page-header h1 {
    font-size: 20px;
  }
}

