/* ══════════════════════════════════════════════════════
   FamGo — Design System & Complete Styles
   ══════════════════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS Variables ── */
:root {
  --bg-primary: #0b0e14;
  --bg-secondary: #0f1219;
  --bg-card: #151822;
  --bg-card-hover: #1c202d;
  --bg-card-solid: #151822;
  --bg-input: rgba(255, 255, 255, 0.03);
  --border-color: rgba(255, 255, 255, 0.05);
  --border-light: rgba(255, 255, 255, 0.08);

  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --text-muted: rgba(255, 255, 255, 0.4);
  --text-accent: #a78bfa;

  --purple-500: #8b5cf6;
  --purple-600: #7c3aed;
  --purple-700: #6d28d9;
  --purple-gradient: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #c084fc 100%);

  --green-400: #4ade80;
  --green-500: #22c55e;
  --green-600: #16a34a;

  --red-400: #f87171;
  --red-500: #ef4444;

  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;

  --yellow-400: #facc15;
  --yellow-500: #eab308;
  --orange-500: #f97316;
  --red-500: #ef4444;

  --nav-height: 72px;
  --max-width: 480px;

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-glow-purple: 0 0 30px rgba(124, 58, 237, 0.3);
  --shadow-glow-green: 0 0 20px rgba(34, 197, 94, 0.2);
}

/* ── Reset ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 50% 0%, rgba(59, 30, 123, 0.4) 0%, transparent 60%),
    radial-gradient(ellipse at 0% 50%, rgba(20, 30, 80, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 80%, rgba(30, 50, 120, 0.2) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ── App Container ── */
.app-container {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: calc(var(--nav-height) + 16px);
}

/* ── Header ── */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: transparent;
}

.app-header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.app-header .logo-icon {
  font-size: 1.6rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-balance {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: var(--bg-card);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
}

.notification-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 1.1rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
  position: relative;
}

.notification-btn:hover { color: var(--text-primary); background: rgba(255, 255, 255, 0.08); }

.back-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.3rem;
  padding: 8px;
  display: flex;
  align-items: center;
}

.page-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.page-title span {
  color: var(--green-400);
}

/* ── Bottom Navigation ── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  background: rgba(15, 18, 40, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 0 12px;
  z-index: 1000;
  height: var(--nav-height);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 4px 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.nav-item .nav-icon {
  font-size: 1.3rem;
  width: 40px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item.active .nav-icon {
  background: var(--purple-gradient);
  color: white;
  box-shadow: var(--shadow-glow-purple);
}

.nav-item.active {
  color: var(--text-primary);
}

/* ── Sections (tab pages) ── */
.page-section {
  display: none;
  padding: 0 16px 20px;
  animation: fadeInPage 0.3s ease;
}

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

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

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.2s ease;
}

.settings-item {
  transition: background-color 0.3s ease;
}

.card-solid {
  background: var(--bg-card-solid);
}

.card-glow {
  box-shadow: var(--shadow-card);
}

/* ── Balance Card ── */
.balance-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 24px;
  margin: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.balance-info .balance-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.balance-info .balance-amount {
  font-size: 2rem;
  font-weight: 800;
  margin-top: 4px;
  letter-spacing: -0.02em;
}

.balance-actions {
  display: flex;
  gap: 12px;
}

.balance-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.7rem;
}

.balance-action-btn .action-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 300;
  transition: all 0.2s;
}

.balance-action-btn .action-icon.deposit {
  background: var(--purple-gradient);
  color: white;
}

.balance-action-btn .action-icon.withdraw {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

/* ── Category Pills ── */
.category-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-pills::-webkit-scrollbar { display: none; }

.pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 24px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
}

.pill.active {
  background: var(--purple-gradient);
  border-color: transparent;
  color: white;
}

.pill:hover:not(.active) {
  background: var(--bg-card-hover);
}

/* ── Banner / Carousel ── */
.hero-banner {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
  position: relative;
  height: 160px;
  background: linear-gradient(135deg, #1a1040 0%, #0d1b3e 100%);
}

.banner-slide {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, #1a0f3a 0%, #0a1628 50%, #0d2818 100%);
}

.banner-content {
  text-align: center;
}

.banner-content h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.banner-content h3 span {
  color: var(--green-400);
}

.banner-content p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.banner-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.banner-nav.prev { left: 8px; }
.banner-nav.next { right: 8px; }

/* ── Spin & Win Banner ── */
.spin-banner {
  background: linear-gradient(135deg, #2d1a4e 0%, #1a3a2e 50%, #3d2a0a 100%);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(234, 179, 8, 0.2);
  cursor: pointer;
  transition: all 0.3s;
  overflow: hidden;
  position: relative;
}

.spin-banner:hover {
  border-color: rgba(234, 179, 8, 0.4);
}

.spin-banner-text h3 {
  font-size: 1.3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fbbf24, #f59e0b, #eab308);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.spin-banner-text p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.spin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  margin-top: 10px;
}

.spin-wheel {
  font-size: 3.5rem;
  animation: spinSlow 8s linear infinite;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ── Section Header ── */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.section-header h2 {
  font-size: 1.05rem;
  font-weight: 700;
}

.section-header .link {
  font-size: 0.82rem;
  color: var(--cyan-400);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Investment List Item ── */
.investment-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  color: inherit;
}

.investment-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  transform: translateY(-1px);
}

.investment-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--bg-card-solid);
  border: 1px solid rgba(255,255,255,0.04);
  box-shadow: inset 0 2px 10px rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.investment-info {
  flex: 1;
}

.investment-info h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.investment-info p {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.investment-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 600;
  margin-top: 6px;
  border: 1px solid;
}

.badge-green {
  color: var(--green-400);
  border-color: var(--green-400);
  background: transparent;
}

.badge-yellow {
  color: var(--yellow-500);
  border-color: var(--yellow-500);
  background: transparent;
}

.investment-return {
  text-align: right;
  flex-shrink: 0;
}

.investment-return .value {
  font-size: 1.05rem;
  font-weight: 700;
}

.investment-return .label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.investment-arrow {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-left: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Why Choose Us ── */
.features-section {
  text-align: center;
  padding: 24px 0;
}

.features-section .section-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px 12px;
  text-align: center;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto 10px;
}

.feature-icon.purple { background: rgba(124, 58, 237, 0.15); color: var(--purple-500); }
.feature-icon.green { background: rgba(34, 197, 94, 0.15); color: var(--green-500); }
.feature-icon.orange { background: rgba(249, 115, 22, 0.15); color: var(--orange-500); }

.feature-card h4 {
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.feature-card p {
  font-size: 0.7rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ── Stats Bar ── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 24px;
}

.stat-item {
  background: var(--bg-card-solid);
  padding: 18px 8px;
  text-align: center;
}

.stat-item .stat-value {
  font-size: 1.2rem;
  font-weight: 800;
}

.stat-item .stat-label {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

/* ── Recent Winners ── */
.winners-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 0 16px;
  scrollbar-width: none;
}

.winners-scroll::-webkit-scrollbar { display: none; }

.winner-card {
  min-width: 150px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 14px;
  flex-shrink: 0;
}

.winner-card .winner-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--purple-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  margin-bottom: 8px;
}

.winner-card .winner-name {
  font-size: 0.82rem;
  font-weight: 600;
}

.winner-card .winner-amount {
  font-size: 1rem;
  font-weight: 800;
  color: var(--green-400);
  margin-top: 2px;
}

.winner-card .winner-game {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* ══════════════════════════════════════════════════════
   WALLET PAGE
   ══════════════════════════════════════════════════════ */

.wallet-balance-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
  margin-bottom: 6px;
}

.wallet-balance-card .label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.wallet-balance-card .amount {
  font-size: 2.4rem;
  font-weight: 900;
  margin: 8px 0 16px;
  letter-spacing: -0.02em;
}

.wallet-breakdown {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.wallet-breakdown-item {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
}

.wallet-breakdown-item .item-label {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.wallet-breakdown-item .item-value {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 4px;
}

.wallet-breakdown-item .item-value.green { color: var(--green-400); }

/* ── Deposit/Withdraw Tabs ── */
.tab-toggle {
  display: flex;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 4px;
  margin: 20px 0 16px;
}

.tab-btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s;
}

.tab-btn.active {
  background: var(--purple-gradient);
  color: white;
  box-shadow: var(--shadow-glow-purple);
}

/* ── Amount Input ── */
.amount-input-wrap {
  position: relative;
  margin-bottom: 14px;
}

.amount-input-wrap .currency {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
}

.amount-input {
  width: 100%;
  padding: 16px 16px 16px 36px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.amount-input:focus {
  border-color: var(--purple-500);
}

.quick-amounts {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.quick-amount-btn {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
}

.quick-amount-btn:hover,
.quick-amount-btn.active {
  border-color: var(--purple-500);
  color: var(--purple-500);
  background: rgba(124, 58, 237, 0.08);
}

/* ── Payment Method Section ── */
.payment-section {
  margin-bottom: 16px;
}

.payment-section h4 {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  font-weight: 600;
}

.qr-display {
  text-align: center;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 14px;
}

.qr-display img {
  width: 180px;
  height: 180px;
  margin: 0 auto 10px;
  border-radius: 8px;
  background: white;
  padding: 8px;
}

.qr-display .upi-id {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.qr-display .upi-id span {
  color: var(--text-primary);
  font-weight: 600;
}

.utr-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  margin-bottom: 12px;
}

.utr-input:focus {
  border-color: var(--purple-500);
}

.upload-proof {
  width: 100%;
  padding: 14px;
  border: 2px dashed var(--border-color);
  border-radius: 14px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 16px;
}

.upload-proof:hover {
  border-color: var(--purple-500);
  color: var(--purple-500);
}

.upload-proof.has-file {
  border-color: var(--green-500);
  color: var(--green-400);
}

/* ── Withdraw Form ── */
.withdraw-form .form-group {
  margin-bottom: 14px;
}

.withdraw-form label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 6px;
}

/* ── Buttons ── */
.btn-primary {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 14px;
  background: var(--purple-gradient);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: var(--shadow-glow-purple);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-outline {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-outline:hover {
  border-color: var(--purple-500);
  color: var(--purple-500);
}

.btn-green {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  box-shadow: var(--shadow-glow-green);
}

.btn-green:hover {
  box-shadow: 0 0 40px rgba(34, 197, 94, 0.4);
}

/* ── Transactions List ── */
.section-label-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 24px 0 14px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.transaction-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
}

.transaction-item:last-child { border-bottom: none; }

.tx-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.tx-icon.deposit { background: rgba(34, 197, 94, 0.12); color: var(--green-400); }
.tx-icon.withdraw { background: rgba(239, 68, 68, 0.12); color: var(--red-500); }
.tx-icon.profit { background: rgba(6, 182, 212, 0.12); color: var(--cyan-400); }

.tx-info { flex: 1; }
.tx-info .tx-type { font-size: 0.88rem; font-weight: 600; }
.tx-info .tx-date { font-size: 0.72rem; color: var(--text-muted); }

.tx-amount { text-align: right; }
.tx-amount .amount { font-size: 0.95rem; font-weight: 700; }
.tx-amount .amount.green { color: var(--green-400); }
.tx-amount .amount.red { color: var(--red-500); }
.tx-amount .status {
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 8px;
  display: inline-block;
  margin-top: 2px;
}

.status-pending { background: rgba(234, 179, 8, 0.12); color: var(--yellow-500); }
.status-approved { background: rgba(34, 197, 94, 0.12); color: var(--green-400); }
.status-rejected { background: rgba(239, 68, 68, 0.12); color: var(--red-500); }

.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}

.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: 0.3;
}

.empty-state p {
  font-size: 0.9rem;
}

.empty-state .sub {
  font-size: 0.78rem;
  margin-top: 4px;
}

/* ══════════════════════════════════════════════════════
   REFER PAGE
   ══════════════════════════════════════════════════════ */

.refer-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 0;
}

.refer-hero h1 {
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1.2;
}

.refer-hero .subtitle {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 8px;
}

.refer-hero .gift-icon {
  font-size: 4rem;
}

.referral-code-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 12px;
}

.referral-code-card h4 {
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.code-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.code-display .code {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.copy-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.copy-btn:hover {
  border-color: var(--purple-500);
  color: var(--purple-500);
}

.copy-btn.copied {
  border-color: var(--green-500);
  color: var(--green-400);
}

.divider-or {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 8px 0;
  position: relative;
}

.divider-or::before, .divider-or::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--border-color);
}

.divider-or::before { left: 0; }
.divider-or::after { right: 0; }

.referral-link-display {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.referral-link-display .link-text {
  flex: 1;
  font-size: 0.78rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 14px;
  background: var(--purple-gradient);
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: var(--shadow-glow-purple);
}

/* ── Referral Stats Grid ── */
.referral-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}

.ref-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px;
}

.ref-stat-card .ref-label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ref-stat-card .ref-value {
  font-size: 1.4rem;
  font-weight: 800;
  margin-top: 6px;
}

.ref-stat-card .ref-value.green { color: var(--green-400); }

.ref-stat-card .ref-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── Transfer Card ── */
.transfer-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.transfer-card:hover {
  border-color: var(--purple-500);
}

.transfer-card .transfer-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(124, 58, 237, 0.15);
  color: var(--purple-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.transfer-card .transfer-info { flex: 1; }
.transfer-card .transfer-info h4 { font-size: 0.9rem; font-weight: 600; }
.transfer-card .transfer-info p { font-size: 0.75rem; color: var(--text-secondary); }
.transfer-card .transfer-arrow { color: var(--text-muted); }

/* ── How It Works ── */
.how-it-works {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 0;
  flex-wrap: wrap;
}

.hiw-step {
  text-align: center;
  flex: 1;
  min-width: 80px;
}

.hiw-step .step-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.12);
  color: var(--purple-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin: 0 auto 8px;
}

.hiw-step .step-title {
  font-size: 0.75rem;
  font-weight: 600;
}

.hiw-step .step-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.hiw-arrow {
  color: var(--text-muted);
  font-size: 1.2rem;
}

/* ══════════════════════════════════════════════════════
   TRADES PAGE
   ══════════════════════════════════════════════════════ */

.trades-summary {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 20px;
}

.trades-summary h2 {
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.trades-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.trade-stat {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
}

.trade-stat .ts-value {
  font-size: 1.15rem;
  font-weight: 800;
}

.trade-stat .ts-value.green { color: var(--green-400); }
.trade-stat .ts-value.purple { color: var(--purple-500); }

.trade-stat .ts-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── Trade Item ── */
.trade-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  margin-bottom: 10px;
}

.trade-item .coin-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card-solid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.trade-item .trade-details { flex: 1; }
.trade-item .trade-details h4 { font-size: 0.9rem; font-weight: 600; }
.trade-item .trade-details .trade-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.trade-item .trade-right { text-align: right; }
.trade-item .trade-right .trade-amount {
  font-size: 0.95rem;
  font-weight: 700;
}

.trade-item .trade-right .trade-status {
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 8px;
  display: inline-block;
  margin-top: 2px;
}

.trade-status.active-status { background: rgba(34, 197, 94, 0.12); color: var(--green-400); }
.trade-status.completed-status { background: rgba(6, 182, 212, 0.12); color: var(--cyan-400); }

/* ══════════════════════════════════════════════════════
   PROFILE PAGE
   ══════════════════════════════════════════════════════ */

.profile-user-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 16px;
  cursor: pointer;
}

.profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.08);
  border: 2px solid var(--green-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  position: relative;
  color: var(--text-secondary);
}

.profile-avatar .verified-dot {
  position: absolute;
  bottom: -2px;
  left: -2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green-500);
  border: 2px solid var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  color: #fff;
}

.profile-user-info { flex: 1; }
.profile-user-info h3 { font-size: 1.05rem; font-weight: 700; }
.profile-user-info .email { font-size: 0.78rem; color: var(--text-secondary); }
.profile-user-info .verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  color: var(--green-400);
  margin-top: 4px;
}

.profile-arrow { color: var(--text-muted); font-size: 1.1rem; }

/* ── Profile Balance ── */
.profile-balance-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 12px;
}

.profile-balance-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.profile-balance-top .pbl-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.profile-balance-top .pbl-amount {
  font-size: 1.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-balance-top .pbl-change {
  font-size: 0.75rem;
  color: var(--green-400);
  margin-top: 4px;
}

.sparkline-chart {
  width: 80px;
  height: 40px;
}

.profile-mini-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.mini-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mini-card .mc-label {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.mini-card .mc-value {
  font-size: 1.2rem;
  font-weight: 800;
  margin-top: 4px;
}

.mini-card .mc-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.mc-icon.purple-bg { background: rgba(124, 58, 237, 0.15); color: var(--purple-500); }
.mc-icon.blue-bg { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }

/* ── Profile Financial Stats ── */
.profile-fin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.pf-stat {
  text-align: center;
}

.pf-stat .pf-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin: 0 auto 6px;
}

.pf-icon.blue { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }
.pf-icon.red { background: rgba(239, 68, 68, 0.12); color: var(--red-500); }
.pf-icon.yellow { background: rgba(234, 179, 8, 0.12); color: var(--yellow-500); }
.pf-icon.green { background: rgba(34, 197, 94, 0.12); color: var(--green-400); }

.pf-stat .pf-label {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.pf-stat .pf-value {
  font-size: 0.9rem;
  font-weight: 700;
  margin-top: 2px;
}

/* ── Settings List ── */
.settings-group {
  margin-bottom: 20px;
}

.settings-group .group-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 10px;
  padding-left: 4px;
}

.settings-list {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
}

.settings-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: background 0.2s, border-color 0.3s ease;
}

.settings-item:last-child { border-bottom: none; }
.settings-item:hover { background: var(--bg-card-hover); }

.settings-item .si-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  color: var(--text-secondary);
}

.si-icon.purple-bg { background: rgba(124, 58, 237, 0.12); color: var(--purple-500); }
.si-icon.red-bg { background: rgba(239, 68, 68, 0.12); color: var(--red-500); }
.si-icon.green-bg { background: rgba(34, 197, 94, 0.12); color: var(--green-400); }
.si-icon.blue-bg { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }
.si-icon.orange-bg { background: rgba(249, 115, 22, 0.12); color: var(--orange-500); }
.si-icon.cyan-bg { background: rgba(6, 182, 212, 0.12); color: var(--cyan-400); }
.si-icon.yellow-bg { background: rgba(234, 179, 8, 0.12); color: var(--yellow-500); }

.settings-item .si-info { flex: 1; }
.settings-item .si-info h4 { font-size: 0.9rem; font-weight: 600; }
.settings-item .si-info p { font-size: 0.72rem; color: var(--text-secondary); }
.settings-item .si-arrow { color: var(--text-muted); }

.logout-btn {
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 14px;
  background: rgba(239, 68, 68, 0.06);
  color: var(--red-500);
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
}

.logout-btn:hover {
  background: rgba(239, 68, 68, 0.15);
}

body.light-mode {
  --bg-primary: #f8f9fa;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f3f4f6;
  --bg-card-solid: #ffffff;
  --bg-input: rgba(0, 0, 0, 0.04);
  --border-color: rgba(0, 0, 0, 0.08);
  --border-light: rgba(0, 0, 0, 0.1);

  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --text-accent: #7c3aed;

  /* Adjust backgrounds for light mode elements so they aren't totally invisible */
  --purple-bg: rgba(139, 92, 246, 0.15);
  --cyan-bg: rgba(6, 182, 212, 0.15);
  --blue-bg: rgba(59, 130, 246, 0.15);
  --green-bg: rgba(34, 197, 94, 0.15);
  --yellow-bg: rgba(234, 179, 8, 0.15);
  --orange-bg: rgba(249, 115, 22, 0.15);
  --red-bg: rgba(239, 68, 68, 0.15);
}

/* ══════════════════════════════════════════════════════
   CRYPTO TRADES DETAIL PAGE
   ══════════════════════════════════════════════════════ */

.crypto-hero {
  background: linear-gradient(135deg, var(--bg-card-solid) 0%, rgba(34, 197, 94, 0.06) 100%);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 28px 24px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.crypto-hero .ch-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--green-400);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.crypto-hero h1 {
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.25;
  max-width: 240px;
}

.crypto-hero p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 8px;
  line-height: 1.4;
}

.crypto-hero .ch-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(34, 197, 94, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

/* ── Filter Pills ── */
.filter-pills {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-pills::-webkit-scrollbar { display: none; }

.filter-pill {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-pill.active {
  background: var(--green-500);
  border-color: var(--green-500);
  color: white;
}

.reinvest-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Plan Card (Crypto Trades) ── */
.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.plan-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.plan-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--green-500), transparent);
  opacity: 0.4;
}

.plan-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.plan-header .plan-coin-icon {
  font-size: 1.3rem;
}

.plan-header h3 {
  font-size: 1.05rem;
  font-weight: 800;
}

.plan-header .plan-badge {
  font-size: 0.6rem;
  padding: 3px 10px;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.plan-badge.green-badge { background: rgba(34, 197, 94, 0.15); color: var(--green-400); }
.plan-badge.yellow-badge { background: rgba(234, 179, 8, 0.15); color: var(--yellow-500); }

.plan-details {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.plan-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.plan-detail-row .pd-label {
  color: var(--text-secondary);
}

.plan-detail-row .pd-value {
  font-weight: 600;
}

.daily-payout-highlight {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: 8px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: var(--green-400);
  font-weight: 800;
  font-size: 1.1rem;
}

.validity-badge {
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(34, 197, 94, 0.1);
  color: var(--green-400);
  font-size: 0.78rem;
  font-weight: 600;
}

.trade-now-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s;
  box-shadow: var(--shadow-glow-green);
}

.trade-now-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.4);
}

/* ══════════════════════════════════════════════════════
   QUICK CRYPTO DETAIL PAGE
   ══════════════════════════════════════════════════════ */

.live-ticker {
  display: flex;
  gap: 8px;
  padding: 8px 0;
  overflow: hidden;
  margin-bottom: 12px;
}

.live-badge {
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.15);
  color: var(--red-500);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.ticker-text {
  white-space: nowrap;
  overflow: hidden;
  font-size: 0.78rem;
  color: var(--text-secondary);
  animation: marquee 15s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.quick-hero {
  text-align: center;
  padding: 20px 0;
}

.quick-hero .qh-badge {
  display: inline-block;
  padding: 6px 20px;
  border-radius: 20px;
  border: 1px solid var(--cyan-500);
  color: var(--cyan-400);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.quick-hero .plans-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 20px;
  background: rgba(6, 182, 212, 0.08);
  color: var(--cyan-400);
  font-size: 0.72rem;
  margin-bottom: 12px;
}

.quick-hero h1 {
  font-size: 1.6rem;
  font-weight: 900;
}

.quick-hero .qh-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 6px;
}

.quick-hero .qh-hint {
  font-size: 0.78rem;
  color: var(--cyan-400);
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ── Quick Plan Grid ── */
.quick-plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.quick-plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 18px;
  position: relative;
  transition: all 0.3s;
}

.quick-plan-card:hover {
  border-color: rgba(6, 182, 212, 0.3);
  transform: translateY(-2px);
}

.qp-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.qp-coin-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.qp-duration {
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(6, 182, 212, 0.1);
  color: var(--cyan-400);
  font-size: 0.68rem;
  font-weight: 600;
}

.qp-name {
  font-size: 1rem;
  font-weight: 700;
}

.qp-symbol {
  font-size: 0.72rem;
  color: var(--cyan-400);
  margin-bottom: 10px;
}

.qp-profit {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--cyan-400);
}

.qp-profit-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.qp-total {
  font-size: 1rem;
  font-weight: 700;
}

.qp-total-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.qp-price {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.buy-now-btn {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #0891b2, #06b6d4);
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.buy-now-btn:hover {
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

/* ══════════════════════════════════════════════════════
   AUTH PAGE
   ══════════════════════════════════════════════════════ */

.auth-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

.auth-logo {
  text-align: center;
  margin-bottom: 24px;
}

.auth-logo .logo-emoji {
  font-size: 4rem;
  display: block;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 30px rgba(234, 179, 8, 0.3));
  transition: transform 0.15s ease-in-out;
}

.auth-logo h1 {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.auth-logo p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 6px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 28px;
}

.auth-tabs {
  display: flex;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 24px;
}

.auth-tab {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.auth-tab.active {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-form .form-group {
  position: relative;
}

.auth-form .input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
}

.auth-form input {
  width: 100%;
  padding: 16px 16px 16px 44px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.auth-form input:focus {
  border-color: var(--purple-500);
}

.auth-form input::placeholder {
  color: var(--text-muted);
}

.toggle-password {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
}

.forgot-link {
  text-align: right;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: -4px;
}

.forgot-link:hover {
  color: var(--purple-500);
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.auth-footer .shield { color: var(--green-400); }

/* ── Modals / Overlays ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 28px;
  width: 100%;
  max-width: 400px;
  transform: translateY(20px);
  transition: transform 0.3s;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

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

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
}

/* ── Toast Notifications ── */
.toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: var(--max-width);
  width: 100%;
  padding: 0 20px;
}

.toast {
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInToast 0.3s ease, fadeOutToast 0.3s ease 2.7s forwards;
  box-shadow: var(--shadow-card);
}

.toast.success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--green-400);
}

.toast.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--red-500);
}

.toast.info {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
}

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

@keyframes fadeOutToast {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* ── Loader ── */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.3s;
}

.page-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border-color);
  border-top-color: var(--purple-500);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Responsive Adjustments ── */
@media (min-width: 481px) {
  .app-container { border-left: 1px solid var(--border-color); border-right: 1px solid var(--border-color); }
}

/* ── Utility ── */
.text-green { color: var(--green-400) !important; }
.text-red { color: var(--red-500) !important; }
.text-purple { color: var(--purple-500) !important; }
.text-cyan { color: var(--cyan-400) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.hidden { display: none !important; }

/* ── Modals ── */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  padding: 20px;
}

.modal-content {
  background: var(--bg-secondary);
  width: 100%;
  max-width: 400px;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-color);
  position: relative;
  animation: modalFadeIn 0.3s ease;
}

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

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

.modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

/* ══════════════════════════════════════════════════════
   CRYPTO / PLANS PAGE
   ══════════════════════════════════════════════════════ */

/* ── Crypto Hero ── */
.crypto-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0 0 20px;
}

.crypto-hero h1 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 6px;
}

.crypto-hero p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 300px;
}

.crypto-hero .ch-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--green-400);
  font-weight: 700;
  margin-bottom: 8px;
  display: none;
}

.crypto-hero .ch-icon {
  font-size: 2.5rem;
  opacity: 0.3;
  flex-shrink: 0;
}

/* ── Filter Pills ── */
.filter-pills {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}

.filter-pills::-webkit-scrollbar { display: none; }

.filter-pill {
  padding: 8px 18px;
  border-radius: 24px;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-pill:hover {
  background: rgba(255,255,255,0.04);
  border-color: var(--border-light);
}

.filter-pill.active {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 10px rgba(34,197,94,0.25);
}

/* ── Reinvest Note ── */
.reinvest-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  padding: 0 2px;
}

/* ── Plan Cards ── */
.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 14px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.plan-card:hover {
  border-color: var(--border-light);
  transform: translateY(-1px);
}

/* Plan Header: icon + name + badge */
.plan-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.plan-coin-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.08);
}

.plan-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  flex: 1;
}

.plan-badge {
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.green-badge {
  background: rgba(34,197,94,0.12);
  color: var(--green-400);
  border: 1px solid rgba(34,197,94,0.2);
}

.yellow-badge {
  background: rgba(234,179,8,0.12);
  color: var(--yellow-400);
  border: 1px solid rgba(234,179,8,0.2);
}

/* Plan Details Rows */
.plan-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.plan-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pd-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.pd-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* DAILY PAYOUT highlight */
.daily-payout-highlight {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--green-400);
}

/* Validity badge */
.validity-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(34,197,94,0.1);
  color: var(--green-400);
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid rgba(34,197,94,0.15);
}

/* Trade Now Button */
.trade-now-btn {
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 12px rgba(34,197,94,0.2);
  letter-spacing: 0.01em;
}

.trade-now-btn:hover {
  box-shadow: 0 4px 20px rgba(34,197,94,0.35);
  transform: translateY(-1px);
}

.trade-now-btn:active {
  transform: translateY(0);
}

/* ── Confirm Trade Modal ── */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-overlay.active {
  display: flex;
  animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: #111527;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 24px;
  width: 100%;
  max-width: 400px;
  animation: modalSlideUp 0.25s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

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

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

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.modal-close {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-close:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
}

/* Green button for modals */
.btn-green {
  background: linear-gradient(135deg, #16a34a, #22c55e) !important;
  box-shadow: 0 2px 12px rgba(34,197,94,0.2);
}

.btn-green:hover {
  box-shadow: 0 4px 20px rgba(34,197,94,0.35) !important;
}

/* ── Quick Crypto (hourly) page overrides ── */
.hourly-payout-highlight {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--cyan-400);
}

.hourly-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(6,182,212,0.1);
  color: var(--cyan-400);
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid rgba(6,182,212,0.15);
}

/* ── Toast Notifications ── */
.toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 400px;
  padding: 0 16px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  animation: toastIn 0.3s ease;
  pointer-events: auto;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.toast.success {
  background: rgba(22,163,74,0.9);
  border: 1px solid rgba(34,197,94,0.3);
  color: #fff;
}

.toast.error {
  background: rgba(220,38,38,0.9);
  border: 1px solid rgba(239,68,68,0.3);
  color: #fff;
}

.toast.info {
  background: rgba(59,130,246,0.9);
  border: 1px solid rgba(96,165,250,0.3);
  color: #fff;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Helper classes ── */
.text-green { color: var(--green-400); }
.text-red { color: var(--red-400); }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

/* ══════════════════════════════════════════════════════
   QUICK CRYPTO / GOLDEN HOUR PAGE
   ══════════════════════════════════════════════════════ */

/* ── Live Ticker ── */
.live-ticker {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  overflow: hidden;
  white-space: nowrap;
}

.live-badge {
  background: rgba(239, 68, 68, 0.15);
  color: var(--red-500);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  border: 1px solid rgba(239, 68, 68, 0.3);
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
}

.live-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--red-500);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.ticker-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  animation: ticker 25s linear infinite;
  display: inline-block;
  padding-left: 10px;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Quick Hero ── */
.quick-hero {
  text-align: center;
  margin-bottom: 24px;
}

.qh-badge {
  display: inline-block;
  background: rgba(6, 182, 212, 0.15);
  color: var(--cyan-400);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.quick-hero h1 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.qh-sub {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.qh-hint {
  font-size: 0.8rem;
  color: var(--cyan-400);
}

.plans-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* ── Quick Plans Grid ── */
.quick-plans-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (max-width: 360px) {
  .quick-plans-grid { grid-template-columns: 1fr; }
}

.quick-plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.quick-plan-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #06b6d4, #3b82f6);
  opacity: 0.5;
}

.quick-plan-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.qp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.qp-coin-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.1);
  color: var(--cyan-400);
  border: 1px solid rgba(6, 182, 212, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.qp-duration {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 8px;
  border-radius: 12px;
}

.qp-name {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.qp-symbol {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.qp-profit {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--cyan-400);
}

.qp-profit-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.qp-total {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.qp-total-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.qp-price {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
  padding: 6px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.buy-now-btn {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #0891b2, #06b6d4);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.buy-now-btn:hover {
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
  filter: brightness(1.1);
}

/* ══════════════════════════════════════════════════════
   SPIN & WIN PAGE — Premium Design
   ══════════════════════════════════════════════════════ */

/* Hero Card */
.spin-hero-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
}

.spin-hero-badge {
  display: inline-block;
  background: rgba(255, 215, 0, 0.12);
  color: #ffd700;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 6px;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.spin-hero-title {
  font-size: 1.6rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ffd700, #ff8c00, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.spin-hero-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.spin-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.spin-hero-tags span {
  font-size: 0.72rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Wheel Container */
.spin-wheel-container {
  background: var(--bg-card);
  border: 1px solid rgba(255, 215, 0, 0.12);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.spin-wheel-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 16px;
}

.spin-wheel-wrapper {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

/* Outer ring */
.spin-outer-ring {
  position: absolute;
  width: 310px;
  height: 310px;
  border-radius: 50%;
  border: 4px solid rgba(255, 215, 0, 0.3);
  pointer-events: none;
  z-index: 2;
}

/* Bulbs */
.spin-bulbs {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.spin-bulb {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #ffd700;
  border-radius: 50%;
  left: calc(50% - 4px);
  top: calc(50% - 4px);
  box-shadow: 0 0 6px #ffd700, 0 0 12px rgba(255, 215, 0, 0.5);
  animation: bulbBlink 1s ease-in-out infinite;
}

.spin-bulb.alt {
  animation-delay: 0.5s;
  background: #ff6b35;
  box-shadow: 0 0 6px #ff6b35, 0 0 12px rgba(255, 107, 53, 0.5);
}

@keyframes bulbBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Pointer */
.spin-pointer {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  filter: drop-shadow(0 2px 6px rgba(255, 215, 0, 0.5));
}

/* Canvas */
#spin-canvas {
  border-radius: 50%;
  z-index: 1;
  box-shadow: 
    0 0 20px rgba(255, 215, 0, 0.15),
    inset 0 0 30px rgba(0, 0, 0, 0.3);
}

/* Center button */
.spin-center-btn {
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
  cursor: pointer;
  box-shadow: 
    0 4px 20px rgba(239, 68, 68, 0.5),
    0 0 0 4px rgba(255, 255, 255, 0.2),
    inset 0 -3px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.spin-center-btn:hover {
  transform: scale(1.05);
  box-shadow: 
    0 4px 30px rgba(239, 68, 68, 0.6),
    0 0 0 4px rgba(255, 255, 255, 0.3),
    inset 0 -3px 8px rgba(0, 0, 0, 0.2);
}

.spin-center-btn:active {
  transform: scale(0.95);
}

.spin-center-text {
  font-size: 0.9rem;
  font-weight: 900;
  color: white;
  letter-spacing: 0.05em;
}

.spin-center-cost {
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

/* Glow bar */
.spin-glow-bar {
  width: 60%;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #3b82f6, #06b6d4, transparent);
  margin: 12px 0;
  opacity: 0.6;
}

/* Info cards */
.spin-info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
}

.spin-info-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
}

.spin-info-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--cyan-400);
}

.spin-info-label {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

/* Main Spin Button */
.spin-main-btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
  color: #000;
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.spin-main-btn:hover {
  box-shadow: 0 6px 30px rgba(245, 158, 11, 0.5);
  transform: translateY(-1px);
}

.spin-main-btn:active {
  transform: translateY(1px);
}

.spin-main-btn:disabled,
.spin-main-btn.spinning {
  opacity: 0.6;
  pointer-events: none;
  animation: pulseBtn 1s ease-in-out infinite;
}

@keyframes pulseBtn {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.9; }
}

.spin-main-btn-icon {
  font-size: 1.3rem;
}

/* Stats Row */
.spin-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.spin-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px;
}

.spin-stat-icon {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.spin-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.spin-stat-value {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 2px 0;
}

.spin-stat-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* Spin History */
.spin-history-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}

.spin-history-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.spin-history-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
}

.spin-history-list {
  max-height: 300px;
  overflow-y: auto;
}

.spin-empty-state {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 20px 0;
}

.spin-history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.spin-history-item:last-child {
  border-bottom: none;
}

.spin-h-icon {
  font-size: 1.3rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.spin-h-info {
  flex: 1;
}

.spin-h-label {
  font-size: 0.85rem;
  font-weight: 600;
}

.spin-h-time {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.spin-h-amount {
  font-size: 0.95rem;
  font-weight: 700;
}

.spin-h-amount.green { color: var(--green-400); }
.spin-h-amount.red { color: var(--red-400); }

/* How to Play */
.spin-howto-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}

.spin-howto-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.spin-howto-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
}

.spin-howto-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spin-howto-step {
  display: flex;
  align-items: center;
  gap: 12px;
}

.spin-step-num {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: var(--purple-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
}

.spin-howto-step p {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* ══════════════════════════════════════════════════════
   SPIN RESULT MODAL
   ══════════════════════════════════════════════════════ */

.spin-result-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.spin-result-modal.show {
  opacity: 1;
}

.spin-result-content {
  background: var(--bg-card);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 24px;
  padding: 40px 30px;
  text-align: center;
  max-width: 340px;
  width: 100%;
  position: relative;
  overflow: hidden;
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.spin-result-modal.show .spin-result-content {
  transform: scale(1);
}

.spin-result-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 2;
}

.spin-result-confetti {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.confetti-piece {
  position: absolute;
  width: 8px;
  height: 12px;
  top: -20px;
  border-radius: 2px;
  animation: confettiFall 2s ease-in forwards;
}

@keyframes confettiFall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(400px) rotate(720deg);
    opacity: 0;
  }
}

.spin-result-emoji {
  font-size: 4rem;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
  animation: bounceIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bounceIn {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

.spin-result-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}

.spin-result-msg {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.spin-result-amount {
  font-size: 2.5rem;
  font-weight: 900;
  margin: 8px 0 12px;
  position: relative;
  z-index: 1;
}

.spin-result-amount.win {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.spin-result-amount.lose {
  color: var(--text-muted);
}

.spin-result-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.spin-result-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: var(--purple-gradient);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  z-index: 1;
}

.spin-result-btn:hover {
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}
