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

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

:root {
  --bg: #050505;
  --bg-card: #0d1424;
  --bg-card-alt: #1a1f35;
  --bg-sidebar: #0a0e1a;
  --bg-input: rgba(255, 255, 255, 0.05);
  --bg-header: #111827;

  --text-primary: #f0f4f8;
  --text-secondary: #8b9dc3;
  --text-tertiary: #4a5568;

  --cyan: #00dcff;
  --cyan-glow: rgba(0, 220, 255, 0.25);
  --cyan-border: rgba(0, 220, 255, 0.2);
  --cyan-bg: rgba(0, 220, 255, 0.06);

  --green: #22c55e;
  --green-accent: #16a34a;
  --green-border: rgba(22, 101, 52, 0.4);
  --green-bg: rgba(16, 185, 129, 0.08);

  --purple: #7c3aed;
  --purple-dark: #6d28d9;
  --purple-bg: rgba(124, 58, 237, 0.08);
  --purple-border: rgba(124, 58, 237, 0.3);
  --purple-glow: rgba(124, 58, 237, 0.15);

  --amber: #f59e0b;
  --amber-bg: rgba(245, 158, 11, 0.08);
  --amber-border: rgba(234, 179, 8, 0.2);

  --red: #ef4444;
  --red-bg: rgba(239, 68, 68, 0.08);
  --red-border: rgba(239, 68, 68, 0.2);

  --blue: #3b82f6;
  --blue-bg: rgba(59, 130, 246, 0.08);
  --blue-border: rgba(59, 130, 246, 0.3);

  --orange: #f97316;
  --orange-bg: rgba(249, 115, 22, 0.08);

  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-card: rgba(255, 255, 255, 0.06);

  --sidebar-width: 240px;
  --header-height: 56px;
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;

  --rainbow-left: linear-gradient(180deg, #3b82f6, #8b5cf6, #06b6d4, #10b981, #f59e0b, #ef4444, #8b5cf6);
  --rainbow-right: linear-gradient(180deg, #f59e0b, #ef4444, #8b5cf6, #3b82f6, #06b6d4, #10b981, #f59e0b);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html, body {
  height: 100%;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

.app-layout {
  display: flex;
  height: 100vh;
  width: 100%;
  position: relative;
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.sidebar.collapsed {
  transform: translateX(-100%);
}

.sidebar-header {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(0, 220, 255, 0.15) 0%, rgba(0, 220, 255, 0.05) 70%, transparent 100%);
  border: 1.5px solid rgba(0, 220, 255, 0.3);
  color: var(--cyan);
  font-size: 14px;
}

.sidebar-brand-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.sidebar-nav-label {
  padding: 8px 16px 4px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(0, 220, 255, 0.6);
  font-weight: 600;
}

.sidebar-nav {
  list-style: none;
  padding: 4px 8px;
  flex: 1;
}

.sidebar-nav li {
  margin-bottom: 2px;
}

.sidebar-nav a,
.sidebar-nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background 0.2s ease, color 0.2s ease;
  width: 100%;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
}

.sidebar-nav a:hover,
.sidebar-nav button:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.sidebar-nav a.active,
.sidebar-nav button.active {
  background: rgba(0, 220, 255, 0.08);
  color: var(--cyan);
}

.sidebar-nav .nav-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.7;
}

.sidebar-nav a.active .nav-icon,
.sidebar-nav button.active .nav-icon {
  opacity: 1;
}

.sidebar-telegram {
  color: #29b6f6;
}

.sidebar-footer {
  padding: 12px;
  border-top: 1px solid var(--border-subtle);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
}

.sidebar-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--purple-bg);
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}

.sidebar-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.sidebar-username {
  font-size: 12px;
  font-weight: 500;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 35;
}

.sidebar-overlay.show {
  display: block;
}

.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  background: var(--bg);
}

.rainbow-edge-left,
.rainbow-edge-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  z-index: 10;
  pointer-events: none;
}

.rainbow-edge-left {
  left: 0;
  background: var(--rainbow-left);
}

.rainbow-edge-right {
  right: 0;
  background: var(--rainbow-right);
}

.header-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 8px 12px 4px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  border-radius: var(--radius-xl);
  padding: 10px 16px;
  background: var(--bg-header);
  border: 1px solid var(--border-subtle);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.hamburger-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  color: var(--text-primary);
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.hamburger-btn:hover {
  color: var(--cyan);
  background: rgba(0, 220, 255, 0.1);
}

.hamburger-btn svg {
  width: 20px;
  height: 20px;
}

.wallet-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #10b981;
  font-size: 12px;
  font-weight: 700;
}

.wallet-badge .wallet-icon {
  width: 14px;
  height: 14px;
}

.page-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.page-container {
  max-width: 1152px;
  margin: 0 auto;
  padding: 8px 0;
}

.page-container-sm {
  max-width: 448px;
  margin: 0 auto;
}

.page-container-md {
  max-width: 672px;
  margin: 0 auto;
}

.page-title-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  animation: fadeSlideUp 0.5s ease-out both;
}

.page-title-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(0, 220, 255, 0.08), rgba(0, 220, 255, 0.02));
  border: 1px solid var(--cyan-border);
}

.page-title-badge .title-icon {
  width: 16px;
  height: 16px;
  color: var(--cyan);
}

.page-title-badge .title-text {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--cyan);
  animation: titleGlow 3s ease-in-out infinite;
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  color: #10b981;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.balance-card {
  border-radius: var(--radius-xl);
  padding: 20px 16px;
  text-align: center;
  background: var(--bg-card);
  border: 2px solid #00e5bf;
  box-shadow: 0 0 15px rgba(0, 229, 191, 0.25), 0 0 30px rgba(0, 229, 191, 0.1), 0 0 60px rgba(0, 229, 191, 0.05);
  animation: glowPulse 3s ease-in-out infinite;
}

.balance-card .balance-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.balance-card .balance-amount {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  animation: balancePulse 2s ease-in-out infinite;
}

.balance-card-sm {
  padding: 16px;
}

.balance-card-sm .balance-amount {
  font-size: 24px;
}

.balance-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0, 220, 255, 0.06), rgba(0, 0, 0, 0.3));
  border: 1px solid var(--cyan-border);
  position: relative;
  overflow: hidden;
  animation: borderGlow 3s ease-in-out infinite;
}

.balance-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 220, 255, 0.06), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

.balance-bar .bar-label {
  font-size: 14px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.balance-bar .bar-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  animation: balancePulse 2s ease-in-out infinite;
}

.tab-container {
  display: flex;
  gap: 12px;
}

.tab-btn {
  flex: 1;
  padding: 14px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  text-align: center;
}

.tab-btn.active-upi {
  background: var(--green-accent);
  color: #fff;
  border-color: var(--green-accent);
}

.tab-btn.active-crypto {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
}

.deposit-card {
  border-radius: var(--radius-xl);
  padding: 24px;
  background: var(--bg-card);
  border: 2px solid #166534;
  box-shadow: 0 0 15px rgba(22, 101, 52, 0.12);
}

.deposit-card-purple {
  border-color: var(--purple-border);
  box-shadow: 0 0 15px var(--purple-glow);
}

.input-field {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--bg-input);
  border: 1.5px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.input-field::placeholder {
  color: var(--text-tertiary);
}

.input-field:focus {
  border-color: var(--cyan-border);
  box-shadow: 0 0 0 3px rgba(0, 220, 255, 0.08);
}

.input-field-center {
  text-align: center;
  font-weight: 600;
}

.input-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  border: none;
  cursor: pointer;
  transition: filter 0.2s, transform 0.2s;
  width: 100%;
}

.btn-primary:hover {
  filter: brightness(1.15);
  transform: scale(1.01);
}

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

.btn-pay {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  background: var(--green-accent);
  border: none;
  cursor: pointer;
  transition: filter 0.2s, transform 0.2s, box-shadow 0.2s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-pay:hover {
  filter: brightness(1.15);
  transform: scale(1.01);
  box-shadow: 0 0 20px rgba(22, 163, 74, 0.3);
}

.btn-pay:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

.btn-green {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 12px 40px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.btn-ghost {
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s;
}

.btn-ghost:hover {
  color: var(--text-secondary);
}

.btn-outline-cyan {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan);
  background: transparent;
  border: 1px solid var(--cyan-border);
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.btn-outline-cyan:hover {
  border-color: rgba(0, 220, 255, 0.5);
  background: rgba(0, 220, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 220, 255, 0.1);
}

.btn-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: none;
  background: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

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

.stat-card {
  border-radius: var(--radius);
  padding: 16px;
  animation: cardEntrance 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: background 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.stat-card:hover {
  border-color: rgba(0, 220, 255, 0.5) !important;
  background: rgba(0, 220, 255, 0.1) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 220, 255, 0.1);
}

.stat-card .stat-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-card .stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-card .stat-label {
  font-size: 10px;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

.stat-card .stat-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 2px;
}

.stat-green { border: 1.5px solid rgba(16, 185, 129, 0.3); background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0.02)); box-shadow: 0 0 20px rgba(16, 185, 129, 0.1); }
.stat-blue { border: 1.5px solid rgba(59, 130, 246, 0.3); background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(59, 130, 246, 0.02)); box-shadow: 0 0 20px rgba(59, 130, 246, 0.1); }
.stat-orange { border: 1.5px solid rgba(249, 115, 22, 0.3); background: linear-gradient(135deg, rgba(249, 115, 22, 0.08), rgba(249, 115, 22, 0.02)); box-shadow: 0 0 20px rgba(249, 115, 22, 0.1); }
.stat-purple { border: 1.5px solid rgba(168, 85, 247, 0.3); background: linear-gradient(135deg, rgba(168, 85, 247, 0.08), rgba(168, 85, 247, 0.02)); box-shadow: 0 0 20px rgba(168, 85, 247, 0.1); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.product-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1.5px solid rgba(0, 220, 255, 0.12);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  animation: cardEntrance 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.product-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}

.product-card .card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(124, 58, 237, 0.05));
  overflow: hidden;
}

.product-card .card-media video,
.product-card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card .card-media .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid var(--cyan);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  animation: playBtnPulse 2s ease-in-out infinite;
  backdrop-filter: blur(8px);
}

.product-card .card-body {
  padding: 16px;
}

.product-card .card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-card .card-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.status-in-stock {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-out-stock {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 8px 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.feature-list li:hover {
  background: rgba(0, 220, 255, 0.12);
  border-color: rgba(0, 220, 255, 0.3);
  transform: translateX(4px);
}

.feature-list li .feature-icon {
  color: var(--cyan);
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.tier-list {
  list-style: none;
  padding: 0;
  margin: 8px 0;
}

.tier-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(124, 58, 237, 0.12);
  background: rgba(124, 58, 237, 0.04);
  margin-bottom: 4px;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.tier-row:hover {
  background: rgba(124, 58, 237, 0.2);
  border-color: rgba(124, 58, 237, 0.5);
  transform: translateX(3px);
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.1);
}

.tier-row .tier-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.tier-row .tier-stock {
  font-size: 10px;
  color: var(--text-tertiary);
}

.tier-row .tier-price {
  font-size: 13px;
  font-weight: 800;
  color: var(--purple);
}

.btn-buy {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  border: none;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn-buy:hover {
  filter: brightness(1.4);
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.4);
}

.btn-buy:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.tx-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tx-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  animation: featureSlideIn 0.3s ease-out both;
}

.tx-row:hover {
  background: rgba(0, 220, 255, 0.12) !important;
  border-color: rgba(0, 220, 255, 0.3) !important;
  transform: translateX(4px);
}

.tx-row.credit {
  background: rgba(16, 185, 129, 0.04);
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.tx-row.debit {
  background: rgba(239, 68, 68, 0.04);
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.tx-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tx-icon.credit-icon {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.tx-icon.debit-icon {
  background: rgba(239, 68, 68, 0.15);
  color: var(--red);
}

.tx-info {
  flex: 1;
  min-width: 0;
}

.tx-desc {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.tx-date {
  font-size: 11px;
  color: var(--text-tertiary);
}

.tx-amount {
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.tx-amount.credit-amount { color: #10b981; }
.tx-amount.debit-amount { color: var(--red); }

.referral-card {
  border-radius: var(--radius);
  padding: 20px;
  animation: cardEntrance 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.referral-share-card {
  background: linear-gradient(180deg, rgba(0, 220, 255, 0.04), rgba(0, 0, 0, 0.3));
  border: 1px solid var(--cyan-border);
}

.referral-code-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
}

.referral-code {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 2px;
  font-family: monospace;
}

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

.referral-stat-item {
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-subtle);
}

.referral-stat-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}

.referral-stat-label {
  font-size: 10px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-top: 2px;
}

.spin-card {
  border-radius: var(--radius);
  padding: 20px;
  background: linear-gradient(180deg, rgba(0, 220, 255, 0.04), rgba(0, 0, 0, 0.3));
  border: 2px dashed rgba(0, 220, 255, 0.25);
  animation: cardEntrance 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.spin-wheel-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.spin-wheel-wrap {
  position: relative;
  width: 280px;
  height: 280px;
}

.spin-wheel-svg {
  width: 100%;
  height: 100%;
  transition: transform 4s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.spin-pointer {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 20px solid var(--cyan);
  filter: drop-shadow(0 0 6px var(--cyan));
  z-index: 2;
}

.btn-spin {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 32px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  border: 2px solid rgba(124, 58, 237, 0.4);
  cursor: pointer;
  transition: filter 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-spin:hover {
  filter: brightness(1.2);
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
}

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

.spin-result {
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.spin-result-amount {
  font-size: 28px;
  font-weight: 800;
  color: #10b981;
}

.profile-card {
  border-radius: var(--radius);
  padding: 20px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-subtle);
  animation: cardEntrance 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.profile-field {
  margin-bottom: 16px;
}

.profile-field .field-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.profile-field .field-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.keys-table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.data-table thead th {
  padding: 10px 14px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-tertiary);
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

.data-table thead th:first-child {
  border-radius: 8px 0 0 0;
}

.data-table thead th:last-child {
  border-radius: 0 8px 0 0;
}

.data-table tbody td {
  padding: 10px 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background 0.2s;
}

.data-table tbody tr:hover {
  background: rgba(0, 220, 255, 0.04);
}

.data-table .key-cell {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: var(--cyan);
  font-weight: 600;
  word-break: break-all;
}

.admin-sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.admin-sidebar.collapsed {
  transform: translateX(-100%);
}

.admin-sidebar .admin-brand {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-sidebar .admin-brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
}

.admin-sidebar .admin-brand-text {
  font-weight: 700;
  font-size: 14px;
}

.admin-sidebar .admin-brand-sub {
  font-size: 10px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.admin-sidebar .admin-nav-label {
  padding: 8px 16px 4px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-tertiary);
  font-weight: 600;
}

.admin-sidebar .admin-nav {
  list-style: none;
  padding: 4px 8px;
  flex: 1;
}

.admin-sidebar .admin-nav li {
  margin-bottom: 2px;
}

.admin-sidebar .admin-nav a,
.admin-sidebar .admin-nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background 0.2s, color 0.2s;
  width: 100%;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
}

.admin-sidebar .admin-nav a:hover,
.admin-sidebar .admin-nav button:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.admin-sidebar .admin-nav a.active {
  background: rgba(124, 58, 237, 0.12);
  color: var(--purple);
}

.admin-sidebar .admin-footer {
  padding: 12px;
  border-top: 1px solid var(--border-subtle);
}

.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 400px;
  padding: 32px;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--cyan-border);
  box-shadow: 0 0 30px rgba(0, 220, 255, 0.08);
}

.login-card .login-header {
  text-align: center;
  margin-bottom: 24px;
}

.login-card .login-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.login-card .login-subtitle {
  font-size: 13px;
  color: var(--text-tertiary);
}

.form-group {
  margin-bottom: 16px;
}

.success-screen,
.error-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background: #0b0e1a;
}

.result-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.result-icon.success {
  background: rgba(34, 197, 94, 0.12);
  border: 2px solid rgba(34, 197, 94, 0.25);
  color: #22c55e;
}

.result-icon.error {
  background: rgba(239, 68, 68, 0.12);
  border: 2px solid rgba(239, 68, 68, 0.25);
  color: var(--red);
}

.result-icon.pending {
  background: rgba(245, 158, 11, 0.12);
  border: 2px solid rgba(245, 158, 11, 0.25);
  color: var(--amber);
}

.payment-timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  background: rgba(239, 68, 68, 0.1);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.copy-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
}

.copy-value {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  font-family: monospace;
  word-break: break-all;
}

.copy-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.copy-btn:hover {
  background: rgba(0, 220, 255, 0.1);
  color: var(--cyan);
  border-color: var(--cyan-border);
}

.copy-btn.copied {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.3);
}

.qr-container {
  display: inline-block;
  padding: 8px;
  border-radius: 12px;
  background: #fff;
}

.qr-container img {
  display: block;
  width: 180px;
  height: 180px;
}

.crypto-verify-card {
  border-radius: var(--radius-xl);
  padding: 24px;
  background: var(--bg-card-alt);
  border: 1px solid var(--purple-border);
}

.crypto-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.crypto-info-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
}

.crypto-info-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  font-family: monospace;
}

.toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  max-width: 360px;
}

.toast {
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--bg-card-alt);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
  animation: toastSlideIn 0.3s ease-out;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.toast.toast-success { border-color: rgba(16, 185, 129, 0.3); }
.toast.toast-error { border-color: rgba(239, 68, 68, 0.3); }
.toast.toast-info { border-color: var(--cyan-border); }

.toast .toast-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.toast .toast-message {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.toast .toast-close {
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0 4px;
  margin-left: auto;
}

.telegram-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 40;
  animation: telegramFloat 2s ease-in-out infinite;
}

.telegram-float a {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0088cc;
  box-shadow: 0 4px 15px rgba(0, 136, 204, 0.4);
  color: #fff;
}

.empty-state {
  text-align: center;
  padding: 48px 24px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px dashed var(--border-subtle);
}

.empty-state .empty-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  opacity: 0.3;
  color: var(--text-tertiary);
}

.empty-state .empty-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.empty-state .empty-desc {
  font-size: 12px;
  color: var(--text-tertiary);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.badge-green { background: rgba(16, 185, 129, 0.1); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.2); }
.badge-red { background: rgba(239, 68, 68, 0.1); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.2); }
.badge-amber { background: rgba(245, 158, 11, 0.1); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.2); }
.badge-cyan { background: rgba(0, 220, 255, 0.08); color: var(--cyan); border: 1px solid var(--cyan-border); }
.badge-purple { background: rgba(124, 58, 237, 0.1); color: var(--purple); border: 1px solid rgba(124, 58, 237, 0.2); }

.skeleton {
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  animation: skeletonPulse 1.5s ease-in-out infinite;
}

.secure-link-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: #eab308;
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.2);
  border-radius: 6px;
  padding: 8px 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  animation: secureLinkGlow 2s ease-in-out infinite;
}

.key-copied-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 6px;
  padding: 8px 12px;
  font-weight: 700;
  letter-spacing: 1px;
  animation: keyCopiedFlash 0.4s ease-out both;
}

.text-cyan { color: var(--cyan); }
.text-green { color: #10b981; }
.text-red { color: var(--red); }
.text-purple { color: var(--purple); }
.text-amber { color: var(--amber); }
.text-blue { color: var(--blue); }
.text-orange { color: var(--orange); }
.text-muted { color: var(--text-tertiary); }
.text-secondary { color: var(--text-secondary); }

.text-xs { font-size: 10px; }
.text-sm { font-size: 12px; }
.text-base { font-size: 14px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 20px; }
.text-2xl { font-size: 24px; }
.text-3xl { font-size: 28px; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 1px; }
.tracking-wider { letter-spacing: 2px; }
.tracking-widest { letter-spacing: 3px; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }
.gap-6 { gap: 24px; }

.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }

.w-full { width: 100%; }
.min-w-0 { min-width: 0; }

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }

.p-2 { padding: 8px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }
.p-5 { padding: 20px; }
.p-6 { padding: 24px; }
.px-3 { padding-left: 12px; padding-right: 12px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.py-6 { padding-top: 24px; padding-bottom: 24px; }

.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: 999px; }

.hidden { display: none; }
.block { display: block; }
.inline-flex { display: inline-flex; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.break-all { word-break: break-all; }
.whitespace-nowrap { white-space: nowrap; }
.overflow-auto { overflow: auto; }
.overflow-x-auto { overflow-x: auto; }

.space-y-2 > * + * { margin-top: 8px; }
.space-y-3 > * + * { margin-top: 12px; }
.space-y-4 > * + * { margin-top: 16px; }
.space-y-5 > * + * { margin-top: 20px; }
.space-y-6 > * + * { margin-top: 24px; }

.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }

.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.fixed { position: fixed; }
.z-10 { z-index: 10; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

.pointer-events-none { pointer-events: none; }

.animate-pulse {
  animation: skeletonPulse 1.5s ease-in-out infinite;
}

.animate-spin {
  animation: spin 1s linear infinite;
}

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

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

@keyframes fadeScaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 15px rgba(0, 220, 255, 0.2), 0 0 30px rgba(0, 220, 255, 0.05); }
  50% { box-shadow: 0 0 25px rgba(0, 220, 255, 0.4), 0 0 50px rgba(0, 220, 255, 0.15); }
}

@keyframes purchasePulse {
  0%, 100% { box-shadow: 0 0 10px rgba(192, 38, 211, 0.3); }
  50% { box-shadow: 0 0 25px rgba(192, 38, 211, 0.6), 0 0 40px rgba(236, 72, 153, 0.3); }
}

@keyframes playBtnPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 20px rgba(0, 220, 255, 0.4); }
  50% { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 0 35px rgba(0, 220, 255, 0.6), 0 0 60px rgba(0, 220, 255, 0.2); }
}

@keyframes slideDown {
  from { opacity: 0; max-height: 0; transform: translateY(-8px); }
  to { opacity: 1; max-height: 1000px; transform: translateY(0); }
}

@keyframes featureSlideIn {
  from { opacity: 0; transform: translateX(-15px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes secureLinkGlow {
  0%, 100% { text-shadow: 0 0 5px rgba(234, 179, 8, 0.3); border-color: rgba(234, 179, 8, 0.2); }
  50% { text-shadow: 0 0 15px rgba(234, 179, 8, 0.6); border-color: rgba(234, 179, 8, 0.5); }
}

@keyframes keyCopiedFlash {
  0% { opacity: 0; transform: scale(0.95); }
  15% { opacity: 1; transform: scale(1.02); }
  30% { transform: scale(1); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes telegramFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes borderGlow {
  0%, 100% { border-color: rgba(0, 220, 255, 0.4); }
  50% { border-color: rgba(0, 220, 255, 0.8); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes titleGlow {
  0%, 100% { text-shadow: 0 0 8px rgba(0, 220, 255, 0.3), 0 0 16px rgba(0, 220, 255, 0.1); }
  50% { text-shadow: 0 0 16px rgba(0, 220, 255, 0.5), 0 0 32px rgba(0, 220, 255, 0.2); }
}

@keyframes balancePulse {
  0%, 100% { text-shadow: 0 0 10px rgba(0, 220, 255, 0.2); }
  50% { text-shadow: 0 0 20px rgba(0, 220, 255, 0.5), 0 0 40px rgba(0, 220, 255, 0.15); }
}

@keyframes cardEntrance {
  0% { opacity: 0; transform: translateY(40px) scale(0.95); }
  60% { opacity: 1; transform: translateY(-5px) scale(1.01); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes ripple {
  0% { box-shadow: 0 0 0 0 rgba(0, 220, 255, 0.3); }
  100% { box-shadow: 0 0 0 15px rgba(0, 220, 255, 0); }
}

@keyframes zapFlicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; filter: brightness(1.5); }
}

@keyframes skeletonPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes toastSlideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes toastSlideOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}

@keyframes spinWheelRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(var(--spin-end, 1800deg)); }
}

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

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .referral-stats-grid {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    transform: translateX(-100%);
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .grid-cols-2 {
    grid-template-columns: 1fr;
  }

  .grid-cols-3 {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) {
  .sidebar-overlay {
    display: none !important;
  }
}

.admin-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.admin-card {
  border-radius: var(--radius);
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.admin-card .admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.admin-card .admin-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.form-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.form-row > * {
  flex: 1;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: filter 0.2s, transform 0.1s;
}

.btn-sm:hover {
  filter: brightness(1.1);
}

.btn-approve {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.btn-reject {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

textarea.input-field {
  resize: vertical;
  min-height: 80px;
}

.divider {
  width: 100%;
  height: 1px;
  background: var(--border-subtle);
  margin: 16px 0;
}

.select-field {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--bg-input);
  border: 1.5px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238b9dc3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.select-field:focus {
  border-color: var(--cyan-border);
  box-shadow: 0 0 0 3px rgba(0, 220, 255, 0.08);
}

.select-field option {
  background: var(--bg-card);
  color: var(--text-primary);
}

.alert-box {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-info {
  background: rgba(0, 220, 255, 0.08);
  color: var(--cyan);
  border: 1px solid var(--cyan-border);
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}
