/* ================= RESET ================= */
* { box-sizing: border-box; }
:root {
  --bg-1: #f8fffb;
  --bg-2: #e8f7f1;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-soft: rgba(15, 72, 61, 0.06);
  --panel-border: rgba(15, 72, 61, 0.16);
  --text: #102b27;
  --text-soft: rgba(16, 43, 39, 0.74);
  --accent: #52d2aa;
  --accent-strong: #159c74;
  --danger: #de6868;
  --warn: #f1c75b;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 18px 38px rgba(22, 87, 71, 0.16);
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(103,220,180,0.22), transparent 28%),
    radial-gradient(circle at bottom right, rgba(255,212,128,0.20), transparent 24%),
    linear-gradient(160deg, var(--bg-1), var(--bg-2) 62%);
  color: var(--text);
  min-height: 100vh;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(15, 72, 61, 0.12);
}

.lang-toggle button {
  min-width: 42px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.lang-toggle button.active {
  background: linear-gradient(135deg, #10362f, #2eb388);
  color: #fff;
  box-shadow: 0 10px 22px rgba(21, 156, 116, 0.16);
}

body.public-site-page {
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(103,220,180,0.18), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(255,212,128,0.24), transparent 22%),
    linear-gradient(160deg, #f7fffb 0%, #ebfaf4 58%, #fff9eb 100%);
}

.site-root,
.site-shell {
  min-height: 100vh;
}

.site-loading {
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: var(--text-soft);
  font-size: 15px;
}

.site-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 56px;
}

.site-topbar {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  margin-bottom: 22px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(15, 72, 61, 0.12);
  border-radius: 22px;
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 44px rgba(19, 82, 67, 0.10);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.site-brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, #ffe6a0, #5fd8b1 68%, #13805c);
  box-shadow: 0 0 0 7px rgba(95, 216, 177, 0.12);
}

.site-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-brand-text strong {
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.site-brand-text small {
  color: var(--text-soft);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.site-nav a:hover {
  background: rgba(15, 72, 61, 0.06);
}

.site-nav-cta {
  background: linear-gradient(135deg, #123c35, #2cab83);
  color: #fff !important;
  box-shadow: 0 12px 26px rgba(21, 156, 116, 0.18);
}

.site-menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(15, 72, 61, 0.14);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
  padding: 0;
}

.site-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--text);
}

.site-main {
  display: grid;
  gap: 22px;
}

.site-hero,
.site-section,
.site-contact-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(15, 72, 61, 0.10);
  border-radius: 32px;
  box-shadow: 0 24px 64px rgba(19, 82, 67, 0.11);
}

.site-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.78fr);
  gap: 28px;
  padding: 34px;
  min-height: 620px;
  background:
    radial-gradient(circle at 16% 18%, rgba(95, 216, 177, 0.18), transparent 22%),
    radial-gradient(circle at 84% 14%, rgba(255, 214, 120, 0.20), transparent 24%),
    linear-gradient(135deg, rgba(255,255,255,0.9), rgba(237, 251, 244, 0.86));
}

.site-hero::before,
.site-hero::after,
.site-contact-card::before {
  content: "";
  position: absolute;
  border-radius: 36%;
  pointer-events: none;
}

.site-hero::before {
  width: 260px;
  height: 260px;
  top: 40px;
  right: -70px;
  background: linear-gradient(145deg, rgba(153, 231, 190, 0.42), rgba(255, 221, 150, 0.22));
  transform: rotate(14deg);
}

.site-hero::after {
  width: 160px;
  height: 160px;
  left: 42px;
  bottom: -56px;
  background: linear-gradient(145deg, rgba(95, 216, 177, 0.24), rgba(18, 60, 53, 0.06));
}

.site-hero-copy,
.site-hero-panel,
.site-section,
.site-contact-card {
  z-index: 1;
}

.site-kicker,
.site-section-head span,
.site-price-top span,
.site-contact-item span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0f675a;
}

.site-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.site-hero-copy h1,
.site-section-head h2 {
  margin: 0;
  letter-spacing: -0.05em;
}

.site-hero-copy h1 {
  max-width: 10ch;
  font-size: clamp(58px, 8vw, 104px);
  line-height: 0.92;
}

.site-hero-copy p,
.site-section-head p,
.site-feature-card p,
.site-price-card p,
.site-route-card p,
.site-side-note p,
.site-step-row p {
  margin: 0;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.7;
}

.site-hero-actions,
.site-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-primary-link,
.site-secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.site-primary-link {
  background: linear-gradient(135deg, #10362f, #2eb388);
  color: #fff;
  box-shadow: 0 18px 32px rgba(21, 156, 116, 0.18);
}

.site-secondary-link {
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(15, 72, 61, 0.12);
}

.site-stat-row,
.site-hero-grid,
.site-feature-grid,
.site-pricing-grid,
.site-route-grid,
.site-contact-grid {
  display: grid;
  gap: 14px;
}

.site-stat-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site-stat-row article,
.site-hero-card,
.site-feature-card,
.site-price-card,
.site-steps-card,
.site-side-note,
.site-route-card,
.site-contact-item {
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(15, 72, 61, 0.10);
  border-radius: 24px;
  box-shadow: 0 18px 38px rgba(16, 74, 61, 0.08);
}

.site-stat-row article {
  padding: 18px;
}

.site-stat-row strong {
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
}

.site-stat-row span {
  color: var(--text-soft);
  font-size: 13px;
}

.site-hero-panel {
  display: grid;
  gap: 14px;
  align-content: end;
}

.site-hero-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-hero-card {
  padding: 22px;
}

.site-hero-card.accent {
  background: linear-gradient(145deg, rgba(16, 54, 47, 0.96), rgba(46, 179, 136, 0.92));
  color: #fff;
}

.site-hero-card strong,
.site-feature-card h3,
.site-price-card h3,
.site-route-card h3,
.site-side-note strong {
  display: block;
  margin: 8px 0 0;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.site-hero-card p {
  margin: 12px 0 0;
  color: inherit;
  opacity: 0.78;
  line-height: 1.6;
}

.site-section,
.site-contact-card {
  padding: 30px;
}

.site-section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.site-section-head h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.02;
  max-width: 12ch;
}

.site-feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site-feature-card,
.site-route-card {
  padding: 24px;
}

.site-feature-card h3,
.site-route-card h3 {
  margin: 0 0 12px;
}

.site-pricing-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.site-price-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
}

.site-price-card.featured {
  background: linear-gradient(145deg, rgba(17, 57, 50, 0.96), rgba(33, 140, 109, 0.92));
  color: #fff;
}

.site-price-card.featured p,
.site-price-card.featured li,
.site-price-card.featured .site-price-top span {
  color: rgba(255,255,255,0.78);
}

.site-price-card strong {
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.site-price-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.site-price-card li::before {
  content: "•";
  color: #21a97f;
  margin-right: 8px;
}

.site-split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.7fr);
  gap: 18px;
  align-items: start;
}

.site-steps-card {
  padding: 18px;
}

.site-step-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px 6px;
  border-bottom: 1px solid rgba(15, 72, 61, 0.08);
}

.site-step-row:last-child {
  border-bottom: none;
}

.site-step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(82, 210, 170, 0.14);
  color: #0e6a5b;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.site-side-note {
  padding: 22px;
}

.site-route-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site-contact-section {
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}

.site-contact-card {
  background:
    radial-gradient(circle at top right, rgba(255, 214, 120, 0.18), transparent 20%),
    linear-gradient(145deg, rgba(255,255,255,0.92), rgba(236, 250, 244, 0.88));
}

.site-contact-card::before {
  width: 180px;
  height: 180px;
  right: -44px;
  bottom: -48px;
  background: linear-gradient(145deg, rgba(95, 216, 177, 0.22), rgba(255, 214, 120, 0.18));
}

.site-contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.site-contact-item {
  display: grid;
  gap: 8px;
  padding: 20px;
}

.site-contact-item a,
.site-contact-item strong {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
}

@media (max-width: 1100px) {
  .site-hero,
  .site-pricing-grid,
  .site-feature-grid,
  .site-route-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-hero {
    min-height: auto;
  }

  .site-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .site-shell {
    width: min(100% - 20px, 100%);
    padding-top: 10px;
  }

  .site-topbar {
    top: 10px;
    flex-wrap: wrap;
  }

  .site-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 6px;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    text-align: center;
  }

  .site-hero,
  .site-pricing-grid,
  .site-feature-grid,
  .site-route-grid,
  .site-contact-grid,
  .site-stat-row,
  .site-hero-grid {
    grid-template-columns: 1fr;
  }

  .site-hero,
  .site-section,
  .site-contact-card {
    border-radius: 26px;
    padding: 22px;
  }

  .site-hero-copy h1 {
    max-width: none;
    font-size: clamp(42px, 16vw, 72px);
  }

  .site-section-head h2 {
    max-width: none;
  }
}

a {
  color: inherit;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  overflow: hidden;
  overflow-x: auto;
}

.history-table {
  table-layout: auto;
}

.history-table th,
.history-table td {
  width: auto;
}

.history-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 22px;
}

.history-table-wide {
  width: max-content;
  min-width: 1260px;
}

.history-table-wide th,
.history-table-wide td {
  white-space: normal;
}

.table-stack {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.table-stack strong,
.table-stack span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.table-stack-tight {
  gap: 1px;
}

.swap-history-line {
  display: block;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.35;
}

.swap-vehicle-modal .action-field {
  margin-top: 14px;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(15, 72, 61, 0.10);
  text-align: left;
  vertical-align: middle;
}

th {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  background: rgba(21, 156, 116, 0.08);
}

tr:last-child td,
tr:last-child th {
  border-bottom: none;
}

tr:hover td {
  background: rgba(36, 184, 138, 0.04);
}

form {
  margin: 15px 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-soft);
}

input,
select,
button,
a.back,
.filters-form a,
.logout {
  border-radius: var(--radius-sm);
}

input,
select {
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(20, 78, 66, 0.14);
  background: rgba(255,255,255,0.98);
  color: var(--text);
  outline: none;
}

input:focus,
select:focus {
  border-color: rgba(94,224,179,0.6);
  box-shadow: 0 0 0 3px rgba(21,156,116,0.18);
}

button,
a.back,
.filters-form a {
  min-height: 42px;
  padding: 10px 16px;
  border: none;
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  color: #07211d;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
  box-shadow: 0 10px 24px rgba(21,156,116,0.22);
}

button:hover,
a.back:hover,
.filters-form a:hover,
.logout:hover {
  transform: translateY(-1px);
}

button:active,
a.back:active,
.filters-form a:active {
  transform: translateY(0);
}

/* ================= APP LAYOUT ================= */
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.embedded-app {
  min-height: auto;
}

.embedded-app .app-content {
  margin: 0 auto;
}

/* HEADER */
.app-header {
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--panel-border);
}

.app-header h1 {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
}

.logout {
  position: static;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(15, 72, 61, 0.14);
  box-shadow: none;
}

/* ================= FASTAPI LOGIN ================= */
.fastapi-login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 48px);
  background:
    radial-gradient(circle at 8% 12%, rgba(82, 210, 170, 0.26), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(255, 202, 112, 0.30), transparent 26%),
    linear-gradient(135deg, #f8fffb 0%, #ecfbf3 48%, #fff8e8 100%);
}

.fastapi-login-shell {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(410px, 0.78fr);
  gap: clamp(18px, 3vw, 38px);
  align-items: center;
}

.login-hero-panel,
.fastapi-login-card {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 30px 82px rgba(24, 89, 74, 0.16);
}

.login-hero-panel {
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(32px, 5vw, 54px);
  background:
    radial-gradient(circle at 18% 18%, rgba(82, 210, 170, 0.42), transparent 28%),
    radial-gradient(circle at 86% 10%, rgba(255, 202, 112, 0.40), transparent 30%),
    linear-gradient(145deg, rgba(255,255,255,0.94), rgba(233, 250, 243, 0.90));
}

.login-hero-panel::before,
.login-hero-panel::after {
  content: "";
  position: absolute;
  border-radius: 42%;
  pointer-events: none;
}

.login-hero-panel::before {
  width: 250px;
  height: 250px;
  right: -56px;
  top: 64px;
  background: linear-gradient(135deg, rgba(21, 156, 116, 0.22), rgba(255, 183, 78, 0.20));
  transform: rotate(18deg);
}

.login-hero-panel::after {
  width: 142px;
  height: 142px;
  left: 44px;
  top: 72px;
  background: rgba(18, 33, 31, 0.08);
  box-shadow:
    70px 86px 0 rgba(82, 210, 170, 0.13),
    170px 18px 0 rgba(255, 202, 112, 0.17);
}

.login-hero-panel > * {
  position: relative;
  z-index: 1;
}

.login-hero-panel h1 {
  max-width: 580px;
  margin: 0;
  color: #10221f;
  font-size: clamp(48px, 6.5vw, 76px);
  line-height: 0.94;
  letter-spacing: -0.07em;
}

.login-hero-panel p {
  max-width: 540px;
  margin: 16px 0 0;
  color: rgba(18, 33, 31, 0.68);
  font-size: 17px;
  line-height: 1.55;
}

.login-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.login-feature-grid span {
  min-height: 66px;
  display: grid;
  place-items: center;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(18, 33, 31, 0.08);
  color: #10221f;
  font-weight: 900;
  text-align: center;
}

.fastapi-login-card {
  align-self: center;
  width: 100%;
  margin: 0;
  padding: clamp(30px, 4.2vw, 48px);
  background:
    radial-gradient(circle at 94% 0%, rgba(82, 210, 170, 0.13), transparent 32%),
    rgba(255,255,255,0.94);
}

.fastapi-login-card .logo {
  display: inline-flex;
  margin-bottom: 20px;
  padding: 9px 14px;
  border-radius: 999px;
  background: #10221f;
  color: #effff8;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.fastapi-login-card h2 {
  margin: 0;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.login-subtitle {
  max-width: 390px;
  margin: 14px 0 28px;
  color: rgba(18, 33, 31, 0.66);
  line-height: 1.5;
}

.fastapi-login-card form {
  display: grid;
  gap: 18px;
  margin: 0;
  max-width: 390px;
}

.fastapi-login-card .input-group,
.fastapi-login-card form label {
  display: grid;
  gap: 8px;
}

.fastapi-login-card input {
  width: 100%;
  min-height: 58px;
  border-radius: 18px;
  padding: 14px 17px;
  background: #f8fcfa;
  font-size: 15px;
}

.fastapi-login-card .login-btn {
  width: 100%;
  min-height: 60px;
  margin-top: 6px;
  border-radius: 18px;
  background: linear-gradient(135deg, #10221f, #159c74);
  color: #effff8;
  font-size: 17px;
}

.error-msg {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(222, 104, 104, 0.14);
  border: 1px solid rgba(222, 104, 104, 0.26);
  color: #721c1c;
  font-weight: 800;
}

.dashboard-public-page .dashboard-app {
  min-height: 100vh;
}

.dashboard-standalone-shell .app-content {
  max-width: 1560px;
  margin: 0 auto;
  padding: clamp(18px, 2.5vw, 34px);
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
}

.admin-sidebar-nav {
  display: grid;
  gap: 4px;
}

.sidebar-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: auto;
  padding: 11px 14px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 900;
  color: #10221f;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(18, 33, 31, 0.10);
  box-shadow: 0 12px 28px rgba(31, 95, 79, 0.10);
}

.sidebar-logout:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(82, 210, 170, 0.24), rgba(255, 202, 112, 0.18));
}

.admin-page-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
}

.admin-page-title h2 {
  margin: 0;
  color: #10221f;
  font-size: clamp(28px, 3.2vw, 48px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.fastapi-shell .admin-hero {
  display: none !important;
}

.users-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 18px;
  margin-bottom: 18px;
}

.users-create-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 14px;
  align-items: end;
  margin: 0;
}

.users-create-form label {
  min-width: 0;
}

.users-create-form input,
.users-create-form select {
  width: 100%;
  min-height: 52px;
}

.users-create-form button {
  min-height: 52px;
  white-space: nowrap;
}

.users-stats-card {
  align-content: center;
}

.users-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.users-stat {
  min-height: 94px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(18, 33, 31, 0.08);
}

.users-stat span {
  color: rgba(18, 33, 31, 0.62);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.users-stat strong {
  font-size: 34px;
  line-height: 1;
}

.users-list-panel {
  display: grid;
  gap: 18px;
}

.users-list-head p {
  margin: 6px 0 0;
  color: rgba(18, 33, 31, 0.62);
}

.users-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 0.7fr);
  gap: 10px;
  min-width: min(520px, 100%);
}

.users-toolbar input,
.users-toolbar select {
  width: 100%;
  min-height: 48px;
}

.users-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.customers-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  gap: 18px;
  align-items: start;
}

.customers-main-column {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.customer-create-form {
  display: grid;
  gap: 14px;
  margin: 0;
}

.customer-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.customer-fields-grid label {
  min-width: 0;
}

.customer-fields-grid input,
.customer-fields-grid textarea {
  width: 100%;
  min-height: 50px;
}

.customer-notes-field {
  grid-column: 1 / -1;
}

.customer-notes-field textarea {
  min-height: 96px;
  resize: vertical;
}

.customer-manage-card.active {
  border-color: rgba(16, 185, 129, 0.46);
  box-shadow: 0 18px 38px rgba(16, 185, 129, 0.18);
}

.customer-manage-card {
  gap: 12px;
}

.customer-card-top mark {
  min-width: 88px;
  text-align: center;
}

.customer-card-top small {
  color: rgba(18, 33, 31, 0.56);
  font-size: 12px;
}

.customer-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.customer-card-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.10);
  color: rgba(10, 57, 50, 0.84);
  font-size: 12px;
  font-weight: 700;
}

.customer-editor-card,
.customer-dossier-card {
  display: grid;
  gap: 18px;
}

.customer-dossier-card {
  position: sticky;
  top: 20px;
}

.customer-editor-head p,
.customer-dossier-head p {
  margin: 6px 0 0;
  color: rgba(18, 33, 31, 0.62);
}

.customers-list-head {
  align-items: end;
}

.customers-toolbar {
  min-width: min(440px, 100%);
}

.customers-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.customer-dossier-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.customer-dossier-meta,
.customer-dossier-notes {
  border-radius: 18px;
  border: 1px solid rgba(18, 33, 31, 0.08);
  background: rgba(255, 255, 255, 0.72);
  padding: 16px;
}

.customer-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(18, 33, 31, 0.08);
}

.customer-meta-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.customer-meta-row span {
  color: rgba(18, 33, 31, 0.62);
}

.customer-dossier-notes p {
  margin: 10px 0 0;
  color: rgba(18, 33, 31, 0.76);
  line-height: 1.6;
}

.customer-dossier-photo {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(18, 33, 31, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.customer-dossier-photo img {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: cover;
}

.customer-history-wrap {
  margin-top: 2px;
}

.customer-history-wrap .history-table-wide {
  min-width: 880px;
}

.customer-history-wrap .history-table-wide th,
.customer-history-wrap .history-table-wide td {
  padding: 11px 12px;
}

.customer-edit-form button {
  min-width: 220px;
}

.history-react-filters {
  grid-template-columns: minmax(180px, 1.3fr) minmax(180px, 0.9fr) repeat(2, minmax(160px, 0.8fr)) minmax(120px, 0.55fr);
  align-items: end;
}

.history-react-filters > button,
.history-react-filters > .secondary-btn {
  align-self: end;
}

.history-react-filters label {
  min-width: 0;
}

.history-react-filters select,
.history-react-filters input {
  width: 100%;
}

.history-table td {
  font-size: 14px;
}

.history-table th {
  font-size: 11px;
}

.history-table td:last-child,
.history-table th:last-child {
  text-align: right;
}

.history-table td:nth-child(7),
.history-table td:nth-child(8),
.history-table td:nth-child(9),
.history-table td:nth-child(10),
.history-table td:nth-child(11),
.history-table td:nth-child(12) {
  white-space: nowrap;
}

.terms-stack {
  min-width: 110px;
}

.terms-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.terms-status.accepted {
  background: rgba(16, 185, 129, 0.12);
  color: #0f6d59;
}

.terms-status.pending {
  background: rgba(18, 33, 31, 0.08);
  color: rgba(18, 33, 31, 0.62);
}

.table-inline-link {
  color: #0f6d59;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.table-inline-link:hover {
  text-decoration: underline;
}

.signature-thumb-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(18, 33, 31, 0.10);
  background: rgba(255, 255, 255, 0.88);
  overflow: hidden;
}

.signature-thumb {
  display: block;
  width: 100%;
  height: 42px;
  object-fit: contain;
  background: #fff;
}

.customer-meta-row strong {
  text-align: right;
}

.user-manage-card {
  border-left: 6px solid #52d2aa;
}

.user-manage-card.role-admin {
  border-left-color: #10221f;
}

.user-manage-card.role-dealer {
  border-left-color: #f1c75b;
}

.user-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.user-card-top div {
  display: grid;
  gap: 4px;
}

.user-card-top strong {
  font-size: 22px;
  letter-spacing: -0.04em;
}

.user-card-top span {
  color: rgba(18, 33, 31, 0.58);
  font-weight: 800;
}

.user-card-top mark {
  padding: 8px 12px;
  border-radius: 999px;
  color: #10221f;
  background: #ecfdf5;
  font-weight: 900;
}

.user-edit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.user-edit-grid label {
  min-width: 0;
}

.user-edit-grid input,
.user-edit-grid select {
  width: 100%;
  min-height: 48px;
}

.user-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.user-card-actions button {
  min-height: 46px;
}

.fleet-locations-card,
.fleet-admin-top {
  display: grid;
  gap: 16px;
}

.fleet-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.fleet-filter-row label {
  min-width: min(260px, 100%);
}

.fleet-location-filter-block {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  margin-bottom: 20px;
}

.fleet-location-filter-head {
  display: grid;
  gap: 6px;
}

.fleet-location-filter-head p {
  margin: 0;
  color: rgba(18, 33, 31, 0.66);
  font-size: 14px;
  line-height: 1.5;
}

.fleet-location-filter-head strong {
  font-size: 20px;
  color: #10221f;
  letter-spacing: -0.03em;
}

.fleet-location-subfilter {
  margin-top: 0;
  padding-top: 6px;
  border-top: 1px solid rgba(18, 33, 31, 0.08);
}

.fleet-location-filter-cards-secondary {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.fleet-bulk-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(18, 33, 31, 0.08);
  margin-bottom: 18px;
}

.fleet-bulk-toolbar-copy {
  display: grid;
  gap: 4px;
}

.fleet-bulk-toolbar-copy strong {
  font-size: 17px;
  color: #10221f;
}

.fleet-bulk-toolbar-copy span {
  color: rgba(18, 33, 31, 0.68);
  font-size: 14px;
}

.fleet-bulk-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fleet-bulk-location-form {
  margin-bottom: 18px;
}

.fleet-card {
  position: relative;
}

.fleet-card-selected {
  border-color: rgba(16, 185, 129, 0.78);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.12), 0 20px 38px rgba(16, 185, 129, 0.14);
}

.fleet-card-head {
  align-items: start;
}

.fleet-card-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(18, 33, 31, 0.78);
}

.fleet-card-select input {
  width: 18px;
  height: 18px;
  accent-color: #10b981;
}

.customer-editor-actions {
  margin-top: 4px;
}

.customers-archive-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(18, 33, 31, 0.08);
  color: rgba(18, 33, 31, 0.78);
  font-size: 13px;
  font-weight: 700;
}

.customers-archive-toggle input {
  width: 16px;
  height: 16px;
  accent-color: #10b981;
}

.fleet-location-filter-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.fleet-location-filter-card {
  display: grid;
  gap: 6px;
  text-align: left;
  min-height: 88px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(18, 33, 31, 0.10);
  background: rgba(255, 255, 255, 0.84);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.fleet-location-filter-card strong {
  font-size: 15px;
  color: #10221f;
}

.fleet-location-filter-card mark {
  width: fit-content;
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.10);
  color: #0f6d59;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fleet-location-filter-card span {
  color: rgba(18, 33, 31, 0.62);
  font-size: 12px;
  font-weight: 700;
}

.fleet-location-filter-card:hover {
  transform: translateY(-1px);
  border-color: rgba(16, 185, 129, 0.34);
  box-shadow: 0 14px 30px rgba(16, 185, 129, 0.10);
}

.fleet-location-filter-card.active {
  border-color: rgba(16, 185, 129, 0.84);
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.98), rgba(220, 247, 237, 0.96));
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.14), 0 18px 34px rgba(16, 185, 129, 0.18);
}

.location-preset-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.location-preset-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(18, 33, 31, 0.10);
}

.location-preset-chip span {
  color: #10221f;
  font-weight: 700;
  font-size: 13px;
}

.location-preset-chip .danger-btn {
  min-width: auto;
  padding: 8px 12px;
}

/* CONTENT */
.app-content {
  padding: 24px;
  width: 100%;
  max-width: 1400px;
  margin: auto;
}

/* ================= FILTERS ================= */
.filters {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.filters button,
.filters select,
.filters input[type="search"] {
  height: 46px;
  font-weight: 600;
  font-size: 14px;
  background: rgba(255,255,255,0.96);
  color: var(--text);
  border: 1px solid rgba(15, 72, 61, 0.14);
  box-shadow: none;
}

.filters input[type="search"] {
  padding: 0 14px;
  font-weight: 500;
}
.filters button:hover { background: #ffffff; }

  .filters button.active {
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  color: #07211d;
  border-color: transparent;
}
  
/* ================= GRID ================= */
#scooters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* ================= SCOOTER CARD ================= */
.scooter {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,252,248,0.95));
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  min-height: 210px;
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.scooter:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 38px rgba(22, 87, 71, 0.18);
  border-color: rgba(21,156,116,0.20);
}

/* TOP ROW */
.top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.name {
  	font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.vehicle-type {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-soft);
}

.dealer-label {
  font-weight: 700;
  color: var(--accent-strong);
}

.location-label {
  font-weight: 700;
  color: #0f5d4a;
}
  
  
.price-badge {
  background: rgba(21,156,116,0.10);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(21,156,116,0.18);
}

/* STATUS */
.status {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  width: fit-content;
  text-transform: uppercase;
}
.status.available {
  background: rgba(16, 43, 39, 0.07);
  color: #4d6661;
}
.status.rented {
  background: rgba(21,156,116,0.14);
  color: #137556;
}

/* TIMER */
.time {
  font-size: 24px;
  font-weight: 700;
  margin: 12px 0 6px;
}

/* PROGRESS BAR */
.progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(16, 43, 39, 0.10);
  overflow: hidden;
  margin-bottom: 12px;
}
.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent-strong);
  transition: width 0.4s linear, background-color 0.4s linear;
}
.progress-bar.warn { background: var(--warn); }
.progress-bar.danger { background: var(--danger); }

/* ACTIONS */
.actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.actions select,
.actions input,
.actions .action-field {
  flex: 1;
  min-width: 180px;
  font-size: 14px;
}

.action-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.action-field span {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-soft);
}

.action-field input {
  width: 100%;
}
.actions button {
  flex: 1;
  min-width: 120px;
  font-size: 15px;
}
.actions button:not(.stop) {
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  color: #07211d;
}
.actions button.stop {
  background: linear-gradient(180deg, #ef6b6b, var(--danger));
  color: white;
}

/* MOBILE POLISH */
@media (max-width: 600px) {
  .app-header h1 { font-size: 18px; }
  .filters button { font-size: 13px; height: 40px; }
  .scooter { padding: 16px; }
}
.scooter.rented {
  background: linear-gradient(180deg, rgba(237, 255, 248, 0.98), rgba(226, 248, 240, 0.95));
  border: 1px solid rgba(21,156,116,0.20);
  box-shadow: 0 0 0 1px rgba(21,156,116,0.06), 0 16px 30px rgba(22, 87, 71, 0.14);
}
  
.session-time{
   font-weight: 500;
   font-size: 12px;
  text-align: center;
  color: var(--text-soft);
  margin-bottom: 10px;
}

.alert-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.alert-toggle-btn,
.secondary-btn {
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(20, 78, 66, 0.16);
  background: rgba(255,255,255,0.82);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.session-price-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(21, 156, 116, 0.08);
  color: var(--text);
  font-size: 12px;
}

.session-price-summary strong {
  font-size: 14px;
  color: var(--accent-strong);
}
  /* PULSE ALERT за скутери < 5 минути */
.scooter.warning {
  animation: pulseWarn 1.2s infinite;
  border-color: #e53935;
  box-shadow: 0 0 10px 2px rgba(229,57,53,0.6);
}

.scooter.overtime {
  border-color: #e07a15;
  box-shadow: 0 0 0 1px rgba(224, 122, 21, 0.14), 0 16px 30px rgba(224, 122, 21, 0.16);
}

.confirm-modal[hidden] {
  display: none;
}

.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.confirm-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 27, 22, 0.42);
  backdrop-filter: blur(3px);
}

.confirm-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  padding: 24px;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  margin: auto 0;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.confirm-modal-panel h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.confirm-modal-panel p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.5;
}

.confirm-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
}

.customer-start-panel {
  width: min(960px, 100%);
}

.customer-start-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.customer-start-head p {
  margin-top: 8px;
}

.customer-mode-switch {
    display: inline-grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 18px;
    grid-auto-flow: column;
    margin-bottom: 18px;
}

.customer-mode-switch button.active {
  background: linear-gradient(135deg, #0f5d4a, #1fb98b);
  color: #fff;
}

.customer-search-layout,
.customer-form-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.customer-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.action-field-wide {
  grid-column: 1 / -1;
}

.customer-search-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.customer-result-card {
  display: grid;
  gap: 4px;
  text-align: left;
  border-radius: 16px;
  border: 1px solid rgba(18, 33, 31, 0.12);
  background: rgba(255, 255, 255, 0.86);
  padding: 14px;
  color: #10221f;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.customer-result-card.active,
.customer-result-card:hover {
  border-color: rgba(16, 185, 129, 0.46);
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.12);
}

.customer-result-card:hover {
  transform: translateY(-1px);
}

.customer-result-card.active {
  border-color: rgba(16, 185, 129, 0.86);
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.98), rgba(221, 247, 238, 0.96));
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.18), 0 18px 36px rgba(16, 185, 129, 0.20);
}

.customer-result-card.active strong {
  color: #0c5d4c;
}

.customer-result-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-bottom: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f5d4a, #1fb98b);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.customer-result-card span,
.customer-result-card small,
.customer-empty,
.customer-label {
  color: rgba(18, 33, 31, 0.68);
}

.customer-form-grid textarea {
  min-height: 96px;
  resize: vertical;
}

.rental-terms-panel {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(18, 33, 31, 0.10);
}

.rental-terms-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.rental-terms-head strong {
  display: block;
  font-size: 16px;
  color: #10221f;
}

.rental-terms-head p {
  margin-top: 6px;
}

.signature-acceptance {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  min-width: 0;
  color: #10221f;
  font-weight: 700;
}

.signature-acceptance input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
}

.signature-panel {
  display: grid;
  gap: 10px;
}

.customer-photo-panel {
  display: grid;
  gap: 10px;
}

.customer-photo-head strong {
  display: block;
  font-size: 16px;
  color: #10221f;
}

.customer-photo-head p {
  margin-top: 6px;
}

.photo-capture-field {
  display: grid;
  gap: 12px;
}

.customer-photo-preview,
.customer-photo-empty {
  border-radius: 18px;
  border: 1px solid rgba(15, 72, 61, 0.16);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(243, 252, 248, 0.96));
  min-height: 220px;
  overflow: hidden;
}

.customer-photo-preview img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.customer-photo-empty {
  display: grid;
  place-items: center;
  color: rgba(18, 33, 31, 0.42);
  font-weight: 700;
}

.photo-capture-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.photo-capture-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.signature-pad-wrap {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(15, 72, 61, 0.16);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(243, 252, 248, 0.96));
}

.signature-pad-canvas {
  display: block;
  width: 100%;
  height: 210px;
  touch-action: none;
  cursor: crosshair;
}

.signature-pad-canvas.has-signature {
  background: rgba(255,255,255,0.92);
}

.signature-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(18, 33, 31, 0.38);
  font-weight: 700;
  pointer-events: none;
}

.signature-pad-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.signature-pad-actions span {
  color: rgba(18, 33, 31, 0.62);
  font-size: 13px;
  line-height: 1.5;
}

.dashboard-promo-video {
  width: min(100%, 380px);
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  margin: 16px auto 0;
  border-radius: 18px;
  border: 1px solid rgba(15, 72, 61, 0.18);
  background: #102b27;
}

body.modal-open {
  overflow: hidden;
}

@keyframes pulseWarn {
  0% {
    box-shadow: 0 0 0 0 rgba(229,57,53,0.6);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(229,57,53,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(229,57,53,0);
  }
}
  /* Скутер на пауза – позадина посветла и текст со сивкаво */
.scooter.paused {
  background: linear-gradient(180deg, #eef3f1, #e2ebe8);
  opacity: 0.9;
  transition: background 0.3s, opacity 0.3s;
}

/* Ако сакаш може да додадеш и pulse за под 5 мин, независно од паузата */
.scooter.warning {
  animation: pulse 1.2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,0,0,0.3); }
  70% { box-shadow: 0 0 0 10px rgba(255,0,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,0,0,0); }
}
   
.history-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 15px 0;
}

.history-filter label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  font-size: 14px;
}

.history-filter select,
.history-filter input[type="date"] {
  padding: 6px 10px;
  font-size: 14px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.history-filter .btn {
  background-color: #2b6cb0;
  color: #fff;
  padding: 6px 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
}

.history-filter .btn:hover {
  background-color: #234d80;
}

.history-filter .btn-secondary {
  background-color: #718096;
}

.history-filter .btn-secondary:hover {
  background-color: #4a5568;
}
                               
.admin-wrapper {
  display: flex;
  min-height: 100vh;
}

.mobile-admin-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(12, 26, 29, 0.96), rgba(17, 37, 40, 0.92));
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(4, 14, 16, 0.22);
}

.mobile-admin-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.shell-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.mobile-admin-title {
  font-size: 16px;
  font-weight: 700;
  color: #f4fffb;
  text-shadow: 0 1px 1px rgba(0,0,0,0.2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-admin-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #0c2924;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: 0 8px 22px rgba(7, 21, 22, 0.18);
}

.menu-toggle {
  width: 46px;
  min-width: 46px;
  min-height: 46px;
  padding: 0;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: linear-gradient(180deg, rgba(244, 255, 251, 0.18), rgba(220, 247, 239, 0.10));
  border: 1px solid rgba(198, 244, 230, 0.34);
  box-shadow: 0 10px 22px rgba(6, 18, 19, 0.18);
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  background: linear-gradient(180deg, rgba(100, 230, 190, 0.28), rgba(67, 196, 160, 0.20));
  border-color: rgba(114, 235, 198, 0.42);
}

.menu-toggle:active {
  background: linear-gradient(180deg, rgba(63, 197, 157, 0.34), rgba(31, 166, 127, 0.26));
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: #eafff7;
  border-radius: 999px;
}

.admin-sidebar {
  width: 250px;
  padding: 20px 14px;
  background: rgba(250, 255, 252, 0.98);
  border-right: 1px solid var(--panel-border);
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 8px;
  backdrop-filter: blur(12px);
}

.sidebar-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-sidebar h2 {
  margin: 0 0 8px;
  padding: 8px 10px 18px;
  font-size: 20px;
  letter-spacing: -0.02em;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-head-row h2 {
  margin: 0;
  padding: 8px 10px 18px 0;
  border-bottom: 0;
}

.admin-sidebar a {
  color: var(--text-soft);
  text-decoration: none;
  padding: 12px 14px;
  display: block;
  border: 1px solid transparent;
  border-radius: 12px;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.admin-sidebar a.active,
.admin-sidebar a:hover {
  background: rgba(21,156,116,0.10);
  border-color: rgba(21,156,116,0.18);
  color: var(--text);
}

.admin-content {
  flex: 1;
  padding: 28px;
  min-width: 0;
}
 
.filters-form {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 12px;
    margin-bottom: 22px;
}

.filters-form label {
    display: flex;
    flex-direction: column;
    font-size: 14px;
   
}

.filters-form select,
.filters-form input[type=date],
.filters-form button {
    min-height: 42px;
    font-size: 14px;
}

.filters-form a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-panel-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 22px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.msg,
.error {
  margin: 16px 0;
  padding: 12px 14px;
  border-radius: 12px;
}

.msg {
  background: rgba(26, 184, 132, 0.16);
  border: 1px solid rgba(26, 184, 132, 0.30);
  color: #0b5f48;
  font-weight: 700;
}

.error {
  background: rgba(214, 82, 82, 0.14);
  border: 1px solid rgba(214, 82, 82, 0.28);
  color: #8f1d1d;
  font-weight: 700;
}

.fleet-form {
  justify-content: flex-start;
  margin: 0;
  margin-bottom: 18px;
}

.fleet-form label {
  min-width: 220px;
  text-align: left;
}

.fleet-form input,
.fleet-form select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(20, 78, 66, 0.14);
  background: rgba(255,255,255,0.95);
  color: var(--text);
}

.fleet-form option {
  color: #000;
}

.fleet-form .checkbox-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  color: var(--text);
  font-weight: 800;
}

.fleet-form .checkbox-field input {
  width: 18px;
  height: 18px;
  min-height: auto;
  padding: 0;
}

.hint {
  margin: 12px 0 0;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
}

.list-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 8px;
  font-size: 13px;
  color: var(--text-soft);
}

.export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.export-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 12px;
  text-decoration: none;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(20, 78, 66, 0.16);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.export-btn:hover,
.export-btn:active {
  background: #fff;
}

.promo-discount-banner {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(82, 210, 170, 0.20), rgba(21, 156, 116, 0.12));
  border: 1px solid rgba(21, 156, 116, 0.26);
  color: var(--text);
  box-shadow: var(--shadow);
}

.promo-discount-banner strong {
  font-size: 15px;
}

.promo-discount-banner span {
  color: var(--text-soft);
  font-size: 13px;
}

/* ================= DASHBOARD REDESIGN ================= */
.dashboard-app {
  --dash-ink: #12211f;
  --dash-muted: rgba(18, 33, 31, 0.68);
  --dash-card: rgba(255, 255, 255, 0.88);
  --dash-line: rgba(23, 76, 67, 0.14);
}

.dashboard-app .app-header {
  display: none;
}

.dashboard-app .app-content {
  max-width: 1560px;
  padding: 0;
}

.dashboard-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(380px, 0.8fr);
  gap: 28px;
  margin-bottom: 20px;
  padding: 30px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 18% 18%, rgba(82, 210, 170, 0.34), transparent 30%),
    radial-gradient(circle at 78% 14%, rgba(255, 196, 97, 0.32), transparent 26%),
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(233, 250, 243, 0.88));
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: 0 24px 70px rgba(24, 89, 74, 0.18);
}

.dashboard-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -110px;
  width: 280px;
  height: 280px;
  border-radius: 42%;
  background: linear-gradient(135deg, rgba(21,156,116,0.22), rgba(255,183,78,0.20));
  transform: rotate(18deg);
}

.dashboard-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(21,156,116,0.12);
  color: #0b6f53;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dashboard-hero h2 {
  max-width: 760px;
  margin: 0;
  color: var(--dash-ink);
  font-size: clamp(34px, 4.5vw, 66px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.dashboard-hero p {
  max-width: 640px;
  margin: 16px 0 0;
  color: var(--dash-muted);
  font-size: 16px;
  line-height: 1.55;
}

.dashboard-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-self: end;
}

.dashboard-stat {
  min-height: 118px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(23, 76, 67, 0.12);
  box-shadow: 0 16px 34px rgba(24, 89, 74, 0.10);
}

.dashboard-stat span {
  display: block;
  color: var(--dash-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-stat strong {
  display: block;
  margin-top: 12px;
  color: var(--dash-ink);
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.06em;
}

.dashboard-stat-late {
  background: linear-gradient(160deg, rgba(255, 236, 214, 0.86), rgba(255,255,255,0.72));
  border-color: rgba(224, 122, 21, 0.24);
}

.dashboard-filters {
  position: sticky;
  top: 18px;
  z-index: 20;
  grid-template-columns: repeat(4, minmax(120px, 0.8fr)) minmax(170px, 1fr) minmax(260px, 1.35fr);
  align-items: stretch;
  margin-bottom: 22px;
  padding: 12px;
  border-radius: 24px;
  background: rgba(255,255,255,0.76);
  border: 1px solid rgba(255,255,255,0.78);
  box-shadow: 0 18px 42px rgba(24, 89, 74, 0.12);
  backdrop-filter: blur(18px);
}

.dashboard-filters button,
.dashboard-filters select,
.dashboard-filters input[type="search"] {
  height: 50px;
  border-radius: 16px;
  border-color: transparent;
  background: rgba(244, 250, 247, 0.94);
}

.dashboard-filters button.active {
  background: #12211f;
  color: #effff8;
  box-shadow: 0 14px 30px rgba(18, 33, 31, 0.22);
}

.dashboard-app #scooters {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.dashboard-app .scooter {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  padding: 22px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(247, 253, 249, 0.92));
  border: 1px solid rgba(255,255,255,0.86);
  box-shadow: 0 20px 54px rgba(24, 89, 74, 0.12);
}

.dashboard-app .scooter::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: linear-gradient(90deg, #52d2aa, #b9ef7d);
}

.dashboard-app .scooter.rented::before {
  background: linear-gradient(90deg, #159c74, #52d2aa);
}

.dashboard-app .scooter.late::before,
.dashboard-app .scooter.overtime::before,
.dashboard-app .scooter.warning::before {
  background: linear-gradient(90deg, #f0785f, #f1c75b);
}

.dashboard-app .scooter:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 70px rgba(24, 89, 74, 0.18);
}

.dashboard-app .scooter.rented {
  background:
    radial-gradient(circle at 86% 20%, rgba(82, 210, 170, 0.24), transparent 34%),
    linear-gradient(180deg, rgba(246, 255, 251, 0.98), rgba(230, 250, 242, 0.94));
}

.dashboard-app .scooter.warning,
.dashboard-app .scooter.late {
  animation: none;
  border-color: rgba(224, 122, 21, 0.30);
  background:
    radial-gradient(circle at 86% 18%, rgba(241, 199, 91, 0.28), transparent 34%),
    linear-gradient(180deg, rgba(255, 251, 244, 0.98), rgba(255, 242, 226, 0.92));
  box-shadow: 0 22px 58px rgba(178, 91, 22, 0.16);
}

.dashboard-app .top-row {
  align-items: flex-start;
  gap: 14px;
}

.dashboard-app .name {
  font-size: 22px;
  letter-spacing: -0.04em;
}

.dashboard-app .vehicle-type {
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-app .price-badge {
  background: #12211f;
  color: #effff8;
  border: none;
  padding: 8px 12px;
  text-align: center;
}

.dashboard-app .subtitle {
  margin-top: 18px;
  color: var(--dash-muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-app .time {
  margin: 8px 0 8px;
  color: var(--dash-ink);
  font-size: 46px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.07em;
}

.dashboard-app .progress {
  height: 12px;
  background: rgba(18, 33, 31, 0.08);
}

.dashboard-app .progress-bar {
  background: linear-gradient(90deg, #159c74, #52d2aa);
}

.dashboard-app .session-price-summary {
  border-radius: 18px;
  background: rgba(255,255,255,0.68);
  border: 1px solid rgba(23, 76, 67, 0.10);
}

.dashboard-app .actions {
  gap: 10px;
}

.dashboard-app .actions select,
.dashboard-app .actions input,
.dashboard-app .actions .action-field {
  min-width: 100%;
}

.dashboard-app .actions button {
  min-height: 48px;
  border-radius: 16px;
}

.dashboard-app .actions button:not(.stop):not(.secondary-action) {
  background: #12211f;
  color: #effff8;
}

.dashboard-app .actions .secondary-action,
.dashboard-app .secondary-btn,
.dashboard-app .alert-toggle-btn {
  background: rgba(255,255,255,0.82);
  color: #12211f;
  border: 1px solid rgba(23, 76, 67, 0.12);
}

.dashboard-app .actions button.stop {
  background: linear-gradient(180deg, #ff7a65, #dc4f4f);
}

.dashboard-empty {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(23, 76, 67, 0.12);
  color: var(--text-soft);
  font-weight: 800;
  text-align: center;
  box-shadow: 0 16px 36px rgba(24, 89, 74, 0.10);
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

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

.qr-print-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 10px;
  justify-content: flex-end;
}

.qr-print-actions > button,
.qr-print-actions > form,
.qr-print-actions > form > button {
  margin: 0;
  min-height: 42px;
  white-space: nowrap;
}

.qr-print-actions > form {
  display: flex;
}

.promo-check-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(21, 156, 116, 0.08);
  border: 1px solid rgba(21, 156, 116, 0.18);
}

.promo-check-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.promo-check-card span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
}

.promo-check-card p {
  margin: 0;
}

.promo-check-qr {
  width: 150px;
  height: 150px;
  justify-self: center;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(15, 72, 61, 0.12);
}

.qr-image-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  min-height: auto;
  border: none;
  background: transparent;
  box-shadow: none;
  cursor: zoom-in;
}

.qr-image-button:hover,
.qr-image-button:active {
  transform: none;
}

.qr-lightbox[hidden] {
  display: none;
}

.qr-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.qr-lightbox-backdrop {
  position: absolute;
  inset: 0;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: rgba(4, 18, 16, 0.74);
  box-shadow: none;
  cursor: zoom-out;
}

.qr-lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(92vw, 520px);
  padding: 28px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid rgba(15, 72, 61, 0.18);
  box-shadow: 0 26px 70px rgba(0,0,0,0.32);
  text-align: center;
}

.qr-lightbox-panel img {
  width: min(72vw, 360px);
  height: min(72vw, 360px);
  object-fit: contain;
  display: block;
  margin: 0 auto 16px;
}

.qr-lightbox-panel strong {
  display: block;
  font-size: 20px;
  margin-bottom: 8px;
}

.qr-lightbox-panel span {
  color: var(--text-soft);
  font-size: 13px;
}

.qr-lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
}

body.qr-lightbox-open {
  overflow: hidden;
}

.qr-scanner-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(21, 156, 116, 0.08);
  border: 1px solid rgba(21, 156, 116, 0.16);
}

.qr-scanner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.qr-scanner-message {
  color: var(--text-soft);
  font-size: 13px;
}

.qr-scanner-video {
  width: min(100%, 420px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(15, 72, 61, 0.18);
  background: #102b27;
}

.qr-sticker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.qr-sticker {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px;
  border: 1px dashed rgba(15, 72, 61, 0.24);
  border-radius: 16px;
  background: #fff;
  text-align: center;
  page-break-inside: avoid;
}

.qr-sticker-select {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-soft);
}

.qr-sticker-select input {
  width: 18px;
  height: 18px;
  min-height: auto;
}

.qr-sticker img {
  width: 150px;
  height: 150px;
}

.qr-sticker strong {
  font-size: 14px;
}

.qr-sticker span,
.qr-sticker small {
  color: var(--text-soft);
}

.qr-sticker-edit {
  width: 100%;
  margin-top: 8px;
  text-align: left;
}

.qr-sticker-edit summary {
  cursor: pointer;
  color: var(--accent-strong);
  font-weight: 800;
  text-align: center;
}

.qr-master-edit-form {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(21, 156, 116, 0.08);
  border: 1px solid rgba(21, 156, 116, 0.16);
}

.qr-master-edit-form label {
  display: grid;
  gap: 5px;
  margin: 0;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
}

.qr-master-edit-form input,
.qr-master-edit-form select {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(20, 78, 66, 0.14);
  background: rgba(255,255,255,0.95);
  color: var(--text);
}

.qr-master-edit-form .checkbox-field {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qr-master-edit-form .checkbox-field input {
  width: 18px;
  min-height: auto;
}

.qr-master-edit-form button {
  min-height: 38px;
  margin: 0;
}

.promo-public-page {
  display: grid;
  place-items: center;
  padding: 20px;
}

.promo-public-card {
  width: min(100%, 430px);
  padding: 28px;
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  color: #172723;
  text-align: center;
}

.promo-public-card.valid {
  border-color: rgba(21, 156, 116, 0.36);
}

.promo-public-card.location {
  border-color: rgba(41, 131, 204, 0.36);
}

.promo-public-card.expired,
.promo-public-card.used,
.promo-public-card.error {
  border-color: rgba(222, 104, 104, 0.36);
}

.promo-brand {
  font-weight: 800;
  color: var(--accent-strong);
  margin-bottom: 8px;
}

.promo-code-box,
.promo-countdown {
  margin: 14px 0;
  padding: 12px;
  border-radius: 14px;
  background: rgba(21, 156, 116, 0.08);
  font-weight: 800;
}

.promo-location-message {
  min-height: 20px;
  color: var(--text-soft);
  font-weight: 700;
}

.promo-public-qr {
  width: 180px;
  height: 180px;
  padding: 10px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(15, 72, 61, 0.12);
}

@media print {
  .mobile-admin-bar,
  .admin-sidebar,
  .app-header,
  .section-title-row,
  .hint,
  .qr-sticker-select,
  .qr-sticker-edit,
  .admin-panel-card:not(:last-child) {
    display: none !important;
  }

  .admin-wrapper,
  .admin-content,
  .app,
  .app-content,
  .admin-panel-card {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: none !important;
    box-shadow: none !important;
    border: none !important;
    background: #fff !important;
  }

  .qr-sticker-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  body.printing-selected-stickers .qr-sticker {
    display: none !important;
  }

  body.printing-selected-stickers .qr-sticker.print-selected {
    display: flex !important;
  }
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
}

.pagination a,
.pagination span,
.pagination button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 14px;
}

.pagination a,
.pagination button {
  text-decoration: none;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
  box-shadow: none;
}

.pagination a.active,
.pagination button.active {
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  color: #07211d;
  border-color: transparent;
}

.pagination span {
  color: var(--text-soft);
}

.align-end-btn {
  align-self: end;
}

.inline-admin-form {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 4px 0;
  width: 100%;
}

.inline-admin-form input,
.inline-admin-form select {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(20, 78, 66, 0.14);
  background: rgba(255,255,255,0.95);
  color: var(--text);
}

.inline-admin-form option {
  color: #000;
}

.actions-cell {
  min-width: 340px;
  vertical-align: top;
}

.admin-stack-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(15, 72, 61, 0.12);
}

.admin-stack-form input,
.admin-stack-form select {
  width: 100%;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid rgba(20, 78, 66, 0.14);
  background: rgba(255,255,255,0.95);
  color: var(--text);
}

.admin-stack-form option {
  color: #000;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.form-grid.two-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.full-btn {
  width: 100%;
}

.action-button-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
  align-items: stretch;
}

.action-button-row > form,
.action-button-row > button {
  height: 100%;
  margin: 0;
}

.action-button-row .inline-admin-form {
  margin: 0;
  align-items: stretch;
}

.action-button-row .full-btn {
  min-height: 40px;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  font-size: 13px;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
}

.single-action-btn {
  grid-column: 1 / -1;
}

.warn-btn {
  background: linear-gradient(180deg, #f4cf74, var(--warn));
  color: #111;
  box-shadow: 0 10px 24px rgba(239,193,75,0.18);
}

.danger-btn {
  background: linear-gradient(180deg, #eb7070, var(--danger));
  color: #fff;
  box-shadow: 0 10px 24px rgba(214,82,82,0.18);
}

.inactive-row {
  opacity: 0.65;
}

@media (max-width: 900px) {
  .fastapi-login-shell {
    grid-template-columns: 1fr;
  }

  .login-hero-panel {
    min-height: auto;
  }

  .login-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mobile-admin-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 1200;
  }

  .admin-content .app > .app-header {
    display: none;
  }

  .admin-wrapper {
    flex-direction: column;
    min-height: auto;
    padding-top: 74px;
    position: relative;
  }

  .admin-wrapper::before {
    content: "";
    position: fixed;
    inset: 74px 0 0;
    background: rgba(16, 43, 39, 0.24);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
    z-index: 1090;
  }

  .admin-sidebar {
    width: min(320px, calc(100vw - 28px));
    flex-direction: column;
    flex-wrap: nowrap;
    padding: 14px;
    gap: 6px;
    border: 1px solid var(--panel-border);
    border-radius: 0 0 18px 0;
    box-shadow: 0 20px 38px rgba(22, 87, 71, 0.20);
    background: rgba(255, 255, 255, 0.98);
    display: none;
    position: fixed;
    top: 74px;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 1100;
  }

  .admin-sidebar h2 {
    width: 100%;
  }

  .admin-wrapper.menu-open::before {
    opacity: 1;
    pointer-events: auto;
  }

  .admin-wrapper.menu-open .admin-sidebar {
    display: flex;
  }

  .admin-content {
    padding: 18px;
  }

  .actions-cell {
    min-width: 280px;
  }

  .form-grid,
  .form-grid.two-cols {
    grid-template-columns: 1fr;
  }

  .action-button-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-hero {
    grid-template-columns: 1fr;
    padding: 24px;
    border-radius: 28px;
  }

  .dashboard-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .dashboard-stat {
    min-height: 94px;
    padding: 14px;
  }

  .dashboard-stat strong {
    font-size: 34px;
  }

  .dashboard-filters {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-filters input[type="search"] {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .fastapi-login-page {
    padding: 14px;
    place-items: start center;
  }

  .login-hero-panel,
  .fastapi-login-card {
    border-radius: 26px;
  }

  .login-hero-panel {
    padding: 26px;
  }

  .login-hero-panel h1 {
    font-size: 42px;
  }

  .login-feature-grid span {
    min-height: 58px;
  }

  .fastapi-login-card form,
  .login-subtitle {
    max-width: none;
  }

  .dashboard-standalone-shell .app-content {
    padding: 12px;
  }

  .app-header,
  .embedded-app .app-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .app-header h1 {
    font-size: 20px;
  }

  .app-content,
  .admin-content {
    padding: 10px;
  }

  .embedded-app {
    width: 100%;
  }

  .embedded-app .app-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .embedded-app .admin-panel-card,
  .embedded-app .msg,
  .embedded-app .error,
  .embedded-app .list-meta,
  .embedded-app .filters-form,
  .embedded-app .history-table-wrap,
  .embedded-app table {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .filters {
    grid-template-columns: 1fr;
  }

  .dashboard-hero {
    margin: 0 0 14px;
    padding: 20px;
    border-radius: 24px;
  }

  .dashboard-hero h2 {
    font-size: 34px;
  }

  .dashboard-hero p {
    font-size: 14px;
  }

  .dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-stat {
    min-height: 86px;
  }

  .dashboard-stat strong {
    font-size: 30px;
  }

  .dashboard-filters {
    grid-template-columns: 1fr;
    padding: 10px;
    border-radius: 20px;
  }

  .dashboard-filters input[type="search"] {
    grid-column: auto;
  }

  .dashboard-app #scooters {
    grid-template-columns: 1fr;
  }

  .dashboard-app .scooter {
    min-height: 0;
    padding: 18px;
    border-radius: 24px;
  }

  .dashboard-app .time {
    font-size: 38px;
  }

  .filters-form,
  .fleet-form,
  form {
    flex-direction: column;
    align-items: stretch;
  }

  .fleet-form label,
  .filters-form label,
  form label {
    min-width: 100%;
    width: 100%;
  }

  .align-end-btn,
  .fleet-form button,
  .filters-form button,
  .filters-form a,
  .logout {
    width: 100%;
  }

  #scooters {
    grid-template-columns: 1fr;
  }

  .list-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .export-actions {
    flex-direction: column;
  }

  .export-btn {
    width: 100%;
  }

  .section-title-row {
    flex-direction: column;
    align-items: stretch;
  }

  .qr-print-actions {
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .qr-print-actions > button,
  .qr-print-actions > form,
  .qr-print-actions > form > button {
    width: 100%;
  }

  .actions {
    flex-direction: column;
  }

  .actions select,
  .actions button,
  .actions .action-field,
  .inline-admin-form,
  .admin-stack-form,
  .full-btn {
    width: 100%;
  }

  .action-button-row {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .action-button-row .full-btn {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .confirm-modal-actions {
    flex-direction: column;
  }

  .confirm-modal-actions button {
    width: 100%;
  }

  table {
    display: block;
    border: none;
    background: transparent;
    box-shadow: none;
    margin-top: 16px;
    overflow: visible;
  }

  table tr {
    display: block;
    width: 100%;
    margin-bottom: 14px;
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    background: var(--panel);
    box-shadow: var(--shadow);
    overflow: hidden;
  }

  table tr:first-child {
    display: none;
  }

  th,
  td {
    display: grid;
    grid-template-columns: minmax(92px, 120px) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 11px 12px;
    white-space: normal;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }

  td::before {
    content: attr(data-label);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-soft);
    font-weight: 700;
  }

  .actions-cell {
    min-width: 0;
  }

  .actions-cell::before {
    display: block;
    padding-top: 0;
    margin-bottom: 10px;
  }

  td.actions-cell {
    display: block;
  }

  th[colspan] {
    display: none;
  }

  .history-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 16px;
    border-radius: 16px;
  }

  .history-table-desktop {
    display: table;
    min-width: 680px;
    width: 100%;
    margin-top: 0;
    table-layout: auto;
    border: 1px solid var(--panel-border);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
  }

  .history-table-desktop tbody {
    display: table-row-group;
  }

  .history-table-desktop tr {
    display: table-row;
    margin-bottom: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .history-table-desktop tr:first-child {
    display: table-row;
  }

  .history-table-desktop th,
  .history-table-desktop td {
    display: table-cell;
    width: auto;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(15, 72, 61, 0.10);
    white-space: nowrap;
    font-size: 13px;
    vertical-align: middle;
  }

  .history-table-desktop td::before {
    content: none;
  }

  .history-table-desktop th {
    font-size: 11px;
  }

  .history-table-desktop td:last-child,
  .history-table-desktop th:last-child {
    text-align: right;
  }

  .history-table-desktop td[colspan] {
    width: auto;
    white-space: normal;
  }

  .card-table tr {
    display: block;
    width: 100%;
    border-radius: 18px;
  }

  .card-table,
  .card-table tbody {
    display: block;
    width: 100%;
  }

  .fleet-table {
    width: 100%;
    min-width: 100%;
  }

  .card-table td {
    grid-template-columns: minmax(84px, 110px) minmax(0, 1fr);
  }

  .card-table .actions-cell {
    padding-top: 14px;
  }

  .card-table .admin-stack-form {
    padding: 12px;
    border-radius: 14px;
    background: rgba(245, 255, 250, 0.96);
  }

  .card-table .form-grid {
    gap: 10px;
  }

  .card-table .action-button-row {
    margin-top: 10px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 14px;
  }

  .admin-panel-card {
    padding: 14px;
    border-radius: 16px;
  }

  .scooter {
    padding: 16px;
    min-height: auto;
  }

  .time {
    font-size: 21px;
  }

  .top-row {
    align-items: flex-start;
    gap: 10px;
  }
}

.admin-hero {
  margin-bottom: 18px;
}

.admin-nav {
  align-items: center;
  justify-content: flex-end;
}

.admin-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
}

.admin-item-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(20, 83, 67, 0.12);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(241, 255, 249, 0.96));
  box-shadow: 0 18px 42px rgba(27, 84, 70, 0.08);
}

.admin-item-card.inactive-row {
  opacity: 0.76;
  background: linear-gradient(145deg, rgba(248, 250, 252, 0.98), rgba(232, 238, 242, 0.92));
}

.admin-item-meta {
  display: grid;
  gap: 4px;
}

.admin-item-meta strong {
  color: var(--text);
  font-size: 18px;
  letter-spacing: -0.02em;
}

.admin-item-meta span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.inline-card-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.admin-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-section-head h3 {
  margin: 0;
}

.admin-section-head label {
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 720px) {
  .admin-nav {
    justify-content: stretch;
  }

  .admin-nav button {
    flex: 1 1 44%;
  }

  .admin-card-list {
    grid-template-columns: 1fr;
  }

  .admin-section-head {
    display: grid;
    align-items: stretch;
  }

  .admin-section-head label {
    min-width: 0;
  }
}

/* ================= FASTAPI REACT SHELL ================= */
.fastapi-shell {
  --shell-bg: #f5fbf7;
  --shell-ink: #10221f;
  --shell-muted: rgba(18, 33, 31, 0.64);
  background:
    radial-gradient(circle at 16% 10%, rgba(82, 210, 170, 0.19), transparent 30%),
    radial-gradient(circle at 88% 22%, rgba(255, 202, 112, 0.22), transparent 28%),
    linear-gradient(140deg, #fbfffc 0%, #eaf8f0 55%, #fff8e8 100%);
}

.fastapi-shell .admin-sidebar {
  position: sticky;
  top: 0;
  width: 272px;
  height: 100vh;
  padding: 22px 16px;
  background:
    radial-gradient(circle at 28% 0%, rgba(82, 210, 170, 0.20), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(241,252,247,0.90));
  border-right: 1px solid rgba(19, 75, 62, 0.12);
  box-shadow: 18px 0 48px rgba(30, 88, 73, 0.08);
}

.fastapi-shell .admin-sidebar h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--shell-ink);
  border-bottom-color: rgba(18, 33, 31, 0.10);
}

.fastapi-shell .admin-sidebar h2::before {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: linear-gradient(135deg, #52d2aa, #ffca70);
  box-shadow: 0 0 0 7px rgba(82, 210, 170, 0.14);
}

.fastapi-shell .admin-sidebar a {
  margin: 4px 0;
  color: var(--shell-muted);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.fastapi-shell .admin-sidebar a.active,
.fastapi-shell .admin-sidebar a:hover {
  color: #08231e;
  background: linear-gradient(135deg, rgba(82, 210, 170, 0.23), rgba(255, 202, 112, 0.18));
  border-color: rgba(29, 145, 110, 0.18);
  box-shadow: 0 14px 28px rgba(40, 119, 99, 0.10);
}

.fastapi-shell .admin-content {
  padding: clamp(18px, 2.4vw, 34px);
}

.fastapi-shell .app-content {
  max-width: 1640px;
}

.fastapi-shell .dashboard-hero {
  min-height: 260px;
  padding: clamp(24px, 3vw, 42px);
  border-radius: 38px;
  background:
    radial-gradient(circle at 14% 20%, rgba(82, 210, 170, 0.38), transparent 31%),
    radial-gradient(circle at 82% 18%, rgba(255, 202, 112, 0.36), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,0.98), rgba(239,253,247,0.92));
  border: 1px solid rgba(255,255,255,0.84);
  box-shadow: 0 30px 80px rgba(28, 92, 76, 0.16);
}

.fastapi-shell .dashboard-kicker {
  background: rgba(18, 33, 31, 0.92);
  color: #edfff8;
}

.fastapi-shell .dashboard-hero h2 {
  color: #10221f;
  text-wrap: balance;
}

.fastapi-shell .dashboard-hero p {
  color: rgba(18, 33, 31, 0.66);
}

.fastapi-shell .dashboard-stat {
  background: rgba(255,255,255,0.76);
  border-color: rgba(18, 33, 31, 0.10);
  backdrop-filter: blur(16px);
}

.fastapi-shell .dashboard-filters {
  top: 14px;
  border-radius: 26px;
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(255,255,255,0.90);
  box-shadow: 0 22px 52px rgba(31, 95, 79, 0.12);
}

.fastapi-shell .dashboard-filters button,
.fastapi-shell .dashboard-filters select,
.fastapi-shell .dashboard-filters input[type="search"] {
  background: #f7fbf8;
  border: 1px solid rgba(18, 33, 31, 0.08);
}

.fastapi-shell .dashboard-filters button.active {
  background: linear-gradient(135deg, #10221f, #174c40);
}

.fastapi-shell #scooters {
  align-items: stretch;
}

.fastapi-shell .scooter {
  border-radius: 32px;
  background:
    radial-gradient(circle at 92% 14%, rgba(82, 210, 170, 0.15), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,254,249,0.94));
  box-shadow: 0 20px 58px rgba(24, 89, 74, 0.11);
}

.fastapi-shell .scooter .name {
  font-size: 23px;
}

.fastapi-shell .actions select,
.fastapi-shell .actions input {
  background: rgba(255,255,255,0.94);
  border-color: rgba(18, 33, 31, 0.10);
}

.fastapi-shell .actions button:not(.secondary-action):not(.stop):not(.pause):not(.resume) {
  background: linear-gradient(135deg, #10221f, #1a6e58);
  color: #effff8;
}

.fastapi-shell .admin-panel-card {
  border-radius: 30px;
  background:
    radial-gradient(circle at 96% 0%, rgba(82, 210, 170, 0.12), transparent 28%),
    rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.88);
  box-shadow: 0 24px 64px rgba(31, 95, 79, 0.12);
}

.fastapi-shell .admin-item-card {
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(31, 95, 79, 0.10);
}

.fastapi-shell .mobile-admin-bar {
  background: rgba(255,255,255,0.90);
  border-bottom: 1px solid rgba(18, 33, 31, 0.10);
}

.fastapi-shell .mobile-admin-title {
  color: #10221f;
  text-shadow: none;
}

.fastapi-shell .menu-toggle span {
  background: #10221f;
}

@media (max-width: 900px) {
  .fastapi-shell .admin-sidebar {
    position: fixed;
    height: auto;
  }

  .fastapi-shell .dashboard-hero {
    grid-template-columns: 1fr;
    border-radius: 28px;
  }

  .fastapi-shell .dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .fastapi-shell .dashboard-stat {
    min-height: 92px;
    padding: 14px;
  }

  .fastapi-shell .dashboard-stat strong {
    font-size: 32px;
  }
}

.promo-public-card {
  max-width: 520px;
  text-align: center;
}

.promo-public-qr {
  display: block;
  width: min(260px, 78vw);
  height: min(260px, 78vw);
  margin: 22px auto 14px;
  border-radius: 24px;
  border: 1px solid rgba(18, 33, 31, 0.10);
  box-shadow: 0 22px 48px rgba(31, 95, 79, 0.14);
}

.promo-code-large {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #10221f;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.promo-discount {
  font-size: 22px;
  font-weight: 900;
  color: #0f766e;
}

.promo-salon-block {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding: 16px;
  text-align: left;
  border: 1px solid rgba(18, 33, 31, 0.10);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.95), rgba(255, 251, 235, 0.88));
}

.promo-salon-block span {
  color: rgba(18, 33, 31, 0.58);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.promo-salon-block strong {
  color: #10221f;
  font-size: 19px;
  font-weight: 900;
}

.promo-salon-block p {
  margin: 0;
  color: rgba(18, 33, 31, 0.70);
}

.promo-map-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.promo-map-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(18, 33, 31, 0.12);
  border-radius: 14px;
  background: #fff;
  color: #10221f;
  font-weight: 900;
  text-decoration: none;
}

.qr-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.qr-builder-form {
  display: grid;
  gap: 16px;
}

.qr-builder-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.qr-form-section {
  display: grid;
  gap: 12px;
  padding: 15px;
  border: 1px solid rgba(20, 78, 66, 0.10);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,255,252,0.92));
  box-shadow: 0 8px 20px rgba(31, 95, 79, 0.04);
}

.qr-form-section--full {
  grid-column: 1 / -1;
}

.qr-form-section-head {
  display: grid;
  gap: 2px;
}

.qr-form-section-head span {
  color: rgba(18, 33, 31, 0.52);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qr-form-section-head h4 {
  margin: 0;
  color: #10221f;
  font-size: 16px;
  font-weight: 900;
}

.qr-form-section-head p {
  margin: 0;
  color: rgba(18, 33, 31, 0.60);
  font-size: 12px;
  line-height: 1.4;
}

.qr-form-grid {
  display: grid;
  gap: 10px 12px;
}

.qr-form-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.qr-form-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.qr-form-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.qr-field {
  display: grid;
  gap: 5px;
  min-width: 0;
  width: 100%;
}

.qr-field > span {
  color: rgba(18, 33, 31, 0.68);
  font-size: 12px;
  font-weight: 800;
}

.qr-field-wide {
  grid-column: span 2;
}

.qr-builder-form input,
.qr-builder-form select {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid rgba(20, 78, 66, 0.14);
  background: rgba(255,255,255,0.98);
  color: #10221f;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

.qr-toggle-card {
  display: grid;
  align-content: center;
  gap: 5px;
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid rgba(20, 78, 66, 0.12);
  border-radius: 10px;
  background: rgba(246, 255, 251, 0.92);
}

.qr-toggle-card--wide {
  grid-column: span 2;
}

.qr-toggle-card--inline {
  align-content: start;
  min-height: 34px;
  padding: 6px 8px;
  gap: 4px;
}

.qr-toggle-title {
  color: rgba(18, 33, 31, 0.58);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.qr-form-actions {
  display: flex;
  justify-content: flex-end;
}

.qr-advanced-details {
  padding: 10px 12px;
  border: 1px dashed rgba(20, 78, 66, 0.18);
  border-radius: 12px;
  background: rgba(250, 255, 252, 0.9);
}

.qr-advanced-details summary {
  cursor: pointer;
  color: #0f766e;
  font-size: 12px;
  font-weight: 900;
  list-style: none;
}

.qr-advanced-details summary::-webkit-details-marker {
  display: none;
}

.qr-advanced-grid {
  margin-top: 12px;
}

.qr-inline-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 14px;
  align-items: end;
  width: 100%;
  overflow: hidden;
}

.qr-inline-form label {
  min-width: 0;
  width: 100%;
}

.qr-inline-form input,
.qr-inline-form select {
  width: 100%;
  min-width: 0;
}

.qr-inline-form .checkbox-label {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  min-height: 48px;
}

.qr-inline-form .checkbox-label input {
  width: 18px;
  min-width: 18px;
}

.qr-inline-form label:last-child {
  max-width: 180px;
}

.promo-redeem-form {
  grid-template-columns: minmax(240px, 1fr) auto;
}

.qr-toolbar {
  gap: 16px;
}

.qr-toolbar .action-button-row {
  justify-content: flex-end;
}

.qr-card-list {
  grid-template-columns: repeat(auto-fit, minmax(520px, 1fr));
}

.qr-master-card {
  gap: 18px;
  overflow: hidden;
}

.qr-master-head,
.qr-master-preview {
  display: flex;
  align-items: center;
  gap: 18px;
}

.qr-master-head {
  justify-content: space-between;
}

.qr-master-preview img {
  width: 116px;
  height: 116px;
  cursor: zoom-in;
  border-radius: 18px;
  border: 1px solid rgba(18, 33, 31, 0.10);
}

.qr-master-preview div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.qr-master-preview span,
.qr-master-preview a {
  color: rgba(18, 33, 31, 0.68);
  font-size: 14px;
  word-break: break-word;
}

.checkbox-row {
  display: flex !important;
  align-items: center;
  width: 100%;
  min-height: 24px;
  grid-column: 1 / -1;
  margin: 2px 0 4px;
}

.checkbox-control {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  min-height: 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #10221f;
  font-weight: 800;
  font-size: 11px;
  line-height: 1.25;
  cursor: pointer;
  transition: color 0.18s ease;
  white-space: normal;
  width: auto;
  justify-content: flex-start;
  grid-template-columns: none !important;
  text-align: left !important;
}

.checkbox-control:focus-within {
  color: #0b5f57;
}

.checkbox-control span {
  display: inline-flex !important;
  align-items: center;
  min-width: 0;
  flex: 0 1 auto;
  text-align: left;
}

.checkbox-control input {
  appearance: none;
  -webkit-appearance: none;
  width: 28px;
  height: 16px;
  min-width: 28px;
  margin: 0;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  background-color: #dbe7e3;
  background-image: radial-gradient(circle, #ffffff 0 48%, transparent 52%);
  background-repeat: no-repeat;
  background-position: 2px center;
  background-size: 10px 10px;
  box-shadow: none;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, background-position 0.18s ease, box-shadow 0.18s ease;
}

.checkbox-control input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.14);
}

.checkbox-control input:checked {
  border-color: #0f766e;
  background-color: #10b981;
  background-position: calc(100% - 2px) center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.checkbox-control input:checked + span {
  color: #0b5f57;
}

.qr-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 20, 17, 0.68);
  backdrop-filter: blur(8px);
}

.qr-lightbox-card {
  width: min(92vw, 520px);
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 28px;
  border-radius: 32px;
  background: #ffffff;
  color: #10221f;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.26);
}

.qr-lightbox-card img {
  width: min(360px, 74vw);
  height: min(360px, 74vw);
}

.qr-lightbox-card p {
  max-width: 100%;
  margin: 0;
  color: rgba(18, 33, 31, 0.68);
  word-break: break-word;
  text-align: center;
}

.qr-lightbox-close {
  justify-self: end;
}

@media (max-width: 900px) {
  .qr-builder-layout {
    grid-template-columns: 1fr;
  }

  .qr-form-section--full {
    grid-column: span 1;
  }

  .qr-form-grid--4,
  .qr-form-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qr-form-grid--2 {
    grid-template-columns: 1fr;
  }

  .qr-field-wide,
  .qr-toggle-card--wide {
    grid-column: span 1;
  }

  .qr-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qr-inline-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .promo-redeem-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .qr-form-section {
    padding: 16px;
    border-radius: 18px;
  }

  .qr-form-grid--4,
  .qr-form-grid--3,
  .qr-form-grid--2 {
    grid-template-columns: 1fr;
  }

  .qr-form,
  .qr-inline-form,
  .qr-card-list {
    grid-template-columns: 1fr;
  }

  .qr-inline-form label:last-child {
    max-width: none;
  }

  .qr-master-preview {
    align-items: flex-start;
  }

  .qr-master-preview img {
    width: 92px;
    height: 92px;
  }

  .qr-toolbar .action-button-row {
    width: 100%;
    justify-content: stretch;
  }

  .qr-toolbar .action-button-row button {
    flex: 1 1 46%;
  }
}

/* Final login polish. Kept at the end so older generic login-card rules cannot override it. */
body.fastapi-login-page {
  align-items: center;
  justify-items: center;
}

body.fastapi-login-page .fastapi-login-shell {
  width: min(1180px, calc(100vw - 40px));
  grid-template-columns: minmax(0, 1.03fr) minmax(420px, 0.78fr);
}

body.fastapi-login-page .login-shell-topbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}

body.fastapi-login-page .login-hero-panel {
  min-height: 500px;
  padding: clamp(34px, 5vw, 54px);
}

body.fastapi-login-page .login-hero-panel h1 {
  font-size: clamp(48px, 6.2vw, 76px);
}

body.fastapi-login-page .fastapi-login-card {
  max-width: 470px;
  justify-self: start;
  padding: clamp(34px, 4.2vw, 48px);
}

body.fastapi-login-page .fastapi-login-card form,
body.fastapi-login-page .login-subtitle {
  max-width: 390px;
}

body.fastapi-login-page .fastapi-login-card input,
body.fastapi-login-page .fastapi-login-card .login-btn {
  width: 100%;
}

@media (max-width: 900px) {
  body.fastapi-login-page .fastapi-login-shell {
    width: min(620px, calc(100vw - 28px));
    grid-template-columns: 1fr;
  }

  body.fastapi-login-page .fastapi-login-card {
    max-width: none;
    justify-self: stretch;
  }
}

/* Final QR promo layout override. Must stay last because generic card/form rules are broad. */
.fastapi-shell .qr-card-list {
  grid-template-columns: repeat(auto-fit, minmax(660px, 1fr));
  align-items: start;
}

.fastapi-shell .qr-master-card {
  overflow: hidden;
}

.fastapi-shell .qr-master-card .qr-inline-form {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px 16px !important;
  align-items: end;
  width: 100%;
  margin-top: 6px;
}

.fastapi-shell .qr-master-card .qr-inline-form label {
  min-width: 0 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0;
  color: rgba(18, 33, 31, 0.68);
  font-size: 13px;
  line-height: 1.25;
  white-space: normal;
}

.fastapi-shell .qr-master-card .qr-inline-form input,
.fastapi-shell .qr-master-card .qr-inline-form select {
  width: 100% !important;
  min-width: 0 !important;
  height: 52px;
}

.fastapi-shell .qr-master-card .qr-inline-form label:nth-child(4),
.fastapi-shell .qr-master-card .qr-inline-form .checkbox-row {
  grid-column: 1 / -1;
}

.fastapi-shell .qr-master-card .qr-inline-form .checkbox-control input {
  width: 30px !important;
  min-width: 30px !important;
  height: 18px;
}

.fleet-form .checkbox-row,
.qr-inline-form .checkbox-row,
.admin-panel-card .checkbox-row {
  display: flex !important;
  flex-wrap: nowrap;
  align-self: center;
}

.qr-select-control {
  font-size: 15px;
  font-weight: 900;
}

.fastapi-shell .admin-item-card .inline-card-form:not(.qr-inline-form) {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
  width: 100%;
}

.fastapi-shell .admin-item-card .inline-card-form:not(.qr-inline-form) label {
  display: grid;
  grid-template-columns: minmax(110px, 0.34fr) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  margin: 0;
  color: rgba(18, 33, 31, 0.72);
  font-weight: 900;
}

.fastapi-shell .admin-item-card .inline-card-form:not(.qr-inline-form) input,
.fastapi-shell .admin-item-card .inline-card-form:not(.qr-inline-form) select {
  width: 100% !important;
  min-width: 0 !important;
  height: 52px;
}

.fastapi-shell .qr-master-panel {
  display: grid;
  gap: 18px;
}

.fastapi-shell .qr-master-picker {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(236, 253, 245, 0.72);
  border: 1px solid rgba(18, 33, 31, 0.08);
}

.fastapi-shell .qr-master-picker label {
  display: grid;
  gap: 8px;
  font-weight: 900;
  color: rgba(18, 33, 31, 0.70);
}

.fastapi-shell .qr-master-picker select {
  width: 100%;
  min-height: 180px;
  padding: 10px;
}

.fastapi-shell .qr-master-picker option {
  padding: 8px 10px;
}

.fastapi-shell .qr-picker-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fastapi-shell .qr-lightbox {
  padding: clamp(16px, 4vw, 36px);
}

.fastapi-shell .qr-lightbox-card {
  position: relative;
  width: min(92vw, 620px);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  padding: clamp(22px, 4vw, 36px);
  padding-top: 64px;
  border-radius: 30px;
}

.fastapi-shell .qr-lightbox-card img {
  width: min(390px, 72vw);
  height: min(390px, 72vw);
}

.fastapi-shell .qr-lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: auto !important;
  min-width: 0 !important;
  max-width: 92px;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  box-shadow: none;
  transform: none;
  z-index: 2;
}

.fastapi-shell .qr-lightbox-close:hover {
  transform: none;
}

@media (max-width: 1280px) {
  .fastapi-shell .qr-card-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .users-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .customers-layout-grid,
  .customer-dossier-grid,
  .customer-form-grid,
  .customer-fields-grid {
    grid-template-columns: 1fr;
  }

  .users-create-form,
  .users-toolbar {
    grid-template-columns: 1fr;
  }

  .rental-terms-head,
  .signature-pad-actions,
  .photo-capture-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 640px) {
  .fastapi-shell .qr-master-card .qr-inline-form {
    grid-template-columns: 1fr !important;
  }

  .fastapi-shell .admin-item-card .inline-card-form:not(.qr-inline-form) label {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .fastapi-shell .qr-lightbox-card {
    width: min(94vw, 420px);
    padding-top: 54px;
  }

  .user-card-actions {
    grid-template-columns: 1fr;
  }

  .customer-start-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .customer-mode-switch {
    width: 100%;
  }
}
