/* ============================================================
   RUPAYX — DARK GOLD THEME
   Aesthetic: Refined dark + warm gold accent. Sharp geometric.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

:root {
  --bg:          #0a0a0f;
  --surface:     #111118;
  --card:        #16161f;
  --card2:       #1c1c28;
  --border:      #2a2a3a;
  --gold:        #d4a843;
  --gold-light:  #f0c866;
  --gold-dim:    #8a6e28;
  --green:       #22c87a;
  --red:         #f04f5e;
  --orange:      #f08040;
  --text:        #e8e8f0;
  --text-muted:  #7a7a9a;
  --text-dim:    #4a4a6a;
  --radius:      14px;
  --radius-sm:   8px;
  --shadow:      0 8px 32px rgba(0,0,0,0.5);
  --shadow-gold: 0 4px 24px rgba(212,168,67,0.2);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4,h5 { font-family: 'Syne', sans-serif; font-weight: 700; line-height: 1.2; }
.display { font-size: clamp(2rem,5vw,3.5rem); font-weight: 800; }
.label { font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); font-weight: 500; }

/* ── LAYOUT ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.page-wrap { max-width: 480px; margin: 0 auto; padding: 0 16px 100px; }

/* ── NAVBAR ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.navbar .logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.2rem;
  color: var(--text); text-decoration: none;
}
.logo-icon {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 900; color: #0a0a0f;
  font-family: 'Syne', sans-serif;
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-uid { font-size: 0.7rem; color: var(--text-muted); font-family: monospace; }

/* ── BOTTOM NAV ── */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
}
.bottom-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: 10px 0 14px;
  text-decoration: none; color: var(--text-dim);
  font-size: 0.65rem; font-weight: 500;
  transition: color 0.2s;
}
.bottom-nav a.active, .bottom-nav a:hover { color: var(--gold); }
.bottom-nav a svg { width: 22px; height: 22px; }
.bottom-nav a.active .nav-icon { color: var(--gold); }

/* ── CARDS ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 14px;
}
.card-gold {
  background: linear-gradient(135deg, #1e1a0e 0%, #1a1400 100%);
  border-color: var(--gold-dim);
  position: relative; overflow: hidden;
}
.card-gold::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212,168,67,0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: var(--radius-sm);
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.9rem;
  border: none; cursor: pointer; transition: all 0.2s; text-decoration: none;
  letter-spacing: 0.03em;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: #0a0a0f; box-shadow: var(--shadow-gold);
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 6px 28px rgba(212,168,67,0.35); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost { background: var(--card2); color: var(--text); }
.btn-danger { background: var(--red); color: #fff; }
.btn-success { background: var(--green); color: #0a0a0f; }
.btn-full { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 0.8rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ── FORMS ── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; margin-bottom: 6px; font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }
.form-control {
  width: 100%; padding: 13px 16px;
  background: var(--card2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem;
  transition: border-color 0.2s;
  outline: none;
}
.form-control:focus { border-color: var(--gold); }
.form-control::placeholder { color: var(--text-dim); }
.input-row { display: flex; align-items: center; gap: 0; }
.input-row .form-control { border-radius: var(--radius-sm) 0 0 var(--radius-sm); flex: 1; }
.input-addon {
  padding: 13px 14px; background: var(--card2); border: 1px solid var(--border);
  border-left: none; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--gold); font-weight: 700; font-size: 0.85rem; white-space: nowrap;
}

/* ── BADGES / STATUS ── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
}
.badge-pending { background: rgba(240,128,64,0.15); color: var(--orange); border: 1px solid rgba(240,128,64,0.3); }
.badge-approved { background: rgba(34,200,122,0.12); color: var(--green); border: 1px solid rgba(34,200,122,0.3); }
.badge-rejected { background: rgba(240,79,94,0.12); color: var(--red); border: 1px solid rgba(240,79,94,0.3); }

/* ── ALERTS ── */
.alert {
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 0.87rem; margin-bottom: 16px; display: flex; align-items: flex-start; gap: 8px;
}
.alert-error { background: rgba(240,79,94,0.1); border: 1px solid rgba(240,79,94,0.3); color: #f88; }
.alert-success { background: rgba(34,200,122,0.1); border: 1px solid rgba(34,200,122,0.3); color: var(--green); }
.alert-info { background: rgba(212,168,67,0.1); border: 1px solid rgba(212,168,67,0.3); color: var(--gold-light); }

/* ── DIVIDER ── */
.divider { height: 1px; background: var(--border); margin: 20px 0; }
.divider-text { display: flex; align-items: center; gap: 12px; color: var(--text-dim); font-size: 0.8rem; margin: 20px 0; }
.divider-text::before, .divider-text::after { content:''; flex:1; height:1px; background:var(--border); }

/* ── BALANCE CARD ── */
.balance-card {
  background: linear-gradient(135deg, #1a1500 0%, #0f0f1a 100%);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  padding: 24px 20px; margin-bottom: 16px;
  position: relative; overflow: hidden;
}
.balance-card::after {
  content:''; position:absolute; bottom:-30px; right:-30px;
  width:120px; height:120px; border-radius:50%;
  background: radial-gradient(circle, rgba(212,168,67,0.08) 0%, transparent 70%);
}
.balance-label { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-dim); margin-bottom: 6px; }
.balance-amount { font-family: 'Syne', sans-serif; font-size: 2.4rem; font-weight: 800; color: var(--gold-light); }
.balance-amount span { font-size: 1rem; font-weight: 600; color: var(--gold-dim); margin-left: 4px; }
.balance-inr { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

/* ── STAT ROW ── */
.stat-row { display: flex; gap: 10px; margin-bottom: 14px; }
.stat-box {
  flex: 1; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px;
  text-align: center;
}
.stat-box .val { font-family: 'Syne', sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--text); }
.stat-box .lbl { font-size: 0.68rem; color: var(--text-muted); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.08em; }

/* ── TRANSACTION LIST ── */
.txn-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.txn-item:last-child { border-bottom: none; }
.txn-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; margin-right: 12px; flex-shrink: 0;
}
.txn-icon.buy { background: rgba(34,200,122,0.1); }
.txn-icon.withdraw { background: rgba(212,168,67,0.1); }
.txn-left { display: flex; align-items: center; flex: 1; }
.txn-info .txn-id { font-size: 0.78rem; color: var(--text-muted); font-family: monospace; }
.txn-info .txn-date { font-size: 0.72rem; color: var(--text-dim); margin-top: 1px; }
.txn-right { text-align: right; }
.txn-amount { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.95rem; }
.txn-amount.pos { color: var(--green); }
.txn-amount.neg { color: var(--red); }

/* ── RATE DISPLAY ── */
.rate-hero {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; margin-bottom: 14px;
}
.rate-big { font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 800; }
.rate-big .currency { color: var(--gold); }
.rate-big .eq { color: var(--text-dim); font-size: 1.2rem; margin: 0 8px; }
.rate-tag {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(34,200,122,0.1); color: var(--green);
  border: 1px solid rgba(34,200,122,0.2);
  border-radius: 20px; padding: 3px 10px; font-size: 0.72rem; font-weight: 600;
  margin-top: 8px;
}

/* ── CALC BOX ── */
.calc-row {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px;
  align-items: center; margin-bottom: 14px;
}
.calc-eq { text-align: center; color: var(--text-dim); font-size: 1.2rem; font-weight: 300; }
.calc-result {
  background: rgba(212,168,67,0.08); border: 1px solid var(--gold-dim);
  border-radius: var(--radius-sm); padding: 13px 16px;
  font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700;
  color: var(--gold-light); text-align: center;
}

/* ── SECTION HEADER ── */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.section-header h3 { font-size: 0.95rem; font-weight: 700; }
.section-header a { font-size: 0.75rem; color: var(--gold); text-decoration: none; }
.section-header a:hover { text-decoration: underline; }

/* ── UPI SECTION ── */
.upi-box {
  background: var(--card2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.upi-id { font-family: monospace; font-size: 1rem; font-weight: 600; color: var(--gold-light); }
.qr-box {
  background: #fff; padding: 8px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.qr-box img { width: 90px; height: 90px; display: block; }

/* ── UPLOAD AREA ── */
.upload-area {
  border: 2px dashed var(--border); border-radius: var(--radius-sm);
  padding: 28px 20px; text-align: center; cursor: pointer;
  transition: all 0.2s; position: relative;
}
.upload-area:hover, .upload-area.drag { border-color: var(--gold); background: rgba(212,168,67,0.04); }
.upload-area input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.upload-icon { font-size: 2rem; margin-bottom: 8px; }
.upload-text { font-size: 0.85rem; color: var(--text-muted); }
.upload-preview { margin-top: 12px; display: none; }
.upload-preview img { max-width: 100%; border-radius: 8px; max-height: 200px; object-fit: cover; }

/* ── TIMER ── */
.timer-bar {
  background: rgba(240,79,94,0.1); border: 1px solid rgba(240,79,94,0.25);
  border-radius: var(--radius-sm); padding: 10px 14px;
  display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
}
.timer-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse 1s infinite; }
.timer-text { font-size: 0.82rem; color: var(--red); }
.timer-count { font-family: monospace; font-weight: 700; font-size: 1rem; color: var(--red); margin-left: auto; }
@keyframes pulse { 0%,100%{opacity:1}50%{opacity:0.3} }

/* ── SUMMARY TABLE ── */
.summary-table { width: 100%; }
.summary-table tr td { padding: 7px 0; font-size: 0.87rem; }
.summary-table tr td:first-child { color: var(--text-muted); }
.summary-table tr td:last-child { text-align: right; font-weight: 600; }
.summary-table .total td { border-top: 1px solid var(--border); padding-top: 12px; font-size: 0.95rem; }
.summary-table .total td:last-child { color: var(--gold-light); }

/* ── PROFILE CARD ── */
.profile-avatar {
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-size: 1.4rem; font-weight: 800; color: #0a0a0f;
  flex-shrink: 0;
}
.profile-info { flex: 1; }
.profile-info h3 { font-size: 1.05rem; margin-bottom: 2px; }
.profile-info p { font-size: 0.8rem; color: var(--text-muted); }
.status-dot {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.75rem; font-weight: 600;
}
.status-dot::before { content:''; width:7px; height:7px; border-radius:50%; background: var(--green); }
.status-dot.frozen::before { background: var(--red); }

/* ── MENU ITEMS ── */
.menu-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
  text-decoration: none; color: var(--text); cursor: pointer;
  transition: color 0.15s;
}
.menu-item:last-child { border-bottom: none; }
.menu-item:hover { color: var(--gold); }
.menu-icon {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--card2); display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; flex-shrink: 0;
}
.menu-item span { flex: 1; font-size: 0.9rem; }
.menu-item .chevron { color: var(--text-dim); font-size: 0.75rem; }

/* ── ADMIN TABLE ── */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.data-table th {
  text-align: left; padding: 10px 14px; color: var(--text-muted);
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border); font-weight: 600;
}
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); }
.data-table tr:hover td { background: rgba(255,255,255,0.02); }
.data-table .actions { display: flex; gap: 6px; }

/* ── PROGRESS BAR ── */
.progress { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-light)); border-radius: 2px; transition: width 0.5s ease; }

/* ── PAGE HEADER ── */
.page-top {
  padding: 80px 0 16px;
  display: flex; align-items: center; gap: 12px; margin-bottom: 4px;
}
.page-top h2 { font-size: 1.2rem; }
.back-btn {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; text-decoration: none; color: var(--text);
  flex-shrink: 0;
}

/* ── LANDING HERO ── */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 80px 20px 40px;
  position: relative; overflow: hidden;
}
.hero-glow {
  position: absolute; top: 20%; left: 50%; transform: translateX(-50%);
  width: 500px; height: 300px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(212,168,67,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(212,168,67,0.1); border: 1px solid rgba(212,168,67,0.25);
  color: var(--gold); border-radius: 20px; padding: 5px 14px;
  font-size: 0.75rem; font-weight: 600; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2.2rem,7vw,4rem); font-weight: 800; margin-bottom: 16px; }
.hero h1 .accent { color: var(--gold); }
.hero p { color: var(--text-muted); font-size: 1rem; max-width: 400px; margin: 0 auto 32px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ── FEATURES GRID ── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 16px; margin: 40px 0; }
.feature-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover { border-color: var(--gold-dim); transform: translateY(-2px); }
.feature-icon { font-size: 1.8rem; margin-bottom: 12px; }
.feature-card h3 { font-size: 1rem; margin-bottom: 6px; }
.feature-card p { font-size: 0.85rem; color: var(--text-muted); }

/* ── STEPS ── */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin: 32px 0; }
.step { text-align: center; }
.step-num {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: #0a0a0f; font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1rem;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 10px;
}
.step h4 { font-size: 0.85rem; margin-bottom: 4px; }
.step p { font-size: 0.75rem; color: var(--text-muted); }

/* ── TICKER ── */
.ticker {
  display: flex; align-items: center; gap: 16px; overflow: hidden;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 10px 0; margin: 0 -20px; background: var(--surface);
}
.ticker-inner { display: flex; gap: 40px; animation: scroll 20s linear infinite; white-space: nowrap; }
.ticker-item { font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.ticker-item .val { color: var(--green); font-weight: 600; }
@keyframes scroll { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ── NETWORK TABS ── */
.net-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.net-tab {
  flex: 1; padding: 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--card);
  text-align: center; cursor: pointer; transition: all 0.2s;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.85rem;
  color: var(--text-muted);
}
.net-tab.active { border-color: var(--gold); color: var(--gold); background: rgba(212,168,67,0.06); }
.net-tab .net-icon { font-size: 1.1rem; display: block; margin-bottom: 4px; }

/* ── COPY BTN ── */
.copy-btn {
  background: var(--card2); border: 1px solid var(--border);
  color: var(--text-muted); border-radius: 6px;
  padding: 5px 10px; font-size: 0.75rem; cursor: pointer;
  transition: all 0.15s; display: inline-flex; align-items: center; gap: 4px;
}
.copy-btn:hover { color: var(--gold); border-color: var(--gold-dim); }

/* ── RESPONSIVE ── */
@media(max-width:600px) {
  .calc-row { grid-template-columns: 1fr auto 1fr; }
  .steps { grid-template-columns: repeat(3,1fr); gap: 10px; }
  .features-grid { grid-template-columns: 1fr; }
  .data-table { font-size: 0.78rem; }
  .data-table th, .data-table td { padding: 8px 10px; }
}

/* ── UTILITY ── */
.mt-1{margin-top:4px}.mt-2{margin-top:8px}.mt-3{margin-top:12px}.mt-4{margin-top:16px}.mt-6{margin-top:24px}
.mb-1{margin-bottom:4px}.mb-2{margin-bottom:8px}.mb-3{margin-bottom:12px}.mb-4{margin-bottom:16px}
.flex{display:flex}.items-center{align-items:center}.justify-between{justify-content:space-between}
.gap-2{gap:8px}.gap-3{gap:12px}.text-muted{color:var(--text-muted)}.text-gold{color:var(--gold-light)}
.text-green{color:var(--green)}.text-red{color:var(--red)}.text-right{text-align:right}
.font-mono{font-family:monospace}.text-sm{font-size:0.82rem}.text-xs{font-size:0.72rem}
.w-full{width:100%}.hidden{display:none!important}
.rounded{border-radius:var(--radius-sm)}.overflow-hidden{overflow:hidden}
