/* DWP Worldwide — design tokens & app layer
   Stack match: Next.js App Router + Tailwind + next-themes dark + RainbowKit gold accent
*/

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter.woff2") format("woff2");
}

:root {
  --font-inter: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html {
  font-family: var(--font-inter), ui-sans-serif, system-ui;
}

/* Force dark theme tokens for public site (matches live site default) */
html.dark,
html {
  color-scheme: dark;
  --canvas: 10 10 10;
  --surface: 20 17 15;
  --elevated: 28 24 21;
  --border: 42 37 32;
  --foreground: #FFFFFF;
  --muted: #A1A1AA;
}

/* Dashboard is light (from authenticated screenshot) */
html.dashboard-light {
  color-scheme: light;
  --canvas: 255 255 255;
  --surface: 245 244 242;
  --elevated: 236 234 230;
  --border: 216 212 204;
  --foreground: #0A0A0A;
  --muted: #6B7280;
}

html.dashboard-light body {
  background: #ffffff;
  color: #0a0a0a;
}

/* Mobile nav panel */
.mobile-nav {
  display: none;
  border-top: 1px solid rgb(var(--border) / 0.6);
  background: rgb(var(--canvas) / 0.98);
  padding: 0.75rem 1rem 1rem;
}
.mobile-nav.open {
  display: block;
}
.mobile-nav a {
  display: block;
  padding: 0.65rem 0.25rem;
  font-size: 0.875rem;
  color: #d4d4d8;
  transition: color 0.15s;
}
.mobile-nav a:hover {
  color: #d4a24c;
}

/* Get Started dropdown */
.gs-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  z-index: 50;
  min-width: 18rem;
  border-radius: 0.75rem;
  border: 1px solid rgb(var(--border));
  background: rgb(var(--surface));
  padding: 0.5rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.gs-menu.open {
  display: block;
}
.gs-menu a {
  display: block;
  border-radius: 0.5rem;
  padding: 0.75rem 0.85rem;
  text-align: left;
  transition: background 0.15s, border-color 0.15s;
}
.gs-menu a:hover {
  background: rgb(212 162 76 / 0.1);
}
.gs-menu .gs-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
}
.gs-menu .gs-desc {
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: #a1a1aa;
  line-height: 1.4;
}

/* Dashboard-specific */
.dash-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
}
.dash-nav a {
  font-size: 0.875rem;
  color: #52525b;
  transition: color 0.15s;
}
.dash-nav a:hover,
.dash-nav a.active {
  color: #0a0a0a;
}
.dash-nav a.active {
  font-weight: 600;
}
.btn-signout {
  display: inline-flex;
  align-items: center;
  border-radius: 0.375rem;
  border: 1px solid #e4e4e7;
  background: #fff;
  padding: 0.4rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #3f3f46;
  transition: border-color 0.15s, color 0.15s;
}
.btn-signout:hover {
  border-color: #d4a24c;
  color: #0a0a0a;
}
.btn-deposit,
button.button.btn-deposit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0.375rem;
  background: #d4a24c;
  padding: 0.55rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-deposit:hover,
button.button.btn-deposit:hover {
  background: #e0b669;
}
.btn-deposit:active,
button.button.btn-deposit:active {
  background: #b8862f;
}
.btn-deposit[aria-pressed="true"] {
  background: #26a17b;
}
.btn-deposit[aria-pressed="true"]:hover {
  background: #1f8a68;
}
.asset-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border-radius: 0.75rem;
  background: #f4f4f5;
  padding: 1.35rem 0.75rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.asset-card:hover {
  border-color: rgba(212, 162, 76, 0.5);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}
.asset-card .icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
}
.asset-card .name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #18181b;
}
.asset-card .ticker {
  font-size: 0.75rem;
  color: #a1a1aa;
  margin-top: -0.35rem;
}
.deposit-banner {
  border: 1.5px dashed #e4e4e7;
  border-radius: 1rem;
  background: #fafaf9;
  padding: 2.5rem 1.5rem;
  text-align: center;
}
.linked-wallet {
  border-radius: 1rem;
  background: #fafaf9;
  border: 1px solid #f0f0f0;
  padding: 1.25rem 1.5rem;
}
.icon-circle-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: 1px solid #e4e4e7;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #71717a;
  transition: border-color 0.15s, color 0.15s;
}
.icon-circle-btn:hover {
  border-color: #d4a24c;
  color: #d4a24c;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  padding: 1rem;
}
.modal-backdrop.open {
  display: flex;
}
.modal-panel {
  width: 100%;
  max-width: 26rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid #e4e4e7;
  padding: 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}
.modal-panel h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0a0a0a;
}
.modal-panel p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #71717a;
  line-height: 1.5;
}
.address-box {
  margin-top: 1rem;
  border-radius: 0.5rem;
  background: #f4f4f5;
  border: 1px solid #e4e4e7;
  padding: 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  word-break: break-all;
  color: #3f3f46;
}

/* Login form helpers */
.login-error {
  display: none;
  margin-top: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgb(248 113 113 / 0.4);
  background: rgb(239 68 68 / 0.1);
  padding: 0.65rem 0.85rem;
  font-size: 0.8rem;
  color: #fca5a5;
}
.login-error.show {
  display: block;
}

/* Ensure selection matches brand */
::selection {
  background-color: rgba(212, 162, 76, 0.3);
}
