/* =========================================================
   Balanced Light Theme (not too light, not too dark) — 60:30:10
   60%: backgrounds/surfaces
   30%: cards/panels/borders
   10%: accents (primary/teal)
   Notes:
   - Stronger borders to separate sections
   - Slightly warmer/neutral light background (less “washed out”)
   - Softer shadows + subtle surface tinting
   ========================================================= */

:root {
  /* 60% base surfaces */
  --bg: #eff3f9; /* page background (balanced) */
  --bg2: #e7edf6; /* gentle depth */

  /* 30% supporting surfaces */
  --panel: #f9fbff; /* sticky bars / main panels */
  --card: #ffffff; /* cards */
  --card2: #f7f9fd; /* subtle alt surface (mini, note, th) */

  /* Borders / separators (stronger than before) */
  --stroke: rgba(15, 23, 42, 0.14);
  --stroke2: rgba(15, 23, 42, 0.18);
  --stroke3: rgba(15, 23, 42, 0.22);

  /* Text (dark-on-light, slightly softer) */
  --text: rgba(15, 23, 42, 0.9);
  --muted: rgba(15, 23, 42, 0.66);
  --muted2: rgba(15, 23, 42, 0.48);

  /* 10% accent */
  --primary: #2f6bff;
  --primary2: #1f56ff;
  --teal: #14b8a6;

  /* Status */
  --danger: #e11d48;
  --warn: #f59e0b;

  /* Effects */
  --shadow: 0 18px 55px rgba(15, 23, 42, 0.1);
  --shadow2: 0 10px 28px rgba(15, 23, 42, 0.08);

  --radius: 16px;
  --radius2: 22px;

  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial;

  /* Focus ring */
  --focus: 0 0 0 4px rgba(47, 107, 255, 0.16);
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);

  /* Subtle, premium gradients (kept very soft) */
  background: radial-gradient(
      900px 520px at 12% -10%,
      rgba(47, 107, 255, 0.1),
      transparent 62%
    ),
    radial-gradient(
      900px 520px at 88% -8%,
      rgba(20, 184, 166, 0.08),
      transparent 62%
    ),
    radial-gradient(
      820px 520px at 55% 110%,
      rgba(225, 29, 72, 0.06),
      transparent 68%
    ),
    linear-gradient(180deg, var(--bg), var(--bg2));
}

a {
  color: inherit;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.big {
  font-size: 18px;
  font-weight: 800;
}
.break {
  word-break: break-all;
}
.mono {
  font-family: var(--mono);
}

code {
  font-family: var(--mono);
  background: rgba(47, 107, 255, 0.1);
  border: 1px solid rgba(47, 107, 255, 0.2);
  padding: 2px 8px;
  border-radius: 999px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 16px 42px;
}

/* =========================
   Topbar
   ========================= */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--stroke2);
  background: rgba(249, 251, 255, 0.82);
  backdrop-filter: blur(16px);
}

.topbar__left {
  /* intentionally empty - keeps center truly centered */
}

.topbar__center {
  display: flex;
  justify-content: center;
}

.topbar__right {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.brand img {
  display: block;
  max-height: 50px;
  height: auto;
  width: auto;
}

/* =========================
   Buttons
   ========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--stroke2);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease,
    border-color 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
  box-shadow: var(--shadow2);
}
.btn:hover {
  transform: translateY(-1px);
  background: #fff;
  border-color: var(--stroke3);
}
.btn:active {
  transform: translateY(0);
}
.btn:focus {
  outline: none;
  box-shadow: var(--shadow2), var(--focus);
  border-color: rgba(47, 107, 255, 0.4);
}

.btn--primary {
  background: rgba(47, 107, 255, 0.14);
  border-color: rgba(47, 107, 255, 0.34);
  box-shadow: 0 12px 28px rgba(47, 107, 255, 0.12);
}
.btn--primary:hover {
  background: rgba(47, 107, 255, 0.18);
  border-color: rgba(47, 107, 255, 0.42);
}
.btn--danger {
  background: rgba(225, 29, 72, 0.12);
  border-color: rgba(225, 29, 72, 0.3);
  box-shadow: 0 12px 28px rgba(225, 29, 72, 0.1);
}
.btn--danger:hover {
  background: rgba(225, 29, 72, 0.16);
  border-color: rgba(225, 29, 72, 0.38);
}
.btn--ghost {
  background: rgba(249, 251, 255, 0.8);
  box-shadow: none;
}
.btn--block {
  width: 100%;
}

/* =========================
   Inputs
   ========================= */
.input {
  width: 100%;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid var(--stroke2);
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    background 0.15s ease;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}
.input:focus {
  border-color: rgba(47, 107, 255, 0.46);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05), var(--focus);
  background: #fff;
}
.label {
  display: block;
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--muted);
}
.hint {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted2);
}

/* =========================
   Cards + Layout
   ========================= */
.card {
  background: var(--card);
  border: 1px solid var(--stroke2); /* stronger separation */
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  padding: 16px;
}

.pagehead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin: 18px 0 14px;
}
.pagehead h1 {
  margin: 0;
  font-size: 28px;
}
.pagehead__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

/* =========================
   Table
   ========================= */
.tablewrap {
  overflow: auto;
  border-radius: 16px;
  border: 1px solid var(--stroke2);
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 920px;
}
.table th,
.table td {
  padding: 12px 12px;
  border-bottom: 1px solid var(--stroke);
  vertical-align: top;
  text-align: left;
}
.table th {
  font-size: 12px;
  color: var(--muted);
  background: var(--card2);
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--stroke2);
}
.table tr:hover td {
  background: rgba(47, 107, 255, 0.03); /* very subtle hover */
}
.row--dim {
  opacity: 0.72;
}
.title {
  font-weight: 800;
  margin-bottom: 4px;
}

/* =========================
   Badges
   ========================= */
.badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--stroke2);
  background: rgba(15, 23, 42, 0.03);
}
.badge--ok {
  border-color: rgba(20, 184, 166, 0.32);
  background: rgba(20, 184, 166, 0.1);
}
.badge--warn {
  border-color: rgba(245, 158, 11, 0.32);
  background: rgba(245, 158, 11, 0.1);
}
.badge--muted {
  opacity: 0.95;
}

/* =========================
   Toasts
   ========================= */
.toast {
  border-radius: 16px;
  padding: 12px 14px;
  border: 1px solid var(--stroke2);
  margin: 10px 0 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}
.toast--ok {
  border-color: rgba(20, 184, 166, 0.32);
  background: rgba(20, 184, 166, 0.1);
}
.toast--bad {
  border-color: rgba(225, 29, 72, 0.3);
  background: rgba(225, 29, 72, 0.1);
}

/* =========================
   Empty
   ========================= */
.empty {
  padding: 18px;
  margin-top: 12px;
  border: 1px dashed rgba(15, 23, 42, 0.26);
  border-radius: 18px;
  text-align: center;
  background: rgba(255, 255, 255, 0.84);
}
.empty__title {
  font-weight: 900;
  font-size: 16px;
  margin-bottom: 6px;
}
.empty__body {
  color: var(--muted);
  margin-bottom: 12px;
}

/* =========================
   Auth
   ========================= */
.auth {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 0;
}
.auth__card {
  width: 100%;
  max-width: 520px;
  padding: 22px;
  border-radius: var(--radius2);
  border: 1px solid var(--stroke2);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.auth__card h1 {
  margin: 0 0 6px;
  font-size: 26px;
}
.form {
  margin-top: 14px;
}

/* =========================
   Public hero
   ========================= */
.hero--public {
  padding: 28px 0 16px;
}

/* FULL WIDTH container */
.hero__content {
  width: 100%;
  padding: 22px;
  border-radius: var(--radius2);
  border: 1px solid var(--stroke2);
  background: var(--panel);
  box-shadow: var(--shadow);
}

/* Optional inner wrapper if needed later
.hero__inner{
  max-width: 980px;
  margin: 0 auto;
}
*/

/* Kicker */
.kicker {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(47, 107, 255, 0.36);
  background: rgba(47, 107, 255, 0.14);
  color: rgba(15, 23, 42, 0.92);
  font-weight: 800;
  letter-spacing: 0.2px;
  margin-bottom: 12px;
  line-height: 1;
}

/* Title + text */
.hero__content h1 {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: -0.2px;
}

.hero__content p {
  margin: 0;
  line-height: 1.6;
}

/* Feature cards */
.hero__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.mini {
  border: 1px solid var(--stroke2);
  border-radius: 18px;
  padding: 14px;
  background: var(--card2);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    border-color 0.12s ease;
}

.mini:hover {
  transform: translateY(-1px);
  border-color: var(--stroke3);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.mini__title {
  font-weight: 900;
  margin: 0 0 6px;
}

.mini__text {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* Note */
.note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--stroke2);
  background: var(--card2);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.note__title {
  font-weight: 900;
  margin: 0 0 6px;
}

.note__body {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

/* =========================
   Brand grid
   ========================= */
.brandgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.brandcard {
  border: 1px solid var(--stroke2);
  border-radius: 22px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}
.brandcard__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.brandchip {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(20, 184, 166, 0.32);
  background: rgba(20, 184, 166, 0.1);
  font-weight: 800;
  font-size: 12px;
}
.brandcard__title {
  font-weight: 900;
  font-size: 16px;
  margin-bottom: 6px;
}
.brandcard__text {
  color: var(--muted);
  font-size: 13px;
}

.pagehead__center {
  text-align: center;
  justify-content: center;
  margin: 24px 0 16px;
}

.pagehead__center h2 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 900;
}

.pagehead__center p {
  max-width: 90%;
  margin: 0 auto;
  line-height: 1.6;
}

/* =========================
   Footer
   ========================= */
.footer {
  margin-top: 18px;
  padding: 16px 2px 0;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  border-top: 1px solid var(--stroke2);
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer__dot {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: linear-gradient(
    135deg,
    rgba(47, 107, 255, 0.96),
    rgba(20, 184, 166, 0.84)
  );
  box-shadow: 0 10px 22px rgba(47, 107, 255, 0.14);
}
.footer__sub {
  margin-top: 6px;
}

.footer__social {
  display: flex;
  gap: 10px;
}

/* Generic icon hover */
.slink--icon:hover svg {
  opacity: 1;
}

/* X (Twitter) */
.slink--icon[href*="x.com"]:hover {
  color: #000000;
}

/* YouTube */
.slink--icon[href*="youtube.com"]:hover {
  color: #ff0000;
}

/* Instagram */
.slink--icon[href*="instagram.com"]:hover {
  color: #e1306c;
}

/* Facebook */
.slink--icon[href*="facebook.com"]:hover {
  color: #1877f2;
}

.slink--icon {
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.slink--icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  opacity: 0.85;
}

.slink--icon:hover svg {
  opacity: 1;
}

.slink {
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--stroke2);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
}
.slink:hover {
  background: #fff;
  border-color: var(--stroke3);
}

/* =========================
   Error
   ========================= */
.error {
  max-width: 100%;
  margin: 28px auto 0;
  padding: 18px;
  border-radius: var(--radius2);
  border: 1px solid var(--stroke2);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.error h1 {
  margin: 0 0 10px;
  font-size: 30px;
}

/* Error page enhancements */
.error--404{
  text-align:left;
}

.error__icon{
  width:56px;
  height:56px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--stroke2);
  background: var(--card2);
  box-shadow: 0 10px 26px rgba(15,23,42,.06);
  margin-bottom:12px;
}

/* If youre using it in your error icon box */
.error__icon svg{
  width:28px;
  height:28px;
  stroke: currentColor;
  opacity:.9;
}

.error__details{
  margin-top:14px;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid var(--stroke2);
  background: var(--card2);
}

.error__title{
  font-weight:900;
  margin-bottom:8px;
}

.error__list{
  margin:0;
  padding-left:18px;
  color: var(--muted);
  line-height:1.6;
}

.error__actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}

/* =========================
   Responsive
   ========================= */

/* Tablet & down: stack the 3-up grids */
@media (max-width: 980px) {
  .hero__cards {
    grid-template-columns: 1fr;
  }
  .brandgrid {
    grid-template-columns: 1fr;
  }
  .hero__content {
    padding: 18px;
  }
  .hero__content h1 {
    font-size: 28px;
  }
  .hero__cards {
    grid-template-columns: 1fr;
  }
}

/* Mobile (phones) */
@media (max-width: 640px) {
  body {
    font-size: 14px;
  }
  .container {
    padding: 14px 12px 36px;
  }

  .topbar {
    padding: 12px;
    grid-template-columns: 1fr auto 1fr;
  }
  .topbar__right .btn {
    padding: 10px 12px;
    font-size: 14px;
  }

  .pagehead {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .pagehead h1 {
    font-size: 22px;
  }

  .pagehead__actions {
    width: 100%;
  }
  .pagehead__actions .btn {
    flex: 1;
  }

  .btn {
    padding: 11px 14px;
    font-size: 14px;
  }
  .input {
    padding: 12px 14px;
    font-size: 14px;
  }

  .card {
    padding: 14px;
  }

  .hero--public {
    padding: 18px 0 12px;
  }
  .hero__content {
    padding: 16px;
  }
  .hero__content h1 {
    font-size: 24px;
  }
  .kicker {
    font-size: 12px;
    padding: 6px 10px;
  }

  /* tables scroll on small screens */
  .table {
    min-width: 720px;
  }
  .table th,
  .table td {
    padding: 10px;
    font-size: 13px;
  }

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

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

.error__actions .btn{
    width:100%;
  }

  .auth {
    padding: 20px 0;
  }
  .auth__card {
    padding: 18px;
  }
}

/* Tablet (nice middle ground) */
@media (min-width: 641px) and (max-width: 980px) {
  body {
    font-size: 15px;
  }
  .container {
    padding: 16px 14px 40px;
  }
  .pagehead h1 {
    font-size: 24px;
  }

  .hero__content {
    padding: 18px;
  }
  .hero__content h1 {
    font-size: 30px;
  }

  .hero__cards {
    grid-template-columns: 1fr 1fr;
  }
  .brandgrid {
    grid-template-columns: 1fr 1fr;
  }

  .table {
    min-width: 860px;
  }
  .table th,
  .table td {
    padding: 11px;
    font-size: 13.5px;
  }

  .btn {
    padding: 10px 13px;
    font-size: 14px;
  }
}
