/* ═══════════════════════════════════════════════════════════════════
   BikeSwap — Design System
   Space Grotesk + DM Sans · Forest Green + Gold · Light mode
   ═══════════════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────────────────────────
   1. DESIGN TOKENS
   ────────────────────────────────────────────────────────────────── */

:root {
  /* ── Primary (Forest Green) ── */
  --primary:        #1B4332;
  --primary-hover:  #163A2B;
  --primary-dark:   #0F2A1E;
  --primary-light:  #D1FAE5;
  --primary-50:     #ECFDF5;

  /* ── Accent (Gold) ── */
  --accent:         #C9A84C;
  --accent-hover:   #B59539;
  --accent-dark:    #9A7D2E;
  --accent-light:   #FBF5E4;

  /* ── Surfaces ── */
  --bg:             #F8F7F4;
  --surface:        #FFFFFF;
  --surface-2:      #F1EFEB;
  --surface-3:      #E5E2DC;

  /* ── Borders ── */
  --border:         #E0DDD7;
  --border-strong:  #C5C0B8;

  /* ── Text ── */
  --text:           #1C1917;
  --text-muted:     #78716C;
  --text-light:     #A8A29E;

  /* ── Semantic: Success ── */
  --success:        #16A34A;
  --success-hover:  #15803D;
  --success-bg:     #F0FDF4;
  --success-text:   #14532D;
  --success-border: #BBF7D0;

  /* ── Semantic: Danger ── */
  --danger:         #DC2626;
  --danger-hover:   #B91C1C;
  --danger-bg:      #FEF2F2;
  --danger-text:    #991B1B;
  --danger-border:  #FECACA;

  /* ── Semantic: Warning ── */
  --warning:        #D97706;
  --warning-hover:  #B45309;
  --warning-bg:     #FFFBEB;
  --warning-text:   #92400E;
  --warning-border: #FDE68A;

  /* ── Semantic: Info ── */
  --info:           #1B4332;
  --info-bg:        #ECFDF5;
  --info-text:      #0F2A1E;
  --info-border:    #A7F3D0;

  /* ── Typography ── */
  --font:           'DM Sans', system-ui, -apple-system, sans-serif;
  --font-display:   'Space Grotesk', system-ui, -apple-system, sans-serif;

  /* ── Spacing & Shape ── */
  --radius-xs:      6px;
  --radius-sm:      8px;
  --radius-md:      12px;
  --radius-lg:      16px;
  --radius-xl:      20px;
  --radius-2xl:     24px;
  --radius-full:    9999px;

  /* ── Shadows ── */
  --shadow-xs:      0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:      0 4px 12px rgba(27,67,50,0.06), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg:      0 8px 24px rgba(27,67,50,0.08), 0 4px 8px rgba(0,0,0,0.04);
  --shadow-xl:      0 16px 48px rgba(27,67,50,0.10), 0 8px 16px rgba(0,0,0,0.05);
  --shadow-card:    0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-card-hover: 0 8px 24px rgba(27,67,50,0.12), 0 4px 8px rgba(0,0,0,0.04);

  /* ── Transitions ── */
  --ease:           cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:       cubic-bezier(0, 0, 0.2, 1);
  --ease-spring:    cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration:       150ms;
  --duration-md:    250ms;
  --duration-slow:  400ms;

  /* ── Layout ── */
  --sidebar-w:      260px;
  --topbar-h:       60px;
  --bottomnav-h:    72px;
  --navbar-h:       68px;
  --content-max:    1200px;
}


/* ──────────────────────────────────────────────────────────────────
   2. RESET & BASE
   ────────────────────────────────────────────────────────────────── */

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

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

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

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}
a:hover { color: var(--primary-hover); }

ul, ol { list-style: none; }

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

fieldset { border: none; }

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

strong { font-weight: 600; }


/* ──────────────────────────────────────────────────────────────────
   3. TYPOGRAPHY
   ────────────────────────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.375rem, 3vw, 1.875rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.0625rem; }
h5 { font-size: 0.9375rem; }

p + p { margin-top: 1rem; }

small, .text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }

::selection {
  background: var(--primary);
  color: #fff;
}


/* ──────────────────────────────────────────────────────────────────
   4. CUSTOM SCROLLBAR
   ────────────────────────────────────────────────────────────────── */

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }


/* ──────────────────────────────────────────────────────────────────
   5. ANIMATIONS
   ────────────────────────────────────────────────────────────────── */

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-24px) scaleY(0.96); }
  to   { opacity: 1; transform: translateY(0) scaleY(1); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.6; }
}

@keyframes qrPulse {
  0%   { transform: scale(1);    opacity: 0.4; }
  70%  { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.animate-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}
.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ──────────────────────────────────────────────────────────────────
   6. LAYOUT: PUBLIC (Navbar + Footer)
   ────────────────────────────────────────────────────────────────── */

.layout-public {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--navbar-h);
}

.navbar-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.03em;
  flex-shrink: 0;
  white-space: nowrap;
}
.navbar-logo:hover { color: var(--text); }
.navbar-logo svg { width: 32px; height: 32px; flex-shrink: 0; }
.navbar-logo-accent { color: var(--accent); }

.navbar-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
  margin-left: 1rem;
}
.navbar-links a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--duration) var(--ease);
}
.navbar-links a:hover {
  color: var(--text);
  background: var(--surface-2);
}
.navbar-links a.active {
  color: var(--primary);
  background: var(--primary-50);
}

.navbar-actions {
  display: none;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.navbar-serial {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}
.navbar-serial:hover {
  border-color: var(--primary);
  color: var(--text);
}
.navbar-serial i { width: 16px; height: 16px; }

.navbar-burger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: background var(--duration) var(--ease);
}
.navbar-burger:hover { background: var(--surface-2); }
.navbar-burger i { width: 22px; height: 22px; }

/* Mobile menu dropdown */
.navbar-mobile-menu {
  display: none;
  position: absolute;
  top: var(--navbar-h);
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 0.75rem 1rem;
  animation: fadeInDown var(--duration-md) var(--ease-spring);
}
.navbar-mobile-menu.open { display: block; }

.navbar-mobile-menu a,
.navbar-mobile-menu button {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.75rem 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  text-align: left;
  transition: background var(--duration) var(--ease);
}
.navbar-mobile-menu a:hover,
.navbar-mobile-menu button:hover {
  background: var(--surface-2);
}
.navbar-mobile-menu i { width: 20px; height: 20px; color: var(--text-muted); }

.navbar-mobile-divider {
  height: 1px;
  background: var(--border);
  margin: 0.5rem 0;
}

/* ── Main Content (Public) ── */
.main-public {
  flex: 1;
  width: 100%;
}

.main-public-padded {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
}
.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.footer-logo svg { flex-shrink: 0; }
.footer-logo-accent { color: var(--accent); }
.footer-text {
  font-size: 0.8rem;
  color: var(--text-light);
}
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  font-size: 0.825rem;
  color: var(--text-muted);
}
.footer-links a:hover { color: var(--primary); }


/* ──────────────────────────────────────────────────────────────────
   7. LAYOUT: APP (Sidebar + Bottom Nav)
   ────────────────────────────────────────────────────────────────── */

.layout-app {
  min-height: 100vh;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar (Desktop) ── */
.sidebar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: #1B4332;
  color: rgba(255,255,255,0.85);
  flex-direction: column;
  z-index: 90;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-logo {
  padding: 1.25rem 1.25rem 1rem;
}
.sidebar-logo a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.03em;
}
.sidebar-logo svg { width: 28px; height: 28px; }
.sidebar-logo .navbar-logo-accent { color: var(--accent); }

.sidebar-nav {
  flex: 1;
  padding: 0.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-nav-label {
  padding: 0.75rem 0.75rem 0.35rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  border-radius: var(--radius-sm);
  transition: all var(--duration) var(--ease);
  text-decoration: none;
  position: relative;
}
.sidebar-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.sidebar-link.active {
  color: #fff;
  background: rgba(255,255,255,0.12);
  font-weight: 600;
}
.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--accent);
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
}
.sidebar-link i {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.7;
}
.sidebar-link.active i,
.sidebar-link:hover i { opacity: 1; }

.sidebar-qr {
  padding: 0.75rem;
}
.sidebar-qr-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.65rem 1rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  transition: all var(--duration) var(--ease);
}
.sidebar-qr-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212,145,94,0.3);
}
.sidebar-qr-btn i { width: 20px; height: 20px; }

.sidebar-footer {
  padding: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.sidebar-profile-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  border-radius: var(--radius-sm);
  transition: all var(--duration) var(--ease);
  text-decoration: none;
}
.sidebar-profile-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.sidebar-profile-link i { width: 18px; height: 18px; opacity: 0.7; }

.sidebar-logout-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.825rem;
  color: rgba(255,255,255,0.5);
  border-radius: var(--radius-sm);
  width: 100%;
  transition: all var(--duration) var(--ease);
}
.sidebar-logout-btn:hover {
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.06);
}
.sidebar-logout-btn i { width: 16px; height: 16px; }

/* ── Top Bar (Mobile in App) ── */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  z-index: 90;
}

.top-bar-logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.03em;
}
.top-bar-logo svg { width: 26px; height: 26px; }
.top-bar-logo .navbar-logo-accent { color: var(--accent); }

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.top-bar-bell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  position: relative;
  transition: all var(--duration) var(--ease);
}
.top-bar-bell:hover {
  background: var(--surface-2);
  color: var(--text);
}
.top-bar-bell i { width: 22px; height: 22px; }

/* ── Page Content ── */
.page-content {
  flex: 1;
  min-width: 0;
  padding: calc(var(--topbar-h) + 1.5rem) 1.25rem calc(var(--bottomnav-h) + 1.5rem);
  min-height: 100vh;
  animation: fadeIn var(--duration-md) var(--ease);
}

/* ── Bottom Navigation (Mobile) ── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottomnav-h);
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 0.5rem;
  z-index: 90;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-light);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color var(--duration) var(--ease);
  min-width: 52px;
}
.bottom-nav-item i { width: 22px; height: 22px; }
.bottom-nav-item:hover { color: var(--text-muted); }
.bottom-nav-item.active { color: var(--primary); }

.bottom-nav-qr-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bottom-nav-qr-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  margin-top: -22px;
  box-shadow: 0 4px 16px rgba(212,145,94,0.35);
  transition: all var(--duration) var(--ease);
}
.bottom-nav-qr-btn::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  animation: qrPulse 2.5s var(--ease) infinite;
}
.bottom-nav-qr-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}
.bottom-nav-qr-btn:active { transform: scale(0.95); }
.bottom-nav-qr-btn i { width: 24px; height: 24px; }


/* ──────────────────────────────────────────────────────────────────
   8. BUTTONS
   ────────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--duration) var(--ease);
  user-select: none;
  line-height: 1.4;
}
.btn:active { transform: scale(0.97); }
.btn:disabled, .btn.disabled {
  opacity: 0.5;
  pointer-events: none;
}
.btn i { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-hover);
  color: #fff;
  box-shadow: 0 2px 8px rgba(27,67,50,0.25);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-danger:hover {
  background: var(--danger-hover);
  color: #fff;
  box-shadow: 0 2px 8px rgba(220,38,38,0.25);
  transform: translateY(-1px);
}

.btn-warning {
  background: var(--warning);
  color: #fff;
}
.btn-warning:hover {
  background: var(--warning-hover);
  color: #fff;
}

.btn-success {
  background: var(--success);
  color: #fff;
}
.btn-success:hover {
  background: var(--success-hover);
  color: #fff;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover {
  background: var(--accent-hover);
  color: #fff;
  box-shadow: 0 2px 8px rgba(212,145,94,0.25);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover {
  background: var(--surface-2);
  color: var(--text);
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-primary:hover {
  background: var(--primary);
  color: #fff;
}

.btn-outline-danger {
  background: transparent;
  color: var(--danger);
  border-color: var(--danger);
}
.btn-outline-danger:hover {
  background: var(--danger);
  color: #fff;
}

/* Sizes */
.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}
.btn-sm i { width: 15px; height: 15px; }

.btn-lg {
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  border-radius: var(--radius-md);
}
.btn-lg i { width: 20px; height: 20px; }

.btn-icon {
  padding: 0.5rem;
  border-radius: var(--radius-sm);
}

.btn-full { width: 100%; }

/* Button group */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}


/* ──────────────────────────────────────────────────────────────────
   9. FORMS
   ────────────────────────────────────────────────────────────────── */

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
select,
textarea {
  display: block;
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.925rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--duration) var(--ease);
  appearance: none;
}

input:focus,
select:focus,
textarea:focus,
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27,67,50,0.1);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-light);
}

textarea {
  min-height: 100px;
  resize: vertical;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2378716C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.75rem center !important;
  background-color: var(--surface) !important;
  padding-right: 2.5rem;
}

.form-text {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* ── Password visibility toggle ── */
.password-input-wrap {
  position: relative;
}
.password-input-wrap input {
  padding-right: 2.75rem;
}
.password-toggle-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-light);
  cursor: pointer;
  transition: color var(--duration) var(--ease), background var(--duration) var(--ease);
}
.password-toggle-btn:hover {
  color: var(--text-muted);
  background: var(--surface-2);
}
.password-toggle-btn svg {
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}
.form-check label {
  margin: 0;
  font-weight: 400;
  cursor: pointer;
}

.form-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

fieldset {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}
fieldset legend {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  padding: 0 0.5rem;
  color: var(--text);
}

.form-file-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: var(--surface-2);
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}
.form-file-label:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-50);
}
.form-file-label i { width: 18px; height: 18px; }


/* ──────────────────────────────────────────────────────────────────
   10. CARDS
   ────────────────────────────────────────────────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: all var(--duration-md) var(--ease);
}
.card-hover:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.card-body { padding: 1.25rem 1.5rem; }
.card-body-compact { padding: 1rem 1.25rem; }

.card-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.card-header h3,
.card-header h4 {
  font-size: 1rem;
  font-weight: 600;
}

.card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card + .card { margin-top: 1rem; }


/* ──────────────────────────────────────────────────────────────────
   11. ALERTS & FLASH
   ────────────────────────────────────────────────────────────────── */

.flash-container {
  margin-bottom: 1.25rem;
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.5;
  border-left: 4px solid;
  animation: fadeInDown var(--duration-md) var(--ease);
}
.alert + .alert { margin-top: 0.5rem; }
.alert i { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }

.alert-success {
  background: var(--success-bg);
  color: var(--success-text);
  border-left-color: var(--success);
}
.alert-error {
  background: var(--danger-bg);
  color: var(--danger-text);
  border-left-color: var(--danger);
}
.alert-warning {
  background: var(--warning-bg);
  color: var(--warning-text);
  border-left-color: var(--warning);
}
.alert-info {
  background: var(--info-bg);
  color: var(--info-text);
  border-left-color: var(--info);
}

.alert-stolen {
  background: var(--danger-bg);
  color: var(--danger-text);
  border-left-color: var(--danger);
  font-weight: 500;
}

.alert-close {
  margin-left: auto;
  padding: 0.25rem;
  color: inherit;
  opacity: 0.5;
  border-radius: var(--radius-xs);
  transition: opacity var(--duration) var(--ease);
}
.alert-close:hover { opacity: 1; }


/* ──────────────────────────────────────────────────────────────────
   12. BADGES & STATUS
   ────────────────────────────────────────────────────────────────── */

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--radius-full);
  line-height: 1.3;
  white-space: nowrap;
}

.status-active      { background: #DCFCE7; color: #166534; }
.status-stolen      { background: #FEE2E2; color: #991B1B; }
.status-found       { background: #DBEAFE; color: #1E40AF; }
.status-recovered   { background: #E0E7FF; color: #3730A3; }
.status-shared      { background: #E0F2FE; color: #0369A1; }
.status-inactive    { background: var(--surface-3); color: var(--text-muted); }
.status-pending     { background: #FEF3C7; color: #92400E; }
.status-approved    { background: #DCFCE7; color: #166534; }
.status-rejected    { background: #FEE2E2; color: #991B1B; }
.status-cancelled   { background: var(--surface-3); color: var(--text-muted); }
.status-completed   { background: #E0E7FF; color: #3730A3; }
.status-review      { background: #FFF7ED; color: #9A3412; }
.status-not_returned { background: #FEE2E2; color: #991B1B; }
.status-disputed    { background: #FEF3C7; color: #92400E; }
.status-open        { background: #FEF3C7; color: #92400E; }
.status-warning     { background: #FEF3C7; color: #92400E; }
.status-unknown     { background: var(--surface-3); color: var(--text-muted); }
.status-investigating { background: #DBEAFE; color: #1E40AF; }
.status-resolved    { background: #DCFCE7; color: #166534; }
.status-closed      { background: var(--surface-3); color: var(--text-muted); }
.status-contacted   { background: #DBEAFE; color: #1E40AF; }
.status-verified    { background: #DCFCE7; color: #166534; }

.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}
.availability-available { background: #DCFCE7; color: #166534; }
.availability-unavailable { background: #FEF3C7; color: #92400E; }

.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  background: var(--danger);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.found-report-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--info-bg);
  color: var(--info-text);
  border-radius: var(--radius-full);
}

.badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  border-radius: var(--radius-full);
}


/* ──────────────────────────────────────────────────────────────────
   13. MODALS
   ────────────────────────────────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.active {
  display: flex;
  animation: fadeIn var(--duration) var(--ease);
}

.modal {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp var(--duration-md) var(--ease-spring);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.modal-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  transition: all var(--duration) var(--ease);
}
.modal-close:hover {
  background: var(--danger-bg);
  color: var(--danger);
}
.modal-close i { width: 18px; height: 18px; }

body.modal-blur > *:not(.modal-overlay):not(.toast-container) {
  filter: blur(4px);
  pointer-events: none;
  user-select: none;
}


/* ──────────────────────────────────────────────────────────────────
   14. TOASTS
   ────────────────────────────────────────────────────────────────── */

.toast-container {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  padding: 0.75rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--info);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.875rem;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--duration-md) var(--ease), transform var(--duration-md) var(--ease-spring);
}
.toast.toast-visible {
  opacity: 1;
  transform: translateY(0);
}
.toast-success { border-left-color: var(--success); }
.toast-error   { border-left-color: var(--danger); }
.toast-warning { border-left-color: var(--warning); }
.toast-info    { border-left-color: var(--info); }


/* ──────────────────────────────────────────────────────────────────
   15. LANDING PAGE
   ────────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #2D6A4F 0%, #1B4332 40%, #0F2A1E 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--bg);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  mix-blend-mode: overlay;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 680px;
  padding: 3rem 1.5rem;
  color: #fff;
  animation: fadeInUp var(--duration-slow) var(--ease-out);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.25rem;
  backdrop-filter: blur(4px);
}
.hero-badge i { width: 14px; height: 14px; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 1rem;
}
.hero-title-accent {
  color: var(--accent);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.hero .btn-primary {
  background: #fff;
  color: var(--primary-dark);
  font-weight: 700;
}
.hero .btn-primary:hover {
  background: rgba(255,255,255,0.9);
  box-shadow: 0 4px 20px rgba(255,255,255,0.2);
}
.hero .btn-secondary {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.25);
}
.hero .btn-secondary:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}

/* ── Features Section ── */
.features-section {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-header h2 {
  margin-bottom: 0.5rem;
}
.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: all var(--duration-md) var(--ease);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
}
.feature-icon i { width: 28px; height: 28px; }

.feature-icon-teal     { background: var(--primary-light); color: var(--primary); }
.feature-icon-copper   { background: var(--accent-light); color: var(--accent); }
.feature-icon-blue     { background: #DBEAFE; color: #2563EB; }
.feature-icon-green    { background: #DCFCE7; color: #16A34A; }

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── How It Works ── */
.how-it-works {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.step-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}

.step-content h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}
.step-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── CTA Section ── */
.cta-section {
  background: linear-gradient(135deg, var(--primary-50), var(--accent-light));
  padding: 4rem 1.5rem;
  text-align: center;
}
.cta-section h2 { margin-bottom: 0.75rem; }
.cta-section p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}


/* ──────────────────────────────────────────────────────────────────
   16. AUTH MODAL
   ────────────────────────────────────────────────────────────────── */

.auth-modal .modal { max-width: 420px; }

.auth-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin: -1.5rem -1.5rem 1.5rem;
  padding: 0 1.5rem;
}
.auth-tab {
  padding: 0.85rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--duration) var(--ease);
  cursor: pointer;
}
.auth-tab:hover { color: var(--text); }
.auth-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.auth-form { display: none; }
.auth-form.active { display: block; }

.auth-form .form-group:last-of-type { margin-bottom: 0.5rem; }

.auth-forgot {
  display: block;
  text-align: right;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: -0.5rem;
  margin-bottom: 1rem;
}

.auth-switch {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.auth-switch a,
.auth-switch button {
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
}

/* Email preference rows */
.pref-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.pref-row:last-child { border-bottom: none; }
.pref-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.pref-title { font-weight: 500; }
.pref-toggle {
  appearance: none;
  width: 40px;
  height: 22px;
  background: var(--border);
  border-radius: 9999px;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 200ms;
}
.pref-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  transition: transform 200ms;
}
.pref-toggle:checked { background: var(--primary); }
.pref-toggle:checked::after { transform: translateX(18px); }


/* Password requirements */
.password-requirements {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.pwd-req::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  flex-shrink: 0;
  transition: background 150ms, border-color 150ms;
}
.pwd-req.met::before {
  background: var(--success);
  border-color: var(--success);
}
.pwd-req {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 150ms;
}


/* ──────────────────────────────────────────────────────────────────
   17. BIKE GRID & CARDS
   ────────────────────────────────────────────────────────────────── */

.bike-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.bike-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration-md) var(--ease);
}
.bike-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.bike-card-photo {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease);
}
.bike-card:hover .bike-card-photo {
  transform: scale(1.03);
}

.bike-card-photo-wrap {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
}

.bike-card-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  background: var(--surface-2);
  color: var(--text-light);
}
.bike-card-photo-placeholder i { width: 40px; height: 40px; opacity: 0.4; }

.bike-card-badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.bike-card-body {
  padding: 1rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.bike-card-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 650;
  color: var(--text);
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bike-card-meta {
  font-size: 0.825rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.bike-card-meta i { width: 14px; height: 14px; }

.bike-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}


/* ──────────────────────────────────────────────────────────────────
   18. BIKE DETAIL
   ────────────────────────────────────────────────────────────────── */

.bike-detail { max-width: 900px; margin: 0 auto; }

.bike-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.bike-gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: transform var(--duration) var(--ease);
}
.bike-gallery-item:hover { transform: scale(1.02); }
.bike-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bike-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.info-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}
.info-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 120px;
  flex-shrink: 0;
}
.info-value {
  font-size: 0.95rem;
  color: var(--text);
}

.bike-qr {
  text-align: center;
  padding: 2rem;
  background: var(--surface-2);
  border-radius: var(--radius-lg);
}
.qr-code-image {
  max-width: 180px;
  margin: 0 auto 1rem;
  background: #fff;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.bike-qr-actions {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.bike-actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}


/* ──────────────────────────────────────────────────────────────────
   19. SEARCH & FILTERS
   ────────────────────────────────────────────────────────────────── */

.search-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.search-bar input,
.search-bar select {
  flex: 1;
  min-width: 140px;
}
.search-bar .btn { flex-shrink: 0; }


/* ──────────────────────────────────────────────────────────────────
   20. RESERVATION & CALENDAR
   ────────────────────────────────────────────────────────────────── */

.calendar-container {
  max-width: 100%;
}

.calendar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  user-select: none;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.calendar-header h4 {
  font-family: var(--font-display);
  font-size: 1rem;
}
.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  transition: all var(--duration) var(--ease);
}
.calendar-nav:hover {
  background: var(--surface-2);
  color: var(--text);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 0.35rem;
}
.calendar-weekday {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  padding: 0.35rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.day {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  color: var(--text);
}
.day:hover:not(.day-disabled):not(.day-empty) {
  background: var(--primary-light);
  color: var(--primary);
}

.day-empty   { cursor: default; }
.day-today   { font-weight: 700; color: var(--primary); }
.day-selected {
  background: var(--primary) !important;
  color: #fff !important;
  font-weight: 600;
}
.day-range   { background: var(--primary-50); color: var(--primary); }
.day-disabled {
  color: var(--text-light);
  cursor: not-allowed;
  opacity: 0.4;
}
.day-unavailable {
  color: var(--danger);
  text-decoration: line-through;
  cursor: not-allowed;
  opacity: 0.5;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.calendar-legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.calendar-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
}

.reservation-summary {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--primary-50);
  border-radius: var(--radius-md);
  border: 1px solid var(--primary-light);
}

.reservation-info {
  display: grid;
  gap: 0.5rem;
}

.reservation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.overdue-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  border-radius: var(--radius-md);
  color: var(--danger-text);
  font-weight: 500;
  margin-bottom: 1.25rem;
}
.overdue-banner i { width: 24px; height: 24px; flex-shrink: 0; }


/* ──────────────────────────────────────────────────────────────────
   21. CONVERSATION / CHAT
   ────────────────────────────────────────────────────────────────── */

.conversation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.conversation-messages {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 480px;
  overflow-y: auto;
  padding: 1rem;
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  scroll-behavior: smooth;
}

.message {
  max-width: 75%;
  align-self: flex-start;
  animation: fadeInUp 0.2s var(--ease-out);
}
.message.mine { align-self: flex-end; }

.message-bubble {
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  line-height: 1.5;
  word-wrap: break-word;
}

.message.mine .message-bubble {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  border-radius: var(--radius-lg) var(--radius-lg) 4px var(--radius-lg);
}

.message-meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  color: var(--text-light);
  margin-top: 0.2rem;
  padding: 0 0.25rem;
}
.message.mine .message-meta {
  justify-content: flex-end;
}

.police-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  background: #1e40af;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.message-system {
  align-self: center;
  max-width: 90%;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
}

.message-admin .message-bubble {
  background: #7c3aed;
  color: #fff;
  border-radius: var(--radius-md) var(--radius-md) 0 var(--radius-md);
}
.message-admin .message-meta { color: #7c3aed; font-size: 0.72rem; }
.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  background: #7c3aed;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.conversation-compose {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
}
.conversation-compose textarea {
  flex: 1;
  min-height: 44px;
  max-height: 120px;
  resize: vertical;
}

.conversation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.conversation-closed {
  text-align: center;
  padding: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.conversation-closed i { width: 24px; height: 24px; margin-bottom: 0.5rem; }


/* ──────────────────────────────────────────────────────────────────
   22. PROFILE
   ────────────────────────────────────────────────────────────────── */

.profile-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.profile-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

.profile-info h1 {
  font-size: 1.5rem;
  margin-bottom: 0.15rem;
}
.profile-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.karma-display {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.karma-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
}
.karma-positive { color: var(--success); }
.karma-negative { color: var(--danger); }
.karma-neutral  { color: var(--text-muted); }
.karma-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}


/* ──────────────────────────────────────────────────────────────────
   23. NOTIFICATIONS
   ────────────────────────────────────────────────────────────────── */

.notifications-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.notifications-list {
  display: flex;
  flex-direction: column;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border);
  transition: background var(--duration) var(--ease);
  text-decoration: none;
  color: inherit;
}
.notification-item:hover {
  background: var(--surface-2);
  color: inherit;
}

.notification-item.notification-unread {
  background: var(--primary-50);
}
.notification-item.notification-unread:hover {
  background: var(--primary-light);
}

.notification-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  color: var(--text-muted);
}
.notification-icon i { width: 18px; height: 18px; }

.notification-content {
  flex: 1;
  min-width: 0;
}
.notification-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.1rem;
}
.notification-message {
  font-size: 0.825rem;
  color: var(--text-muted);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}
.notification-time {
  font-size: 0.7rem;
  color: var(--text-light);
  margin-top: 0.2rem;
}

.notification-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.notifications-section + .notifications-section {
  margin-top: 2rem;
}

.notifications-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.notification-item.notification-action {
  border-left: 3px solid var(--danger);
}

.notification-item.notification-action .notification-icon i {
  color: var(--danger);
}

.notification-item.notification-action.notification-unread {
  background: var(--danger-bg);
}


/* ──────────────────────────────────────────────────────────────────
   24. ERROR PAGES
   ────────────────────────────────────────────────────────────────── */

.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 3rem 1.5rem;
  animation: fadeIn var(--duration-slow) var(--ease);
}
.error-page i {
  width: 64px;
  height: 64px;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}
.error-code {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--border-strong);
  letter-spacing: -0.05em;
}
.error-message {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}


/* ──────────────────────────────────────────────────────────────────
   25. PHOTO UPLOAD & PREVIEW
   ────────────────────────────────────────────────────────────────── */

.photo-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.photo-preview-card {
  position: relative;
  width: 140px;
  height: 110px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--duration) var(--ease);
}
.photo-preview-card.photo-preview-primary {
  border-color: var(--primary);
}

.photo-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-preview-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  padding: 4px;
  background: linear-gradient(transparent, rgba(0,0,0,0.5));
}

.photo-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: none;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: background var(--duration) var(--ease);
}
.photo-action-btn:hover { background: rgba(0,0,0,0.8); }
.photo-action-btn.photo-action-danger:hover { background: var(--danger); }
.photo-action-btn i, .photo-action-btn svg { width: 14px; height: 14px; }

.photo-preview-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: 4px;
  left: 4px;
  width: 26px;
  height: 26px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-xs);
}
.photo-preview-badge i, .photo-preview-badge svg { width: 14px; height: 14px; }

/* Existing photos grid (edit page) */
.existing-photos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.existing-photo-card {
  position: relative;
  width: 140px;
  height: 130px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--border);
}
.existing-photo-card.primary-photo {
  border-color: var(--primary);
}
.existing-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.existing-photo-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: linear-gradient(transparent, rgba(0,0,0,0.5));
}


/* ──────────────────────────────────────────────────────────────────
   26. STAR RATING
   ────────────────────────────────────────────────────────────────── */

.star-rating {
  display: inline-flex;
  gap: 0.15rem;
}
.star-rating input[type="radio"] {
  display: none;
}
.star-rating label {
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--border-strong);
  transition: all var(--duration) var(--ease);
  user-select: none;
}
.star-rating label:hover,
.star-rating label.filled {
  color: var(--accent);
  transform: scale(1.1);
}
.star-rating label.filled svg,
.star-rating label:hover svg {
  fill: var(--accent);
}

.star-display {
  display: inline-flex;
  gap: 0.1rem;
  color: var(--accent);
  font-size: 1rem;
}
.star-display .star-empty { color: var(--border); }


/* ──────────────────────────────────────────────────────────────────
   27. TABLES
   ────────────────────────────────────────────────────────────────── */

.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
thead { background: var(--surface-2); }
th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tbody tr {
  transition: background var(--duration) var(--ease);
}
tbody tr:hover { background: var(--surface-2); }

td .btn { white-space: nowrap; }

/* Responsive table on mobile */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}


/* ──────────────────────────────────────────────────────────────────
   28. PAGE HEADER
   ────────────────────────────────────────────────────────────────── */

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.page-header h1 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}
.page-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}


/* ──────────────────────────────────────────────────────────────────
   29. EMPTY STATE
   ────────────────────────────────────────────────────────────────── */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
}
.empty-state i {
  width: 48px;
  height: 48px;
  color: var(--text-light);
  margin-bottom: 1rem;
}
.empty-state h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.empty-state p {
  font-size: 0.9rem;
  max-width: 360px;
  margin-bottom: 1.25rem;
}


/* ──────────────────────────────────────────────────────────────────
   30. UTILITIES
   ────────────────────────────────────────────────────────────────── */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--text-muted); }
.text-light  { color: var(--text-light); }
.text-primary { color: var(--primary); }
.text-danger  { color: var(--danger); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }

.font-display { font-family: var(--font-display); }
.font-bold    { font-weight: 700; }
.font-medium  { font-weight: 500; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-xs  { gap: 0.25rem; }
.gap-sm  { gap: 0.5rem; }
.gap-md  { gap: 0.75rem; }
.gap-lg  { gap: 1rem; }
.gap-xl  { gap: 1.5rem; }

.mt-0  { margin-top: 0; }
.mt-sm { margin-top: 0.5rem; }
.mt-md { margin-top: 1rem; }
.mt-lg { margin-top: 1.5rem; }
.mt-xl { margin-top: 2rem; }
.mb-0  { margin-bottom: 0; }
.mb-sm { margin-bottom: 0.5rem; }
.mb-md { margin-bottom: 1rem; }
.mb-lg { margin-bottom: 1.5rem; }
.mb-xl { margin-bottom: 2rem; }

.p-0  { padding: 0; }
.p-sm { padding: 0.5rem; }
.p-md { padding: 1rem; }
.p-lg { padding: 1.5rem; }

.w-full { width: 100%; }
.max-w-sm { max-width: 480px; }
.max-w-md { max-width: 640px; }
.max-w-lg { max-width: 800px; }
.max-w-xl { max-width: 1000px; }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }

.truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hidden { display: none !important; }

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.25rem 0;
}

.link-muted {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.link-muted:hover { color: var(--text); }

/* Review section */
.review-card {
  padding: 1rem 1.25rem;
  background: var(--surface-2);
  border-radius: var(--radius-md);
}
.review-card + .review-card { margin-top: 0.75rem; }
.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}
.review-author {
  font-weight: 600;
  font-size: 0.9rem;
}
.review-date {
  font-size: 0.75rem;
  color: var(--text-light);
}
.review-comment {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Turnstile */
.cf-turnstile {
  margin: 1rem 0;
}

/* Description text */
.description-text {
  font-size: 0.925rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* Danger zone */
.danger-zone {
  border: 1px solid var(--danger-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-top: 2rem;
}
.danger-zone h3 {
  color: var(--danger);
  margin-bottom: 0.5rem;
}
.danger-zone p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}


/* ──────────────────────────────────────────────────────────────────
   31. RESPONSIVE
   ────────────────────────────────────────────────────────────────── */

/* ── Mobile overrides ── */
.layout-app .toast-container {
  bottom: calc(var(--bottomnav-h) + 0.75rem);
}

/* ── Tablet (768px+) ── */
@media (min-width: 768px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  .step-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .bike-info-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Desktop (1024px+) ── */
@media (min-width: 1024px) {
  /* Public layout */
  .navbar-links { display: flex; }
  .navbar-actions { display: flex; }
  .navbar-burger { display: none; }

  .main-public-padded {
    padding: 2.5rem 2rem;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }

  /* App layout */
  .sidebar { display: flex; }
  .top-bar { display: none; }
  .bottom-nav { display: none; }

  .page-content {
    margin-left: var(--sidebar-w);
    padding: 2rem 2.5rem;
    min-height: 100vh;
  }

  .toast-container {
    bottom: 1rem;
  }
}

/* ── Wide Desktop (1280px+) ── */
@media (min-width: 1280px) {
  .page-content {
    padding: 2.5rem 3rem;
  }

  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ── Dashboard Alerts ── */
.dashboard-alerts {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.dashboard-alert-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.dashboard-alert-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.dashboard-alert-card div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.dashboard-alert-card i:first-child { width: 20px; height: 20px; flex-shrink: 0; }
.dashboard-alert-danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}
.dashboard-alert-danger i:first-child { color: #dc2626; }
.dashboard-alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}
.dashboard-alert-success i:first-child { color: #16a34a; }
.dashboard-alert-info {
  background: var(--info-bg);
  border: 1px solid var(--info-border);
  color: var(--info-text);
}
.dashboard-alert-info i:first-child { color: var(--info); }
.dashboard-alert-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}
.dashboard-alert-warning i:first-child { color: #d97706; }

/* ── Print ── */
@media print {
  .navbar, .sidebar, .top-bar, .bottom-nav, .footer,
  .modal-overlay, .toast-container, .btn,
  .page-header-actions, .bike-qr-actions,
  .bike-detail-aside .bike-info-card:not(:first-child),
  .bike-gallery, .bike-gallery-grid, .bike-actions, .bike-found-report,
  .flash-container, .card, .bike-info-grid,
  .alert-stolen, .page-header, .dashboard-alerts,
  .main-public-padded > *:not(.bike-detail),
  .bike-detail > *:not(.bike-qr) { display: none !important; }
  body { background: #fff !important; color: #000 !important; margin: 0 !important; padding: 0 !important; }
  .page-content, .main-content, .main-public-padded, .main-public { margin: 0 !important; padding: 0 !important; }
  .app-shell { display: block !important; }
  .bike-detail-layout { display: block !important; }
  .bike-detail { display: block !important; }
  .bike-qr {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 3px dashed #999;
    padding: 3rem 2rem;
    margin: 2rem auto;
    max-width: 400px;
    border-radius: 12px;
    page-break-inside: avoid;
  }
  .bike-qr .section-title { font-size: 1.2rem; margin-bottom: 1rem; }
  .qr-code-image { width: 200px !important; height: 200px !important; aspect-ratio: 1; object-fit: contain; }
  .bike-qr .text-sm { font-size: 0.9rem; margin-top: 0.75rem; }
}


/* ──────────────────────────────────────────────────────────────────
   LIGHTBOX
   ────────────────────────────────────────────────────────────────── */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  animation: fadeIn var(--duration-md) var(--ease);
}
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  animation: scaleIn var(--duration-md) var(--ease-spring);
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--duration) var(--ease);
  backdrop-filter: blur(4px);
}
.lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.lightbox-nav svg { width: 20px; height: 20px; }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--duration) var(--ease);
  backdrop-filter: blur(4px);
}
.lightbox-close:hover { background: rgba(255,255,255,0.3); }
.lightbox-close svg { width: 20px; height: 20px; }
.lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  font-weight: 500;
}
[data-lightbox] { cursor: zoom-in; }

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

/* ═══════════════════════════════════════════════════════════════════
   Admin Panel
   ═══════════════════════════════════════════════════════════════════ */

/* Stats grid — override .card + .card margin inside grid */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  grid-auto-rows: 1fr;
}

.admin-stats-grid > .card {
  margin-top: 0 !important;
}

.admin-stats-grid > .card > .card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.admin-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.admin-stat-value {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

.admin-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Desktop table */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.admin-table th {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.admin-table tbody tr:hover {
  background: var(--bg-hover);
}

.admin-table a {
  color: var(--primary);
  text-decoration: none;
}

.admin-table a:hover {
  text-decoration: underline;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Mobile card list — replaces table on small screens */
.admin-card-list {
  display: none;
}

.admin-card-item {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.admin-card-item:last-child {
  border-bottom: none;
}

.admin-card-item:active {
  background: var(--bg-hover);
}

.admin-card-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.admin-card-item-title {
  font-weight: 600;
  font-size: 0.95rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-card-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Hide table, show card list (except detail-section tables which scroll) */
  .table-responsive:not(.admin-detail-section .table-responsive) {
    display: none;
  }
  .admin-card-list {
    display: block;
  }
}

/* ── Filter bar (shared bikes) ─────────────────────────────── */

.filter-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
}

.filter-bar-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.filter-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.filter-group-search {
  flex: 1 1 0;
  min-width: 0;
}

.filter-group-search input {
  width: 100%;
}

.filter-group-frame {
  flex-basis: 100%;
  max-width: 20rem;
}

.filter-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Toggle button with badge */
.filter-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  position: relative;
}

.filter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 999px;
  min-width: 1.1em;
  height: 1.1em;
  padding: 0 0.25em;
  line-height: 1;
}

/* Dropdown panel */
.filter-dropdown {
  display: none;
  overflow: hidden;
}

.filter-bar.filters-open .filter-dropdown {
  display: block;
}

.filter-dropdown-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  padding-top: 0.875rem;
  margin-top: 0.875rem;
  border-top: 1px solid var(--border);
}

.input-range {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.input-range span {
  color: var(--text-muted);
  flex-shrink: 0;
}

.input-range input[type="number"],
.input-range input[type="date"] {
  min-width: 0;
}

/* ── Year dual-range slider ───────────────────────────────── */

.year-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 200px;
}

.year-slider-track-wrap {
  position: relative;
  height: 24px;
  display: flex;
  align-items: center;
}

.year-slider-track,
.year-slider-fill {
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 2px;
  pointer-events: none;
}

.year-slider-track {
  background: var(--border);
  width: 100%;
}

.year-slider-fill {
  background: var(--primary);
}

/* Both range inputs overlap at full size; pointer-events on the
   input itself are off, only the thumb is interactive */
.year-range-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: none;
  outline: none;
  margin: 0;
  padding: 0;
  z-index: 1;
}

.year-range-input::-webkit-slider-runnable-track {
  -webkit-appearance: none;
  background: transparent;
  height: 100%;
}

.year-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  cursor: grab;
  pointer-events: all;
}

.year-range-input:active::-webkit-slider-thumb {
  cursor: grabbing;
  transform: scale(1.15);
}

.year-range-input::-moz-range-track {
  background: transparent;
  border: none;
  height: 100%;
}

.year-range-input::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  cursor: grab;
  pointer-events: all;
}

.year-range-input:active::-moz-range-thumb {
  cursor: grabbing;
  transform: scale(1.15);
}

/* JS toggles .thumb-top on the last-touched input to raise it above the other */
.year-range-input.thumb-top {
  z-index: 3;
}

.year-slider-labels {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.year-num-input {
  width: 72px;
  text-align: center;
  padding: 0.25rem 0.4rem;
  font-size: 0.85rem;
}

.year-slider-sep {
  color: var(--text-muted);
}

/* ── Reservation filter dropdown (my-reservations) ─────────── */

.section-title-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.section-title-row .section-title {
  margin-bottom: 0;
}

.bike-filter-form {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.bike-filter-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  cursor: default;
  user-select: none;
}

.bike-filter-select {
  font-size: 0.85rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.bike-filter-select:hover {
  border-color: var(--primary);
}

.bike-filter-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 20%, transparent);
}

.bike-filter-select.bike-filter-active {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 8%, var(--surface));
  color: var(--primary);
  font-weight: 600;
}

@media (max-width: 640px) {
  .filter-bar-row {
    flex-wrap: wrap;
  }
  .filter-dropdown-inner {
    flex-direction: column;
  }
  .year-slider-wrap {
    min-width: 0;
    width: 100%;
  }
  .section-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* ── Toggle switch ─────────────────────────────────────────── */
.toggle-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  cursor: pointer;
}

.toggle-row + .toggle-row {
  border-top: 1px solid var(--border);
}

.toggle-row-text {
  flex: 1;
  min-width: 0;
}

.toggle-row-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.toggle-row-icon {
  width: 16px;
  height: 16px;
  color: var(--primary);
  flex-shrink: 0;
}

.toggle-row-desc {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.toggle-switch {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-track {
  position: relative;
  width: 42px;
  min-width: 42px;
  height: 24px;
  background: var(--surface-3);
  border-radius: var(--radius-full);
  transition: background var(--duration-md) var(--ease);
  flex-shrink: 0;
}

.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: var(--surface);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-md) var(--ease-spring);
}

.toggle-switch:checked + .toggle-track {
  background: var(--primary);
}

.toggle-switch:checked + .toggle-track .toggle-thumb {
  transform: translateX(18px);
}

.toggle-switch:focus-visible + .toggle-track {
  box-shadow: 0 0 0 3px rgba(27,67,50,0.15);
}

/* ── Sharing sub-sections ─────────────────────────────────── */
.sharing-subsection {
  margin-top: 0.5rem;
  padding-top: 0.25rem;
}

.availability-panel {
  margin-top: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--surface-2);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.availability-panel .form-group {
  margin-bottom: 1rem;
}

.availability-panel .form-group:last-child {
  margin-bottom: 0;
}

.availability-panel .form-group-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.availability-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1rem 0;
}

/* ── Day picker (availability) ─────────────────────────────── */
.day-picker {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.day-toggle {
  cursor: pointer;
}

.day-toggle input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.day-toggle-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--duration-md) var(--ease);
  user-select: none;
}

.day-toggle input[type="checkbox"]:checked + .day-toggle-label {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(27,67,50,0.2);
}

.day-toggle-label:hover {
  border-color: var(--primary);
  color: var(--text);
}

.day-toggle input[type="checkbox"]:focus-visible + .day-toggle-label {
  box-shadow: 0 0 0 3px rgba(27,67,50,0.15);
}

/* ── Excluded date input ───────────────────────────────────── */
.excluded-date-input-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.5rem;
}

.excluded-date-input-row input[type="date"] {
  flex: 1;
  max-width: 200px;
}

/* ── Excluded date tags ────────────────────────────────────── */
.excluded-dates-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.excluded-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.6rem;
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--warning-text);
  transition: all var(--duration) var(--ease);
}

.excluded-tag-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.excluded-tag-remove {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 0.1rem;
  color: var(--warning-text);
  opacity: 0.6;
  transition: opacity var(--duration) var(--ease);
}

.excluded-tag-remove:hover {
  opacity: 1;
  color: var(--danger);
}

/* ──────────────────────────────────────────────────────────────────
   COOKIE CONSENT BANNER
   ────────────────────────────────────────────────────────────────── */

.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--surface);
  border-top: 2px solid var(--primary-light);
  box-shadow: 0 -8px 32px rgba(27,67,50,0.10), 0 -2px 8px rgba(0,0,0,0.04);
  padding: 0;
  animation: cookieSlideUp var(--duration-slow) var(--ease-out) both;
}

@keyframes cookieSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.cookie-consent-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.25rem 1.5rem;
}

.cookie-consent-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--primary-50);
  color: var(--primary);
  flex-shrink: 0;
}

.cookie-consent-text {
  flex: 1;
  min-width: 240px;
}

.cookie-consent-text p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.cookie-consent-text a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--primary-light);
  transition: border-color var(--duration) var(--ease);
}
.cookie-consent-text a:hover {
  border-color: var(--primary);
}

.cookie-consent-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .cookie-consent-inner {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }
  .cookie-consent-icon {
    display: none;
  }
  .cookie-consent-actions {
    width: 100%;
    justify-content: center;
  }
  .layout-app .cookie-consent {
    bottom: var(--bottomnav-h);
  }
}


/* ──────────────────────────────────────────────────────────────────
   PRIVACY / LEGAL PAGE
   ────────────────────────────────────────────────────────────────── */

.privacy-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.privacy-page h1 {
  margin-bottom: 0.25rem;
}

.privacy-page .privacy-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.privacy-content h2 {
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  color: var(--primary);
}

.privacy-content h3 {
  font-size: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.privacy-content p {
  font-size: 0.925rem;
  line-height: 1.75;
  color: var(--text);
}

.privacy-content ul {
  margin: 0.75rem 0;
  padding-left: 1.5rem;
  list-style: none;
}

.privacy-content ul li {
  position: relative;
  padding: 0.25rem 0 0.25rem 0.75rem;
  font-size: 0.925rem;
  line-height: 1.6;
  color: var(--text);
}

.privacy-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.privacy-content table {
  margin: 1rem 0;
}

.privacy-content code {
  font-size: 0.82rem;
  padding: 0.15rem 0.45rem;
  background: var(--surface-2);
  border-radius: var(--radius-xs);
  font-weight: 500;
  color: var(--primary);
}

.privacy-content strong {
  font-weight: 600;
  color: var(--text);
}

.privacy-consent-reset {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}


/* ──────────────────────────────────────────────────────────────────
   ADMIN: DEVICE & ACTIVITY TABLES
   ────────────────────────────────────────────────────────────────── */

.admin-detail-section {
  margin-top: 2rem;
}

.admin-detail-section .card {
  overflow: hidden;
}

.admin-detail-section .card-body {
  padding: 0;
}

.admin-detail-section .card-body:not(:has(table)) {
  padding: 1.5rem;
}

.admin-detail-section table {
  font-size: 0.85rem;
}

.admin-detail-section th {
  font-size: 0.72rem;
  padding: 0.6rem 1rem;
}

.admin-detail-section td {
  padding: 0.6rem 1rem;
}

.admin-detail-section code {
  font-size: 0.78rem;
  padding: 0.1rem 0.4rem;
  background: var(--surface-2);
  border-radius: var(--radius-xs);
  color: var(--text-muted);
}

.admin-detail-section .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.activity-action-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.activity-action-badge.action-login    { background: var(--success-bg); color: var(--success-text); }
.activity-action-badge.action-logout   { background: var(--surface-2);  color: var(--text-muted); }
.activity-action-badge.action-failed   { background: var(--danger-bg);  color: var(--danger-text); }
.activity-action-badge.action-admin    { background: var(--warning-bg); color: var(--warning-text); }
.activity-action-badge.action-profile  { background: var(--info-bg);    color: var(--info-text); }
.activity-action-badge.action-register { background: var(--accent-light); color: var(--accent-dark); }

.ua-cell {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.activity-user-link {
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.activity-user-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ──────────────────────────────────────────────────────────────────
   ADDRESS AUTOCOMPLETE
   ────────────────────────────────────────────────────────────────── */

.address-autocomplete-wrapper {
  position: relative;
}

.address-dropdown {
  position: fixed;
  z-index: 200;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: 0 4px 12px rgba(0,0,0,.10);
  max-height: 260px;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 0;
}

.address-dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.address-dropdown-item:last-child {
  border-bottom: none;
}

.address-dropdown-item:hover,
.address-dropdown-item.active {
  background: var(--primary-50);
}

.address-dropdown-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--text-muted);
}

.address-dropdown-empty {
  padding: 0.75rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.address-dropdown-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}

.address-dropdown-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: addr-spin 0.6s linear infinite;
}

@keyframes addr-spin {
  to { transform: rotate(360deg); }
}

.geo-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.geo-status-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: addr-spin 0.6s linear infinite;
}

/* ──────────────────────────────────────────────────────────────────
   UTILITY CLASSES
   ────────────────────────────────────────────────────────────────── */

.icon-inline    { width: 14px; height: 14px; display: inline; vertical-align: -2px; }
.icon-inline-lg { width: 18px; height: 18px; display: inline; vertical-align: -3px; }
.mt-auto        { margin-top: auto; }
