/* ==========================================================================
   Cash EarnIn — Bento Minimalist Design System
   Sleek, modern, dark-mode Bento Grid UI for Telegram Mini App & Web
   ========================================================================== */

:root {
  /* Sleek Minimalist Color Palette */
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  --primary-glow: rgba(59, 130, 246, 0.35);

  --accent: #00f2fe;
  --accent-gradient: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  --accent-glow: rgba(0, 242, 254, 0.35);

  --success: #10b981;
  --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --success-glow: rgba(16, 185, 129, 0.3);

  --warning: #f59e0b;
  --warning-gradient: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  --warning-glow: rgba(245, 158, 11, 0.35);

  --gold: #ffd700;
  --gold-gradient: linear-gradient(135deg, #ffe066 0%, #ffd700 50%, #f59e0b 100%);

  --danger: #ef4444;
  --danger-gradient: linear-gradient(135deg, #f87171 0%, #ef4444 100%);

  --purple: #8b5cf6;
  --purple-gradient: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
  --purple-glow: rgba(139, 92, 246, 0.35);

  /* Bento Dark Surfaces */
  --bg-main: #0b0914;
  --bg-bento: rgba(20, 17, 34, 0.85);
  --bg-bento-card: #141124;
  --bg-bento-subtle: rgba(255, 255, 255, 0.03);
  --bg-input: rgba(13, 11, 23, 0.95);
  --nav-bg: rgba(14, 12, 25, 0.92);

  /* Typography */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-highlight: #38bdf8;

  /* Crisp Bento Borders */
  --border-bento: rgba(255, 255, 255, 0.08);
  --border-bento-hover: rgba(255, 255, 255, 0.18);
  --border-accent: rgba(59, 130, 246, 0.4);

  /* Bento Radii */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 30px;
  --radius-full: 9999px;

  /* Elevation Shadows */
  --shadow-bento: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-bento-glow: 0 8px 30px rgba(0, 0, 0, 0.5);

  --font-family: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'Space Mono', monospace;
}

/* Telegram Mini App Sync */
body.in-telegram {
  --bg-main: var(--tg-theme-bg-color, #0b0914);
}

/* Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(59, 130, 246, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(139, 92, 246, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(16, 185, 129, 0.08) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
  overflow-x: hidden;
  user-select: none;
  -webkit-user-select: none;
}

/* Mobile Wrapper Container */
.app-container {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background: transparent;
  position: relative;
  display: flex;
  flex-direction: column;
  padding-bottom: 92px;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.8);
}

/* Sticky App Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-bento);
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #1e1b4b, #312e81);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  font-size: 1.15rem;
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-bento);
  border: 1px solid var(--border-bento);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.icon-btn:hover, .icon-btn:active {
  color: #fff;
  border-color: var(--border-bento-hover);
  background: rgba(255, 255, 255, 0.08);
}

.badge-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  background: var(--danger);
  border-radius: 50%;
  border: 2px solid #141124;
}

.user-avatar-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 12px 4px 5px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-bento);
  font-size: 0.82rem;
  font-weight: 700;
}

.user-avatar-chip .avatar-img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  font-size: 0.8rem;
}

/* Page Views */
.page-view {
  display: none;
  padding: 16px 16px 24px;
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-view.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Bento Header Row */
.bento-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding: 2px 2px;
}

.bento-page-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.3px;
}

.bento-page-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* User Greeting Header in Home */
.user-welcome-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding: 2px 2px;
}

.user-greeting {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.user-display-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.4px;
}

/* Level Tier Chip in Header */
.level-badge-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-bento);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.level-badge-chip:active {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-bento-hover);
}

/* ==========================================================================
   Bento Cards & Containers
   ========================================================================== */
.bento-card {
  background: var(--bg-bento-card);
  border: 1px solid var(--border-bento);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-bento);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.bento-card:hover {
  border-color: var(--border-bento-hover);
}

.bento-card.hero {
  background: linear-gradient(160deg, #18152e 0%, #110e22 100%);
  border: 1px solid rgba(59, 130, 246, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.bento-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.bento-tile {
  background: var(--bg-bento-card);
  border: 1px solid var(--border-bento);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-bento);
  transition: all 0.2s ease;
}

.bento-tile:hover {
  border-color: var(--border-bento-hover);
}

.bento-tile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.bento-tile-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid var(--border-bento);
}

.bento-tile-icon.green  { color: var(--success); background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.2); }
.bento-tile-icon.cyan   { color: var(--accent);  background: rgba(0, 242, 254, 0.1);  border-color: rgba(0, 242, 254, 0.2); }
.bento-tile-icon.gold   { color: var(--gold);    background: rgba(255, 215, 0, 0.1);  border-color: rgba(255, 215, 0, 0.2); }
.bento-tile-icon.purple { color: var(--purple);  background: rgba(139, 92, 246, 0.1); border-color: rgba(139, 92, 246, 0.2); }
.bento-tile-icon.blue   { color: var(--primary); background: rgba(59, 130, 246, 0.1); border-color: rgba(59, 130, 246, 0.2); }

.bento-tile-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bento-tile-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin: 2px 0;
  letter-spacing: -0.3px;
}

.bento-tile-sub {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-dim);
}

/* ==========================================================================
   Balance Hero Display
   ========================================================================== */
.balance-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.balance-dollar-main {
  font-size: 2.6rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.6px;
  line-height: 1.1;
  margin: 4px 0 6px;
  font-family: var(--font-family);
}

.balance-points-sub {
  font-size: 0.95rem;
  font-weight: 700;
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-bento);
  margin-bottom: 16px;
}

.balance-rupee-val {
  font-size: 1rem;
  font-weight: 700;
  color: var(--success);
  margin-bottom: 16px;
}

/* Unclaimed Mining Action Box inside Bento Hero */
.unclaimed-mining-box {
  background: rgba(10, 8, 20, 0.7);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  margin-top: 10px;
}

.unclaimed-mining-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.live-unclaimed-value {
  color: var(--gold);
  font-weight: 800;
  font-size: 1.05rem;
  font-family: var(--font-mono);
}

/* Live Status Pulse Dot */
.status-pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--success);
}

/* ==========================================================================
   Lucky Hour Minimal Banner
   ========================================================================== */
.lucky-hour-banner {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(245, 158, 11, 0.15) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.lucky-hour-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lucky-hour-icon {
  font-size: 1.4rem;
}

.lucky-hour-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
}

.lucky-hour-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.lucky-hour-badge {
  background: var(--warning);
  color: #000;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

/* ==========================================================================
   Level Progression Bento Card
   ========================================================================== */
.level-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.custom-progress-wrap {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  height: 8px;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 8px 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.custom-progress-bar {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

/* ==========================================================================
   Buttons — Clean Bento Style
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  outline: none;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:active {
  transform: translateY(2px);
  box-shadow: 0 2px 6px var(--primary-glow);
}

.btn-accent {
  background: var(--accent-gradient);
  color: #082f49;
  box-shadow: 0 4px 14px var(--accent-glow);
  font-weight: 800;
}

.btn-accent:active {
  transform: translateY(2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-bento);
  color: #fff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-bento-hover);
}

.btn-secondary:active {
  transform: translateY(2px);
}

.btn-sm {
  padding: 8px 12px;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

.btn-full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}

/* ==========================================================================
   Tasks View
   ========================================================================== */
.task-item-card {
  background: var(--bg-bento-card);
  border: 1px solid var(--border-bento);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s ease;
}

.task-item-card:hover {
  border-color: var(--border-bento-hover);
}

.task-item-card.completed {
  opacity: 0.6;
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.03);
}

.task-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.task-type-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  border: 1px solid var(--border-bento);
}

.task-type-icon.telegram { background: rgba(0, 136, 204, 0.15); color: #38bdf8; border-color: rgba(0, 136, 204, 0.3); }
.task-type-icon.youtube  { background: rgba(239, 68, 68, 0.15);  color: #f87171; border-color: rgba(239, 68, 68, 0.3); }
.task-type-icon.instagram{ background: rgba(236, 72, 153, 0.15); color: #f472b6; border-color: rgba(236, 72, 153, 0.3); }
.task-type-icon.twitter  { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border-color: rgba(56, 189, 248, 0.3); }
.task-type-icon.website  { background: rgba(16, 185, 129, 0.15); color: #34d399; border-color: rgba(16, 185, 129, 0.3); }
.task-type-icon.other    { background: rgba(139, 92, 246, 0.15); color: #a78bfa; border-color: rgba(139, 92, 246, 0.3); }

.task-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.task-reward-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--success);
}

/* ==========================================================================
   Referral & History List
   ========================================================================== */
.history-item {
  background: var(--bg-bento-card);
  border: 1px solid var(--border-bento);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.history-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.history-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border: 1px solid var(--border-bento);
}

.history-icon.credit { background: rgba(16, 185, 129, 0.12); color: var(--success); border-color: rgba(16, 185, 129, 0.25); }
.history-icon.debit  { background: rgba(239, 68, 68, 0.12);  color: #f87171;     border-color: rgba(239, 68, 68, 0.25); }

.history-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1px;
}

.history-date {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.history-points {
  font-size: 0.95rem;
  font-weight: 800;
}

.history-points.credit { color: var(--success); }
.history-points.debit  { color: #f87171; }

.badge-status {
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: capitalize;
  border: 1px solid var(--border-bento);
}

.badge-status.pending  { background: rgba(245, 158, 11, 0.15); color: var(--warning); border-color: rgba(245, 158, 11, 0.3); }
.badge-status.approved { background: rgba(0, 242, 254, 0.15);  color: var(--accent);  border-color: rgba(0, 242, 254, 0.3); }
.badge-status.paid     { background: rgba(16, 185, 129, 0.15); color: var(--success); border-color: rgba(16, 185, 129, 0.3); }
.badge-status.rejected { background: rgba(239, 68, 68, 0.15);  color: var(--danger);  border-color: rgba(239, 68, 68, 0.3); }

/* ==========================================================================
   Bottom Tab Navigation — Floating Bento Dock
   ========================================================================== */
.bottom-nav-bar {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 456px;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-bento-hover);
  border-radius: var(--radius-xl);
  display: flex;
  justify-content: space-around;
  padding: 6px 4px;
  z-index: 60;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.nav-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-family: var(--font-family);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  flex: 1;
}

.nav-tab-btn i {
  font-size: 1.15rem;
  transition: transform 0.2s ease;
}

.nav-tab-btn.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-bento-hover);
}

.nav-tab-btn.active i {
  color: #38bdf8;
  transform: translateY(-1px);
}

/* ==========================================================================
   Modals & Drawers
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-sheet {
  background: #120f24;
  width: 100%;
  max-width: 480px;
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  padding: 24px 20px 36px;
  max-height: 88vh;
  overflow-y: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-left: 1px solid var(--border-bento);
  border-right: 1px solid var(--border-bento);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
  animation: slideUpSheet 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpSheet {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Form Controls */
.form-group {
  margin-bottom: 14px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-bento);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: #fff;
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 600;
  outline: none;
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* 7-Days Streak Grid */
.streak-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 14px 0;
}

.streak-grid .streak-day-7 {
  grid-column: span 2;
}

.streak-day-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-bento);
  border-radius: var(--radius-sm);
  padding: 10px 6px;
  text-align: center;
  transition: all 0.2s ease;
}

.streak-day-box.claimed {
  background: rgba(16, 185, 129, 0.12);
  border-color: var(--success);
}

.streak-day-box.current {
  border: 1px solid var(--warning);
  background: rgba(245, 158, 11, 0.15);
}

.streak-day-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.streak-day-pts {
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 380px;
  z-index: 200;
  pointer-events: none;
}

.toast {
  background: #18152c;
  color: #fff;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  border: 1px solid var(--border-bento-hover);
  animation: toastPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
  font-weight: 700;
  font-size: 0.9rem;
}

.toast.success { border-color: var(--success); }
.toast.error   { border-color: var(--danger); }
.toast.warning { border-color: var(--warning); }

@keyframes toastPop {
  from { opacity: 0; transform: translateY(-20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Lucky Spin Wheel */
.spinner-wheel-wrap {
  width: 210px;
  height: 210px;
  margin: 10px auto 18px;
  position: relative;
}

.spinner-pointer {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  color: var(--gold);
  z-index: 10;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
}

.spinner-wheel-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  transition: transform 3.5s cubic-bezier(0.15, 0.9, 0.25, 1);
  background: conic-gradient(
    #ef4444 0deg 60deg,
    #f97316 60deg 120deg,
    #eab308 120deg 180deg,
    #10b981 180deg 240deg,
    #06b6d4 240deg 300deg,
    #8b5cf6 300deg 360deg
  );
}

.wheel-sector {
  position: absolute;
  width: 50%;
  height: 50%;
  top: 0;
  right: 0;
  transform-origin: 0% 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wheel-sector span {
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  transform: rotate(45deg);
}

.wheel-sector.s1 { transform: rotate(0deg) skewY(-30deg); }
.wheel-sector.s2 { transform: rotate(60deg) skewY(-30deg); }
.wheel-sector.s3 { transform: rotate(120deg) skewY(-30deg); }
.wheel-sector.s4 { transform: rotate(180deg) skewY(-30deg); }
.wheel-sector.s5 { transform: rotate(240deg) skewY(-30deg); }
.wheel-sector.s6 { transform: rotate(300deg) skewY(-30deg); }

.spinner-center-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #141124;
  border: 3px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  z-index: 5;
}

/* Mystery Box Items */
.mystery-boxes-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 10px 0;
}

.mystery-box-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-bento);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s ease;
}

.mystery-box-item:hover {
  border-color: var(--border-bento-hover);
}

.box-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border: 1px solid var(--border-bento);
  flex-shrink: 0;
}

.box-info {
  flex: 1;
  text-align: left;
}

.box-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2px;
}

.box-loot {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Tiers Table */
.tiers-table-wrap {
  border: 1px solid var(--border-bento);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 12px 0;
  background: rgba(0, 0, 0, 0.25);
}

.tier-table-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  padding: 10px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  border-bottom: 1px solid var(--border-bento);
  align-items: center;
}

.tier-table-row:last-child {
  border-bottom: none;
}

.tier-table-row.header {
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-dim);
}

.tier-table-row.current {
  background: rgba(16, 185, 129, 0.12);
  border-left: 3px solid var(--success);
}

.tier-name-col {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
}

.tier-speed-col {
  color: var(--success);
  font-weight: 800;
}
