/* assets/css/app.css — Missile Mint Premium Redesign */
:root {
  --bg-deep: #0f051d;
  --bg-card: rgba(255, 255, 255, 0.05);
  --accent-purple: #8a2be2;
  --accent-gold: #f0b90b;
  --accent-silver: #e0e0e0;
  --text-main: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.6);
  --border-glass: rgba(255, 255, 255, 0.1);
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg-deep);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(138, 43, 226, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(240, 185, 11, 0.05) 0%, transparent 40%);
  color: var(--text-main);
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

/* Glassmorphism Cards */
.card-glass {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

/* Pedestal Section */
.hero-pedestal {
  position: relative;
  height: 420px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}

.pedestal-base {
  position: absolute;
  bottom: 40px;
  width: 280px;
  height: 80px;
  background: radial-gradient(ellipse at center, #3d1c5e 0%, #1a0b2e 100%);
  border-radius: 50%;
  box-shadow: 0 10px 50px rgba(138, 43, 226, 0.5), inset 0 2px 10px rgba(255,255,255,0.2);
  border: 2px solid #5a2ea6;
}

.main-missile {
  width: 240px;
  z-index: 2;
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(138, 43, 226, 0.4));
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50% { transform: translateY(-30px) rotate(-2deg); }
}

/* Premium Buttons */
.btn-premium {
  border-radius: 18px;
  padding: 14px 24px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.btn-silver {
  background: linear-gradient(135deg, #d1d1d1 0%, #8e8e8e 100%);
  color: #1a0b2e;
}

.btn-gold {
  background: linear-gradient(135deg, #f0b90b 0%, #b8860b 100%);
  color: #1a0b2e;
  box-shadow: 0 4px 20px rgba(240, 185, 11, 0.4);
}

/* Top Bar */
.top-bar {
  position: fixed;
  top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 5, 29, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-glass);
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.05);
  padding: 6px 12px;
  border-radius: 16px;
  cursor: pointer;
}

.lang-toggle__icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.tb-balance-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border-glass);
  padding: 8px 16px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: white;
  font-weight: 700;
}

.tb-coin svg, .tb-arrow svg {
  width: 16px;
  height: 16px;
  display: block;
}

.icon-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.icon-btn svg { width: 18px; height: 18px; display: block; }

/* Nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 5, 29, 0.95);
  backdrop-filter: blur(20px);
  display: flex;
  justify-content: space-around;
  padding: 12px 0 24px 0;
  border-top: 1px solid var(--border-glass);
  z-index: 1000;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-dim);
  transition: color 0.3s;
}

.nav-item.active {
  color: var(--accent-purple);
  filter: drop-shadow(0 0 10px var(--accent-purple));
}

.nav-label {
  font-size: 10px;
  font-weight: 800;
  margin-top: 5px;
}

/* Comparison & Grid */
.comparison-container {
  padding: 16px;
  padding-bottom: 100px;
}
.stat-box {
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
}
.stat-box-val { font-weight: 800; font-size: 18px; }
.stat-box-label { font-size: 10px; color: var(--text-dim); text-transform: uppercase; }

/* ─── MAIN LAYOUT FIXES ─── */
.main-content {
  padding: 70px 16px 100px 16px; /* Top: clear top-bar, Bottom: clear bottom-nav, Sides: 16px */
  min-height: 100vh;
  box-sizing: border-box;
}

/* ─── ADMIN DASHBOARD STYLES ─── */
.admin-card { background: rgba(255,255,255,0.03); border-radius: 16px; padding: 16px; margin-bottom: 16px; border: 1px solid rgba(255,255,255,0.05); }
.admin-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.admin-stat-box { background: rgba(0,0,0,0.2); padding: 12px; border-radius: 12px; text-align: center; }
.admin-stat-val { font-size: 18px; font-weight: 800; color: var(--accent-gold); }
.admin-stat-label { font-size: 11px; color: var(--text-dim); margin-top: 4px; text-transform: uppercase; }
.admin-table-container { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; }
.admin-table th { padding: 12px; color: var(--text-dim); border-bottom: 1px solid rgba(255,255,255,0.05); font-weight: 600; white-space: nowrap; }
.admin-table td { padding: 12px; border-bottom: 1px solid rgba(255,255,255,0.02); white-space: nowrap; }
.badge { padding: 4px 8px; border-radius: 6px; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.badge--processing, .badge--awaiting_approval { background: rgba(240, 185, 11, 0.2); color: var(--accent-gold); }
.badge--completed, .badge--approved { background: rgba(0, 230, 118, 0.2); color: #00e676; }
.badge--rejected { background: rgba(255, 23, 68, 0.2); color: #ff1744; }

/* ─── MISSING CORE STYLES RESTORED ─── */

/* Utilities */
.hidden { display: none !important; opacity: 0 !important; visibility: hidden !important; pointer-events: none; }
.visible { display: block; opacity: 1; }

/* Splash Screen */
.splash-screen {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: var(--bg-deep); z-index: 9999;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s;
}
.splash-content { text-align: center; }
.splash-title { font-size: 24px; font-weight: 900; margin-top: 15px; letter-spacing: 2px; }
.splash-subtitle { color: var(--text-dim); font-size: 14px; }
.splash-loader-wrap { margin-top: 40px; width: 200px; }
.splash-loader { height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; margin-bottom: 10px; }
.splash-progress-bar, .splash-loader__fill { display: block; height: 100%; background: var(--accent-purple); width: 0%; transition: width 0.3s; }
.splash-loader-meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-dim); text-transform: uppercase; }

/* Main App Shell */
#app { opacity: 0; visibility: hidden; transition: opacity 0.5s; height: 100vh; overflow-y: auto; }
#app.visible { opacity: 1; visibility: visible; }
.top-bar { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; }
.top-bar-right { display: flex; gap: 8px; }
.icon-btn { background: none; border: none; color: var(--text-main); width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; background: rgba(255,255,255,0.05); }
.icon-btn svg { width: 20px; height: 20px; }
.lang-btn { background: none; border: none; color: var(--text-main); font-weight: 700; cursor: pointer; padding: 5px 10px; }

/* Tabs */
.tab-switcher { display: flex; background: rgba(0,0,0,0.3); border-radius: 12px; padding: 4px; margin-bottom: 20px; }
.tab-btn { flex: 1; text-align: center; padding: 10px; font-size: 12px; font-weight: 700; color: var(--text-dim); cursor: pointer; border-radius: 8px; }
.tab-btn.active { background: var(--bg-card); color: var(--text-main); box-shadow: 0 4px 10px rgba(0,0,0,0.2); }

/* History & Lists */
.section-label { font-size: 12px; font-weight: 800; color: var(--text-dim); text-transform: uppercase; margin-bottom: 15px; letter-spacing: 1px; }
.history-item { display: flex; align-items: center; padding: 12px; background: rgba(255,255,255,0.03); border-radius: 16px; margin-bottom: 8px; }
.history-dot { width: 10px; height: 10px; border-radius: 50%; margin-right: 15px; }
.history-dot--green { background: #00e676; box-shadow: 0 0 10px #00e676; }
.history-dot--red { background: #ff1744; box-shadow: 0 0 10px #ff1744; }
.history-dot--gold { background: var(--accent-gold); box-shadow: 0 0 10px var(--accent-gold); }
.history-dot--blue { background: #2979ff; box-shadow: 0 0 10px #2979ff; }
.history-info { flex: 1; }
.history-type { font-weight: 700; font-size: 14px; }
.history-date { font-size: 11px; color: var(--text-dim); margin-top: 3px; }
.history-amount { text-align: right; font-weight: 800; font-size: 14px; }
.history-amount--plus { color: #00e676; }
.history-amount--minus { color: var(--text-main); }
.history-status { font-size: 10px; padding: 2px 6px; border-radius: 4px; display: inline-block; margin-top: 4px; }
.history-status--pending { background: rgba(240, 185, 11, 0.2); color: var(--accent-gold); }
.history-status--confirmed { background: rgba(0, 230, 118, 0.2); color: #00e676; }

/* Tasks */
.task-item { display: flex; align-items: center; padding: 15px; background: rgba(255,255,255,0.03); border-radius: 16px; margin-bottom: 10px; gap: 15px; }
.task-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(138, 43, 226, 0.1); display: flex; align-items: center; justify-content: center; color: var(--accent-purple); flex-shrink: 0; }
.task-icon svg { width: 24px; height: 24px; }
.task-info { flex: 1; }
.task-title { font-weight: 700; font-size: 14px; }
.task-desc { font-size: 11px; color: var(--text-dim); margin-top: 4px; line-height: 1.4; }
.task-reward { font-weight: 900; color: var(--accent-gold); font-size: 14px; }
.task-action-btn { padding: 8px 16px; border-radius: 20px; font-size: 12px; font-weight: 700; border: none; cursor: pointer; }
.task-action-btn--verify { background: rgba(255,255,255,0.1); color: white; }
.task-action-btn--claim { background: var(--accent-gold); color: #000; box-shadow: 0 4px 15px rgba(240, 185, 11, 0.4); }
.task-action-btn--done { background: rgba(255,255,255,0.05); color: var(--text-dim); }

/* Comparison Table */
.comparison-table-wrap { background: rgba(255,255,255,0.02); border-radius: 16px; padding: 15px; overflow-x: auto; }
.comparison-table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; }
.comparison-table th { color: var(--text-dim); padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.05); font-weight: 600; }
.comparison-table td { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.02); }

/* Empty States */
.empty-state { text-align: center; padding: 40px 20px; color: var(--text-dim); background: rgba(255,255,255,0.02); border-radius: 16px; font-size: 14px; }

/* Stats Grid (Wallet) */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.stat-card { background: rgba(255,255,255,0.03); border-radius: 16px; padding: 15px; }
.stat-card-label { font-size: 11px; color: var(--text-dim); margin-bottom: 5px; text-transform: uppercase; }
.stat-card-value { font-size: 18px; font-weight: 800; }
.stat-card-value--green { color: #00e676; }

/* Modals */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.8); z-index: 10000; display: flex; align-items: flex-end; backdrop-filter: blur(5px); }
.modal-center { align-items: center; justify-content: center; }
.modal-sheet { background: #150a21; width: 100%; max-height: 90vh; border-radius: 24px 24px 0 0; padding: 24px; overflow-y: auto; box-shadow: 0 -10px 40px rgba(0,0,0,0.5); animation: slideUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1); border-top: 1px solid rgba(138,43,226,0.3); }
.modal-center .modal-sheet { width: 90%; max-width: 400px; border-radius: 24px; animation: scaleIn 0.3s; border: 1px solid rgba(138,43,226,0.3); }
.modal-handle { width: 40px; height: 4px; background: rgba(255,255,255,0.2); border-radius: 2px; margin: 0 auto 20px auto; }
.modal-title { font-size: 20px; font-weight: 800; text-align: center; margin-bottom: 20px; }
.closing .modal-sheet { animation: slideDown 0.3s forwards; }

@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes slideDown { from { transform: translateY(0); } to { transform: translateY(100%); } }
@keyframes scaleIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Form Controls & Basic Buttons */
.btn { width: 100%; padding: 14px; border-radius: 16px; font-weight: 700; font-size: 14px; border: none; cursor: pointer; color: white; display: flex; justify-content: center; align-items: center; gap: 8px; }
.btn-green { background: #00c853; box-shadow: 0 4px 15px rgba(0,200,83,0.3); }
.btn-red { background: #d50000; box-shadow: 0 4px 15px rgba(213,0,0,0.3); }
.btn-purple { background: var(--accent-purple); box-shadow: 0 4px 15px rgba(138,43,226,0.4); }

/* Language Selection */
.lang-option { display: flex; align-items: center; justify-content: space-between; padding: 15px; background: rgba(255,255,255,0.05); border-radius: 12px; margin-bottom: 10px; cursor: pointer; border: 1px solid transparent; }
.lang-option.active { border-color: var(--accent-purple); background: rgba(138,43,226,0.1); }
.lang-option-left { display: flex; align-items: center; gap: 15px; }
.lang-option-code { width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--accent-gold); }
.lang-option-name { font-weight: 700; }
.lang-option-native { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.lang-check { color: var(--accent-purple); font-weight: 900; font-size: 18px; }

/* FAQ */
.faq-group { margin-bottom: 20px; }
.faq-group-title { font-size: 12px; font-weight: 800; color: var(--accent-gold); margin-bottom: 10px; text-transform: uppercase; }
.faq-item { background: rgba(255,255,255,0.03); border-radius: 12px; margin-bottom: 8px; overflow: hidden; }
.faq-question { padding: 15px; font-weight: 600; font-size: 14px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.faq-arrow { width: 20px; height: 20px; transition: transform 0.3s; color: var(--text-dim); }
.faq-item.open .faq-arrow { transform: rotate(180deg); color: white; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer-inner { padding: 0 15px 15px 15px; color: var(--text-dim); font-size: 13px; line-height: 1.5; }

/* Toast */
#toast-container { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 100000; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { background: rgba(20, 20, 20, 0.95); color: white; padding: 12px 20px; border-radius: 12px; font-weight: 600; font-size: 13px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); backdrop-filter: blur(10px); border-left: 4px solid var(--accent-purple); animation: slideInDown 0.3s; pointer-events: auto; }
.toast.toast-error { border-left-color: #ff1744; }
.toast.toast-success { border-left-color: #00e676; }
@keyframes slideInDown { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Misc Fixes */
h2.section-title { font-size: 22px; font-weight: 900; margin-bottom: 5px; }
p.section-subtitle { font-size: 13px; color: var(--text-dim); margin-top: 0; margin-bottom: 20px; }
.plans-scroll { display: flex; gap: 16px; overflow-x: auto; padding: 10px 0 20px 0; -webkit-overflow-scrolling: touch; }
.plans-scroll::-webkit-scrollbar { display: none; }