/* Rexyy Review — shared brand styles (aligned with rexyydevelopment.com) */

:root {
  --brand-orange: #F15A24;
  --brand-orange-light: #FF7A3D;
  --brand-orange-dark: #B3461B;
  --bg: #050505;
  --bg-alt: #0c0c0c;
  --bg-card: #111111;
  --bg-elevated: #181818;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(241, 90, 36, 0.35);
  --text: #f4f4f6;
  --text-muted: #9898a8;
  --text-subtle: #6b6b7b;
  --accent: var(--brand-orange);
  --accent-soft: rgba(241, 90, 36, 0.12);
  --accent-glow: rgba(241, 90, 36, 0.28);
  --accent-gradient: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-orange-dark) 100%);
  --success: #34d399;
  --error: #f87171;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --header-h: 72px;
  --container: min(1140px, calc(100% - 2rem));
  --font: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Instrument Sans', 'DM Sans', sans-serif;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

.container { width: var(--container); margin-inline: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.875rem 1.5rem; border-radius: var(--radius);
  font-weight: 600; font-size: 0.9375rem; line-height: 1.2;
  transition: var(--transition); white-space: nowrap;
  min-height: 48px; border: 1px solid transparent;
}
.btn-sm { padding: 0.625rem 1.125rem; font-size: 0.875rem; min-height: 40px; }
.btn-full { width: 100%; }

.btn-primary {
  background: var(--accent-gradient); color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--brand-orange-light) 0%, var(--brand-orange) 100%);
  transform: translateY(-1px);
}

.btn-outline {
  border-color: var(--border-hover); color: var(--text); background: transparent;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.btn-ghost { color: var(--text-muted); background: transparent; }
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,0.05); }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  background: rgba(5, 5, 5, 0.88);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 1rem;
}

.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand-logo { width: 40px; height: 40px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--font-display); font-size: 0.9375rem; font-weight: 700; }
.brand-text small { font-size: 0.6875rem; color: var(--text-muted); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }

/* Sections */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem;
}
.section-header { max-width: 640px; margin-bottom: 3rem; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700; line-height: 1.15; letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.section-subtitle { color: var(--text-muted); font-size: 1.0625rem; max-width: 52ch; }

/* Hero */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: var(--header-h);
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(241, 90, 36, 0.15), transparent),
    var(--bg);
}
.hero-content { max-width: 680px; }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700; line-height: 1.1; letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}
.hero-subtitle { color: var(--text-muted); font-size: 1.125rem; margin-bottom: 2rem; max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Steps */
.steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.step-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem;
  transition: var(--transition);
}
.step-card:hover { border-color: var(--border-hover); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 700; font-size: 0.875rem; margin-bottom: 1rem;
}
.step-card h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.step-card p { color: var(--text-muted); font-size: 0.9375rem; }

/* Benefits */
.benefits-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
}
.benefit-item {
  display: flex; gap: 0.875rem; align-items: flex-start;
  padding: 1.25rem; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.benefit-item i { color: var(--accent); font-size: 1.125rem; margin-top: 0.15rem; }
.benefit-item span { font-size: 0.9375rem; }

/* Pricing */
.pricing-card {
  max-width: 400px; margin: 0 auto; text-align: center;
  background: var(--bg-card); border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg); padding: 2.5rem 2rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.pricing-amount {
  font-family: var(--font-display); font-size: 3rem; font-weight: 700;
  color: var(--accent); line-height: 1; margin: 1rem 0 0.5rem;
}
.pricing-note { color: var(--text-muted); font-size: 0.9375rem; margin-bottom: 1.5rem; }

/* Bonus */
.bonus-box {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  max-width: 720px;
}
.bonus-box h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.bonus-box p { color: var(--text-muted); }

/* Footer */
.site-footer {
  padding: 2.5rem 0; border-top: 1px solid var(--border);
  background: var(--bg-alt);
}
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 1rem;
}
.footer-inner p { color: var(--text-subtle); font-size: 0.875rem; }

/* NFC demo visual */
.nfc-demo {
  display: flex; align-items: center; justify-content: center; gap: 2rem;
  padding: 3rem; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  margin-top: 2rem;
}
.nfc-chip {
  width: 80px; height: 80px; border-radius: 16px;
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  border: 2px solid var(--border-hover);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; color: var(--accent);
}
.nfc-arrow { font-size: 1.5rem; color: var(--text-subtle); }
.nfc-phone {
  width: 64px; height: 100px; border-radius: 12px;
  border: 2px solid var(--border);
  background: var(--bg-elevated);
  display: flex; align-items: center; justify-content: center;
  color: #4285f4; font-size: 1.5rem;
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .section { padding: 3.5rem 0; }
  .steps-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .nfc-demo { flex-direction: column; gap: 1rem; }
  .nfc-arrow { transform: rotate(90deg); }
}

/* ========== Admin panel ========== */
.admin-body { min-height: 100vh; background: var(--bg); }

.admin-login {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(241, 90, 36, 0.12), transparent),
    var(--bg);
}

.admin-login-card {
  width: min(420px, 100%); padding: 2.5rem 2rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.admin-login-card h1 {
  font-family: var(--font-display); font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.admin-login-card > p { color: var(--text-muted); font-size: 0.9375rem; margin-bottom: 1.5rem; }

.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px; flex-shrink: 0;
  background: var(--bg-alt); border-right: 1px solid var(--border);
  padding: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem;
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 100;
}
.admin-sidebar__brand {
  display: flex; align-items: center; gap: 0.625rem;
  padding-bottom: 1.25rem; margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.admin-sidebar__brand img { width: 32px; height: 32px; }
.admin-sidebar__brand span { font-family: var(--font-display); font-weight: 700; font-size: 0.875rem; }

.admin-nav-btn {
  display: flex; align-items: center; gap: 0.625rem;
  padding: 0.75rem 1rem; border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 500; color: var(--text-muted);
  transition: var(--transition); text-align: left; width: 100%;
}
.admin-nav-btn:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.admin-nav-btn.is-active { background: var(--accent-soft); color: var(--accent); }

.admin-sidebar__footer { margin-top: auto; padding-top: 1rem; }

.admin-main {
  flex: 1; margin-left: 240px;
  padding: 1.5rem 2rem 3rem;
  min-width: 0;
}

.admin-topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem; gap: 1rem; flex-wrap: wrap;
}
.admin-topbar h1 {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
}

.admin-stats {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem; margin-bottom: 2rem;
}
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
}
.stat-card__label {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-subtle); margin-bottom: 0.375rem;
}
.stat-card__value {
  font-family: var(--font-display); font-size: 1.75rem; font-weight: 700;
}

.admin-panel {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.admin-panel__header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap;
}
.admin-panel__header h2 { font-size: 1.125rem; font-weight: 700; }

.admin-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-sm);
}
.admin-table-wrap--scroll-hint {
  position: relative;
}
.admin-table {
  width: 100%; border-collapse: collapse; font-size: 0.875rem;
}
.admin-table th, .admin-table td {
  padding: 0.75rem 1rem; text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.admin-table th {
  font-size: 0.6875rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-subtle);
  white-space: nowrap;
}
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }
.admin-table code {
  font-size: 0.8125rem;
  word-break: break-all;
}
.admin-table a {
  color: var(--accent);
  word-break: break-all;
}
.admin-table .admin-actions {
  justify-content: flex-end;
}
.admin-actions {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.activity-list { list-style: none; padding: 0; margin: 0; }
.activity-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.activity-list li:last-child { border-bottom: none; }

.badge {
  display: inline-block; padding: 0.2rem 0.5rem; border-radius: 999px;
  font-size: 0.6875rem; font-weight: 700; text-transform: uppercase;
}
.badge--active { background: rgba(52, 211, 153, 0.15); color: var(--success); }
.badge--inactive { background: rgba(248, 113, 113, 0.15); color: var(--error); }

.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block; font-size: 0.8125rem; font-weight: 600;
  margin-bottom: 0.375rem; color: var(--text-muted);
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.75rem 1rem;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font: inherit;
  transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--accent);
}
.form-group input.is-invalid { border-color: var(--error); }
.form-error { color: var(--error); font-size: 0.8125rem; margin-top: 0.25rem; }
.form-hint { color: var(--text-subtle); font-size: 0.8125rem; margin-top: 0.25rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-check { display: flex; align-items: center; gap: 0.5rem; }
.form-check input { width: auto; }

.admin-modal-backdrop {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.7); display: flex; align-items: center;
  justify-content: center; padding: 1rem;
  overflow-y: auto;
}
.admin-modal {
  width: min(520px, 100%); max-height: min(90vh, 720px); overflow-y: auto;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  margin: auto;
}
.admin-modal h3 { font-size: 1.125rem; margin-bottom: 1.25rem; }
.admin-modal__actions {
  display: flex; gap: 0.75rem; justify-content: flex-end; margin-top: 1.25rem;
}

.url-box {
  display: flex; align-items: flex-start; gap: 0.5rem;
  padding: 0.75rem 1rem; background: var(--bg-elevated);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.8125rem; word-break: break-all;
}
.url-box code { flex: 1; color: var(--accent); min-width: 0; }

.chart-wrap {
  margin-top: 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.25rem;
}
.chart-bars {
  display: flex; align-items: flex-end; gap: 4px;
  height: 160px; padding-top: 0.5rem;
  min-width: min(100%, 360px);
}
.chart-bar-col {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: 0.25rem; min-width: 8px;
}
.chart-bar {
  width: 100%; max-width: 24px; min-height: 2px;
  background: var(--accent-gradient); border-radius: 4px 4px 0 0;
  transition: height 0.3s ease;
}
.chart-bar-label {
  font-size: 0.5625rem; color: var(--text-subtle);
  writing-mode: vertical-rl; transform: rotate(180deg);
  max-height: 32px; overflow: hidden;
  white-space: nowrap;
}

.toast {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  z-index: 3000; padding: 0.875rem 1.5rem; border-radius: var(--radius);
  font-weight: 600; font-size: 0.875rem; box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.toast--success { background: var(--success); color: #052e1a; }
.toast--error { background: var(--error); color: #fff; }

[hidden] { display: none !important; }

.btn-danger {
  background: rgba(248, 113, 113, 0.15); color: var(--error);
  border: 1px solid rgba(248, 113, 113, 0.35);
}
.btn-danger:hover { background: rgba(248, 113, 113, 0.25); }

.admin-filters {
  display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.25rem;
}
.admin-search, .admin-select {
  padding: 0.625rem 0.875rem; background: var(--bg-elevated);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); font: inherit; min-height: 42px;
}
.admin-search { flex: 1; min-width: 180px; }
.admin-select { min-width: 140px; }

.empty-state {
  text-align: center; padding: 3rem 1.5rem; color: var(--text-muted);
}
.empty-state i { font-size: 2.5rem; opacity: 0.35; margin-bottom: 1rem; }
.empty-state h3 { color: var(--text); margin-bottom: 0.5rem; }
.empty-state p { margin-bottom: 1.25rem; max-width: 36ch; margin-inline: auto; }

.skeleton {
  background: linear-gradient(90deg, var(--bg-elevated) 25%, rgba(255,255,255,0.06) 50%, var(--bg-elevated) 75%);
  background-size: 200% 100%; animation: shimmer 1.2s infinite;
  border-radius: var(--radius-sm);
}
.skeleton--title { height: 28px; width: 180px; margin-bottom: 1rem; }
.skeleton--card { height: 88px; }
.skeleton--panel { height: 220px; margin-top: 1rem; }
@keyframes shimmer { to { background-position: -200% 0; } }

.form-hint--warn { color: #fbbf24; }

.nfc-url-hero {
  background: var(--bg-elevated); border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg); padding: 1.5rem; margin: 1rem 0;
  text-align: center;
}
.nfc-url-hero code {
  display: block; font-size: 1rem; color: var(--accent);
  word-break: break-all; margin: 0.75rem 0 1rem;
}
.nfc-url-hero__actions {
  display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center;
}

.period-tabs {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem;
}
.period-tab {
  padding: 0.5rem 1rem; border-radius: 999px; font-size: 0.8125rem;
  font-weight: 600; border: 1px solid var(--border); color: var(--text-muted);
  transition: var(--transition);
}
.period-tab.is-active, .period-tab:hover {
  border-color: var(--accent); color: var(--accent); background: var(--accent-soft);
}

.admin-user-email {
  font-size: 0.75rem; color: var(--text-subtle);
  padding: 0 1rem 0.5rem; word-break: break-all;
}

.admin-mobile-bar {
  display: none; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem; border-bottom: 1px solid var(--border);
  background: var(--bg-alt); position: sticky; top: 0; z-index: 1100;
}
.admin-mobile-bar__title { font-weight: 700; font-family: var(--font-display); }

.admin-burger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px;
}
.admin-burger span {
  display: block; height: 2px; background: var(--text); border-radius: 2px;
}

.admin-sidebar__nav { display: flex; flex-direction: column; gap: 0.25rem; flex: 1; }
.admin-nav-btn--mobile-only { display: none; }

.admin-sidebar-backdrop {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  z-index: 1040;
}
.admin-sidebar-backdrop.is-visible { display: block; }

.loading-text { color: var(--text-muted); text-align: center; }

body.sidebar-open { overflow: hidden; }

.card-list-mobile { display: none; }

/* Responsive stacked tables (mobile) */
@media (max-width: 768px) {
  .admin-table--responsive thead {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .admin-table--responsive tbody tr {
    display: block;
    margin-bottom: 0.75rem;
    padding: 0.25rem 1rem 0.75rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
  }
  .admin-table--responsive tbody tr:hover td { background: transparent; }
  .admin-table--responsive td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--border);
    text-align: right;
  }
  .admin-table--responsive td:last-child { border-bottom: none; }
  .admin-table--responsive td::before {
    content: attr(data-label);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-subtle);
    text-align: left;
    flex-shrink: 0;
    max-width: 42%;
    line-height: 1.35;
  }
  .admin-table--responsive td[data-label=""]::before,
  .admin-table--responsive td:not([data-label])::before { display: none; }
  .admin-table--responsive .admin-actions {
    justify-content: flex-end;
    width: 100%;
  }
  .admin-table-wrap--desktop-only { display: none; }
  .card-list-mobile { display: block; }
}

@media (max-width: 900px) {
  .admin-mobile-bar { display: flex; }
  .admin-shell { flex-direction: column; }
  .admin-main {
    margin-left: 0;
    padding: 1rem;
    padding-top: 0;
    padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
  }

  .admin-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; width: min(280px, 88vw);
    z-index: 1050; transform: translateX(-100%);
    transition: transform 0.3s ease; flex-direction: column;
    border-right: 1px solid var(--border);
    overflow-y: auto;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .admin-sidebar.is-open { transform: translateX(0); }

  .admin-nav-btn--mobile-only { display: flex; }
  #logout-btn { display: none; }

  .form-row { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }

  .admin-topbar {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-topbar > .btn,
  .admin-topbar .btn-primary,
  .admin-topbar .btn-outline {
    width: 100%;
  }
  .admin-panel__header {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-panel__header .btn {
    width: 100%;
  }
  .admin-filters {
    flex-direction: column;
  }
  .admin-search,
  .admin-select {
    width: 100%;
    min-width: 0;
  }
  .chart-bars {
    min-width: 420px;
    gap: 3px;
  }
  .chart-bar-label {
    font-size: 0.5rem;
    max-height: 24px;
  }
  .account-dl {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  .account-dl dt { margin-top: 0.75rem; }
  .account-dl dt:first-child { margin-top: 0; }
}

@media (max-width: 520px) {
  .admin-stats { grid-template-columns: 1fr; }
  .stat-card__value { font-size: 1.5rem; }
  .nfc-url-hero__actions .btn { width: 100%; }
  .admin-login-card { padding: 2rem 1.25rem; }
  .admin-modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }
  .admin-modal {
    width: 100%;
    max-height: 92vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 1.25rem;
  }
  .admin-modal__actions {
    flex-direction: column-reverse;
  }
  .admin-modal__actions .btn { width: 100%; }
  .url-box { flex-direction: column; }
  .toast {
    left: 1rem;
    right: 1rem;
    transform: none;
    text-align: center;
  }
  .client-brand-text small { max-width: 100%; }
  .admin-mobile-bar__title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
  }
}

/* Client dashboard */
.info-banner {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 1rem 1.125rem; margin-bottom: 1.25rem;
  background: var(--accent-soft); border: 1px solid var(--border-hover);
  border-radius: var(--radius); font-size: 0.875rem; color: var(--text-muted);
}
.info-banner i { color: var(--accent); margin-top: 0.15rem; flex-shrink: 0; }
.info-banner p { margin: 0; line-height: 1.55; }
.info-banner strong { color: var(--text); }

.account-dl {
  display: grid; grid-template-columns: minmax(120px, 160px) 1fr;
  gap: 0.5rem 1rem; font-size: 0.875rem;
}
.account-dl dt { color: var(--text-subtle); font-weight: 500; }
.account-dl dd { color: var(--text); margin: 0; word-break: break-word; }

.client-body .admin-topbar h1 { font-size: clamp(1.25rem, 4vw, 1.75rem); }

.client-brand-text {
  display: flex; flex-direction: column; line-height: 1.25;
}
.client-brand-text span { font-family: var(--font-display); font-weight: 700; font-size: 0.9375rem; }
.client-brand-text small {
  font-size: 0.6875rem; color: var(--text-muted); font-weight: 500;
  margin-top: 0.15rem; max-width: 160px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
