/* Kryptobit-style design system — mobile-first */
:root {
  --navy: #0a1f4a;
  --navy-deep: #06122e;
  --navy-light: #1a3a7a;
  --orange: #f37021;
  --orange-light: #ff8c42;
  --orange-glow: rgba(243, 112, 33, 0.35);
  --blue-text: #1e3a5f;
  --gold: #f5b942;
  --green: #25d366;
  --green-dark: #1ea952;
  --grey-bg: #f4f6f9;
  --grey-border: #e2e6ed;
  --grey-mid: #8b95a5;
  --grey-dark: #4a5568;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(10, 31, 74, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 31, 74, 0.1);
  --shadow-orange: 0 6px 20px var(--orange-glow);
  --radius: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  color: var(--grey-dark);
  background: var(--grey-bg);
  min-height: 100dvh;
}

a {
  color: var(--orange);
  text-decoration: none;
  transition: opacity 0.2s var(--ease);
}

a:hover {
  opacity: 0.88;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* —— Auth / light pages —— */
.page-auth {
  min-height: 100dvh;
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(255, 200, 150, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse 70% 40% at 0% 100%, rgba(255, 220, 180, 0.2) 0%, transparent 45%),
    linear-gradient(180deg, #fafafa 0%, #f5f5f7 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.25rem 5rem;
}

.page-auth__inner {
  width: 100%;
  max-width: 400px;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.logo__mark {
  width: 36px;
  height: 36px;
  position: relative;
}

.logo__mark svg {
  width: 100%;
  height: 100%;
}

.logo__text {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo__text span:first-child {
  color: var(--blue-text);
}

.logo__text span:last-child {
  color: var(--orange);
}

.auth-title {
  text-align: center;
  margin-bottom: 0.35rem;
}

.auth-title h1 {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 700;
  color: #111;
}

.auth-title p {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  color: var(--grey-mid);
}

/* Inputs */
.field {
  margin-bottom: 1rem;
}

.field__wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--white);
  border: 1px solid var(--grey-border);
  border-radius: var(--radius);
  padding: 0.65rem 0.9rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field__wrap:focus-within {
  border-color: rgba(243, 112, 33, 0.45);
  box-shadow: 0 0 0 3px rgba(243, 112, 33, 0.12);
}

.field__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--grey-mid);
}

.field__wrap input {
  flex: 1;
  border: none;
  background: transparent;
  font: inherit;
  color: #222;
  min-width: 0;
}

.field__wrap input::placeholder {
  color: #b0b8c4;
}

.btn-icon-plain {
  border: none;
  background: none;
  padding: 0.25rem;
  cursor: pointer;
  color: var(--grey-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.btn-icon-plain:hover {
  color: var(--orange);
}

.link-row {
  text-align: right;
  margin: -0.25rem 0 1rem;
}

.link-row a {
  font-size: 0.9rem;
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.9rem 1.25rem;
  border: none;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.2s var(--ease), filter 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn--orange {
  background: linear-gradient(180deg, var(--orange-light) 0%, var(--orange) 100%);
  color: var(--white);
  box-shadow: var(--shadow-orange);
}

.btn--orange:hover {
  filter: brightness(1.03);
}

.btn--navy {
  background: linear-gradient(180deg, var(--navy-light) 0%, var(--navy) 100%);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn--navy:hover {
  filter: brightness(1.05);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.divider-or {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--grey-mid);
  font-size: 0.85rem;
}

.divider-or::before,
.divider-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--grey-border);
}

.auth-footer {
  text-align: center;
  font-size: 0.95rem;
  color: var(--grey-mid);
}

.auth-footer strong,
.auth-footer a {
  color: var(--orange);
  font-weight: 700;
}

.form-error,
.form-success {
  font-size: 0.88rem;
  margin: 0 0 0.75rem;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
}

.form-error {
  display: none;
  color: #b71c1c;
  background: #ffebee;
  border: 1px solid #ffcdd2;
}

.form-error.is-visible {
  display: block;
}

.form-success {
  display: none;
  color: #1b5e20;
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
}

.form-success.is-visible {
  display: block;
}

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 2rem;
  color: var(--grey-mid);
  font-size: 0.9rem;
  width: 100%;
  justify-content: center;
}

.back-home:hover {
  color: var(--grey-dark);
}

/* FAB Support */
.fab-support {
  position: fixed;
  bottom: 1.25rem;
  right: 1rem;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.65rem 0.5rem 0.5rem;
  background: var(--green);
  color: var(--white);
  border-radius: var(--pill);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  max-width: 140px;
  line-height: 1.2;
  transition: transform 0.2s var(--ease);
}

.fab-support:hover {
  transform: scale(1.02);
}

.fab-support__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* —— App shell (dashboard etc.) —— */
.app-header {
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 0.85rem 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.app-header__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.app-header__phone {
  flex: 1;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.app-header__icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.app-header__logout {
  flex-shrink: 0;
  padding: 0.35rem 0.7rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--pill);
  cursor: pointer;
  white-space: nowrap;
}

.app-header__logout:hover {
  background: rgba(255, 255, 255, 0.22);
}

.app-main {
  padding: 1rem 1rem 6rem;
  max-width: 480px;
  margin: 0 auto;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
}

.card--live .card__row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.live-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  color: var(--blue-text);
  font-size: 0.95rem;
}

.live-label__star {
  width: 28px;
  height: 28px;
  background: var(--orange);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 0.85rem;
}

.refresh-timer {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--grey-mid);
  font-size: 0.85rem;
}

.rate-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.rate-row__price {
  font-size: 1.5rem;
  font-weight: 800;
  color: #111;
}

.badge-tier {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: var(--pill);
  font-size: 0.75rem;
  font-weight: 700;
  background: #e8f5e9;
  color: #2e7d32;
}

.balance-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.balance-bar strong {
  font-size: 1.05rem;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--grey-mid);
  margin: 1.25rem 0 0.65rem;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

.quick-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 0.75rem 0.4rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease);
}

.quick-item:hover {
  transform: translateY(-2px);
}

.quick-item__icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 0.4rem;
  background: var(--navy);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--white);
}

.quick-item span {
  font-size: 0.72rem;
  color: var(--grey-mid);
  font-weight: 600;
}

.btn-sell-hero {
  margin: 1rem 0 0.5rem;
  padding: 1rem;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.volume-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.volume-head h2 {
  margin: 0;
  font-size: 1rem;
  color: #111;
}

.volume-head a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy-light);
}

.tier-list {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--grey-border);
}

.tier-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0.85rem;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--grey-border);
  background: var(--white);
}

.tier-row:last-child {
  border-bottom: none;
}

.tier-row--highlight {
  background: rgba(243, 112, 33, 0.08);
}

.tier-row strong {
  color: var(--blue-text);
}

/* Bottom nav */
.bottom-nav {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.35rem;
  background: var(--white);
  padding: 0.4rem;
  border-radius: var(--pill);
  box-shadow: var(--shadow-md);
  z-index: 50;
}

.bottom-nav a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: var(--pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--grey-mid);
  transition: background 0.2s var(--ease), color 0.2s;
}

.bottom-nav a.active {
  background: var(--orange);
  color: var(--white);
}

.bottom-nav a:not(.active):hover {
  background: var(--grey-bg);
  color: var(--grey-dark);
}

/* Inner pages header (deposit etc.) */
.page-inner {
  min-height: 100dvh;
  background: var(--grey-bg);
  padding-bottom: 5rem;
}

.hero-blue {
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 55%, transparent 100%);
  padding: 0.75rem 1rem 5rem;
  color: var(--white);
}

.hero-blue__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--pill);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

.pill-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-blue__center {
  text-align: center;
}

.hero-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.85rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.75rem;
}

.hero-blue h1 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
}

.hero-blue p {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  opacity: 0.85;
}

.balance-pill {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.balance-pill .tag {
  background: var(--green-dark);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
}

.sheet {
  margin: -3.5rem 1rem 0;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  background: var(--white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 2;
}

.label-caps {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--grey-mid);
  margin-bottom: 0.5rem;
}

.network-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.network-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem;
  border: 1px solid var(--grey-border);
  border-radius: var(--radius);
  background: #f8f9fb;
  font: inherit;
  font-weight: 600;
  color: var(--grey-mid);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.network-btn.is-active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.deposit-pay-card {
  border: 1px solid var(--grey-border);
  border-radius: var(--radius);
  padding: 1rem 1rem 1.1rem;
  margin-bottom: 1.25rem;
  background: linear-gradient(180deg, #fafbfd 0%, #fff 100%);
  text-align: center;
}

.deposit-pay-card__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.deposit-net-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--navy);
  background: rgba(30, 58, 95, 0.1);
  padding: 0.25rem 0.65rem;
  border-radius: var(--pill);
}

.deposit-pay-card__hint {
  font-size: 0.75rem;
  color: var(--grey-mid);
}

.deposit-pay-addr {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  font-weight: 700;
  word-break: break-all;
  line-height: 1.45;
  color: #111;
}

.btn-copy-addr {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.4rem 0.9rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--grey-border);
  border-radius: var(--pill);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.btn-copy-addr:hover {
  border-color: var(--navy);
  background: rgba(30, 58, 95, 0.06);
}

.dep-qr-wrap {
  display: flex;
  justify-content: center;
  margin-top: 0.25rem;
}

.dep-qr-wrap img {
  max-width: 200px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--grey-border);
}

.sell-bank-linked {
  margin-bottom: 0.75rem;
}

.sell-bank-summary {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: pre-line;
  color: #111;
}

.k-dialog {
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  max-width: calc(100vw - 2rem);
  width: 400px;
  box-shadow: var(--shadow-md);
}

.k-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
}

.k-dialog form {
  padding: 1.25rem;
}

.k-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.amount-input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--grey-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 0.65rem;
}

.amount-input-wrap input {
  flex: 1;
  border: none;
  padding: 0.85rem 1rem;
  font: inherit;
}

.amount-input-wrap .badge-usdt {
  margin-right: 0.65rem;
  padding: 0.2rem 0.5rem;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 6px;
}

.quick-amt {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.quick-amt button {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--grey-border);
  border-radius: var(--pill);
  background: var(--white);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.quick-amt button:hover {
  border-color: var(--orange);
  background: rgba(243, 112, 33, 0.06);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
  color: var(--grey-dark);
}

.check-list li::before {
  content: "✓";
  color: var(--navy-light);
  font-weight: 800;
}

.note-small {
  text-align: center;
  font-size: 0.8rem;
  color: var(--grey-mid);
  margin-top: 0.75rem;
}

/* Profile */
.page-profile-top {
  background: linear-gradient(180deg, #fff9e6 0%, var(--grey-bg) 100%);
  padding: 1.5rem 1rem 2rem;
  text-align: center;
}

.avatar-lg {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin: 0 auto 0.65rem;
  background: linear-gradient(145deg, #e0e0e0, #f5f5f5);
  border: 3px solid var(--white);
  box-shadow: var(--shadow-sm);
}

.badge-gold {
  display: inline-block;
  padding: 0.2rem 0.85rem;
  border-radius: var(--pill);
  background: linear-gradient(90deg, var(--gold), #ffd54f);
  font-size: 0.75rem;
  font-weight: 800;
  color: #333;
  margin-bottom: 0.75rem;
}

.profile-phone {
  font-size: 1.35rem;
  font-weight: 800;
  color: #111;
  margin: 0 0 0.65rem;
}

.uid-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--pill);
  font-size: 0.8rem;
  font-weight: 600;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--grey-border);
}

.stats-row div {
  font-size: 0.7rem;
  color: var(--grey-mid);
}

.stats-row strong {
  display: block;
  font-size: 1.1rem;
  color: #111;
  margin-top: 0.2rem;
}

.wallet-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0d2860 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  margin: -1rem 1rem 1rem;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-md);
}

.wallet-hero__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.btc-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #333;
  font-size: 0.85rem;
}

.wallet-rate {
  text-align: right;
}

.wallet-rate big {
  font-size: 1.75rem;
  font-weight: 800;
}

.wallet-rate small {
  display: block;
  opacity: 0.75;
  font-size: 0.8rem;
}

.wallet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 1rem;
}

.wallet-actions a {
  padding: 0.65rem;
  text-align: center;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.25);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
}

.menu-list {
  margin: 0 1rem;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--grey-border);
  color: inherit;
  transition: background 0.15s;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item:hover {
  background: var(--grey-bg);
}

.menu-item__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.menu-item span {
  flex: 1;
  font-weight: 600;
  color: #222;
}

.menu-item::after {
  content: "›";
  color: var(--grey-mid);
  font-size: 1.25rem;
}

button.menu-item.menu-item--button {
  width: 100%;
  border: none;
  background: var(--white);
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.menu-item--button::after {
  content: none;
}

/* Landing */
.landing {
  min-height: 100dvh;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(243, 112, 33, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, #fafbfc 0%, #eef1f6 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  text-align: center;
}

.landing h1 {
  font-size: 1.85rem;
  color: var(--blue-text);
  margin: 1rem 0 0.5rem;
  max-width: 320px;
}

.landing p {
  color: var(--grey-mid);
  margin: 0 0 2rem;
  max-width: 340px;
}

.landing-hint {
  font-size: 0.82rem !important;
  line-height: 1.5;
  max-width: 360px !important;
  margin: -1rem 0 1.5rem !important;
  color: var(--grey-mid);
}

.landing-hint code {
  font-size: 0.78rem;
  background: rgba(10, 31, 74, 0.06);
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
}

.landing .btn {
  max-width: 320px;
}

.landing .btn + .btn {
  margin-top: 0.75rem;
}

/* —— Public landing (index) —— */
.landing-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--grey-border);
  padding: 0.75rem 1rem;
}

.landing-header__inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.landing-header__logo {
  margin: 0;
}

.landing-header__nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.landing-header__link {
  font-weight: 600;
  color: var(--blue-text);
  font-size: 0.95rem;
}

.btn--sm {
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
}

.landing-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.landing-hero {
  text-align: center;
  padding: 1.5rem 0 2.5rem;
}

.landing-hero__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(243, 112, 33, 0.12);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  margin: 0 0 1rem;
}

.landing-hero__title {
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  font-weight: 800;
  color: var(--blue-text);
  line-height: 1.2;
  margin: 0 0 0.75rem;
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}

.landing-hero__sub {
  color: var(--grey-mid);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 36ch;
  margin: 0 auto 1.5rem;
}

.landing-hero__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  max-width: 280px;
  margin: 0 auto;
}

.landing-hero__btn {
  width: 100%;
  justify-content: center;
}

.landing-hero__note {
  font-size: 0.8rem;
  color: var(--grey-mid);
  max-width: 340px;
  margin: 1.25rem auto 0;
  line-height: 1.45;
}

.landing-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .landing-features {
    grid-template-columns: repeat(3, 1fr);
  }

  .landing-hero__cta {
    flex-direction: row;
    max-width: none;
    justify-content: center;
  }

  .landing-hero__btn {
    width: auto;
    min-width: 160px;
  }
}

.landing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.15rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(226, 230, 237, 0.9);
  text-align: left;
}

.landing-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--navy-light), var(--navy));
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.landing-card__title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--blue-text);
  margin: 0 0 0.35rem;
}

.landing-card__text {
  font-size: 0.88rem;
  color: var(--grey-mid);
  line-height: 1.5;
  margin: 0;
}

.landing-footer {
  text-align: center;
  padding: 2rem 1rem 4rem;
  border-top: 1px solid var(--grey-border);
  background: linear-gradient(180deg, #f8f9fc 0%, var(--grey-bg) 100%);
}

.landing-footer__copy {
  font-size: 0.82rem;
  color: var(--grey-mid);
  margin: 0 0 0.5rem;
}

.landing-footer__staff {
  font-size: 0.8rem;
  margin: 0;
}

.landing-footer__muted {
  color: var(--grey-mid);
  font-weight: 600;
}

.btn--ghost {
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--grey-border);
  box-shadow: none;
}

.btn--ghost:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.receive-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #e8f5e9;
  border-radius: var(--radius);
  margin-top: 0.5rem;
}

.receive-box strong {
  font-size: 1.35rem;
  color: #1b5e20;
}

.info-row-split {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.82rem;
  margin-top: 0.5rem;
}

.muted-box {
  text-align: center;
  padding: 1rem;
  margin-bottom: 1rem;
}

.muted-box h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: #111;
}

.muted-box p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--grey-mid);
}

/* Admin */
.admin-page {
  min-height: 100dvh;
  background: var(--grey-bg);
  padding: 1rem 1rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.admin-page h1 {
  margin: 0 0 0.25rem;
  font-size: 1.35rem;
  color: var(--blue-text);
}

.admin-page .sub {
  font-size: 0.88rem;
  color: var(--grey-mid);
  margin: 0 0 1rem;
}

.admin-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
}

.admin-card h2 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--grey-dark);
}

.admin-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.5rem 0.45rem;
  border-bottom: 1px solid var(--grey-border);
}

.admin-table th {
  color: var(--grey-mid);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
}

.admin-toolbar .btn {
  width: auto;
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
}

.btn--small-navy {
  width: auto;
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
}

.btn--small-navy:hover {
  filter: brightness(1.08);
}

@media (min-width: 480px) {
  .page-auth {
    padding-top: 3rem;
  }
}
