/* StampTap — merchant dashboard (fidelitycards.eu inspired) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --surface2: #f0f0ec;
  --border: #e4e4de;
  --text: #111111;
  --muted: #6b6b66;
  --accent: #111111;
  --accent-soft: #f0ede4;
  --gold: #c9a227;
  --danger: #c0392b;
  --success: #1a7f4b;
  --r: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,.06);
}

body {
  background: var(--bg) !important;
  color: var(--text) !important;
  font-family: 'Inter', system-ui, sans-serif !important;
}

h1, h2, h3, h4, .nav-logo, .auth-brand, .section-title, .btn {
  font-family: 'Inter', system-ui, sans-serif !important;
}

/* Auth split layout */
.auth-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.auth-hero {
  background: #111;
  color: #fff;
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.auth-hero p { color: #aaa; font-size: 1.05rem; max-width: 420px; line-height: 1.6; }
.auth-hero .pill {
  display: inline-flex; gap: 8px; margin-top: 32px;
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: #ccc;
}
.auth-panel {
  display: flex; align-items: center; justify-content: center; padding: 48px 32px;
  background: var(--bg);
}
.auth-card {
  width: 100%; max-width: 400px;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
.auth-brand {
  font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 32px; color: var(--text);
}
.auth-tabs {
  background: var(--surface2) !important;
  border-radius: 12px !important;
}
.auth-tab.active { background: var(--accent) !important; color: #fff !important; }
.auth-tab { color: var(--muted) !important; }

input, select, textarea {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  border-radius: 12px !important;
}
input:focus, select:focus, textarea:focus { border-color: #111 !important; box-shadow: 0 0 0 3px rgba(0,0,0,.06) !important; }

.btn-primary {
  background: var(--accent) !important;
  color: #fff !important;
  border-radius: 12px !important;
}
.btn-primary:hover { background: #333 !important; transform: translateY(-1px); }
.btn-ghost {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
}

nav {
  background: var(--surface) !important;
  border-bottom: 1px solid var(--border) !important;
  box-shadow: var(--shadow);
}
.nav-logo { color: var(--text) !important; }
.nav-link.active { color: var(--text) !important; background: var(--surface2) !important; }
.biz-badge { background: var(--surface2) !important; color: var(--muted) !important; }

.stat-card, .loyalty-card, .nfc-token-card {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow);
}
.stat-card:nth-child(1) .stat-value { color: var(--text) !important; }

/* Card design editor */
.modal-design { max-width: 920px !important; width: calc(100vw - 32px); }
.design-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
}
@media (max-width: 768px) { .design-grid { grid-template-columns: 1fr; } .auth-split { grid-template-columns: 1fr; } .auth-hero { display: none; } }

.design-section {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.design-section h4 {
  font-size: 11px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted); margin-bottom: 12px; font-weight: 600;
}

.icon-picker { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.icon-opt {
  aspect-ratio: 1; border: 2px solid var(--border); border-radius: 12px;
  background: var(--surface); cursor: pointer; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .15s, transform .15s;
}
.icon-opt:hover { transform: scale(1.04); }
.icon-opt.selected { border-color: #111; background: var(--accent-soft); }

.upload-box {
  border: 2px dashed var(--border); border-radius: 12px; padding: 16px;
  text-align: center; cursor: pointer; transition: border-color .15s;
  position: relative; overflow: hidden; min-height: 80px;
  display: flex; align-items: center; justify-content: center;
}
.upload-box:hover { border-color: #999; }
.upload-box img { max-height: 64px; max-width: 100%; object-fit: contain; }
.upload-box input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.color-row { display: flex; gap: 10px; align-items: center; }
.color-row input[type=color] {
  width: 48px; height: 40px; padding: 4px; cursor: pointer;
}

/* Wallet preview mockup */
.wallet-preview {
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.15);
  font-size: 11px;
}
.wp-header { padding: 14px 16px 8px; font-weight: 800; font-size: 13px; }
.wp-strip {
  min-height: 90px; padding: 12px;
  display: flex; flex-wrap: wrap; gap: 6px; align-content: center; justify-content: center;
}
.wp-stamp {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.wp-stamp.filled { background: rgba(0,0,0,.85); color: #fff; }
.wp-stamp.empty { background: rgba(255,255,255,.25); color: rgba(255,255,255,.5); }
.wp-footer {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 12px 16px 16px; background: rgba(0,0,0,.04);
}
.wp-field label { display: block; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.wp-field span { font-weight: 700; font-size: 13px; }
.wp-barcode {
  height: 48px; margin: 0 16px 16px; background: #fff; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; color: #999;
}

.loc-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 20px; margin-bottom: 12px;
}
.loc-card h4 { font-size: 15px; margin-bottom: 4px; }
.loc-meta { font-size: 13px; color: var(--muted); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
