/* NUT Financial Hub — shared component styles */

:root {
  --nut-primary: oklch(0.40 0.10 155);
  --nut-primary-deep: oklch(0.32 0.09 155);
  --nut-primary-soft: oklch(0.94 0.045 155);
  --nut-primary-ink: oklch(0.22 0.06 155);
  --nut-accent: oklch(0.78 0.13 85);
  --nut-accent-soft: oklch(0.95 0.06 85);
  --nut-success: oklch(0.62 0.14 150);
  --nut-danger: oklch(0.58 0.18 28);
  --nut-warn: oklch(0.72 0.15 65);
  --nut-surface: oklch(0.985 0.005 95);
  --nut-surface-muted: oklch(0.965 0.008 95);
  --nut-line: oklch(0.92 0.008 95);
  --nut-ink: oklch(0.20 0.015 155);
  --nut-ink-muted: oklch(0.45 0.012 155);
  --nut-ink-faint: oklch(0.62 0.01 155);
  --nut-on-primary: #ffffff;
  --nut-font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --nut-font-body: "DM Sans", system-ui, sans-serif;
  --nut-font-mono: "JetBrains Mono", ui-monospace, monospace;
}

.nut-app {
  font-family: var(--nut-font-body);
  color: var(--nut-ink);
  background: var(--nut-surface);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  font-variant-numeric: tabular-nums;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.nut-app * { box-sizing: border-box; }
.nut-app h1, .nut-app h2, .nut-app h3, .nut-app h4 {
  font-family: var(--nut-font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}
.nut-app p { margin: 0; }
.nut-app button { font-family: inherit; }

/* Reusable */
.nut-card {
  background: var(--nut-surface);
  border-radius: 16px;
  border: 1px solid var(--nut-line);
}
.nut-card-elevated {
  background: var(--nut-surface);
  border-radius: 18px;
  box-shadow:
    0 1px 0 oklch(0 0 0 / 0.04),
    0 6px 18px oklch(0 0 0 / 0.04),
    0 24px 48px oklch(0 0 0 / 0.04);
}
.nut-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  background: var(--nut-primary-soft); color: var(--nut-primary-ink);
}
.nut-pill.gold { background: var(--nut-accent-soft); color: oklch(0.45 0.13 75); }
.nut-pill.danger { background: oklch(0.96 0.03 28); color: var(--nut-danger); }
.nut-pill.success { background: oklch(0.94 0.05 150); color: oklch(0.40 0.13 150); }
.nut-pill.muted { background: var(--nut-surface-muted); color: var(--nut-ink-muted); }

.nut-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 18px; border-radius: 14px;
  background: var(--nut-primary); color: var(--nut-on-primary);
  font-family: var(--nut-font-display); font-weight: 700; font-size: 15px;
  border: none; cursor: pointer; width: 100%;
  letter-spacing: -0.01em;
  transition: transform .12s ease, background .12s ease;
}
.nut-cta:active { transform: scale(0.99); }
.nut-cta.secondary {
  background: var(--nut-surface);
  color: var(--nut-primary);
  border: 1.5px solid var(--nut-primary-soft);
}
.nut-cta.gold { background: var(--nut-accent); color: oklch(0.25 0.05 80); }
.nut-cta.ghost { background: transparent; color: var(--nut-primary); }

.nut-input {
  width: 100%; border: 1.5px solid var(--nut-line);
  background: var(--nut-surface); border-radius: 12px;
  padding: 14px 14px; font-size: 15px;
  font-family: inherit; color: var(--nut-ink);
  transition: border-color .15s ease;
}
.nut-input:focus { outline: none; border-color: var(--nut-primary); }
.nut-label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--nut-ink-muted); text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 6px;
}

.nut-divider { height: 1px; background: var(--nut-line); border: none; margin: 0; }

.nut-amount {
  font-family: var(--nut-font-display);
  font-feature-settings: "tnum", "ss01";
  letter-spacing: -0.025em;
  font-weight: 700;
}
.nut-naira { font-family: var(--nut-font-display); font-weight: 600; opacity: 0.75; }

/* Bottom nav */
.nut-tabbar {
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--nut-surface);
  border-top: 1px solid var(--nut-line);
  padding: 6px 0 4px;
}
.nut-tab {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 4px; cursor: pointer; border: none; background: none;
  color: var(--nut-ink-faint); font-size: 11px; font-weight: 600;
  font-family: var(--nut-font-body);
}
.nut-tab.active { color: var(--nut-primary); }
.nut-tab .dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0; }
.nut-tab.active .dot { opacity: 1; }

/* Striped placeholder */
.nut-placeholder {
  background:
    repeating-linear-gradient(
      45deg,
      var(--nut-surface-muted) 0 8px,
      var(--nut-surface) 8px 16px
    );
  border: 1px dashed var(--nut-line);
  display: flex; align-items: center; justify-content: center;
  color: var(--nut-ink-faint);
  font-family: var(--nut-font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.08em;
  border-radius: 12px;
}

/* Small icons (drawn inline with SVG, sized via container) */
.nut-icon { width: 20px; height: 20px; flex-shrink: 0; }

/* Scrollbar hidden inside frames */
.nut-app *::-webkit-scrollbar { width: 0; height: 0; }
.nut-app * { scrollbar-width: none; }

/* Logo placeholder */
.nut-logo {
  width: 36px; height: 36px; border-radius: 10px;
  background:
    linear-gradient(135deg, var(--nut-primary), var(--nut-primary-deep));
  color: var(--nut-on-primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--nut-font-display); font-weight: 800;
  font-size: 14px; letter-spacing: -0.04em;
  box-shadow: inset 0 -2px 0 oklch(0 0 0 / 0.15);
}
.nut-logo .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--nut-accent); margin-left: 1px; align-self: end;
  margin-bottom: 6px;
}
