:root {
  color-scheme: dark;
  --bg: #080b0f;
  --panel: #10151b;
  --panel-raised: #141b22;
  --panel-soft: #0d1217;
  --line: #222b33;
  --muted: #89959f;
  --text: #edf3f5;
  --green: #50f0b0;
  --blue: #6bb8ff;
  --orange: #ffb55f;
  --pink: #ff7196;
  --red: #ff7777;
  --font-body: "DM Sans", sans-serif;
  --font-display: "Space Grotesk", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 72% 0%, rgb(42 104 81 / 13%), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.hidden {
  display: none !important;
}

.login-screen {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
}

.login-visual {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 42px 7vw;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle at 68% 47%, rgb(80 240 176 / 12%), transparent 19rem),
    linear-gradient(145deg, #101a1a, #0a0e13 65%);
}

.login-visual::before,
.login-visual::after {
  position: absolute;
  width: 340px;
  height: 340px;
  border: 1px solid rgb(80 240 176 / 14%);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.login-visual::before {
  top: 26%;
  right: -6rem;
}

.login-visual::after {
  top: 34%;
  right: -2rem;
  width: 220px;
  height: 220px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgb(80 240 176 / 34%);
  border-radius: 11px;
  background: rgb(80 240 176 / 10%);
  color: var(--green);
  font-size: 15px;
}

.visual-copy {
  position: relative;
  z-index: 1;
  max-width: 530px;
  padding: 70px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 17px;
  height: 1px;
  background: currentColor;
  content: "";
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
}

.visual-copy h1 {
  max-width: 500px;
  margin-bottom: 18px;
  font-size: clamp(38px, 5vw, 64px);
  letter-spacing: -0.065em;
  line-height: 1.04;
}

.visual-copy h1 span {
  color: var(--green);
}

.visual-copy > p,
.muted {
  color: var(--muted);
  line-height: 1.7;
}

.visual-note {
  max-width: 470px;
  color: #718078;
  font-size: 12px;
  line-height: 1.7;
}

.login-pane {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 36px;
}

.login-card {
  width: min(100%, 390px);
}

.login-card .brand {
  margin-bottom: 38px;
}

.login-card h2 {
  margin-bottom: 8px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.login-card > p {
  margin-bottom: 30px;
  color: var(--muted);
}

.field {
  display: grid;
  gap: 9px;
  margin-bottom: 17px;
}

.field label {
  color: #c7d0d5;
  font-size: 12px;
  font-weight: 600;
}

.field input,
.field select,
.search-input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0c1116;
  color: var(--text);
}

.field input::placeholder,
.search-input::placeholder {
  color: #5f6b74;
}

.btn {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #131a20;
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: border-color 150ms ease, transform 150ms ease, background 150ms ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: #43514e;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.btn-primary {
  border-color: var(--green);
  background: var(--green);
  color: #062117;
}

.btn-primary:hover:not(:disabled) {
  border-color: #87ffd0;
  background: #87ffd0;
}

.btn-quiet {
  background: transparent;
}

.btn-danger {
  border-color: rgb(255 119 119 / 25%);
  color: var(--red);
}

.btn-full {
  width: 100%;
}

.login-error {
  min-height: 20px;
  margin: -2px 0 11px;
  color: var(--red);
  font-size: 12px;
}

.demo-logins {
  display: grid;
  gap: 9px;
  margin-top: 24px;
}

.demo-logins > span {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 11px;
}

.demo-login-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.demo-login-row .btn {
  flex: 1;
}

.demo-credential {
  margin: 14px 0 0;
  color: #738087;
  font-size: 11px;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  z-index: 10;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  width: 246px;
  flex-direction: column;
  padding: 27px 18px 18px;
  border-right: 1px solid var(--line);
  background: rgb(10 14 18 / 93%);
  backdrop-filter: blur(18px);
}

.sidebar .brand {
  padding: 0 9px;
}

.workspace-label {
  margin: 37px 10px 12px;
  color: #627078;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-list {
  display: grid;
  gap: 5px;
}

.nav-item {
  display: flex;
  min-height: 43px;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #9aa7ad;
  cursor: pointer;
  text-align: left;
}

.nav-item:hover {
  background: #141b20;
  color: var(--text);
}

.nav-item.active {
  border-color: rgb(80 240 176 / 13%);
  background: rgb(80 240 176 / 9%);
  color: var(--green);
}

.nav-icon {
  display: grid;
  width: 18px;
  place-items: center;
  font-size: 15px;
}

.sidebar-spacer {
  flex: 1;
}

.demo-banner {
  padding: 12px;
  border: 1px solid rgb(255 181 95 / 22%);
  border-radius: 10px;
  background: rgb(255 181 95 / 6%);
  color: #d5a76f;
  font-size: 10px;
  line-height: 1.55;
}

.user-mini {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 16px;
  padding: 14px 8px 0;
  border-top: 1px solid var(--line);
}

.avatar {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #365248;
  border-radius: 50%;
  background: #193027;
  color: var(--green);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
}

.user-mini strong,
.user-mini span {
  display: block;
}

.user-mini strong {
  max-width: 130px;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-mini span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.main-area {
  min-height: 100vh;
  margin-left: 246px;
}

.topbar {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  border-bottom: 1px solid rgb(34 43 51 / 80%);
  background: rgb(8 11 15 / 80%);
  backdrop-filter: blur(16px);
}

.topbar-title {
  color: #aebac0;
  font-size: 12px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 13px;
}

.today-label {
  color: var(--muted);
  font-size: 11px;
}

.main-content {
  width: min(100%, 1270px);
  margin: 0 auto;
  padding: 34px 38px 70px;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 25px;
}

.page-heading h1 {
  margin-bottom: 5px;
  font-size: 25px;
  letter-spacing: -0.045em;
}

.page-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.balance-card {
  position: relative;
  overflow: hidden;
  padding: 25px;
  border: 1px solid rgb(80 240 176 / 20%);
  border-radius: 15px;
  background:
    radial-gradient(circle at 86% 15%, rgb(80 240 176 / 15%), transparent 16rem),
    linear-gradient(110deg, #101c1a, #11171c 74%);
}

.balance-card::after {
  position: absolute;
  top: -77px;
  right: 10%;
  width: 190px;
  height: 190px;
  border: 1px solid rgb(80 240 176 / 12%);
  border-radius: 50%;
  content: "";
}

.balance-top,
.balance-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.balance-label {
  color: #a7b5ae;
  font-size: 12px;
}

.balance-value {
  margin: 10px 0 25px;
  font-family: var(--font-display);
  font-size: clamp(29px, 4vw, 39px);
  font-weight: 700;
  letter-spacing: -0.06em;
}

.balance-bottom {
  justify-content: flex-start;
  gap: 25px;
}

.balance-meta {
  color: #92a09a;
  font-size: 11px;
}

.balance-meta strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 12px;
}

.balance-actions,
.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.balance-actions .btn-primary {
  min-width: 95px;
}

.quick-actions {
  margin: 17px 0 25px;
}

.quick-action {
  display: flex;
  min-width: 110px;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 49px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: #d2dbde;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.quick-action:hover {
  border-color: #46534f;
  background: #151d21;
}

.quick-action span:first-child {
  color: var(--green);
  font-size: 15px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 27px 0 14px;
}

.section-head h2 {
  margin: 0;
  font-size: 15px;
  letter-spacing: -0.025em;
}

.section-head > span,
.section-head button {
  color: var(--muted);
  font-size: 11px;
}

.section-head button {
  border: 0;
  background: transparent;
  color: var(--green);
  cursor: pointer;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin: 22px 0 26px;
}

.stat-card {
  min-height: 118px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}

.stat-icon {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 9px;
  background: rgb(80 240 176 / 11%);
  color: var(--green);
  font-size: 13px;
}

.stat-icon.blue {
  background: rgb(107 184 255 / 11%);
  color: var(--blue);
}

.stat-icon.orange {
  background: rgb(255 181 95 / 11%);
  color: var(--orange);
}

.stat-icon.pink {
  background: rgb(255 113 150 / 11%);
  color: var(--pink);
}

.stat-value {
  margin: 15px 0 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.stat-note {
  margin-top: 4px;
  color: #75818a;
  font-size: 10px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(265px, 0.8fr);
  gap: 15px;
}

.panel {
  min-width: 0;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.task-list,
.activity-list {
  display: grid;
  gap: 10px;
}

.task-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px;
  border: 1px solid #202930;
  border-radius: 10px;
  background: #0c1116;
}

.platform-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #29343a;
  border-radius: 11px;
  background: #171f25;
  font-size: 17px;
}

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

.task-info strong,
.task-info span {
  display: block;
}

.task-info strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-info span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.task-reward {
  margin-bottom: 7px;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  text-align: right;
}

.task-card .btn {
  min-width: 81px;
  min-height: 34px;
  padding: 0 10px;
  font-size: 10px;
}

.task-progress {
  display: inline-block;
  min-width: 80px;
  color: var(--orange);
  font-size: 10px;
  text-align: center;
}

.activity-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid #20282e;
}

.activity-row:last-child {
  border-bottom: 0;
}

.activity-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  background: #19231f;
  color: var(--green);
}

.activity-copy {
  min-width: 0;
  flex: 1;
}

.activity-copy strong,
.activity-copy span {
  display: block;
}

.activity-copy strong {
  font-size: 11px;
}

.activity-copy span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.activity-amount {
  font-size: 11px;
  font-weight: 700;
}

.positive {
  color: var(--green);
}

.negative {
  color: var(--red);
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.package-card {
  position: relative;
  display: flex;
  min-height: 230px;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(155deg, #131a1f, #0d1115);
}

.package-card.current {
  border-color: rgb(80 240 176 / 40%);
  box-shadow: inset 0 0 25px rgb(80 240 176 / 3%);
}

.package-tag {
  align-self: flex-start;
  padding: 5px 8px;
  border-radius: 20px;
  background: #1a2428;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.package-card.current .package-tag {
  background: rgb(80 240 176 / 12%);
  color: var(--green);
}

.package-card h3 {
  margin: 15px 0 5px;
  font-size: 15px;
}

.package-price {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.045em;
}

.package-facts {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 10px;
}

.package-fact {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.package-fact strong {
  color: #dbe2e5;
  font-weight: 600;
}

.package-card .btn {
  width: 100%;
  margin-top: auto;
}

.notice {
  padding: 12px 14px;
  border: 1px solid rgb(255 181 95 / 19%);
  border-radius: 9px;
  background: rgb(255 181 95 / 5%);
  color: #c4a16f;
  font-size: 11px;
  line-height: 1.6;
}

.referral-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 15px;
  padding: 18px;
  border: 1px solid rgb(80 240 176 / 20%);
  border-radius: 12px;
  background: linear-gradient(110deg, #111d19, #11171c);
}

.referral-card label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 10px;
}

.referral-code {
  overflow-wrap: anywhere;
  color: var(--green);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.level-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(95px, 1fr));
  gap: 9px;
  overflow-x: auto;
}

.level-card {
  min-height: 106px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.level-card > span {
  color: var(--muted);
  font-size: 10px;
}

.level-card strong {
  display: block;
  margin: 12px 0 4px;
  font-family: var(--font-display);
  font-size: 19px;
}

.level-card small {
  color: var(--green);
  font-size: 10px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

th,
td {
  padding: 13px 15px;
  border-bottom: 1px solid #20282e;
  text-align: left;
}

th {
  background: #12181d;
  color: #8b989f;
  font-size: 10px;
  font-weight: 600;
}

td {
  color: #d1dadd;
  font-size: 11px;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.table-member {
  display: flex;
  align-items: center;
  gap: 9px;
}

.table-member .avatar {
  width: 29px;
  height: 29px;
  font-size: 10px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 20px;
  background: #1b2428;
  color: #aebac0;
  font-size: 9px;
}

.status::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #96a2a8;
  content: "";
}

.status.success {
  background: rgb(80 240 176 / 9%);
  color: var(--green);
}

.status.success::before {
  background: var(--green);
}

.status.pending {
  background: rgb(255 181 95 / 10%);
  color: var(--orange);
}

.status.pending::before {
  background: var(--orange);
}

.status.rejected {
  background: rgb(255 119 119 / 9%);
  color: var(--red);
}

.status.rejected::before {
  background: var(--red);
}

.table-actions {
  display: flex;
  gap: 6px;
}

.table-actions .btn {
  min-height: 30px;
  padding: 0 9px;
  font-size: 9px;
}

.table-tools {
  display: flex;
  align-items: center;
  gap: 9px;
}

.search-input {
  width: min(240px, 45vw);
  min-height: 38px;
  font-size: 11px;
}

.filter-select {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #0c1116;
  color: #c4ced2;
  font-size: 11px;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 17px;
}

.admin-stat {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel);
}

.admin-stat span {
  color: var(--muted);
  font-size: 10px;
}

.admin-stat strong {
  display: block;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.04em;
}

.admin-stat small {
  display: block;
  margin-top: 5px;
  color: #77848b;
  font-size: 10px;
}

.commission-list {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 9px;
}

.commission-level {
  padding: 13px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #0d1216;
  text-align: center;
}

.commission-level span {
  display: block;
  color: var(--muted);
  font-size: 9px;
}

.commission-level strong {
  display: block;
  margin-top: 8px;
  color: var(--green);
  font-family: var(--font-display);
  font-size: 17px;
}

.modal-backdrop {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgb(0 0 0 / 72%);
  backdrop-filter: blur(8px);
}

.modal {
  width: min(100%, 430px);
  padding: 22px;
  border: 1px solid #2c383e;
  border-radius: 14px;
  background: #11171c;
  box-shadow: 0 25px 90px rgb(0 0 0 / 45%);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}

.modal-head h2 {
  margin: 0 0 5px;
  font-size: 19px;
}

.modal-head p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.icon-button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #161e23;
  color: #aeb8bd;
  cursor: pointer;
}

.modal-form .btn {
  margin-top: 4px;
}

.modal-footnote {
  margin: 12px 0 0;
  color: #78858c;
  font-size: 10px;
  line-height: 1.55;
}

.task-modal {
  width: min(100%, 620px);
}

.task-modal .modal-head {
  margin-bottom: 15px;
}

.task-modal .modal-head .eyebrow {
  margin-bottom: 8px;
  font-size: 9px;
}

.task-modal .modal-head h2 {
  margin-bottom: 6px;
}

.task-modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 15px;
}

.video-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid #29343a;
  border-radius: 10px;
  background:
    radial-gradient(circle at 75% 27%, rgb(80 240 176 / 22%), transparent 36%),
    linear-gradient(135deg, #18241f, #0a1013 75%);
}

.sample-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 5px;
  padding: 38px 17px 15px;
  background: linear-gradient(transparent, rgb(4 9 10 / 88%));
  pointer-events: none;
}

.video-overlay strong {
  font-family: var(--font-display);
  font-size: clamp(17px, 4vw, 24px);
  letter-spacing: -0.04em;
}

.video-overlay > span:last-child {
  color: #c1cfca;
  font-size: 11px;
}

.video-ad-label {
  justify-self: start;
  padding: 4px 7px;
  border: 1px solid rgb(80 240 176 / 30%);
  border-radius: 4px;
  background: rgb(8 14 12 / 80%);
  color: var(--green);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.video-progress-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0 7px;
  color: var(--muted);
  font-size: 10px;
}

.video-progress-track {
  overflow: hidden;
  height: 4px;
  border-radius: 5px;
  background: #273138;
}

.video-progress-track > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition: width 120ms linear;
}

.video-error {
  margin: 10px 0 0;
  color: var(--red);
  font-size: 11px;
}

.demo-banner-creative {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(18px, 5vw, 30px);
  overflow: hidden;
  border: 1px solid rgb(255 181 95 / 25%);
  border-radius: 11px;
  background:
    radial-gradient(circle at 86% 16%, rgb(255 181 95 / 24%), transparent 38%),
    linear-gradient(115deg, #242016, #17201d 75%);
}

.demo-banner-creative > span:first-child {
  color: var(--orange);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.demo-banner-creative h3,
.landing-copy h3 {
  max-width: 460px;
  margin: 12px 0 7px;
  font-size: clamp(20px, 4vw, 28px);
  letter-spacing: -0.045em;
}

.demo-banner-creative p,
.landing-copy > p:not(.eyebrow) {
  max-width: 430px;
  margin: 0 0 14px;
  color: #acb7b6;
  font-size: 11px;
  line-height: 1.65;
}

.demo-banner-cta {
  padding: 8px 11px;
  border-radius: 7px;
  background: var(--orange);
  color: #201608;
  font-size: 10px;
  font-weight: 700;
}

.preview-countdown {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.preview-countdown strong {
  color: var(--green);
}

.demo-landing-page {
  overflow: hidden;
  border: 1px solid #263139;
  border-radius: 11px;
  background:
    radial-gradient(ellipse at 84% 20%, rgb(107 184 255 / 13%), transparent 40%),
    linear-gradient(145deg, #131e26, #0e1318);
}

.landing-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid #28333b;
  font-family: var(--font-display);
  font-weight: 700;
}

.landing-brand span {
  color: var(--blue);
  font-family: var(--font-body);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.landing-copy {
  padding: clamp(17px, 5vw, 27px);
}

.landing-copy .eyebrow {
  margin-bottom: 0;
  color: var(--blue);
  font-size: 9px;
}

.landing-copy .btn:disabled {
  opacity: 1;
}

.landing-preview-tag {
  padding: 10px 16px;
  border-top: 1px solid #28333b;
  color: #75848c;
  font-size: 9px;
}

.toast {
  position: fixed;
  z-index: 50;
  right: 20px;
  bottom: 20px;
  max-width: min(380px, calc(100vw - 40px));
  padding: 13px 16px;
  border: 1px solid #365448;
  border-radius: 10px;
  background: #15221c;
  box-shadow: 0 12px 35px rgb(0 0 0 / 28%);
  color: #d9f8e9;
  font-size: 12px;
}

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

.mobile-nav {
  display: none;
}

@media (max-width: 1050px) {
  .sidebar {
    width: 214px;
  }

  .main-area {
    margin-left: 214px;
  }

  .main-content {
    padding-right: 25px;
    padding-left: 25px;
  }

  .topbar {
    padding-right: 25px;
    padding-left: 25px;
  }

  .stats-grid,
  .admin-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .package-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .level-grid {
    grid-template-columns: repeat(7, 110px);
    padding-bottom: 4px;
  }
}

@media (max-width: 760px) {
  .login-screen {
    grid-template-columns: 1fr;
  }

  .login-visual {
    display: none;
  }

  .login-pane {
    min-height: 100svh;
    padding: 25px;
  }

  .login-card .brand {
    margin-bottom: 50px;
  }

  .sidebar {
    display: none;
  }

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

  .topbar {
    min-height: 61px;
    padding: 0 17px;
  }

  .topbar .brand {
    font-size: 14px;
  }

  .topbar .brand-mark {
    width: 30px;
    height: 30px;
  }

  .topbar-title,
  .today-label {
    display: none;
  }

  .topbar-right {
    gap: 8px;
  }

  .topbar-right .btn {
    min-height: 34px;
    padding: 0 10px;
    font-size: 10px;
  }

  .main-content {
    padding: 24px 16px 104px;
  }

  .page-heading {
    align-items: flex-start;
    margin-bottom: 18px;
  }

  .page-heading h1 {
    font-size: 22px;
  }

  .balance-card {
    padding: 19px;
  }

  .balance-top {
    align-items: flex-start;
  }

  .balance-actions {
    flex-direction: column;
  }

  .balance-actions .btn {
    min-height: 33px;
  }

  .balance-value {
    margin: 14px 0 20px;
    font-size: 31px;
  }

  .balance-bottom {
    gap: 15px;
  }

  .balance-meta {
    font-size: 9px;
  }

  .stats-grid,
  .admin-stat-grid {
    gap: 9px;
    margin: 17px 0 22px;
  }

  .stat-card {
    min-height: 105px;
    padding: 13px;
  }

  .stat-value {
    font-size: 18px;
  }

  .quick-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    margin: 12px 0 22px;
  }

  .quick-action {
    min-width: 0;
    min-height: 67px;
    flex-direction: column;
    gap: 5px;
    padding: 6px 2px;
    font-size: 9px;
  }

  .quick-action span:first-child {
    font-size: 15px;
  }

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

  .panel {
    padding: 14px;
  }

  .task-card {
    gap: 9px;
    padding: 10px;
  }

  .platform-icon {
    width: 35px;
    height: 35px;
  }

  .task-card .btn {
    min-width: 68px;
    padding: 0 7px;
  }

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

  .package-card {
    min-height: 215px;
  }

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

  .referral-card .btn {
    width: 100%;
  }

  .table-tools {
    width: 100%;
    flex-wrap: wrap;
  }

  .table-tools .search-input {
    width: 100%;
  }

  .commission-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .mobile-nav {
    position: fixed;
    z-index: 20;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 7px 7px calc(7px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgb(10 14 18 / 96%);
    backdrop-filter: blur(18px);
  }

  .mobile-nav .nav-item {
    min-height: 52px;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 3px;
    font-size: 9px;
    text-align: center;
  }

  .mobile-nav .nav-icon {
    font-size: 15px;
  }

  .mobile-nav .nav-item.active {
    border-color: transparent;
    background: transparent;
  }
}

@media (max-width: 390px) {
  .stats-grid,
  .admin-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-value {
    font-size: 16px;
  }

  .balance-card {
    padding: 16px;
  }

  .balance-value {
    font-size: 27px;
  }

  .balance-bottom {
    gap: 12px;
  }
}
