/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --border: #dbe4f0;
  --border-strong: #c9d8eb;
  --text: #0f172a;
  --muted: #475569;
  --primary: #2563eb;
  --primary-soft: #e9f2ff;
  --danger-soft: #fee2e2;
  --danger: #b91c1c;
  --success-soft: #dcfce7;
  --success: #166534;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
  color: var(--text);
  width: 100%;
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

/* CONTAINER */
#app {
  max-width: 640px;
  margin: auto;
  padding: 20px 16px 104px;
}

/* HEADINGS */
h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

p,
label,
span,
option {
  color: var(--muted);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 18px 88px 14px 16px;
  background: rgba(248, 251, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(219, 228, 240, 0.8);
}

.app-header {
  min-height: 58px;
}

.app-header h1 {
  max-width: 640px;
  margin: 0;
  overflow-wrap: anywhere;
}

.header-logout {
  position: absolute;
  top: 18px;
  right: 16px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.header-logout:hover {
  background: transparent;
  color: var(--text);
  transform: none;
  opacity: 1;
}

.app-container {
  width: 100%;
}

/* BUTTONS */
button {
  border: none;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--primary);
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}

button:hover {
  opacity: 0.94;
  transform: translateY(-1px);
}

button:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

/* INPUTS */
input, select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 12px 14px;
  margin: 0;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
}

input:focus,
select:focus {
  outline: 2px solid rgba(37, 99, 235, 0.18);
  border-color: var(--primary);
}

input::placeholder {
  color: #94a3b8;
}

/* CARD */
.station {
  background: var(--surface);
  padding: 16px;
  border-radius: 18px;
  margin-bottom: 16px;
  border: 1px solid rgba(219, 228, 240, 0.9);
  box-shadow: var(--shadow);
}

/* HEADER */
.station-header {
  cursor: pointer;
  display: grid;
  gap: 8px;
}

.station-header p {
  font-size: 0.95rem;
}

.station-header h3 {
  margin-bottom: 2px;
}

.station-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.station-title-row h3 {
  margin-right: 8px;
}

/* SLOTS GRID */
.slots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #edf2f7;
}

/* SLOT BUTTON */
.slot-btn {
  min-height: 72px;
  border-radius: 14px;
  padding: 12px;
  background: var(--primary-soft);
  border: 1px solid var(--border-strong);
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 600;
  line-height: 1.35;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}

.slot-btn.slot-available {
  background: #dcfce7;
  border-color: #86efac;
}

.slot-btn.slot-low {
  background: #ffedd5;
  border-color: #fdba74;
}

.slot-btn.slot-full,
.slot-btn.disabled {
  background: #e5e7eb;
  border-color: #cbd5e1;
  color: #64748b;
}

.slot-time {
  color: var(--text);
  max-width: 100%;
  font-size: 0.82rem;
  white-space: nowrap;
}

.slot-meta {
  color: #334155;
  font-weight: 500;
  font-size: 0.82rem;
}

.empty-slots-message {
  grid-column: 1 / -1;
  padding: 12px 0 2px;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
}

/* BOOKING SECTION */
.bookings-section {
  background: var(--surface);
  padding: 16px;
  border-radius: 18px;
  margin-bottom: 18px;
  border: 1px solid rgba(219, 228, 240, 0.9);
  box-shadow: var(--shadow);
}

.bookings-section h2 {
  margin-bottom: 14px;
}

.booking-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #eef2f7;
}

.bookings-content {
  max-height: 390px;
  overflow-y: auto;
  padding-right: 4px;
}

.booking-actions {
  display: grid;
  gap: 8px;
  flex: 0 0 auto;
}

.map-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.map-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-pin-btn {
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 12px;
}

.map-pin-btn svg {
  width: 20px;
  height: 20px;
}

.booking-card:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

/* FILTERS */
.filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0 18px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid rgba(219, 228, 240, 0.9);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  width: 100%;
}

.filter-row input,
.filter-row select {
  min-width: 0;
  padding: 10px 12px;
  font-size: 0.9rem;
}

#stationFilter {
  width: 100%;
}

.section-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  transform: none;
}

.section-toggle:hover {
  opacity: 1;
  transform: none;
}

.section-toggle span:first-child {
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 700;
}

.section-toggle-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 700;
}

.collapsible-content {
  margin-top: 14px;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: min(92vw, 640px);
  display: flex;
  justify-content: space-around;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.92);
  color: #e2e8f0;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.24);
  backdrop-filter: blur(12px);
}

.bottom-nav button {
  background: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
  min-width: 0;
  font-size: 0.88rem;
  font-weight: 500;
  transform: none;
}

.bottom-nav button:hover {
  opacity: 1;
  transform: none;
}

.bottom-nav button.active {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.hero-card,
.details-section,
.content-section,
.stock-summary {
  background: var(--surface);
  padding: 16px;
  border-radius: 18px;
  margin-bottom: 18px;
  border: 1px solid rgba(219, 228, 240, 0.9);
  box-shadow: var(--shadow);
}

.hero-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.hero-card p,
.stock-summary div {
  font-size: 0.92rem;
}

.driver-stat-card,
.membership-summary {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.driver-stats-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.driver-stat-card {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 16px;
  border: 1px solid #bfdbfe;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.driver-stat-card span,
.membership-summary > div span {
  font-size: 0.82rem;
  font-weight: 600;
}

.driver-stat-card strong,
.membership-summary strong {
  color: var(--text);
  font-size: 1.08rem;
}

.service-area-ribbon {
  position: sticky;
  top: 58px;
  z-index: 19;
  overflow: hidden;
  background: #fff7ed;
  border-bottom: 1px solid #fed7aa;
}

.service-area-ribbon-track {
  display: inline-flex;
  min-width: max-content;
  gap: 28px;
  padding: 8px 0;
  color: #7a3413;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  animation: service-ribbon-scroll 22s linear infinite;
}

.service-area-ribbon-track span {
  color: inherit;
}

@keyframes service-ribbon-scroll {
  from {
    transform: translateX(100vw);
  }
  to {
    transform: translateX(-100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-area-ribbon {
    overflow-x: auto;
  }

  .service-area-ribbon-track {
    animation: none;
    padding-left: 16px;
  }
}

.payment-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.payment-options button {
  padding: 10px 8px;
  font-size: 0.84rem;
}

.details-form,
.details-grid,
.details-summary {
  display: grid;
}

.details-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.details-header h2 {
  margin: 0;
}

.details-header button {
  flex: 0 0 auto;
  width: auto;
  white-space: nowrap;
}

.details-form {
  gap: 14px;
}

.details-grid {
  gap: 12px;
}

.details-summary {
  gap: 6px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fbff;
  border: 1px solid var(--border);
}

.stock-summary {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  background: #f8fbff;
}

.station-warning {
  color: var(--danger);
  font-weight: 700;
}

.risk-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.risk-green {
  background: #dcfce7;
  color: #166534;
}

.risk-orange {
  background: #fef3c7;
  color: #92400e;
}

.risk-red {
  background: #fee2e2;
  color: #b91c1c;
}

.risk-neutral {
  background: #e2e8f0;
  color: #334155;
}

.slot-btn.risk-green {
  background: #ecfdf5;
}

.slot-btn.risk-orange {
  background: #fff7ed;
}

.slot-btn.risk-red {
  background: #fef2f2;
}

.slot-btn.risk-neutral {
  background: #eff6ff;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 50;
}

.booking-modal {
  width: min(100%, 420px);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  display: grid;
  gap: 12px;
  background: var(--surface);
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.26);
}

.loading-message {
  grid-column: 1 / -1;
  padding: 14px 4px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
}

.modal-subtitle,
.modal-note {
  font-size: 0.9rem;
}

.modal-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.modal-actions.single-action {
  grid-template-columns: 1fr;
}

.message-modal {
  justify-items: center;
  text-align: center;
}

.message-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.35rem;
  font-weight: 800;
}

.message-icon.success {
  background: #dcfce7;
  color: #166534;
}

.message-icon.warning {
  background: #fef3c7;
  color: #92400e;
}

.delete-slot-details {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  text-align: left;
}

.delete-slot-details-title {
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
}

.delete-slot-detail {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fbff;
}

.delete-slot-detail strong {
  color: var(--text);
  font-size: 0.92rem;
}

.delete-slot-detail span {
  font-size: 0.82rem;
}

.admin-stock-summary {
  display: grid;
  gap: 10px;
}

/* LOGIN PAGE */
.auth-body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: min(100%, 420px);
  padding: 28px 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(219, 228, 240, 0.9);
  border-radius: 24px;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.12);
  display: grid;
  gap: 14px;
}

.auth-card h2 {
  margin-bottom: 0;
  text-align: center;
}

.subtitle {
  text-align: center;
  font-size: 0.98rem;
}

.auth-extra-fields {
  display: grid;
  gap: 12px;
}

.auth-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.otp-hint {
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

.signup-disclaimer {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fbff;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.signup-disclaimer ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

.signup-disclaimer li + li {
  margin-top: 4px;
}

#phone {
  width: 100%;
}

#loginBtn, #signupBtn {
  width: 100%;
  display: block;
}

.error {
  min-height: 22px;
  font-size: 0.92rem;
  color: var(--danger);
  text-align: center;
}

.admin-body {
  padding: 0 16px 40px;
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
  position: relative;
  touch-action: pan-y;
}

.admin-shell {
  width: 100%;
  max-width: min(640px, 100%);
  margin: 0 auto;
  overflow-x: clip;
  min-width: 0;
}

.admin-shell > #app {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 8px 0 104px;
}

.admin-body .app-header,
.admin-body .app-container,
.admin-dashboard,
.admin-section,
.admin-date-row,
.slot-create-form,
.slot-create-grid,
.admin-booking-summary,
.admin-summary-pair,
.admin-action-row,
.admin-slot-panel,
.slot-manager,
.slot-bulk-actions,
.slot-checkbox-list,
.slot-checkbox-item {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.admin-date-row {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 16px 0 8px;
  padding: 16px;
  border: 1px solid rgba(219, 228, 240, 0.9);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.admin-date-row label {
  font-weight: 600;
  color: var(--text);
}

.admin-date-row input {
  min-width: 0;
}

.admin-dashboard {
  display: grid;
  gap: 18px;
  margin-top: 8px;
  min-width: 0;
}

.admin-section {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(219, 228, 240, 0.9);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

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

.admin-section > .secondary-btn,
.admin-section > button {
  width: 100%;
}

.admin-section .admin-action-row {
  grid-template-columns: 1fr;
  margin-top: 0;
}

.admin-input-wrap {
  margin-top: 0;
}

.admin-language-wrap {
  display: grid;
  gap: 10px;
}

.admin-stock-update-wrap {
  display: grid;
  gap: 10px;
}

.slot-create-form {
  display: grid;
  gap: 12px;
  margin-top: 0;
  padding: 14px;
  border-radius: 14px;
  background: #f8fbff;
  border: 1px solid var(--border);
  min-width: 0;
}

.slot-create-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.slot-create-grid > div {
  min-width: 0;
}

.field-label {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
}

.admin-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.admin-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #f8fbff;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  max-width: 100%;
  min-width: 0;
}

.admin-toggle-row > span:first-child {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--text);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.admin-toggle-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-switch {
  position: relative;
  flex: 0 0 auto;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background 0.15s ease;
}

.toggle-switch::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.22);
  transition: transform 0.15s ease;
}

.admin-toggle-row input:checked + .toggle-switch {
  background: var(--primary);
}

.admin-toggle-row input:checked + .toggle-switch::after {
  transform: translateX(20px);
}

.secondary-btn {
  background: #e2e8f0;
  color: var(--text);
}

.danger-btn {
  background: #dc2626;
  color: #fff;
}

.admin-slot-panel {
  margin-top: 2px;
  padding-top: 16px;
  border-top: 1px solid #edf2f7;
}

.slot-manager {
  display: grid;
  gap: 14px;
}

.admin-booking-summary {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.admin-summary-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.admin-summary-card {
  padding: 14px 16px;
  border-radius: 14px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-summary-label {
  font-size: 0.84rem;
  color: var(--muted);
}

.admin-summary-value {
  font-size: 1.3rem;
  color: var(--text);
}

.slot-manager-note {
  font-size: 0.92rem;
}

.slot-bulk-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.slot-select-shortcuts {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  min-width: 0;
}

.slot-select-shortcut {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 600;
}

.slot-select-shortcut input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--primary);
}

.slot-select-shortcut:has(input:disabled) {
  opacity: 0.48;
}

.slot-checkbox-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.slot-checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  min-width: 0;
}

.slot-checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
  flex: 0 0 auto;
}

.slot-checkbox-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.slot-checkbox-time {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.slot-checkbox-meta {
  color: var(--muted);
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}

.slot-checkbox-item.enabled {
  border-color: rgba(22, 163, 74, 0.18);
}

.slot-checkbox-item.disabled {
  border-color: rgba(220, 38, 38, 0.12);
  background: #f8fafc;
}

.slot-checkbox-item.load-low {
  border-left: 5px solid #22c55e;
}

.slot-checkbox-item.load-medium {
  border-left: 5px solid #f59e0b;
}

.slot-checkbox-item.load-high {
  border-left: 5px solid #ef4444;
}

.slot-checkbox-item.disabled {
  border-color: var(--border);
  border-left: 5px solid #94a3b8;
  background: #f1f5f9;
}

.slot-load-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.slot-load-badge.load-low {
  background: #dcfce7;
  color: #166534;
}

.slot-load-badge.load-medium {
  background: #fef3c7;
  color: #92400e;
}

.slot-load-badge.load-high {
  background: #fee2e2;
  color: #b91c1c;
}

.slot-load-badge.disabled {
  background: #e2e8f0;
  color: #475569;
}

.notifications-section {
  position: relative;
  background: var(--surface);
  padding: 16px;
  border-radius: 18px;
  margin-bottom: 18px;
  border: 1px solid rgba(219, 228, 240, 0.9);
  box-shadow: var(--shadow);
}

.alerts-content {
  position: relative;
  padding-top: 36px;
}

.notification-card {
  position: relative;
  padding: 12px 14px;
  padding-right: 42px;
  border-radius: 14px;
  margin-top: 10px;
  border: 1px solid transparent;
}

.dismiss-alert-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.08);
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
}

.dismiss-alert-btn:hover {
  background: rgba(15, 23, 42, 0.14);
  color: var(--text);
}

.dismiss-all-alerts {
  top: 0;
  right: 0;
}

.notification-card.warning {
  background: #fff7ed;
  border-color: #fdba74;
}

.notification-card.success {
  background: #ecfdf5;
  border-color: #86efac;
}

.notification-message {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
}

.notification-meta {
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ADMIN SLOT COLORS */
.slot.enabled {
  background: var(--success-soft);
  color: var(--success);
  border: 1px solid rgba(22, 101, 52, 0.14);
  border-radius: 12px;
}

.slot.disabled {
  background: #fef2f2;
  color: var(--danger);
  border: 1px solid rgba(185, 28, 28, 0.12);
  border-radius: 12px;
}

.slot {
  margin-top: 10px;
  padding: 12px 14px;
  cursor: pointer;
  font-size: 0.92rem;
  line-height: 1.45;
}

@media (min-width: 640px) {
  .filters {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .details-grid,
  .admin-stock-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .app-header {
    padding: 16px 82px 12px 14px;
  }

  #app {
    padding: 16px 14px 100px;
  }

  h1 {
    font-size: 1.35rem;
  }

  h2 {
    font-size: 1.15rem;
  }

  .station,
  .bookings-section,
  .hero-card,
  .details-section,
  .auth-card,
  .filters {
    padding: 14px;
    border-radius: 16px;
  }

  .hero-card {
    flex-direction: column;
    align-items: stretch;
  }

  .slot-btn {
    min-height: 68px;
    padding: 12px 8px;
  }

  .slot-time {
    font-size: 0.74rem;
  }

  .booking-card {
    flex-direction: column;
    align-items: stretch;
  }

  .booking-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .bottom-nav {
    width: calc(100vw - 20px);
    padding: 12px 14px;
  }

  .auth-actions,
  .admin-action-row,
  .slot-bulk-actions,
  .payment-options,
  .modal-actions {
    grid-template-columns: 1fr;
  }
}
