/**
 * Om Paradise — desktop layout adaptations
 * Mobile-first theme extended for >= 992px viewports
 */

:root {
  --op-sidebar-width: 280px;
  --op-header-height: 64px;
  --op-brand-red: #E30613;
  --op-brand-red-dark: #B8050F;
  --op-brand-black: #111111;
}

/* Om Paradise brand — logo red primary, black secondary */
.theme-pink {
  --oneuiux-theme-color: var(--op-brand-red);
  --oneuiux-theme-color-grad-1: #ff6b6b;
  --oneuiux-theme-color-grad-2: var(--op-brand-red);
  --oneuiux-theme-color-grad-3: #8B0000;
  --oneuiux-page-bg-3: #fff5f5;
}

.btn-default {
  background-color: var(--op-brand-red) !important;
  border-color: var(--op-brand-red) !important;
  color: #fff !important;
}

.btn-default:hover,
.btn-default:focus,
.btn-default:active {
  background-color: var(--op-brand-red-dark) !important;
  border-color: var(--op-brand-red-dark) !important;
  color: #fff !important;
}

.btn-primary {
  background-color: var(--op-brand-black) !important;
  border-color: var(--op-brand-black) !important;
  color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: #333 !important;
  border-color: #333 !important;
  color: #fff !important;
}

.text-color-theme {
  color: var(--op-brand-red) !important;
}

/* Brand logo (om-logo.png) */
.op-brand-logo {
  width: auto;
  height: 40px;
  max-height: 44px;
  border-radius: 0 !important;
  object-fit: contain;
  vertical-align: middle;
}

.logo-small .op-brand-logo {
  margin-right: 0;
  box-shadow: none;
}

.auth-split-logo.op-brand-logo {
  width: auto;
  max-width: 240px;
  height: auto;
  max-height: none;
  margin-bottom: 0;
  box-shadow: none;
}

/* Auth pages — flush layout, no top gap */
.auth-page {
  margin: 0;
  padding: 0;
}

html.h-100,
body.auth-page.h-100 {
  height: 100%;
}

.auth-page main.auth-split {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  height: 100vh;
  padding: 0 !important;
  margin: 0 !important;
}

/* Customer pages — shared components */
.op-empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.op-empty-state__icon {
  font-size: 2.5rem;
  color: #ccc;
  display: block;
  margin-bottom: 1rem;
}

.op-empty-state__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.op-empty-state__text {
  font-size: 0.95rem;
  color: #777;
  max-width: 28rem;
  margin: 0 auto;
  line-height: 1.55;
}

.op-page-tabs {
  border: none;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.op-tabs .nav-link {
  border-radius: 999px !important;
  font-weight: 600;
  font-size: 0.9rem;
  color: #666;
}

.op-tabs .nav-link.active {
  background: var(--op-brand-red) !important;
  color: #fff !important;
}

.op-member-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.op-member-card__avatar {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.op-member-card__avatar.is-active {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}

.op-member-card__avatar.is-inactive {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.op-member-card__body {
  flex: 1;
  min-width: 0;
}

.op-member-card__name {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
  color: #1a1a1a;
}

.op-member-card__meta {
  font-size: 0.82rem;
  color: #888;
}

.op-payment-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.25rem;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  border-top: 3px solid #e5e5e5;
}

.op-payment-card.is-pending { border-top-color: #f59e0b; }
.op-payment-card.is-approved { border-top-color: #22c55e; }
.op-payment-card.is-rejected { border-top-color: #ef4444; }

.op-payment-card__top {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.op-payment-card__icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 1.2rem;
  flex-shrink: 0;
  background: #f5f5f5;
  color: #666;
}

.op-payment-card.is-pending .op-payment-card__icon { background: rgba(245, 158, 11, 0.12); color: #d97706; }
.op-payment-card.is-approved .op-payment-card__icon { background: rgba(34, 197, 94, 0.12); color: #16a34a; }
.op-payment-card.is-rejected .op-payment-card__icon { background: rgba(239, 68, 68, 0.1); color: #dc2626; }

.op-payment-card__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}

.op-payment-card__txid {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--op-brand-red);
  word-break: break-all;
}

.op-payment-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.op-payment-card__meta-label {
  display: block;
  font-size: 0.75rem;
  color: #999;
}

.op-payment-card__meta-value {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
}

.op-payment-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
}

.op-payment-card__status {
  font-size: 0.8rem;
  font-weight: 600;
  color: #666;
}

.op-payment-card.is-compact {
  padding: 1rem;
  height: auto;
}

.op-payment-card.is-compact .op-payment-card__top {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.op-payment-card.is-compact .op-payment-card__meta {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.op-booking-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.op-booking-card__thumb {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.op-booking-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.op-booking-card__title {
  font-weight: 600;
  color: #1a1a1a;
  text-decoration: none;
}

.op-booking-card__title:hover {
  color: var(--op-brand-red);
}

.op-referral-input {
  min-width: 0;
  flex: 1;
  max-width: 360px;
  font-size: 0.82rem;
  background: #f8f9fa;
}

.op-profile-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #fff 0%, #fff8f8 100%);
  border: 1px solid rgba(227, 6, 19, 0.12);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(227, 6, 19, 0.06);
}

.op-profile-hero__avatar {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--op-brand-red);
  background: rgba(227, 6, 19, 0.1);
  border-radius: 50%;
  flex-shrink: 0;
}

.op-profile-hero__name {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a1a1a;
}

.op-profile-hero__username {
  font-size: 0.9rem;
  color: #888;
}

.op-profile-field {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  height: 100%;
  padding: 1rem 1.15rem;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.op-profile-field__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--op-brand-red);
  background: rgba(227, 6, 19, 0.08);
  border-radius: 10px;
  flex-shrink: 0;
}

.op-profile-field__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}

.op-profile-field__value {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a1a;
  word-break: break-word;
}

.op-password-card {
  padding: 1.5rem;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: calc(var(--op-header-height) + 1rem);
}

.op-password-card__head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.op-password-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--op-brand-red);
  background: rgba(227, 6, 19, 0.08);
  border-radius: 10px;
  flex-shrink: 0;
}

.op-password-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a1a;
}

.op-password-card__sub {
  font-size: 0.85rem;
  color: #888;
}

.op-password-card .form-control:focus {
  border-color: var(--op-brand-red);
  box-shadow: 0 0 0 0.2rem rgba(227, 6, 19, 0.12);
}

/* Admin pages */
.op-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.op-filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #666;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.op-filter-pill:hover {
  color: var(--op-brand-red);
  border-color: rgba(227, 6, 19, 0.25);
}

.op-filter-pill.is-active {
  background: var(--op-brand-red);
  border-color: var(--op-brand-red);
  color: #fff;
}

.op-pagination-wrap {
  margin-top: 1.25rem;
}

.op-pagination-wrap .pagination,
.op-pagination-wrap .dataTables_paginate .pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.op-pagination-wrap .pagination a,
.op-pagination-wrap .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #555;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  text-decoration: none;
}

.op-pagination-wrap .pagination a:hover {
  color: var(--op-brand-red);
  border-color: rgba(227, 6, 19, 0.25);
}

.op-pagination-wrap .pagination a.current,
.op-pagination-wrap .pagination .current {
  background: var(--op-brand-red);
  border-color: var(--op-brand-red);
  color: #fff;
}

.op-admin-detail-card,
.op-admin-form-card {
  padding: 1.5rem;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.op-admin-form-card .form-control:focus,
.op-admin-form-card .form-select:focus {
  border-color: var(--op-brand-red);
  box-shadow: 0 0 0 0.2rem rgba(227, 6, 19, 0.12);
}

.op-vehicle-preview {
  border-radius: 14px;
  overflow: hidden;
  background: #f5f5f5;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.op-vehicle-preview img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 320px;
}

.op-payment-proof-img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fafafa;
  cursor: zoom-in;
}

.op-payment-proof-btn {
  cursor: zoom-in;
}

/* ------------------------------------------------------------------ */
/* App shell: fixed sidebar + header + content (desktop)                */
/* ------------------------------------------------------------------ */
@media (min-width: 992px) {
  body.app-shell,
  body:has(.sidebar-wrap) {
    overflow-x: hidden;
  }

  body.app-shell .sidebar-wrap,
  body:has(.sidebar-wrap) .sidebar-wrap {
    opacity: 1 !important;
    left: 0 !important;
    width: var(--op-sidebar-width);
    height: 100vh;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 1040;
  }

  body.app-shell .sidebar-wrap.sidebar-overlay::after,
  body:has(.sidebar-wrap) .sidebar-wrap.sidebar-overlay::after {
    display: none;
  }

  body.app-shell .sidebar-wrap .sidebar,
  body.app-shell .sidebar-wrap.sidebar-overlay .sidebar,
  body:has(.sidebar-wrap) .sidebar-wrap .sidebar,
  body:has(.sidebar-wrap) .sidebar-wrap.sidebar-overlay .sidebar {
    left: 0 !important;
    position: relative;
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
    float: none;
    padding: 1.25rem 1rem;
    background-color: var(--oneuiux-theme-color);
  }

  body.app-shell .closemenu,
  body.app-shell .menu-btn,
  body:has(.sidebar-wrap) .closemenu,
  body:has(.sidebar-wrap) .menu-btn {
    display: none !important;
  }

  body.app-shell main,
  body:has(.sidebar-wrap) main {
    margin-left: var(--op-sidebar-width);
    width: calc(100% - var(--op-sidebar-width));
    min-height: 100vh;
    background: #f0f2f5;
  }

  body.app-shell .header.position-fixed,
  body:has(.sidebar-wrap) .header.position-fixed {
    position: fixed;
    left: var(--op-sidebar-width);
    width: calc(100% - var(--op-sidebar-width));
    top: 0;
    z-index: 1030;
  }

  body.app-shell .header.position-fixed.active:after,
  body.app-shell .header.position-fixed.header-filled:after,
  body:has(.sidebar-wrap) .header.position-fixed.active:after,
  body:has(.sidebar-wrap) .header.position-fixed.header-filled:after {
    opacity: 1;
    border-radius: 0;
  }

  body.app-shell .main-container.container,
  body.app-shell .main-container.container-fluid,
  body:has(.sidebar-wrap) .main-container.container,
  body:has(.sidebar-wrap) .main-container.container-fluid {
    max-width: 100%;
    width: 100%;
    padding-left: 1.75rem;
    padding-right: 1.75rem;
  }

  body.app-shell .main-container .title,
  body.app-shell .main-container h6.title,
  body:has(.sidebar-wrap) .main-container .title,
  body:has(.sidebar-wrap) .main-container h6.title {
    font-size: 1.25rem;
    font-weight: 600;
  }

  .op-main-surface .main-container.op-dashboard {
    padding-top: 0.5rem;
  }

  /* —— Dashboard content (desktop) —— */
  .op-dashboard {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.5rem 0 2.5rem;
  }

  .op-dash-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .op-dash-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--op-brand-red);
  }

  .op-dash-title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
  }

  .op-dash-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #444;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  }

  .op-dash-banner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.35rem 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #fff8f8 100%);
    border: 1px solid rgba(227, 6, 19, 0.15);
    border-left: 4px solid var(--op-brand-red);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(227, 6, 19, 0.08);
  }

  .op-dash-banner__icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--op-brand-red);
    background: rgba(227, 6, 19, 0.1);
    border-radius: 14px;
  }

  .op-dash-banner__body {
    flex: 1;
    min-width: 0;
  }

  .op-dash-banner__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: #1a1a1a;
  }

  .op-dash-banner__text {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.55;
  }

  .op-dash-banner__action {
    flex-shrink: 0;
  }

  .op-dash-section__head {
    margin-bottom: 1.25rem;
  }

  .op-dash-section__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #1a1a1a;
  }

  .op-dash-section__sub {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 0;
  }

  .op-stat-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.25rem;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
  }

  .op-stat-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
  }

  .op-stat-card.is-pending {
    border-top: 3px solid var(--op-brand-red);
  }

  .op-stat-card.is-complete {
    border-top: 3px solid #22c55e;
  }

  .op-stat-card__top {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
  }

  .op-stat-card__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    border-radius: 12px;
    background: #f5f5f5;
    color: #555;
  }

  .op-stat-card.is-pending .op-stat-card__icon {
    background: rgba(227, 6, 19, 0.08);
    color: var(--op-brand-red);
  }

  .op-stat-card.is-complete .op-stat-card__icon {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
  }

  .op-stat-card__label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: #888;
    margin-bottom: 0.2rem;
  }

  .op-stat-card__value {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
  }

  .op-stat-card.is-pending .op-stat-card__value {
    color: var(--op-brand-red);
  }

  .op-stat-card.is-complete .op-stat-card__value {
    color: #16a34a;
  }

  .op-stat-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }

  .op-stat-card__hint {
    font-size: 0.8rem;
    color: #999;
  }

  .op-stat-card__badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: #f0f0f0;
    color: #666;
  }

  .op-stat-card.is-complete .op-stat-card__badge {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
  }

  .op-progress-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  }

  .op-progress-bar {
    height: 12px;
    border-radius: 999px;
    background: #e9ecef;
    overflow: hidden;
  }

  .op-progress-bar .progress-bar {
    background: var(--op-brand-red);
    border-radius: 999px;
    transition: width 0.4s ease;
  }

  .op-progress-bar .progress-bar.is-complete {
    background: #22c55e;
  }

  .op-vehicle-card {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
  }

  .op-vehicle-card:hover {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
    color: inherit;
  }

  .op-vehicle-card__img {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f5f5f5;
  }

  .op-vehicle-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .op-vehicle-card__body {
    padding: 0.85rem 1rem;
  }

  .op-vehicle-card__title {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    color: #333;
  }

  .op-dash-invite {
    border: none;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  }

  /* legacy dashboard helpers (keep compat) */
  .op-dashboard-welcome h1 {
    text-align: left;
    font-size: 2rem;
    line-height: 1.25;
  }

  .op-activation-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
  }

  .op-pay-btn-wrap .btn {
    width: auto;
    min-width: 200px;
  }

  /* Payment page */
  .op-pay-page .op-pay-steps {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 1rem 1.25rem;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  }

  .op-pay-step {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
  }

  .op-pay-step__dot {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 50%;
    background: #f0f0f0;
    color: #888;
    flex-shrink: 0;
  }

  .op-pay-step.is-complete .op-pay-step__dot {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
  }

  .op-pay-step.is-current .op-pay-step__dot {
    background: var(--op-brand-red);
    color: #fff;
  }

  .op-pay-step__label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #999;
    white-space: nowrap;
  }

  .op-pay-step.is-complete .op-pay-step__label,
  .op-pay-step.is-current .op-pay-step__label {
    color: #1a1a1a;
  }

  .op-pay-step__line {
    flex: 1;
    height: 2px;
    min-width: 1.5rem;
    margin: 0 0.75rem;
    background: #e5e5e5;
    border-radius: 1px;
  }

  .op-pay-step__line.is-complete {
    background: #22c55e;
  }

  .op-pay-qr-card,
  .op-pay-form-card {
    height: 100%;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    padding: 1.5rem;
  }

  .op-pay-qr-card__title,
  .op-pay-form-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.35rem;
  }

  .op-pay-qr-card__sub,
  .op-pay-form-card__sub {
    font-size: 0.9rem;
    color: #777;
    line-height: 1.5;
  }

  .op-pay-qr-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    margin: 1.25rem 0;
    background: #fafafa;
    border: 1px dashed rgba(0, 0, 0, 0.1);
    border-radius: 14px;
  }

  .op-pay-qr-frame__img {
    max-width: 220px;
    width: 100%;
    height: auto;
    border-radius: 8px;
  }

  .op-pay-amount {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, #fff8f8 0%, #fff 100%);
    border: 1px solid rgba(227, 6, 19, 0.12);
    border-radius: 12px;
  }

  .op-pay-amount__label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #666;
  }

  .op-pay-amount__value {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--op-brand-red);
    letter-spacing: -0.02em;
  }

  .op-pay-instructions {
    margin: 0;
    padding-left: 1.2rem;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.65;
  }

  .op-pay-instructions li + li {
    margin-top: 0.5rem;
  }

  .op-pay-form-card__head {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .op-pay-form-card__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--op-brand-red);
    background: rgba(227, 6, 19, 0.08);
    border-radius: 12px;
  }

  .op-pay-file-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #444;
  }

  .op-pay-form-card__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .op-pay-form-card__hint {
    font-size: 0.82rem;
    color: #999;
    line-height: 1.5;
    max-width: 36rem;
  }

  .op-pay-form .form-control:focus {
    border-color: var(--op-brand-red);
    box-shadow: 0 0 0 0.2rem rgba(227, 6, 19, 0.12);
  }

  body.app-shell .sidebar-wrap .profile-sidebar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
  }

  /* Desktop data tables */
  .op-desktop-table-wrap {
    background: var(--oneuiux-card-color);
    border-radius: var(--oneuiux-rounded);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
  }

  .op-desktop-table {
    margin-bottom: 0;
  }

  .op-desktop-table thead th {
    background: var(--oneuiux-page-bg-2);
    border-bottom: 1px solid var(--oneuiux-theme-bordercolor);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--oneuiux-theme-text-secondary);
    white-space: nowrap;
    padding: 0.85rem 1rem;
  }

  .op-desktop-table tbody td {
    vertical-align: middle;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--oneuiux-theme-bordercolor);
  }

  .op-desktop-table tbody tr:last-child td {
    border-bottom: none;
  }

  .op-desktop-table .table-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--oneuiux-theme-bordercolor);
  }

  /* Dashboard / detail pages */
  body:has(.sidebar-wrap) .cus-dashboard-stats .col-6 {
    flex: 0 0 auto;
    width: 25%;
  }
}

/* ------------------------------------------------------------------ */
/* Auth split layout (sign in, sign up, KYC, agreement)               */
/* ------------------------------------------------------------------ */

@media (min-width: 992px) {
  .auth-page main.auth-split {
    flex-direction: row;
  }

  .auth-split-hero {
    flex: 0 0 46%;
    max-width: 46%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(165deg, #f7f7f7 0%, #ececec 45%, #e2e2e2 100%);
    color: #1a1a1a;
    padding: 3rem;
  }

  .auth-split-hero::before {
    display: none;
  }

  .auth-split-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 420px;
    text-align: center;
  }

  .auth-split-logo {
    width: auto;
    max-width: 260px;
    height: auto;
    border-radius: 0;
    margin-bottom: 0;
    box-shadow: none;
  }

  .auth-split-hero .auth-hero-heading {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    margin-top: 2rem;
    color: #1a1a1a;
  }

  .auth-split-hero .auth-hero-sub {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    opacity: 1;
  }

  .auth-split-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--oneuiux-page-bg-1);
  }

  .auth-split-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 2rem 2.5rem;
  }

  .auth-split-actions {
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem 2rem;
  }

  .auth-page .header.position-fixed {
    position: relative;
    box-shadow: none;
  }

  .auth-page .header.position-fixed:after {
    display: none;
  }

  .auth-page .auth-split-mobile-header {
    display: none;
  }

  .auth-split-content .col-11,
  .auth-split-content .col-sm-11,
  .auth-split-actions .col-11,
  .auth-split-actions .col-sm-11 {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .auth-split-scroll {
    max-height: calc(100vh - 12rem);
    overflow-y: auto;
    padding-right: 0.5rem;
  }
}

@media (max-width: 991.98px) {
  /* —— Base layout —— */
  html,
  body {
    overflow-x: hidden;
    max-width: 100%;
  }

  body.app-shell main,
  body:has(.sidebar-wrap) main {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100%;
  }

  body:has(.sidebar-wrap) .header.position-fixed,
  body.app-shell .header.position-fixed {
    left: 0 !important;
    width: 100% !important;
    padding-left: max(0.75rem, env(safe-area-inset-left));
    padding-right: max(0.75rem, env(safe-area-inset-right));
    z-index: 1030;
  }

  .menu-open .sidebar-wrap {
    z-index: 1050;
  }

  .menu-open .sidebar-wrap.sidebar-overlay .sidebar {
    left: 0 !important;
    z-index: 1051;
  }

  main {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  }

  .main-container.container,
  .main-container.container-fluid,
  .op-dashboard {
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
    padding-top: 0.5rem;
    padding-bottom: 1.5rem;
    max-width: 100%;
  }

  /* iOS: avoid zoom on input focus */
  .form-control,
  .form-select {
    font-size: 16px;
  }

  /* —— Auth pages —— */
  .auth-split-hero {
    display: none !important;
  }

  .auth-split-panel {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
  }

  .auth-page main.auth-split {
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
  }

  .auth-split-content {
    flex: 1;
    justify-content: flex-start;
    max-width: none;
    padding: 1.25rem 1rem 1rem;
  }

  .auth-split-actions {
    max-width: none;
    padding: 0 1rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
  }

  .auth-split-scroll {
    max-height: none;
    overflow: visible;
  }

  .auth-page .auth-split-mobile-header {
    display: block;
  }

  .auth-page .auth-split-mobile-header .header.position-fixed {
    position: relative !important;
    width: 100% !important;
    left: 0 !important;
  }

  .op-main-surface main {
    background: var(--oneuiux-page-bg-1);
  }

  /* —— Page headers —— */
  .op-dash-header {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
  }

  .op-dash-header__meta {
    width: 100%;
  }

  .op-dash-header__meta.d-flex {
    flex-direction: column;
    align-items: stretch !important;
  }

  .op-dash-header__meta .btn,
  .op-dash-header__meta > a.btn {
    width: 100%;
    justify-content: center;
  }

  .op-dash-header__meta .op-dash-pill {
    justify-content: center;
    text-align: center;
  }

  .op-dash-title {
    font-size: 1.45rem;
    line-height: 1.25;
  }

  .op-dash-eyebrow {
    font-size: 0.75rem;
  }

  /* —— Dashboard banners & stats —— */
  .op-dash-banner {
    flex-direction: column;
    text-align: left;
    align-items: flex-start;
    padding: 1.15rem;
  }

  .op-dash-banner__action {
    width: 100%;
  }

  .op-dash-banner__action .btn {
    width: 100%;
  }

  .op-dash-invite .card-body {
    align-items: stretch !important;
  }

  .op-dash-invite .d-flex.gap-2,
  .op-dash-invite .btn {
    width: 100%;
  }

  .op-stat-card__footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .op-stat-card__footer .btn {
    width: 100%;
  }

  .op-stat-card__top {
    gap: 0.75rem;
  }

  /* —— Lists & cards —— */
  .op-member-card {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .op-member-card > .btn,
  .op-member-card > a.btn {
    width: 100%;
    margin-top: 0.35rem;
  }

  .op-booking-card {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .op-booking-card > .btn,
  .op-booking-card > a.btn,
  .op-booking-card > .d-flex {
    width: 100%;
    margin-top: 0.35rem;
  }

  .op-booking-card > .d-flex.gap-1 {
    justify-content: stretch;
  }

  .op-booking-card > .d-flex.gap-1 .btn {
    flex: 1;
  }

  .op-payment-card__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .op-payment-card__footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .op-payment-card__footer .btn {
    width: 100%;
    justify-content: center;
  }

  .op-payment-card.is-compact .op-payment-card__meta {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  /* —— Tabs & filters —— */
  .op-tabs .nav-link {
    font-size: 0.78rem;
    padding: 0.55rem 0.5rem;
    white-space: nowrap;
  }

  .op-page-tabs .card-body {
    padding: 0.5rem !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .op-page-tabs .nav {
    flex-wrap: nowrap;
    min-width: min-content;
  }

  .op-filter-pills {
    gap: 0.4rem;
  }

  .op-filter-pill {
    flex: 1 1 auto;
    justify-content: center;
    padding: 0.5rem 0.65rem;
    font-size: 0.82rem;
    text-align: center;
  }

  /* —— Pay page —— */
  .op-pay-page .op-pay-steps {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
  }

  .op-pay-step__line {
    display: none;
  }

  .op-pay-step__label {
    font-size: 0.78rem;
  }

  .op-pay-form-card__actions .btn {
    width: 100%;
  }

  .op-pay-amount {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .op-pay-amount__value {
    font-size: 1.5rem;
  }

  .op-pay-qr-frame__img {
    max-width: 200px;
  }

  .op-pay-qr-card,
  .op-pay-form-card {
    padding: 1.15rem;
  }

  /* —— Profile —— */
  .op-password-card {
    position: static;
    padding: 1.15rem;
  }

  .op-profile-hero {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 1.25rem;
  }

  .op-profile-hero__status {
    margin-left: 0 !important;
  }

  .op-profile-field {
    padding: 0.9rem 1rem;
  }

  .op-referral-input {
    max-width: 100% !important;
    width: 100% !important;
  }

  .op-dash-invite .d-flex.w-100 {
    flex-direction: column;
  }

  #copyReferralLink {
    width: 100%;
  }

  /* —— Admin detail / forms —— */
  .op-admin-detail-card,
  .op-admin-form-card {
    padding: 1.15rem;
  }

  .op-vehicle-preview img {
    max-height: 240px;
  }

  .op-payment-proof-img {
    max-height: 280px;
  }

  /* —— Vehicle shop grid —— */
  .op-vehicle-card__title {
    font-size: 0.82rem;
  }

  .op-vehicle-card__body {
    padding: 0.65rem 0.75rem;
  }

  /* —— Empty states & pagination —— */
  .op-empty-state {
    padding: 2rem 1rem;
  }

  .op-empty-state__text {
    font-size: 0.9rem;
  }

  .op-pagination-wrap .pagination a,
  .op-pagination-wrap .pagination span {
    min-width: 36px;
    height: 36px;
    font-size: 0.82rem;
  }

  /* —— Member activate button —— */
  #activate-btn {
    width: 100%;
  }

  /* —— Touch targets —— */
  .btn-44,
  .menu-btn,
  .header .btn-rounded {
    min-width: 44px;
    min-height: 44px;
  }

  /* —— Legacy / mixed layouts —— */
  .main-container .col-11,
  .main-container .col-sm-11 {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .trasparent-input {
    font-size: 2rem !important;
    line-height: 1.2 !important;
    padding: 0.5rem 0 !important;
  }

  .main-container .card-body {
    padding: 1rem;
  }

  .main-container h1[style*="font-size"] {
    font-size: 4.5rem !important;
  }

  .swiper-container.connectionwiper {
    overflow: hidden;
    padding-bottom: 0.5rem;
  }

  .swiper-container.connectionwiper .swiper-slide {
    width: 42% !important;
    max-width: 160px;
  }

  .main-container .row.mx-0 {
    margin-left: 0;
    margin-right: 0;
  }

  [data-page="vehicle-request"] .col-6.d-grid,
  .op-admin-detail-card .d-flex.gap-2 {
    flex-direction: column;
  }

  .op-admin-detail-card.auth-split-scroll {
    max-height: 55vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  [data-page="vehicle-request"] .col-6.d-grid .btn,
  .op-admin-detail-card .d-flex.gap-2 .btn {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .op-dash-title {
    font-size: 1.28rem;
  }

  .op-filter-pill {
    flex: 1 1 calc(50% - 0.25rem);
  }

  .op-dash-stats .col-6 {
    width: 100%;
  }

  .row.g-3 > .col-6:has(.op-vehicle-card) {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .op-member-card__name,
  .op-booking-card__title {
    font-size: 0.9rem;
  }

  .op-pay-step {
    flex-direction: column;
    text-align: center;
    gap: 0.35rem;
  }

  .auth-split-content h1,
  .auth-split-content h2 {
    font-size: 1.35rem;
  }
}

@media (max-width: 380px) {
  .op-tabs .nav-link {
    font-size: 0.72rem;
    padding: 0.5rem 0.35rem;
  }

  .op-tabs .nav-link .badge {
    display: none;
  }

  .op-filter-pill {
    flex: 1 1 100%;
  }
}
