/* ===================================================
   LV12 Social — Modern Glass Design System (Full)
   =================================================== */

:root {
  /* ── Core Colors ── */
  --pr: #6c63ff;
  --pr2: #a855f7;
  --pr-glow: rgba(108, 99, 255, 0.30);
  --pr-soft: rgba(108, 99, 255, 0.08);
  --secondary: #ff6584;

  /* ── Glass & Surface ── */
  --bg: #eef0f7;
  --surface: rgba(255, 255, 255, 0.65);
  --surface2: rgba(255, 255, 255, 0.80);
  --surface-solid: #ffffff;
  --glass-border: rgba(255, 255, 255, 0.55);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  --glass-shadow-hover: 0 12px 48px rgba(0, 0, 0, 0.10);
  --backdrop-blur: 18px;

  /* ── Text ── */
  --text: #16162e;
  --text2: #4a4a6e;
  --text3: #8a8aaa;
  --text-inv: #ffffff;

  /* ── Accents ── */
  --red: #e0245e;
  --red-soft: rgba(224, 36, 94, 0.08);
  --green: #22c55e;
  --gold: #f59e0b;
  --success: #00d4aa;
  --warning: #ffd700;
  --danger: #ff4757;

  /* ── Sizing ── */
  --radius: 24px;
  --radius-sm: 14px;
  --radius-full: 9999px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.07);
  --nav-h: 52px;

  /* ── Font Sizes ── */
  --font-xs: 0.75rem;
  --font-sm: 0.85rem;
  --font-base: 1rem;
  --font-lg: 1.1rem;
  --font-xl: 1.3rem;
  --font-2xl: 1.5rem;
  --font-3xl: 1.8rem;
  --font-4xl: 2.2rem;

  /* ── Spacing ── */
  --space-xs: 0.3rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
}

/* Shared mobile navigation for the main content sections. */
.mobile-section-nav { display: none; }

@media (max-width: 820px) {
  .mobile-section-nav {
    position: fixed;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    z-index: 1100;
    display: flex;
    gap: 4px;
    padding: 7px;
    border: 1px solid rgba(255,255,255,.65);
    border-radius: 22px;
    background: rgba(255,255,255,.82);
    box-shadow: 0 12px 35px rgba(35, 32, 76, .2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
  [data-theme="dark"] .mobile-section-nav {
    background: rgba(22,22,40,.9);
    border-color: rgba(255,255,255,.1);
  }
  .mobile-section-nav a {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 48px;
    padding: 5px 3px;
    border-radius: 16px;
    color: var(--text2, #4a4a6e);
    font-size: .63rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transition: color .2s, background .2s, transform .2s;
  }
  .mobile-section-nav a i { font-size: 1rem; }
  .mobile-section-nav a span { white-space: nowrap; }
  .mobile-section-nav a.active {
    color: #fff;
    background: linear-gradient(135deg, var(--pr, #6c63ff), var(--pr2, #a855f7));
    box-shadow: 0 5px 15px var(--pr-glow, rgba(108,99,255,.3));
  }
  .mobile-section-nav a:active { transform: scale(.94); }
  body { padding-bottom: 82px; }
  .reels-page { padding-bottom: 0; }
}

/* ── Dark Theme ── */
[data-theme="dark"] {
  --bg: #0b0b18;
  --surface: rgba(22, 22, 44, 0.72);
  --surface2: rgba(32, 32, 56, 0.85);
  --surface-solid: #1a1a30;
  --glass-border: rgba(255, 255, 255, 0.07);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  --glass-shadow-hover: 0 12px 48px rgba(0, 0, 0, 0.7);
  --text: #eeeef6;
  --text2: #a8a8c8;
  --text3: #5a5a7a;
  --pr-soft: rgba(108, 99, 255, 0.12);
  --red-soft: rgba(224, 36, 94, 0.12);
}

/* ── Reset & Base ── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

body {
  background: var(--bg);
  font-family: 'Segoe UI', Tahoma, sans-serif;
  color: var(--text);
  min-height: 100vh;
  direction: inherit;
  -webkit-font-smoothing: antialiased;
  transition: background 0.35s ease, color 0.3s ease;
}

a {
  color: var(--pr);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--pr2);
}

/* ── Glass Mixin ── */
.glass,
.glass-card {
  background: var(--surface);
  backdrop-filter: blur(var(--backdrop-blur));
  -webkit-backdrop-filter: blur(var(--backdrop-blur));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.glass:hover,
.glass-card:hover {
  box-shadow: var(--glass-shadow-hover);
}

/* ── Container ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
}

/* ========================
   NAVBAR — Modern Glass
   ======================== */
.navbar {
  background: var(--surface);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  padding: 0 var(--space-xl);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 200;
  transition: all 0.3s ease;
  box-shadow: var(--glass-shadow);
  gap: var(--space-md);
}

.navbar .logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.navbar .logo span {
  font-size: 1.35rem;
  font-weight: 900;
  background: linear-gradient(135deg, #a78bfa, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-menu a {
  color: var(--text2);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-menu a:hover {
  color: var(--text);
  background: var(--pr-soft);
  transform: translateY(-1px);
}

.nav-menu a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--pr), var(--pr2));
  box-shadow: 0 4px 14px var(--pr-glow);
}

.nav-menu .btn-outline {
  border: 1px solid var(--glass-border);
  color: var(--text2);
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--surface2);
  margin-right: 0.25rem;
}
.nav-menu .btn-outline:hover {
  background: var(--pr-soft);
  border-color: var(--pr);
  color: var(--pr);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-toggle {
  background: var(--surface2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: var(--pr-soft);
  border-color: var(--pr);
  transform: rotate(15deg);
}

.theme-toggle-menu {
  background: var(--surface2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.2s ease;
  width: 100%;
  padding: 0.7rem 1rem;
  gap: 0.5rem;
}
.theme-toggle-menu:hover {
  background: var(--pr-soft);
}

.nav-hamburger {
  background: var(--surface2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text);
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.nav-hamburger:hover {
  background: var(--pr-soft);
  border-color: var(--pr);
}

/* ── Navbar Mobile ── */
@media (max-width: 768px) {
  .navbar {
    padding: 0 var(--space-md);
    height: 62px;
  }
  .navbar .logo span {
    font-size: 1.15rem;
  }
  .nav-right {
    display: flex !important;
  }
  .nav-menu {
    display: none;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 62px;
    right: 0;
    left: 0;
    background: var(--surface);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.6rem;
    gap: 0.2rem;
    z-index: 199;
    box-shadow: var(--glass-shadow-hover);
  }
  .nav-menu.open {
    display: flex;
  }
  .nav-menu a {
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
  }
  .nav-menu .btn-outline {
    margin: 0.2rem 0;
  }
  .theme-toggle-menu {
    display: flex;
    margin-top: 0.2rem;
  }
  .theme-toggle {
    display: flex;
  }
}

/* ========================
   CARDS
   ======================== */
.card {
  background: var(--surface);
  backdrop-filter: blur(var(--backdrop-blur));
  -webkit-backdrop-filter: blur(var(--backdrop-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  box-shadow: var(--glass-shadow);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.card:hover {
  box-shadow: var(--glass-shadow-hover);
}

.card-title {
  font-size: var(--font-lg);
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--text);
}

/* ========================
   GRID
   ======================== */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

/* ========================
   BUTTONS
   ======================== */
.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-size: var(--font-base);
  font-weight: 600;
  transition: all 0.2s ease;
  font-family: inherit;
  text-align: center;
}
.btn-primary {
  background: linear-gradient(135deg, var(--pr), var(--pr2));
  color: #fff;
  box-shadow: 0 4px 14px var(--pr-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--pr-glow);
}
.btn-success {
  background: var(--success);
  color: #000;
}
.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-warning {
  background: var(--warning);
  color: #000;
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--pr);
  color: var(--pr);
}
.btn-outline:hover {
  background: var(--pr);
  color: #fff;
}
.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: var(--font-sm);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========================
   STATS
   ======================== */
.stat-card {
  background: var(--surface);
  backdrop-filter: blur(var(--backdrop-blur));
  -webkit-backdrop-filter: blur(var(--backdrop-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  text-align: center;
  box-shadow: var(--glass-shadow);
}
.stat-card .stat-value {
  font-size: var(--font-2xl);
  font-weight: 800;
  color: var(--pr);
}
.stat-card .stat-label {
  color: var(--text2);
  font-size: var(--font-sm);
  margin-top: 0.3rem;
}

/* ========================
   FORMS
   ======================== */
.form-group {
  margin-bottom: var(--space-md);
}
.form-label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--text2);
  font-size: var(--font-sm);
}
.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--surface2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: var(--font-base);
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
  outline: none;
  border-color: var(--pr);
  box-shadow: 0 0 0 4px var(--pr-glow);
}
textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* ========================
   ALERTS
   ======================== */
.alert {
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
  font-weight: 500;
}
.alert-error {
  background: var(--red-soft);
  border: 1px solid var(--red);
  color: var(--red);
}
.alert-success {
  background: rgba(0, 212, 170, 0.15);
  border: 1px solid var(--success);
  color: var(--success);
}

/* ========================
   BADGES
   ======================== */
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: var(--font-xs);
  font-weight: 600;
}
.badge-success {
  background: rgba(0, 212, 170, 0.2);
  color: var(--success);
}
.badge-danger {
  background: rgba(255, 71, 87, 0.2);
  color: var(--danger);
}
.badge-warning {
  background: rgba(255, 215, 0, 0.2);
  color: var(--warning);
}
.badge-primary {
  background: var(--pr-soft);
  color: var(--pr);
}

.level-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, var(--gold), #ff8c00);
  color: #000;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: var(--font-sm);
}

/* ========================
   PROGRESS
   ======================== */
.progress {
  background: var(--surface2);
  border-radius: var(--radius-sm);
  height: 8px;
  overflow: hidden;
  margin-top: 0.5rem;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--pr), var(--pr2));
  border-radius: var(--radius-sm);
  transition: width 0.5s ease;
}

/* ========================
   TABLES
   ======================== */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th,
.table td {
  padding: 0.8rem 1rem;
  text-align: right;
  border-bottom: 1px solid var(--glass-border);
}
.table th {
  color: var(--text2);
  font-weight: 600;
  font-size: var(--font-sm);
}
.table tr:hover td {
  background: var(--pr-soft);
}

/* ========================
   HERO
   ======================== */
.hero {
  text-align: center;
  padding: 5rem 1rem;
  background: radial-gradient(ellipse at center, var(--pr-soft) 0%, transparent 70%);
}
.hero h1 {
  font-size: var(--font-4xl);
  font-weight: 900;
  background: linear-gradient(135deg, var(--pr), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--space-md);
}
.hero p {
  color: var(--text2);
  font-size: var(--font-lg);
  margin-bottom: var(--space-xl);
}

/* ========================
   TASKS
   ======================== */
.task-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md);
  background: var(--surface2);
  border-radius: var(--radius-sm);
  margin-bottom: 0.8rem;
  border: 1px solid var(--glass-border);
  transition: border-color 0.2s, background 0.2s;
}
.task-item:hover {
  border-color: var(--pr);
}
.task-item.completed {
  opacity: 0.6;
}
.task-item .task-info {
  flex: 1;
}
.task-item .task-title {
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.task-item .task-desc {
  color: var(--text2);
  font-size: var(--font-sm);
}
.task-reward {
  color: var(--success);
  font-weight: 700;
  font-size: var(--font-lg);
  margin: 0 var(--space-md);
}

/* ========================
   WALLET
   ======================== */
.wallet-amount {
  font-size: var(--font-3xl);
  font-weight: 800;
  color: var(--success);
}

/* ========================
   TOAST
   ======================== */
.toast {
  position: fixed;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--surface-solid);
  border: 1px solid var(--glass-border);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 9999;
  transition: transform 0.3s ease;
  box-shadow: var(--glass-shadow-hover);
}
.toast.show {
  transform: translateX(-50%) translateY(0);
}
.toast.success {
  border-color: var(--success);
  color: var(--success);
}
.toast.error {
  border-color: var(--danger);
  color: var(--danger);
}

/* ========================
   SOCIAL PAGE
   ======================== */
.social-page {
  padding: var(--space-xl) 0 var(--space-2xl);
}
.social-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: linear-gradient(135deg, var(--pr-soft), rgba(255, 101, 132, 0.08));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}
.social-hero .hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--pr-soft);
  color: var(--pr);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-full);
  font-size: var(--font-sm);
  font-weight: 700;
}
.social-hero h1 {
  font-size: var(--font-2xl);
  margin-top: 0.75rem;
  line-height: 1.1;
}
.social-hero p {
  color: var(--text2);
  max-width: 640px;
  margin-top: 0.75rem;
  line-height: 1.8;
}
.social-hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}
.social-hero-actions .btn {
  min-width: 160px;
}

.social-grid {
  display: grid;
  grid-template-columns: 1.9fr 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}
.social-feed {
  display: grid;
  gap: var(--space-lg);
}

/* ── Post Card ── */
.post-card {
  background: var(--surface);
  backdrop-filter: blur(var(--backdrop-blur));
  -webkit-backdrop-filter: blur(var(--backdrop-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  box-shadow: var(--glass-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--glass-shadow-hover);
}
.post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}
.post-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.post-author img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--pr-soft);
}
.post-author-name {
  display: block;
  font-size: var(--font-base);
  font-weight: 700;
  color: var(--text);
}
.post-time {
  display: block;
  color: var(--text2);
  font-size: var(--font-sm);
  margin-top: 0.25rem;
}
.post-privacy {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--red-soft);
  color: var(--red);
  font-size: var(--font-sm);
  font-weight: 700;
}
.post-content {
  white-space: pre-wrap;
  line-height: 1.8;
  color: var(--text);
  font-size: var(--font-base);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: var(--space-md);
}
.post-media {
  display: grid;
  gap: 0.9rem;
  margin-bottom: var(--space-md);
}
.post-media-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface2);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-media-item img,
.post-media-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.post-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: var(--font-sm);
  color: var(--text2);
}
.post-stats {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  flex-wrap: wrap;
}
.post-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--surface2);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border);
}
.post-stat strong {
  color: var(--text);
  font-weight: 700;
}
.post-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--pr-soft);
  color: var(--text);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: var(--font-sm);
}

/* ── Sidebar ── */
.social-sidebar {
  display: grid;
  gap: var(--space-md);
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  align-self: start;
}
.sidebar-card {
  background: var(--surface);
  backdrop-filter: blur(var(--backdrop-blur));
  -webkit-backdrop-filter: blur(var(--backdrop-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  box-shadow: var(--glass-shadow);
}
.sidebar-card h2 {
  font-size: var(--font-lg);
  margin-bottom: var(--space-md);
  color: var(--text);
}
.sidebar-card p,
.sidebar-card li {
  color: var(--text2);
  line-height: 1.7;
}
.sidebar-card ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.sidebar-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding-left: 0.7rem;
  position: relative;
}
.sidebar-card li::before {
  content: '•';
  color: var(--pr);
  position: absolute;
  left: 0;
  top: 0.4rem;
  font-size: var(--font-lg);
}

.empty-state {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  background: linear-gradient(135deg, var(--pr-soft), transparent);
  border-radius: var(--radius);
}
.empty-state h2 {
  margin-bottom: var(--space-md);
  font-size: var(--font-xl);
}
.empty-state p {
  color: var(--text2);
  margin-bottom: var(--space-md);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  flex-wrap: wrap;
}
.pagination .page-info {
  color: var(--text2);
  font-weight: 600;
}

/* ========================
   SCROLLBAR
   ======================== */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--glass-border);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--pr);
}

/* ========================
   RESPONSIVE
   ======================== */

/* Large Desktop */
@media (min-width: 1400px) {
  html {
    font-size: 17px;
  }
  .container {
    max-width: 1200px;
  }
  .hero h1 {
    font-size: var(--font-4xl);
  }
}

/* Desktop */
@media (max-width: 1200px) {
  html {
    font-size: 15px;
  }
  .container {
    max-width: 95%;
  }
  .hero h1 {
    font-size: var(--font-3xl);
  }
}

/* Tablet */
@media (max-width: 1024px) {
  html {
    font-size: 15px;
  }
  .hero h1 {
    font-size: var(--font-2xl);
  }
  .hero {
    padding: var(--space-2xl) var(--space-md);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Large Mobile */
@media (max-width: 992px) {
  .social-grid {
    grid-template-columns: 1fr;
  }
  .social-hero {
    flex-direction: column;
  }
  .social-hero-actions {
    justify-content: stretch;
  }
  .social-sidebar {
    position: static;
    top: auto;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .container {
    padding: var(--space-md) var(--space-sm);
    max-width: 100%;
  }

  .card {
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
  }

  .hero {
    padding: var(--space-xl) var(--space-sm);
  }
  .hero h1 {
    font-size: var(--font-xl);
  }
  .hero p {
    font-size: var(--font-base);
  }
  .hero .btn {
    display: block;
    width: 100%;
    margin-bottom: 0.5rem;
  }
  .hero > div[style*="flex"] {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }

  .btn {
    padding: 0.7rem 1.2rem;
    font-size: var(--font-sm);
    min-height: 44px;
  }
  .btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: var(--font-xs);
    min-height: 36px;
  }

  input,
  select,
  textarea {
    font-size: 16px !important;
    min-height: 44px;
  }

  .wallet-amount {
    font-size: var(--font-xl);
  }

  .task-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .task-item .task-reward {
    margin: 0;
  }

  .toast {
    left: var(--space-md);
    right: var(--space-md);
    transform: translateX(0) translateY(100px);
    width: auto;
  }
  .toast.show {
    transform: translateX(0) translateY(0);
  }

  .post-card {
    padding: var(--space-md);
  }
  .post-author img {
    width: 44px;
    height: 44px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  html {
    font-size: 13px;
  }

  .navbar {
    padding: 0 var(--space-sm);
  }
  .navbar .logo span {
    font-size: 1.1rem;
  }

  .hero {
    padding: var(--space-lg) var(--space-xs);
  }
  .hero h1 {
    font-size: var(--font-lg);
  }
  .hero p {
    font-size: var(--font-sm);
  }

  .container {
    padding: var(--space-sm) var(--space-xs);
  }

  .card {
    padding: var(--space-md);
  }
  .card-title {
    font-size: var(--font-base);
  }

  .form-group {
    margin-bottom: var(--space-md);
  }
  .form-label {
    font-size: var(--font-sm);
  }

  .alert {
    padding: 0.6rem 0.8rem;
    font-size: var(--font-sm);
  }

  .stat-card .stat-value {
    font-size: var(--font-xl);
  }
}

/* Extra Small */
@media (max-width: 360px) {
  html {
    font-size: 12px;
  }
  .hero h1 {
    font-size: var(--font-lg);
  }
  .navbar .logo span {
    font-size: 1rem;
  }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding: var(--space-lg) var(--space-md);
  }
  .hero h1 {
    font-size: var(--font-lg);
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print */
@media print {
  .navbar,
  .theme-toggle,
  footer {
    display: none !important;
  }
  body {
    background: white;
    color: black;
  }
  .card {
    border: 1px solid #ccc;
    box-shadow: none;
  }
}

/* ── Utility ── */
.text-success {
  color: var(--success);
}
.text-danger {
  color: var(--danger);
}
.amount-strong {
  font-weight: 700;
}