/* dis-brand-agent: repo=PLUS ONE product=DIS BRAND tag=DIS-PLUSONE-GOLD-NETWORK-MODEL-2-CSS name="DIS BRAND Governed Agent" action=edit at=2026-08-08T16:30:00.000Z */
/* Model 2 — Gold investment platform · warm fintech */

:root {
  --bg: #f7f4ee;
  --surface: #ffffff;
  --ink: #12141a;
  --muted: #6b7280;
  --line: #e8e2d6;
  --gold: #c49a3c;
  --gold-deep: #8a671f;
  --gold-soft: #faf3e3;
  --hero: linear-gradient(155deg, #151821 0%, #2a2218 55%, #4a3818 100%);
  --up: #168a52;
  --nav-h: 72px;
  --radius: 22px;
  --font: "Avenir Next", "SF Pro Display", "Segoe UI", sans-serif;
  --shadow: 0 16px 40px rgba(18, 20, 26, 0.09);
}

html.m2-root,
html.m2-root body {
  background: #f7f4ee !important;
  color: #12141a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 90% 50% at 50% -10%, #f0e2b8 0%, transparent 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

.m2-shell {
  max-width: 100%;
  margin: 0;
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
}

.m2-topbar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  flex-shrink: 0;
}
.m2-back,
.m2-topbar-spacer {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  font-size: 1.1rem;
}
.m2-brand {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.m2-brand strong { display: block; font-size: 0.95rem; letter-spacing: -0.02em; }
.m2-brand span { font-size: 0.68rem; color: var(--muted); }
.m2-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #f0d78a, var(--gold) 55%, var(--gold-deep));
  box-shadow: 0 0 0 3px rgba(196, 154, 60, 0.2);
}
.m2-mark.xl {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 0.75rem;
}
.m2-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: none;
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.m2-main {
  flex: 1;
  overflow: hidden;
  position: relative;
  padding: 0 1rem;
}
.m2-screen {
  display: none;
  flex-direction: column;
  gap: 0.85rem;
  height: 100%;
  overflow-y: auto;
  padding-bottom: 1rem;
  animation: m2-rise 0.35s ease both;
}
.m2-screen.active { display: flex; }

.m2-hero-card {
  background: var(--hero);
  color: #f7f2e8;
  border-radius: 26px;
  padding: 1.35rem 1.25rem 1rem;
  box-shadow: 0 20px 50px rgba(21, 24, 33, 0.35);
}
.m2-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.m2-hero-card .m2-label { color: rgba(247, 242, 232, 0.55); }
.m2-balance {
  font-size: 2.65rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.m2-grams {
  font-size: 0.88rem;
  color: rgba(247, 242, 232, 0.72);
  margin-top: 0.35rem;
}
.m2-hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.75rem;
}
.m2-hero-meta span { display: block; color: rgba(247, 242, 232, 0.5); margin-bottom: 0.15rem; }
.m2-hero-meta strong { color: #fff; }
.up { color: var(--up) !important; }
.m2-hero-card .up { color: #6dffb0 !important; }

.m2-chart {
  width: 100%;
  height: 56px;
  margin-top: 0.85rem;
  display: block;
}
.m2-chart-line {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: m2-draw 1.8s ease forwards 0.2s;
}

.m2-quick-buy {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow);
}
.m2-section-title {
  font-size: 0.88rem;
  font-weight: 650;
  margin-bottom: 0.65rem;
}
.m2-amount-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
.m2-chip {
  border: 1px solid var(--line);
  background: #faf9f7;
  border-radius: 12px;
  padding: 0.65rem 0;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.m2-chip.active,
.m2-chip:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--gold-deep);
}

.m2-btn-primary {
  width: 100%;
  border: none;
  border-radius: 16px;
  padding: 0.95rem 1rem;
  background: linear-gradient(135deg, var(--gold-deep), var(--gold));
  color: #fff8ea;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.m2-btn-primary:active { transform: scale(0.98); }
.m2-btn-sticky { margin-top: auto; }

.m2-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow);
}
.m2-savings-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}
.m2-savings-head strong { font-size: 0.95rem; }
.m2-muted { font-size: 0.78rem; color: var(--muted); }

.m2-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 26px;
  flex-shrink: 0;
}
.m2-toggle input { opacity: 0; width: 0; height: 0; }
.m2-toggle span {
  position: absolute;
  inset: 0;
  background: #d5dbe6;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.2s;
}
.m2-toggle span::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 999px;
  transition: 0.2s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.m2-toggle input:checked + span { background: var(--gold); }
.m2-toggle input:checked + span::before { transform: translateX(18px); }

.m2-progress {
  height: 6px;
  background: #eef1f5;
  border-radius: 999px;
  margin: 0.65rem 0 0.35rem;
  overflow: hidden;
}
.m2-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  border-radius: 999px;
}

.m2-actions-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  padding: 0.15rem 0;
}
.m2-action {
  border: none;
  background: transparent;
  border-radius: 0;
  padding: 0.25rem 0.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  box-shadow: none;
}
.m2-action-ico {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(18, 20, 26, 0.08);
  font-size: 1.15rem;
}

.m2-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.m2-link {
  border: none;
  background: none;
  font: inherit;
  font-size: 0.78rem;
  color: var(--gold-deep);
  font-weight: 600;
  cursor: pointer;
}

.m2-activity { list-style: none; }
.m2-activity li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #f0f2f5;
  font-size: 0.84rem;
}
.m2-activity li:last-child { border-bottom: none; }
.m2-activity li div { flex: 1; }
.m2-activity li strong { display: block; font-size: 0.86rem; }
.m2-activity li span { color: var(--muted); font-size: 0.75rem; }
.m2-activity li em {
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 600;
}
.m2-act-ico {
  width: 2rem;
  height: 2rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.m2-act-ico.buy { background: #e8f7ef; color: var(--up); }
.m2-act-ico.sell { background: #fdecec; color: #c44; }
.m2-act-ico.deliver { background: #f0f4ff; color: #4466cc; }
.m2-act-ico.down, em.down { color: #c44 !important; }

.m2-gate {
  flex: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  min-height: 50vh;
  padding: 2rem 1.25rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}
.m2-gate-brand { text-align: center; }
.m2-gate-brand h1 { font-size: 2rem; letter-spacing: -0.03em; margin: 0.6rem 0 0.3rem; }
.m2-gate-brand p { color: var(--muted); font-size: 0.9rem; }
.m2-gate-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.35rem;
  box-shadow: var(--shadow);
}
.m2-kicker {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-deep);
  margin-bottom: 0.35rem;
}
.m2-gate-card h2 { font-size: 1.4rem; margin-bottom: 0.75rem; }
.m2-gate-card label { display: block; margin: 0.65rem 0; font-size: 0.82rem; color: var(--muted); }
.m2-gate-card input, .m2-gate-card select, .m2-select, .m2-field input, .m2-field textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #faf9f7;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
}
.m2-gate-note { margin-top: 0.75rem; font-size: 0.72rem; color: var(--muted); text-align: center; }
.m2-gate-link { text-align: center; font-size: 0.85rem; color: var(--gold-deep); text-decoration: none; }
.m2-gate-progress { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 1rem 0; }
.m2-gate-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-deep)); transition: width 0.25s ease; }
.m2-gate-ready { text-align: center; margin-bottom: 1rem; }
.m2-gate-ready-icon { display: inline-flex; width: 3rem; height: 3rem; align-items: center; justify-content: center; border-radius: 999px; background: rgba(26,127,78,0.12); color: var(--green); font-size: 1.4rem; margin-bottom: 0.5rem; }
.m2-empty-card { text-align: center; padding: 2rem 1.25rem; background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); margin-bottom: 1rem; }
.m2-empty-card h2 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.m2-empty-card p { color: var(--muted); font-size: 0.9rem; margin-bottom: 1rem; }
.m2-portfolio-top { display: flex; justify-content: space-between; align-items: center; }
.m2-eye { border: none; background: transparent; cursor: pointer; padding: 0.25rem; color: var(--muted); }
.m2-mark.lg { width: 3.2rem; height: 3.2rem; }

.m2-chart-tabs {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.75rem;
}
.m2-chart-tab {
  border: none;
  background: rgba(255,255,255,0.08);
  color: rgba(247,242,232,0.55);
  border-radius: 8px;
  padding: 0.25rem 0.55rem;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
}
.m2-chart-tab.active { background: rgba(232,197,106,0.25); color: #e8c56a; }

.m2-savings-card { cursor: pointer; }
.m2-savings-card:hover { border-color: var(--gold); }

.m2-field { display: block; margin-bottom: 0.85rem; }
.m2-input-wrap.sm { font-size: 1.25rem; padding: 0.65rem 0.85rem; }

.m2-seg-tabs { display: flex; gap: 0.35rem; margin-bottom: 0.5rem; }
.m2-seg {
  flex: 1;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  padding: 0.55rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.m2-seg.active { border-color: var(--gold); background: var(--gold-soft); color: var(--gold-deep); }

.m2-sell-balance {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.m2-sell-balance strong { font-size: 1.25rem; }

.m2-insight strong { display: block; font-size: 1.05rem; margin: 0.25rem 0; }

.m2-product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}
.m2-product {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 14px;
  padding: 0.85rem;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.m2-product strong { display: block; font-size: 0.82rem; margin-bottom: 0.2rem; }
.m2-product span { font-size: 0.72rem; color: var(--muted); }
.m2-product.selected { border-color: var(--gold); background: var(--gold-soft); }

.m2-filter-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  overflow-x: auto;
}
.m2-filter {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}
.m2-filter.active { border-color: var(--gold); background: var(--gold-soft); color: var(--gold-deep); }

.m2-profile-hero { text-align: center; padding: 1rem 0 1.25rem; }
.m2-avatar.lg {
  width: 4rem;
  height: 4rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}
.m2-profile-hero h1 { font-size: 1.5rem; letter-spacing: -0.02em; }

.m2-settings-list { list-style: none; }
.m2-settings-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.55rem 0;
  border-bottom: 1px solid #f0f2f5;
  font-size: 0.84rem;
}
.m2-settings-list li:last-child { border-bottom: none; }
.m2-settings-list span { color: var(--muted); }
.m2-badge-ok { color: var(--up); font-size: 0.8rem; }
.m2-badge-warn { color: var(--warn, #c9a227); font-size: 0.8rem; }

.m2-orders { list-style: none; }
.m2-orders li {
  padding: 0.55rem 0;
  border-bottom: 1px solid #f0f2f5;
  font-size: 0.84rem;
}
.m2-orders li span { display: block; color: var(--muted); font-size: 0.75rem; }
.m2-empty { color: var(--muted); text-align: center; padding: 2rem !important; justify-content: center; }

.m2-btn-ghost {
  display: block;
  text-align: center;
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 14px;
  padding: 0.85rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.5rem;
}
.m2-btn-ghost.full { width: 100%; }

.m2-modal {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 360px;
  width: calc(100% - 2rem);
}
.m2-modal::backdrop { background: rgba(0,0,0,0.45); }
.m2-modal-inner {
  background: var(--surface);
  border-radius: 20px;
  padding: 1.25rem;
}


.m2-trust {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  background: var(--gold-soft);
  border-radius: 16px;
  font-size: 0.75rem;
  color: var(--gold-deep);
  border: 1px dashed rgba(196, 154, 60, 0.35);
}

.m2-page-title {
  font-size: 1.65rem;
  letter-spacing: -0.03em;
  margin-top: 0.25rem;
}
.m2-page-lead {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.m2-buy-amount { margin-bottom: 1rem; }
.m2-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 18px;
  padding: 0.85rem 1rem;
  margin: 0.35rem 0;
  font-size: 1.75rem;
  font-weight: 700;
}
.m2-input-wrap:focus-within { border-color: var(--gold); }
.m2-input-wrap input {
  border: none;
  background: transparent;
  font: inherit;
  font-size: inherit;
  font-weight: inherit;
  width: 100%;
  outline: none;
}

.m2-pay-method {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  margin-bottom: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.m2-pay-method span:first-child { font-size: 1.25rem; }
.m2-pay-method div { flex: 1; }
.m2-pay-method strong { display: block; font-size: 0.88rem; }
.m2-pay-method div span { font-size: 0.75rem; color: var(--muted); }
.m2-pay-method em { color: var(--gold); font-style: normal; opacity: 0; }
.m2-pay-method.selected {
  border-color: var(--gold);
  background: var(--gold-soft);
}
.m2-pay-method.selected em { opacity: 1; }

.m2-demo-note {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.45;
  margin: 0.65rem 0 0.85rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: rgba(196, 154, 60, 0.08);
  border: 1px solid rgba(196, 154, 60, 0.2);
}
.m2-demo-note--sheet {
  margin: 0 0 0.75rem;
  text-align: center;
}
.model-sheet-processing {
  text-align: center;
  margin: 0.5rem 0 1rem;
  font-size: 0.9rem;
}
.model-sheet-spinner {
  width: 2rem;
  height: 2rem;
  margin: 0 auto 1rem;
  border: 3px solid rgba(196, 154, 60, 0.2);
  border-top-color: var(--gold);
  border-radius: 999px;
  animation: m2-spin 0.8s linear infinite;
}
@keyframes m2-spin {
  to { transform: rotate(360deg); }
}

.m2-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: min(430px, 100%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 0.5rem 0.35rem calc(0.5rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(14px);
  z-index: 50;
}
.m2-nav-item {
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  font: inherit;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  padding: 0.35rem;
}
.m2-nav-item.active { color: var(--gold-deep); }
.m2-nav-ico { font-size: 1.05rem; }

.m2-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + 1rem + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(20px);
  background: #151821;
  color: #f7f2e8;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
  z-index: 60;
  opacity: 0;
  transition: all 0.3s ease;
}
.m2-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.m2-progress-fill {
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  transition: width 0.4s var(--gn-ease, ease);
}
.m2-progress-fill.at-goal { box-shadow: 0 0 8px rgba(196, 154, 60, 0.5); }
.m2-field-float input:focus, .m2-field-float select:focus, .m2-select:focus, .m2-field input:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.m2-btn-primary:active, .m2-btn-ghost:active, .m2-action:active, .m2-chip:active {
  transform: scale(0.98);
}
.m2-main { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.m2-topbar { border-bottom: 1px solid var(--line); background: rgba(247, 244, 238, 0.92); backdrop-filter: blur(12px); }
.model-back-btn { display: grid; place-items: center; text-decoration: none; }

@keyframes m2-rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes m2-draw {
  to { stroke-dashoffset: 0; }
}

/* UX v2 patches */
.m2-shell { padding-bottom: calc(var(--gn-nav-h, 72px) + env(safe-area-inset-bottom)); }
.m2-progress-fill {
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  transition: width 0.4s var(--gn-ease, ease);
}
.m2-progress-fill.at-goal { background: linear-gradient(90deg, var(--gn-up), #2ecc71); }
.m2-field-float input, .m2-field-float select { margin-top: 0.35rem; }
.m2-btn-primary:active, .m2-btn-ghost:active, .m2-action:active, .model-nav-btn:active { transform: scale(0.98); }
.m3-shell { padding-bottom: calc(var(--gn-nav-h, 72px) + env(safe-area-inset-bottom)); }

.m2-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.m2-badge-live {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: rgba(22, 138, 82, 0.12);
  color: var(--up);
  border: 1px solid rgba(22, 138, 82, 0.25);
}
.m2-portfolio-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 0 1rem 1rem;
}
.m2-portfolio-row > div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.65rem 0.5rem;
  text-align: center;
}
.m2-portfolio-row span {
  display: block;
  font-size: 0.65rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.m2-portfolio-row strong {
  font-size: 0.82rem;
  font-weight: 700;
}

/* OneGold-style white portfolio */
.m2-spot-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.m2-spot-label { font-size: 0.65rem; text-transform: uppercase; color: var(--muted); margin-right: 0.35rem; }
.m2-spot-strip strong { font-size: 0.95rem; }
.m2-spot-strip em { font-size: 0.75rem; margin-left: 0.35rem; font-style: normal; }
.m2-spot-live { font-size: 0.65rem; font-weight: 600; color: var(--up); text-transform: uppercase; }
.m2-portfolio-card {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.25rem 1.15rem 1rem;
  box-shadow: var(--shadow);
}
.m2-portfolio-card .m2-balance { color: var(--ink); font-size: 2.1rem; }
.m2-metal-row { margin: 0.75rem 0 1rem; }
.m2-metal {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--line);
}
.m2-metal-dot { width: 10px; height: 10px; border-radius: 999px; flex-shrink: 0; }
.m2-metal-dot.gold { background: linear-gradient(135deg, #f0d78a, var(--gold-deep)); }
.m2-metal strong { display: block; font-size: 0.88rem; }
.m2-metal span { font-size: 0.72rem; color: var(--muted); }
.m2-metal em { margin-left: auto; font-size: 0.8rem; font-style: normal; }
.m2-chart--light { background: linear-gradient(180deg, rgba(196,154,60,0.08), transparent); border-radius: 12px; }
.m2-trade-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 0.85rem; }

@media (max-width: 480px) {
  #m2-app, .m2-main { max-width: 100%; overflow-x: hidden; }
  .model-glass-nav { padding: 0.35rem 0.5rem; gap: 0.15rem; }
  .model-glass-nav .model-nav-btn { font-size: 0.62rem; padding: 0.45rem 0.35rem; }
  .m2-home-payments, #m2-home-payments { flex-wrap: wrap; }
  .model-sheet-inner { max-height: 92vh; }
}
.m2-trade-btn { border: none; border-radius: 12px; padding: 0.75rem; font: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer; }
.m2-trade-btn--buy { background: linear-gradient(135deg, #e8c56a, var(--gold-deep)); color: #fff; }
.m2-trade-btn--sell { background: var(--gold-soft); color: var(--gold-deep); border: 1px solid var(--line); }
html.m2-root, html.m2-root body { background: #f4f4f2 !important; }
