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

:root {
  --bg: #080c17;
  --panel: #101729;
  --panel2: #151d32;
  --line: #26314b;
  --text: #f5f7ff;
  --muted: #9ca9c3;
  --purple: #762ff0;
  --pink: #b32de0;
  --blue: #2476f5;
  --green: #19c58a;
  --red: #f05a70;
  --radius: 17px;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(ellipse at 85% -5%, #24104b 0, transparent 32%), var(--bg);
  color: var(--text);
  font: 14px/1.5 Inter, system-ui, sans-serif;
  min-height: 100vh;
  padding-bottom: 85px;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.topbar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid #1c263a;
  background: #080c17eF;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
}

.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: .2px; }
.brand-mark { font-size: 30px; color: #b76aff; text-shadow: 0 0 20px #8839ff; }
.top-links { display: flex; gap: 23px; color: #c6cee0; font-size: 12px; }
.top-links a:hover { color: #cba5ff; }
.menu-toggle { display: none; background: transparent; color: white; border: 0; font-size: 22px; }

.shell { width: min(1080px, 100% - 24px); margin: 18px auto 36px; }

.panel, .card {
  background: linear-gradient(145deg, #131b2e, #0d1322);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}
.pad { padding: 18px; }
.eyebrow { color: #c38aff; text-transform: uppercase; font-size: 10px; font-weight: 800; letter-spacing: 1.8px; }

.btn {
  border: 0;
  border-radius: 10px;
  padding: 12px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(100deg, var(--purple), var(--pink));
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s, filter .15s;
}
.btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn.secondary { background: #1b2740; border: 1px solid #35415f; }
.btn.green { background: linear-gradient(100deg, #087e63, #18b77d); }
.btn.red { background: linear-gradient(100deg, #b72b50, #f05a70); }
.btn.full { width: 100%; }

/* Stats & Cards */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0; }
.stat { padding: 13px; border-radius: 13px; background: #121a2b; border: 1px solid #202c44; }
.stat .value { font-size: 19px; font-weight: 800; margin-top: 4px; overflow-wrap: anywhere; }
.stat .label { font-size: 11px; color: var(--muted); }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 12px; }
.section-head h2, .section-head h3 { margin: 0; font-size: 19px; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card { padding: 15px; min-width: 0; }
.card h3 { margin: 0 0 8px; font-size: 15px; }
.card p { margin: 6px 0; }

/* Quick Actions Grid matching 3 columns layout with round icons */
.quick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 15px;
}
.quick a {
  background: linear-gradient(145deg, #131b2e, #0d1322);
  border: 1px solid #26314b;
  border-radius: 14px;
  padding: 16px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #f5f7ff;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.quick .ico {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: #1b2740;
  border: 1px solid #35415f;
  margin-bottom: 2px;
}

/* Sign Up Bonus & Daily Commission Custom Cards */
.bonus-card, .commission-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  margin-bottom: 12px;
}
.bonus-left { display: flex; align-items: center; gap: 12px; }
.status-claimed { color: #4ade80; font-size: 13px; font-weight: 600; }

/* Forms & Tables */
.form-wrap { max-width: 470px; margin: 20px auto; }
.form-card { padding: 23px; }
.form-card h1 { font-size: 25px; margin: 0 0 5px; }
.field { margin: 13px 0; }
.field label { display: block; color: #c4cce0; font-size: 12px; margin-bottom: 6px; }
.input, select.input, textarea.input {
  width: 100%;
  background: #090f1d;
  border: 1px solid #2b3650;
  border-radius: 9px;
  padding: 12px;
  color: #fff;
  outline: none;
}
.input:focus { border-color: #8b55ff; box-shadow: 0 0 0 3px #853cff20; }

.alert { padding: 12px 14px; border-radius: 10px; margin: 10px 0 14px; border: 1px solid #34415b; background: #111b2e; }
.alert.success { border-color: #1a7e60; background: #0d302a; }
.alert.error { border-color: #8f3448; background: #351522; }

.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.data-table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 12px; }
.data-table th, .data-table td { padding: 11px; text-align: left; border-bottom: 1px solid #26314a; }
.data-table th { color: #bfc8dc; background: #151d30; }

.status { display: inline-block; padding: 4px 7px; border-radius: 6px; font-size: 10px; background: #27344d; }
.status.approved, .status.active, .status.success { color: #7af0bf; background: #103b32; }
.status.pending { color: #ffd77b; background: #42341b; }
.status.rejected, .status.suspended { color: #ff9baa; background: #451f2b; }

/* Bottom Navigation Bar */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: #0b1020f2;
  border-top: 1px solid #2b3450;
  display: flex;
  justify-content: space-around;
  padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
  backdrop-filter: blur(18px);
}
.bottom-nav a { font-size: 10px; color: #aeb9d1; display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 48px; }
.bottom-nav a span { font-size: 20px; }
.bottom-nav .nav-plus span {
  margin-top: -17px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(130deg, #6b32ec, #b72ce0);
  color: #fff;
  border: 4px solid #0b1020;
  font-size: 26px;
}

.hero-video {
  aspect-ratio: 16/9;
  border-radius: 12px;
  background: linear-gradient(120deg, #111a32, #3b1c68, #101a34);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border: 1px solid #45416b;
}
.play {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffffdf;
  color: #31145e;
  display: grid;
  place-items: center;
  font-size: 19px;
}

@media(max-width: 760px) {
  .topbar { height: 58px; padding: 0 14px; }
  .menu-toggle { display: block; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .stat { padding: 11px; }
  .stat .value { font-size: 16px; }
  .grid, .grid.two, .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .card, .plan-card { padding: 12px; }
}
