* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  :root {
    --bg: #f8f5ef;
    --bg-soft: #fcfaf6;
    --card: #ffffff;
    --text: #1f1a17;
    --text-soft: #6f655c;
    --gold: #c9a96a;
    --gold-dark: #a78648;
    --border: #e8dfd2;
    --shadow: 0 10px 30px rgba(31, 26, 23, 0.08);
    --radius: 18px;
    --radius-sm: 12px;
    --container: 1200px;
  }
  
  html {
    scroll-behavior: smooth;
    font-size: 16.5px;
  }
  
  body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 1rem;
  }
  
  img {
    max-width: 100%;
    display: block;
  }
  
  a {
    text-decoration: none;
    color: inherit;
  }
  
  ul {
    list-style: none;
  }
  
  button,
  input,
  textarea,
  select {
    font: inherit;
  }
  
  .container {
    width: min(92%, var(--container));
    margin: 0 auto;
  }
  
  .page-section {
    padding: 88px 0;
  }
  
  .section-head {
    margin-bottom: 32px;
  }
  
  .section-kicker {
    color: var(--gold-dark);
    text-transform: uppercase;
    letter-spacing: 1.8px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 10px;
  }
  
  .section-title {
    font-size: clamp(2rem, 4vw, 3.05rem);
    line-height: 1.15;
    margin-bottom: 14px;
  }
  
  .section-text {
    color: var(--text-soft);
    max-width: 700px;
  }
  
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    border-radius: 999px;
    padding: 15px 26px;
    cursor: pointer;
    transition: 0.25s ease;
    font-weight: 600;
  }
  
  .btn-primary {
    background: var(--gold);
    color: #fff;
  }
  
  .btn-primary:hover {
    background: var(--gold-dark);
    transform: translateY(-1px);
  }
  
  .btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
  }
  
  .btn-secondary:hover {
    background: #fff;
  }

  .btn-small {
    align-self: flex-start;
    padding: 10px 18px;
    font-size: 0.92rem;
  }
  
  .btn-dark {
    background: var(--text);
    color: #fff;
  }
  
  .btn-dark:hover {
    opacity: 0.92;
  }
  
  .badge {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(201, 169, 106, 0.12);
    color: var(--gold-dark);
    font-size: 0.85rem;
    font-weight: 700;
  }
  
  .site-header {
    position: sticky;
    top: 0;
    z-index: 1100;
    background: rgba(248, 245, 239, 0.9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(232, 223, 210, 0.8);
  }
  
  .navbar {
    min-height: 78px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    position: relative;
  }

  .navbar-left {
    min-width: 0;
    justify-self: start;
  }

  .navbar-center {
    display: flex;
    justify-content: center;
    min-width: 0;
    justify-self: center;
  }

  .navbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    min-width: 0;
    justify-self: end;
  }
  
  .brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex-shrink: 0;
  }

  .brand-logo {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    object-fit: contain;
    padding: 6px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(201, 169, 106, 0.22);
    box-shadow: 0 10px 24px rgba(31, 26, 23, 0.08);
    flex-shrink: 0;
  }

  .brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }
  
  .brand h1,
  .brand h2,
  .brand h3 {
    font-size: 1.05rem;
    line-height: 1.1;
    font-weight: 700;
  }
  
  .brand span {
    font-size: 0.82rem;
    color: var(--text-soft);
  }
  
  .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
  }
  
  .nav-links a {
    color: var(--text-soft);
    font-weight: 600;
    transition: 0.2s ease;
  }
  
  .nav-links a:hover,
  .nav-links a.active {
    color: var(--text);
  }

  .admin-logout-btn {
    margin-left: 0;
  }
  
  .mobile-menu-btn {
    display: none;
    border: 1px solid var(--border);
    background: #fff;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
    color: var(--text);
    font-size: 22px;
    line-height: 1;
  }
  
  .hero {
    padding: 90px 0 70px;
  }
  
  .hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 34px;
    align-items: center;
  }
  
  .hero-card {
    background: linear-gradient(135deg, #f7f0e4 0%, #ffffff 100%);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 48px;
    box-shadow: var(--shadow);
  }
  
  .hero-card h1 {
    font-size: clamp(2.2rem, 5vw, 4.3rem);
    line-height: 1.05;
    margin: 14px 0 16px;
  }
  
  .hero-card p {
    color: var(--text-soft);
    font-size: 1.05rem;
    margin-bottom: 24px;
    max-width: 580px;
  }
  
  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .hero-visual {
    min-height: 540px;
    border-radius: 28px;
    background:
      linear-gradient(rgba(31, 26, 23, 0.28), rgba(31, 26, 23, 0.18)),
      url("https://images.unsplash.com/photo-1519167758481-83f550bb49b3?auto=format&fit=crop&w=1200&q=80")
        center/cover no-repeat;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
  }
  
  .hero-floating {
    position: absolute;
    left: 24px;
    bottom: 24px;
    background: rgba(255, 255, 255, 0.93);
    padding: 16px 18px;
    border-radius: 18px;
    max-width: 260px;
    box-shadow: var(--shadow);
  }
  
  .hero-floating strong {
    display: block;
    margin-bottom: 6px;
  }
  
  .stats-grid,
  .gallery-grid,
  .reviews-grid,
  .admin-grid,
  .track-grid,
  .info-grid {
    display: grid;
    gap: 24px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .stat-card,
  .review-card,
  .feature-card,
  .gallery-card,
  .track-card,
  .admin-card,
  .info-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
  
.stat-card,
.feature-card,
.track-card,
.admin-card,
.info-card {
  padding: 26px;
}

.admin-summary-card{
  cursor:pointer;
  transition:transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.admin-summary-card:hover{
  transform:translateY(-2px);
  border-color:rgba(167, 134, 72, 0.36);
  box-shadow:0 18px 32px rgba(31, 26, 23, 0.1);
}

.admin-summary-card:focus-visible{
  outline:none;
  border-color:rgba(167, 134, 72, 0.7);
  box-shadow:0 0 0 4px rgba(201, 169, 106, 0.14);
}

.admin-summary-card.is-active{
  border-color:rgba(167, 134, 72, 0.54);
  background:linear-gradient(180deg, #fffdfa 0%, #f8f1e4 100%);
  box-shadow:0 18px 32px rgba(167, 134, 72, 0.14);
}
  
  .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold-dark);
    margin-bottom: 8px;
  }
  
  .features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }
  
  .feature-card h3,
  .review-card h3,
  .track-card h3,
  .admin-card h3,
  .info-card h3 {
    margin-bottom: 10px;
  }
  
  .feature-card p,
  .review-card p,
  .track-card p,
  .admin-card p,
  .info-card p,
  .stat-card p {
    color: var(--text-soft);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .gallery-card {
    overflow: hidden;
  }
  
  .gallery-card img {
    height: 270px;
    width: 100%;
    object-fit: cover;
  }
  
  .gallery-card .gallery-copy {
    padding: 18px;
  }
  
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .review-card {
    padding: 26px;
  }
  
  .stars {
    color: var(--gold-dark);
    margin-bottom: 10px;
    font-size: 1.1rem;
  }
  
  .review-author {
    margin-top: 14px;
    font-weight: 700;
  }

  .review-comment {
    color: var(--text);
    margin-bottom: 14px;
  }

  .review-image {
    width: 100%;
    height: 220px;
    display: block;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    background: #f1e8da;
    border-radius: 18px;
    margin-top: 6px;
    border: 1px solid var(--border);
  }

  .review-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-top: 14px;
    flex-wrap: wrap;
  }

  .review-date {
    color: var(--text-soft);
    font-size: 0.9rem;
  }
  
  .footer {
    border-top: 1px solid var(--border);
    padding: 18px 0 14px;
    background: var(--bg-soft);
  }
  
  .footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px 20px;
  }

  .footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
  }

  .footer-brand-copy {
    min-width: 0;
  }

  .footer-brand-copy h4 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.25;
  }

  .footer-brand-copy p {
    margin: 3px 0 0;
    font-size: 0.84rem;
  }

  .footer-logo {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    object-fit: contain;
    padding: 4px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(201, 169, 106, 0.2);
    box-shadow: 0 8px 18px rgba(31, 26, 23, 0.08);
    flex-shrink: 0;
  }
  
  .footer p,
  .footer a,
  .footer li {
    color: var(--text-soft);
  }
  
  .footer-links {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
  }

  .footer-links-inline {
    justify-content: flex-end;
  }

  .footer a {
    transition: color 0.2s ease, opacity 0.2s ease;
  }

  .footer a:hover {
    color: var(--text);
  }

  .footer-link-primary {
    color: var(--text) !important;
    font-weight: 700;
  }
  
  .copyright {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    color: var(--text-soft);
    font-size: 0.84rem;
  }

  /* HOMEPAGE */
  .home-page {
    --home-hero-progress: 0;
    background:
      radial-gradient(circle at top left, rgba(201, 169, 106, 0.12), transparent 34%),
      linear-gradient(180deg, #f5f0e8 0%, #f8f4ee 26%, #f7f2eb 100%);
    color: #211a15;
  }

  .home-page .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1100;
    background: rgba(0, 0, 0, 0.26);
    border-bottom: none;
    box-shadow: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
  }

  .home-page .site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.14);
    transition: background-color 0.3s ease;
  }

  .home-page .site-header.scrolled {
    background: rgba(248, 245, 239, 0.9);
    box-shadow: none;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .home-page .site-header.scrolled::after {
    background: rgba(232, 223, 210, 0.8);
  }

  .home-page .site-header .brand h1,
  .home-page .site-header .brand h2,
  .home-page .site-header .brand h3,
  .home-page .site-header .nav-links a {
    color: #ffffff;
    transition: color 0.3s ease;
  }

  .home-page .site-header .brand span {
    color: rgba(255, 255, 255, 0.76);
    transition: color 0.3s ease;
  }

  .home-page .site-header .nav-links a::after {
    background: rgba(255, 237, 208, 0.85);
    transition: transform 0.25s ease, background-color 0.3s ease;
  }

  .home-page .site-header .nav-links a:hover {
    opacity: 0.82;
  }

  .home-page .site-header.scrolled .brand h1,
  .home-page .site-header.scrolled .brand h2,
  .home-page .site-header.scrolled .brand h3,
  .home-page .site-header.scrolled .nav-links a {
    color: #1a1a1a;
    opacity: 1;
  }

  .home-page .site-header.scrolled .brand span {
    color: #7a6c5f;
  }

  .home-page .site-header.scrolled .nav-links a::after {
    background: rgba(167, 134, 72, 0.7);
  }

  .home-page .section-title,
  .home-page .home-hero-copy h1,
  .home-page .home-showcase-copy h3,
  .home-page .home-collection-copy h3,
  .home-page .home-value-card h3,
  .home-page .footer h4 {
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: -0.02em;
  }

  .home-page .nav-links a {
    position: relative;
  }

  .home-page .nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 100%;
    height: 1px;
    background: rgba(167, 134, 72, 0.65);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
  }

  .home-page .nav-links a:hover::after,
  .home-page .nav-links a.active::after {
    transform: scaleX(1);
  }

  .home-main {
    overflow: clip;
  }

  .home-hero {
    position: relative;
    min-height: 100svh;
    padding: 92px 0 52px;
    display: flex;
    align-items: flex-end;
    isolation: isolate;
  }

  .home-hero-media,
  .home-hero-veil {
    position: absolute;
    inset: 0;
    pointer-events: none;
  }

  .home-hero-media {
    background:
      linear-gradient(180deg, rgba(21, 15, 10, 0.18) 0%, rgba(21, 15, 10, 0.44) 100%),
      url("../../images/logo/IMG-71.jpg") center center / cover no-repeat;
    transform: scale(calc(1.07 - (var(--home-hero-progress) * 0.07)));
    opacity: calc(1 - (var(--home-hero-progress) * 0.34));
    transition: transform 0.2s linear, opacity 0.2s linear;
    z-index: -3;
  }

  .home-hero-veil {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.28) 34%, rgba(245, 240, 232, 0.14) 68%, rgba(245, 240, 232, 0.52) 100%),
      linear-gradient(90deg, rgba(14, 10, 7, 0.5) 0%, rgba(14, 10, 7, 0.24) 36%, rgba(14, 10, 7, 0.08) 100%);
    opacity: calc(1 - (var(--home-hero-progress) * 0.22));
    z-index: -2;
  }

  .home-hero-shell {
    width: min(92%, 1320px);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: end;
    padding-bottom: 88px;
  }

  .home-hero-copy {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 760px;
    color: #fffaf2;
  }

  .home-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 245, 226, 0.92);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 20px;
  }

  .home-hero-kicker::before {
    content: "";
    width: 52px;
    height: 1px;
    background: rgba(255, 240, 210, 0.7);
  }

  .home-hero-copy h1 {
    font-size: clamp(2.6rem, 4.5vw, 4rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 600;
    max-width: 700px;
    text-wrap: balance;
  }

  .home-hero-lead {
    max-width: 500px;
    color: rgba(255, 245, 230, 0.94);
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
    text-shadow: 0 1px 10px rgba(18, 13, 9, 0.24);
  }

  .home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 8px;
  }

  .home-page .home-hero-actions .btn {
    min-width: 196px;
    min-height: 56px;
    padding: 14px 28px;
    border-radius: 999px;
  }

  .home-page .home-hero-actions .btn-primary {
    background: #d1ad67;
    box-shadow: 0 16px 34px rgba(97, 66, 20, 0.24);
  }

  .home-page .home-hero-actions .btn-primary:hover {
    background: #b8924c;
  }

  .home-page .home-hero-actions .btn-secondary {
    color: #fff6e6;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 252, 246, 0.06);
    backdrop-filter: blur(6px);
  }

  .home-page .home-hero-actions .btn-secondary:hover {
    background: rgba(255, 252, 246, 0.14);
  }

  .home-scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 243, 222, 0.82);
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    z-index: 2;
  }

  .home-scroll-cue span {
    width: 1px;
    height: 44px;
    background: linear-gradient(180deg, rgba(255, 242, 220, 0), rgba(255, 242, 220, 0.9));
  }

  .home-section-head {
    max-width: 860px;
  }

  .home-page .section-kicker {
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #8e6d37;
  }

  .home-page .section-title {
    font-size: clamp(2.4rem, 4.6vw, 4.3rem);
    line-height: 1.02;
    color: #241c16;
  }

  .home-page .section-text {
    max-width: 680px;
    color: #716459;
    line-height: 1.8;
  }

  .home-collections-section {
    padding-top: 72px;
  }

  .home-collections-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }

  .home-collection-card {
    display: grid;
    overflow: hidden;
    border-radius: 30px;
    border: 1px solid rgba(222, 210, 192, 0.92);
    background: rgba(255, 253, 249, 0.94);
    box-shadow: 0 20px 42px rgba(31, 26, 23, 0.07);
    transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
  }

  .home-collection-card:hover {
    transform: translateY(-6px);
    border-color: rgba(174, 142, 90, 0.38);
    box-shadow: 0 28px 52px rgba(31, 26, 23, 0.11);
  }

  .home-collection-media {
    position: relative;
    aspect-ratio: 0.94 / 1;
    overflow: hidden;
    background: #efe4d1;
  }

  .home-collection-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 15, 12, 0) 32%, rgba(20, 15, 12, 0.18) 100%);
    pointer-events: none;
  }

  .home-collection-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #efe4d1;
    transition: transform 0.45s ease;
  }

  .home-collection-media img.home-collection-image-dining,
  .home-collection-media img.home-collection-image-sofa,
  .home-collection-media img.home-collection-image-chair {
    object-fit: contain;
    object-position: center center;
    padding: 10px 10px 6px;
    background: linear-gradient(180deg, #f6f1e8 0%, #f2ecdf 100%);
  }

  .home-collection-card:hover .home-collection-media img {
    transform: scale(1.04);
  }

  .home-collection-copy {
    display: grid;
    gap: 14px;
    padding: 24px 24px 26px;
  }

  .home-collection-copy h3 {
    font-size: 1.58rem;
    line-height: 1.06;
    color: #231a14;
  }

  .home-collection-copy p {
    color: #6d6054;
    line-height: 1.8;
  }

  .home-collection-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 2px;
    font-weight: 700;
    color: #9b7740;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
  }

  .home-collection-link::after {
    content: "→";
    transition: transform 0.25s ease;
  }

  .home-collection-card:hover .home-collection-link::after {
    transform: translateX(4px);
  }

  .home-values-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
  }

  .home-values-intro {
    max-width: 760px;
  }

  .home-values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }

  .home-value-card {
    min-height: 100%;
    padding: 30px 28px 28px;
    border-radius: 28px;
    border: 1px solid rgba(224, 212, 194, 0.65);
    background: rgba(255, 252, 247, 0.72);
    box-shadow: 0 12px 28px rgba(31, 26, 23, 0.035);
  }

  .home-value-card h3 {
    margin-bottom: 10px;
    font-size: 1.26rem;
    font-weight: 700;
    color: #251d16;
  }

  .home-value-card p {
    color: #6f6257;
    font-size: 0.98rem;
    line-height: 1.6;
  }

  .home-showcase-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 22px;
  }

  .home-showcase-card {
    position: relative;
    overflow: hidden;
    min-height: 320px;
    border-radius: 34px;
    border: 1px solid rgba(221, 210, 194, 0.9);
    box-shadow: 0 20px 46px rgba(31, 26, 23, 0.08);
  }

  .home-showcase-card.is-primary {
    min-height: 680px;
    grid-row: span 2;
  }

  .home-showcase-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #e9decb;
  }

  .home-showcase-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 11, 8, 0.06) 0%, rgba(15, 11, 8, 0.62) 100%);
  }

  .home-reviews-section .home-section-head {
    max-width: 760px;
    margin-bottom: 10px;
  }

  .home-reviews-grid {
    gap: 20px;
    align-items: stretch;
  }

  .home-page .home-reviews-grid .review-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 36px 30px 28px;
    border-radius: 32px;
    border: 1px solid rgba(224, 212, 193, 0.84);
    background:
      linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(250, 245, 237, 0.92)),
      #fff;
    box-shadow: 0 18px 42px rgba(31, 26, 23, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  }

  .home-page .home-reviews-grid .review-card:hover {
    transform: translateY(-6px);
    border-color: rgba(175, 142, 92, 0.34);
    box-shadow: 0 28px 56px rgba(31, 26, 23, 0.1);
  }

  .home-page .home-reviews-grid .review-card::before {
    content: "“";
    position: absolute;
    top: 18px;
    right: 24px;
    color: rgba(167, 134, 72, 0.2);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 4.8rem;
    line-height: 1;
  }

  .home-page .home-reviews-grid .stars {
    position: relative;
    z-index: 1;
    margin-bottom: 18px;
    color: #a98449;
    font-size: 1rem;
    letter-spacing: 0.22em;
  }

  .home-page .home-reviews-grid .review-card::before {
    content: '"';
    top: 14px;
    right: 22px;
    color: rgba(167, 134, 72, 0.16);
    font-size: 5.8rem;
    line-height: 0.9;
  }

  .home-page .home-reviews-grid .review-comment {
    position: relative;
    z-index: 1;
    flex: 1;
    margin-bottom: 0;
    color: #584d43;
    font-size: 1rem;
    line-height: 1.95;
  }

  .home-page .home-reviews-grid .review-author {
    color: #241c16;
    font-size: 1rem;
    font-weight: 700;
  }

  .home-page .home-reviews-grid .review-meta {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(227, 216, 200, 0.8);
    align-items: flex-end;
  }

  .home-page .home-reviews-grid .review-date {
    color: #8a7a69;
    font-size: 0.84rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .home-reviews-footer {
    display: flex;
    justify-content: center;
    margin-top: 34px;
  }

  .home-page .home-reviews-footer .btn {
    min-width: 248px;
  }

  .home-location-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
    gap: 28px;
    align-items: stretch;
    padding: 40px 42px;
    border-radius: 36px;
    border: 1px solid rgba(224, 210, 190, 0.9);
    background:
      linear-gradient(135deg, rgba(255, 252, 247, 0.98), rgba(247, 241, 232, 0.94)),
      #fff;
    box-shadow: 0 24px 56px rgba(31, 26, 23, 0.08);
  }

  .home-location-copy {
    display: grid;
    gap: 22px;
    align-content: start;
  }

  .home-hours-card {
    display: grid;
    gap: 14px;
    padding: 22px 24px;
    border-radius: 26px;
    border: 1px solid rgba(225, 213, 196, 0.9);
    background: rgba(255, 252, 247, 0.76);
  }

  .home-hours-label {
    color: #9c7a45;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }

  .home-hours-grid {
    display: grid;
  }

  .home-hours-row {
    display: grid;
    grid-template-columns: minmax(0, 120px) 1fr;
    gap: 18px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(227, 215, 198, 0.72);
  }

  .home-hours-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .home-hours-row:first-child {
    padding-top: 0;
  }

  .home-hours-row span {
    color: #695c50;
    font-size: 0.95rem;
  }

  .home-hours-row strong {
    color: #241b15;
    font-size: 0.96rem;
    font-weight: 600;
  }

  .home-hours-row.is-closed strong {
    color: #9b5c40;
  }

  .home-location-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
  }

  .home-location-preview {
    display: grid;
    overflow: hidden;
    border-radius: 32px;
    border: 1px solid rgba(224, 212, 194, 0.82);
    background: rgba(255, 252, 247, 0.96);
    box-shadow: 0 20px 46px rgba(31, 26, 23, 0.08);
    transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
  }

  .home-location-preview:hover {
    transform: translateY(-5px);
    border-color: rgba(171, 139, 88, 0.42);
    box-shadow: 0 28px 56px rgba(31, 26, 23, 0.12);
  }

  .home-location-map {
    position: relative;
    min-height: 340px;
    overflow: hidden;
    background: #efe6d8;
  }

  .home-location-map iframe {
    width: 100%;
    height: 100%;
    min-height: 340px;
    border: 0;
    filter: saturate(0.78) contrast(1.04) brightness(0.97);
  }

  .home-location-map::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
      linear-gradient(180deg, rgba(18, 13, 10, 0.1) 0%, rgba(18, 13, 10, 0.02) 38%, rgba(18, 13, 10, 0.18) 100%),
      linear-gradient(135deg, rgba(255, 249, 240, 0.18), rgba(255, 249, 240, 0));
    pointer-events: none;
  }

  .home-location-map-label {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    color: #fff8ef;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: rgba(25, 18, 13, 0.44);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .home-location-map-label::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #a97d43;
  }

  .home-cta-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    padding: 38px 42px;
    border-radius: 34px;
    border: 1px solid rgba(224, 209, 187, 0.9);
    background:
      linear-gradient(135deg, rgba(255, 252, 246, 0.98), rgba(245, 237, 224, 0.94)),
      #fff;
    box-shadow: 0 26px 58px rgba(31, 26, 23, 0.08);
  }

  .home-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: flex-end;
  }

  .home-page .footer {
    border-top: 1px solid rgba(224, 212, 193, 0.9);
    background:
      linear-gradient(180deg, rgba(252, 248, 242, 0.96), rgba(246, 240, 231, 0.96)),
      #fbf8f2;
    padding: 18px 0 14px;
  }

  .home-page .footer-grid {
    align-items: center;
    gap: 14px 20px;
  }

  .home-page .footer-brand {
    gap: 12px;
    align-items: center;
  }

  .home-page .footer-brand-copy h4 {
    font-size: 1rem;
  }

  .home-page .footer p,
  .home-page .footer a,
  .home-page .footer li {
    color: #6e6358;
  }

  .home-page .footer-links-inline {
    gap: 14px;
  }

  .home-page .footer-links a:hover {
    color: #231b16;
  }

  .home-page .copyright {
    margin-top: 10px;
    color: #7c7064;
  }

  .home-page.home-animations-ready [data-home-reveal] {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

  .home-page.home-animations-ready [data-home-reveal].home-is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  @media (prefers-reduced-motion: reduce) {
    [data-home-reveal] {
      opacity: 1;
      transform: none;
      transition: none;
    }

    .home-hero-media {
      transform: none;
      transition: none;
    }
  }

  @media (max-width: 1180px) {
    .home-hero-shell,
    .home-values-layout,
    .home-location-card,
    .home-cta-card {
      grid-template-columns: 1fr;
    }

    .home-values-grid,
    .home-collections-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-showcase-grid {
      grid-template-columns: 1fr;
    }

    .home-showcase-card.is-primary {
      min-height: 540px;
      grid-row: auto;
    }

    .reviews-trust-strip,
    .reviews-cta-card {
      grid-template-columns: 1fr;
    }
  }

@media (max-width: 760px) {
    .home-hero {
      min-height: auto;
      padding: 88px 0 34px;
    }

    .home-hero-shell {
      gap: 22px;
      padding-bottom: 40px;
    }

    .home-hero-copy h1 {
      font-size: 2.2rem;
      line-height: 1.2;
      max-width: 100%;
    }

    .home-hero-lead,
    .home-collection-copy p,
    .home-value-card p,
    .home-page .home-reviews-grid .review-card p {
      line-height: 1.72;
    }

    .home-hero-actions,
    .home-cta-actions {
      flex-direction: column;
      align-items: stretch;
    }

    .home-page .home-hero-actions .btn,
    .home-cta-actions .btn {
      width: 100%;
    }

    .home-values-grid,
    .home-collections-grid {
      grid-template-columns: 1fr;
    }

    .home-page .footer-grid {
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
    }

    .home-location-card,
    .home-value-card,
    .home-page .home-reviews-grid .review-card,
    .home-cta-card {
      padding: 24px 22px;
      border-radius: 26px;
    }

    .home-hours-row {
      grid-template-columns: 1fr;
      gap: 6px;
      padding: 11px 0;
    }

    .home-location-map {
      min-height: 240px;
    }

    .home-location-preview-copy h3 {
      font-size: 1.42rem;
    }

    .home-showcase-card,
    .home-showcase-card.is-primary {
      min-height: 320px;
    }

    .home-showcase-copy {
      left: 18px;
      right: 18px;
      bottom: 18px;
    }

    .home-showcase-copy h3 {
      max-width: none;
      font-size: 1.48rem;
    }

    .home-scroll-cue {
      display: none;
    }

    .home-page .footer {
      padding-top: 38px;
    }

    .reviews-hero {
      padding: 74px 0 22px;
    }

    .reviews-page .reviews-hero .section-title {
      font-size: clamp(2.35rem, 11vw, 3.6rem);
    }

    .reviews-filter-bar,
    .reviews-cta-actions {
      flex-direction: column;
      align-items: stretch;
    }

    .reviews-filter-btn,
    .reviews-cta-actions .btn {
      width: 100%;
    }

    .reviews-page .review-card,
    .reviews-cta-card,
    .reviews-trust-item {
      padding: 24px 22px;
      border-radius: 26px;
    }

    .reviews-page .review-comment {
      min-height: 0;
    }
  }
  
  /* ORDER PAGE */
  .order-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 26px;
    align-items: start;
  }
  
  .products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
  
  .product-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: 0.25s ease;
    cursor: pointer;
  }
  
  .product-card:hover {
    transform: translateY(-4px);
  }
  
  .product-thumb {
    height: 240px;
    width: 100%;
    display: block;
    object-fit: cover;
    background: #efe7db;
  }
  
  .product-copy {
    padding: 18px 18px 22px;
  }
  
  .product-copy h3 {
    margin-bottom: 6px;
  }
  
  .product-copy p {
    color: var(--text-soft);
    margin-bottom: 14px;
  }
  
  .product-meta {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    font-size: 0.95rem;
    color: var(--text-soft);
  }
  
  .order-summary {
    position: sticky;
    top: 96px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow);
  }
  
  .order-summary h3 {
    margin-bottom: 14px;
  }
  
  .order-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
  }
  
  .order-item-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
  }
  
  .order-item-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  
  .order-empty {
    color: var(--text-soft);
    font-size: 0.96rem;
    margin-bottom: 18px;
  }
  
  .order-total {
    margin: 16px 0;
    color: var(--text-soft);
    font-weight: 600;
  }
  
  .summary-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .mobile-cart-bar {
    display: none;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 60;
    background: var(--text);
    color: #fff;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
    padding: 14px 16px;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
  }
  
  .mobile-cart-bar button {
    background: var(--gold);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 700;
    cursor: pointer;
  }

  body.product-modal-open .mobile-cart-bar {
    display: none !important;
  }

  body.product-modal-open.order-page .scroll-top-btn {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(8px);
  }
  
  /* MODAL */
  .modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 16, 12, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 100;
    overflow-y: auto;
  }
  
  .modal-overlay.active {
    display: flex;
  }
  
  .modal {
    width: min(980px, 100%);
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  }
  
  .modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  
  .modal-gallery {
    background: #f2ede4;
    padding: 18px;
    position: relative;
  }
  
  .modal-gallery img {
    width: 100%;
    height: 100%;
    min-height: 450px;
    object-fit: cover;
    border-radius: 18px;
  }
  
  .gallery-nav {
    position: absolute;
    inset: auto 18px 18px 18px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
  }
  
  .gallery-nav button {
    pointer-events: auto;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    cursor: pointer;
    font-size: 1.1rem;
    box-shadow: var(--shadow);
  }
  
  .modal-content {
    padding: 28px;
    position: relative;
  }
  
  .modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: #f3efe8;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text);
  }
  
  .modal-content h3 {
    font-size: 2rem;
    line-height: 1.1;
    margin-bottom: 10px;
    padding-right: 50px;
  }
  
  .modal-content p {
    color: var(--text-soft);
  }
  
  .qty-box {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin: 16px 0 22px;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px;
    background: #faf7f2;
  }
  
  .qty-box button {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: none;
    background: #fff;
    cursor: pointer;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }
  
  .qty-box input {
    width: 72px;
    height: 38px;
    border: 1px solid rgba(167, 134, 72, 0.22);
    border-radius: 999px;
    background: #fff;
    text-align: center;
    font-weight: 700;
    color: var(--text);
    cursor: text;
    outline: none;
    appearance: textfield;
    -moz-appearance: textfield;
    box-shadow: inset 0 1px 2px rgba(31, 26, 23, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  }

  .qty-box input:focus {
    border-color: rgba(167, 134, 72, 0.7);
    box-shadow: 0 0 0 4px rgba(201, 169, 106, 0.14);
    transform: translateY(-1px);
  }

  .qty-box input::-webkit-outer-spin-button,
  .qty-box input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }

  .qty-hint {
    margin-top: -10px;
    margin-bottom: 18px;
    font-size: 0.88rem;
    color: var(--text-soft);
  }
  
  .modal-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
  }

  .review-section {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: #fbf8f3;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .review-section-head {
    margin-bottom: 16px;
  }

  .review-form {
    display: grid;
    gap: 14px;
  }

  .review-form textarea,
  .review-form input,
  .review-form select {
    width: 100%;
  }

  .review-submit-btn {
    width: 100%;
  }

  .review-submit-btn:disabled {
    opacity: 0.7;
    cursor: wait;
  }

  .review-status-message {
    margin-bottom: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    font-weight: 600;
  }

  .review-status-message.is-success {
    background: #eaf7ef;
    border: 1px solid #bfdcc9;
    color: #2f8b57;
  }

  .review-status-message.is-error {
    background: #fdecec;
    border: 1px solid #f0c8c8;
    color: #c04343;
  }

  .review-modal {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .review-modal.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  .review-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(23, 18, 13, 0.34);
    backdrop-filter: blur(6px);
  }

  .review-modal__dialog {
    position: relative;
    width: min(100%, 540px);
    max-height: min(88vh, 760px);
    overflow: auto;
    padding: 28px;
    border: 1px solid rgba(216, 203, 182, 0.72);
    border-radius: 28px;
    background:
      radial-gradient(circle at top right, rgba(201, 169, 106, 0.14), transparent 34%),
      linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(255, 255, 255, 0.98));
    box-shadow: 0 26px 58px rgba(31, 26, 23, 0.18);
    transform: translateY(10px) scale(0.985);
    transition: transform 0.25s ease;
  }

  .review-modal.is-visible .review-modal__dialog {
    transform: translateY(0) scale(1);
  }

  .review-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(216, 203, 182, 0.9);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
  }

  .review-modal__head {
    margin-bottom: 18px;
    padding-right: 44px;
  }

  .review-modal__head h2 {
    margin: 0 0 8px;
    font-size: clamp(1.9rem, 4vw, 2.45rem);
    line-height: 1.04;
  }

  .review-modal__head p {
    margin: 0;
    color: var(--text-soft);
  }

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

  .review-sticky-bar {
    display: none;
  }
  
  /* QUOTE PAGE */
  .quote-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 26px;
    align-items: start;
  }
  
  .form-card,
  .quote-summary-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 26px;
  }

  .quote-summary-card {
    position: sticky;
    top: 100px;
    padding: 26px;
    box-shadow: 0 18px 44px rgba(31, 26, 23, 0.12);
  }

  .quote-summary-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
  }

  .quote-summary-head h3 {
    font-size: 1.15rem;
    margin: 0;
  }
  
  .form-grid {
    display: grid;
    gap: 18px;
  }
  
  .form-grid.two-col {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
  }
  
  .form-group input,
  .form-group textarea,
  .form-group select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    padding: 14px 14px;
    color: var(--text);
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  }

  .form-group input:focus,
  .form-group textarea:focus,
  .form-group select:focus {
    border-color: rgba(167, 134, 72, 0.7);
    box-shadow: 0 0 0 4px rgba(201, 169, 106, 0.14);
    transform: translateY(-1px);
  }
  
  .form-group textarea {
    min-height: 130px;
    resize: vertical;
  }
  
  .help-text {
    color: var(--text-soft);
    font-size: 0.93rem;
    margin-top: 8px;
  }

  .location-field-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
  }

  .location-selection-shell {
    margin-top: 0;
  }

  .location-selection-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid rgba(167, 134, 72, 0.2);
    background: linear-gradient(135deg, rgba(201, 169, 106, 0.12), rgba(255, 255, 255, 0.98));
  }

  .location-selection-summary.is-empty {
    background: #fbf8f3;
  }

  .location-selection-copy {
    min-width: 0;
  }

  .location-selection-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--gold-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  .location-selection-summary strong {
    display: block;
    font-size: 1rem;
    line-height: 1.45;
    word-break: break-word;
  }

  .location-selection-summary p {
    margin: 8px 0 0;
    color: var(--text-soft);
    line-height: 1.5;
  }

  .location-selection-change-btn {
    flex-shrink: 0;
  }

  .location-picker-overlay {
    z-index: 260;
  }

  .location-picker-modal {
    width: min(920px, 100%);
  }

  .location-picker-modal-content {
    padding: 28px;
    display: grid;
    gap: 18px;
  }

  .location-picker-head h3 {
    margin: 0;
  }

  .location-picker-head p {
    margin: 8px 0 0;
    color: var(--text-soft);
  }

  .location-picker-search {
    display: grid;
    gap: 10px;
  }

  .location-picker-label {
    font-weight: 700;
  }

  .location-picker-search-status {
    color: var(--text-soft);
    font-size: 0.92rem;
  }

  .location-picker-results {
    display: grid;
    gap: 10px;
    max-height: 220px;
    overflow-y: auto;
  }

  .location-picker-result,
  .location-picker-result-empty {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: #fff;
    text-align: left;
  }

  .location-picker-result {
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .location-picker-result:hover,
  .location-picker-result:focus {
    border-color: rgba(167, 134, 72, 0.55);
    box-shadow: 0 12px 28px rgba(31, 26, 23, 0.08);
    transform: translateY(-1px);
  }

  .location-picker-result strong,
  .location-picker-result span {
    display: block;
  }

  .location-picker-result span,
  .location-picker-result-empty {
    margin-top: 6px;
    color: var(--text-soft);
    line-height: 1.45;
  }

  .location-picker-map {
    height: 360px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #efe6d9;
  }

  .location-picker-map .leaflet-container {
    width: 100%;
    height: 100%;
    border-radius: 20px;
  }

  .location-picker-preview {
    padding: 18px 20px;
    border-radius: 18px;
    background: #fbf8f3;
    border: 1px solid var(--border);
  }

  .location-picker-preview strong {
    display: block;
    line-height: 1.45;
  }

  .location-picker-preview p {
    margin: 8px 0 0;
    color: var(--text-soft);
    line-height: 1.5;
  }

  .location-picker-actions {
    margin-top: 0;
  }

  .location-picker-destination-icon {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .location-picker-destination-icon span {
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 3px solid #fff;
    background: #c9a96a;
    box-shadow: 0 10px 20px rgba(80, 57, 19, 0.24);
  }
  
  .quote-items-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  
  .quote-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
  }
  
  .quote-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .quote-item-info {
    flex: 1;
    min-width: 0;
  }

  .quote-item-info strong {
    display: block;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.35;
  }

  .item-category {
    margin-top: 4px;
    color: var(--text-soft);
    font-size: 0.82rem;
  }

  .qty-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
  }

  .qty-controls button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  }

  .qty-controls button:hover {
    background: var(--bg-soft);
    border-color: rgba(167, 134, 72, 0.35);
    transform: translateY(-1px);
  }

  .qty-controls span {
    min-width: 24px;
    text-align: center;
    font-weight: 600;
  }

  .quote-order-summary {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    display: grid;
    gap: 8px;
    color: var(--text-soft);
  }

  .quote-submit-btn {
    width: 100%;
    margin-top: 22px;
  }

  .quote-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
  }

  .quote-summary-footer {
    margin-top: 14px;
  }

  .quote-summary-footer .btn {
    width: 100%;
  }

  .quote-success-page {
    min-height: 100vh;
    position: relative;
    isolation: isolate;
    overflow-x: hidden;
    background:
      radial-gradient(circle at 10% 14%, rgba(201, 169, 106, 0.22), transparent 34%),
      radial-gradient(circle at 92% 16%, rgba(201, 169, 106, 0.13), transparent 32%),
      linear-gradient(180deg, #f8f4ec 0%, #f3ece0 46%, #f5f0e8 100%);
  }

  .quote-success-page::before,
  .quote-success-page::after {
    content: "";
    position: fixed;
    pointer-events: none;
    z-index: -1;
  }

  .quote-success-page::before {
    inset: 0;
    background:
      linear-gradient(115deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0)),
      radial-gradient(circle at bottom left, rgba(167, 134, 72, 0.14), transparent 45%);
  }

  .quote-success-page::after {
    right: -120px;
    bottom: -180px;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 169, 106, 0.2), rgba(201, 169, 106, 0));
    filter: blur(8px);
  }

  .quote-success-page .site-header {
    background: rgba(249, 244, 235, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom-color: rgba(201, 169, 106, 0.2);
  }

  .quote-success-main {
    position: relative;
    min-height: calc(100vh - 78px);
    display: flex;
    align-items: center;
    padding: clamp(44px, 7vw, 92px) 0;
  }

  .quote-success-main .container {
    width: min(94%, 1260px);
  }

  .quote-success-ambience {
    position: absolute;
    inset: clamp(36px, 6vw, 56px) clamp(12px, 2.5vw, 36px);
    border: 1px solid rgba(201, 169, 106, 0.16);
    border-radius: clamp(28px, 5vw, 52px);
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0)),
      repeating-linear-gradient(
        90deg,
        rgba(201, 169, 106, 0.05) 0px,
        rgba(201, 169, 106, 0.05) 1px,
        transparent 1px,
        transparent 66px
      );
    opacity: 0.42;
    pointer-events: none;
  }

  .quote-success-shell {
    position: relative;
    z-index: 1;
    width: min(1120px, 100%);
    margin: 0 auto;
    border: 1px solid rgba(201, 169, 106, 0.24);
    border-radius: clamp(28px, 5vw, 42px);
    background:
      linear-gradient(154deg, rgba(255, 255, 255, 0.93) 0%, rgba(252, 247, 239, 0.9) 100%);
    box-shadow:
      0 28px 68px rgba(31, 26, 23, 0.13),
      inset 0 1px 0 rgba(255, 255, 255, 0.72);
    padding: clamp(26px, 4.6vw, 52px);
    display: grid;
    grid-template-columns: 1.15fr 0.9fr;
    gap: clamp(20px, 3.4vw, 34px);
    animation: quoteSuccessFade 480ms ease;
    overflow: hidden;
  }

  .quote-success-shell::after {
    content: "";
    position: absolute;
    top: 28px;
    bottom: 28px;
    right: clamp(41%, 44%, 46%);
    width: 1px;
    background: linear-gradient(
      180deg,
      rgba(201, 169, 106, 0),
      rgba(201, 169, 106, 0.3) 16%,
      rgba(201, 169, 106, 0.3) 84%,
      rgba(201, 169, 106, 0)
    );
    pointer-events: none;
  }

  .quote-success-primary {
    display: grid;
    align-content: center;
    gap: 22px;
    padding-right: clamp(6px, 1.5vw, 14px);
  }

  .quote-success-secondary {
    display: grid;
    align-content: center;
    gap: 16px;
    padding-left: clamp(6px, 1.4vw, 14px);
  }

  .quote-success-mark {
    width: 84px;
    height: 84px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
      linear-gradient(145deg, #d7bb85, #b89350),
      linear-gradient(145deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0));
    box-shadow:
      0 18px 36px rgba(167, 134, 72, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(167, 134, 72, 0.35);
  }

  .quote-success-mark span {
    width: 24px;
    height: 14px;
    border-left: 3px solid #fff;
    border-bottom: 3px solid #fff;
    transform: rotate(-45deg) translateY(-1px);
  }

  .quote-success-kicker {
    margin-bottom: 12px;
    color: #90703e;
    text-transform: uppercase;
    letter-spacing: 0.21em;
    font-size: 0.76rem;
    font-weight: 800;
  }

  .quote-success-copy h1 {
    margin: 0 0 16px;
    max-width: 16ch;
    font-size: clamp(2.05rem, 4.1vw, 3.4rem);
    line-height: 1.04;
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: -0.022em;
    text-wrap: balance;
  }

  .quote-success-copy p {
    margin: 0;
    max-width: 54ch;
    color: #6f655c;
    font-size: clamp(1rem, 1.6vw, 1.08rem);
    line-height: 1.74;
  }

  .quote-success-order-id {
    position: relative;
    display: grid;
    gap: 8px;
    padding: 20px 22px;
    border: 1px solid rgba(167, 134, 72, 0.34);
    border-radius: 20px;
    background:
      linear-gradient(135deg, rgba(201, 169, 106, 0.18), rgba(255, 255, 255, 0.96));
    box-shadow: 0 14px 28px rgba(167, 134, 72, 0.12);
  }

  .quote-success-order-id span {
    font-size: 0.77rem;
    text-transform: uppercase;
    letter-spacing: 0.17em;
    color: #91743f;
    font-weight: 800;
  }

  .quote-success-order-id strong {
    font-size: clamp(1.08rem, 2.1vw, 1.34rem);
    letter-spacing: 0.085em;
    word-break: break-word;
    line-height: 1.35;
    color: #352c25;
  }

  .quote-success-next-steps {
    padding: 20px 22px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(217, 205, 186, 0.95);
  }

  .quote-success-next-steps h2 {
    margin: 0 0 12px;
    font-size: 1.03rem;
    font-weight: 700;
    letter-spacing: 0.01em;
  }

  .quote-success-next-steps ul {
    display: grid;
    gap: 9px;
    color: #6f655c;
    list-style: none;
    padding-left: 0;
  }

  .quote-success-next-steps li {
    position: relative;
    padding-left: 18px;
    line-height: 1.58;
  }

  .quote-success-next-steps li::before {
    content: "";
    position: absolute;
    top: 0.62em;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #c5a264;
    box-shadow: 0 0 0 4px rgba(201, 169, 106, 0.16);
  }

  .quote-success-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .quote-success-actions .btn {
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 999px;
  }

  #quoteSuccessTrackBtn {
    grid-column: 1 / -1;
    min-height: 50px;
    box-shadow: 0 12px 22px rgba(167, 134, 72, 0.24);
  }

  .quote-success-whatsapp .btn {
    width: 100%;
    min-height: 50px;
    border-radius: 999px;
    background: linear-gradient(145deg, #2a231d, #17120f);
    box-shadow: 0 14px 26px rgba(26, 20, 16, 0.23);
  }

  .quote-success-whatsapp .btn:hover {
    opacity: 1;
    transform: translateY(-1px);
  }

  .quote-success-page .footer {
    border-top-color: rgba(201, 169, 106, 0.24);
    background: rgba(251, 247, 239, 0.7);
  }

  @keyframes quoteSuccessFade {
    from {
      opacity: 0;
      transform: translateY(12px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .quote-success-shell {
      animation: none;
    }
  }

  .clear-all {
    font-size: 0.85rem;
    color: var(--text-soft);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
  }

  .clear-all:hover {
    color: var(--text);
  }

  .admin-login-page {
    min-height: 100vh;
    background:
      linear-gradient(135deg, rgba(20, 17, 15, 0.2), rgba(20, 17, 15, 0.05)),
      radial-gradient(circle at top left, rgba(201, 169, 106, 0.18), transparent 34%),
      linear-gradient(180deg, #f8f5ef 0%, #f4eee3 100%);
    position: relative;
    overflow-x: hidden;
  }

  .admin-login-page::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
      linear-gradient(rgba(248, 245, 239, 0.8), rgba(248, 245, 239, 0.88)),
      url("https://images.unsplash.com/photo-1519167758481-83f550bb49b3?auto=format&fit=crop&w=1600&q=80")
        center/cover no-repeat;
    opacity: 0.35;
    filter: blur(2px);
    transform: scale(1.03);
    pointer-events: none;
  }

  .admin-login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 40px 0;
  }

  .admin-login-layout {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
    align-items: stretch;
  }

  .admin-login-brand,
  .admin-login-card {
    position: relative;
    z-index: 1;
  }

  .admin-login-brand {
    border-radius: 30px;
    padding: 34px;
    background: linear-gradient(145deg, rgba(31, 26, 23, 0.88), rgba(63, 49, 30, 0.78));
    color: #fff;
    box-shadow: 0 24px 60px rgba(31, 26, 23, 0.18);
    overflow: hidden;
  }

  .admin-login-brand::after {
    content: "";
    position: absolute;
    inset: auto -40px -60px auto;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(201, 169, 106, 0.28), transparent 65%);
  }

  .admin-login-brand-inner {
    position: relative;
    z-index: 1;
    max-width: 460px;
  }

  .admin-login-brand-mark {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
  }

  .admin-login-logo {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    object-fit: contain;
    padding: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 30px rgba(12, 10, 8, 0.24);
    flex-shrink: 0;
  }

  .admin-login-brand-mark .admin-login-eyebrow {
    margin-bottom: 0;
  }

  .admin-login-eyebrow,
  .admin-login-kicker {
    display: inline-block;
    margin-bottom: 16px;
    font-size: 0.78rem;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    font-weight: 700;
  }

  .admin-login-eyebrow {
    color: rgba(255, 255, 255, 0.72);
  }

  .admin-login-brand h1 {
    font-size: clamp(2.3rem, 4vw, 3.6rem);
    line-height: 1;
    margin-bottom: 10px;
  }

  .admin-login-brand h2 {
    font-size: 1.25rem;
    color: #eadab8;
    margin-bottom: 16px;
    font-weight: 600;
  }

  .admin-login-brand p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.82);
    max-width: 34ch;
  }

  .admin-login-brand-note {
    margin-top: 28px;
    max-width: 34ch;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.68);
  }

  .admin-login-card {
    border-radius: 28px;
    padding: 34px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
  }

  .admin-login-card-head {
    margin-bottom: 24px;
  }

  .admin-login-kicker {
    color: var(--gold-dark);
  }

  .admin-login-card-head h2 {
    font-size: 2rem;
    line-height: 1.1;
    margin-bottom: 8px;
  }

  .admin-login-card-head p {
    color: var(--text-soft);
  }

  .admin-login-btn {
    width: 100%;
    margin-top: 6px;
    box-shadow: 0 16px 30px rgba(167, 134, 72, 0.22);
  }

  .admin-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 36px rgba(167, 134, 72, 0.26);
  }

  .admin-login-btn:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
    box-shadow: none;
  }

  .admin-login-error {
    min-height: 24px;
    margin-top: 2px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(192, 67, 67, 0.08);
    border: 1px solid rgba(192, 67, 67, 0.14);
    color: #9f3636;
    font-size: 0.95rem;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .admin-login-error.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  .empty-state {
    background: #fff;
    border: 1px dashed var(--border);
    border-radius: 20px;
    padding: 28px;
    color: var(--text-soft);
    text-align: center;
  }

  .track-status-message {
    margin-top: 18px;
    padding: 28px;
    border-radius: 22px;
    text-align: center;
    border: 1px solid transparent;
    box-shadow: var(--shadow);
  }

  .track-status-message strong {
    display: block;
    font-size: 2rem;
    line-height: 1.1;
    margin-bottom: 10px;
  }

  .track-status-message p {
    margin: 0;
    font-size: 1rem;
    color: inherit;
  }

  .track-status-message.is-not-found {
    background: #fff3f0;
    border-color: #f0b1a3;
    color: #b43f2f;
  }

  .track-status-message.is-error {
    background: #fff7e8;
    border-color: #e5c27c;
    color: #9a6508;
  }

  .track-status-message.is-cancelled {
    background: #fdeceb;
    border-color: #e6a8a1;
    color: #a63131;
    margin-bottom: 18px;
  }

.track-status-summary{
  margin: 18px 0 20px;
}

@media (max-width: 768px) {
  body {
    overflow-x: clip;
  }

  body.mobile-nav-open {
    overflow: hidden;
  }

  .site-header {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .navbar {
    min-height: 72px;
    gap: 12px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .brand {
    max-width: calc(100% - 72px);
  }

  .brand-copy {
    gap: 1px;
  }

  .nav-links {
    top: calc(100% + 8px);
    padding: 16px;
    border: 1px solid rgba(232, 223, 210, 0.95);
    border-radius: 20px;
    background: rgba(255, 252, 246, 0.98);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 22px 40px rgba(31, 26, 23, 0.12);
    max-height: calc(100svh - 96px);
    overflow-y: auto;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 10px 2px;
  }

  .mobile-menu-btn {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    touch-action: manipulation;
  }

  .page-section {
    padding: 52px 0;
  }

  .section-head {
    margin-bottom: 22px;
  }

  .section-title {
    font-size: clamp(2rem, 9vw, 3rem);
    line-height: 1.06;
  }

  .section-text {
    font-size: 0.98rem;
    line-height: 1.72;
  }

  .btn,
  button.btn,
  a.btn {
    min-height: 50px;
  }

  .home-page .home-hero {
    min-height: 100svh;
    padding: 84px 0 28px;
    align-items: flex-end;
  }

  .home-page .home-hero-shell {
    width: min(92%, 100%);
    padding-bottom: 52px;
  }

  .home-page .home-hero-copy {
    max-width: 100%;
  }

  .home-page .home-hero-copy h1 {
    max-width: 100%;
    line-height: 1.2;
  }

  .home-page .home-hero-lead {
    max-width: 100%;
    font-size: 0.95rem;
  }

  .home-page .home-collections-section,
  .home-page .home-values-section,
  .home-page .home-showcase-section,
  .home-page .home-reviews-section,
  .home-page .home-location-section,
  .home-page .home-cta-section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .home-page .home-showcase-grid {
    gap: 16px;
  }

  .home-page .home-showcase-card,
  .home-page .home-showcase-card.is-primary {
    min-height: 250px;
    border-radius: 26px;
  }

  .home-page .home-location-card {
    gap: 20px;
  }

  .home-page .home-location-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .home-page .home-location-actions .btn {
    width: 100%;
  }

  .home-page .home-location-map,
  .home-page .home-location-map iframe {
    min-height: 220px;
  }

  .order-page main,
  .track-page main,
  .reviews-page main {
    overflow-x: clip;
  }

  .order-page .order-catalog-section {
    padding-top: 34px;
    padding-bottom: 100px;
  }

  .order-page .order-page-head .section-title {
    font-size: clamp(2.2rem, 10vw, 3rem);
  }

  .order-page .order-page-head .section-text {
    max-width: 100%;
  }

  .order-page .order-toolbar {
    gap: 16px;
    border-radius: 24px;
  }

  .order-page .order-search-field input {
    min-height: 52px;
  }

  .order-page .product-filters {
    gap: 8px;
  }

  .order-page .filter-btn {
    min-height: 44px;
    padding: 10px 16px;
  }

  .order-page .product-card {
    border-radius: 24px;
  }

  .order-page .product-media {
    padding: 12px 12px 0;
  }

  .order-page .product-thumb {
    height: 228px;
    border-radius: 18px;
  }

  .order-page .product-badge {
    top: 22px;
    left: 22px;
  }

  .order-page .product-copy {
    padding: 16px 16px 18px;
  }

  .order-page .order-items-list {
    gap: 12px;
  }

  .order-page .order-item-row {
    align-items: stretch;
    gap: 12px;
    padding: 14px;
  }

  .order-page .qty-controls {
    align-self: flex-start;
  }

  .order-page .qty-controls button {
    width: 38px;
    height: 38px;
  }

  #productModal .order-product-modal {
    border-radius: 24px;
  }

  #productModal .modal-close {
    width: 42px;
    height: 42px;
  }

  #productModal .order-modal-content {
    gap: 18px;
  }

  .track-page main.page-section,
  .track-page main {
    padding-top: 20px;
    padding-bottom: 72px;
  }

  .track-page .section-head {
    margin-bottom: 14px;
  }

  .track-page .section-kicker {
    font-size: 0.98rem;
    letter-spacing: 0.22em;
  }

  .track-page .section-title {
    font-size: clamp(2.15rem, 10vw, 3rem);
    margin-bottom: 8px;
  }

  .track-page .track-grid {
    gap: 18px;
  }

  .track-page .track-card {
    border-radius: 24px;
  }

  .track-page #orderIdInput,
  .track-page #supportReason,
  .track-page #reviewStars,
  .track-page #reviewComment,
  .track-page #reviewName {
    min-height: 50px;
  }

  .track-page #reviewComment {
    min-height: 120px;
  }

  .track-page .track-status-hero-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .track-page .track-location-copy strong {
    font-size: 0.98rem;
  }

  .track-page .track-info-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .track-page .track-order-items-list li {
    flex-direction: column;
    align-items: flex-start;
  }

  .track-page #mapContainer {
    height: 280px !important;
    border-radius: 18px 18px 0 0;
    overflow: hidden;
  }

  .track-page #driverInfoBox {
    padding: 18px;
    border-radius: 18px;
  }

  .track-page .support-box {
    padding: 18px;
  }

  .track-page .support-btn,
  .track-page #driverWhatsappBtn,
  .track-page .track-open-location-link,
  .track-page .review-submit-btn,
  .track-page .track-card .btn {
    width: 100%;
    justify-content: center;
  }

  .reviews-page .reviews-hero {
    padding: 78px 0 22px;
  }

  .reviews-page .reviews-trust-strip {
    gap: 14px;
  }

  .reviews-page .reviews-filter-bar {
    gap: 10px;
    margin-bottom: 22px;
  }

  .reviews-page .reviews-filter-btn {
    min-height: 46px;
    padding: 12px 16px;
  }

  .reviews-page .large-reviews-grid {
    gap: 18px;
  }

  .reviews-page .review-card {
    padding: 26px 22px 22px;
  }

  .reviews-page .review-meta {
    gap: 8px;
    align-items: flex-start;
  }

  .reviews-page .review-date {
    font-size: 0.78rem;
  }

  .reviews-page .reviews-cta-section {
    padding-top: 10px;
  }
}

@media (max-width: 430px) {
  .container {
    width: min(92%, 100%);
  }

  .navbar {
    min-height: 68px;
  }

  .brand {
    gap: 8px;
    max-width: calc(100% - 64px);
  }

  .brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .brand h1,
  .brand h2,
  .brand h3 {
    font-size: 0.88rem;
  }

  .brand span {
    font-size: 0.7rem;
  }

  .home-page .home-hero {
    padding-top: 80px;
  }

  .home-page .home-hero-copy h1 {
    font-size: 2.2rem;
    line-height: 1.2;
  }

  .home-page .home-hero-actions .btn,
  .home-page .home-cta-actions .btn,
  .home-page .home-location-actions .btn {
    min-width: 0;
  }

  .order-page .order-catalog-shell {
    width: min(92%, 100%);
  }

  .order-page .product-thumb {
    height: 212px;
  }

  .order-page .order-summary,
  .order-page .order-toolbar {
    padding: 18px;
  }

  .track-page #mapContainer {
    height: 240px !important;
  }

  .reviews-page .reviews-trust-item,
  .reviews-page .reviews-cta-card {
    padding: 22px 18px;
  }
}

@media (max-width: 390px) {
  .page-section {
    padding: 46px 0;
  }

  .nav-links {
    padding: 14px;
  }

  .section-title {
    font-size: clamp(1.8rem, 9vw, 2.6rem);
  }

  .home-page .home-hero-shell {
    padding-bottom: 42px;
  }

  .home-page .home-hero-copy h1 {
    max-width: 8.5ch;
  }

  .order-page .filter-btn {
    width: 100%;
    justify-content: center;
  }

  .order-page .order-item-row {
    padding: 12px;
  }

  .reviews-page .review-card {
    padding: 22px 18px 20px;
  }
}

.track-status-summary-card{
  display:grid;
  gap:10px;
  padding:20px 22px;
  border-radius:22px;
  border:1px solid rgba(201, 169, 106, 0.32);
  background:
    radial-gradient(circle at top right, rgba(201, 169, 106, 0.18), transparent 46%),
    linear-gradient(135deg, #fffaf1 0%, #fff 100%);
  box-shadow:0 18px 30px rgba(31, 26, 23, 0.08);
}

.track-status-summary-label{
  font-size:0.78rem;
  font-weight:800;
  letter-spacing:0.16em;
  text-transform:uppercase;
  color:var(--gold-dark);
}

.track-status-summary-card strong{
  font-size:clamp(1.8rem, 4vw, 2.6rem);
  line-height:1.05;
  color:#8f661e;
}

.track-status-summary-card p{
  margin:0;
  color:var(--text-soft);
  font-size:1rem;
  line-height:1.5;
}

.track-status-summary-card.is-quote-requested strong,
.track-status-summary-card.is-quote-sent strong,
.track-status-summary-card.is-preparing strong{
  color:#8f661e;
}

.track-status-summary-card.is-confirmed{
  border-color:rgba(47, 139, 87, 0.18);
  background:
    radial-gradient(circle at top right, rgba(47, 139, 87, 0.14), transparent 44%),
    linear-gradient(135deg, #eef9f1 0%, #fff 100%);
}

.track-status-summary-card.is-confirmed strong{
  color:#2f8b57;
}

.track-status-summary-card.is-out-for-delivery{
  border-color:rgba(87, 67, 204, 0.18);
  background:
    radial-gradient(circle at top right, rgba(87, 67, 204, 0.14), transparent 44%),
    linear-gradient(135deg, #f5f2ff 0%, #fff 100%);
}

.track-status-summary-card.is-out-for-delivery strong{
  color:#5743cc;
}

.track-status-summary-card.is-delivered{
  border-color:rgba(47, 139, 87, 0.18);
  background:
    radial-gradient(circle at top right, rgba(47, 139, 87, 0.14), transparent 44%),
    linear-gradient(135deg, #eef9f1 0%, #fff 100%);
}

.track-status-summary-card.is-delivered strong{
  color:#2f8b57;
}

.track-status-summary-card.is-cancelled{
  border-color:rgba(192, 67, 67, 0.2);
  background:
    radial-gradient(circle at top right, rgba(192, 67, 67, 0.12), transparent 44%),
    linear-gradient(135deg, #fff2f2 0%, #fff 100%);
}

.track-status-summary-card.is-cancelled strong{
  color:#c04343;
}

.track-order-info,
.track-order-items{
  margin-bottom:20px;
}

.track-order-details-block{
  margin-top: 16px;
}

.track-order-details-block > h4{
  margin: 0 0 10px;
}

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

.track-info-grid p{
  margin:0;
  padding:12px 14px;
  border-radius:16px;
  background:#fbf8f3;
  border:1px solid rgba(232, 223, 210, 0.9);
}

.track-inline-link{
  color:var(--gold-dark);
  font-weight:700;
}

.track-order-items h4{
  margin:0 0 12px;
}

.track-order-items-list{
  display:grid;
  gap:10px;
}

.track-order-items-list li{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border-radius:16px;
  background:#fbf8f3;
  border:1px solid rgba(232, 223, 210, 0.9);
}

.track-order-items-list strong{
  color:var(--gold-dark);
}

.track-map-status-shell {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.track-map-status-hero:empty,
.track-map-status-details:empty,
.track-map-status-legend:empty {
  display: none;
}

.track-map-status-main {
  display: grid;
  gap: 12px;
}

.track-status-eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.track-status-hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(210, 182, 120, 0.42);
  background:
    radial-gradient(circle at top right, rgba(201, 169, 106, 0.18), transparent 44%),
    linear-gradient(135deg, #fffaf1 0%, #fff 100%);
  box-shadow: 0 16px 30px rgba(31, 26, 23, 0.08);
}

.track-status-hero-card.is-active {
  color: #765114;
}

.track-status-hero-card.is-on-time strong {
  color: #2f8b57;
}

.track-status-hero-card.is-delayed strong {
  color: #c04343;
}

.track-status-hero-card.is-muted {
  border-color: rgba(180, 167, 145, 0.28);
  background:
    radial-gradient(circle at top right, rgba(188, 178, 161, 0.1), transparent 40%),
    linear-gradient(135deg, #faf8f4 0%, #fff 100%);
  color: #6c5a41;
}

.track-status-hero-card strong {
  display: block;
  margin-top: 8px;
  color: #8f661e;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.05;
}

.track-status-hero-card.is-muted strong {
  color: #6c5a41;
}

.track-status-hero-card p {
  margin: 8px 0 0;
  max-width: 38ch;
  color: inherit;
  line-height: 1.5;
}

.track-map-status-details {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(214, 200, 177, 0.6);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 246, 240, 0.92));
}

.track-location-overview {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.track-location-copy {
  min-width: 0;
}

.track-location-copy strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.45;
}

.track-location-copy p {
  margin: 8px 0 0;
  color: var(--text-soft);
}

.track-open-location-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(167, 134, 72, 0.22);
  background: rgba(255, 251, 245, 0.92);
  color: var(--gold-dark);
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.track-open-location-link:hover {
  transform: translateY(-1px);
  border-color: rgba(167, 134, 72, 0.38);
  box-shadow: 0 10px 20px rgba(31, 26, 23, 0.08);
}

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

.track-status-card {
  position: relative;
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 14px 16px 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(213, 202, 185, 0.72);
  background: rgba(255, 255, 255, 0.9);
}

.track-status-card::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 0;
  bottom: 16px;
  width: 3px;
  border-radius: 999px;
  background: #d4c2a2;
}

.track-status-card-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.track-status-card strong {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.25;
}

.track-status-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.45;
}

.track-status-card.is-live {
  background: linear-gradient(135deg, rgba(238, 247, 246, 0.95), #fff);
  border-color: rgba(190, 222, 217, 0.95);
}

.track-status-card.is-live::before {
  background: #2b8a7d;
}

.track-status-card.is-destination {
  background: linear-gradient(135deg, rgba(248, 242, 231, 0.96), #fff);
  border-color: rgba(234, 210, 161, 0.92);
}

.track-status-card.is-destination::before {
  background: #b57d1f;
}

.track-status-card.is-complete {
  background: linear-gradient(135deg, rgba(239, 247, 240, 0.96), #fff);
  border-color: rgba(183, 219, 187, 0.95);
}

.track-status-card.is-complete::before {
  background: #2f8b57;
}

.track-status-card.is-muted {
  background: linear-gradient(135deg, rgba(245, 241, 234, 0.96), #fff);
  border-color: rgba(226, 216, 201, 0.95);
}

.track-status-card.is-muted::before {
  background: #8a8173;
}

.track-map-status-legend {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(214, 200, 177, 0.5);
  background: rgba(255, 255, 255, 0.86);
}

.track-map-legend-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.track-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.track-map-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.track-map-legend-item::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.track-map-legend-item.is-driver {
  background: #eef3ff;
  border-color: #cfdcff;
  color: #2f6ecf;
}

.track-map-legend-item.is-driver::before {
  background: #2f6ecf;
}

.track-map-legend-item.is-destination {
  background: #fff8eb;
  border-color: #ead2a1;
  color: #9a6508;
}

.track-map-legend-item.is-destination::before {
  background: #c18a1f;
}

.track-map-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(31, 26, 23, 0.18);
}

.track-map-marker span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  min-width: 100%;
  padding: 0 14px;
  border-radius: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.track-map-marker-driver-shell {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2f6ecf 0%, #4a87ec 100%);
  box-shadow: 0 14px 24px rgba(47, 110, 207, 0.24);
}

.track-map-truck-icon {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.track-map-marker-destination span {
  background: #fff8eb;
  color: #9a6508;
  border: 1px solid #ead2a1;
}

.track-page .track-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.track-page .track-lookup-card {
  padding: 24px 28px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(201, 169, 106, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(255, 255, 255, 0.94));
  box-shadow: 0 16px 30px rgba(31, 26, 23, 0.06);
}

.track-page .track-lookup-head h3,
.track-page .track-section-head h3,
.track-page .review-section-head h3 {
  margin-bottom: 8px;
}

.track-page .track-lookup-head p,
.track-page .track-section-head p,
.track-page .review-section-head p {
  color: var(--text-soft);
}

.track-page .track-results-stack {
  display: grid;
  gap: 18px;
}

.track-page .track-lookup-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin-top: 18px;
}

.track-page .track-result-message {
  margin-top: 18px;
}

.track-page .track-result-message:empty {
  display: none;
}

.track-page .track-section-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 800;
}

.track-page .track-section-head,
.track-page .review-section-head {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
}

.track-page .track-status-card-shell {
  padding: 0;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 249, 244, 0.96));
  box-shadow: 0 18px 36px rgba(31, 26, 23, 0.08);
  overflow: hidden;
}

.track-page .track-status-card-shell .track-section-head {
  padding: 24px 30px 4px;
  margin-bottom: 0;
}

.track-page .track-status-summary:empty::before {
  content: "Your latest tracking update will appear here after you enter an order ID.";
  display: block;
  padding: 26px 30px 30px;
  border: 0;
  border-top: 1px solid rgba(201, 169, 106, 0.14);
  background: linear-gradient(180deg, rgba(255, 251, 244, 0.56), rgba(255, 255, 255, 0.96));
  color: var(--text-soft);
}

.track-page .track-status-summary-card {
  gap: 14px;
  padding: 24px 30px 32px;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.track-page .track-status-summary-card strong {
  max-width: 12ch;
  font-size: clamp(2.7rem, 5vw, 4.2rem);
  line-height: 0.97;
}

.track-page .track-status-summary-card p {
  max-width: 58ch;
  font-size: 1.02rem;
  color: inherit;
}

.track-page .track-status-summary-label {
  font-size: 0.74rem;
  letter-spacing: 0.2em;
}

.track-page .track-status-summary-card.status-quote {
  background: #F5F2EC;
  color: #8A6E3B;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.track-page .track-status-summary-card.status-sent {
  background: #EEF3FA;
  color: #3A5A8A;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.track-page .track-status-summary-card.status-confirmed {
  background: #EEF7F2;
  color: #2F7A57;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.44);
}

.track-page .track-status-summary-card.status-preparing {
  background: #F8F3E8;
  color: #8A641F;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.track-page .track-status-summary-card.status-delivery {
  background: #EDF4FA;
  color: #1F4E79;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.track-page .track-status-summary-card.status-delivered {
  background: #EAF7EF;
  color: #1E6B3A;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.track-page .track-status-summary-card.status-cancelled {
  background: #FDEEEE;
  color: #8A2F2F;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.track-page .track-status-summary-card.status-quote strong,
.track-page .track-status-summary-card.status-sent strong,
.track-page .track-status-summary-card.status-confirmed strong,
.track-page .track-status-summary-card.status-preparing strong,
.track-page .track-status-summary-card.status-delivery strong,
.track-page .track-status-summary-card.status-delivered strong,
.track-page .track-status-summary-card.status-cancelled strong {
  color: inherit;
}

.track-page .track-timeline-card {
  padding: 24px 28px 26px;
  box-shadow: 0 12px 26px rgba(31, 26, 23, 0.05);
}

.track-page .status-list {
  display: grid;
  gap: 12px;
  margin-top: 0;
  padding-left: 18px;
}

.track-page .status-list::before {
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, rgba(201, 169, 106, 0.45), rgba(229, 225, 216, 0.42));
}

.track-page .status-step {
  margin-bottom: 0;
  padding: 16px 18px 16px 22px;
  border-radius: 20px;
  border-width: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(252, 249, 244, 0.72));
  opacity: 1;
  box-shadow: 0 6px 16px rgba(31, 26, 23, 0.035);
}

.track-page .status-step.active {
  background: linear-gradient(135deg, rgba(255, 248, 236, 0.84) 0%, rgba(255, 255, 255, 0.96) 100%);
  border-color: rgba(201, 169, 106, 0.4);
  box-shadow: 0 10px 22px rgba(167, 134, 72, 0.08);
}

.track-page .status-step.current {
  background: linear-gradient(135deg, rgba(255, 243, 220, 0.92) 0%, rgba(255, 255, 255, 1) 100%);
  border: 1px solid rgba(201, 169, 106, 0.62);
  box-shadow: 0 14px 28px rgba(167, 134, 72, 0.1);
}

.track-page .status-step strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.98rem;
  color: var(--text);
}

.track-page .status-step p {
  margin: 0;
  line-height: 1.5;
}

.track-page .status-dot {
  width: 12px;
  height: 12px;
  left: -5px;
  top: 21px;
  background: #dfd5c5;
  box-shadow: 0 0 0 5px #f8f5ef;
}

.track-page .track-map-card,
.track-page .track-order-details-block,
.track-page .review-section,
.track-page .support-box {
  padding: 22px 26px;
  box-shadow: 0 12px 24px rgba(31, 26, 23, 0.045);
}

.track-page .track-map-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 246, 240, 0.92));
}

.track-page .track-map-status-shell {
  gap: 14px;
  margin-bottom: 16px;
}

.track-page #mapContainer {
  height: clamp(240px, 30vw, 290px) !important;
  border-radius: 22px !important;
  border: 1px solid rgba(214, 200, 177, 0.72);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.track-page #mapContainer .leaflet-container {
  border-radius: 22px;
}

.track-page .track-map-card .track-open-location-link {
  width: auto;
}

.track-page .track-driver-info-card {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(214, 200, 177, 0.72);
  background: rgba(255, 255, 255, 0.9);
}

.track-page .track-driver-action {
  margin-top: 14px;
}

.track-page .track-order-details-block {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 248, 243, 0.95));
}

.track-page .track-order-info,
.track-page .track-order-items {
  margin-bottom: 16px;
}

.track-page .track-order-details-block > h4,
.track-page .track-order-items h4 {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.track-page .track-info-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.track-page .track-info-grid p,
.track-page .track-order-items-list li {
  border-radius: 18px;
  background: rgba(251, 248, 243, 0.88);
}

.track-page .track-info-grid p {
  padding: 11px 13px;
}

.track-page .track-order-items-list {
  gap: 8px;
}

.track-page .track-order-items-list li {
  padding: 11px 13px;
}

.track-page .review-section,
.track-page .support-box {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 249, 244, 0.94));
}

.track-page .review-section--inline {
  padding: 20px 24px;
  border: 1px solid rgba(216, 203, 182, 0.72);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(201, 169, 106, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(255, 255, 255, 0.98));
}

.track-page .review-section--inline .review-section-head {
  margin-bottom: 14px;
}

.track-page .review-section--inline .review-section-head h3 {
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.track-page .review-form--modal {
  gap: 16px;
}

.track-page .review-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--text);
}

.track-page .review-form .form-group {
  display: grid;
  gap: 0;
}

.track-page .review-form textarea,
.track-page .review-form input {
  min-height: 50px;
  padding: 13px 15px;
  border-radius: 16px;
  border: 1px solid rgba(221, 210, 191, 0.9);
  background: linear-gradient(180deg, rgba(255, 254, 251, 0.98), rgba(255, 255, 255, 0.98));
  color: var(--text);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.track-page .review-form textarea {
  min-height: 120px;
  resize: vertical;
  padding: 14px 15px;
}

.track-page .review-form textarea:focus,
.track-page .review-form input:focus {
  outline: none;
  border-color: rgba(201, 169, 106, 0.78);
  box-shadow: 0 0 0 4px rgba(201, 169, 106, 0.14);
}

.track-page .review-star-field {
  display: grid;
  gap: 10px;
  padding: 16px 16px 14px;
  border: 1px solid rgba(224, 213, 195, 0.92);
  border-radius: 20px;
  background: linear-gradient(180deg, #fffdf8 0%, #fbf7ef 100%);
}

.track-page .review-star-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.track-page .review-star-btn {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 16px;
  background: rgba(255, 251, 244, 0.92);
  color: #d8d1c4;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.track-page .review-star-btn.is-active {
  color: #c9a96a;
  background: rgba(255, 247, 230, 0.98);
  box-shadow: inset 0 0 0 1px rgba(201, 169, 106, 0.2), 0 10px 20px rgba(201, 169, 106, 0.12);
  transform: translateY(-1px) scale(1.03);
}

.track-page .review-star-btn:hover,
.track-page .review-star-btn:focus-visible {
  outline: none;
  color: #c9a96a;
  background: rgba(255, 247, 230, 0.98);
  box-shadow: inset 0 0 0 1px rgba(201, 169, 106, 0.24), 0 10px 20px rgba(201, 169, 106, 0.1);
  transform: translateY(-1px) scale(1.04);
}

.track-page .review-star-caption {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.45;
}

.track-page .review-sticky-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(216, 203, 182, 0.8);
  border-radius: 18px;
  background: rgba(31, 26, 23, 0.94);
  box-shadow: 0 20px 42px rgba(31, 26, 23, 0.22);
}

.track-page .review-sticky-bar span {
  color: #fffaf3;
  font-weight: 700;
}

.track-page .review-sticky-bar .btn {
  min-width: 138px;
  min-height: 46px;
  padding-inline: 20px;
}

.track-page .review-modal .review-status-message {
  margin-bottom: 16px;
}

.track-page .review-modal__dialog .review-form input,
.track-page .review-modal__dialog .review-form textarea {
  background: rgba(255, 255, 255, 0.99);
}

.track-page.review-modal-open {
  overflow: hidden;
}

.track-page .support-box {
  margin-top: 0 !important;
  border-radius: 24px !important;
}

.track-page .support-select {
  min-height: 50px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: #fff;
}

.track-page .support-btn,
.track-page #driverWhatsappBtn,
.track-page .review-submit-btn {
  width: 100%;
}

@media (max-width: 900px) {
  .track-page .track-lookup-form {
    grid-template-columns: 1fr;
  }

  .track-page .track-status-summary-card {
    padding: 24px 24px 28px;
  }

  .track-page .track-status-card-shell .track-section-head {
    padding: 22px 24px 4px;
  }

  .track-page .track-map-card,
  .track-page .track-order-details-block,
  .track-page .review-section,
  .track-page .support-box,
  .track-page .track-timeline-card {
    padding: 22px;
  }
}

@media (max-width: 760px) {
  .reviews-page .reviews-hero {
    padding: 56px 0 12px;
  }

  .reviews-page .reviews-hero .section-head {
    margin-bottom: 16px;
  }

  .reviews-page .reviews-hero .section-title {
    font-size: clamp(2rem, 9vw, 2.8rem);
    max-width: 11ch;
  }

  .reviews-page .reviews-trust-strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 2px 2px 8px;
    margin-inline: -2px;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
  }

  .reviews-page .reviews-trust-item {
    flex: 0 0 min(82vw, 290px);
    min-width: 0;
    padding: 16px 18px;
    border-radius: 20px;
    scroll-snap-align: start;
  }

  .reviews-page .reviews-filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-bottom: 18px;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .reviews-page .reviews-filter-bar::-webkit-scrollbar,
  .reviews-page .reviews-trust-strip::-webkit-scrollbar {
    display: none;
  }

  .reviews-page .reviews-filter-btn {
    width: auto;
    flex: 0 0 auto;
    min-height: 40px;
    padding: 9px 14px;
    font-size: 0.84rem;
  }

  .reviews-pagination {
    margin-top: 20px;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .reviews-pagination::-webkit-scrollbar {
    display: none;
  }

  .reviews-pagination-pages {
    flex-wrap: nowrap;
  }

  .reviews-pagination-btn {
    min-height: 40px;
    padding: 9px 13px;
    font-size: 0.84rem;
  }

  .reviews-page .large-reviews-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .reviews-page .review-card {
    min-height: 210px;
    padding: 20px 18px 18px;
    border-radius: 22px;
  }

  .reviews-page .review-card::before {
    top: 8px;
    right: 14px;
    font-size: 3.2rem;
  }

  .reviews-page .stars {
    margin-bottom: 10px;
    font-size: 0.9rem;
  }

  .reviews-page .review-comment {
    font-size: 0.95rem;
    line-height: 1.68;
  }

  .reviews-page .review-image {
    margin-top: 14px;
    height: auto;
  }

  .reviews-page .review-meta {
    margin-top: 14px;
    padding-top: 12px;
    gap: 6px;
    align-items: flex-start;
  }

  .reviews-page .review-author,
  .reviews-page .review-date {
    width: 100%;
  }

  .reviews-page .review-date {
    text-align: left;
  }

  .reviews-page .reviews-cta-section {
    padding-top: 2px;
  }

  .reviews-page .reviews-cta-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 22px 20px;
    border-radius: 22px;
  }

  .reviews-page .reviews-cta-actions {
    justify-content: flex-start;
  }

  .reviews-page .reviews-cta-actions .btn {
    width: 100%;
    min-height: 46px;
  }

  .track-page .track-grid,
  .track-page .track-results-stack {
    gap: 16px;
  }

  .track-page .track-lookup-card,
  .track-page .track-status-card-shell,
  .track-page .track-map-card,
  .track-page .track-order-details-block,
  .track-page .review-section,
  .track-page .support-box,
  .track-page .track-timeline-card {
    padding: 20px;
    border-radius: 22px;
  }

  .track-page main.page-section,
  .track-page main {
    padding-top: 16px;
    padding-bottom: 56px;
  }

  .track-page .track-status-card-shell .track-section-head {
    padding: 20px 20px 2px;
    margin-bottom: 0;
  }

  .track-page.track-review-sticky-visible main.page-section,
  .track-page.track-review-sticky-visible main {
    padding-bottom: 140px;
  }

  .track-page .track-status-summary-card {
    padding: 22px 22px 24px;
    min-width: 0;
  }

  .track-page .track-status-summary-card strong {
    max-width: none;
    font-size: clamp(2.4rem, 9vw, 3.2rem);
    line-height: 1;
  }

  .track-page .track-status-summary-card p {
    font-size: 1rem;
  }

  .track-page .status-list {
    padding-left: 14px;
  }

  .track-page .status-step {
    padding: 15px 14px 15px 20px;
    border-radius: 18px;
  }

  .track-page .status-dot {
    top: 20px;
  }

  .track-page #mapContainer {
    height: 260px !important;
    border-radius: 18px !important;
  }

  .track-page #mapContainer .leaflet-container {
    border-radius: 18px;
  }

  .track-page .review-section--inline {
    padding: 20px;
  }

  .track-page .review-section--inline .review-section-head h3 {
    font-size: 1.2rem;
  }

  .track-page .review-star-field {
    padding: 14px;
    border-radius: 18px;
  }

  .track-page .review-star-group {
    justify-content: space-between;
    gap: 6px;
  }

  .track-page .review-star-btn {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 1.7rem;
  }

  .track-page .review-modal {
    padding: 16px;
  }

  .track-page .review-modal__dialog {
    width: 100%;
    padding: 24px 18px 18px;
    border-radius: 22px;
  }

  .track-page .review-modal__head {
    padding-right: 38px;
  }

  .track-page .review-modal__actions {
    grid-template-columns: 1fr;
  }

  .track-page .review-sticky-bar {
    display: flex;
  }
}

@media (min-width: 761px) {
  .track-page .review-sticky-bar {
    display: none !important;
  }
}

.driver-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 20px;
}

.driver-pagination-info {
  min-width: 110px;
  text-align: center;
  color: var(--text-soft);
  font-weight: 700;
}
  
  /* TRACK */
  .track-grid {
    grid-template-columns: 380px 1fr;
  }
  
  .status-list {
    display: grid;
    gap: 14px;
    margin-top: 14px;
  }
  
  .status-step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
  }
  
  .status-dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    margin-top: 5px;
    background: #d8c8ab;
    flex-shrink: 0;
  }
  
  .status-step.active .status-dot {
    background: var(--gold-dark);
  }
  
  .map-placeholder {
    min-height: 440px;
    border-radius: 22px;
    background:
      linear-gradient(rgba(31, 26, 23, 0.12), rgba(31, 26, 23, 0.12)),
      url("https://images.unsplash.com/photo-1524661135-423995f22d0b?auto=format&fit=crop&w=1200&q=80")
        center/cover no-repeat;
    display: flex;
    align-items: flex-end;
    padding: 24px;
    color: #fff;
    box-shadow: var(--shadow);
  }
  
  /* REVIEWS */
  .reviews-hero {
    padding: 70px 0 18px;
  }

  .large-reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .reviews-page .reviews-hero .section-head {
    max-width: 760px;
    margin-bottom: 20px;
  }

  .reviews-page .reviews-hero .section-title {
    font-size: clamp(2.45rem, 4.6vw, 4.2rem);
    line-height: 1.04;
    max-width: 12ch;
  }

  .reviews-trust-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
  }

  .reviews-trust-item {
    display: grid;
    gap: 8px;
    padding: 18px 20px;
    border-radius: 22px;
    border: 1px solid rgba(224, 212, 194, 0.84);
    background:
      linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(248, 242, 233, 0.94)),
      #fff;
    box-shadow: 0 12px 28px rgba(31, 26, 23, 0.045);
  }

  .reviews-trust-item strong {
    color: #241b15;
    font-size: 0.98rem;
    line-height: 1.35;
  }

  .reviews-trust-item span {
    color: #6d6155;
    line-height: 1.6;
    font-size: 0.92rem;
  }

  .reviews-archive-section {
    padding-top: 16px;
  }

  .reviews-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
  }

  .reviews-filter-btn {
    border: 1px solid rgba(220, 207, 188, 0.95);
    background: rgba(255, 252, 247, 0.92);
    color: #6e6155;
    padding: 10px 16px;
    border-radius: 999px;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    white-space: nowrap;
  }

  .reviews-filter-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(173, 141, 91, 0.34);
    box-shadow: 0 12px 24px rgba(31, 26, 23, 0.06);
  }

  .reviews-filter-btn.is-active {
    color: #fff8ee;
    border-color: rgba(167, 134, 72, 0.9);
    background: linear-gradient(135deg, #b28a4e, #9a753d);
    box-shadow: 0 14px 28px rgba(167, 134, 72, 0.18);
  }

  .reviews-page .large-reviews-grid {
    align-items: stretch;
  }

  .reviews-pagination {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 26px;
    flex-wrap: wrap;
  }

  .reviews-pagination-pages {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  .reviews-pagination-btn {
    min-width: 42px;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid rgba(220, 207, 188, 0.95);
    border-radius: 999px;
    background: rgba(255, 252, 247, 0.96);
    color: #6e6155;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background-color 0.22s ease, color 0.22s ease;
    white-space: nowrap;
  }

  .reviews-pagination-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: rgba(173, 141, 91, 0.34);
    box-shadow: 0 10px 20px rgba(31, 26, 23, 0.06);
  }

  .reviews-pagination-btn.is-active {
    color: #fff8ee;
    border-color: rgba(167, 134, 72, 0.9);
    background: linear-gradient(135deg, #b28a4e, #9a753d);
    box-shadow: 0 14px 28px rgba(167, 134, 72, 0.18);
  }

  .reviews-pagination-btn:disabled {
    opacity: 0.48;
    cursor: not-allowed;
    box-shadow: none;
  }

  .reviews-pagination-btn--nav {
    padding-inline: 16px;
  }

  .reviews-page .review-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 24px 22px 20px;
    border-radius: 26px;
    border: 1px solid rgba(224, 212, 193, 0.86);
    background:
      linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(249, 244, 236, 0.94)),
      #fff;
    box-shadow: 0 14px 30px rgba(31, 26, 23, 0.05);
    transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
    overflow: hidden;
  }

  .reviews-page .review-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    right: 18px;
    color: rgba(167, 134, 72, 0.09);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 4.2rem;
    line-height: 0.9;
  }

  .reviews-page .stars {
    position: relative;
    z-index: 1;
    margin-bottom: 12px;
    color: #a98449;
    font-size: 0.95rem;
    letter-spacing: 0.16em;
  }

  .reviews-page .review-comment {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-height: 0;
    margin-bottom: 0;
    color: #2f241c;
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.72;
    text-wrap: pretty;
  }

  .reviews-page .review-image {
    margin-top: 16px;
    border-radius: 18px;
    border: 1px solid rgba(224, 212, 194, 0.88);
  }

  .reviews-page .review-meta {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(227, 216, 200, 0.8);
    align-items: flex-end;
  }

  .reviews-page .review-author {
    color: #241c16;
    font-size: 0.96rem;
    font-weight: 700;
  }

  .reviews-page .review-date {
    color: #8a7a69;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: right;
  }

  .reviews-cta-section {
    padding-top: 8px;
  }

  .reviews-cta-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    padding: 28px 30px;
    border-radius: 28px;
    border: 1px solid rgba(224, 209, 187, 0.9);
    background:
      linear-gradient(135deg, rgba(255, 252, 246, 0.98), rgba(245, 237, 224, 0.94)),
      #fff;
    box-shadow: 0 18px 40px rgba(31, 26, 23, 0.07);
  }

  .reviews-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
  }

  @media (max-width: 1120px) {
    .reviews-page .large-reviews-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  @media (max-width: 560px) {
    .reviews-page .large-reviews-grid {
      grid-template-columns: 1fr !important;
    }
  }

  @media (min-width: 761px) {
    .reviews-page .review-card:hover {
      transform: translateY(-4px);
      border-color: rgba(176, 143, 92, 0.34);
      box-shadow: 0 22px 42px rgba(31, 26, 23, 0.09);
    }
  }
  
  /* ADMIN */
  .admin-grid {
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 24px;
  }

  .admin-layout {
    display: flex;
    width: 100%;
    align-items: start;
  }

  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    height: 100vh;
    z-index: 1000;
    padding: 98px 16px 24px;
  }

  .admin-main {
    width: calc(100% - 240px);
    min-width: 0;
    margin-left: 240px;
  }

  .admin-sidebar-panel {
    position: relative;
    height: 100%;
    overflow-y: auto;
    padding: 20px 18px;
    border-radius: 24px;
    border: 1px solid rgba(167, 134, 72, 0.16);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 245, 238, 0.96)),
      #fff;
    box-shadow: 0 18px 36px rgba(58, 43, 15, 0.08);
  }

  .admin-sidebar-panel .section-kicker {
    margin-bottom: 14px;
  }

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

  .admin-sidebar-group {
    display: grid;
    gap: 8px;
  }

  .admin-sidebar-group-title {
    color: var(--gold-dark);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    padding: 0 10px;
  }

  .admin-sidebar-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 16px;
    border: 1px solid transparent;
    color: var(--text-soft);
    font-weight: 700;
    transition: 0.22s ease;
  }

  .admin-sidebar-link:hover {
    color: var(--text);
    border-color: rgba(167, 134, 72, 0.14);
    background: rgba(201, 169, 106, 0.08);
  }

  .admin-sidebar-link.is-active {
    color: var(--gold-dark);
    border-color: rgba(167, 134, 72, 0.22);
    background: linear-gradient(135deg, rgba(201, 169, 106, 0.16), rgba(255, 255, 255, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  }

  .admin-section-anchor {
    scroll-margin-top: 110px;
  }

  .admin-overview-section,
  .admin-orders-section {
    margin-bottom: 24px;
  }

  .admin-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
  }

  .admin-controls .btn {
    min-height: 46px;
    flex: 0 0 auto;
  }

  .admin-controls input,
  .admin-controls select {
    min-height: 46px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
  }

  .admin-controls #searchInput {
    flex: 1 1 320px;
  }

  .admin-search-field {
    position: relative;
    flex: 1 1 320px;
    min-width: 320px;
  }

  .admin-search-field #searchInput {
    width: 100%;
    padding-right: 44px;
  }

  .admin-search-clear {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: rgba(167, 134, 72, 0.14);
    color: var(--gold-dark);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
  }

  .admin-search-clear:hover {
    background: rgba(167, 134, 72, 0.22);
  }

  .admin-search-clear:focus-visible {
    outline: 2px solid rgba(167, 134, 72, 0.35);
    outline-offset: 2px;
  }

  .admin-controls #statusFilter,
  .admin-controls #priorityFilter,
  .admin-controls #driverFilter {
    flex: 0 0 auto;
    min-width: 160px;
  }

  .analytics-section {
    margin-bottom: 24px;
  }

  .admin-support-section {
    margin-bottom: 24px;
  }

  .admin-support-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 24px 26px;
    border: 1px solid rgba(167, 134, 72, 0.2);
    border-radius: 24px;
    background:
      linear-gradient(135deg, rgba(201, 169, 106, 0.12), rgba(255, 255, 255, 0.96)),
      #fff;
    box-shadow: 0 18px 36px rgba(58, 43, 15, 0.08);
  }

  .admin-support-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(181, 125, 31, 0.16), rgba(201, 169, 106, 0.28));
    color: var(--gold-dark);
    font-size: 1.35rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  }

  .admin-support-copy .section-kicker {
    margin-bottom: 6px;
  }

  .admin-support-copy .section-title {
    margin-bottom: 8px;
  }

  .admin-support-copy p {
    margin: 0;
    color: var(--text-soft);
  }

  .admin-support-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid rgba(167, 134, 72, 0.28);
    background: rgba(255, 255, 255, 0.9);
    color: var(--gold-dark);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  }

  .admin-support-link:hover,
  .admin-support-link:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(167, 134, 72, 0.5);
    box-shadow: 0 12px 24px rgba(58, 43, 15, 0.1);
  }

  .ops-panel-wrap {
    margin-bottom: 24px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background:
      linear-gradient(135deg, rgba(201, 169, 106, 0.14), rgba(201, 169, 106, 0.03)),
      #fff;
    box-shadow: var(--shadow);
  }

  .ops-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
  }

  .ops-panel-head .section-title {
    margin-bottom: 0;
  }

  .ops-panel-summary {
    max-width: 360px;
    color: var(--text-soft);
  }

  .ops-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .ops-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid rgba(167, 134, 72, 0.18);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
    cursor: pointer;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  }

  .ops-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(58, 43, 15, 0.08);
    border-color: rgba(167, 134, 72, 0.4);
  }

  .ops-card.is-active {
    border-color: rgba(167, 134, 72, 0.9);
    background: linear-gradient(135deg, rgba(201, 169, 106, 0.2), rgba(255, 255, 255, 0.96));
    box-shadow: 0 18px 30px rgba(58, 43, 15, 0.12);
  }

  .ops-card.is-loading {
    cursor: default;
    opacity: 0.7;
  }

  .ops-card-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--text-soft);
  }

  .ops-card-count {
    font-size: 2rem;
    line-height: 1;
    color: var(--gold-dark);
  }

  .ops-card-meta {
    font-size: 1rem;
    font-weight: 600;
  }

  .driver-panel-wrap {
    margin-bottom: 24px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .driver-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
  }

  .driver-panel-head .section-title {
    margin-bottom: 0;
  }

  .driver-panel-summary {
    max-width: 360px;
    color: var(--text-soft);
  }

  .driver-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .driver-card {
    padding: 20px 22px;
    border-radius: 22px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, #ffffff, #fbf8f3);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  }

  .driver-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(58, 43, 15, 0.08);
    border-color: rgba(167, 134, 72, 0.34);
  }

  .driver-card:focus-visible {
    outline: none;
    border-color: rgba(167, 134, 72, 0.7);
    box-shadow: 0 0 0 4px rgba(201, 169, 106, 0.14);
  }

  .driver-card.is-busy {
    border-color: rgba(209, 127, 20, 0.25);
    background: linear-gradient(180deg, #fff9f0, #ffffff);
  }

  .driver-card.is-available {
    border-color: rgba(47, 139, 87, 0.2);
    background: linear-gradient(180deg, #f4fbf7, #ffffff);
  }

  .driver-card.is-empty,
  .driver-card.is-loading {
    color: var(--text-soft);
    background: #fff;
  }

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

  .driver-card-top strong {
    font-size: 1.02rem;
  }

  .driver-card-subtitle {
    margin: 6px 0 0;
    color: var(--text-soft);
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .driver-card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .driver-card-badge.is-busy {
    background: rgba(209, 127, 20, 0.14);
    color: #b1650b;
  }

  .driver-card-badge.is-available {
    background: rgba(47, 139, 87, 0.12);
    color: #237247;
  }

  .driver-card-count {
    margin-bottom: 6px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
  }

  .driver-card-meta {
    color: var(--text-soft);
  }

  .driver-performance-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 2px 0 14px;
  }

  .driver-performance-mini-stat {
    padding: 14px 15px;
    border-radius: 16px;
    border: 1px solid rgba(167, 134, 72, 0.12);
    background: rgba(255, 255, 255, 0.88);
  }

  .driver-performance-mini-stat span {
    display: block;
    margin-bottom: 6px;
    color: var(--text-soft);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .driver-performance-mini-stat strong {
    display: block;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.3;
  }

  .driver-orders-list {
    margin-top: 4px;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.82rem;
    color: #555;
  }

  .driver-order-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
  }

  .driver-order-item:last-child {
    margin-bottom: 0;
  }

  .driver-order-text {
    line-height: 1.4;
  }

  .driver-order-text::before {
    content: "\2022";
    margin-right: 6px;
    color: var(--gold-dark);
  }

  .order-status {
    white-space: nowrap;
    font-size: 0.76rem;
    color: #8d8579;
    text-transform: capitalize;
  }

  .operations-map-wrap {
    margin-bottom: 24px;
    padding: 24px;
    border: 1px solid rgba(167, 134, 72, 0.2);
    border-radius: 24px;
    background:
      linear-gradient(135deg, rgba(201, 169, 106, 0.12), rgba(255, 255, 255, 0.98)),
      #fff;
    box-shadow: var(--shadow);
  }

  .operations-map-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
  }

  .operations-map-head .section-title {
    margin-bottom: 0;
  }

  .operations-map-summary {
    max-width: 420px;
    color: var(--text-soft);
  }

  .operations-map-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
    gap: 18px;
    align-items: start;
  }

  .operations-map-main,
  .operations-map-side {
    display: grid;
    gap: 16px;
  }

  .operations-map-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .operations-map-metric-card,
  .operations-map-side {
    padding: 18px 20px;
    border-radius: 22px;
    border: 1px solid rgba(167, 134, 72, 0.16);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 24px rgba(58, 43, 15, 0.05);
  }

  .operations-map-metric-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
  }

  .operations-map-metric-card strong {
    display: block;
    font-size: 1.9rem;
    line-height: 1;
    color: var(--gold-dark);
  }

  .operations-map-shell {
    position: relative;
    min-height: 440px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(167, 134, 72, 0.16);
    background:
      radial-gradient(circle at top left, rgba(201, 169, 106, 0.14), transparent 45%),
      linear-gradient(180deg, #fffdfa, #f8f5ef);
    box-shadow: 0 18px 36px rgba(58, 43, 15, 0.08);
  }

  .operations-map-canvas,
  .operations-map-canvas .leaflet-container {
    width: 100%;
    height: 100%;
  }

  .operations-map-empty {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 450;
    max-width: min(360px, calc(100% - 36px));
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(167, 134, 72, 0.18);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 26px rgba(31, 26, 23, 0.14);
    backdrop-filter: blur(10px);
  }

  .operations-map-empty strong {
    display: block;
    margin-bottom: 4px;
  }

  .operations-map-empty p {
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .operations-map-side-head h3 {
    margin-bottom: 6px;
    font-size: 1.15rem;
  }

  .operations-map-side-head p {
    color: var(--text-soft);
  }

  .operations-driver-list {
    display: grid;
    gap: 12px;
    max-height: 540px;
    overflow: auto;
    padding-right: 4px;
  }

  .operations-driver-item {
    width: 100%;
    display: grid;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(167, 134, 72, 0.14);
    background: #fff;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  }

  .operations-driver-item.is-focusable:hover {
    transform: translateY(-1px);
    border-color: rgba(167, 134, 72, 0.36);
    box-shadow: 0 16px 24px rgba(58, 43, 15, 0.08);
  }

  .operations-driver-item:focus-visible {
    outline: none;
    border-color: rgba(167, 134, 72, 0.5);
    box-shadow: 0 0 0 4px rgba(201, 169, 106, 0.14);
  }

  .operations-driver-item.is-static {
    cursor: default;
  }

  .operations-driver-item-head,
  .operations-driver-item-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
  }

  .operations-driver-item-head strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1rem;
  }

  .operations-driver-item-head p,
  .operations-driver-item-meta {
    color: var(--text-soft);
  }

  .operations-driver-item-meta {
    font-size: 0.88rem;
  }

  .operations-driver-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .operations-driver-state.is-live {
    background: rgba(47, 139, 87, 0.14);
    color: #237247;
  }

  .operations-driver-state.is-stale {
    background: rgba(209, 127, 20, 0.14);
    color: #b1650b;
  }

  .operations-driver-state.is-no-location {
    background: rgba(192, 67, 67, 0.12);
    color: #b03a3a;
  }

  .operations-driver-state.is-idle {
    background: rgba(111, 101, 92, 0.12);
    color: #70665d;
  }

  .operations-driver-orders {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .operations-driver-orders span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fbf8f3;
    color: var(--gold-dark);
    font-size: 0.78rem;
    font-weight: 700;
  }

  .operations-driver-orders.is-empty span {
    color: var(--text-soft);
  }

  .operations-driver-empty {
    padding: 18px;
    border-radius: 18px;
    border: 1px dashed rgba(167, 134, 72, 0.26);
    background: #fffdfa;
  }

  .operations-driver-empty strong {
    display: block;
    margin-bottom: 6px;
  }

  .operations-driver-empty p {
    color: var(--text-soft);
  }

  .operations-map-popup {
    min-width: 264px;
    display: grid;
    gap: 12px;
  }

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

  .operations-map-popup-title {
    display: grid;
    gap: 6px;
    min-width: 0;
  }

  .operations-map-popup-eyebrow {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-dark);
  }

  .operations-map-popup-head strong {
    font-size: 1.06rem;
    color: var(--text);
    line-height: 1.2;
  }

  .operations-map-popup p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.5;
  }

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

  .operations-map-popup-grid div {
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(167, 134, 72, 0.1);
    background: linear-gradient(180deg, rgba(251, 248, 243, 0.96), rgba(255, 255, 255, 0.96));
  }

  .operations-map-popup-grid span {
    display: block;
    margin-bottom: 6px;
    color: var(--text-soft);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .operations-map-popup-grid strong {
    color: var(--text);
    font-size: 0.98rem;
    line-height: 1.3;
  }

  .operations-map-popup-section {
    display: grid;
    gap: 8px;
  }

  .operations-map-popup-label {
    display: block;
    color: var(--text-soft);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .operations-map-popup-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .operations-map-popup-chips span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(167, 134, 72, 0.16);
    background: #fbf8f3;
    color: var(--gold-dark);
    font-size: 0.78rem;
    font-weight: 700;
  }

  .operations-map-popup-chips span.is-empty {
    color: var(--text-soft);
  }

  .operations-map-popup-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(167, 134, 72, 0.18);
    color: var(--gold-dark);
    font-weight: 700;
  }

  .operations-map-popup-link:hover {
    background: #fbf8f3;
  }

  .operations-map-marker-wrapper {
    background: transparent;
    border: 0;
  }

  .operations-map-marker {
    position: relative;
    display: grid;
    place-items: center;
  }

  .operations-map-driver-core,
  .operations-map-warehouse-core {
    position: relative;
    border-radius: 999px;
    box-shadow: 0 18px 34px rgba(31, 26, 23, 0.18);
  }

  .operations-map-driver-core {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border: 3px solid rgba(255, 255, 255, 0.98);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 252, 0.98));
    overflow: hidden;
  }

  .operations-map-driver-core::after,
  .operations-map-warehouse-core::after {
    content: "";
    position: absolute;
    inset: auto auto -8px 50%;
    width: 12px;
    height: 12px;
    transform: translateX(-50%) rotate(45deg);
    border-radius: 3px;
  }

  .operations-map-driver-core::after {
    background: inherit;
  }

  .operations-map-driver-icon {
    width: 34px;
    height: 34px;
    object-fit: contain;
    filter: drop-shadow(0 6px 10px rgba(47, 110, 207, 0.2));
  }

  .operations-map-driver-count {
    position: absolute;
    top: -2px;
    right: -3px;
    z-index: 2;
    min-width: 24px;
    min-height: 24px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.96);
    background: linear-gradient(135deg, #1f1a17, #3b3026);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 800;
  }

  .operations-map-marker.is-warehouse {
    width: 48px;
    height: 56px;
  }

  .operations-map-warehouse-core {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.94);
    background: linear-gradient(135deg, #1f1a17, #5a472d);
  }

  .operations-map-warehouse-core::after {
    background: linear-gradient(135deg, #1f1a17, #5a472d);
  }

  .operations-map-warehouse-icon {
    width: 24px;
    height: 24px;
    fill: #f7e6b8;
  }

  .operations-map-marker.is-driver.is-live {
    filter: drop-shadow(0 12px 18px rgba(47, 139, 87, 0.2));
  }

  .operations-map-marker.is-driver.is-live .operations-map-driver-core {
    box-shadow:
      0 18px 34px rgba(31, 26, 23, 0.16),
      0 0 0 5px rgba(47, 139, 87, 0.18);
  }

  .operations-map-marker.is-driver.is-stale {
    filter: drop-shadow(0 12px 18px rgba(209, 127, 20, 0.18));
  }

  .operations-map-marker.is-driver.is-stale .operations-map-driver-core {
    box-shadow:
      0 18px 34px rgba(31, 26, 23, 0.16),
      0 0 0 5px rgba(209, 127, 20, 0.16);
  }

  .operations-map-shell .leaflet-popup-content-wrapper {
    border-radius: 22px;
    padding: 2px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 36px rgba(31, 26, 23, 0.16);
  }

  .operations-map-shell .leaflet-popup-content {
    margin: 14px 16px;
  }

  .operations-map-shell .leaflet-popup-tip {
    background: rgba(255, 255, 255, 0.98);
  }

  .operations-map-shell .leaflet-tooltip {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(167, 134, 72, 0.14);
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
    font-weight: 700;
    box-shadow: 0 12px 22px rgba(31, 26, 23, 0.12);
  }

  .collection-panel-wrap {
    margin-bottom: 24px;
    padding: 24px;
    border: 1px solid rgba(167, 134, 72, 0.18);
    border-radius: 24px;
    background:
      linear-gradient(135deg, rgba(201, 169, 106, 0.1), rgba(255, 255, 255, 0.97)),
      #fff;
    box-shadow: var(--shadow);
  }

  .collection-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
  }

  .collection-panel-head .section-title {
    margin-bottom: 0;
  }

  .collection-panel-summary {
    max-width: 360px;
    color: var(--text-soft);
    padding: 12px 16px;
    border-radius: 18px;
    border: 1px solid rgba(167, 134, 72, 0.1);
    background: rgba(255, 255, 255, 0.72);
    font-weight: 700;
    line-height: 1.5;
  }

  .collection-panel-summary.is-alert {
    color: #9d2d36;
    border-color: rgba(157, 45, 54, 0.16);
    background: linear-gradient(135deg, rgba(255, 238, 240, 0.98), rgba(255, 255, 255, 0.98));
    box-shadow: 0 14px 26px rgba(157, 45, 54, 0.08);
  }

  .collection-panel-summary.is-calm {
    color: #5f5a54;
  }

  .collection-panel-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
    gap: 18px;
    align-items: start;
  }

  .collection-panel-form,
  .collection-preview {
    padding: 20px;
    border-radius: 22px;
    border: 1px solid rgba(167, 134, 72, 0.16);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 24px rgba(58, 43, 15, 0.05);
  }

  .collection-panel-form {
    display: grid;
    gap: 16px;
  }

  .collection-panel-form textarea {
    min-height: 110px;
  }

  .collection-preview-state {
    display: grid;
    gap: 18px;
  }

  .collection-preview-state.is-empty {
    color: var(--text-soft);
    text-align: center;
  }

  .collection-preview-state.is-ready {
    color: var(--text);
  }

  .collection-preview .driver-order-items {
    margin-bottom: 0;
  }

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

  .collection-preview-head h3 {
    margin: 8px 0 6px;
    font-size: 1.45rem;
  }

  .collection-preview-head p {
    color: var(--text-soft);
  }

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

  .collection-preview-grid > div {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(167, 134, 72, 0.12);
    background: #fbf8f3;
  }

  .collection-preview-grid > div.is-wide {
    grid-column: 1 / -1;
  }

  .collection-preview-grid span {
    display: block;
    margin-bottom: 6px;
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
  }

  .collection-preview-grid strong {
    display: block;
    line-height: 1.5;
    color: var(--text);
  }

  .collection-preview-note {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(167, 134, 72, 0.14);
    background: linear-gradient(135deg, rgba(201, 169, 106, 0.08), rgba(255, 255, 255, 0.98));
  }

  .collection-preview-note strong {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
  }

  .collection-preview-note p {
    margin: 0 0 6px;
    color: var(--text-soft);
    line-height: 1.5;
  }

  .collection-preview-note p:last-child {
    margin-bottom: 0;
  }

  .collection-preview-note a {
    color: var(--gold-dark);
    font-weight: 700;
    word-break: break-word;
  }

  .analytics-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
  }

  .analytics-head .section-title {
    margin-bottom: 0;
  }

  .analytics-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(160px, 1fr));
    gap: 12px;
    min-width: min(100%, 360px);
  }

  .analytics-mini-card,
  .analytics-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
  }

  .analytics-mini-card {
    padding: 18px 20px;
  }

  .analytics-mini-card span {
    display: block;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-soft);
    margin-bottom: 8px;
  }

  .analytics-mini-card strong {
    font-size: 1.3rem;
    color: var(--text);
  }

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

  .analytics-card {
    padding: 22px;
  }

  .analytics-card-wide {
    grid-column: 1 / -1;
  }

  .analytics-card-head {
    margin-bottom: 16px;
  }

  .analytics-card-head h3 {
    margin-bottom: 6px;
    font-size: 1.15rem;
  }

  .analytics-card-head p {
    color: var(--text-soft);
  }

  .analytics-canvas-wrap {
    position: relative;
    min-height: 320px;
  }

  .analytics-card-wide .analytics-canvas-wrap {
    min-height: 340px;
  }

  .inventory-section {
    margin-bottom: 24px;
    padding: 26px;
    border: 1px solid rgba(167, 134, 72, 0.2);
    border-radius: 26px;
    background:
      linear-gradient(135deg, rgba(201, 169, 106, 0.12), rgba(255, 255, 255, 0.96)),
      #fff;
    box-shadow: var(--shadow);
  }

  .inventory-section-head,
  .upcoming-reservations-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
  }

  .inventory-section-head .section-title {
    margin-bottom: 8px;
  }

  .inventory-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
  }

  .inventory-summary-card {
    padding: 18px 20px;
    border-radius: 20px;
    border: 1px solid rgba(167, 134, 72, 0.16);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 28px rgba(58, 43, 15, 0.07);
  }

  .inventory-summary-card span {
    display: block;
    min-height: 34px;
    margin-bottom: 10px;
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
  }

  .inventory-summary-card strong {
    display: block;
    font-size: 2rem;
    line-height: 1;
    color: var(--gold-dark);
  }

  .inventory-summary-card.is-warning {
    background: #fff8ec;
    border-color: rgba(184, 120, 23, 0.24);
  }

  .inventory-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    padding: 12px;
    border: 1px solid rgba(167, 134, 72, 0.16);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
  }

  .inventory-toolbar input,
  .inventory-toolbar select,
  .inventory-date-filter input {
    min-height: 46px;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
  }

  .inventory-toolbar input {
    flex: 1 1 320px;
  }

  .inventory-toolbar select {
    flex: 0 0 180px;
  }

  .inventory-table {
    margin-bottom: 10px;
    max-height: 560px;
    overflow: auto;
  }

  .inventory-table table {
    min-width: 1180px;
  }

  .inventory-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
  }

  .inventory-table th,
  .inventory-table td {
    padding: 10px 12px;
    font-size: 0.92rem;
  }

  .inventory-sort-btn {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-weight: 800;
    cursor: pointer;
    text-align: left;
  }

  .inventory-sort-btn:hover {
    color: var(--gold-dark);
  }

  .inventory-subtext {
    display: block;
    margin-top: 2px;
    color: var(--text-soft);
    font-size: 0.78rem;
  }

  .inventory-source-pill,
  .inventory-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: capitalize;
    white-space: nowrap;
  }

  .inventory-source-pill {
    background: rgba(201, 169, 106, 0.14);
    color: var(--gold-dark);
  }

  .inventory-status-pill.is-success {
    background: #e9f7ee;
    color: #2f8b57;
  }

  .inventory-status-pill.is-warning {
    background: #fff6e7;
    color: #9a6508;
  }

  .inventory-status-pill.is-danger {
    background: #fdecec;
    color: #c04343;
  }

  .inventory-status-pill.is-muted {
    background: #f0ede8;
    color: #7a7264;
  }

  .inventory-row-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }

  .inventory-row-actions .btn {
    min-height: 34px;
    padding: 7px 11px;
    border-radius: 999px;
  }

  .inventory-cell-number {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
    white-space: nowrap;
  }

  .inventory-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    padding: 10px 12px;
    border: 1px solid rgba(167, 134, 72, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
  }

  .inventory-pagination #inventoryPageInfo {
    color: var(--text-soft);
    font-size: 0.9rem;
    font-weight: 600;
  }

  .inventory-empty-cell {
    text-align: center;
    padding: 24px !important;
    color: var(--text-soft);
  }

  .upcoming-reservations-panel {
    padding: 22px;
    border-radius: 22px;
    border: 1px solid var(--border);
    background: #fbf8f3;
  }

  .upcoming-reservations-head {
    align-items: center;
    margin-bottom: 16px;
  }

  .upcoming-reservations-head h3 {
    margin-bottom: 6px;
  }

  .upcoming-reservations-head p {
    color: var(--text-soft);
  }

  .inventory-date-filter {
    min-width: 220px;
    margin: 0;
  }

  .inventory-reservations-table table {
    min-width: 760px;
  }

  .inventory-warning-box {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid #ead2a1;
    background: #fff6e7;
    color: #8a5708;
  }

  .inventory-warning-box strong {
    display: block;
    margin-bottom: 8px;
  }

  .inventory-warning-box ul {
    display: grid;
    gap: 6px;
    list-style: disc;
    padding-left: 20px;
  }

  .calendar-section {
    margin-bottom: 24px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
  }

  .calendar-header h2 {
    margin-top: 6px;
    font-size: 1.6rem;
  }

  .calendar-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .calendar-month-label {
    margin: 0;
    min-width: 160px;
    text-align: center;
    font-weight: 700;
    color: var(--text-dark);
  }

  .calendar-shell {
    overflow-x: auto;
  }

  .calendar-weekdays,
  .calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(140px, 1fr));
    min-width: 980px;
  }

  .calendar-weekdays {
    margin-bottom: 10px;
    gap: 10px;
  }

  .calendar-weekdays span {
    padding: 10px 12px;
    border-radius: 14px;
    background: #fbf8f3;
    border: 1px solid var(--border);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
  }

  .calendar-grid {
    gap: 10px;
  }

  .calendar-day {
    min-height: 180px;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: #fcfaf6;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .calendar-day.is-empty {
    background: #f5f1ea;
    opacity: 0.5;
  }

  .calendar-day.is-today {
    border-color: var(--gold-dark);
    box-shadow: inset 0 0 0 1px rgba(201, 169, 106, 0.28);
  }

  .calendar-day.has-events {
    background: #fff;
  }

  .calendar-day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .calendar-day-number {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
  }

  .calendar-day-count {
    font-size: 0.78rem;
    color: #7a7264;
  }

  .calendar-day-events {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .calendar-empty-text {
    margin: 0;
    font-size: 0.82rem;
    color: #9b927f;
  }

  .calendar-event {
    width: 100%;
    border: 0;
    border-left: 4px solid currentColor;
    border-radius: 12px;
    padding: 10px;
    background: #f7f3ed;
    text-align: left;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    color: #5f5a50;
  }

  .calendar-event:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(31, 26, 23, 0.08);
  }

  .calendar-event-name,
  .calendar-event-status {
    display: block;
  }

  .calendar-event-name {
    font-weight: 700;
    color: #1f1a17;
    margin-bottom: 4px;
    text-transform: capitalize;
  }

  .calendar-event-status {
    font-size: 0.78rem;
    text-transform: capitalize;
  }

  .calendar-event.is-quote-requested {
    color: #6f6f73;
    background: #ececef;
  }

  .calendar-event.is-quote-sent {
    color: #0f766e;
    background: #e7f8f6;
  }

  .calendar-event.is-confirmed {
    color: #2f6ecf;
    background: #e8f1ff;
  }

  .calendar-event.is-preparing {
    color: #d17f14;
    background: #fff1dc;
  }

  .calendar-event.is-out-for-delivery {
    color: #7b4dd2;
    background: #f1e9ff;
  }

  .calendar-event.is-delivered {
    color: #2f8b57;
    background: #e6f6ec;
  }

  .calendar-event.is-collected {
    color: #1e7a6d;
    background: #e6f5f1;
  }

  .calendar-event.is-cancelled {
    color: #c04343;
    background: #fdecec;
  }
  
  .admin-table {
    width: 100%;
    overflow-x: auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
  }
  
  .admin-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 980px;
  }
  
  .admin-table th,
  .admin-table td {
    text-align: left;
    vertical-align: top;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
  }
  
  .admin-table th {
    background: #fbf8f3;
    font-size: 0.95rem;
  }
  
  .admin-badge {
    display: inline-block;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(201, 169, 106, 0.14);
    color: var(--gold-dark);
    font-size: 0.85rem;
    font-weight: 700;
  }

  .admin-cell-nowrap {
    display: inline-block;
    white-space: nowrap;
  }

  .admin-order-id-cell,
  .admin-date-cell {
    white-space: nowrap;
  }

  .admin-order-id-cell {
    min-width: 126px;
  }

  .admin-date-cell {
    min-width: 120px;
  }

  .priority-cell {
    display: flex;
    align-items: center;
    min-width: 120px;
  }

  .priority-select {
    min-width: 112px;
    width: 100%;
  }

  .action-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .action-buttons .btn {
    width: 100%;
    text-align: center;
  }

  .admin-order-actions {
    align-items: stretch;
    min-width: 186px;
  }

  .admin-order-action-btn,
  .admin-order-action-badge {
    width: 100%;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 14px;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    justify-content: center;
  }

  .admin-order-action-btn {
    box-shadow: none;
  }

  .admin-order-action-btn-secondary {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 242, 233, 0.98));
    border: 1px solid rgba(167, 134, 72, 0.16);
    color: var(--text);
  }

  .admin-order-action-btn-secondary:hover {
    background: #fff;
    border-color: rgba(167, 134, 72, 0.28);
  }

  .admin-order-action-btn-primary {
    box-shadow: 0 10px 18px rgba(167, 134, 72, 0.14);
  }

  .admin-order-action-btn-dark {
    background: linear-gradient(180deg, #2b2622, #1f1a17);
    color: #fff;
  }

  .admin-order-action-btn-dark:hover {
    opacity: 0.96;
  }

  .admin-order-action-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 14px;
    padding-inline: 14px;
  }

  .driver-btn {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 242, 233, 0.98));
    border: 1px solid rgba(167, 134, 72, 0.16);
    cursor: pointer;
  }

  #adminOrdersSection .admin-table th:last-child,
  #adminOrdersSection .admin-table td:last-child {
    min-width: 208px;
    width: 208px;
  }

  @media (min-width: 1200px) {
    .admin-main > .container {
      width: min(96%, 1460px);
    }

    #adminOrdersSection .admin-table table {
      min-width: 0;
      table-layout: fixed;
    }

    #adminOrdersSection .admin-table th:nth-child(1),
    #adminOrdersSection .admin-table td:nth-child(1) {
      width: 136px;
    }

    #adminOrdersSection .admin-table th:nth-child(2),
    #adminOrdersSection .admin-table td:nth-child(2) {
      width: 108px;
    }

    #adminOrdersSection .admin-table th:nth-child(3),
    #adminOrdersSection .admin-table td:nth-child(3) {
      width: 118px;
    }

    #adminOrdersSection .admin-table th:nth-child(4),
    #adminOrdersSection .admin-table td:nth-child(4) {
      width: 80px;
    }

    #adminOrdersSection .admin-table th:nth-child(5),
    #adminOrdersSection .admin-table td:nth-child(5) {
      width: 72px;
    }

    #adminOrdersSection .admin-table th:nth-child(6),
    #adminOrdersSection .admin-table td:nth-child(6) {
      width: auto;
      min-width: 280px;
    }

    #adminOrdersSection .admin-table th:nth-child(7),
    #adminOrdersSection .admin-table td:nth-child(7) {
      width: 156px;
    }

    #adminOrdersSection .admin-table th:nth-child(8),
    #adminOrdersSection .admin-table td:nth-child(8) {
      width: 132px;
    }

    #adminOrdersSection .admin-table th:nth-child(9),
    #adminOrdersSection .admin-table td:nth-child(9) {
      width: 208px;
    }
  }

  .driver-btn:hover {
    background: #fff;
    transform: none;
  }

  .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
  }

  .pagination .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
  }
  
  /* RESPONSIVE */
  @media (max-width: 1024px) {
    .hero-grid,
    .order-layout,
    .quote-layout,
    .track-grid,
    .features-grid,
    .gallery-grid,
    .reviews-grid,
    .large-reviews-grid,
    .stats-grid,
    .footer-grid,
    .admin-grid,
    .modal-grid {
      grid-template-columns: 1fr;
    }

    .calendar-header {
      align-items: flex-start;
      flex-direction: column;
    }

    .analytics-head {
      flex-direction: column;
    }

    .ops-panel-head {
      flex-direction: column;
    }

    .inventory-section-head,
    .upcoming-reservations-head {
      flex-direction: column;
      align-items: stretch;
    }

    .inventory-table {
      max-height: none;
    }

    .inventory-pagination {
      flex-direction: column;
      align-items: stretch;
    }

    .driver-panel-head,
    .operations-map-head,
    .collection-panel-head {
      flex-direction: column;
    }

    .ops-panel,
    .driver-panel,
    .operations-map-layout,
    .collection-panel-layout,
    .inventory-summary-grid,
    .analytics-summary,
    .analytics-grid {
      grid-template-columns: 1fr;
    }

    .inventory-damage-tools,
    .inventory-damage-actions {
      grid-template-columns: 1fr;
    }

    .operations-map-metrics {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quote-builder-layout,
    .quote-builder-grid-three,
    .quote-item-card-grid {
      grid-template-columns: 1fr;
    }

    .admin-login-layout {
      grid-template-columns: 1fr;
    }

    .admin-layout {
      display: block;
    }

    .admin-sidebar {
      position: static;
      width: 100%;
      height: auto;
      padding: 0 16px 16px;
    }

    .admin-main {
      width: 100%;
      margin-left: 0;
    }

    .admin-sidebar-panel {
      position: static;
      padding: 18px;
    }

    .admin-sidebar-nav {
      display: flex;
      gap: 14px;
      overflow-x: auto;
      padding-bottom: 4px;
      scroll-snap-type: x proximity;
    }

    .admin-sidebar-group {
      min-width: 180px;
      flex: 0 0 auto;
      scroll-snap-align: start;
    }

    .driver-dashboard-layout {
      display: block;
    }

    .driver-sidebar {
      position: static;
      width: 100%;
      height: auto;
      padding: 0 16px 16px;
    }

    .driver-dashboard-content {
      width: 100%;
      margin-left: 0;
      margin-right: 0;
    }

    .driver-sidebar-panel {
      position: static;
      padding: 18px;
    }

    .driver-sidebar-nav {
      display: flex;
      gap: 14px;
      overflow-x: auto;
      padding-bottom: 4px;
      scroll-snap-type: x proximity;
    }

    .driver-sidebar-group {
      min-width: 180px;
      flex: 0 0 auto;
      scroll-snap-align: start;
    }

    .driver-support-card {
      grid-template-columns: auto minmax(0, 1fr);
    }

    .driver-support-link {
      grid-column: 1 / -1;
      justify-self: flex-start;
    }

    .calendar-nav {
      justify-content: flex-start;
    }
  
    .order-summary,
    .quote-summary-card {
      position: static;
    }

    .footer-grid {
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
    }

    .footer-links-inline {
      justify-content: flex-start;
    }

    .quote-success-main {
      min-height: auto;
      padding: 56px 0;
    }

    .quote-success-ambience {
      inset: 24px 10px;
      border-radius: 26px;
      opacity: 0.3;
    }

    .quote-success-shell {
      grid-template-columns: 1fr;
      gap: 18px;
      max-width: 760px;
    }

    .quote-success-shell::after {
      display: none;
    }

    .quote-success-primary,
    .quote-success-secondary {
      padding: 0;
    }

    .quote-success-copy h1 {
      max-width: 100%;
    }
  
    .products-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  
    .modal-gallery img {
      min-height: 300px;
    }
  }
  
  @media (max-width: 760px) {
    html {
      font-size: 16px;
    }

    .navbar {
      grid-template-columns: minmax(0, 1fr) auto;
      row-gap: 12px;
    }

    .navbar-center {
      grid-column: 1 / -1;
      grid-row: 2;
      justify-self: stretch;
    }

    .navbar-right {
      gap: 10px;
    }

    .nav-links {
      display: none;
      position: absolute;
      top: calc(100% + 10px);
      right: 0;
      left: 0;
      width: 100%;
      flex-direction: column;
      align-items: flex-start;
      gap: 14px;
      padding: 20px;
      background: #fff;
      border-top: 1px solid var(--border);
      box-shadow: 0 16px 30px rgba(31, 26, 23, 0.08);
      z-index: 20;
    }

    .nav-links.active {
      display: flex;
    }

    .brand {
      gap: 10px;
      max-width: calc(100% - 120px);
    }

    .brand-logo {
      width: 46px;
      height: 46px;
      border-radius: 15px;
      padding: 5px;
    }

    .brand h1,
    .brand h2,
    .brand h3 {
      font-size: 0.95rem;
    }

    .brand span {
      font-size: 0.74rem;
    }

    .footer {
      padding: 14px 0 12px;
    }

    .footer-grid {
      gap: 8px;
    }

    .footer-brand {
      align-items: center;
      gap: 10px;
    }

    .footer-logo {
      width: 40px;
      height: 40px;
      border-radius: 12px;
      padding: 3px;
    }

    .footer-brand-copy h4 {
      font-size: 0.92rem;
    }

    .footer-brand-copy p {
      font-size: 0.78rem;
    }

    .footer-links-inline {
      width: 100%;
      justify-content: flex-start;
      gap: 12px;
    }

    .copyright {
      margin-top: 8px;
      padding-top: 8px;
      font-size: 0.78rem;
    }

    .admin-logout-btn {
      padding-inline: 16px;
    }
  
    .mobile-menu-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
  
    .hero-card,
    .feature-card,
    .review-card,
    .stat-card,
    .track-card,
    .admin-card,
    .info-card,
    .form-card,
    .quote-summary-card,
    .order-summary {
      padding: 20px;
    }
  
    .products-grid,
    .gallery-grid,
    .reviews-grid,
    .large-reviews-grid {
      grid-template-columns: 1fr;
    }
  
    .product-thumb {
      height: 220px;
    }

    .order-layout {
      display: flex;
      flex-direction: column;
    }

    .location-selection-summary,
    .location-picker-actions {
      flex-direction: column;
      align-items: stretch;
    }

    .location-selection-change-btn {
      width: 100%;
    }

    .location-picker-modal-content {
      padding: 22px;
    }

    .location-picker-map {
      height: 300px;
    }

    .track-status-grid {
      grid-template-columns: 1fr;
    }

    .track-location-overview {
      flex-direction: column;
    }

    .track-open-location-link {
      width: 100%;
    }

    .track-status-hero-card,
    .track-map-status-details,
    .track-map-status-legend {
      padding: 16px;
    }

    .driver-pagination {
      flex-wrap: wrap;
      justify-content: stretch;
    }

    .driver-pagination .btn {
      flex: 1 1 160px;
    }

    .driver-pagination-info {
      width: 100%;
      min-width: 0;
      order: -1;
    }
  
    .order-summary {
      display: block !important;
      position: static;
      margin-top: 20px;
    }
  
    .mobile-cart-bar {
      display: flex;
    }
  
    .form-grid.two-col {
      grid-template-columns: 1fr;
    }
  
    .hero {
      padding-top: 60px;
    }
  
    .hero-visual {
      min-height: 360px;
    }
  
    .page-section {
      padding: 60px 0;
    }

    .quote-success-main {
      padding: 42px 0;
    }

    .quote-success-main .container {
      width: min(94%, 760px);
    }

    .quote-success-ambience {
      inset: 16px 8px;
      border-radius: 22px;
      opacity: 0.22;
    }

    .quote-success-shell {
      border-radius: 24px;
      padding: 22px 18px;
      gap: 14px;
    }

    .quote-success-mark {
      width: 72px;
      height: 72px;
    }

    .quote-success-copy h1 {
      font-size: clamp(1.9rem, 8vw, 2.45rem);
      line-height: 1.08;
    }

    .quote-success-actions {
      grid-template-columns: 1fr;
      gap: 10px;
    }

    #quoteSuccessTrackBtn {
      grid-column: auto;
    }

    .quote-success-actions .btn {
      width: 100%;
      min-height: 46px;
    }

    .driver-navbar {
      gap: 14px;
    }

    .driver-logout-btn {
      padding-inline: 14px;
    }

    .admin-sidebar {
      padding: 0 12px 12px;
    }

    .admin-sidebar-panel {
      padding: 16px;
      border-radius: 20px;
    }

    .admin-sidebar-group {
      min-width: 150px;
    }

    .admin-sidebar-link {
      min-height: 42px;
      padding: 10px 12px;
      border-radius: 14px;
      font-size: 0.95rem;
    }

    .driver-sidebar {
      padding: 0 12px 12px;
    }

    .driver-sidebar-panel {
      padding: 16px;
      border-radius: 20px;
    }

    .driver-sidebar-group {
      min-width: 150px;
    }

    .driver-sidebar-link {
      min-height: 42px;
      padding: 10px 12px;
      border-radius: 14px;
      font-size: 0.95rem;
    }

    .driver-summary-strip {
      width: 100%;
      gap: 10px;
      padding: 14px 16px;
    }

    .driver-summary-metrics {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .calendar-section {
      padding: 18px;
    }

    .operations-map-wrap {
      padding: 20px;
    }

    .operations-map-summary {
      max-width: none;
    }

    .operations-map-metrics {
      grid-template-columns: 1fr;
    }

    .operations-map-shell {
      min-height: 340px;
    }

    .operations-map-empty {
      right: 18px;
      max-width: none;
    }

    .operations-driver-item-head,
    .operations-driver-item-meta {
      flex-direction: column;
    }

    .admin-login-shell {
      padding: 24px 0;
    }

    .admin-login-brand,
    .admin-login-card {
      padding: 24px;
      border-radius: 24px;
    }

    .admin-login-brand-mark {
      align-items: flex-start;
    }

    .admin-login-logo {
      width: 60px;
      height: 60px;
    }

    .analytics-card,
    .analytics-mini-card {
      padding: 18px;
    }

    .calendar-weekdays,
    .calendar-grid {
      min-width: 840px;
    }

    .calendar-day {
      min-height: 160px;
    }
  
    .modal-content h3 {
      font-size: 1.6rem;
    }
  }



  .product-filters{
    display:flex;
    gap:10px;
    margin-bottom:25px;
    flex-wrap:wrap;
    }
    
    .filter-btn{
    padding:8px 18px;
    border-radius:25px;
    border:1px solid #ddd;
    background:white;
    cursor:pointer;
    font-weight:500;
    transition:all .2s;
    }
    
    .filter-btn:hover{
    background:#111;
    color:white;
    border-color:#111;
    }
    
    .filter-btn.active{
    background:#111;
    color:white;
    border-color:#111;
    }

  .order-page {
    background:
      radial-gradient(circle at top right, rgba(201, 169, 106, 0.12), transparent 28%),
      linear-gradient(180deg, #f8f5ef 0%, #f3eee5 100%);
  }

  .order-catalog-shell {
    width: min(95%, 1380px);
  }

  .order-catalog-section {
    padding-top: 72px;
  }

  .order-page-head {
    margin-bottom: 26px;
  }

  .order-page-head .section-title {
    margin-bottom: 16px;
  }

  .order-toolbar {
    display: grid;
    gap: 16px;
    padding: 22px;
    margin-bottom: 24px;
    border-radius: 28px;
    border: 1px solid rgba(167, 134, 72, 0.14);
    background:
      linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(255, 255, 255, 0.98)),
      #fff;
    box-shadow: 0 18px 36px rgba(58, 43, 15, 0.06);
  }

  .order-toolbar-top {
    display: block;
  }

  .order-search-field {
    display: grid;
    gap: 8px;
  }

  .order-search-label {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-soft);
  }

  .order-search-input-wrap {
    position: relative;
  }

  .order-search-field input {
    min-height: 54px;
    width: 100%;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(167, 134, 72, 0.16);
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  }

  .order-search-field input {
    padding-right: 52px;
  }

  .order-search-field input:focus,
  .order-search-field input:focus {
    border-color: rgba(167, 134, 72, 0.64);
    box-shadow: 0 0 0 4px rgba(201, 169, 106, 0.14);
    transform: translateY(-1px);
  }

  .order-search-clear {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 999px;
    background: rgba(201, 169, 106, 0.16);
    color: var(--gold-dark);
    font-weight: 800;
    cursor: pointer;
  }

  .order-page .product-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 0;
    flex-wrap: wrap;
  }

  .order-page .filter-btn {
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(167, 134, 72, 0.16);
    background: rgba(255, 255, 255, 0.94);
    cursor: pointer;
    font-weight: 700;
    color: var(--text-soft);
    transition: all 0.2s ease;
  }

  .order-page .filter-btn:hover {
    background: rgba(201, 169, 106, 0.12);
    color: var(--text);
    border-color: rgba(167, 134, 72, 0.34);
  }

  .order-page .filter-btn.active {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(167, 134, 72, 0.2);
  }

  .order-page .order-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 30px;
    align-items: start;
  }

  .order-catalog-main {
    min-width: 0;
  }

  .order-catalog-meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 14px;
    min-height: 22px;
  }

  .order-products-count {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.94rem;
    letter-spacing: 0.01em;
    font-weight: 600;
  }

  .order-page .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
    gap: 20px;
  }

  .order-page .product-card {
    display: grid;
    border-radius: 28px;
    border: 1px solid rgba(167, 134, 72, 0.14);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 248, 243, 0.98)),
      #fff;
    box-shadow: 0 10px 22px rgba(58, 43, 15, 0.08);
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  }

  .order-page .product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(58, 43, 15, 0.12);
    border-color: rgba(167, 134, 72, 0.28);
  }

  .product-media {
    position: relative;
    padding: 14px 14px 0;
  }

  .order-page .product-thumb {
    height: 280px;
    aspect-ratio: 4 / 3;
    border-radius: 22px;
    object-fit: cover;
    background: #efe7db;
  }

  .order-page .product-thumb.product-thumb-dining {
    height: 236px;
    object-fit: contain;
    object-position: center center;
    padding: 8px 8px 4px;
    background: linear-gradient(180deg, #f6f1e8 0%, #f2ecdf 100%);
  }

  .order-page .product-thumb.product-thumb-chair {
    height: 236px;
    object-fit: contain;
    object-position: center center;
    padding: 8px 8px 4px;
    background: linear-gradient(180deg, #f6f1e8 0%, #f2ecdf 100%);
  }

.order-page .product-thumb.product-thumb-sofa {
  height: 236px;
  object-fit: contain;
  object-position: center center;
  padding: 8px 8px 4px;
  background: linear-gradient(180deg, #f6f1e8 0%, #f2ecdf 100%);
}

.order-page .product-thumb.product-thumb-table {
  object-fit: contain;
  object-position: center center;
  padding: 10px 10px 6px;
  background: linear-gradient(180deg, #f8f3ea 0%, #f3ece0 100%);
}

  .product-badge {
    position: absolute;
    top: 26px;
    left: 26px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--gold-dark);
    box-shadow: 0 10px 22px rgba(58, 43, 15, 0.08);
  }

  .order-page .product-copy {
    display: grid;
    gap: 10px;
    padding: 18px 18px 20px;
  }

  .product-copy-head {
    display: grid;
    gap: 10px;
  }

  .order-page .product-copy h3 {
    margin: 0;
    font-size: 1.18rem;
    line-height: 1.3;
  }

  .product-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold-dark);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.4;
  }

  .product-card-link::after {
    content: "›";
    font-size: 1.05rem;
    color: var(--gold-dark);
  }

  .order-products-empty {
    padding: 34px;
    border-radius: 28px;
    border: 1px dashed rgba(167, 134, 72, 0.2);
    background: linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(255, 255, 255, 0.98));
    text-align: center;
  }

  .order-products-empty h3 {
    margin: 8px 0 10px;
  }

  .order-products-empty p {
    margin: 0;
    color: var(--text-soft);
  }

  .order-load-more-wrap {
    margin-top: 20px;
    display: flex;
    justify-content: center;
  }

  .order-load-more-btn {
    min-width: 176px;
    padding: 12px 26px;
    border-radius: 999px;
    border-color: rgba(167, 134, 72, 0.24);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 244, 236, 0.96));
    color: var(--text);
    box-shadow: 0 10px 22px rgba(58, 43, 15, 0.09);
    font-weight: 700;
  }

  .order-load-more-btn:hover {
    border-color: rgba(167, 134, 72, 0.4);
    box-shadow: 0 14px 28px rgba(58, 43, 15, 0.12);
  }

  .order-load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
  }

  .order-page .order-summary {
    top: 94px;
    display: grid;
    gap: 20px;
    padding: 26px;
    border-radius: 28px;
    border: 1px solid rgba(167, 134, 72, 0.16);
    background:
      linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(255, 255, 255, 0.98)),
      #fff;
    box-shadow: 0 18px 36px rgba(58, 43, 15, 0.08);
  }

  .order-summary-head {
    display: grid;
    gap: 8px;
  }

  .order-summary-kicker {
    color: var(--gold-dark);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .order-page .order-summary h3 {
    margin: 0;
    font-size: 1.45rem;
  }

  .order-summary-caption {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.55;
  }

  .order-page .order-items-list {
    gap: 14px;
    margin-bottom: 0;
  }

  .order-empty-state {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 26px 20px;
    border-radius: 22px;
    border: 1px dashed rgba(167, 134, 72, 0.18);
    background: #fbf8f3;
    text-align: center;
  }

  .order-empty-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(201, 169, 106, 0.14);
    color: var(--gold-dark);
    font-size: 1.5rem;
  }

  .order-empty-state strong {
    font-size: 1.05rem;
  }

  .order-empty-state p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.55;
  }

  .order-page .order-item-row {
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 20px;
    border: 1px solid rgba(167, 134, 72, 0.12);
    background: rgba(255, 255, 255, 0.9);
  }

  .order-page .order-item-row:last-child {
    padding-bottom: 14px;
  }

  .order-item-copy {
    min-width: 0;
  }

  .order-item-copy strong {
    display: block;
    margin-bottom: 4px;
    line-height: 1.35;
  }

  .order-page .item-category {
    margin-top: 0;
  }

  .order-page .qty-controls {
    gap: 10px;
    padding: 6px;
    border-radius: 999px;
    border: 1px solid rgba(167, 134, 72, 0.14);
    background: #fbf8f3;
  }

  .order-page .qty-controls button {
    width: 34px;
    height: 34px;
    border: none;
    background: #fff;
    box-shadow: 0 4px 10px rgba(31, 26, 23, 0.06);
    font-weight: 800;
  }

  .order-summary-foot {
    display: grid;
    gap: 16px;
  }

  .order-page .order-total {
    margin: 0;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(201, 169, 106, 0.12);
    color: var(--gold-dark);
    font-weight: 800;
  }

  .order-page .summary-actions {
    gap: 12px;
  }

  .order-page .summary-actions .btn {
    width: 100%;
    min-height: 50px;
  }

  .order-page .summary-actions .btn:disabled,
  .order-page #mobileCartBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
  }

  #productModal {
    z-index: 1400;
    padding: 22px;
  }

  #productModal .order-product-modal {
    width: min(1120px, 100%);
    max-height: calc(100vh - 44px);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(167, 134, 72, 0.16);
    background:
      linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(255, 255, 255, 0.98)),
      #fff;
    box-shadow: 0 30px 80px rgba(31, 26, 23, 0.18);
  }

  #productModal .modal-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    align-items: stretch;
  }

  .order-modal-gallery {
    display: grid;
    gap: 16px;
    padding: 20px;
    background:
      radial-gradient(circle at top left, rgba(201, 169, 106, 0.12), transparent 40%),
      linear-gradient(180deg, #f5eee3, #f9f5ef);
  }

  .order-modal-gallery-shell {
    position: relative;
    display: grid;
    gap: 0;
  }

  .order-modal-main-image-frame {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 480px;
    padding: 12px;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(251, 248, 243, 0.96), rgba(243, 235, 223, 0.96));
    box-shadow: inset 0 0 0 1px rgba(167, 134, 72, 0.08), 0 18px 40px rgba(58, 43, 15, 0.12);
  }

  #productModal .modal-gallery img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    min-height: 0;
    object-fit: contain;
    display: block;
    border-radius: 16px;
    background: transparent;
    transform-origin: center center;
    transition: transform 0.22s ease;
    cursor: zoom-in;
  }

  #productModal .modal-gallery img.is-zoomed {
    cursor: zoom-out;
  }

  .order-modal-main-image-frame.is-zoomed {
    cursor: zoom-out;
  }

  .order-modal-zoom-controls {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    border: 1px solid rgba(167, 134, 72, 0.22);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 24px rgba(31, 26, 23, 0.14);
  }

  .order-modal-zoom-controls button {
    min-width: 34px;
    height: 34px;
    border: 1px solid rgba(167, 134, 72, 0.2);
    background: rgba(255, 255, 255, 0.94);
    border-radius: 999px;
    color: var(--text);
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  }

  .order-modal-zoom-controls button:hover {
    transform: translateY(-1px);
    background: #fff;
    border-color: rgba(167, 134, 72, 0.4);
  }

  .order-modal-zoom-controls button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
  }

  .order-modal-zoom-controls #modalZoomResetBtn {
    min-width: 74px;
    padding: 0 10px;
    font-size: 0.82rem;
  }

  .order-modal-image-count {
    position: absolute;
    left: 18px;
    bottom: 18px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(31, 26, 23, 0.68);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
  }

  .order-modal-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(167, 134, 72, 0.35) transparent;
  }

  .order-modal-thumb {
    flex: 0 0 72px;
    border: 1px solid rgba(167, 134, 72, 0.14);
    border-radius: 14px;
    padding: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    cursor: pointer;
    opacity: 0.78;
    box-shadow: 0 6px 16px rgba(58, 43, 15, 0.08);
    transition: border-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  }

  .order-modal-thumb img {
    width: 100%;
    height: 72px;
    object-fit: cover;
    display: block;
  }

  .order-modal-thumb:hover {
    opacity: 0.96;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(58, 43, 15, 0.12);
  }

  .order-modal-thumb.is-active {
    border-color: rgba(167, 134, 72, 0.58);
    opacity: 1;
    box-shadow: 0 0 0 2px rgba(201, 169, 106, 0.16);
  }

  .order-modal-thumbs::-webkit-scrollbar {
    height: 6px;
  }

  .order-modal-thumbs::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(167, 134, 72, 0.32);
  }

  #productModal .order-modal-gallery .gallery-nav {
    inset: 0;
    align-items: center;
    padding: 0 16px;
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  #productModal .order-modal-gallery:hover .gallery-nav,
  #productModal .order-modal-gallery:focus-within .gallery-nav {
    opacity: 1;
  }

  #productModal .order-modal-gallery .gallery-nav button {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.44);
    background: rgba(255, 255, 255, 0.74);
    color: var(--text);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 24px rgba(31, 26, 23, 0.14);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  }

  #productModal .order-modal-gallery .gallery-nav button:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 26px rgba(31, 26, 23, 0.16);
  }

  #productModal .order-modal-content {
    max-height: calc(100vh - 44px);
    overflow-y: auto;
    padding: 32px;
    display: grid;
    align-content: start;
    gap: 22px;
  }

  .order-modal-copy {
    display: grid;
    gap: 12px;
  }

  .order-modal-badge {
    width: fit-content;
  }

  .order-modal-copy h3 {
    margin: 0;
    font-size: 2.2rem;
    line-height: 1.05;
  }

  .order-modal-copy p {
    margin: 0;
    line-height: 1.7;
  }

  .order-modal-specs {
    display: grid;
    gap: 12px;
  }

  .order-modal-spec-card {
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid rgba(167, 134, 72, 0.12);
    background: rgba(255, 255, 255, 0.92);
  }

  .order-modal-spec-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--text-soft);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .order-modal-spec-card strong {
    display: block;
    color: var(--text);
    line-height: 1.5;
  }

  #productModal .qty-box {
    display: inline-flex;
    min-height: 64px;
    padding: 10px;
    margin: 0;
    border-radius: 999px;
    background: #fbf8f3;
  }

  #productModal .qty-box button {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }

  #productModal .qty-box input {
    width: 92px;
    height: 44px;
    font-size: 1rem;
  }

  #productModal .qty-hint {
    margin: 0;
  }

  .order-modal-purchase {
    display: grid;
    gap: 14px;
    margin-top: 4px;
  }

  .order-modal-actions .btn {
    width: 100%;
    min-height: 54px;
  }

  .mobile-cart-copy {
    display: grid;
    gap: 2px;
  }

  .mobile-cart-copy strong {
    font-size: 0.98rem;
  }

  .mobile-cart-copy span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.85rem;
  }

  @media (max-width: 1180px) {
    .order-page-head,
    .order-toolbar-top,
    .order-page .order-layout,
    #productModal .modal-grid {
      grid-template-columns: 1fr;
    }

    .order-toolbar-side {
      justify-content: flex-start;
      flex-wrap: wrap;
    }

    .order-page .order-summary {
      position: static;
    }

    .order-modal-main-image-frame {
      height: 420px;
    }
  }

  @media (max-width: 760px) {
    .order-catalog-section {
      padding-top: 46px;
    }

    .order-catalog-shell {
      width: min(94%, 100%);
    }

    .order-page-head,
    .order-toolbar {
      margin-bottom: 20px;
    }

    .order-toolbar,
    .order-page .order-summary {
      padding: 20px;
    }

    .order-page .products-grid {
      grid-template-columns: 1fr;
      gap: 18px;
    }

    .order-catalog-meta {
      margin-bottom: 12px;
    }

    .order-products-count {
      font-size: 0.9rem;
    }

    .order-page .product-thumb {
      height: 240px;
    }

    .order-page .product-thumb.product-thumb-dining {
      height: 208px;
      object-fit: contain;
      object-position: center center;
      padding: 8px 6px 4px;
    }

    .order-page .product-thumb.product-thumb-chair {
      height: 208px;
      object-fit: contain;
      object-position: center center;
      padding: 8px 6px 4px;
    }

    .order-page .product-thumb.product-thumb-sofa {
      height: 208px;
      object-fit: contain;
      object-position: center center;
      padding: 8px 6px 4px;
    }

    .order-page .product-meta {
      grid-template-columns: 1fr;
    }

    .order-page .order-layout {
      display: flex;
      flex-direction: column;
    }

    .order-page .order-summary {
      display: block !important;
      margin-top: 0;
    }

    #productModal {
      align-items: flex-start;
      justify-content: center;
      padding: 8px;
      overflow: hidden;
    }

    #productModal .order-product-modal {
      width: 100%;
      max-height: calc(100dvh - 16px);
      border-radius: 22px;
      position: relative;
    }

    #productModal .modal-grid {
      display: grid;
      grid-template-columns: 1fr;
      max-height: calc(100dvh - 16px);
      overflow-y: auto;
      overscroll-behavior: contain;
      -webkit-overflow-scrolling: touch;
    }

    #productModal .order-modal-gallery {
      padding: 14px 14px 10px;
      gap: 10px;
    }

    .order-modal-gallery-shell {
      border-radius: 18px;
      overflow: hidden;
    }

    .order-modal-main-image-frame {
      height: clamp(220px, 42vh, 300px);
      padding: 8px;
      border-radius: 18px;
      box-shadow: inset 0 0 0 1px rgba(167, 134, 72, 0.1), 0 14px 26px rgba(58, 43, 15, 0.1);
    }

    .order-modal-zoom-controls {
      position: static;
      justify-self: end;
      align-self: end;
      margin-top: 8px;
      gap: 4px;
      padding: 4px;
      background: rgba(255, 255, 255, 0.9);
    }

    .order-modal-zoom-controls button {
      min-width: 28px;
      height: 28px;
      font-size: 0.92rem;
    }

    .order-modal-zoom-controls #modalZoomResetBtn {
      min-width: 56px;
      padding: 0 8px;
      font-size: 0.7rem;
    }

    .order-modal-image-count {
      left: 10px;
      bottom: 10px;
      padding: 6px 10px;
      font-size: 0.76rem;
    }

    #productModal .order-modal-gallery .gallery-nav {
      opacity: 1;
      padding: 0 8px;
    }

    #productModal .order-modal-gallery .gallery-nav button {
      width: 36px;
      height: 36px;
      font-size: 0.95rem;
      background: rgba(255, 255, 255, 0.82);
      box-shadow: 0 8px 16px rgba(31, 26, 23, 0.14);
    }

    .order-modal-thumbs {
      gap: 8px;
      padding: 2px 0 2px 1px;
    }

    .order-modal-thumb {
      flex-basis: 56px;
      border-radius: 10px;
    }

    .order-modal-thumb img {
      height: 56px;
    }

    #productModal .order-modal-content {
      position: relative;
      max-height: none;
      overflow: visible;
      padding: 16px 14px calc(16px + env(safe-area-inset-bottom));
      gap: 14px;
      background: linear-gradient(180deg, #fffdf9 0%, #fff 100%);
    }

    #productModal .modal-close {
      position: absolute;
      top: 14px;
      right: 14px;
      margin-left: 0;
      width: 42px;
      height: 42px;
      z-index: 6;
      border: 1px solid rgba(167, 134, 72, 0.18);
      background: rgba(243, 239, 232, 0.95);
      backdrop-filter: blur(8px);
      box-shadow: 0 8px 20px rgba(31, 26, 23, 0.12);
    }

    .order-modal-copy {
      gap: 10px;
    }

    .order-modal-copy h3 {
      font-size: clamp(1.46rem, 7.2vw, 1.9rem);
      line-height: 1.14;
    }

    .order-modal-copy p {
      font-size: 0.95rem;
      line-height: 1.68;
    }

    .order-modal-spec-card {
      border-radius: 16px;
      padding: 14px;
    }

    .order-modal-spec-card strong {
      font-size: 0.95rem;
      line-height: 1.5;
    }

    .order-modal-purchase {
      position: sticky;
      bottom: 0;
      gap: 10px;
      margin-top: 2px;
      padding: 10px 0 calc(4px + env(safe-area-inset-bottom));
      background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 253, 249, 0.92) 20%, #fffdf9 100%);
      border-top: 1px solid rgba(201, 169, 106, 0.16);
      z-index: 4;
    }

    #productModal .qty-box {
      display: grid;
      grid-template-columns: 44px minmax(72px, 1fr) 44px;
      width: 100%;
      max-width: 360px;
      min-height: 58px;
      gap: 8px;
      padding: 8px;
      border-radius: 16px;
      border: 1px solid rgba(201, 169, 106, 0.24);
      box-shadow: 0 10px 24px rgba(31, 26, 23, 0.08);
    }

    #productModal .qty-box button,
    #productModal .qty-box input {
      width: 100%;
      min-height: 42px;
      height: 42px;
    }

    #productModal .qty-box input {
      min-width: 0;
      border-radius: 12px;
    }

    .order-modal-actions .btn {
      min-height: 52px;
      border-radius: 14px;
      box-shadow: 0 12px 24px rgba(158, 124, 57, 0.24);
    }

    .mobile-cart-bar {
      display: flex;
      bottom: 14px;
    }

    .mobile-cart-bar button {
      min-height: 44px;
      white-space: nowrap;
    }
  }

  @media (max-width: 390px) {
    #productModal {
      padding: 6px;
    }

    #productModal .order-product-modal {
      max-height: calc(100dvh - 12px);
      border-radius: 18px;
    }

    #productModal .modal-grid {
      max-height: calc(100dvh - 12px);
    }

    #productModal .order-modal-content {
      padding: 14px 12px calc(14px + env(safe-area-inset-bottom));
      gap: 12px;
    }

    .order-modal-main-image-frame {
      height: clamp(210px, 38vh, 280px);
    }
  }




    /* TRACKING TIMELINE IMPROVEMENTS */

.status-list{
  position:relative;
  }
  
  .status-list::before{
  content:"";
  position:absolute;
  left:6px;
  top:0;
  bottom:0;
  width:2px;
  background:#e5e1d8;
  }
  
  .status-step{
  display:flex;
  gap:12px;
  padding:16px;
  border-radius:12px;
  border:1px solid #e7e2da;
  margin-bottom:12px;
  background:#faf9f7;
  opacity:0.5;
  transition:0.3s;
  position:relative;
  padding-left:26px;
  }
  
  .status-step.active{
  opacity:1;
  background:#fff9f0;
  border:1px solid #d9b67a;
  }
  
  .status-dot{
  width:12px;
  height:12px;
  border-radius:50%;
  background:#d9d3c7;
  position:absolute;
  left:0;
  top:22px;
  }
  
  .status-step.active .status-dot{
  background:#caa45d;
  }

  .status-step.current{
    background:#fff4dd;
    border:2px solid #caa45d;
    }

  .driver-info-card {
    margin-bottom: 18px;
    padding: 16px 18px;
    background: #fbf8f3;
    border: 1px solid var(--border);
    border-radius: 16px;
  }

  .driver-info-card h4 {
    margin-bottom: 8px;
  }

  .driver-info-card p {
    margin: 0 0 6px;
  }

  .driver-info-card a {
    color: var(--gold-dark);
    font-weight: 600;
  }

  #driverInfoBox {
    margin-top: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--border);
  }



    .support-box{
      margin-top:20px;
      padding:16px;
      border:1px solid var(--border);
      border-radius:12px;
      background:#fffaf2;
    }
    
    .support-box h4{
      margin-bottom:10px;
    }
    
    .support-select{
      width:100%;
      padding:10px;
      border-radius:8px;
      border:1px solid var(--border);
      margin-bottom:10px;
    }
    
    .support-btn{
      width:100%;
    }



    .support-box{
      margin-top:20px;
    }


    /* REMOVE GAP BETWEEN MAP AND SUPPORT */

#mapContainer{
  margin-bottom: 0 !important;
  display:block;
}

.support-box{
  margin-top: 10px !important;
}


#mapContainer{
  border-bottom-left-radius:0;
  border-bottom-right-radius:0;
}

#mapContainer .leaflet-container{
  height:100%;
  border-bottom-left-radius:0;
  border-bottom-right-radius:0;
}

.support-box{
  border-top-left-radius:0;
  border-top-right-radius:0;
}


.order-row{
  cursor:pointer;
}

.expanded-row td{
  animation:fadeIn 0.2s ease;
}

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



/* EXPANDED ORDER DESIGN */

.expanded-content{
  padding:0 !important;
  border:none !important;
  background:transparent !important;
}

.expanded-box{
  background:#fffdf9;
  border:1px solid #e6dccb;
  border-radius:16px;
  margin:10px 0 20px;
  padding:18px;
  box-shadow:0 6px 18px rgba(0,0,0,0.05);
}

/* header */
.expanded-header{
  font-size:16px;
  font-weight:700;
  margin-bottom:12px;
  color:#1f1a17;
}

/* layout */
.expanded-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}

/* actions */
.expanded-actions{
  margin-top:15px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* highlight selected row */
.order-row.active{
  background:#fff4dd !important;
  border-left:4px solid #caa45d;
}



/* ADMIN MODAL FIX */

#orderModal .modal{
  width:min(980px, 100%);
  max-width:980px;
  max-height:calc(100vh - 48px);
  border:1px solid rgba(167, 134, 72, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(255, 255, 255, 0.98)),
    #fff;
  box-shadow:0 28px 70px rgba(31, 26, 23, 0.18);
  display:flex;
  flex-direction:column;
}

#orderModal .modal-content{
  padding:36px;
  display:grid;
  gap:24px;
  max-height:calc(100vh - 48px);
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
}

.admin-order-modal-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
  padding-right:72px;
}

.admin-order-modal-heading{
  min-width:0;
}

.admin-order-modal-heading h3{
  margin:10px 0 0;
  padding-right:0;
}

.admin-order-modal-subtitle{
  margin:12px 0 0;
  max-width:560px;
  color:var(--text-soft);
  line-height:1.6;
}

.admin-order-id-chip{
  display:grid;
  gap:10px;
  justify-items:start;
  align-self:start;
  min-width:210px;
  padding:18px 18px 16px;
  border-radius:22px;
  background:
    linear-gradient(135deg, rgba(201, 169, 106, 0.14), rgba(255, 255, 255, 0.98)),
    #fff;
  border:1px solid rgba(167, 134, 72, 0.2);
  box-shadow:0 14px 32px rgba(58, 43, 15, 0.08);
}

.admin-order-id-label{
  color:var(--gold-dark);
  font-size:0.74rem;
  font-weight:800;
  letter-spacing:0.16em;
  text-transform:uppercase;
}

#modalOrderIdValue{
  display:block;
  font-weight:800;
  color:var(--text);
  font-size:1.1rem;
  line-height:1.35;
  word-break:break-word;
}

.admin-order-modal-grid{
  display:grid;
  grid-template-columns:minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap:22px;
}

.admin-order-modal-panel{
  display:grid;
  gap:18px;
  padding:24px;
  border-radius:24px;
  border:1px solid rgba(167, 134, 72, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.82), rgba(255, 255, 255, 0.98)),
    #fff;
  box-shadow:0 14px 34px rgba(58, 43, 15, 0.06);
}

.admin-order-modal-panel-head h4{
  margin:0;
  font-size:1.15rem;
}

.admin-order-modal-panel-head p{
  margin:8px 0 0;
  color:var(--text-soft);
}

.admin-order-detail-list{
  display:grid;
  gap:0;
}

.admin-order-detail-row{
  display:grid;
  grid-template-columns:minmax(110px, 140px) minmax(0, 1fr);
  gap:18px;
  align-items:start;
  padding:14px 0;
  border-top:1px solid rgba(167, 134, 72, 0.14);
}

.admin-order-detail-row:first-child{
  padding-top:0;
  border-top:0;
}

.admin-order-detail-row-notes{
  align-items:flex-start;
}

.admin-order-detail-label{
  color:var(--text-soft);
  font-size:0.82rem;
  font-weight:800;
  letter-spacing:0.08em;
  text-transform:uppercase;
}

.admin-order-detail-value,
.admin-order-detail-link{
  color:var(--text);
  font-weight:600;
  line-height:1.65;
  word-break:break-word;
}

.admin-order-detail-link{
  color:var(--gold-dark);
  text-decoration:none;
}

.admin-order-detail-link:hover{
  text-decoration:underline;
}

.admin-order-detail-link[aria-disabled="true"]{
  color:var(--text-soft);
  pointer-events:none;
  text-decoration:none;
  cursor:default;
}

.admin-order-items-list{
  display:grid;
  gap:12px;
  margin:0;
  padding:0;
  list-style:none;
}

.admin-order-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:16px 18px;
  border-radius:18px;
  border:1px solid rgba(167, 134, 72, 0.14);
  background:#fff;
}

.admin-order-item-name{
  min-width:0;
  color:var(--text);
  font-weight:700;
  line-height:1.5;
}

.admin-order-item-qty{
  flex-shrink:0;
  display:grid;
  place-items:center;
  min-width:52px;
  padding:8px 10px;
  border-radius:999px;
  background:rgba(201, 169, 106, 0.12);
  color:var(--gold-dark);
  font-weight:800;
}

.admin-order-item.is-empty{
  justify-content:flex-start;
  background:#fbf8f3;
}

.admin-order-modal-timeline{
  gap:16px;
}

.admin-order-timeline{
  display:grid;
  gap:14px;
}

.admin-order-timeline-row{
  display:grid;
  grid-template-columns:auto minmax(0, 1fr);
  align-items:start;
  gap:14px;
}

.admin-order-timeline-dot{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:20px;
  min-height:24px;
  font-size:1rem;
  line-height:1;
  color:#b58a40;
  transform:translateY(2px);
}

.admin-order-timeline-row.is-pending .admin-order-timeline-dot{
  color:#c9baa0;
}

.admin-order-timeline-copy{
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  align-items:center;
  gap:12px;
  padding-bottom:12px;
}

.admin-order-timeline-row:not(:last-child) .admin-order-timeline-copy{
  border-bottom:1px solid rgba(167, 134, 72, 0.12);
}

.admin-order-timeline-label{
  color:var(--text);
  font-weight:700;
  line-height:1.45;
}

.admin-order-timeline-time{
  color:var(--text-soft);
  font-weight:600;
  text-align:right;
  white-space:nowrap;
}

.admin-order-modal-actions{
  display:flex;
  justify-content:flex-end;
  gap:12px;
  padding-top:4px;
}

#orderModal .modal-close{
  top:22px;
  right:22px;
  width:42px;
  height:42px;
  background:rgba(251, 248, 243, 0.96);
  border:1px solid rgba(167, 134, 72, 0.16);
  box-shadow:0 10px 22px rgba(31, 26, 23, 0.08);
}

#orderModal{
  z-index:1400;
  padding:24px;
}

#orderModal .modal-close:hover{
  background:#fff;
}

@media (max-width: 860px){
  #orderModal .modal-content{
    padding:28px;
    gap:20px;
  }

  .admin-order-modal-head{
    flex-direction:column;
    padding-right:56px;
  }

  .admin-order-id-chip{
    width:100%;
    min-width:0;
  }

  .admin-order-modal-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width: 620px){
  #quoteModal{
    padding: 16px;
  }

  .quote-modal,
  .quote-modal .modal-content{
    max-height: calc(100vh - 32px);
  }

  #editOrderModal{
    padding: 16px;
  }

  #editOrderModal .modal,
  #editOrderModal .modal-content{
    max-height: calc(100vh - 32px);
  }

  #createOrderModal{
    padding: 16px;
  }

  #createOrderModal .modal,
  #createOrderModal .modal-content{
    max-height: calc(100vh - 32px);
  }

  #orderModal{
    padding:16px;
  }

  #orderModal .modal{
    max-height:calc(100vh - 32px);
  }

  #orderModal .modal-content{
    padding:22px;
    max-height:calc(100vh - 32px);
  }

  .admin-order-modal-panel{
    padding:20px;
  }

  .admin-order-detail-row{
    grid-template-columns:1fr;
    gap:6px;
  }

  .admin-order-modal-actions{
    justify-content:stretch;
    flex-direction:column;
  }

  .admin-order-timeline-copy{
    grid-template-columns:1fr;
    gap:4px;
  }

  .admin-order-timeline-time{
    text-align:left;
    white-space:normal;
  }

  .admin-order-modal-actions .btn{
    width:100%;
  }
}

#driverModal .modal{
  max-width:460px;
}

#driverModal .modal-content{
  padding:30px;
}

#driverPerformanceModal{
  z-index: 1400;
  padding: 18px;
}

.driver-performance-modal{
  max-width: 1040px;
  max-height: calc(100vh - 36px);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(167, 134, 72, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(255, 255, 255, 0.98)),
    #fff;
  box-shadow: 0 28px 70px rgba(31, 26, 23, 0.18);
}

.driver-performance-modal .modal-content{
  padding: 34px;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  display: grid;
  gap: 24px;
}

.driver-performance-head{
  position: relative;
  padding: 0 72px 4px 0;
}

.driver-performance-head::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  background: linear-gradient(90deg, rgba(167, 134, 72, 0.2), rgba(167, 134, 72, 0));
}

.driver-performance-head h3{
  margin: 8px 0 0;
  padding-right: 0;
  font-size: 2.15rem;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.driver-performance-subtitle{
  margin: 10px 0 0;
  color: var(--text-soft);
  max-width: 560px;
  font-size: 0.98rem;
  line-height: 1.6;
}

.driver-performance-stats{
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.driver-performance-stat-card,
.driver-performance-panel{
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(167, 134, 72, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.72), rgba(255, 255, 255, 0.98)),
    #fff;
  box-shadow: 0 12px 28px rgba(58, 43, 15, 0.05);
}

.driver-performance-stat-card span{
  display: block;
  margin-bottom: 10px;
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.driver-performance-stat-card strong{
  display: block;
  font-size: 1.6rem;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 8px;
}

.driver-performance-stat-card p{
  margin: 0;
  color: var(--text-soft);
  font-size: 0.84rem;
  line-height: 1.45;
}

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

.driver-performance-panel{
  display: grid;
  gap: 16px;
  align-content: start;
}

.driver-performance-panel-head h4{
  margin: 0;
  font-size: 1.02rem;
}

.driver-performance-panel-head p{
  margin: 7px 0 0;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}

.driver-performance-list{
  display: grid;
  gap: 10px;
}

.driver-performance-order-item{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(167, 134, 72, 0.1);
  background: rgba(255, 255, 255, 0.94);
}

.driver-performance-order-main{
  min-width: 0;
}

.driver-performance-order-item strong{
  display: block;
  margin-bottom: 5px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.35;
}

.driver-performance-order-item p{
  margin: 0;
  color: var(--text-soft);
  line-height: 1.5;
}

.driver-performance-order-side{
  display: grid;
  justify-items: end;
  gap: 4px;
  min-width: 140px;
}

.driver-performance-order-eyebrow{
  color: var(--text-soft);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.driver-performance-order-meta{
  display: block;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 700;
  text-align: right;
  line-height: 1.35;
  white-space: nowrap;
}

.driver-performance-order-submeta{
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: right;
  line-height: 1.4;
}

.driver-performance-empty{
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(251, 248, 243, 0.98), rgba(255, 255, 255, 0.98));
  color: var(--text-soft);
  border: 1px dashed rgba(167, 134, 72, 0.18);
}

.driver-performance-empty strong{
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

.driver-performance-empty p{
  margin: 0;
  line-height: 1.55;
}

.driver-performance-summary{
  display: grid;
  gap: 10px;
}

.driver-performance-summary-item{
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(167, 134, 72, 0.1);
}

.driver-performance-summary-item strong{
  color: var(--gold-dark);
  font-size: 1rem;
  line-height: 1;
  min-width: 52px;
}

.driver-performance-summary-item span{
  color: var(--text-soft);
  line-height: 1.55;
}

@media (max-width: 980px){
  .driver-performance-stats{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .driver-performance-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px){
  #driverPerformanceModal{
    padding: 16px;
  }

  .driver-performance-modal,
  .driver-performance-modal .modal-content{
    max-height: calc(100vh - 32px);
  }

  .driver-performance-modal .modal-content{
    padding: 24px;
    gap: 18px;
  }

  .driver-performance-head{
    padding-right: 56px;
  }

  .driver-performance-stats{
    grid-template-columns: 1fr;
  }

  .driver-performance-order-item,
  .driver-performance-summary-item{
    grid-template-columns: 1fr;
  }

  .driver-performance-order-side{
    justify-items: start;
    min-width: 0;
  }

  .driver-performance-order-meta{
    text-align: left;
    white-space: normal;
  }

  .driver-performance-order-submeta{
    text-align: left;
  }
}

.admin-driver-select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 14px;
  color: var(--text);
}

#editOrderModal .modal{
  max-width: 860px;
  max-height: calc(100vh - 36px);
  display: flex;
  flex-direction: column;
}

#editOrderModal .modal-content{
  padding: 30px;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

#editOrderModal{
  z-index: 1400;
  padding: 18px;
}

.edit-order-head p{
  margin-top: 8px;
  color: var(--text-soft);
}

.edit-order-form{
  display: grid;
  gap: 18px;
}

.edit-order-items{
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  background: #fbf8f3;
}

.edit-order-items-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.edit-order-items-head h4{
  margin: 0 0 6px;
}

.edit-order-items-head p{
  margin: 0;
  color: var(--text-soft);
}

.edit-items-container{
  display: grid;
  gap: 12px;
}

.edit-item-row{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) 120px auto;
  gap: 12px;
  align-items: center;
}

.edit-item-row select,
.edit-item-row input{
  width: 100%;
  min-width: 0;
}

.create-item-row{
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 1fr) 100px auto;
}

.create-item-details{
  grid-column: 1 / -1;
  margin-top: -2px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #f4ede2;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.45;
}

.create-order-modal{
  width: min(940px, 100%);
  max-width: 940px;
  max-height: calc(100vh - 36px);
  display: flex;
  flex-direction: column;
}

.create-order-modal .modal-content{
  padding: 30px;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

#createOrderModal{
  z-index: 1400;
  padding: 18px;
}

.inventory-modal{
  max-width: 900px;
  max-height: calc(100vh - 36px);
}

.inventory-modal .modal-content{
  padding: 30px;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
}

.inventory-damage-tools{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, auto);
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: #fbf8f3;
}

.inventory-damage-tools h4{
  margin: 0 0 6px;
}

.inventory-damage-tools p{
  margin: 0;
  color: var(--text-soft);
}

.inventory-damage-actions{
  display: grid;
  grid-template-columns: 90px auto auto;
  gap: 10px;
  align-items: center;
}

.inventory-damage-actions input{
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.inventory-damage-actions .btn{
  min-height: 44px;
  padding: 10px 16px;
}

.inventory-archive-toggle{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-weight: 700;
  color: var(--text);
}

.inventory-archive-toggle input{
  width: 18px;
  height: 18px;
}

.quote-modal{
  max-width: 1220px;
  max-height: calc(100vh - 36px);
  display: flex;
  flex-direction: column;
}

.quote-modal .modal-content{
  padding: 30px;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

#quoteModal{
  z-index: 1400;
  padding: 18px;
}

.quote-builder-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:20px;
  padding-right:84px;
}

.quote-builder-head p{
  margin-top:8px;
  color:var(--text-soft);
}

.quote-builder-status{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:10px 16px;
  max-width:min(100%, 380px);
  border-radius:999px;
  background:#f5efe4;
  border:1px solid #e6d8c0;
  color:#856228;
  font-weight:700;
  white-space:normal;
  text-align:center;
}

.quote-builder-status.is-loading{
  background:#eef3ff;
  border-color:#cfdcff;
  color:#2f6ecf;
}

.quote-builder-status.is-success{
  background:#e9f7ee;
  border-color:#bfdcc9;
  color:#2f8b57;
}

.quote-builder-status.is-warning{
  background:#fff6e7;
  border-color:#ead2a1;
  color:#9a6508;
}

.quote-builder-layout{
  display:grid;
  grid-template-columns:minmax(0, 1fr);
  gap:20px;
}

.quote-builder-main{
  display:grid;
  gap:18px;
  align-content:start;
}

.quote-builder-bottom{
  display:grid;
  grid-template-columns:minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap:20px;
  margin-top:20px;
  align-items:start;
}

.quote-builder-section{
  border:1px solid var(--border);
  border-radius:22px;
  background:#fbf8f3;
  padding:20px;
}

.quote-builder-section-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:16px;
}

.quote-builder-section-head h4{
  margin:0 0 6px;
}

.quote-builder-section-head p{
  margin:0;
  color:var(--text-soft);
}

.quote-builder-grid{
  display:grid;
  gap:14px;
}

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

.quote-builder-grid-three{
  grid-template-columns:repeat(3, minmax(0, 1fr));
}

.quote-builder-items{
  display:grid;
  gap:14px;
}

.quote-item-card{
  border:1px solid #e4d9ca;
  border-radius:18px;
  background:#fff;
  padding:18px;
}

.quote-item-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:16px;
}

.quote-item-card-head > div{
  min-width:0;
}

.quote-item-card-head strong{
  font-size:1rem;
  display:block;
  margin-bottom:4px;
}

.quote-item-card-head span{
  color:var(--text-soft);
  font-size:0.9rem;
  display:block;
}

.quote-item-card-grid{
  display:grid;
  grid-template-columns:minmax(280px, 2.3fr) minmax(110px, 0.7fr) minmax(190px, 1fr) minmax(170px, 0.9fr);
  gap:14px;
  align-items:end;
}

.quote-item-card-grid .form-group{
  min-width:0;
  margin:0;
}

.quote-item-name-group{
  grid-column:1 / 2;
}

.quote-item-card .quote-item-name{
  min-height:54px;
  height:54px;
  resize:none;
  overflow:hidden;
  line-height:1.45;
  font-weight:600;
}

.quote-item-quantity{
  text-align:center;
}

.currency-input-wrap{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
  padding-right:14px;
  transition:border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.currency-input-wrap:focus-within{
  border-color:rgba(167, 134, 72, 0.7);
  box-shadow:0 0 0 4px rgba(201, 169, 106, 0.14);
  transform:translateY(-1px);
}

.currency-input-wrap input{
  border:0;
  border-radius:14px 0 0 14px;
  background:transparent;
  box-shadow:none;
  padding:14px 0 14px 14px;
}

.currency-input-wrap input:focus{
  border-color:transparent;
  box-shadow:none;
  transform:none;
}

.currency-input-suffix{
  flex:0 0 auto;
  font-weight:700;
  color:#7f6641;
  letter-spacing:0.03em;
}

.quote-item-unit-price-group .currency-input-wrap,
.quote-builder-grid .currency-input-wrap{
  min-height:54px;
}

.quote-item-amount{
  font-weight:700;
}

.quote-item-card input[readonly],
.quote-item-card textarea[readonly],
.quote-builder-section input[readonly],
.quote-builder-section textarea[readonly]{
  background:#f5f1ea;
  color:#5f5548;
}

.quote-item-card .currency-input-wrap:has(input[readonly]),
.quote-builder-section .currency-input-wrap:has(input[readonly]){
  background:#f5f1ea;
}

.quote-item-card.is-editing{
  border-color:#cfb27b;
  box-shadow:0 12px 28px rgba(167, 134, 72, 0.1);
}

.quote-totals-card{
  display:grid;
  gap:10px;
  border:1px solid #e6d8c0;
  border-radius:18px;
  background:#fff;
  padding:16px;
}

.quote-total-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  color:var(--text-soft);
}

.quote-total-row strong{
  color:var(--text);
}

.quote-total-row.is-grand-total{
  padding-top:10px;
  border-top:1px solid var(--border);
  color:var(--text);
  font-size:1.05rem;
}

.quote-history-list{
  display:grid;
  gap:12px;
  max-height:420px;
  overflow:auto;
  padding-right:4px;
}

.quote-history-empty{
  padding:16px;
  border-radius:16px;
  background:#fff;
  border:1px dashed #d7cab7;
  color:var(--text-soft);
  text-align:center;
}

.quote-history-card{
  padding:16px;
  border-radius:18px;
  background:#fff;
  border:1px solid #e4d9ca;
  display:grid;
  gap:12px;
}

.quote-history-card.is-active{
  border-color:#cfb27b;
  box-shadow:0 14px 28px rgba(167, 134, 72, 0.1);
}

.quote-history-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}

.quote-history-card-head strong{
  display:block;
  margin-bottom:4px;
}

.quote-history-card-head span,
.quote-history-meta{
  color:var(--text-soft);
  font-size:0.9rem;
}

.quote-history-actions{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:8px;
}

.quote-history-actions .btn{
  min-height:42px;
  padding:10px 12px;
  border-radius:14px;
}

.quote-builder-actions{
  display:grid;
  gap:12px;
}

.quote-builder-actions-section{
  align-self:start;
}

.quote-builder-actions .btn{
  width:100%;
  min-height:48px;
}

.quote-action-note{
  color:var(--text-soft);
  font-size:0.9rem;
}

@media (max-width: 1080px) {
  .quote-builder-bottom{
    grid-template-columns:minmax(0, 1fr);
  }
}

.admin-toast{
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 120;
  min-width: 240px;
  max-width: 360px;
  padding: 14px 18px;
  border-radius: 16px;
  color: #fff;
  background: #2f8b57;
  box-shadow: 0 18px 32px rgba(31, 26, 23, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.admin-toast.is-visible{
  opacity: 1;
  transform: translateY(0);
}

.admin-toast.is-error{
  background: #c04343;
}

.admin-toast.is-warning{
  background: #b87817;
}

.scroll-top-btn{
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 95;
  min-width: 62px;
  padding: 12px 18px;
  border: 1px solid rgba(201, 169, 106, 0.4);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(31, 26, 23, 0.96), rgba(88, 64, 23, 0.96));
  color: #f7efe1;
  box-shadow: 0 18px 34px rgba(31, 26, 23, 0.24);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.scroll-top-btn:hover,
.scroll-top-btn:focus-visible{
  background: linear-gradient(135deg, var(--gold-dark), #c9a96a);
  box-shadow: 0 20px 38px rgba(181, 125, 31, 0.24);
  transform: translateY(0);
}

.scroll-top-btn:focus-visible{
  outline: 2px solid rgba(201, 169, 106, 0.4);
  outline-offset: 3px;
}

.scroll-top-btn.is-visible{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.driver-dashboard-page[dir="rtl"] .scroll-top-btn{
  right: auto;
  left: 24px;
}

.driver-dashboard-page {
  background:
    radial-gradient(circle at top right, rgba(201, 169, 106, 0.14), transparent 28%),
    linear-gradient(180deg, #f8f5ef 0%, #f3eee5 100%);
}

.driver-navbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.driver-header-actions {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.driver-logout-btn {
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1;
  flex-shrink: 0;
  margin-inline-start: 0;
}

.driver-dashboard-layout {
  display: flex;
  width: 100%;
  align-items: flex-start;
}

.driver-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  height: 100vh;
  z-index: 1000;
  padding: 98px 16px 24px;
}

.driver-dashboard-content {
  width: calc(100% - 220px);
  min-width: 0;
  margin-left: 220px;
}

.driver-dashboard-page[dir="rtl"] .driver-sidebar {
  left: auto;
  right: 0;
}

.driver-dashboard-page[dir="rtl"] .driver-dashboard-content {
  margin-left: 0;
  margin-right: 220px;
}

.driver-sidebar-panel {
  position: relative;
  height: 100%;
  overflow-y: auto;
  padding: 20px 16px;
  border-radius: 24px;
  border: 1px solid rgba(167, 134, 72, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 245, 238, 0.96)),
    #fff;
  box-shadow: 0 18px 36px rgba(58, 43, 15, 0.08);
}

.driver-sidebar-panel .section-kicker {
  margin-bottom: 14px;
}

.driver-sidebar-nav {
  display: grid;
  gap: 16px;
}

.driver-sidebar-group {
  display: grid;
  gap: 8px;
}

.driver-sidebar-group-title {
  color: var(--gold-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  padding: 0 10px;
}

.driver-sidebar-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid transparent;
  color: var(--text-soft);
  font-weight: 700;
  transition: 0.22s ease;
}

.driver-sidebar-link:hover {
  color: var(--text);
  border-color: rgba(167, 134, 72, 0.14);
  background: rgba(201, 169, 106, 0.08);
}

.driver-sidebar-link.is-active {
  color: var(--gold-dark);
  border-color: rgba(167, 134, 72, 0.22);
  background: linear-gradient(135deg, rgba(201, 169, 106, 0.16), rgba(255, 255, 255, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.driver-section-anchor {
  scroll-margin-top: 110px;
}

.driver-hero {
  margin-bottom: 20px;
}

.driver-hero-copy {
  min-width: 0;
}

.driver-hero-head {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 16px;
}

.driver-language-control {
  display: inline-flex;
  align-items: center;
  min-width: 148px;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.driver-language-control--header {
  flex-shrink: 0;
}

.driver-language-control select {
  min-height: 40px;
  width: 100%;
  padding: 8px 40px 8px 14px;
  border: 1px solid rgba(167, 134, 72, 0.2);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 242, 233, 0.98));
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.1;
  appearance: none;
  cursor: pointer;
  outline: none;
  box-shadow: 0 8px 18px rgba(58, 43, 15, 0.05);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 242, 233, 0.98)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3.5 5.25L7 8.75L10.5 5.25' stroke='%236f655c' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: 0 0, right 14px center;
  background-size: auto, 14px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.driver-language-control select:hover {
  border-color: rgba(167, 134, 72, 0.34);
}

.driver-language-control select:focus {
  border-color: rgba(167, 134, 72, 0.58);
  box-shadow: 0 0 0 4px rgba(201, 169, 106, 0.14);
  transform: translateY(-1px);
}

.driver-dashboard-page[dir="rtl"] .driver-language-control select {
  padding: 8px 14px 8px 40px;
  background-position: 0 0, left 14px center;
}

.driver-summary-strip {
  display: grid;
  gap: 12px;
  width: min(100%, 720px);
  margin-top: 0;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(167, 134, 72, 0.14);
  background:
    linear-gradient(135deg, rgba(201, 169, 106, 0.1), rgba(255, 255, 255, 0.98)),
    #fff;
  box-shadow: 0 12px 24px rgba(58, 43, 15, 0.06);
}

.driver-summary-strip-mobile {
  display: none;
}

.driver-summary-head {
  display: flex;
  align-items: center;
}

.driver-summary-label {
  color: #8f6a26;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.driver-summary-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.driver-summary-stat {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(167, 134, 72, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(250, 246, 240, 0.88));
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.driver-summary-stat strong {
  color: #b57d1f;
  font-size: 1.45rem;
  line-height: 1.05;
  font-weight: 800;
}

.driver-summary-stat span {
  color: #62584a;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.driver-summary-empty {
  color: var(--text-soft);
  font-weight: 600;
  line-height: 1.6;
}

.driver-status-bar {
  display: flex;
  gap: 16px;
  margin: 16px 0 24px;
}

.status-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 0 8px 22px rgba(31, 26, 23, 0.06);
  border: 1px solid rgba(167, 134, 72, 0.12);
  display: flex;
  flex-direction: column;
  min-width: 180px;
  gap: 4px;
}

.status-card.deliveries {
  min-width: min(100%, 360px);
}

.status-card.location {
  min-width: 200px;
}

.status-card .label {
  font-size: 0.72rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
  font-weight: 800;
}

.status-card .value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.45;
}

.status-card.location .value.on {
  color: #2e7d32;
}

.status-card.location .value.off {
  color: #c62828;
}

.driver-pill.is-on {
  background: #e9f7ee;
  border-color: rgba(47, 139, 87, 0.22);
  color: #2f8b57;
}

.driver-pill.is-off {
  background: #fff1f1;
  border-color: rgba(192, 67, 67, 0.22);
  color: #c04343;
}

.driver-dashboard-message {
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  font-weight: 600;
  border: 1px solid transparent;
}

.driver-dashboard-message.is-info {
  background: #f5f1ea;
  border-color: #e2d8c9;
  color: #6c5a41;
}

.driver-dashboard-message.is-success {
  background: #e9f7ee;
  border-color: #bfdcc9;
  color: #2f8b57;
}

.driver-dashboard-message.is-warning {
  background: #fff6e7;
  border-color: #ead2a1;
  color: #9a6508;
}

.driver-dashboard-message.is-error {
  background: #fdecec;
  border-color: #f0c8c8;
  color: #c04343;
}

.driver-section + .driver-section {
  margin-top: 28px;
}

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

.driver-section-head .section-title {
  margin-bottom: 0;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.driver-section-summary {
  max-width: 420px;
  color: var(--text-soft);
  text-align: end;
}

.driver-completed-section {
  padding-top: 6px;
}

.driver-support-section {
  margin-top: 28px;
}

.driver-support-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 24px 26px;
  border: 1px solid rgba(167, 134, 72, 0.2);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(201, 169, 106, 0.12), rgba(255, 255, 255, 0.96)),
    #fff;
  box-shadow: 0 18px 36px rgba(58, 43, 15, 0.08);
}

.driver-support-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(181, 125, 31, 0.16), rgba(201, 169, 106, 0.28));
  color: var(--gold-dark);
  font-size: 1.35rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.driver-support-copy .section-kicker {
  margin-bottom: 6px;
}

.driver-support-copy .section-title {
  margin-bottom: 8px;
}

.driver-support-copy p {
  margin: 0;
  color: var(--text-soft);
}

.driver-support-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(167, 134, 72, 0.28);
  background: rgba(255, 255, 255, 0.9);
  color: var(--gold-dark);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.driver-support-link:hover,
.driver-support-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(167, 134, 72, 0.5);
  box-shadow: 0 12px 24px rgba(58, 43, 15, 0.1);
}

.driver-history-toolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.driver-history-control {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.driver-history-control span {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-soft);
}

.driver-history-control select,
.driver-history-control input {
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
}

.driver-history-search {
  grid-column: span 1;
}

.driver-collection-shell {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.driver-collection-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.driver-collection-control {
  margin: 0;
}

.driver-collection-control input {
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.98);
}

.driver-collection-form .btn {
  min-width: 172px;
  min-height: 52px;
}

.driver-collection-result {
  min-height: 120px;
}

.driver-collection-state {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid transparent;
  background: #fbf8f3;
}

.driver-collection-state strong {
  font-size: 1.08rem;
}

.driver-collection-state p {
  margin: 0;
  color: inherit;
  line-height: 1.6;
}

.driver-collection-state.is-empty {
  text-align: center;
  border-color: rgba(167, 134, 72, 0.16);
  color: #6c5a41;
  background: linear-gradient(180deg, rgba(251, 248, 243, 0.98), rgba(255, 255, 255, 0.98));
}

.driver-collection-state.is-info {
  background: #f5f1ea;
  border-color: #e2d8c9;
  color: #6c5a41;
}

.driver-collection-state.is-ready {
  background: linear-gradient(180deg, rgba(255, 251, 243, 0.98), rgba(255, 255, 255, 0.98));
  border-color: rgba(167, 134, 72, 0.2);
  color: var(--text);
}

.driver-collection-state.is-success {
  background: linear-gradient(180deg, rgba(233, 247, 238, 0.98), rgba(255, 255, 255, 0.98));
  border-color: rgba(47, 139, 87, 0.22);
  color: #2f8b57;
}

.driver-collection-state.is-warning {
  background: linear-gradient(180deg, rgba(255, 246, 231, 0.98), rgba(255, 255, 255, 0.98));
  border-color: rgba(154, 101, 8, 0.2);
  color: #8c5e08;
}

.driver-collection-state.is-error {
  background: linear-gradient(180deg, rgba(253, 236, 236, 0.98), rgba(255, 255, 255, 0.98));
  border-color: rgba(192, 67, 67, 0.2);
  color: #b74242;
}

.driver-collection-state-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.driver-collection-state-head h3 {
  margin: 0 0 10px;
  font-size: 1.45rem;
  color: #1f1a17;
}

.driver-collection-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.driver-collection-summary-grid > div {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(167, 134, 72, 0.12);
  background: rgba(255, 255, 255, 0.9);
}

.driver-collection-summary-grid > div.is-wide {
  grid-column: 1 / -1;
}

.driver-collection-summary-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.driver-collection-summary-grid strong {
  display: block;
  font-size: 1rem;
  line-height: 1.55;
  color: #1f1a17;
}

.driver-collection-history-grid {
  margin-top: -2px;
}

.driver-collection-items {
  margin-bottom: 0;
}

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

.driver-collection-actions .btn,
.driver-collection-actions .driver-action-link {
  width: 100%;
  min-height: 56px;
}

.driver-orders-grid {
  display: grid;
  gap: 16px;
}

.driver-order-card,
.driver-empty-state {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.driver-order-card.is-active {
  border-color: rgba(47, 110, 207, 0.28);
  box-shadow: 0 22px 34px rgba(47, 110, 207, 0.12);
}

.driver-order-card.is-completed-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 250, 247, 0.98) 100%);
}

.driver-completed-meta {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(47, 139, 87, 0.14);
  background: rgba(232, 247, 238, 0.58);
}

.driver-completed-meta span {
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 700;
}

.driver-completed-meta strong {
  display: block;
  font-size: 1rem;
  line-height: 1.5;
  color: #1f1a17;
}

.driver-order-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.driver-order-kicker {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.78rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 700;
}

.driver-order-top h3 {
  margin: 0;
  font-size: 1.4rem;
}

.driver-order-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: capitalize;
  white-space: nowrap;
}

.driver-order-badge.is-confirmed,
.driver-order-badge.is-preparing {
  background: #fff3dd;
  color: #a26610;
}

.driver-order-badge.is-out-for-delivery {
  background: #ecebff;
  color: #5743cc;
}

.driver-order-badge.is-delivered {
  background: #e8f7ee;
  color: #2f8b57;
}

.driver-order-badge.is-collected {
  background: #e6f5f1;
  color: #1e7a6d;
}

.driver-order-badge.is-cancelled {
  background: #fdecec;
  color: #c04343;
}

.driver-order-meta {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.driver-order-priority {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f8f4ed;
  border: 1px solid rgba(167, 134, 72, 0.12);
}

.driver-order-priority span {
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 700;
}

.driver-priority-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
}

.driver-priority-badge.is-normal {
  background: rgba(201, 169, 106, 0.14);
  color: #8f6a27;
}

.driver-priority-badge.is-urgent {
  background: #fff1e5;
  color: #bb5a07;
}

.driver-priority-badge.is-vip {
  background: #efe7ff;
  color: #5e43c5;
}

.driver-order-meta span {
  display: block;
  margin-bottom: 6px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.driver-order-meta strong {
  display: block;
  font-size: 1.02rem;
  line-height: 1.4;
}

.driver-order-items {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(167, 134, 72, 0.14);
  background: #fbf8f3;
}

.driver-order-items > span {
  display: block;
  margin-bottom: 10px;
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 700;
}

.driver-order-items-list {
  display: grid;
  gap: 8px;
}

.driver-order-items-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(232, 223, 210, 0.8);
}

.driver-order-items-list strong {
  color: var(--gold-dark);
}

.driver-order-items-empty {
  color: var(--text-soft);
}

.driver-order-actions {
  display: grid;
  gap: 12px;
}

.driver-action-row {
  display: grid;
  gap: 12px;
}

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

.driver-action-row-contact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.driver-action-row-status {
  grid-template-columns: 1fr;
}

.driver-order-actions .btn,
.driver-action-link,
.driver-live-state,
.driver-completed-state {
  width: 100%;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  text-align: center;
  border-radius: 16px;
}

.driver-action-link.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.driver-disabled-btn,
.driver-order-actions .btn:disabled {
  background: #ebe5db;
  border: 1px solid #d9ccba;
  color: #8a7c69;
  cursor: not-allowed;
  box-shadow: none;
}

.driver-live-state,
.driver-completed-state {
  gap: 10px;
  justify-content: flex-start;
  padding: 0 18px;
  border: 1px solid transparent;
  font-weight: 700;
}

.driver-live-state {
  background: #f1edff;
  border-color: rgba(87, 67, 204, 0.18);
  color: #5743cc;
}

.driver-completed-state {
  background: #e8f7ee;
  border-color: rgba(47, 139, 87, 0.16);
  color: #2f8b57;
}

.driver-completed-state span {
  font-size: 0.9rem;
  font-weight: 600;
}

.driver-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 6px rgba(87, 67, 204, 0.14);
}

.driver-location-warning,
.driver-location-state {
  width: 100%;
  min-height: 72px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid transparent;
}

.driver-location-warning {
  background: linear-gradient(135deg, #fff4e8 0%, #ffe7d3 100%);
  border-color: rgba(187, 90, 7, 0.25);
  color: #a34d04;
  box-shadow: 0 12px 24px rgba(187, 90, 7, 0.14);
}

.driver-location-state {
  background: linear-gradient(135deg, #edf9f1 0%, #dff3e7 100%);
  border-color: rgba(47, 139, 87, 0.2);
  color: #2f8b57;
}

.driver-location-warning strong,
.driver-location-state strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
}

.driver-location-warning p,
.driver-location-state p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
}

.driver-dashboard-page[dir="rtl"] .driver-summary-head,
.driver-dashboard-page[dir="rtl"] .driver-order-top,
.driver-dashboard-page[dir="rtl"] .driver-collection-state-head,
.driver-dashboard-page[dir="rtl"] .driver-support-card {
  text-align: right;
}

.driver-dashboard-page[dir="rtl"] .driver-header-actions {
  justify-content: flex-start;
}

.driver-dashboard-page[dir="rtl"] .driver-status-bar {
  justify-content: flex-start;
}

.driver-dashboard-page[dir="rtl"] .driver-language-control,
.driver-dashboard-page[dir="rtl"] .driver-history-control,
.driver-dashboard-page[dir="rtl"] .driver-collection-control,
.driver-dashboard-page[dir="rtl"] .driver-order-meta,
.driver-dashboard-page[dir="rtl"] .driver-order-items,
.driver-dashboard-page[dir="rtl"] .driver-collection-summary-grid > div {
  text-align: right;
}

.driver-dashboard-page[dir="rtl"] .status-card {
  text-align: right;
}

.driver-dashboard-page[dir="rtl"] .driver-live-state,
.driver-dashboard-page[dir="rtl"] .driver-completed-state {
  justify-content: flex-end;
}

.driver-dashboard-page[dir="rtl"] .driver-order-items-list li,
.driver-dashboard-page[dir="rtl"] .driver-order-priority {
  text-align: right;
}

.share-location-btn.is-highlighted {
  min-height: 62px;
  background: linear-gradient(135deg, #ffb347 0%, #ff8f3d 100%);
  border-color: rgba(187, 90, 7, 0.3);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  box-shadow: 0 18px 28px rgba(255, 143, 61, 0.32);
  animation: driverLocationPulse 1.6s ease-in-out infinite;
}

.share-location-btn.is-highlighted:hover {
  background: linear-gradient(135deg, #ffab36 0%, #f47f28 100%);
  transform: translateY(-2px);
}

@keyframes driverLocationPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 143, 61, 0.35);
  }

  70% {
    transform: scale(1.02);
    box-shadow: 0 0 0 14px rgba(255, 143, 61, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 143, 61, 0);
  }
}

.driver-order-actions .btn.btn-primary {
  box-shadow: 0 16px 26px rgba(167, 134, 72, 0.22);
}

.driver-order-actions .btn.btn-primary:hover {
  transform: translateY(-1px);
}

.driver-order-actions.is-completed-card .driver-action-row-secondary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.driver-order-actions.is-completed-card .driver-action-row-contact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.completed-badge {
  background: #e8f7ee;
  color: #2f8b57;
}

.driver-empty-state {
  text-align: center;
}

.driver-empty-state.is-soft {
  background: rgba(255, 255, 255, 0.8);
}

.driver-empty-state strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

@media (min-width: 900px) {
  .driver-orders-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .admin-support-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .admin-support-link {
    grid-column: 1 / -1;
    justify-self: flex-start;
  }
}

  @media (max-width: 760px) {
  .edit-item-row{
    grid-template-columns: 1fr;
  }

  .quote-builder-layout,
  .quote-builder-bottom,
  .quote-builder-grid-two,
  .quote-builder-grid-three,
  .quote-item-card-grid,
  .quote-history-actions{
    grid-template-columns:1fr;
  }

  .quote-builder-head{
    flex-direction:column;
    padding-right:0;
  }

  .quote-item-card-head{
    flex-direction:column;
    align-items:stretch;
  }

  .edit-order-items-head{
    flex-direction: column;
  }

  .admin-toast{
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }

  .scroll-top-btn{
    right: 16px;
    left: auto;
    bottom: 88px;
  }

  .driver-dashboard-page[dir="rtl"] .scroll-top-btn{
    right: auto;
    left: 16px;
  }

  .admin-order-modal-head,
  .track-location-overview{
    flex-direction: column;
  }

  .admin-order-id-chip{
    width: 100%;
    justify-items: stretch;
  }

  .track-info-grid,
  .track-status-grid{
    grid-template-columns: 1fr;
  }

  .driver-hero-head {
    width: 100%;
    flex-direction: column;
  }

  .driver-summary-strip {
    width: 100%;
  }

  .driver-summary-metrics {
    grid-template-columns: 1fr;
  }

  .driver-header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .driver-language-control--header,
  .driver-logout-btn {
    width: 100%;
    max-width: none;
  }

  .driver-status-bar {
    flex-direction: column;
  }

  .driver-language-control select {
    width: 100%;
  }

  .status-card,
  .status-card.deliveries,
  .status-card.location {
    width: 100%;
    min-width: 0;
  }

  .driver-section-head {
    flex-direction: column;
  }

  .driver-section-summary {
    max-width: none;
    text-align: start;
  }

  .driver-history-toolbar {
    grid-template-columns: 1fr;
  }

  .driver-collection-form,
  .driver-collection-summary-grid {
    grid-template-columns: 1fr;
  }

  .driver-collection-actions {
    grid-template-columns: 1fr;
  }

  .driver-collection-state-head {
    flex-direction: column;
  }

  .driver-order-priority {
    flex-direction: column;
    align-items: flex-start;
  }

  .driver-action-row-secondary,
  .driver-action-row-primary {
    grid-template-columns: 1fr;
  }

  .driver-support-card {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .driver-support-icon {
    width: 48px;
    height: 48px;
  }

  .driver-support-link {
    width: 100%;
    justify-content: center;
  }

  .admin-support-card {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .admin-support-icon {
    width: 48px;
    height: 48px;
  }

.admin-support-link {
    width: 100%;
    justify-content: center;
  }
}

@supports (content-visibility: auto) {
  .home-page .home-collections-section,
  .home-page .home-values-section,
  .home-page .home-showcase-section,
  .home-page .home-reviews-section,
  .home-page .home-location-section,
  .home-page .home-cta-section,
  .reviews-page .reviews-archive-section,
  .reviews-page .reviews-cta-section {
    content-visibility: auto;
    contain-intrinsic-size: 1px 900px;
  }
}

@media (max-width: 760px) {
  .home-page .home-collection-card:hover,
  .home-page .home-reviews-grid .review-card:hover,
  .reviews-page .review-card:hover,
  .order-page .product-card:hover {
    transform: none;
  }

  .home-page .home-collection-card,
  .home-page .home-reviews-grid .review-card,
  .reviews-page .review-card,
  .order-page .product-card {
    box-shadow: 0 12px 28px rgba(31, 26, 23, 0.08);
  }

  .home-page .site-header {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

}

@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
  }

  .site-header {
    z-index: 1400;
  }

  .navbar {
    position: relative;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .mobile-menu-btn {
    display: flex;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    position: relative;
    z-index: 1410;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 1405;
    max-height: calc(100dvh - 96px);
    overflow-y: auto;
  }

  .nav-links a {
    width: 100%;
  }

  .home-page .nav-links {
    border: 1px solid rgba(232, 223, 210, 0.95);
    border-radius: 20px;
    background: rgba(255, 252, 246, 0.98);
    box-shadow: 0 22px 40px rgba(31, 26, 23, 0.12);
  }

  .home-page .site-header .nav-links a,
  .home-page .site-header .nav-links a.active {
    color: #2a211b;
    opacity: 1;
  }

  .home-page .site-header .brand h1,
  .home-page .site-header .brand h2,
  .home-page .site-header .brand h3 {
    color: #fff;
  }

  .home-page .site-header .brand span {
    color: rgba(255, 255, 255, 0.78);
  }

  .home-page .site-header.scrolled .brand h1,
  .home-page .site-header.scrolled .brand h2,
  .home-page .site-header.scrolled .brand h3 {
    color: #1a1a1a;
  }

  .home-page .site-header.scrolled .brand span {
    color: #7a6c5f;
  }

  .home-page .site-header .nav-links a::after {
    background: rgba(144, 116, 64, 0.8);
  }

  .home-page .home-hero {
    min-height: clamp(560px, 100dvh, 860px);
    padding: 88px 0 34px;
    align-items: flex-end;
  }

  .home-page .home-hero-shell {
    width: min(92%, 100%);
    padding-bottom: 46px;
  }

  .home-page .home-hero-copy {
    max-width: 100%;
  }

  .home-page .home-hero-copy h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    max-width: 100%;
  }

  .home-page .home-hero-lead {
    max-width: 100%;
    font-size: 0.95rem;
  }

  .home-page .home-location-card {
    grid-template-columns: 1fr;
  }

  .home-page .home-location-map iframe {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .navbar {
    min-height: 68px;
  }

  .home-page .home-hero {
    padding-top: 80px;
  }

  .home-page .home-hero-copy h1 {
    font-size: 2.2rem;
    line-height: 1.2;
  }

  .home-page .home-hero-lead {
    font-size: 0.95rem;
    line-height: 1.7;
  }
}

@media (max-width: 390px) {
  .home-page .home-hero-shell {
    padding-bottom: 40px;
  }

  .home-page .home-hero-copy h1 {
    max-width: 10ch;
  }

  .nav-links {
    padding: 14px;
  }
}

@media (max-width: 760px) {
  .order-page {
    --order-mobile-bar-gap: 10px;
    --order-mobile-bar-height: 72px;
  }

  .order-page .order-catalog-shell {
    width: min(100% - 20px, 760px);
    margin-inline: auto;
  }

  .order-page .order-catalog-section {
    padding-bottom: calc(132px + env(safe-area-inset-bottom));
  }

  .order-page .order-catalog-main {
    width: 100%;
  }

  .order-page .products-grid {
    width: min(100%, 560px);
    margin-inline: auto;
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
    gap: 16px;
  }

  .order-page .product-card {
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
  }

  .order-page .mobile-cart-bar {
    left: var(--order-mobile-bar-gap);
    right: var(--order-mobile-bar-gap);
    bottom: calc(var(--order-mobile-bar-gap) + env(safe-area-inset-bottom));
    z-index: 1220;
    min-height: var(--order-mobile-bar-height);
    padding: 10px 12px;
    border-radius: 16px;
    border: 1px solid rgba(201, 169, 106, 0.18);
    background: linear-gradient(135deg, rgba(27, 23, 19, 0.98), rgba(58, 44, 26, 0.98));
    box-shadow: 0 16px 30px rgba(31, 26, 23, 0.28);
    gap: 10px;
  }

  .order-page .mobile-cart-copy {
    min-width: 0;
  }

  .order-page .mobile-cart-copy strong {
    font-size: 0.92rem;
    line-height: 1.25;
  }

  .order-page .mobile-cart-copy span {
    font-size: 0.78rem;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .order-page .mobile-cart-bar button {
    min-height: 42px;
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 0.9rem;
    flex-shrink: 0;
  }

  .order-page .scroll-top-btn {
    right: 14px;
    left: auto;
    bottom: calc(var(--order-mobile-bar-height) + 24px + env(safe-area-inset-bottom));
    z-index: 1230;
    min-width: 56px;
    padding: 10px 14px;
    border-radius: 12px;
  }

  .order-page #productModal .order-product-modal {
    position: relative;
  }

  .order-page #productModal .order-modal-content {
    position: static;
    padding-top: 18px;
  }

  .order-page #productModal .modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    z-index: 1240;
    border: 1px solid rgba(201, 169, 106, 0.22);
    background: rgba(247, 243, 236, 0.95);
    box-shadow: 0 10px 22px rgba(31, 26, 23, 0.18);
  }
}

@media (min-width: 761px) {
  .order-page .order-catalog-shell {
    width: min(97.5%, 1640px);
  }

  .order-page .order-layout {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 390px);
    gap: 34px;
    align-items: start;
  }

  .order-page .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 24px;
  }

  .order-page .product-card {
    display: grid;
    grid-template-rows: auto 1fr;
    height: 100%;
    border-radius: 26px;
    overflow: hidden;
  }

  .order-page .product-media {
    position: relative;
    display: grid;
    align-items: center;
    padding: 10px 10px 0;
  }

  .order-page .product-thumb,
  .order-page .product-thumb.product-thumb-dining,
  .order-page .product-thumb.product-thumb-chair,
  .order-page .product-thumb.product-thumb-sofa,
  .order-page .product-thumb.product-thumb-table {
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 4;
    object-fit: contain;
    object-position: center 56%;
    padding: 8px 8px 6px;
    border-radius: 20px;
    background:
      radial-gradient(circle at center 26%, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0) 58%),
      linear-gradient(180deg, #f8f3ea 0%, #f2ecdf 100%);
  }

  .order-page .product-badge {
    top: 16px;
    left: 16px;
  }

  .order-page .product-copy {
    gap: 8px;
    padding: 15px 16px 18px;
  }

  .order-page .product-thumb.product-thumb-chair,
  .order-page .product-thumb.product-thumb-sofa {
    padding: 6px 6px 4px;
  }

  .order-page .product-thumb.product-thumb-dining,
  .order-page .product-thumb.product-thumb-table {
    padding: 10px 10px 8px;
  }
}

@supports (content-visibility: auto) {
  .order-page .product-card {
    content-visibility: auto;
    contain-intrinsic-size: 1px 430px;
  }
}

@media (min-width: 1500px) {
  .order-page .order-catalog-shell {
    width: min(98.5%, 1780px);
  }

  .order-page .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (min-width: 1024px) {
  .order-page .order-catalog-section {
    padding-top: 62px;
  }

  .order-page-head {
    margin-bottom: 20px;
  }

  .order-page-head .section-title {
    font-size: clamp(1.95rem, 2.45vw, 2.75rem);
    line-height: 1.08;
    margin-bottom: 12px;
  }

  .order-toolbar {
    padding: 18px;
    gap: 12px;
    margin-bottom: 20px;
    border-radius: 24px;
  }

  .order-search-field input {
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 15px;
  }

  .order-page .product-filters {
    gap: 8px;
  }

  .order-page .filter-btn {
    min-height: 38px;
    padding: 8px 14px;
    font-size: 0.88rem;
  }

  .order-page .order-layout {
    grid-template-columns: minmax(0, 1fr) minmax(310px, 350px);
    gap: 28px;
  }

  .order-page .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(262px, 1fr));
    gap: 20px;
  }

  .order-page .product-thumb,
  .order-page .product-thumb.product-thumb-dining,
  .order-page .product-thumb.product-thumb-chair,
  .order-page .product-thumb.product-thumb-sofa,
  .order-page .product-thumb.product-thumb-table {
    aspect-ratio: 16 / 11;
    border-radius: 18px;
    object-fit: contain;
    object-position: center 56%;
  }

  .order-page .product-thumb.product-thumb-dining,
  .order-page .product-thumb.product-thumb-table {
    padding: 12px 12px 8px;
  }

  .order-page .product-thumb.product-thumb-chair,
  .order-page .product-thumb.product-thumb-sofa {
    padding: 8px 8px 6px;
  }

  .order-page .product-badge {
    top: 18px;
    left: 18px;
  }

  .order-page .product-copy {
    gap: 7px;
    padding: 13px 14px 16px;
  }

  .order-page .product-copy h3 {
    font-size: 1.05rem;
  }

  .product-card-link {
    font-size: 0.86rem;
  }

  .order-page .order-summary {
    top: 88px;
    gap: 16px;
    padding: 21px;
    border-radius: 24px;
  }

  .order-page .order-summary h3 {
    font-size: 1.3rem;
  }

  .order-summary-caption {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .order-page .order-item-row {
    padding: 12px 14px;
    border-radius: 17px;
  }

  .order-page .summary-actions .btn {
    min-height: 46px;
  }
}

@media (max-width: 430px) {
  .order-page .order-catalog-shell {
    width: min(100% - 16px, 760px);
  }

  .order-page .products-grid {
    width: min(100%, 430px);
    gap: 14px;
  }
}

/* Admin Mobile Refinements */
body.admin-page .site-header .brand {
  gap: 0;
  max-width: none;
}

body.admin-page .site-header .brand-logo {
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 12px;
  object-fit: contain;
  background: transparent;
  border: 0;
  box-shadow: none;
}

@media (max-width: 1024px) {
  body.admin-page {
    overflow-x: hidden;
  }

  .admin-page .page-section {
    padding-top: 24px;
  }

  .admin-page .admin-main > .container {
    width: min(100% - 24px, 980px);
  }

  .admin-page .admin-sidebar {
    position: sticky;
    top: calc((var(--header-height, 72px)) + 8px);
    z-index: 30;
    padding: 0 0 12px;
  }

  .admin-page .admin-sidebar-panel {
    padding: 12px;
    border-radius: 16px;
  }

  .admin-page .admin-sidebar-panel .section-kicker {
    display: none;
  }

  .admin-page .admin-sidebar-nav {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
    scroll-padding-inline: 8px;
  }

  .admin-page .admin-sidebar-group {
    display: contents;
  }

  .admin-page .admin-sidebar-group-title {
    display: none;
  }

  .admin-page .admin-sidebar-link {
    flex: 0 0 auto;
    white-space: nowrap;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
  }

  .admin-page .admin-section-anchor {
    scroll-margin-top: 128px;
  }

  .admin-page .admin-controls {
    gap: 10px;
    margin-bottom: 14px !important;
  }

  .admin-page .admin-controls > * {
    flex: 1 1 100%;
    min-width: 0;
  }

  .admin-page #openCreateOrderBtn {
    width: 100%;
    min-height: 46px;
  }

  .admin-page .admin-search-field {
    min-width: 0;
  }

  .admin-page #adminOrdersSection #searchInput {
    min-width: 0 !important;
    width: 100%;
  }

  .admin-page #statusFilter,
  .admin-page #priorityFilter,
  .admin-page #driverFilter,
  .admin-page #inventorySearchInput,
  .admin-page #inventorySourceFilter,
  .admin-page #inventoryStatusFilter {
    width: 100%;
    min-width: 0;
  }

  .admin-page .admin-grid,
  .admin-page .analytics-summary,
  .admin-page .analytics-grid,
  .admin-page .inventory-summary-grid {
    gap: 10px;
  }

  .admin-page .inventory-section,
  .admin-page .collection-panel-wrap,
  .admin-page .operations-map-wrap,
  .admin-page .calendar-section {
    padding: 16px;
    border-radius: 18px;
  }

  .admin-page .inventory-toolbar {
    padding: 10px;
    gap: 10px;
  }

  .admin-page .inventory-toolbar > * {
    flex: 1 1 100%;
    min-width: 0;
  }

  .admin-page .inventory-pagination {
    gap: 8px;
    padding: 10px;
  }

  .admin-page .inventory-pagination .btn {
    width: 100%;
    min-height: 42px;
  }

  .admin-page .operations-map-shell {
    min-height: 300px;
  }

  .admin-page .operations-driver-list {
    max-height: 360px;
    overflow: auto;
  }

  .admin-page .collection-preview-grid {
    grid-template-columns: 1fr;
  }

  .admin-page .quote-builder-section,
  .admin-page .edit-order-items {
    padding: 16px;
    border-radius: 16px;
  }

  .admin-page .quote-builder-status {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 760px) {
  .admin-page .site-header .brand {
    max-width: none;
  }

  .admin-page .site-header .brand-logo {
    width: 50px;
    height: 50px;
    padding: 0;
  }

  .admin-page .admin-main > .container {
    width: min(100% - 16px, 760px);
  }

  .admin-page .admin-sidebar {
    top: calc((var(--header-height, 72px)) + 4px);
    padding-bottom: 10px;
  }

  .admin-page .admin-card,
  .admin-page .analytics-card,
  .admin-page .analytics-mini-card {
    padding: 16px;
    border-radius: 16px;
  }

  .admin-page .calendar-shell {
    margin-inline: -2px;
    padding-bottom: 4px;
  }

  .admin-page .calendar-weekdays,
  .admin-page .calendar-grid {
    min-width: 760px;
  }

  .admin-page .calendar-day {
    min-height: 132px;
    padding: 10px;
  }

  .admin-page #adminOrdersSection .admin-table,
  .admin-page .inventory-table,
  .admin-page .inventory-reservations-table {
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
    border-radius: 0;
  }

  .admin-page #adminOrdersSection .admin-table table,
  .admin-page .inventory-table table,
  .admin-page .inventory-reservations-table table {
    min-width: 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
  }

  .admin-page #adminOrdersSection .admin-table thead,
  .admin-page .inventory-table thead,
  .admin-page .inventory-reservations-table thead {
    display: none;
  }

  .admin-page #adminOrdersSection #ordersTableBody,
  .admin-page #inventoryTableBody,
  .admin-page #upcomingReservationsBody {
    display: grid;
    gap: 10px;
  }

  .admin-page #adminOrdersSection #ordersTableBody tr,
  .admin-page #inventoryTableBody tr,
  .admin-page #upcomingReservationsBody tr {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(31, 26, 23, 0.06);
  }

  .admin-page #adminOrdersSection #ordersTableBody td,
  .admin-page #inventoryTableBody td,
  .admin-page #upcomingReservationsBody td {
    display: grid;
    grid-template-columns: minmax(88px, 36%) minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    padding: 0;
    border-bottom: 0;
    min-width: 0;
  }

  .admin-page #adminOrdersSection #ordersTableBody td[colspan],
  .admin-page #inventoryTableBody td[colspan],
  .admin-page #upcomingReservationsBody td[colspan] {
    display: block;
    text-align: center;
    padding: 14px 10px !important;
  }

  .admin-page #adminOrdersSection #ordersTableBody td::before,
  .admin-page #inventoryTableBody td::before,
  .admin-page #upcomingReservationsBody td::before {
    color: var(--text-soft);
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.4;
  }

  .admin-page #adminOrdersSection #ordersTableBody td:nth-child(1)::before { content: "Order"; }
  .admin-page #adminOrdersSection #ordersTableBody td:nth-child(2)::before { content: "Customer"; }
  .admin-page #adminOrdersSection #ordersTableBody td:nth-child(3)::before { content: "Date"; }
  .admin-page #adminOrdersSection #ordersTableBody td:nth-child(4)::before { content: "Days"; }
  .admin-page #adminOrdersSection #ordersTableBody td:nth-child(5)::before { content: "Time"; }
  .admin-page #adminOrdersSection #ordersTableBody td:nth-child(6)::before { content: "Location"; }
  .admin-page #adminOrdersSection #ordersTableBody td:nth-child(7)::before { content: "Status"; }
  .admin-page #adminOrdersSection #ordersTableBody td:nth-child(8)::before { content: "Priority"; }
  .admin-page #adminOrdersSection #ordersTableBody td:nth-child(9)::before { content: "Actions"; }

  .admin-page #inventoryTableBody td:nth-child(1)::before { content: "Product"; }
  .admin-page #inventoryTableBody td:nth-child(2)::before { content: "Variant"; }
  .admin-page #inventoryTableBody td:nth-child(3)::before { content: "Category"; }
  .admin-page #inventoryTableBody td:nth-child(4)::before { content: "Source"; }
  .admin-page #inventoryTableBody td:nth-child(5)::before { content: "Total"; }
  .admin-page #inventoryTableBody td:nth-child(6)::before { content: "Available"; }
  .admin-page #inventoryTableBody td:nth-child(7)::before { content: "Reserved"; }
  .admin-page #inventoryTableBody td:nth-child(8)::before { content: "Damaged"; }
  .admin-page #inventoryTableBody td:nth-child(9)::before { content: "Low Stock"; }
  .admin-page #inventoryTableBody td:nth-child(10)::before { content: "Status"; }
  .admin-page #inventoryTableBody td:nth-child(11)::before { content: "Actions"; }

  .admin-page #upcomingReservationsBody td:nth-child(1)::before { content: "Date"; }
  .admin-page #upcomingReservationsBody td:nth-child(2)::before { content: "Order"; }
  .admin-page #upcomingReservationsBody td:nth-child(3)::before { content: "Customer"; }
  .admin-page #upcomingReservationsBody td:nth-child(4)::before { content: "Item"; }
  .admin-page #upcomingReservationsBody td:nth-child(5)::before { content: "Quantity"; }
  .admin-page #upcomingReservationsBody td:nth-child(6)::before { content: "Status"; }

  .admin-page #adminOrdersSection #ordersTableBody .action-buttons {
    width: 100%;
    gap: 8px;
  }

  .admin-page #adminOrdersSection #ordersTableBody .action-buttons .btn,
  .admin-page #inventoryTableBody .inventory-row-actions .btn {
    width: 100%;
    min-height: 42px;
  }

  .admin-page #inventoryTableBody .inventory-row-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .admin-page #adminOrdersSection #ordersTableBody select,
  .admin-page #inventoryTableBody select {
    width: 100%;
    min-height: 42px;
  }

  .admin-page #adminOrdersSection #ordersTableBody td:nth-child(6),
  .admin-page #adminOrdersSection #ordersTableBody td:nth-child(9),
  .admin-page #inventoryTableBody td:nth-child(1),
  .admin-page #upcomingReservationsBody td:nth-child(4) {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .admin-page #adminOrdersSection #ordersTableBody td:nth-child(6)::before,
  .admin-page #adminOrdersSection #ordersTableBody td:nth-child(9)::before,
  .admin-page #inventoryTableBody td:nth-child(1)::before,
  .admin-page #upcomingReservationsBody td:nth-child(4)::before {
    margin-bottom: 2px;
  }

  .admin-page .inventory-cell-number {
    text-align: left;
  }

  .admin-page .inventory-source-pill,
  .admin-page .inventory-status-pill {
    justify-self: start;
  }

  .admin-page #adminOrdersSection .pagination {
    gap: 10px;
    flex-wrap: wrap;
  }

  .admin-page #adminOrdersSection .pagination .btn {
    flex: 1 1 140px;
    min-height: 42px;
  }

  .admin-page #orderModal,
  .admin-page #driverModal,
  .admin-page #driverPerformanceModal,
  .admin-page #editOrderModal,
  .admin-page #createOrderModal,
  .admin-page #quoteModal,
  .admin-page #inventoryModal {
    padding: 10px;
    align-items: flex-start;
  }

  .admin-page #orderModal .modal,
  .admin-page #driverModal .modal,
  .admin-page #driverPerformanceModal .modal,
  .admin-page #editOrderModal .modal,
  .admin-page #createOrderModal .modal,
  .admin-page #quoteModal .modal,
  .admin-page #inventoryModal .modal {
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - 20px);
    border-radius: 16px;
  }

  .admin-page #orderModal .modal-content,
  .admin-page #driverModal .modal-content,
  .admin-page #driverPerformanceModal .modal-content,
  .admin-page #editOrderModal .modal-content,
  .admin-page #createOrderModal .modal-content,
  .admin-page #quoteModal .modal-content,
  .admin-page #inventoryModal .modal-content {
    padding: 16px;
    max-height: calc(100dvh - 20px);
  }

  .admin-page #orderModal .modal-close,
  .admin-page #driverModal .modal-close,
  .admin-page #driverPerformanceModal .modal-close,
  .admin-page #editOrderModal .modal-close,
  .admin-page #createOrderModal .modal-close,
  .admin-page #quoteModal .modal-close,
  .admin-page #inventoryModal .modal-close {
    width: 42px;
    height: 42px;
    top: 10px;
    right: 10px;
  }

  .admin-page #editOrderModal .modal-grid,
  .admin-page #createOrderModal .modal-grid,
  .admin-page #inventoryModal .modal-grid {
    margin-top: 10px !important;
  }

  .admin-page .inventory-damage-actions {
    grid-template-columns: 1fr;
  }

  .admin-page .inventory-damage-actions .btn,
  .admin-page .modal-actions .btn,
  .admin-page .quote-builder-actions .btn {
    width: 100%;
    min-height: 44px;
  }
}

@media (max-width: 430px) {
  .admin-page .admin-sidebar-link {
    padding: 9px 12px;
    font-size: 0.86rem;
  }

  .admin-page #adminOrdersSection #ordersTableBody td,
  .admin-page #inventoryTableBody td,
  .admin-page #upcomingReservationsBody td {
    grid-template-columns: 1fr;
  }

  .admin-page #adminOrdersSection #ordersTableBody td::before,
  .admin-page #inventoryTableBody td::before,
  .admin-page #upcomingReservationsBody td::before {
    margin-bottom: 2px;
  }

  .admin-page #inventoryTableBody .inventory-row-actions {
    grid-template-columns: 1fr;
  }
}

/* Driver Mobile UX Refinements */
@media (max-width: 1024px) {
  .driver-dashboard-page {
    overflow-x: hidden;
  }

  /* Keep the mobile dashboard stacked; desktop sidebar sizing causes blank space on phones. */
  .driver-dashboard-page .driver-dashboard-layout {
    display: block;
  }

  .driver-dashboard-page .driver-dashboard-main {
    padding-top: 24px;
  }

  .driver-dashboard-page .driver-sidebar {
    position: sticky;
    top: calc((var(--header-height, 72px)) + 8px);
    z-index: 30;
    width: 100%;
    height: auto;
    left: auto;
    right: auto;
    padding: 0 0 12px;
  }

  .driver-dashboard-page .driver-dashboard-content {
    width: 100%;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
  }

  .driver-dashboard-page[dir="rtl"] .driver-sidebar {
    left: auto;
    right: auto;
  }

  .driver-dashboard-page[dir="rtl"] .driver-dashboard-content {
    margin-left: 0;
    margin-right: 0;
  }

  .driver-dashboard-page .driver-dashboard-content > .container {
    width: min(100% - 24px, 980px);
  }

  .driver-dashboard-page .driver-sidebar-panel {
    position: static;
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 12px;
    border-radius: 16px;
  }

  .driver-dashboard-page .driver-sidebar-panel .section-kicker,
  .driver-dashboard-page .driver-sidebar-group-title {
    display: none;
  }

  .driver-dashboard-page .driver-sidebar-nav {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scroll-padding-inline: 8px;
    scrollbar-width: thin;
  }

  .driver-dashboard-page .driver-sidebar-group {
    display: contents;
  }

  .driver-dashboard-page .driver-sidebar-link {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 999px;
    white-space: nowrap;
    font-size: 0.9rem;
  }

  .driver-dashboard-page .driver-section-anchor {
    scroll-margin-top: 128px;
  }

  .driver-dashboard-page .driver-collection-shell,
  .driver-dashboard-page .driver-order-card,
  .driver-dashboard-page .driver-empty-state {
    border-radius: 18px;
  }
}

@media (max-width: 760px) {
  .driver-dashboard-page .driver-dashboard-content > .container {
    width: min(100% - 16px, 760px);
  }

  .driver-dashboard-page .driver-navbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .driver-dashboard-page .driver-navbar .brand {
    max-width: 100%;
  }

  .driver-dashboard-page .driver-header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
  }

  .driver-dashboard-page .driver-language-control--header {
    width: 100%;
  }

  .driver-dashboard-page .driver-language-control select {
    min-height: 44px;
    font-size: 0.92rem;
  }

  .driver-dashboard-page .driver-logout-btn {
    min-height: 44px;
    padding-inline: 14px;
  }

  .driver-dashboard-page .driver-sidebar {
    top: calc((var(--header-height, 72px)) + 4px);
    padding-bottom: 10px;
  }

  .driver-dashboard-page .driver-summary-strip {
    gap: 10px;
    padding: 14px 14px;
    border-radius: 16px;
  }

  .driver-dashboard-page #driverSummaryText {
    display: none;
  }

  .driver-dashboard-page .driver-summary-strip-mobile {
    display: grid;
    width: 100%;
    margin-bottom: 12px;
  }

  .driver-dashboard-page .driver-summary-stat {
    padding: 12px 12px;
    border-radius: 14px;
  }

  .driver-dashboard-page .driver-summary-stat strong {
    font-size: 1.2rem;
  }

  .driver-dashboard-page .driver-dashboard-message {
    padding: 13px 14px;
    border-radius: 14px;
    margin-bottom: 14px;
  }

  .driver-dashboard-page .driver-section + .driver-section {
    margin-top: 20px;
  }

  .driver-dashboard-page .driver-section-head {
    gap: 10px;
    margin-bottom: 12px;
  }

  .driver-dashboard-page .driver-section-head .section-title {
    font-size: clamp(1.3rem, 7vw, 1.85rem);
  }

  .driver-dashboard-page .driver-order-card,
  .driver-dashboard-page .driver-empty-state {
    padding: 16px;
    border-radius: 16px;
  }

  .driver-dashboard-page .driver-order-top {
    margin-bottom: 12px;
    gap: 10px;
  }

  .driver-dashboard-page .driver-order-top h3 {
    font-size: 1.15rem;
    line-height: 1.25;
  }

  .driver-dashboard-page .driver-order-kicker {
    margin-bottom: 6px;
    font-size: 0.72rem;
    letter-spacing: 1.1px;
  }

  .driver-dashboard-page .driver-order-badge {
    align-self: flex-start;
    min-height: 32px;
    padding: 6px 10px;
    font-size: 0.74rem;
  }

  .driver-dashboard-page .driver-order-priority {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 14px;
  }

  .driver-dashboard-page .driver-priority-badge {
    min-height: 34px;
    font-size: 0.82rem;
  }

  .driver-dashboard-page .driver-order-meta {
    gap: 10px;
    margin-bottom: 12px;
  }

  .driver-dashboard-page .driver-order-meta > div {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(167, 134, 72, 0.12);
    background: #fbf8f3;
  }

  .driver-dashboard-page .driver-order-meta span {
    margin-bottom: 4px;
    font-size: 0.82rem;
  }

  .driver-dashboard-page .driver-order-meta strong {
    font-size: 0.95rem;
    line-height: 1.35;
  }

  .driver-dashboard-page .driver-order-items {
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 14px;
  }

  .driver-dashboard-page .driver-order-items > span {
    margin-bottom: 8px;
    font-size: 0.84rem;
  }

  .driver-dashboard-page .driver-order-items-list li {
    padding: 9px 10px;
    border-radius: 11px;
    font-size: 0.92rem;
  }

  .driver-dashboard-page .driver-order-actions {
    gap: 10px;
  }

  .driver-dashboard-page .driver-action-row {
    gap: 8px;
  }

  .driver-dashboard-page .driver-action-row-contact {
    grid-template-columns: 1fr;
  }

  .driver-dashboard-page .driver-order-actions .btn,
  .driver-dashboard-page .driver-action-link,
  .driver-dashboard-page .driver-live-state,
  .driver-dashboard-page .driver-completed-state {
    min-height: 48px;
    border-radius: 12px;
    font-size: 0.92rem;
    padding-inline: 12px;
  }

  .driver-dashboard-page .share-location-btn.is-highlighted {
    min-height: 52px;
    font-size: 0.95rem;
  }

  .driver-dashboard-page .driver-location-warning,
  .driver-dashboard-page .driver-location-state {
    min-height: 0;
    padding: 12px 14px;
    border-radius: 14px;
  }

  .driver-dashboard-page .driver-location-warning strong,
  .driver-dashboard-page .driver-location-state strong {
    font-size: 0.95rem;
  }

  .driver-dashboard-page .driver-location-warning p,
  .driver-dashboard-page .driver-location-state p {
    font-size: 0.87rem;
  }

  .driver-dashboard-page .driver-collection-shell {
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
  }

  .driver-dashboard-page .driver-collection-form {
    gap: 10px;
  }

  .driver-dashboard-page .driver-collection-control input {
    min-height: 46px;
    padding: 10px 12px;
    border-radius: 12px;
  }

  .driver-dashboard-page .driver-collection-form .btn {
    width: 100%;
    min-width: 0;
    min-height: 46px;
  }

  .driver-dashboard-page .driver-collection-state {
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
  }

  .driver-dashboard-page .driver-collection-state strong {
    font-size: 1rem;
  }

  .driver-dashboard-page .driver-collection-state p {
    font-size: 0.92rem;
  }

  .driver-dashboard-page .driver-collection-state-head h3 {
    margin: 0 0 6px;
    font-size: 1.15rem;
  }

  .driver-dashboard-page .driver-collection-summary-grid {
    gap: 10px;
  }

  .driver-dashboard-page .driver-collection-summary-grid > div {
    padding: 11px 12px;
    border-radius: 12px;
  }

  .driver-dashboard-page .driver-collection-summary-grid span {
    font-size: 0.76rem;
  }

  .driver-dashboard-page .driver-collection-summary-grid strong {
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .driver-dashboard-page .driver-completed-grid .driver-order-card {
    padding: 14px;
    gap: 8px;
  }

  .driver-dashboard-page .driver-completed-grid .driver-order-top {
    margin-bottom: 8px;
  }

  .driver-dashboard-page .driver-completed-grid .driver-order-top h3 {
    font-size: 1.06rem;
  }

  .driver-dashboard-page .driver-completed-grid .driver-order-priority {
    display: none;
  }

  .driver-dashboard-page .driver-completed-meta {
    gap: 6px;
    padding: 10px 11px;
    border-radius: 12px;
  }

  .driver-dashboard-page .driver-completed-meta span {
    font-size: 0.82rem;
  }

  .driver-dashboard-page .driver-completed-meta strong {
    font-size: 0.92rem;
  }

  .driver-dashboard-page .driver-pagination {
    gap: 8px;
  }

  .driver-dashboard-page .driver-pagination .btn {
    min-height: 42px;
    padding: 10px 12px;
    font-size: 0.88rem;
  }

  .driver-dashboard-page .driver-pagination-info {
    font-size: 0.84rem;
  }

  .driver-dashboard-page .driver-support-card {
    gap: 12px;
    padding: 16px;
    border-radius: 16px;
  }

  .driver-dashboard-page .driver-support-copy .section-title {
    font-size: clamp(1.25rem, 6.6vw, 1.6rem);
    margin-bottom: 6px;
  }

  .driver-dashboard-page .driver-support-copy p {
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .driver-dashboard-page .driver-support-link {
    min-height: 46px;
    border-radius: 12px;
    font-size: 0.92rem;
  }
}

@media (max-width: 430px) {
  .driver-dashboard-page .driver-header-actions {
    grid-template-columns: 1fr;
  }

  .driver-dashboard-page .driver-logout-btn {
    width: 100%;
  }

  .driver-dashboard-page .driver-order-top {
    flex-direction: column;
    align-items: flex-start;
  }
}
