﻿@import url('https://fonts.googleapis.com/css?family=Noto%20Sans%20Oriya:700|Noto%20Sans%20Oriya:400');

/* ── Global responsive base rules ── */
img, svg, video {
  max-width: 100%;
  height: auto;
}

/* Dropdown notification badge for Notificaciones */
.dropdown-notif-badge {
  display: none;
  background: var(--status-danger);
  color: var(--background-50);
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  margin-left: auto;
}
@media (max-width: 600px) {
  .load-route, .vehicle-route {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px;
  }
  .route-point {
    align-items: flex-start !important;
    width: 100%;
  }
  .route-arrow {
    align-self: center;
    margin: 8px 0;
    transform: rotate(90deg);
  }
}
/* Hide floating autocomplete tooltip/panel on right */
.autocomplete-tooltip-panel, .autocomplete-right-panel {
  display: none !important;
}
/* Animated gradient background — applies to all pages */
body {
  background: var(--background);
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: -50%;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  will-change: transform;
}

body::before {
  width: 140%;
  height: 140%;
  background:
    radial-gradient(700px circle at 15% 20%, rgba(var(--secondary-500-rgb), 0.30), transparent 55%),
    radial-gradient(550px circle at 80% 12%, rgba(var(--accent-500-rgb), 0.24), transparent 50%),
    radial-gradient(600px circle at 55% 65%, rgba(var(--primary-500-rgb), 0.20), transparent 55%),
    radial-gradient(500px circle at 10% 80%, rgba(var(--accent-500-rgb), 0.18), transparent 50%),
    radial-gradient(650px circle at 85% 75%, rgba(var(--secondary-500-rgb), 0.22), transparent 55%);
  animation: blobDrift1 20s ease-in-out infinite;
}

body::after {
  width: 135%;
  height: 135%;
  background:
    radial-gradient(600px circle at 75% 40%, rgba(var(--primary-500-rgb), 0.22), transparent 52%),
    radial-gradient(550px circle at 30% 50%, rgba(var(--secondary-500-rgb), 0.25), transparent 55%),
    radial-gradient(500px circle at 60% 15%, rgba(var(--accent-500-rgb), 0.18), transparent 50%),
    radial-gradient(650px circle at 20% 90%, rgba(var(--secondary-500-rgb), 0.20), transparent 55%),
    radial-gradient(500px circle at 90% 85%, rgba(var(--primary-500-rgb), 0.16), transparent 52%);
  animation: blobDrift2 25s ease-in-out infinite;
}

@keyframes blobDrift1 {
  0%   { transform: translate(0, 0) scale(1); }
  25%  { transform: translate(3%, -4%) scale(1.04); }
  50%  { transform: translate(-2%, 3%) scale(0.97); }
  75%  { transform: translate(4%, 2%) scale(1.03); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes blobDrift2 {
  0%   { transform: translate(0, 0) scale(1); }
  25%  { transform: translate(-4%, 3%) scale(1.03); }
  50%  { transform: translate(3%, -2%) scale(0.96); }
  75%  { transform: translate(-2%, -3%) scale(1.05); }
  100% { transform: translate(0, 0) scale(1); }
}

/* Ensure page content sits above the gradient */
body > section,
body > div,
body > main,
body > footer,
body > header,
body > nav {
  position: relative;
  z-index: 1;
}

/* CTA button below hero cards */
.cta-hero-btn {
  display: inline-block;
  margin-top: 30px;
  padding: 14px 40px;
  background: var(--accent-200);
  color: var(--background-800);
  font-size: 18px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(var(--accent-500-rgb), 0.3);
}

.cta-hero-btn:hover {
  background: var(--accent-300);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--accent-500-rgb), 0.4);
}

/* Index page: remove per-section backgrounds so body gradient flows through */
.home-page-bg .features,
.home-page-bg .how-it-works,
.home-page-bg .about-hero {
  background: none;
}

.hero {
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  background: var(--gradient-hero);
  color: var(--text);
  border: 1px solid var(--background-200);
}
/* Auth loading spinner animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hero h1 {
  font-size: 48px;
  color: var(--text);
  font-weight: bold;
}

.subtitle {
  font-size: 32px;
  margin-bottom: 40px;
  color: var(--text-500);
}

@keyframes tracking-in-expand {
  0% {
    letter-spacing: -0.3em;
    opacity: 0;
  }
  40% {
    opacity: 0.6;
  }
  100% {
    letter-spacing: normal;
    opacity: 1;
  }
}

.tracking-in-expand {
  animation: tracking-in-expand 0.7s ease both;
}

@keyframes tracking-in-contract-bck {
  0% {
    letter-spacing: 0.3em;
    transform: translateZ(100px);
    opacity: 0;
  }
  40% {
    opacity: 0.6;
  }
  100% {
    letter-spacing: normal;
    transform: translateZ(0);
    opacity: 1;
  }
}

.tracking-in-contract-bck {
  animation: tracking-in-contract-bck 0.7s ease both;
}

@keyframes tracking-in-contract {
  0% {
    letter-spacing: 1em;
    opacity: 0;
  }
  40% {
    opacity: 0.6;
  }
  100% {
    letter-spacing: normal;
    opacity: 1;
  }
}

.tracking-in-contract {
  animation: tracking-in-contract 0.8s ease both;
}

@keyframes fade-in-up {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fade-in-up 0.7s ease both;
}

.animate-on-scroll {
  opacity: 0;
}

.animate-on-scroll.animated {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .tracking-in-expand,
  .tracking-in-contract-bck,
  .tracking-in-contract {
    animation: none !important;
  }
  .animate-on-scroll {
    opacity: 1;
  }
}

.card-container {
  display: flex;
  gap: 30px;
  max-width: 900px;
  flex-wrap: wrap;
  justify-content: center;
}

.card {
  background: var(--gradient-panel);
  padding: 30px;
  width: 300px;
  flex: 1 1 280px;
  max-width: 360px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(var(--text-950-rgb), 0.1);
  border-left: 5px solid var(--primary-500);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(var(--status-success-rgb), 0.2);
}

.card h2 {
  margin-bottom: 15px;
  color: var(--text) !important;
  font-size: 28px;
}

.card p {
  color: var(--text-500) !important;
  font-size: 18px;
  line-height: 1.6;
}

:root[data-theme="dark"] .card h2 {
  color: #ffffff !important;
}

:root[data-theme="dark"] .card p {
  color: #d4d4d4 !important;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
}

h1,
h2,
h3,
h4,
h5,
.dashboard-header h1,
.hero h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.2px;
}

html {
  font-size: 100%;
  overflow-x: hidden;
}

h1 {
  font-size: 4.210rem;
}

h2 {
  font-size: 3.158rem;
}

h3 {
  font-size: 2.369rem;
}

h4 {
  font-size: 1.777rem;
}

h5 {
  font-size: 1.333rem;
}

small {
  font-size: 0.750rem;
}

#navbar-container {
  position: sticky;
  top: 0;
  z-index: 100;
}

#auth-container {
  visibility: hidden;
}

#login-btn {
  display: none;
}

#navbar-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background-color: var(--primary-50);
  box-shadow: 0 2px 10px rgba(var(--text-950-rgb), 0.1);
  gap: 18px;
  position: relative;
}

:root[data-theme="dark"] .navbar {
  background-color: var(--background-100);
}

/* ── Hamburger Button ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
  -webkit-tap-highlight-color: transparent;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text-900);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

:root[data-theme="dark"] .hamburger-line {
  background: var(--text-100, #e2e8f0);
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    padding: 12px 15px;
    gap: 8px;
  }

  .hamburger {
    display: flex;
    order: 2;
    margin-left: auto;
  }

  .nav-links {
    display: none !important;
    flex-direction: column;
    width: 100%;
    order: 3;
    gap: 2px;
    padding: 10px 0 6px;
    border-top: 1px solid var(--background-200, #e5e5e5);
    margin-top: 4px;
  }

  .nav-links.open {
    display: flex !important;
  }

  .nav-links > li {
    width: 100%;
  }

  .nav-links > li > a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 15px;
    background: transparent !important;
    box-shadow: none !important;
  }

  .nav-links > li > a:hover {
    background: var(--background-100, #f0f0f0) !important;
  }

  .nav-links > li > a.nav-active {
    background: var(--background-100, #f0f0f0) !important;
    color: var(--primary-500);
    font-weight: 600;
  }

  :root[data-theme="dark"] .nav-links > li > a:hover {
    background: var(--background-200, #2a2a2a) !important;
  }

  :root[data-theme="dark"] .nav-links > li > a.nav-active {
    background: var(--background-200, #2a2a2a) !important;
    color: var(--accent-200);
    font-weight: 600;
  }

  #auth-container {
    width: 100%;
    margin-left: 0;
    padding: 6px 0 4px;
    border-top: 1px solid var(--background-200, #e5e5e5);
  }

  #auth-container .btn-login {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 15px;
  }

  .user-menu {
    margin-left: 0;
  }

  .logo {
    order: 1;
  }

  .logo-img {
    height: 28px;
  }
}
:root[data-theme="dark"] .dashboard-header h1,
:root[data-theme="dark"] .dashboard-header p {
  color: #ffffff;
}

:root[data-theme="dark"] .login-card {
  background: var(--background-100);
}

:root[data-theme="dark"] .login-card h1,
:root[data-theme="dark"] .login-info h2 {
  color: var(--text);
}

:root[data-theme="dark"] .login-info p {
  color: #d4d4d4;
}

:root[data-theme="dark"] .benefits-list li {
  color: #d4d4d4;
  background-color: var(--background-200);
  border-left-color: var(--primary-500);
}

.logo {
  color: var(--background-800);
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 32px;
  width: auto;
  max-width: 500px;
  object-fit: contain;
}

.logo:hover {
  opacity: 0.8;
}

/* Login Button */
.btn-login {
  background-color: var(--accent-200);
  color: var(--background-800) !important;
  padding: 8px 20px;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.2s;
  font-weight: 600;
}

.btn-login:hover {
  background-color: var(--accent-300);
}

:root[data-theme="dark"] .btn-login {
  color: #1a1a1a !important;
  background-color: var(--accent-200);
}

:root[data-theme="dark"] .nav-links > li > a.btn-login.nav-active {
  color: #1a1a1a !important;
  background-color: var(--accent-200);
  background: var(--accent-200);
  box-shadow: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: nowrap;
  margin-left: 8px;
}

.nav-links > li > a {
  color: var(--background-800);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 6px 14px;
  border-radius: 8px;
  transition: color 0.3s ease, background 0.4s ease, box-shadow 0.4s ease;
  background: transparent;
}

.nav-links > li > a:hover {
  color: var(--primary-500);
  text-decoration: none;
  background: radial-gradient(ellipse at center, rgba(255,209,80,0.28) 0%, rgba(255,224,128,0.12) 60%, transparent 100%);
  box-shadow: 0 0 18px 4px rgba(255,209,80,0.15), inset 0 0 12px rgba(255,224,128,0.10);
}

:root[data-theme="dark"] .nav-links > li > a:hover {
  color: var(--accent-200);
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.04) 60%, transparent 100%);
  box-shadow: 0 0 20px 5px rgba(255,255,255,0.08), inset 0 0 14px rgba(255,255,255,0.06);
}

/* Active nav link (current page) */
.nav-links > li > a.nav-active {
  color: var(--primary-500);
  background: radial-gradient(ellipse at center, rgba(255,209,80,0.32) 0%, rgba(255,224,128,0.14) 60%, transparent 100%);
  box-shadow: 0 0 16px 3px rgba(255,209,80,0.18), inset 0 0 10px rgba(255,224,128,0.12);
  font-weight: 600;
}

:root[data-theme="dark"] .nav-links > li > a.nav-active {
  color: var(--accent-200);
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.05) 60%, transparent 100%);
  box-shadow: 0 0 18px 4px rgba(255,255,255,0.10), inset 0 0 12px rgba(255,255,255,0.07);
  font-weight: 600;
}

/* Keep other nav-links a styles (dropdown etc.) */
.nav-links a {
  text-decoration: none;
}

/* User Menu */
#auth-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  flex-shrink: 0;
  margin-left: auto;
}

.user-circle {
  background-color: var(--primary);
  color: var(--background);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
  position: relative;
  z-index: 1001;
  flex-shrink: 0;
}

.notif-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--status-warning);
  color: var(--background-800);
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  min-width: 18px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(var(--text-950-rgb), 0.2);
}

.user-circle:hover {
  background-color: var(--secondary);
}

.dropdown-menu {
  position: fixed;
  background-color: var(--text-50);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(var(--text-950-rgb), 0.15);
  width: 200px;
  max-width: 90vw;
  z-index: 10000;
  display: none;
  top: auto;
  left: auto;
  right: auto;
  bottom: auto;
  box-sizing: border-box;
}

.dropdown-menu.active {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 14px 16px;
  color: var(--background-800) !important;
  text-decoration: none !important;
  transition: background-color 0.2s, color 0.2s;
  border: none;
  background: transparent;
  text-align: left;
  width: 100%;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  box-sizing: border-box;
  white-space: nowrap;
  opacity: 1;
}

.dropdown-item:hover {
  background-color: rgba(var(--secondary-500-rgb), 0.05);
  color: var(--primary-500) !important;
  text-decoration: none !important;
}

.dropdown-item:first-child {
  border-radius: 8px 8px 0 0;
}

.dropdown-item:last-child {
  border-radius: 0 0 8px 8px;
}

.dropdown-divider {
  height: 1px;
  background-color: var(--primary-500);
  margin: 8px 0;
}

.card {
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(var(--text-950-rgb), 0.15);
}

@keyframes bounce-left {
  0% {
    transform: translateX(-120px);
    animation-timing-function: ease-in;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  24% {
    opacity: 1;
  }
  40% {
    transform: translateX(-60px);
    animation-timing-function: ease-in;
  }
  65% {
    transform: translateX(-30px);
    animation-timing-function: ease-in;
  }
  82% {
    transform: translateX(-15px);
    animation-timing-function: ease-in;
  }
  93% {
    transform: translateX(-7px);
    animation-timing-function: ease-in;
  }
  25%,
  55%,
  75%,
  87%,
  98% {
    transform: translateX(0px);
    animation-timing-function: ease-out;
  }
  100% {
    transform: translateX(0px);
    animation-timing-function: ease-out;
    opacity: 1;
  }
}

@keyframes bounce-right {
  0% {
    transform: translateX(120px);
    animation-timing-function: ease-in;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  24% {
    opacity: 1;
  }
  40% {
    transform: translateX(60px);
    animation-timing-function: ease-in;
  }
  65% {
    transform: translateX(30px);
    animation-timing-function: ease-in;
  }
  82% {
    transform: translateX(15px);
    animation-timing-function: ease-in;
  }
  93% {
    transform: translateX(7px);
    animation-timing-function: ease-in;
  }
  25%,
  55%,
  75%,
  87%,
  98% {
    transform: translateX(0px);
    animation-timing-function: ease-out;
  }
  100% {
    transform: translateX(0px);
    animation-timing-function: ease-out;
    opacity: 1;
  }
}

.bounce-in-left {
  animation: bounce-left 0.6s ease-out;
}

.bounce-in-right {
  animation: bounce-right 0.6s ease-out;
}

@keyframes fadeInUpBig {
  0% {
    opacity: 0;
    transform: translate3d(0, 60px, 0);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

.fadeInUpBig {
  animation: fadeInUpBig 1.2s ease-out;
}

@keyframes flip-in-hor-top {
  0% {
    transform: rotateX(-80deg);
    opacity: 0;
  }
  100% {
    transform: rotateX(0);
    opacity: 1;
  }
}

.flipInHorTop {
  animation: flip-in-hor-top 0.6s ease-out;
}

/* Subscription Page Styles (uses .dashboard-page wrapper + .dashboard-header) */
.subscription-content {
  background-color: var(--background-50);
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(var(--text-950-rgb), 0.1);
}

.pricing-slider {
  margin-bottom: 40px;
}

.pricing-toggle {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 20px;
  background: var(--background-200);
  border-radius: 10px;
  padding: 4px;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-toggle-btn {
  flex: 1;
  padding: 10px 24px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  background: transparent;
  color: var(--text-600);
  transition: all 0.25s ease;
}

.pricing-toggle-btn.active {
  background: var(--background-800);
  color: var(--background-50);
  box-shadow: 0 2px 8px rgba(var(--text-950-rgb), 0.15);
}

.pricing-cards-track {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.pricing-card {
  text-align: center;
  background: var(--background-800);
  color: var(--background-50);
  padding: 30px;
  border-radius: 10px;
  display: none;
  animation: pricingFadeIn 0.35s ease;
  position: relative;
}

.pricing-card.active {
  display: block;
}

@keyframes pricingFadeIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

.pricing-card h2 {
  font-size: 24px;
  margin-bottom: 15px;
}

.pricing-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ff6b35, #f7c948);
  color: #fff;
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
  animation: badgePulse 2s ease-in-out infinite;
  will-change: transform, opacity;
  max-width: 100%;
  word-break: break-word;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.88; }
}

.price-savings {
  font-size: 14px;
  margin-top: 8px;
  opacity: 0.85;
  font-weight: 600;
}

.price {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 10px;
}

.price-description {
  font-size: 16px;
  opacity: 0.9;
}

.benefits-section {
  margin-bottom: 40px;
}

.benefits-section h2 {
  font-size: 28px;
  color: var(--background-800);
  margin-bottom: 15px;
}

.benefits-section > p {
  font-size: 16px;
  color: var(--background-800);
  margin-bottom: 20px;
}

.benefits-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.benefits-list li {
  font-size: 16px;
  color: var(--text-800);
  padding: 10px;
  background-color: var(--status-warning-soft);
  border-left: 4px solid var(--primary-500);
  padding-left: 15px;
  border-radius: 5px;
}

.requirements-section {
  margin-bottom: 40px;
}

.requirements-section h2 {
  font-size: 28px;
  color: var(--background-800);
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 3px solid var(--primary-500);
}

.requirements-section > p {
  font-size: 16px;
  color: var(--text-500);
  margin-bottom: 25px;
}

.requirement-item {
  background-color: var(--status-warning-soft);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  border-left: 5px solid var(--primary-500);
}

.requirement-item h3 {
  font-size: 18px;
  color: var(--background-800);
  margin-bottom: 8px;
}

.requirement-item p {
  font-size: 15px;
  color: var(--background-800);
  line-height: 1.5;
}

.action-section {
  text-align: center;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid var(--primary-500);
}

.action-section p {
  font-size: 16px;
  color: var(--background-800);
  margin-bottom: 25px;
}

.btn-subscribe {
  background: var(--secondary);
  color: var(--background);
  border: none;
  min-height: 44px;
  padding: 0 20px;
  font-size: 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-right: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-subscribe:hover {
  transform: translateY(-3px);
  background: var(--primary);
  box-shadow: 0 8px 20px rgba(var(--secondary-500-rgb), 0.25);
}

.btn-back {
  background-color: var(--background-100);
  color: var(--text);
  border: 1px solid var(--background-300);
  min-height: 44px;
  padding: 0 20px;
  font-size: 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-back:hover {
  background-color: var(--background-200);
}

@media (max-width: 768px) {
  .benefits-list {
    grid-template-columns: 1fr;
  }

  .subscription-page h1 {
    font-size: 32px;
  }

  .price {
    font-size: 36px;
  }

  .subscription-content {
    padding: 20px;
  }

  .btn-subscribe,
  .btn-back {
    display: block;
    width: 100%;
    margin-bottom: 10px;
  }

  .features {
    padding: 60px 20px;
  }

  .features h2 {
    font-size: 28px;
    margin-bottom: 40px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .feature-item {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .subscription-page h1 {
    font-size: 28px;
  }

  .subscription-page p {
    font-size: 15px;
  }

  .price {
    font-size: 32px;
  }

  .subscription-content {
    padding: 15px;
  }

  .features {
    padding: 40px 15px;
  }

  .features h2 {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .feature-item {
    padding: 18px;
  }

  .feature-item h3 {
    font-size: 16px;
  }

  .feature-item p {
    font-size: 13px;
  }
}

/* Features Section */
.features {
  padding: 80px 20px;
  background: var(--gradient-section);
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.features h2 {
  font-size: 44px;
  margin-bottom: 50px;
  color: var(--text);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.feature-item {
  background: var(--gradient-panel);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(var(--text-950-rgb), 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(var(--status-success-rgb), 0.15);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.feature-item h3 {
  font-size: 20px;
  color: var(--text-900);
  margin-bottom: 10px;
}

.feature-item p {
  color: var(--text-500);
  font-size: 14px;
  line-height: 1.6;
}

:root[data-theme="dark"] .feature-item h3 {
  color: #ffffff;
}

:root[data-theme="dark"] .feature-item p {
  color: #d4d4d4;
}

/* How It Works Section */
.how-it-works {
  padding: 80px 20px;
  background: var(--gradient-section);
  color: var(--text);
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.how-it-works h2 {
  font-size: 44px;
  margin-bottom: 50px;
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.step {
  background: var(--gradient-panel);
  padding: 30px;
  border-radius: 10px;
  border: 2px solid var(--background-300);
  transition: transform 0.3s;
}

.step:hover {
  transform: translateY(-5px);
  background: var(--background-100);
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--status-warning);
  color: var(--background-800);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  margin: 0 auto 15px;
}

.step h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.step p {
  font-size: 14px;
  opacity: 0.9;
}

/* Footer */
.footer {
  background: var(--gradient-footer);
  color: var(--background);
  padding-top: 50px;
  margin-top: 80px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.footer-section h4 {
  color: var(--background);
  font-size: 16px;
  margin-bottom: 15px;
}

.footer-section p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--background);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
  font-size: 13px;
}

.footer-section a {
  color: var(--background);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: var(--primary-500);
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.social-links a {
  display: inline-block;
  width: fit-content;
}

.footer-bottom {
  background-color: var(--primary-50);
  text-align: center;
  padding: 20px;
  border-top: 1px solid var(--background-300);
  font-size: 12px;
  color: var(--text-600);
}

:root[data-theme="dark"] .footer-bottom {
  background-color: var(--background-100);
  border-top-color: var(--background-300);
  color: var(--text-400);
}

:root[data-theme="dark"] .footer {
  color: #e0e0e0;
}

:root[data-theme="dark"] .footer-section h4 {
  color: #ffffff;
}

:root[data-theme="dark"] .footer-section p,
:root[data-theme="dark"] .footer-section a,
:root[data-theme="dark"] .footer-section ul li {
  color: #d4d4d4;
}

:root[data-theme="dark"] .footer-section a:hover {
  color: #ffffff;
}

@media (max-width: 768px) {
  .features h2,
  .how-it-works h2 {
    font-size: 28px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-container {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* About Us Page */
.about-hero {
  background: var(--gradient-hero);
  color: var(--text);
  padding: 100px 20px;
  text-align: center;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  overflow: hidden;
}

.about-hero.home-hero {
  padding: 180px 20px 220px;
  min-height: 100vh;
}

.about-hero h1 {
  font-size: clamp(28px, 10vw, 90px) !important;
  margin-bottom: 20px;
  word-break: break-word;
  overflow-wrap: break-word;
}

.about-hero.home-hero h1 {
  font-size: clamp(28px, 10vw, 90px) !important;
}

.about-hero p {
  font-size: 18px;
  opacity: 0.95;
  max-width: 600px;
  color: var(--text);
}

.about-hero.home-hero .subtitle {
  font-size: clamp(16px, 5vw, 32px) !important;
}

.about-content {
  padding: 80px 20px;
  background-color: transparent;
}

.page-header + .about-content {
  padding-top: 8px;
}

.about-container {
  max-width: 900px;
  margin: 0 auto;
}

.about-section {
  background: var(--background-50);
  padding: 40px;
  margin-bottom: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(var(--text-950-rgb), 0.08);
  border-left: 5px solid var(--primary-500);
}

.about-section h2 {
  font-size: 28px;
  color: var(--text-900);
  margin-bottom: 20px;
}

.about-section p {
  font-size: 16px;
  color: var(--text-500);
  line-height: 1.8;
  margin-bottom: 15px;
}

.about-section strong {
  color: var(--text-900);
  font-weight: 600;
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.about-list li {
  font-size: 16px;
  color: var(--text-500);
  padding: 10px 0;
  padding-left: 25px;
  position: relative;
  line-height: 1.6;
}

.about-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-500);
  font-weight: bold;
  font-size: 18px;
}

/* Values Section */
.values-section {
  padding: 80px 20px;
  background: var(--gradient-section);
  text-align: center;
}

.values-section h2 {
  font-size: 36px;
  color: var(--text-900);
  margin-bottom: 50px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.value-item {
  background: var(--gradient-panel);
  padding: 30px;
  border-radius: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.value-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(var(--status-success-rgb), 0.15);
}

.value-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.value-item h3 {
  font-size: 20px;
  color: var(--text-900);
  margin-bottom: 10px;
}

.value-item p {
  font-size: 14px;
  color: var(--text-500);
  line-height: 1.6;
}

:root[data-theme="dark"] .about-section h2,
:root[data-theme="dark"] .about-section strong,
:root[data-theme="dark"] .values-section h2,
:root[data-theme="dark"] .value-item h3 {
  color: #ffffff;
}

:root[data-theme="dark"] .about-section p,
:root[data-theme="dark"] .about-list li,
:root[data-theme="dark"] .value-item p {
  color: #d4d4d4;
}

/* Login Page */
.login-page {
  min-height: calc(100vh - 60px);
  padding: 40px 20px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  max-width: 1200px;
  width: 100%;
  align-items: center;
}

.login-card {
  background: var(--background-50);
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(var(--text-950-rgb), 0.1);
}

.login-card h1 {
  font-size: 32px;
  color: var(--background-800);
  margin-bottom: 10px;
  font-weight: bold;
}

.login-subtitle {
  font-size: 16px;
  color: var(--text-500);
  margin-bottom: 30px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 25px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-900);
}

.form-group input {
  padding: 12px;
  border: 2px solid var(--primary-500);
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s;
  font-family: inherit;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-500);
}


.form-select {
  padding: 12px 16px;
  border: 2px solid var(--primary-500);
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
  background-color: var(--background-50);
  color: var(--text-900);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(var(--text-950-rgb), 0.04);
}

.form-select:focus,
.form-select:hover {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 2px var(--primary-500)22, 0 2px 8px rgba(var(--text-950-rgb), 0.06);
  background-color: var(--primary-50);
}

.form-select option {
  padding: 24px 18px;
  background: var(--background-50);
  border-bottom: 1px solid var(--background-50);
}

.form-select option:hover, .form-select option:focus, .form-select option:checked {
  background: var(--primary-50) !important;
  color: var(--primary-500) !important;
}


.form-select:focus,
.form-select:hover {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 2px var(--primary-500)22;
}

.form-select option {
  padding: 8px;
  color: var(--text-900);
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-checkbox input {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.form-checkbox label {
  font-size: 14px;
  color: var(--text-500);
  cursor: pointer;
  margin: 0;
}

.btn-login-submit {
  background: var(--secondary);
  color: var(--background);
  border: none;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-login-submit:hover {
  transform: translateY(-2px);
  background: var(--primary);
  box-shadow: 0 8px 20px rgba(var(--secondary-500-rgb), 0.25);
}

/* Floating Theme Toggle */
.theme-toggle-float {
  position: fixed;
  bottom: 18px;
  left: 18px;
  z-index: 11000;
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--background-100);
  border: 1px solid var(--background-300);
  border-radius: 999px;
  padding: 3px 6px;
  box-shadow: 0 2px 10px rgba(var(--text-950-rgb), 0.10);
  animation: themeBubbleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  transition: box-shadow 0.3s, background 0.3s, border-color 0.3s;
}

.theme-toggle-float:hover {
  box-shadow: 0 6px 24px rgba(var(--text-950-rgb), 0.18);
}

@keyframes themeBubbleIn {
  0% {
    opacity: 0;
    transform: scale(0.4) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.theme-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 3px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  color: var(--text-400);
  font-size: 14px;
}

.theme-btn:hover {
  transform: scale(1.15);
}

.theme-btn.active {
  color: var(--accent);
}

.theme-btn.active:hover {
  background: rgba(var(--accent-rgb, 250, 187, 0), 0.15);
}

.theme-toggle-track {
  width: 26px;
  height: 14px;
  background: var(--background-300);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  transition: background 0.3s;
}

:root[data-theme="dark"] .theme-toggle-track {
  background: var(--primary-500);
}

.theme-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 10px;
  height: 10px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

:root[data-theme="dark"] .theme-toggle-thumb {
  transform: translateX(12px);
}

:root[data-theme="dark"] .theme-toggle-float {
  background: var(--background-100);
  border-color: var(--background-300);
}

/* Floating Chat Widget */
.chat-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: min(400px, calc(100vw - 48px));
  max-height: 65vh;
  background: var(--gradient-panel);
  border-radius: 18px;
  box-shadow: 0 14px 32px rgba(var(--text-950-rgb), 0.2);
  border: 1px solid var(--background-200);
  z-index: 12000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: width 0.2s ease, height 0.2s ease, border-radius 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  will-change: transform, opacity;
  transform-origin: right bottom;
}

@keyframes slide-in-fwd-br {
  0% {
    transform: translate3d(40px, 40px, 0) scale(0.1);
    opacity: 0;
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }
}

@keyframes slide-in-bck-tl {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate3d(40px, 40px, 0) scale(0.1);
    opacity: 0;
  }
}

.chat-widget.animate-open {
  animation: slide-in-fwd-br 0.35s ease both;
}

.chat-widget.animate-close {
  animation: slide-in-bck-tl 0.3s ease both;
}

.chat-widget.is-minimized {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 12px 26px rgba(var(--primary-500-rgb), 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.chat-widget.is-minimized:hover {
  transform: scale(1.06);
  box-shadow: 0 16px 32px rgba(var(--background-800-rgb), 0.45);
}

.chat-widget.is-minimized .chat-widget-header {
  height: 100%;
  padding: 0;
  border-bottom: none;
  justify-content: center;
  background: transparent;
}

.chat-widget.is-minimized .chat-widget-title,
.chat-widget.is-minimized .chat-widget-actions {
  display: none;
}

.chat-widget.is-minimized .chat-widget-header::after {
  content: "";
  width: 26px;
  height: 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M4 4h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H9l-5 4v-4H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.chat-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: var(--gradient-header);
  color: var(--background);
  font-weight: 700;
  border-bottom: 1px solid var(--background-200);
  cursor: pointer;
}

.chat-widget-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--background);
}

.chat-widget-actions {
  display: flex;
  gap: 6px;
}

.chat-widget-minimize {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--background-200);
  background: var(--background);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.chat-widget-minimize:hover {
  background: var(--background-100);
}

.chat-widget-list {
  padding: 10px 12px;
  overflow-y: auto;
  background: var(--background);
  width: 100%;
  border-right: none;
  border-bottom: 1px solid var(--background-200);
  max-height: none;
  flex: 1;
}

.chat-widget-body {
  display: flex;
  flex-direction: row;
  flex: 1;
  min-height: 320px;
  transition: opacity 0.2s ease, transform 0.2s ease, max-height 0.2s ease;
}

.chat-widget-list-panel {
  display: flex;
  flex-direction: column;
  width: 150px;
  background: var(--background);
  border-right: 1px solid var(--background-200);
}

.chat-widget-list-header {
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-600);
  border-bottom: 1px solid var(--background-200);
  background: var(--background);
  white-space: nowrap;
}

.chat-widget-body.minimized {
  display: none;
}

.chat-widget.is-minimized .chat-widget-body {
  opacity: 0;
  transform: scale(0.98);
  max-height: 0;
}

.chat-widget-thread {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  background: var(--background);
}

.chat-widget-thread-header {
  padding: 8px 12px;
  font-weight: 600;
  color: var(--text-600);
  border-bottom: 1px solid var(--background-200);
  font-size: 12px;
}

.chat-widget-messages {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  background: var(--background);
}

.chat-widget-input {
  width: 100%;
  padding: 12px;
  border-top: 1px solid var(--background-200);
  background: var(--background);
  --chat-input-height: 44px;
  --chat-input-half: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-widget-input-row {
  position: relative;
  display: flex;
  align-items: center;
}

.chat-widget-input textarea {
  width: 100%;
  min-height: var(--chat-input-height);
  max-height: var(--chat-input-height);
  border-radius: 14px;
  border: 1px solid var(--background-300);
  padding: 10px 104px 10px 12px;
  resize: none;
  font-size: 14px;
  background: var(--background);
}

.chat-widget-input .chat-widget-send,
.chat-widget-input .chat-widget-contact-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: none;
  padding: 0;
  border-radius: 10px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chat-widget-input .chat-widget-send {
  background: var(--secondary);
  color: var(--background);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M2 12l19-9-6 19-4-5-5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
  transition: opacity 0.2s, background-color 0.2s;
}

.chat-widget-input .chat-widget-send:hover {
  background-color: var(--secondary);
}

.chat-widget-input .chat-widget-send:disabled {
  background-color: var(--background-300);
  cursor: not-allowed;
  opacity: 0.6;
}

.chat-widget-input .chat-widget-send:disabled:hover {
  background-color: var(--background-300);
}

.chat-widget-input .chat-widget-contact-toggle {
  right: 54px;
  width: 22px;
  height: 32px;
  padding: 0;
  border-radius: 999px;
  background: var(--background-100);
  color: var(--text);
  font-size: 16px;
  line-height: 1;
}

.chat-widget-contact-toggle:hover {
  background: var(--accent-100);
}

.chat-widget-contact-menu {
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px 14px 16px;
  border: 1px solid var(--background-300);
  background: var(--background);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(var(--text-950-rgb), 0.12);
}

.chat-widget-contact-menu.is-open {
  display: flex;
}

.chat-widget-contact-title {
  font-weight: 700;
  color: var(--primary);
  font-size: 14px;
  margin-bottom: 2px;
}

.chat-widget-contact-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
  border-radius: 8px;
  padding: 4px 8px;
  cursor: pointer;
  transition: background 0.18s;
}
.chat-widget-contact-option:hover {
  background: var(--accent-100);
  color: var(--text);
}

.chat-widget-contact-send {
  align-self: flex-start;
  background: var(--secondary);
  color: var(--background);
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(var(--primary-500-rgb), 0.08);
  border: none;
  margin-top: 6px;
  transition: background 0.2s;
  cursor: pointer;
}

.chat-widget-contact-send:hover {
  background: var(--accent);
  color: var(--text);
}

:root[data-theme="dark"] .chat-widget-input {
  background: var(--background-100);
  border-top-color: var(--background-300);
}

:root[data-theme="dark"] .chat-widget-input textarea {
  background: var(--background-200);
  color: #e0e0e0;
  border-color: var(--background-400);
}

:root[data-theme="dark"] .chat-widget-input textarea::placeholder {
  color: #888;
}

.chat-bubble {
  max-width: 80%;
  padding: 8px 12px;
  border-radius: 16px;
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.3;
}

.chat-bubble-message {
  margin-bottom: 4px;
  white-space: pre-line;
}

.chat-bubble-time {
  font-size: 11px;
  opacity: 0.7;
  margin-top: 2px;
}

.chat-bubble.mine {
  margin-left: auto;
  background: var(--secondary);
  color: var(--background);
}

.chat-bubble.mine .chat-bubble-time {
  color: rgba(var(--background-50-rgb), 0.7);
}

.chat-bubble.theirs {
  margin-right: auto;
  background: var(--primary-50);
  color: var(--text);
}

.chat-bubble.theirs .chat-bubble-time {
  color: rgba(var(--background-800-rgb), 0.7);
}

:root[data-theme="dark"] .chat-bubble.mine {
  background: var(--secondary);
  color: #09070d;
}

:root[data-theme="dark"] .chat-bubble.mine .chat-bubble-time {
  color: rgba(9, 7, 13, 0.6);
}

:root[data-theme="dark"] .chat-bubble.theirs {
  background: var(--primary-900);
  color: #eeecf3;
}

:root[data-theme="dark"] .chat-bubble.theirs .chat-bubble-time {
  color: rgba(238, 236, 243, 0.5);
}

.chat-widget-item {
  width: 100%;
  text-align: left;
  background: var(--background-50);
  border-radius: 8px;
  padding: 10px 12px;
  border: 1px solid var(--background-100);
  margin-bottom: 8px;
  cursor: pointer;
  display: block;
  font: inherit;
  color: inherit;
  position: relative;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.05s ease;
}

.chat-widget-item:last-child {
  margin-bottom: 0;
}

.chat-widget-item:hover {
  background: var(--background-100);
  border-color: var(--background-300);
}

.chat-widget-item:active {
  transform: translateY(1px);
}

.chat-widget-item.is-active {
  background: var(--accent-100);
  border-color: var(--accent);
  border-left: 4px solid var(--accent);
  padding-left: 8px;
  box-shadow: inset 0 0 0 1px rgba(var(--primary-500-rgb), 0.05);
}

.chat-widget-item.is-active .chat-widget-context {
  color: var(--text);
}

.chat-widget-item.is-delete-confirm {
  background: var(--status-danger);
  border-color: var(--status-danger);
  color: var(--background-50);
}

.chat-widget-item.is-delete-confirm .chat-widget-context {
  color: var(--background-50);
}

.chat-widget-item.is-delete-confirm .chat-widget-unread-badge {
  box-shadow: 0 0 0 2px var(--status-danger);
}

.chat-widget-unread-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status-danger);
  box-shadow: 0 0 0 2px var(--background-50);
}

.chat-widget-delete {
  position: absolute;
  right: 8px;
  bottom: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--background-50);
  color: var(--text-500);
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.chat-widget-item:hover .chat-widget-delete {
  opacity: 1;
}

.chat-widget-delete:hover {
  background: var(--status-danger-soft);
  color: var(--status-danger);
}

.chat-widget-item.is-delete-confirm .chat-widget-delete {
  opacity: 1;
  background: rgba(var(--background-50-rgb), 0.2);
  color: var(--background-50);
}

.chat-widget-context {
  font-size: 12px;
  color: var(--primary-500);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-widget-preview {
  font-size: 13px;
  color: var(--text-500);
  margin-top: 6px;
  line-height: 1.3;
}

.chat-widget-empty {
  font-size: 13px;
  color: var(--text-400);
  text-align: center;
  padding: 20px 0;
}

:root[data-theme="dark"] .chat-widget-item {
  background: var(--background-200);
  border-color: var(--background-300);
  color: #e0e0e0;
}

:root[data-theme="dark"] .chat-widget-item:hover {
  background: var(--background-300);
  border-color: var(--background-400);
}

:root[data-theme="dark"] .chat-widget-item.is-active {
  background: var(--primary-950);
  border-color: var(--primary-800);
  border-left-color: var(--primary-700);
  color: #e0e0e0;
}

:root[data-theme="dark"] .chat-widget-item.is-active .chat-widget-context {
  color: var(--primary-300);
}

:root[data-theme="dark"] .chat-widget-context {
  color: var(--primary-400);
}

:root[data-theme="dark"] .chat-widget-preview {
  color: var(--text-700);
}

:root[data-theme="dark"] .chat-widget-list-header {
  color: #ccc;
  border-bottom-color: var(--background-300);
}

@media (max-width: 900px) {
  .chat-widget {
    right: 12px;
    bottom: 12px;
    width: min(92vw, 360px);
  }

  .chat-widget-body {
    flex-direction: column;
  }

  .chat-widget-list-panel {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--background-100);
  }

  .chat-widget-list {
    padding: 12px 16px;
    overflow-y: auto;
    background: var(--background-50);
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--background-100);
  }
}

.login-divider {
  text-align: center;
  color: var(--text-500);
  margin: 20px 0;
  font-size: 14px;
}

.btn-signup {
  background-color: var(--background-100);
  color: var(--text);
  border: 1px solid var(--background-300);
  min-height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-bottom: 20px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-signup:hover {
  background-color: var(--background-200);
}

.btn-google {
  background-color: var(--background-50);
  color: var(--text);
  border: 1px solid var(--background-300);
  min-height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 20px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-google:hover {
  background-color: var(--background-100);
  border-color: var(--background-300);
}

/* Auth Form Toggle */
.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.login-links {
  text-align: center;
}

.login-links a {
  color: var(--primary-500);
  text-decoration: none;
  font-size: 14px;
  transition: opacity 0.2s;
}

.login-links a:hover {
  opacity: 0.7;
}

.login-info {
  color: var(--text-900);
}

.login-info h2 {
  font-size: 32px;
  color: var(--background-800);
  margin-bottom: 15px;
  font-weight: bold;
}

.login-info p {
  font-size: 16px;
  color: var(--text-500);
  margin-bottom: 30px;
  line-height: 1.6;
}

.info-points {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.info-point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.info-icon {
  width: 28px;
  height: 28px;
  background-color: var(--status-warning);
  color: var(--background-800);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
  font-size: 16px;
}

.info-point p {
  margin: 0;
  font-size: 14px;
  color: var(--text-500);
}

@media (max-width: 1024px) {
  .login-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .login-info {
    display: none;
  }
}

@media (max-width: 768px) {
  .login-page {
    padding: 20px;
  }

  .login-card {
    padding: 25px 20px;
  }

  .login-card h1 {
    font-size: 24px;
  }

  .login-subtitle {
    font-size: 14px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 10px;
    font-size: 14px;
  }

  .btn-primary {
    padding: 12px;
    font-size: 14px;
  }

  .forgot-password {
    font-size: 13px;
  }

  .register-link {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .login-page {
    padding: 15px;
  }

  .login-card {
    padding: 20px 15px;
  }

  .login-card h1 {
    font-size: 22px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 10px;
    font-size: 13px;
  }

  .btn-primary {
    padding: 11px;
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .about-hero h1 {
    font-size: 32px;
  }

  .about-section {
    padding: 25px 20px;
  }

  .about-section h2 {
    font-size: 22px;
  }

  .about-section p {
    font-size: 15px;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .value-item {
    padding: 20px;
  }

  .value-item h3 {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .about-hero h1 {
    font-size: 28px;
  }

  .about-hero p {
    font-size: 16px;
  }

  .about-section {
    padding: 20px 15px;
  }

  .about-section h2 {
    font-size: 20px;
  }

  .about-section p {
    font-size: 14px;
  }

  .value-item {
    padding: 15px;
  }

  .value-item h3 {
    font-size: 16px;
  }
}

/* Contact Page */
.contact-hero {
  background: var(--background-800);
  color: var(--primary-50);
  padding: 80px 20px;
  text-align: center;
}

.contact-hero h1 {
  font-size: 42px;
  margin-bottom: 20px;
  font-weight: bold;
}

.contact-hero p {
  font-size: 18px;
  opacity: 0.95;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.contact-content {
  padding: 80px 20px;
  background-color: transparent;
}

.page-header + .contact-content {
  padding-top: 8px;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-methods h2 {
  font-size: 28px;
  color: var(--background-800);
  margin-bottom: 40px;
}

.contact-method {
  background: var(--background-50);
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 25px;
  box-shadow: 0 5px 15px rgba(var(--text-950-rgb), 0.08);
}

.method-icon {
  font-size: 40px;
  margin-bottom: 15px;
}

.contact-method h3 {
  font-size: 20px;
  color: var(--text-900);
  margin-bottom: 10px;
}

.contact-method p {
  font-size: 14px;
  color: var(--text-500);
  line-height: 1.6;
  margin-bottom: 12px;
}

.email-link {
  display: inline-block;
  color: var(--primary-500);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: opacity 0.2s;
}

.email-link:hover {
  opacity: 0.7;
}

.location-info {
  font-style: italic;
  color: var(--text-500) !important;
}

.contact-form-section h2 {
  font-size: 28px;
  color: var(--background-800);
  margin-bottom: 30px;
}

.contact-form {
  background: var(--background-50);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(var(--text-950-rgb), 0.08);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-900);
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 2px solid var(--primary-500);
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s;
  font-family: inherit;
  color: var(--text-900);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-500);
}

.contact-form .btn-submit {
  background: var(--secondary);
  color: var(--background);
  border: none;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.contact-form .btn-submit:hover {
  transform: translateY(-2px);
  background: var(--primary);
  box-shadow: 0 8px 20px rgba(var(--secondary-500-rgb), 0.25);
}

.form-note {
  font-size: 13px;
  color: var(--text-500);
  text-align: center;
  margin-top: 15px;
}

/* Disclaimer Section */
.contact-disclaimer {
  padding: 50px 20px;
  background: var(--gradient-section);
}

.disclaimer-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--gradient-panel);
  padding: 30px;
  border-radius: 10px;
  border-left: 5px solid var(--primary-500);
  box-shadow: 0 5px 15px rgba(var(--text-950-rgb), 0.08);
}

.disclaimer-container h3 {
  font-size: 20px;
  color: var(--background-800);
  margin-bottom: 15px;
  font-weight: bold;
}

.disclaimer-container p {
  font-size: 15px;
  color: var(--text-500);
  line-height: 1.8;
}

:root[data-theme="dark"] .disclaimer-container h3 {
  color: #ffffff;
}

:root[data-theme="dark"] .disclaimer-container p {
  color: #d4d4d4;
}

@media (max-width: 1024px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .contact-hero h1 {
    font-size: 32px;
  }

  .contact-hero p {
    font-size: 16px;
  }

  .contact-methods h2,
  .contact-form-section h2 {
    font-size: 24px;
  }

  .contact-form {
    padding: 25px 20px;
  }

  .contact-content {
    padding: 40px 20px;
  }

  .disclaimer-container {
    padding: 20px;
  }

  .contact-method {
    padding: 20px;
  }

  .contact-method i {
    font-size: 32px;
  }
}

@media (max-width: 480px) {
  .contact-hero h1 {
    font-size: 28px;
  }

  .contact-hero p {
    font-size: 15px;
  }

  .contact-methods h2,
  .contact-form-section h2 {
    font-size: 20px;
  }

  .contact-form {
    padding: 20px 15px;
  }

  .contact-content {
    padding: 30px 15px;
  }

  .disclaimer-container {
    padding: 15px;
  }

  .contact-method {
    padding: 15px;
  }

  .contact-method h3 {
    font-size: 16px;
  }

  .contact-method p {
    font-size: 13px;
  }
}

/* ===== TERMS AND CONDITIONS PAGE ===== */

.terms-page {
  min-height: calc(100vh - 60px);
  background: transparent;
  padding: 60px 20px;
}

.terms-container {
  max-width: 900px;
  margin: 0 auto;
}

.terms-header {
  text-align: center;
  margin-bottom: 50px;
}

.terms-header h1 {
  font-size: 42px;
  color: var(--background-800);
  margin-bottom: 10px;
  font-weight: bold;
}

.terms-subtitle {
  font-size: 14px;
  color: var(--text-500);
  font-style: italic;
}

.terms-content {
  background: var(--background-50);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(var(--text-950-rgb), 0.08);
}

.terms-intro {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 2px solid var(--primary-500);
}

.terms-intro p {
  font-size: 16px;
  color: var(--text-500);
  line-height: 1.8;
}

.terms-section {
  margin-bottom: 35px;
}

.terms-section h2 {
  font-size: 22px;
  color: var(--background-800);
  margin-bottom: 15px;
  font-weight: bold;
  border-left: 4px solid var(--primary-500);
  padding-left: 15px;
}

.terms-section p {
  font-size: 15px;
  color: var(--text-500);
  line-height: 1.8;
  margin-bottom: 12px;
}

.terms-section strong {
  color: var(--text-900);
  font-weight: 600;
}

.terms-list {
  list-style: none;
  padding-left: 0;
  margin: 15px 0;
}

.terms-list li {
  font-size: 15px;
  color: var(--text-500);
  line-height: 1.8;
  padding-left: 25px;
  margin-bottom: 10px;
  position: relative;
}

.terms-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-500);
  font-weight: bold;
  font-size: 16px;
}

.terms-section a {
  color: var(--primary-500);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.terms-section a:hover {
  color: var(--background-800);
  text-decoration: underline;
}

.terms-footer-note {
  margin-top: 40px;
  padding: 20px;
  background: var(--status-warning-border);
  border-left: 5px solid var(--primary-500);
  border-radius: 5px;
}

.terms-footer-note p {
  font-size: 15px;
  color: var(--background-800);
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .terms-page {
    padding: 40px 20px;
  }

  .terms-header h1 {
    font-size: 32px;
  }

  .terms-content {
    padding: 25px 20px;
  }

  .terms-section h2 {
    font-size: 20px;
  }

  .terms-section p,
  .terms-list li {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .terms-page {
    padding: 30px 15px;
  }

  .terms-header h1 {
    font-size: 28px;
  }

  .terms-subtitle {
    font-size: 13px;
  }

  .terms-content {
    padding: 20px 15px;
  }

  .terms-intro p {
    font-size: 14px;
  }

  .terms-section h2 {
    font-size: 18px;
  }

  .terms-section p,
  .terms-list li {
    font-size: 13px;
  }
}

/* ===== PRIVACY POLICY PAGE ===== */

.privacy-page {
  min-height: calc(100vh - 60px);
  background: transparent;
  padding: 60px 20px;
}

.privacy-container {
  max-width: 900px;
  margin: 0 auto;
}

.privacy-header {
  text-align: center;
  margin-bottom: 50px;
}

.privacy-header h1 {
  font-size: 42px;
  color: var(--background-800);
  margin-bottom: 10px;
  font-weight: bold;
}

.privacy-subtitle {
  font-size: 14px;
  color: var(--text-500);
  font-style: italic;
}

.privacy-content {
  background: var(--background-50);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(var(--text-950-rgb), 0.08);
}

.privacy-intro {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 2px solid var(--primary-500);
}

.privacy-intro p {
  font-size: 16px;
  color: var(--text-500);
  line-height: 1.8;
  margin-bottom: 12px;
}

.privacy-section {
  margin-bottom: 35px;
}

.privacy-section h2 {
  font-size: 22px;
  color: var(--background-800);
  margin-bottom: 15px;
  font-weight: bold;
  border-left: 4px solid var(--primary-500);
  padding-left: 15px;
}

.privacy-section p {
  font-size: 15px;
  color: var(--text-500);
  line-height: 1.8;
  margin-bottom: 12px;
}

.privacy-section strong {
  color: var(--text-900);
  font-weight: 600;
}

.privacy-list {
  list-style: none;
  padding-left: 0;
  margin: 15px 0;
}

.privacy-list li {
  font-size: 15px;
  color: var(--text-500);
  line-height: 1.8;
  padding-left: 25px;
  margin-bottom: 10px;
  position: relative;
}

.privacy-list li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-500);
  font-weight: bold;
  font-size: 18px;
}

.privacy-section a {
  color: var(--primary-500);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.privacy-section a:hover {
  color: var(--background-800);
  text-decoration: underline;
}

.privacy-footer-note {
  margin-top: 40px;
  padding: 20px;
  background: var(--status-warning-border);
  border-left: 5px solid var(--primary-500);
  border-radius: 5px;
}

.privacy-footer-note p {
  font-size: 15px;
  color: var(--background-800);
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .privacy-page {
    padding: 40px 20px;
  }

  .privacy-header h1 {
    font-size: 32px;
  }

  .privacy-content {
    padding: 25px 20px;
  }

  .privacy-section h2 {
    font-size: 20px;
  }

  .privacy-section p,
  .privacy-list li {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .privacy-page {
    padding: 30px 15px;
  }

  .privacy-header h1 {
    font-size: 28px;
  }

  .privacy-header p {
    font-size: 15px;
  }

  .privacy-content {
    padding: 20px 15px;
  }

  .privacy-section h2 {
    font-size: 18px;
  }

  .privacy-section p,
  .privacy-list li {
    font-size: 13px;
  }
}

/* ===== LEGAL NOTICE PAGE ===== */

.legal-page {
  min-height: calc(100vh - 60px);
  background: transparent;
  padding: 60px 20px;
}

.legal-container {
  max-width: 900px;
  margin: 0 auto;
}

.legal-header {
  text-align: center;
  margin-bottom: 50px;
}

.legal-header h1 {
  font-size: 42px;
  color: var(--background-800);
  margin-bottom: 10px;
  font-weight: bold;
}

.legal-subtitle {
  font-size: 14px;
  color: var(--text-500);
  font-style: italic;
}

.legal-content {
  background: var(--background-50);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(var(--text-950-rgb), 0.08);
}

.legal-intro {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 2px solid var(--primary-500);
}

.legal-intro p {
  font-size: 16px;
  color: var(--text-500);
  line-height: 1.8;
}

.legal-section {
  margin-bottom: 35px;
}

.legal-section h2 {
  font-size: 22px;
  color: var(--background-800);
  margin-bottom: 15px;
  font-weight: bold;
  border-left: 4px solid var(--primary-500);
  padding-left: 15px;
}

.legal-section p {
  font-size: 15px;
  color: var(--text-500);
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-section strong {
  color: var(--text-900);
  font-weight: 600;
}

.legal-list {
  list-style: none;
  padding-left: 0;
  margin: 15px 0;
}

.legal-list li {
  font-size: 15px;
  color: var(--text-500);
  line-height: 1.8;
  padding-left: 25px;
  margin-bottom: 10px;
  position: relative;
}

.legal-list li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-500);
  font-weight: bold;
  font-size: 18px;
}

.legal-section a {
  color: var(--primary-500);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.legal-section a:hover {
  color: var(--background-800);
  text-decoration: underline;
}

.legal-footer-note {
  margin-top: 40px;
  padding: 20px;
  background: var(--status-warning-border);
  border-left: 5px solid var(--primary-500);
  border-radius: 5px;
}

.legal-footer-note p {
  font-size: 15px;
  color: var(--background-800);
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .legal-page {
    padding: 40px 20px;
  }

  .legal-header h1 {
    font-size: 32px;
  }

  .legal-content {
    padding: 25px 20px;
  }

  .legal-section h2 {
    font-size: 20px;
  }

  .legal-section p,
  .legal-list li {
    font-size: 14px;
  }
}

/* Role Selection Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(var(--text-950-rgb), 0.7);
  z-index: 10000;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px 0;
}

.modal[style*="display: flex"],
.modal[style*="display: block"] {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes fadeOutLeft {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-20px);
  }
}

.animate__fadeOut,
.modal-content.animate__fadeOut {
  animation: fadeOut 0.2s ease forwards !important;
}

.animate__fadeOutLeft {
  animation: fadeOutLeft 0.35s ease forwards;
}

.modal-content {
  background: var(--background-50);
  padding: 40px;
  border-radius: 15px;
  max-width: 600px;
  width: 90%;
  max-height: none;
  overflow: visible;
  box-shadow: 0 10px 40px rgba(var(--text-950-rgb), 0.3);
  animation: slideUp 0.3s;
  margin: 0;
  position: relative;
  z-index: 10001;
}

#load-modal .modal-content.modal-form {
  max-height: 85vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

#edit-load-modal .modal-content.modal-form {
  max-height: 85vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

#transport-modal .modal-content.modal-form,
#edit-transport-modal .modal-content.modal-form {
  max-height: 85vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

#offer-modal-proveedor .modal-content.modal-form,
#offer-modal-transportista .modal-content.modal-form,
#review-offer-modal-proveedor .modal-content.modal-form,
#review-offer-modal-transportista .modal-content.modal-form {
  max-height: 85vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

#review-offer-modal-proveedor .modal-content.modal-form,
#review-offer-modal-transportista .modal-content.modal-form {
  max-width: 980px;
  width: 96%;
  overflow-x: hidden;
}

#review-offer-modal-proveedor .offer-actions .btn-load-contact,
#review-offer-modal-transportista .offer-actions .btn-load-contact {
  background: var(--secondary-500);
  color: var(--background-50);
  border: none;
  box-shadow: 0 6px 16px rgba(var(--secondary-500-rgb), 0.35);
}

#review-offer-modal-proveedor .offer-actions .btn-load-contact:hover,
#review-offer-modal-transportista .offer-actions .btn-load-contact:hover {
  background: var(--secondary-600);
  box-shadow: 0 8px 18px rgba(var(--secondary-500-rgb), 0.45);
}

#review-offer-modal-proveedor .offer-actions .btn-submit,
#review-offer-modal-transportista .offer-actions .btn-submit {
  background: var(--status-success);
  color: var(--background-50);
  border: none;
  box-shadow: 0 6px 16px rgba(var(--status-success-rgb), 0.35);
}

#review-offer-modal-proveedor .offer-actions .btn-submit:hover,
#review-offer-modal-transportista .offer-actions .btn-submit:hover {
  background: var(--status-success);
  box-shadow: 0 8px 18px rgba(var(--status-success-rgb), 0.45);
}

#review-offer-modal-proveedor .offer-actions .btn-load-delete.btn-cancel,
#review-offer-modal-transportista .offer-actions .btn-load-delete.btn-cancel {
  background: var(--status-danger);
  color: var(--background-50);
  border: none;
  box-shadow: 0 6px 16px rgba(var(--status-danger-rgb), 0.35);
}

#review-offer-modal-proveedor .offer-actions .btn-load-delete.btn-cancel:hover,
#review-offer-modal-transportista .offer-actions .btn-load-delete.btn-cancel:hover {
  background: var(--status-danger-border);
  box-shadow: 0 8px 18px rgba(var(--status-danger-rgb), 0.45);
}

.offer-actions .btn-load-edit.btn-save {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.offer-actions .btn-load-edit.btn-save:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(var(--primary-600-rgb), 0.28);
}


.modal-form {
  max-width: 600px;
  position: relative;
  overflow: visible;
}

.modal-content.modal-form {
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes slideUp {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content h2 {
  color: var(--background-800);
  font-size: 28px;
  margin-bottom: 10px;
  text-align: center;
}

.modal-content > p {
  color: var(--text-500);
  font-size: 16px;
  text-align: center;
  margin-bottom: 30px;
}

.offer-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.offer-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--background-800);
}

.offer-empty-note {
  font-size: 13px;
  color: var(--text-500);
}

.offer-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.offer-actions .btn-load-details,
.offer-actions .btn-load-contact,
.offer-actions .btn-load-edit {
  flex: 1;
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
  line-height: 38px;
  transition: all 0.2s;
}

.offer-actions .btn-load-contact {
  background: var(--status-success);
  color: var(--background-50);
  border: none !important;
  box-shadow: 0 6px 16px rgba(var(--status-success-rgb), 0.35);
}

.offer-actions .btn-load-contact:hover {
  background: var(--status-success);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(var(--status-success-rgb), 0.45);
}

.offer-actions .btn-cancel,
.offer-actions .btn-submit,
.offer-actions .btn-save {
  flex: 1;
  height: 38px;
  padding: 0 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 38px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  vertical-align: middle;
}

.offer-actions .btn-cancel {
  background: var(--status-warning-border);
  color: var(--background-800);
}

.offer-actions .btn-submit {
  background: var(--status-success);
  color: var(--background-50);
  box-shadow: 0 6px 16px rgba(var(--status-success-rgb), 0.35);
}

.offer-actions .btn-save {
  background: var(--background-50);
  color: var(--primary-600);
  border: 1px solid var(--primary-600);
}

.offer-actions .btn-cancel:hover {
  background: var(--status-warning);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(var(--accent-500-rgb), 0.15);
}

.offer-actions .btn-submit:hover {
  background: var(--status-success);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(var(--status-success-rgb), 0.45);
}

.offer-actions .btn-save:hover {
  background: var(--primary-600);
  color: var(--background-50);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(var(--primary-600-rgb), 0.25);
}

.offer-actions .btn-load-edit.btn-save:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(var(--primary-600-rgb), 0.25);
}

.offer-actions .btn-load-edit {
  background: var(--background-50);
  color: var(--primary-600);
  border: 1px solid var(--primary-600);
}

.offer-actions .btn-load-edit:hover {
  background: var(--primary-600);
  color: var(--background-50);
}

.offer-actions .btn-load-delete {
  background: var(--background-50);
  color: var(--status-danger);
  border: 1px solid var(--status-danger);
}

.offer-actions .btn-load-delete:hover {
  background: var(--status-danger);
  color: var(--background-50);
  box-shadow: 0 5px 15px rgba(var(--status-danger-rgb), 0.25);
}

.offer-summary-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--background-800);
  margin-bottom: 12px;
}

.offer-summary-card {
  background: var(--primary-50);
  border: 1px solid var(--primary-500);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
  width: 100%;
}

#review-offer-modal-proveedor .offer-summary-card,
#review-offer-modal-transportista .offer-summary-card {
  padding: 8px 10px;
  margin-bottom: 8px;
}
.offer-item {
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(var(--primary-500-rgb), 0.2);
  width: 100%;
  min-width: 0;
}
.offer-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.offer-card-title {
  font-weight: 700;
  color: var(--background-800);
  margin-bottom: 4px;
}

.offer-card-route {
  font-size: 14px;
  color: var(--background-800);
  margin-bottom: 4px;
}

.offer-card-meta {
  font-size: 13px;
  color: var(--text-500);
}

.offer-counter {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.offer-counter label {
  font-weight: 600;
  color: var(--background-800);
}

.offer-actions .btn-load-edit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Account Required Modal */
.account-required-content {
  max-width: 520px;
}

.account-modal-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.account-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--primary-50);
  color: var(--background-800);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, transform 0.2s;
}

.account-modal-close:hover {
  background: var(--background-100);
  transform: scale(1.05);
}

.role-options {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.role-option {
  flex: 1;
  background: var(--primary-50);
  padding: 30px 20px;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.3s;
}

.role-option:hover {
  background: var(--status-warning-border);
  border-color: var(--primary-500);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(var(--primary-500-rgb), 0.2);
}

.role-option.selected {
  background: var(--status-warning-border);
  border-color: var(--primary-500);
  box-shadow: 0 12px 28px rgba(var(--primary-500-rgb), 0.25);
}

.role-option.busy {
  opacity: 0.6;
  cursor: wait;
}

.role-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.role-option h3 {
  color: var(--background-800);
  font-size: 20px;
  margin-bottom: 10px;
}

.role-option p {
  color: var(--text-500);
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}

.modal-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-500);
  font-style: italic;
  margin: 0;
}

/* Dark mode modal overrides */
:root[data-theme="dark"] .modal {
  background: rgba(0, 0, 0, 0.75);
}

:root[data-theme="dark"] .modal-content {
  background: var(--background-100);
  border: 1px solid var(--background-300);
}

:root[data-theme="dark"] .modal-content h2 {
  color: #ffffff;
}

:root[data-theme="dark"] .modal-content > p {
  color: #b0b0b0;
}

:root[data-theme="dark"] .modal-close {
  color: #a0a0a0;
}

:root[data-theme="dark"] .modal-close:hover {
  color: #ffffff;
}

:root[data-theme="dark"] .form-group label {
  color: #e0e0e0;
}

:root[data-theme="dark"] .form-group input,
:root[data-theme="dark"] .form-group select,
:root[data-theme="dark"] .form-group textarea {
  background: var(--background-200);
  color: #e0e0e0;
  border-color: var(--background-300);
}

:root[data-theme="dark"] .form-group input:focus,
:root[data-theme="dark"] .form-group select:focus,
:root[data-theme="dark"] .form-group textarea:focus {
  border-color: var(--primary);
  background: var(--background-200);
}

:root[data-theme="dark"] .form-group input::placeholder,
:root[data-theme="dark"] .form-group textarea::placeholder {
  color: #808080;
}

:root[data-theme="dark"] .form-actions {
  border-top-color: var(--background-300);
}

:root[data-theme="dark"] .modal-form h2 {
  border-bottom-color: var(--background-300);
}

:root[data-theme="dark"] .form-actions .btn-cancel {
  background: var(--background-200);
  color: #e0e0e0;
  border-color: var(--background-300);
}

:root[data-theme="dark"] .form-actions .btn-cancel:hover {
  background: var(--background-300);
}

:root[data-theme="dark"] .form-actions .btn-save-preset {
  background: var(--accent-200);
  color: #1a1a1a;
  border-color: var(--accent-300);
}

:root[data-theme="dark"] .modal-note {
  color: #a0a0a0;
}

:root[data-theme="dark"] .preset-modal-card {
  background: var(--background-100);
  border-color: var(--background-300);
}

:root[data-theme="dark"] .preset-modal-card h3 {
  color: #ffffff;
}

:root[data-theme="dark"] .modal-form .chat-message-input {
  background: var(--background-200);
  border-color: var(--background-300);
  color: #e0e0e0;
}

:root[data-theme="dark"] .modal-form .chat-message-input:focus {
  background: var(--background-200);
  border-color: var(--primary);
}

:root[data-theme="dark"] .form-select {
  background-color: var(--background-200);
  color: #e0e0e0;
  border-color: var(--background-300);
}

:root[data-theme="dark"] .form-select:focus,
:root[data-theme="dark"] .form-select:hover {
  background-color: var(--background-200);
  border-color: var(--primary);
}

:root[data-theme="dark"] .form-select option {
  background: var(--background-200);
  color: #e0e0e0;
}

/* Dark mode — Legal pages (terms, privacy, legal, cookies) */
:root[data-theme="dark"] .terms-content,
:root[data-theme="dark"] .privacy-content,
:root[data-theme="dark"] .legal-content,
:root[data-theme="dark"] .cookies-content {
  background: var(--background-100);
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

:root[data-theme="dark"] .terms-header h1,
:root[data-theme="dark"] .privacy-header h1,
:root[data-theme="dark"] .legal-header h1,
:root[data-theme="dark"] .cookies-header h1 {
  color: #ffffff;
}

:root[data-theme="dark"] .terms-subtitle,
:root[data-theme="dark"] .privacy-subtitle,
:root[data-theme="dark"] .legal-subtitle,
:root[data-theme="dark"] .cookies-subtitle {
  color: #a0a0a0;
}

:root[data-theme="dark"] .terms-intro p,
:root[data-theme="dark"] .privacy-intro p,
:root[data-theme="dark"] .legal-intro p,
:root[data-theme="dark"] .cookies-intro p {
  color: #d4d4d4;
}

:root[data-theme="dark"] .terms-section h2,
:root[data-theme="dark"] .privacy-section h2,
:root[data-theme="dark"] .legal-section h2,
:root[data-theme="dark"] .cookies-section h2 {
  color: #ffffff;
}

:root[data-theme="dark"] .cookies-section h3 {
  color: #e0e0e0;
}

:root[data-theme="dark"] .terms-section p,
:root[data-theme="dark"] .privacy-section p,
:root[data-theme="dark"] .legal-section p,
:root[data-theme="dark"] .cookies-section p {
  color: #d4d4d4;
}

:root[data-theme="dark"] .terms-section strong,
:root[data-theme="dark"] .privacy-section strong,
:root[data-theme="dark"] .legal-section strong,
:root[data-theme="dark"] .cookies-section strong {
  color: #e0e0e0;
}

:root[data-theme="dark"] .terms-list li,
:root[data-theme="dark"] .privacy-list li,
:root[data-theme="dark"] .legal-list li,
:root[data-theme="dark"] .cookies-list li {
  color: #d4d4d4;
}

:root[data-theme="dark"] .terms-section a,
:root[data-theme="dark"] .privacy-section a,
:root[data-theme="dark"] .legal-section a,
:root[data-theme="dark"] .cookies-section a {
  color: var(--accent-200);
}

:root[data-theme="dark"] .terms-section a:hover,
:root[data-theme="dark"] .privacy-section a:hover,
:root[data-theme="dark"] .legal-section a:hover,
:root[data-theme="dark"] .cookies-section a:hover {
  color: var(--accent-300);
}

:root[data-theme="dark"] .terms-footer-note,
:root[data-theme="dark"] .privacy-footer-note,
:root[data-theme="dark"] .legal-footer-note,
:root[data-theme="dark"] .cookies-footer-note {
  background: var(--background-200);
  border-left-color: var(--primary-500);
}

:root[data-theme="dark"] .terms-footer-note p,
:root[data-theme="dark"] .privacy-footer-note p,
:root[data-theme="dark"] .legal-footer-note p,
:root[data-theme="dark"] .cookies-footer-note p {
  color: #e0e0e0;
}

:root[data-theme="dark"] .terms-intro,
:root[data-theme="dark"] .privacy-intro,
:root[data-theme="dark"] .legal-intro,
:root[data-theme="dark"] .cookies-intro {
  border-bottom-color: var(--background-300);
}

/* Dark mode — dropdown and autocomplete hover consistency */
:root[data-theme="dark"] .dropdown-menu {
  background-color: var(--background-100);
  border: 1px solid var(--background-300);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

:root[data-theme="dark"] .dropdown-item {
  color: #e0e0e0 !important;
}

:root[data-theme="dark"] .dropdown-item:hover {
  background-color: var(--background-200);
  color: #ffffff !important;
}

:root[data-theme="dark"] .dropdown-divider {
  background-color: var(--background-300);
}

:root[data-theme="dark"] .autocomplete-dropdown {
  background: var(--background-100);
  border-color: var(--background-300);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

:root[data-theme="dark"] .autocomplete-item {
  color: #e0e0e0;
}

:root[data-theme="dark"] .autocomplete-item:hover,
:root[data-theme="dark"] .autocomplete-item.selected {
  background: var(--background-200);
  color: #ffffff;
}

:root[data-theme="dark"] .autocomplete-item:active {
  background: var(--background-300);
}

:root[data-theme="dark"] .autocomplete-dropdown::-webkit-scrollbar-track {
  background: var(--background-100);
}

:root[data-theme="dark"] .autocomplete-dropdown::-webkit-scrollbar-thumb {
  background: var(--background-300);
}

/* Dark mode — consistent button colors */

/* Primary action buttons: ensure white text on colored backgrounds */
:root[data-theme="dark"] .btn-subscribe,
:root[data-theme="dark"] .btn-filter,
:root[data-theme="dark"] .contact-form .btn-submit,
:root[data-theme="dark"] .form-actions .btn-submit,
:root[data-theme="dark"] .preset-modal-actions .btn-submit,
:root[data-theme="dark"] .offer-actions .btn-save {
  color: #ffffff;
}

/* Outline buttons: dark surface with visible text */
:root[data-theme="dark"] .btn-load-details,
:root[data-theme="dark"] .btn-load-edit,
:root[data-theme="dark"] .btn-load-restore,
:root[data-theme="dark"] .btn-remove-stop,
:root[data-theme="dark"] .offer-actions .btn-load-edit,
:root[data-theme="dark"] .offer-actions .btn-save:not(:hover) {
  background: var(--background-200);
}

:root[data-theme="dark"] .btn-load-delete,
:root[data-theme="dark"] .offer-actions .btn-load-delete {
  background: var(--status-danger);
  color: #ffffff;
  border-color: var(--status-danger);
}

/* Unified light-bg button block override */
:root[data-theme="dark"] .btn-load-edit,
:root[data-theme="dark"] .btn-clear-filter,
:root[data-theme="dark"] .btn-back,
:root[data-theme="dark"] .offer-actions .btn-cancel,
:root[data-theme="dark"] .preset-modal-actions .btn-cancel,
:root[data-theme="dark"] .form-actions .btn-cancel {
  background: var(--background-200);
  color: #e0e0e0;
  border-color: var(--background-300);
}

:root[data-theme="dark"] .btn-load-edit:hover,
:root[data-theme="dark"] .btn-clear-filter:hover,
:root[data-theme="dark"] .btn-back:hover,
:root[data-theme="dark"] .offer-actions .btn-cancel:hover,
:root[data-theme="dark"] .preset-modal-actions .btn-cancel:hover,
:root[data-theme="dark"] .form-actions .btn-cancel:hover {
  background: var(--background-300);
}

/* Warning/accent buttons: ensure dark text stays readable */
:root[data-theme="dark"] .btn-new-load,
:root[data-theme="dark"] .btn-load-offers,
:root[data-theme="dark"] .btn-load-track {
  color: #1a1a1a;
}

/* Add-stop button */
:root[data-theme="dark"] .btn-add-stop {
  background: var(--background-200);
  color: #e0e0e0;
  border-color: var(--background-300);
}

/* Google login button */
:root[data-theme="dark"] .btn-google {
  background: var(--background-200);
  color: #e0e0e0;
  border-color: var(--background-300);
}

:root[data-theme="dark"] .btn-google:hover {
  background: var(--background-300);
}

/* Login submit button */
:root[data-theme="dark"] .btn-login-submit {
  color: #1a1a1a;
}

/* Save preset button */
:root[data-theme="dark"] .form-actions .btn-save-preset {
  background: var(--accent-200);
  color: #1a1a1a;
  border-color: var(--accent-300);
}

.role-feedback {
  margin-top: 15px;
  padding: 12px 15px;
  background: var(--status-success-soft);
  color: var(--status-success);
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  border: 1px solid var(--status-success-border);
}

@media (max-width: 768px) {
  .modal-content {
    padding: 30px 20px;
  }

  .role-options {
    flex-direction: column;
  }

  .modal-content h2 {
    font-size: 24px;
  }

  .modal-content > p {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .legal-page {
    padding: 30px 15px;
  }

  .legal-header h1 {
    font-size: 28px;
  }

  .legal-header p {
    font-size: 13px;
  }

  .legal-content {
    padding: 20px 15px;
  }

  .legal-section h2 {
    font-size: 18px;
  }

  .legal-section p,
  .legal-list li {
    font-size: 13px;
  }
}

/* ===== COOKIES POLICY PAGE ===== */

.cookies-page {
  min-height: calc(100vh - 60px);
  background: transparent;
  padding: 60px 20px;
}

.cookies-container {
  max-width: 900px;
  margin: 0 auto;
}

.cookies-header {
  text-align: center;
  margin-bottom: 50px;
}

.cookies-header h1 {
  font-size: 42px;
  color: var(--background-800);
  margin-bottom: 10px;
  font-weight: bold;
}

.cookies-subtitle {
  font-size: 14px;
  color: var(--text-500);
  font-style: italic;
}

.cookies-content {
  background: var(--background-50);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(var(--text-950-rgb), 0.08);
}

.cookies-intro {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 2px solid var(--primary-500);
}

.cookies-intro p {
  font-size: 16px;
  color: var(--text-500);
  line-height: 1.8;
  margin-bottom: 12px;
}

.cookies-section {
  margin-bottom: 35px;
}

.cookies-section h2 {
  font-size: 22px;
  color: var(--background-800);
  margin-bottom: 15px;
  font-weight: bold;
  border-left: 4px solid var(--primary-500);
  padding-left: 15px;
}

.cookies-section h3 {
  font-size: 18px;
  color: var(--background-800);
  margin-top: 20px;
  margin-bottom: 12px;
  font-weight: 600;
}

.cookies-section p {
  font-size: 15px;
  color: var(--text-500);
  line-height: 1.8;
  margin-bottom: 12px;
}

.cookies-section strong {
  color: var(--text-900);
  font-weight: 600;
}

.cookies-list {
  list-style: none;
  padding-left: 0;
  margin: 15px 0;
}

.cookies-list li {
  font-size: 15px;
  color: var(--text-500);
  line-height: 1.8;
  padding-left: 25px;
  margin-bottom: 10px;
  position: relative;
}

.cookies-list li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-500);
  font-weight: bold;
  font-size: 18px;
}

.cookies-section a {
  color: var(--primary-500);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.cookies-section a:hover {
  color: var(--background-800);
  text-decoration: underline;
}

.cookies-footer-note {
  margin-top: 40px;
  padding: 20px;
  background: var(--status-warning-border);
  border-left: 5px solid var(--primary-500);
  border-radius: 5px;
}

.cookies-footer-note p {
  font-size: 15px;
  color: var(--background-800);
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .cookies-page {
    padding: 40px 20px;
  }

  .cookies-header h1 {
    font-size: 32px;
  }

  .cookies-content {
    padding: 25px 20px;
  }

  .cookies-section h2 {
    font-size: 20px;
  }

  .cookies-section p,
  .cookies-list li {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .cookies-page {
    padding: 30px 15px;
  }

  .cookies-header h1 {
    font-size: 28px;
  }

  .cookies-subtitle {
    font-size: 13px;
  }

  .cookies-content {
    padding: 20px 15px;
  }

  .cookies-section h2 {
    font-size: 18px;
  }

  .cookies-section h3 {
    font-size: 15px;
  }

  .cookies-section p,
  .cookies-list li {
    font-size: 13px;
  }
}

/* ===== DASHBOARD PAGES ===== */

.page-header {
  background: transparent;
  padding: 20px 20px 8px;
}

.page-header .dashboard-header {
  margin-bottom: 0;
}

.dashboard-page {
  min-height: calc(100vh - 60px);
  background: transparent;
  padding: 40px 20px;
  overflow-x: hidden;
}

.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
}

.dashboard-header {
  text-align: center;
  margin-bottom: 24px;
  background: var(--gradient-header);
  padding: 40px 20px;
  border-radius: 12px;
}

.dashboard-header h1 {
  font-size: 42px;
  color: var(--background);
  margin-bottom: 10px;
  font-weight: bold;
}

.dashboard-header p {
  font-size: 18px;
  color: var(--background);
}

.dashboard-content {
  background: var(--background-50);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(var(--text-950-rgb), 0.08);
}

.welcome-card {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 2px solid var(--primary-500);
}

.welcome-card h2 {
  font-size: 28px;
  color: var(--background-800);
  margin-bottom: 15px;
  font-weight: bold;
}

.welcome-card p {
  font-size: 16px;
  color: var(--text-500);
  margin-bottom: 15px;
}

.dashboard-list {
  list-style: none;
  padding-left: 0;
  margin: 15px 0;
}

.dashboard-list li {
  font-size: 15px;
  color: var(--text-500);
  line-height: 1.8;
  padding-left: 0;
  margin-bottom: 10px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.dashboard-card {
  background: var(--status-warning-border);
  border-left: 5px solid var(--primary-500);
  padding: 30px;
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(var(--primary-500-rgb), 0.15);
}

.dashboard-card h3 {
  font-size: 20px;
  color: var(--background-800);
  margin-bottom: 12px;
  font-weight: bold;
}

.dashboard-card p {
  font-size: 14px;
  color: var(--text-500);
  margin-bottom: 20px;
  line-height: 1.6;
}

.dashboard-btn {
  background-color: var(--primary-500);
  color: var(--text-50);
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  width: 100%;
}

.dashboard-btn:hover {
  background-color: var(--primary-600);
}

@media (max-width: 768px) {
  .dashboard-page {
    padding: 20px;
  }

  .dashboard-header h1 {
    font-size: 32px;
    color: var(--primary-50);
  }

  .dashboard-header p {
    font-size: 15px;
    color: var(--primary-50);
  }

  .dashboard-content {
    padding: 20px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .welcome-card h2 {
    font-size: 24px;
  }

  .welcome-card p {
    font-size: 14px;
  }

  .dashboard-card {
    padding: 25px 20px;
  }

  .dashboard-card h3 {
    font-size: 18px;
  }

  .dashboard-card p {
    font-size: 14px;
  }

  .dashboard-btn {
    font-size: 14px;
    padding: 10px 18px;
  }
}

@media (max-width: 480px) {
  .dashboard-page {
    padding: 15px;
  }

  .dashboard-header h1 {
    font-size: 28px;
    color: var(--primary-50);
  }

  .dashboard-header p {
    font-size: 14px;
    color: var(--primary-50);
  }

  .dashboard-content {
    padding: 15px;
  }

  .welcome-card h2 {
    font-size: 20px;
  }

  .dashboard-card {
    padding: 20px 15px;
  }

  .dashboard-card h3 {
    font-size: 17px;
  }

  .dashboard-card p {
    font-size: 13px;
  }

  .dashboard-btn {
    font-size: 13px;
    padding: 9px 16px;
  }

  .dashboard-grid {
    gap: 15px;
  }
}

/* Global Mobile Styles */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 36px;
  }

  .subtitle {
    font-size: 18px;
  }

  .card-container {
    flex-direction: column;
    width: 100%;
    padding: 0 20px;
  }

  .card {
    width: 100%;
    padding: 25px;
  }

  .btn-login {
    padding: 6px 14px;
    font-size: 14px;
  }

  .user-circle {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .dropdown-menu {
    width: 180px;
  }

  .dropdown-item {
    padding: 12px 14px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 30px 15px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .subtitle {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .card-container {
    padding: 0 15px;
  }

  .card {
    padding: 20px;
  }

  .card h2 {
    font-size: 20px;
  }

  .card p {
    font-size: 14px;
  }

  .btn-login {
    padding: 5px 12px;
    font-size: 13px;
  }

  .user-circle {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .dropdown-menu {
    width: 160px;
  }

  .dropdown-item {
    padding: 10px 12px;
    font-size: 13px;
  }

  .footer {
    padding: 30px 15px;
  }

  .footer-container {
    flex-direction: column;
    gap: 20px;
  }

  .footer-section h4 {
    font-size: 16px;
  }

  .footer-section p,
  .footer-section a {
    font-size: 13px;
  }
}

/* About, Contact, Legal, Privacy, Terms, Cookies: responsive polish */
@media (min-width: 481px) and (max-width: 1024px) {
  .about-hero,
  .contact-hero {
    padding: 70px 20px;
  }

  .about-hero h1,
  .contact-hero h1 {
    font-size: 36px;
  }

  .about-hero p,
  .contact-hero p {
    font-size: 16px;
  }

  .about-content,
  .contact-content,
  .terms-page,
  .privacy-page,
  .legal-page,
  .cookies-page {
    padding: 50px 20px;
  }

  .about-container,
  .terms-container,
  .privacy-container,
  .legal-container,
  .cookies-container,
  .contact-container {
    max-width: 900px;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-methods h2,
  .contact-form-section h2,
  .terms-header h1,
  .privacy-header h1,
  .legal-header h1,
  .cookies-header h1 {
    font-size: 32px;
  }

  .about-section,
  .terms-content,
  .privacy-content,
  .legal-content,
  .cookies-content,
  .contact-form {
    padding: 28px 24px;
  }

  .contact-method {
    padding: 22px;
  }
}

@media (max-width: 480px) {
  .about-hero,
  .contact-hero {
    padding: 60px 15px;
  }

  .about-hero h1,
  .contact-hero h1,
  .terms-header h1,
  .privacy-header h1,
  .legal-header h1,
  .cookies-header h1 {
    font-size: 26px;
  }

  .about-hero p,
  .contact-hero p,
  .terms-intro p,
  .privacy-intro p,
  .legal-intro p,
  .cookies-intro p {
    font-size: 14px;
  }

  .about-content,
  .contact-content,
  .terms-page,
  .privacy-page,
  .legal-page,
  .cookies-page {
    padding: 35px 15px;
  }

  .about-section,
  .terms-content,
  .privacy-content,
  .legal-content,
  .cookies-content,
  .contact-form {
    padding: 20px 16px;
    border-radius: 8px;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-method {
    padding: 18px;
  }

  .contact-method h3,
  .about-section h2,
  .terms-section h2,
  .privacy-section h2,
  .legal-section h2,
  .cookies-section h2 {
    font-size: 18px;
  }

  .terms-section p,
  .privacy-section p,
  .legal-section p,
  .cookies-section p,
  .contact-method p,
  .about-section p {
    font-size: 13px;
  }

  .terms-list li,
  .privacy-list li,
  .legal-list li,
  .cookies-list li,
  .about-list li {
    font-size: 13px;
    line-height: 1.6;
  }
}

/* Stronger mobile-first polish for legal/info pages */
@media (min-width: 481px) and (max-width: 1024px) {
  .terms-container,
  .privacy-container,
  .legal-container,
  .cookies-container,
  .about-container,
  .contact-container {
    width: 100%;
    max-width: 1000px;
  }

  .terms-header,
  .privacy-header,
  .legal-header,
  .cookies-header {
    margin-bottom: 28px;
  }

  .terms-content,
  .privacy-content,
  .legal-content,
  .cookies-content,
  .about-section,
  .contact-form,
  .contact-method {
    padding: 26px 22px;
    border-radius: 12px;
  }

  .terms-section h2,
  .privacy-section h2,
  .legal-section h2,
  .cookies-section h2,
  .about-section h2 {
    font-size: 20px;
  }

  .terms-section p,
  .privacy-section p,
  .legal-section p,
  .cookies-section p,
  .about-section p,
  .contact-method p {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .terms-page,
  .privacy-page,
  .legal-page,
  .cookies-page,
  .about-content,
  .contact-content {
    padding: 28px 12px;
  }

  .terms-header h1,
  .privacy-header h1,
  .legal-header h1,
  .cookies-header h1,
  .about-hero h1,
  .contact-hero h1 {
    font-size: 22px;
  }

  .terms-subtitle,
  .privacy-subtitle,
  .legal-subtitle,
  .cookies-subtitle {
    font-size: 12px;
  }

  .terms-content,
  .privacy-content,
  .legal-content,
  .cookies-content,
  .about-section,
  .contact-form,
  .contact-method {
    padding: 18px 14px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(var(--text-950-rgb), 0.06);
  }

  .terms-section h2,
  .privacy-section h2,
  .legal-section h2,
  .cookies-section h2,
  .about-section h2,
  .contact-method h3 {
    font-size: 17px;
  }

  .terms-section p,
  .privacy-section p,
  .legal-section p,
  .cookies-section p,
  .about-section p,
  .contact-method p,
  .terms-intro p,
  .privacy-intro p,
  .legal-intro p,
  .cookies-intro p {
    font-size: 13px;
    line-height: 1.6;
  }

  .terms-list li,
  .privacy-list li,
  .legal-list li,
  .cookies-list li,
  .about-list li {
    font-size: 13px;
    line-height: 1.6;
  }
}

@media (prefers-color-scheme: light) {
  :root {
    --text: #0e0c13;
    --background: #f4f2f8;
    --primary: #013a5b;
    --secondary: #00a4e6;
    --accent: #ffc105;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #eeecf3;
    --background: #09070d;
    --primary: #a4ddfe;
    --secondary: #1abeff;
    --accent: #fabb00;
  }
}

/* Theme palette */
:root,
:root[data-theme="light"] {
  --text: #0e0c13;
  --background: #f4f2f8;
  --primary: #013a5b;
  --secondary: #00a4e6;
  --accent: #ffc105;

  --text-50: #ffffff;
  --text-100: #f4f2f8;
  --text-200: #e6e1ef;
  --text-300: #c8c1d6;
  --text-400: #9c93b2;
  --text-500: #6f6684;
  --text-600: #4c435f;
  --text-700: #342b46;
  --text-800: #211a2f;
  --text-900: #0e0c13;
  --text-950: #09070d;
  --text-950-rgb: 9, 7, 13;

  --background-50: #ffffff;
  --background-100: #f9f7fb;
  --background-200: #f4f2f8;
  --background-300: #e7e3f0;
  --background-400: #d4cfe3;
  --background-500: #b9b1cd;
  --background-600: #9a90b3;
  --background-700: #6f6686;
  --background-800: #2c2639;
  --background-900: #1a1524;
  --background-950: #0e0c13;
  --background-50-rgb: 255, 255, 255;
  --background-800-rgb: 44, 38, 57;

  --primary-50: #e6f1f7;
  --primary-100: #cce3ef;
  --primary-200: #9ec7df;
  --primary-300: #70accf;
  --primary-400: #3d7fa8;
  --primary-500: #013a5b;
  --primary-600: #012f4a;
  --primary-700: #012439;
  --primary-800: #011b2b;
  --primary-900: #00101a;
  --primary-950: #000a10;
  --primary-500-rgb: 1, 58, 91;

  --secondary-50: #e6f7fe;
  --secondary-100: #cceefe;
  --secondary-200: #99dcfc;
  --secondary-300: #66c9fa;
  --secondary-400: #33b7f2;
  --secondary-500: #00a4e6;
  --secondary-600: #0083b8;
  --secondary-700: #00628a;
  --secondary-800: #00405c;
  --secondary-900: #00202e;
  --secondary-950: #00151f;
  --secondary-500-rgb: 0, 164, 230;

  --accent-50: #fff6d9;
  --accent-100: #ffedb3;
  --accent-200: #ffe080;
  --accent-300: #ffd34d;
  --accent-400: #ffc726;
  --accent-500: #ffc105;
  --accent-600: #d9a204;
  --accent-700: #b38203;
  --accent-800: #8c6302;
  --accent-900: #664501;
  --accent-950: #3b2800;
  --accent-500-rgb: 255, 193, 5;

  --status-success: #22a06b;
  --status-success-soft: #d9f3e8;
  --status-success-border: #9adcbc;
  --status-success-rgb: 34, 160, 107;
  --status-warning: #ffc105;
  --status-warning-border: #e0a900;
  --status-warning-soft: #fff1bf;
  --status-warning-rgb: 255, 193, 5;
  --status-danger: #e44c4c;
  --status-danger-border: #c13d3d;
  --status-danger-soft: #fde0e0;
  --status-danger-rgb: 228, 76, 76;
}

:root[data-theme="dark"] {
  --text: #eeecf3;
  --background: #09070d;
  --primary: #a4ddfe;
  --secondary: #1abeff;
  --accent: #fabb00;

  --text-50: #15121d;
  --text-100: #1b1724;
  --text-200: #221c2d;
  --text-300: #2a2337;
  --text-400: #342c43;
  --text-500: #4b405c;
  --text-600: #6a5a80;
  --text-700: #8d83aa;
  --text-800: #b9b2cf;
  --text-900: #eeecf3;
  --text-950: #ffffff;
  --text-950-rgb: 255, 255, 255;

  --background-50: #15121d;
  --background-100: #1b1724;
  --background-200: #221c2d;
  --background-300: #2a2337;
  --background-400: #3a3148;
  --background-500: #4b405c;
  --background-600: #6a5a80;
  --background-700: #8d83aa;
  --background-800: #eeecf3;
  --background-900: #f6f4fa;
  --background-950: #ffffff;
  --background-50-rgb: 21, 18, 29;
  --background-800-rgb: 238, 236, 243;

  --primary-50: #eef9ff;
  --primary-100: #d9f2ff;
  --primary-200: #b9e6ff;
  --primary-300: #8dd7ff;
  --primary-400: #6cc9ff;
  --primary-500: #a4ddfe;
  --primary-600: #7ec8ef;
  --primary-700: #5eb0d7;
  --primary-800: #3f8fb0;
  --primary-900: #2c6b86;
  --primary-950: #1a475c;
  --primary-500-rgb: 164, 221, 254;

  --secondary-50: #e9f9ff;
  --secondary-100: #d3f2ff;
  --secondary-200: #a8e6ff;
  --secondary-300: #7edaff;
  --secondary-400: #53ceff;
  --secondary-500: #1abeff;
  --secondary-600: #0e9fd6;
  --secondary-700: #0b7a9f;
  --secondary-800: #085568;
  --secondary-900: #043040;
  --secondary-950: #021b26;
  --secondary-500-rgb: 26, 190, 255;

  --accent-50: #fff6d9;
  --accent-100: #ffedb3;
  --accent-200: #ffe080;
  --accent-300: #ffd34d;
  --accent-400: #ffc726;
  --accent-500: #fabb00;
  --accent-600: #d49e00;
  --accent-700: #ae8100;
  --accent-800: #886400;
  --accent-900: #624700;
  --accent-950: #3a2a00;
  --accent-500-rgb: 250, 187, 0;

  --status-success: #2bc57a;
  --status-success-soft: #0f2a1f;
  --status-success-border: #1d7f52;
  --status-success-rgb: 43, 197, 122;
  --status-warning: #fabb00;
  --status-warning-border: #d49e00;
  --status-warning-soft: #332a12;
  --status-warning-rgb: 250, 187, 0;
  --status-danger: #ff6b6b;
  --status-danger-border: #d14d4d;
  --status-danger-soft: #2d1616;
  --status-danger-rgb: 255, 107, 107;

  --gradient-header: linear-gradient(135deg, #0a2a3f 0%, #0e6fa0 50%, #1abeff 100%);
  --gradient-footer: linear-gradient(160deg, #0a2a3f 0%, #0e6fa0 60%, #1abeff 110%);
}

/* Unified responsive styling for informational pages */
:root {
  --page-gutter: clamp(12px, 4vw, 24px);
  --page-max-width: 1100px;
  --page-card-radius: 14px;
  --page-card-padding: clamp(18px, 3.2vw, 40px);
  --font-body: 'Noto Sans Oriya', sans-serif;
  --font-heading: 'Noto Sans Oriya', sans-serif;
  --font-body: 'Reem Kufi', sans-serif;
  --font-heading: 'Reem Kufi', sans-serif;

  --gradient-page: radial-gradient(1200px circle at 15% -10%, rgba(var(--secondary-500-rgb), 0.18), transparent 60%),
    radial-gradient(900px circle at 85% -5%, rgba(var(--accent-500-rgb), 0.2), transparent 55%),
    linear-gradient(180deg, var(--background) 0%, var(--background) 100%);
  --gradient-hero: radial-gradient(1000px circle at 12% -10%, rgba(var(--secondary-500-rgb), 0.28), transparent 60%),
    radial-gradient(900px circle at 85% 0%, rgba(var(--accent-500-rgb), 0.25), transparent 58%),
    linear-gradient(180deg, var(--background) 0%, var(--background) 100%);
  --gradient-section: radial-gradient(900px circle at 12% -10%, rgba(var(--secondary-500-rgb), 0.16), transparent 60%),
    linear-gradient(180deg, var(--background) 0%, var(--background) 100%);
  --gradient-panel: linear-gradient(180deg, var(--background-50) 0%, var(--background-100) 100%);
  --gradient-header: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-footer: linear-gradient(160deg, var(--primary) 0%, var(--secondary) 110%);
}

.about-content,
.contact-content,
.terms-page,
.privacy-page,
.legal-page,
.cookies-page {
  padding: clamp(28px, 6vw, 70px) var(--page-gutter);
}

.about-container,
.contact-container,
.terms-container,
.privacy-container,
.legal-container,
.cookies-container {
  width: 100%;
  max-width: var(--page-max-width);
  margin: 0 auto;
}

.about-hero h1,
.contact-hero h1,
.terms-header h1,
.privacy-header h1,
.legal-header h1,
.cookies-header h1 {
  font-size: clamp(22px, 4.5vw, 42px);
}

.about-hero p,
.contact-hero p,
.terms-subtitle,
.privacy-subtitle,
.legal-subtitle,
.cookies-subtitle {
  font-size: clamp(12px, 2.5vw, 16px);
}

.terms-content,
.privacy-content,
.legal-content,
.cookies-content,
.about-section,
.contact-form,
.contact-method,
.subscription-content {
  padding: var(--page-card-padding);
  border-radius: var(--page-card-radius);
}

.terms-section h2,
.privacy-section h2,
.legal-section h2,
.cookies-section h2,
.about-section h2,
.contact-method h3 {
  font-size: clamp(17px, 2.8vw, 22px);
}

.terms-section p,
.privacy-section p,
.legal-section p,
.cookies-section p,
.about-section p,
.contact-method p,
.terms-list li,
.privacy-list li,
.legal-list li,
.cookies-list li,
.about-list li {
  font-size: clamp(13px, 2.2vw, 15px);
  line-height: 1.7;
}

.contact-container {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 60px);
}

@media (max-width: 1024px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
}


/* Account Pages Styles — NOTE: also defined in account-styles.css (duplicate) */
.account-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.loadboard-filters {
  background: var(--background-50);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid var(--background-100);
  box-shadow: 0 2px 8px rgba(var(--text-950-rgb), 0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  overflow: visible;
  position: relative;
}

.filters-header h3 {
  font-size: 24px;
  color: var(--background-800);
  margin: 0;
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
  align-items: end;
  overflow: visible;
}

.filter-row:last-child {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  overflow: visible;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: visible;
  position: relative;
}

.filter-group label {
  font-size: 12px;
  font-weight: 700;
  color: var(--background-800);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-select,
.filter-input {
  padding: 10px 12px;
  border: 1px solid var(--primary-500);
  border-radius: 6px;
  font-size: 14px;
  background: var(--background-50);
  transition: all 0.2s;
  color: var(--text-800);
}

.filter-select:focus,
.filter-input:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(var(--primary-500-rgb), 0.1);
  background: var(--background-50);
}

.filter-input::placeholder {
  color: var(--text-300);
  font-size: 13px;
}

.filter-date-range,
.filter-range {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.filter-group--date-range {
  grid-column: span 2;
}

.loadboard-filters .autocomplete-dropdown {
  z-index: 10150 !important;
}

.loadboard-filters .filter-group .autocomplete-dropdown {
  max-width: calc(100vw - 40px);
}

.filter-date-range .filter-input,
.filter-range .filter-input {
  flex: 1 1 auto;
  min-width: 90px;
  width: 110px;
  padding: 10px 12px;
  max-width: 140px;
}

.filter-date-range .filter-input {
  width: 140px;
  max-width: 160px;
}

.date-separator,
.range-separator {
  color: var(--text-500);
  font-weight: 600;
  flex-shrink: 0;
  font-size: 13px;
}

.filter-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
}

.loadboard-actions--extended {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  padding: 10px 0;
  grid-auto-flow: column;
}

.loadboard-actions--extended .btn-new-load,
.loadboard-actions--extended .loadboard-search,
.loadboard-actions--extended .loadboard-toggles {
  grid-row: 1;
}

.loadboard-search {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  grid-column: 3;
}

.loadboard-toggles {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  grid-column: 2;
}

@media (max-width: 1100px) {
  .loadboard-actions--extended {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .loadboard-search {
    width: 100%;
    justify-content: center;
  }
  .loadboard-toggles {
    width: 100%;
    justify-content: center;
  }

  .loadboard-search input {
    width: 100% !important;
    max-width: 320px;
  }

  .loadboard-actions--extended .btn-new-load {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
}

.toggle-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  color: var(--background-800);
}

.toggle-switch input {
  display: none;
}

.toggle-slider {
  width: 44px;
  height: 24px;
  background: var(--background-200);
  border-radius: 999px;
  position: relative;
  transition: background 0.2s ease;
  box-shadow: inset 0 0 0 1px rgba(var(--text-950-rgb), 0.08);
}

.toggle-slider::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: var(--background-50);
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 2px 4px rgba(var(--text-950-rgb), 0.15);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--primary-500);
}

.toggle-switch input:checked + .toggle-slider::after {
  transform: translateX(20px);
}

.toggle-label {
  font-size: 13px;
  font-weight: 700;
}

.stop-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stop-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  padding: 12px;
  border: 1px solid var(--background-100);
  border-radius: 10px;
  background: var(--background-50);
}

.stop-city-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.stop-city {
  flex: 1;
}

.stop-input {
  flex: 1;
}

.stop-actions {
  margin-top: 6px;
}

.btn-add-stop {
  background: var(--primary-50);
  border: 1px dashed var(--primary-500);
  color: var(--background-800);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
}

.btn-remove-stop {
  background: var(--background-50);
  border: 1px solid var(--background-200);
  color: var(--text-600);
  width: 30px;
  height: 30px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.stop-schedule {
  display: grid;
  grid-template-columns: 30% 70%;
  gap: 16px;
  align-items: start;
  width: 100%;
}

.stop-date,
.stop-appt {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.stop-time-range {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stop-time-range .stop-time-from,
.stop-time-range .stop-time-to {
  width: fit-content;
  max-width: fit-content;
}

.stop-exact-time {
  width: 120px;
  max-width: 50%;
}

.stop-actions-row {
  display: flex;
  justify-content: flex-start;
}

.stop-error-message {
  margin-top: 8px;
  color: var(--status-danger);
  font-size: 12px;
  font-weight: 600;
}

.btn-confirm-stop {
  background: var(--primary-500);
  color: var(--text-50);
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
}

.stop-summary {
  border: 1px solid var(--background-200);
  background: var(--background-50);
  padding: 12px 14px;
  border-radius: 10px;
  cursor: pointer;
}

.stop-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: var(--background-800);
  margin-bottom: 6px;
}

.stop-summary-action {
  color: var(--primary-500);
  font-size: 12px;
  font-weight: 700;
}

.stop-summary-body {
  color: var(--text-500);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

@media (max-width: 900px) {
  .stop-schedule {
    grid-template-columns: 1fr;
  }
}

.date-appt-group {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 16px;
  align-items: start;
}

.date-appt-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.appt-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 100px;
}

.appt-options label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background 0.2s ease;
  width: 100%;
  min-width: 0;
  flex-wrap: wrap;
  align-items: flex-start;
}

.appt-options label:hover {
  background: var(--primary-50);
}

.appt-options input[type="radio"] {
  margin: 0;
  width: 16px;
  height: 16px;
  min-width: 16px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  appearance: auto;
  display: inline-block;
  flex: 0 0 16px;
  vertical-align: middle;
}

.appt-options label span {
  display: inline;
  margin-left: 2px;
  text-align: left;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  flex: 1 1 0;
  min-width: 0;
}

@media (max-width: 900px) {
  .date-appt-group {
    grid-template-columns: 1fr;
  }
}

.filter-actions .btn-filter,
.filter-actions .btn-clear-filter {
  flex: 0 0 auto;
  min-width: 120px;
}

.btn-filter {
  min-height: 44px;
  padding: 0 20px;
  background: var(--secondary);
  color: var(--background);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
  white-space: nowrap;
  flex: 1;
  min-width: 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-filter:hover {
  background: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(var(--secondary-500-rgb), 0.2);
}

.btn-filter:active {
  transform: translateY(0);
}

.btn-clear-filter {
  min-height: 44px;
  padding: 0 20px;
  background: var(--background-100);
  color: var(--text);
  border: 1px solid var(--background-300);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
  white-space: nowrap;
  flex: 1;
  min-width: 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-clear-filter:hover {
  background: var(--background-200);
  border-color: var(--background-300);
  color: var(--text);
}

/* Autocomplete Component */
.autocomplete-wrapper {
  position: relative;
  width: 100%;
  z-index: 1;
}

.autocomplete-wrapper.autocomplete-open {
  z-index: 100;
}


.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--background-50);
  border: 1px solid var(--primary-500);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(var(--text-950-rgb), 0.15);
  max-height: 280px;
  overflow-y: auto;
  z-index: 30000;
  padding: 4px 0;
  min-width: 200px;
  pointer-events: auto;
}

.modal .autocomplete-dropdown {
  z-index: 30010;
}

.autocomplete-item {
  padding: 12px 16px;
  cursor: pointer;
  font-size: 14px;
  color: var(--background-800);
  transition: background 0.15s ease;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
  background: var(--status-warning-border);
}

.autocomplete-item:active {
  background: var(--status-warning-border);
}

.autocomplete-dropdown::-webkit-scrollbar {
  width: 6px;
}

.autocomplete-dropdown::-webkit-scrollbar-track {
  background: var(--background-50);
  border-radius: 4px;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb {
  background: var(--text-200);
  border-radius: 4px;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb:hover {
  background: var(--text-300);
}

.loadboard-container {
  background: var(--background-50);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(var(--text-950-rgb), 0.05);
  padding: 20px;
}

.loadboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--background-50);
}

.loadboard-header h2 {
  color: var(--background-800);
  font-size: 24px;
  margin: 0;
}

.load-count {
  color: var(--text-500);
  font-size: 14px;
  font-weight: 500;
}

.loadboard-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.load-card {
  border: 1px solid var(--background-100);
  border-radius: 8px;
  padding: 16px;
  background: var(--background-50);
  position: relative;
  overflow: visible;
  transition: transform 0.2s, box-shadow 0.2s;
}

.load-card.collapsible {
  cursor: pointer;
}

.load-card.collapsible .load-actions,
.load-card.collapsible button,
.load-card.collapsible a {
  cursor: pointer;
}

.load-card.collapsible input,
.load-card.collapsible select,
.load-card.collapsible textarea {
  cursor: text;
}


.load-card .load-details,
.load-card .load-extra-stops,
.load-card .trip-details-grid {
  max-height: 900px;
  opacity: 1;
  transform: translateY(0);
  transition: max-height 0.25s ease, opacity 0.2s ease, transform 0.2s ease;
  overflow: hidden;
}

.load-card:not(.collapsed) .load-details {
  overflow: visible;
}

.load-card:not(.collapsed) .trip-details-grid {
  overflow: visible;
}

.load-card.collapsed .load-details,
.load-card.collapsed .load-extra-stops,
.load-card.collapsed .trip-details-grid {
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  border: 0;
}

.load-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(var(--primary-500-rgb), 0.1);
  border-color: var(--primary-500);
  z-index: 10;
}

/* Match Badge Styling */
.match-badge {
  position: absolute;
  top: auto;
  right: 14px;
  bottom: 14px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--status-warning) 0%, var(--status-warning) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(var(--accent-500-rgb), 0.4);
  z-index: 2;
  transition: transform 0.2s, box-shadow 0.2s;
}

.match-badge:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(var(--accent-500-rgb), 0.6);
}

.match-icon {
  display: block;
}

.match-tooltip {
  display: none;
  position: absolute;
  bottom: 45px;
  right: 0;
  background: var(--background-50);
  border: 1px solid var(--background-200);
  border-radius: 8px;
  padding: 10px 12px;
  min-width: 200px;
  max-width: calc(100vw - 40px);
  box-shadow: 0 4px 12px rgba(var(--text-950-rgb), 0.15);
  z-index: 1000;
  font-size: 12px;
  text-align: left;
  word-wrap: break-word;
}

.match-badge:hover .match-tooltip {
  display: block;
}

.tooltip-header {
  font-weight: bold;
  color: var(--primary-500);
  margin-bottom: 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--background-100);
}

.tooltip-content {
  color: var(--text-600);
}

.tooltip-content strong {
  display: block;
  color: var(--background-800);
  margin-bottom: 4px;
}

.tooltip-content p {
  margin: 3px 0;
  font-size: 11px;
}

.tooltip-id {
  font-weight: bold;
  color: var(--primary-500);
  margin-bottom: 6px !important;
  font-size: 12px !important;
}

.load-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.load-id {
  font-weight: 700;
  color: var(--background-800);
  font-size: 14px;
}

.load-status {
  padding: 3px 10px;
  border-radius: 18px;
  font-size: 11px;
  font-weight: 600;
  position: relative;
}

.load-status.active {
  background: var(--status-success-soft);
  color: var(--status-success);
}

.load-status.pending {
  background: var(--status-warning-soft);
  color: var(--status-warning);
}

.load-status.archived {
  background: var(--status-danger-soft);
  color: var(--status-danger);
}

.status-tooltip {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.3;
  white-space: normal;
  max-width: calc(100vw - 40px);
  word-wrap: break-word;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  box-shadow: 0 8px 16px rgba(var(--text-950-rgb), 0.12);
  z-index: 5;
}

.load-status:hover .status-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.status-tooltip--active {
  background: var(--status-success-soft);
  color: var(--status-success);
}

.status-tooltip--pending {
  background: var(--status-warning-soft);
  color: var(--status-warning);
}

.status-tooltip--archived {
  background: var(--status-danger-soft);
  color: var(--status-danger);
}

/* ── Verification Badge (same style as load-status) ── */
.verification-badge {
  padding: 3px 10px;
  border-radius: 18px;
  font-size: 11px;
  font-weight: 600;
  position: relative;
  white-space: nowrap;
  cursor: default;
}

.verification-badge.vb-verified {
  background: var(--status-success-soft);
  color: var(--status-success);
}

.verification-badge.vb-unverified {
  background: var(--status-warning-soft);
  color: var(--status-warning);
}

.verification-badge .vb-tooltip {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.3;
  white-space: normal;
  max-width: calc(100vw - 40px);
  word-wrap: break-word;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  box-shadow: 0 8px 16px rgba(var(--text-950-rgb), 0.12);
  z-index: 5;
}

.verification-badge:hover .vb-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.verification-badge.vb-verified .vb-tooltip {
  background: var(--status-success-soft);
  color: var(--status-success);
}

.verification-badge.vb-unverified .vb-tooltip {
  background: var(--status-warning-soft);
  color: var(--status-warning);
}

.load-header .verification-badge {
  margin-left: auto;
  margin-right: 6px;
  flex-shrink: 0;
}

#chat-recipient .verification-badge {
  display: inline-flex;
  vertical-align: middle;
  margin-left: 6px;
}

.detail-text {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 18px;
  font-size: 11px;
  font-weight: 600;
  background: var(--background-100);
  color: var(--text-600);
  z-index: 2;
}

.detail-tooltip {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.3;
  white-space: normal;
  max-width: calc(100vw - 40px);
  word-wrap: break-word;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  box-shadow: 0 8px 16px rgba(var(--text-950-rgb), 0.12);
  z-index: 6;
}

.detail-text:hover .detail-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.detail-tooltip--neutral {
  background: var(--background-100);
  color: var(--text-600);
}

.load-route {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  padding: 15px;
  background: var(--background-50);
  border-radius: 6px;
  position: relative;
}

.route-point {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  flex: 1;
}

.route-icon {
  font-size: 20px;
}

.route-point strong {
  display: block;
  color: var(--background-800);
  font-size: 15px;
  margin-bottom: 2px;
}

.route-date {
  color: var(--text-500);
  font-size: 13px;
  margin: 0;
}

.route-arrow {
  color: var(--primary-500);
  font-size: 20px;
  font-weight: bold;
}

.load-details {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
}

.load-extra-stops {
  margin-top: 8px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  background: var(--background-50);
  border: 1px dashed var(--background-200);
  border-radius: 8px;
  position: relative;
  z-index: 1;
}

.load-extra-stops .stop-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  align-items: center;
  font-size: 12px;
  color: var(--text-600);
}

.load-extra-stops .stop-label {
  font-weight: 700;
  color: var(--background-800);
}

.load-extra-stops .stop-city {
  font-weight: 600;
}

.load-extra-stops .stop-appt {
  grid-column: 2 / 3;
  color: var(--text-500);
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-500);
  font-size: 13px;
  position: relative;
  z-index: 0;
}

.detail-item:hover {
  z-index: 5;
}

.detail-icon {
  font-size: 16px;
}

:root[data-theme="dark"] .detail-item {
  color: #b0b0b0;
}

:root[data-theme="dark"] .detail-text {
  color: #c0c0c0;
  background: var(--background-200);
}

:root[data-theme="dark"] .route-point strong {
  color: #e8e8e8;
}

:root[data-theme="dark"] .route-date {
  color: #a0a0a0;
}

:root[data-theme="dark"] .load-id {
  color: #e0e0e0;
}

:root[data-theme="dark"] .tooltip-content {
  color: #b0b0b0;
}

:root[data-theme="dark"] .tooltip-content strong {
  color: #e0e0e0;
}

:root[data-theme="dark"] .detail-tooltip--neutral {
  color: #b0b0b0;
}

:root[data-theme="dark"] .load-extra-stops .stop-item {
  color: #b0b0b0;
}

:root[data-theme="dark"] .load-extra-stops .stop-label {
  color: #e0e0e0;
}

:root[data-theme="dark"] .load-extra-stops .stop-appt {
  color: #a0a0a0;
}

.load-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.btn-load-details {
  padding: 8px 16px;
  background: var(--background-50);
  color: var(--primary-500);
  border: 1px solid var(--primary-500);
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
}

.btn-load-details:hover {
  background: var(--status-warning-border);
}

.btn-load-details.btn-offer-review {
  background: var(--status-success);
  color: var(--background-50);
  border: 1px solid var(--status-success);
  box-shadow: 0 6px 16px rgba(var(--status-success-rgb), 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s, color 0.2s;
}

.btn-load-details.btn-offer-review:hover {
  background: var(--status-success);
  color: var(--background-50);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(var(--status-success-rgb), 0.45);
}

.btn-load-contact {
  padding: 8px 16px;
  background: var(--primary-500);
  color: var(--text-50);
  border: 1px solid var(--primary-500);
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  box-shadow: 0 4px 10px rgba(var(--primary-500-rgb), 0.35);
}

.btn-load-contact:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 6px 14px rgba(var(--primary-500-rgb), 0.45);
}

.loadboard-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--background-100);
}

/* Pagination buttons */
.btn-page {
  background: var(--primary-500);
  color: var(--background-50);
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.05s ease, opacity 0.2s ease;
}

.btn-page:hover:not(:disabled) {
  background: var(--primary-500);
  color: var(--background-50);
  box-shadow: 0 4px 12px rgba(var(--primary-500-rgb), 0.25);
}

.btn-page:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(var(--status-success-rgb), 0.25);
}

.btn-page:focus-visible {
  outline: 3px solid rgba(var(--status-success-rgb), 0.35);
  outline-offset: 2px;
}

.btn-page:disabled {
  background: var(--background-100);
  color: var(--text-400);
  cursor: not-allowed;
  box-shadow: none;
}

.page-info {
  color: var(--text-500);
  font-size: 14px;
}

/* ══════════════ Document Verification Section ══════════════ */

.doc-verification__intro {
  color: var(--text-600);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 24px;
  padding: 0 4px;
}

.doc-item {
  background: var(--background-100);
  border: 1px solid var(--background-200);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.doc-item:hover {
  border-color: var(--primary-300);
  box-shadow: 0 2px 12px rgba(var(--primary-500-rgb), 0.08);
}

.doc-item__header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.doc-item__number {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-500);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.doc-item__info {
  flex: 1;
}

.doc-item__info h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-900);
}

.doc-item__info p {
  margin: 0;
  font-size: 14px;
  color: var(--text-500);
  line-height: 1.5;
}

.doc-item__checklist {
  list-style: disc;
  margin: 8px 0 0 18px;
  padding: 0;
  font-size: 14px;
  color: var(--text-500);
  line-height: 1.7;
}

.doc-item__badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}

.doc-badge--pending {
  background: var(--background-200);
  color: var(--text-500);
}

.doc-badge--uploaded {
  background: rgba(var(--status-success-rgb), 0.12);
  color: var(--status-success);
}

.doc-badge--verified {
  background: rgba(var(--status-success-rgb), 0.18);
  color: var(--status-success);
  font-weight: 700;
}

.doc-badge--rejected {
  background: rgba(var(--status-error-rgb), 0.12);
  color: var(--status-error);
}

.doc-item__upload {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--background-200);
}

.doc-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 8px;
  background: var(--primary-500);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease, box-shadow .2s ease;
}

.doc-upload-btn:hover {
  background: var(--primary-600);
  box-shadow: 0 2px 8px rgba(var(--primary-500-rgb), 0.25);
}

.doc-item__filename {
  font-size: 13px;
  color: var(--text-600);
  font-weight: 500;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.doc-item__hint {
  font-size: 12px;
  color: var(--text-400);
  margin-left: auto;
}

.doc-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-700);
  cursor: pointer;
}

.doc-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-500);
  cursor: pointer;
  flex-shrink: 0;
}

.doc-verification__legal-note {
  margin: 24px 0 0;
  padding: 16px;
  background: rgba(var(--accent-500-rgb, 255, 183, 77), 0.08);
  border-left: 4px solid var(--accent-500);
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  color: var(--text-500);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .loadboard-filters {
    flex-direction: column;
  }

  .filter-group {
    width: 100%;
  }

  .load-route {
    flex-direction: column;
    gap: 10px;
  }

  .route-arrow {
    transform: rotate(90deg);
  }

  .load-actions {
    flex-direction: column;
  }

  .btn-load-details,
  .btn-load-contact {
    width: 100%;
  }

  /* Document Verification responsive */
  .doc-item__header {
    flex-direction: column;
    gap: 10px;
  }

  .doc-item__badge {
    align-self: flex-start;
  }

  .doc-item__upload {
    flex-direction: column;
    align-items: flex-start;
  }

  .doc-item__hint {
    margin-left: 0;
  }
}

/* Provider Loadboard Specific Styles */
.loadboard-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--background-50);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(var(--text-950-rgb), 0.05);
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.loadboard-actions.loadboard-actions--extended {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}

@media (max-width: 768px) {
  .loadboard-actions,
  .loadboard-actions.loadboard-actions--extended {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px;
  }

  .loadboard-actions .loadboard-search,
  .loadboard-actions .loadboard-toggles {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .loadboard-actions .loadboard-search input {
    width: 100% !important;
    max-width: 100% !important;
  }

  .loadboard-actions .loadboard-search button,
  .loadboard-actions .btn-new-load {
    width: 100%;
  }

  .loadboard-actions .toggle-switch {
    width: 100%;
  }
}

.btn-new-load {
  padding: 12px 24px;
  background: var(--status-warning);
  color: var(--background-800);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, transform 0.2s;
}

.btn-new-load:hover {
  background: var(--status-warning);
  transform: translateY(-2px);
}

.btn-new-load span {
  font-size: 20px;
}

.load-stats {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.stat-number {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-500);
}

.stat-label {
  font-size: 13px;
  color: var(--text-500);
  text-transform: uppercase;
  font-weight: 600;
}

.provider-load {
  border-left: 4px solid var(--primary-500);
}

.trip-card {
  border-left: 4px solid var(--primary-500);
}

.trip-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--background-200);
}

.trip-details-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.trip-col-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px 0;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--background-200);
}

@media (max-width: 600px) {
  .trip-details-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.provider-load .match-badge {
  top: 50%;
  right: 16px;
  bottom: auto;
  left: auto;
  transform: translateY(-50%);
}

.load-status.offers {
  background: var(--status-warning-soft);
  color: var(--status-warning);
}

.load-status.assigned {
  background: var(--primary-100);
  color: var(--primary-800);
}

.load-status.completed {
  background: var(--status-success-soft);
  color: var(--status-success);
}

.offers-badge {
  background: var(--status-warning-soft);
  color: var(--status-warning);
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 13px;
}

.offers-badge.highlight {
  background: var(--status-danger-soft);
  color: var(--status-danger);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.btn-load-offers {
  padding: 8px 16px;
  background: var(--status-warning);
  color: var(--text-950);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s;
}

.btn-load-offers:hover {
  background: var(--status-warning);
}

.btn-load-offers.highlight {
  background: var(--status-danger);
  color: var(--text-50);
  animation: pulse 2s infinite;
}

.btn-load-edit {
  padding: 8px 16px;
  background: var(--background-50);
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
}

.btn-load-edit:hover {
  background: var(--background-50);
  color: var(--secondary);
  border-color: var(--secondary);
}

.btn-load-restore {
  padding: 8px 16px;
  background: var(--background-50);
  color: var(--status-success);
  border: 1px solid var(--status-success);
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
}

.btn-load-restore:hover {
  background: var(--status-success);
  color: var(--text-50);
}

.btn-load-delete {
  padding: 8px 16px;
  background: var(--background-50);
  color: var(--status-danger);
  border: 1px solid var(--status-danger);
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
}

.btn-load-delete[data-confirming="true"] {
  background: var(--status-danger);
  color: var(--text-50);
}

.btn-load-delete:hover {
  background: var(--status-danger);
  color: var(--text-50);
}

.btn-trip-finish[data-confirming="true"] {
  background: var(--status-danger);
  color: var(--text-50);
  border-color: var(--status-danger);
  box-shadow: 0 4px 10px rgba(var(--status-danger-rgb), 0.35);
}

.btn-trip-finish {
  padding: 8px 16px;
  background: var(--primary-500);
  color: var(--text-50);
  border: 1px solid var(--primary-500);
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  box-shadow: 0 4px 10px rgba(var(--primary-500-rgb), 0.35);
}

.btn-trip-finish:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 6px 14px rgba(var(--primary-500-rgb), 0.45);
}

.btn-load-track {
  padding: 8px 16px;
  background: var(--secondary-500);
  color: var(--text-950);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s;
}

.btn-load-track:hover {
  background: var(--secondary-500);
}

.btn-load-offer {
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--status-success) 0%, var(--status-success) 100%);
  color: var(--background-50);
  border: 1px solid var(--status-success);
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  box-shadow: 0 4px 10px rgba(var(--status-success-rgb), 0.35);
}

.btn-load-offer:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 6px 14px rgba(var(--status-success-rgb), 0.45);
}

.btn-load-invoice {
  padding: 8px 16px;
  background: var(--text-500);
  color: var(--text-50);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s;
}

.btn-load-invoice:hover {
  background: var(--text-500);
}

@media (max-width: 768px) {
  .loadboard-actions {
    flex-direction: column;
  }

  .load-stats {
    width: 100%;
    justify-content: space-around;
  }

  .stat-item {
    flex: 1;
  }
}

/* Modal Forms (for load/vehicle publications) */
.modal-form {
  max-width: 600px;
  position: relative;
}

.preset-bubbles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preset-bubbles--outside {
  margin-bottom: 12px;
}

.preset-bubble {
  border: none;
  border-radius: 999px;
  padding: 6px 8px 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--background-50);
  cursor: default;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(var(--text-950-rgb), 0.12);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.preset-bubble:hover {
  transform: translateY(-1px);
}

.preset-bubble-label {
  cursor: pointer;
}

.preset-bubble-delete {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: none;
  background: rgba(var(--background-50-rgb), 0.25);
  color: var(--background-50);
  font-size: 14px;
  line-height: 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.preset-bubble-delete:hover {
  background: rgba(var(--background-50-rgb), 0.4);
}

.preset-inputs {
  gap: 16px;
  align-items: flex-end;
  margin-top: 10px;
}

.preset-modal {
  position: fixed;
  inset: 0;
  background: rgba(var(--background-800-rgb), 0.35);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10050;
  pointer-events: none;
}

.preset-modal.is-open {
  display: flex;
  pointer-events: auto;
}

.preset-modal-card {
  background: var(--primary-50);
  border-radius: 14px;
  padding: 20px;
  width: min(420px, 90%);
  box-shadow: 0 12px 28px rgba(var(--text-950-rgb), 0.16);
  border: 1px solid var(--primary-500);
}

.preset-modal-card h3 {
  margin-bottom: 12px;
  color: var(--background-800);
  font-size: 18px;
  font-weight: 700;
}

.preset-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 14px;
}

.preset-modal-actions .btn-cancel,
.preset-modal-actions .btn-submit {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.preset-modal-actions .btn-cancel {
  background: var(--background-100);
  color: var(--text);
  border: 1px solid var(--background-300);
}

.preset-modal-actions .btn-cancel:hover {
  background: var(--background-200);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(var(--text-950-rgb), 0.08);
}

.preset-modal-actions .btn-submit {
  background: var(--secondary);
  color: var(--background);
  border: none;
}

.preset-modal-actions .btn-submit:hover {
  background: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(var(--secondary-500-rgb), 0.25);
}

.preset-input {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.preset-input--color {
  flex: 0 0 auto;
  margin-top: 10px;
}

.preset-input label {
  font-size: 13px;
  font-weight: 700;
  color: var(--background-800);
  margin-bottom: 4px;
}

.preset-input input[type="text"] {
  padding: 10px 12px;
  border: 2px solid var(--primary-500);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: var(--background-50);
}

.preset-color-input {
  -webkit-appearance: none;
  appearance: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid var(--primary-500);
  background: transparent;
  cursor: pointer;
}

.preset-color-input::-webkit-color-swatch-wrapper {
  padding: 2px;
}

.preset-color-input::-webkit-color-swatch {
  border: none;
  border-radius: 50%;
}

.preset-color-input::-moz-color-swatch {
  border: none;
  border-radius: 50%;
}


.btn-save-preset {
  background: var(--background-100);
  color: var(--text);
  border: 1px solid var(--background-300);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}


.btn-save-preset:hover {
  background: var(--background-200);
  color: var(--text);
  border-color: var(--background-300);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 30px;
  color: var(--text-300);
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--text-800);
}

.modal-form h2 {
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--primary-500);
}

.form-group {
  margin-bottom: 18px;
  position: relative;
  overflow: visible;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  color: var(--background-800);
  font-weight: 600;
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--primary-500);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-500);
}

.form-group textarea {
  resize: vertical;
  min-height: 60px;
}

.modal-form .chat-message-input {
  width: 100%;
  height: 140px;
  min-height: 140px;
  max-height: 140px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--background-100);
  font-size: 15px;
  line-height: 1.4;
  resize: none;
  background: var(--background-50);
  box-shadow: inset 0 1px 2px rgba(var(--text-950-rgb), 0.06);
}

.modal-form .chat-message-input:focus {
  outline: none;
  border-color: var(--primary-500);
  background: var(--background-50);
  box-shadow: 0 0 0 3px rgba(var(--primary-500-rgb), 0.15);
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 2px solid var(--primary-500);
}

.form-actions .btn-cancel,
.form-actions .btn-submit,
.form-actions .btn-save-preset {
  flex: 1;
  min-height: 44px;
  padding: 0 20px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  vertical-align: middle;
}

.form-actions .btn-cancel {
  background: var(--background-100);
  color: var(--text);
  border: 1px solid var(--background-300);
}

.form-actions .btn-cancel:hover {
  background: var(--background-200);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(var(--text-950-rgb), 0.08);
}

.form-actions .btn-submit {
  background: var(--secondary);
  color: var(--background);
}  
.form-actions .btn-save-preset {
  background: var(--background-100);
  color: var(--text);
  border: 1px solid var(--background-300);
}

.form-actions .btn-submit:hover {
  background: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(var(--secondary-500-rgb), 0.25);
}

.form-actions .btn-save-preset:hover {
  background: var(--background-200);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(var(--text-950-rgb), 0.08);
}

/* Unified button system */
:root {
  --btn-height: 44px;
  --btn-radius: 10px;
  --btn-padding: 0 18px;
  --btn-font-size: 14px;
  --btn-font-weight: 600;
}

.btn-login,
.btn-login-submit,
.btn-signup,
.btn-google,
.btn-subscribe,
.btn-back,
.btn-new-load,
.btn-filter,
.btn-clear-filter,
.btn-load-details,
.btn-load-contact,
.btn-load-edit,
.btn-load-restore,
.btn-load-offers,
.btn-load-track,
.btn-load-invoice,
.btn-load-offer,
.btn-load-delete,
.btn-page,
.btn-save-preset,
.btn-add-stop,
.btn-remove-stop,
.btn-confirm-stop,
.contact-form .btn-submit,
.offer-actions .btn-cancel,
.offer-actions .btn-submit,
.offer-actions .btn-save,
.preset-modal-actions .btn-cancel,
.preset-modal-actions .btn-submit,
.form-actions .btn-cancel,
.form-actions .btn-submit,
.form-actions .btn-save-preset {
  min-height: var(--btn-height);
  padding: var(--btn-padding);
  border-radius: var(--btn-radius);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-login,
.btn-login-submit,
.btn-signup,
.btn-google,
.btn-subscribe,
.btn-back,
.btn-new-load,
.btn-filter,
.btn-clear-filter,
.btn-load-details,
.btn-load-contact,
.btn-load-edit,
.btn-load-restore,
.btn-load-offers,
.btn-load-track,
.btn-load-invoice,
.btn-page,
.btn-save-preset,
.btn-add-stop,
.btn-remove-stop,
.btn-confirm-stop,
.contact-form .btn-submit,
.offer-actions .btn-cancel,
.preset-modal-actions .btn-cancel,
.preset-modal-actions .btn-submit,
.form-actions .btn-cancel,
.form-actions .btn-submit,
.form-actions .btn-save-preset {
  background: var(--primary);
  color: var(--background);
  border: 1px solid var(--primary);
}

.btn-login:hover,
.btn-login-submit:hover,
.btn-signup:hover,
.btn-google:hover,
.btn-subscribe:hover,
.btn-back:hover,
.btn-new-load:hover,
.btn-filter:hover,
.btn-clear-filter:hover,
.btn-load-details:hover,
.btn-load-contact:hover,
.btn-load-edit:hover,
.btn-load-restore:hover,
.btn-load-offers:hover,
.btn-load-track:hover,
.btn-load-invoice:hover,
.btn-page:hover:not(:disabled),
.btn-save-preset:hover,
.btn-add-stop:hover,
.btn-remove-stop:hover,
.btn-confirm-stop:hover,
.contact-form .btn-submit:hover,
.offer-actions .btn-cancel:hover,
.preset-modal-actions .btn-cancel:hover,
.preset-modal-actions .btn-submit:hover,
.form-actions .btn-cancel:hover,
.form-actions .btn-submit:hover,
.form-actions .btn-save-preset:hover {
  background: var(--primary-600);
  border-color: var(--primary-600);
  color: var(--background);
  box-shadow: 0 6px 16px rgba(var(--primary-500-rgb), 0.25);
}

.btn-load-offer,
.btn-load-details.btn-offer-review,
.offer-actions .btn-submit,
.offer-actions .btn-save {
  background: var(--status-success);
  color: var(--background-50);
  border: 1px solid var(--status-success);
  box-shadow: 0 6px 16px rgba(var(--status-success-rgb), 0.35);
}

.btn-load-offer:hover,
.btn-load-details.btn-offer-review:hover,
.offer-actions .btn-submit:hover,
.offer-actions .btn-save:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(var(--status-success-rgb), 0.45);
}

.btn-load-delete,
.btn-load-delete[data-confirming="true"] {
  background: var(--status-danger);
  color: var(--background-50);
  border: 1px solid var(--status-danger);
}

.btn-load-delete:hover {
  background: var(--status-danger);
  color: var(--background-50);
}

.btn-load-offers.highlight {
  background: var(--status-danger);
  color: var(--text-50);
  border: 1px solid var(--status-danger);
}

/* Specific button color overrides */
.btn-add-stop {
  background: var(--background-100);
  color: var(--text-500);
  border: 2px dotted var(--background-300);
}

.btn-add-stop:hover {
  background: var(--background-200);
  border-color: var(--background-400);
  color: var(--text-600);
}

.offer-actions .btn-submit {
  background: var(--status-success);
  color: var(--background-50);
  border: 1px solid var(--status-success);
}

.offer-actions .btn-cancel {
  background: var(--status-danger);
  color: var(--background-50);
  border: 1px solid var(--status-danger);
}

.offer-actions .btn-save {
  background: var(--primary);
  color: var(--background);
  border: 1px solid var(--primary);
  box-shadow: none;
}

.offer-actions .btn-save:hover,
.offer-actions .btn-save:hover:not(:disabled) {
  box-shadow: none;
}

.btn-login-submit {
  background: var(--accent-200);
  color: var(--primary);
  border: 1px solid var(--accent-300);
}

.btn-login-submit:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary);
}

.btn-google {
  background: var(--background-100);
  color: var(--text-600);
  border: 1px solid var(--background-300);
}

.btn-google:hover {
  background: var(--background-200);
  border-color: var(--background-400);
  color: var(--text-700);
}

.btn-load-edit,
.btn-clear-filter,
.btn-back,
.offer-actions .btn-cancel,
.preset-modal-actions .btn-cancel,
.form-actions .btn-cancel {
  background: var(--primary-50);
  color: var(--primary);
  border: 1px solid var(--primary-100);
}

.btn-load-edit:hover,
.btn-clear-filter:hover,
.btn-back:hover,
.offer-actions .btn-cancel:hover,
.preset-modal-actions .btn-cancel:hover,
.form-actions .btn-cancel:hover {
  background: var(--primary-100);
  border-color: var(--primary-200);
  color: var(--primary);
}

.btn-login,
.btn-login-submit,
.btn-signup,
.btn-google,
.btn-subscribe,
.btn-back,
.btn-new-load,
.btn-filter,
.btn-clear-filter,
.btn-load-details,
.btn-load-contact,
.btn-load-edit,
.btn-load-restore,
.btn-load-offers,
.btn-load-track,
.btn-load-invoice,
.btn-load-offer,
.btn-load-delete,
.btn-page,
.btn-save-preset,
.btn-add-stop,
.btn-remove-stop,
.btn-confirm-stop,
.contact-form .btn-submit,
.offer-actions .btn-cancel,
.offer-actions .btn-submit,
.offer-actions .btn-save,
.preset-modal-actions .btn-cancel,
.preset-modal-actions .btn-submit,
.form-actions .btn-cancel,
.form-actions .btn-submit,
.form-actions .btn-save-preset {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-login:hover:not(:disabled),
.btn-login-submit:hover:not(:disabled),
.btn-signup:hover:not(:disabled),
.btn-google:hover:not(:disabled),
.btn-subscribe:hover:not(:disabled),
.btn-back:hover:not(:disabled),
.btn-new-load:hover:not(:disabled),
.btn-filter:hover:not(:disabled),
.btn-clear-filter:hover:not(:disabled),
.btn-load-details:hover:not(:disabled),
.btn-load-contact:hover:not(:disabled),
.btn-load-edit:hover:not(:disabled),
.btn-load-restore:hover:not(:disabled),
.btn-load-offers:hover:not(:disabled),
.btn-load-track:hover:not(:disabled),
.btn-load-invoice:hover:not(:disabled),
.btn-load-offer:hover:not(:disabled),
.btn-load-delete:hover:not(:disabled),
.btn-page:hover:not(:disabled),
.btn-save-preset:hover:not(:disabled),
.btn-add-stop:hover:not(:disabled),
.btn-remove-stop:hover:not(:disabled),
.btn-confirm-stop:hover:not(:disabled),
.contact-form .btn-submit:hover:not(:disabled),
.offer-actions .btn-cancel:hover:not(:disabled),
.offer-actions .btn-submit:hover:not(:disabled),
.offer-actions .btn-save:hover:not(:disabled),
.preset-modal-actions .btn-cancel:hover:not(:disabled),
.preset-modal-actions .btn-submit:hover:not(:disabled),
.form-actions .btn-cancel:hover:not(:disabled),
.form-actions .btn-submit:hover:not(:disabled),
.form-actions .btn-save-preset:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(var(--text-950-rgb), 0.16);
}

.btn-login:active:not(:disabled),
.btn-login-submit:active:not(:disabled),
.btn-signup:active:not(:disabled),
.btn-google:active:not(:disabled),
.btn-subscribe:active:not(:disabled),
.btn-back:active:not(:disabled),
.btn-new-load:active:not(:disabled),
.btn-filter:active:not(:disabled),
.btn-clear-filter:active:not(:disabled),
.btn-load-details:active:not(:disabled),
.btn-load-contact:active:not(:disabled),
.btn-load-edit:active:not(:disabled),
.btn-load-restore:active:not(:disabled),
.btn-load-offers:active:not(:disabled),
.btn-load-track:active:not(:disabled),
.btn-load-invoice:active:not(:disabled),
.btn-load-offer:active:not(:disabled),
.btn-load-delete:active:not(:disabled),
.btn-page:active:not(:disabled),
.btn-save-preset:active:not(:disabled),
.btn-add-stop:active:not(:disabled),
.btn-remove-stop:active:not(:disabled),
.btn-confirm-stop:active:not(:disabled),
.contact-form .btn-submit:active:not(:disabled),
.offer-actions .btn-cancel:active:not(:disabled),
.offer-actions .btn-submit:active:not(:disabled),
.offer-actions .btn-save:active:not(:disabled),
.preset-modal-actions .btn-cancel:active:not(:disabled),
.preset-modal-actions .btn-submit:active:not(:disabled),
.form-actions .btn-cancel:active:not(:disabled),
.form-actions .btn-submit:active:not(:disabled),
.form-actions .btn-save-preset:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: none;
}

@media (max-width: 600px) {
  .modal-form {
    max-width: 95%;
    padding: 25px 20px;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .form-actions .btn-cancel,
  .form-actions .btn-submit {
    width: 100%;
  }
}

/* Responsive overrides for tablet & mobile */
@media (min-width: 481px) and (max-width: 1024px) {

  .card-container {
    flex-wrap: wrap;
    justify-content: center;
  }

  .features-grid,
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefits-list {
    grid-template-columns: 1fr;
  }

  .steps-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-hero.home-hero {
    padding: 120px 20px 140px;
    min-height: auto;
  }

  .about-hero.home-hero h1 {
    font-size: clamp(38px, 5vw, 56px) !important;
  }

  .about-hero.home-hero .subtitle {
    font-size: clamp(20px, 3vw, 28px) !important;
  }

  .features,
  .how-it-works {
    min-height: auto;
  }

  .contact-container,
  .login-container {
    grid-template-columns: 1fr;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .loadboard-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .load-stats {
    width: 100%;
    justify-content: space-around;
  }

  .chat-widget {
    width: min(90vw, 380px);
  }

  .modal-content {
    width: 92vw;
  }
}

/* (Block H removed — fully redundant with mega blocks below) */

  #navbar-container .btn-login {
    background-color: var(--accent-200) !important;
    color: #1a1a1a !important;
    border: 1px solid var(--accent-300) !important;
    font-weight: 700 !important;
    display: inline-flex;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: 1;
  }

  #navbar-container .btn-login:hover {
    background-color: var(--accent-300) !important;
    border-color: var(--accent) !important;
  }

  .modal .btn-modal-save,
  .preset-modal-actions .btn-modal-save {
    background: var(--accent-200);
    color: var(--primary);
    border: 1px solid var(--accent-300);
  }

  .modal .btn-modal-save:hover,
  .preset-modal-actions .btn-modal-save:hover {
    background: var(--accent-300);
    border-color: var(--accent);
    color: var(--primary);
  }

/* ===== COMPREHENSIVE MOBILE RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  * {
    -webkit-tap-highlight-color: transparent;
  }

  img,
  svg,
  video,
  iframe {
    max-width: 100%;
    height: auto;
    display: block;
  }

  /* Navbar — base hamburger overrides are in the dedicated block above.
     Dropdown and user-circle sizing here. */
  .dropdown-menu {
    width: calc(100vw - 30px);
    max-width: 280px;
    right: 15px;
    left: auto;
  }

  .dropdown-item {
    padding: 12px 14px;
    font-size: 14px;
  }

  .user-circle {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  /* Hero Sections */
  .hero {
    padding: 30px 18px;
    min-height: auto;
    margin-top: 0;
  }

  .hero h1 {
    font-size: 26px;
    margin-bottom: 10px;
  }

  .subtitle {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .about-hero.home-hero {
    padding: 60px 15px 80px;
    min-height: auto;
  }

  .about-hero.home-hero h1 {
    font-size: 24px;
  }

  .about-hero h1,
  .contact-hero h1 {
    font-size: clamp(26px, 7vw, 42px);
  }

  /* Cards */
  .card-container {
    flex-direction: column;
    width: 100%;
    padding: 0 12px;
    gap: 15px;
    max-width: 100%;
  }

  .card {
    width: 100%;
    padding: 18px 15px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }

  .card h2 {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .card p {
    font-size: 13px;
    line-height: 1.5;
  }

  /* Features Grid */
  .features,
  .how-it-works,
  .values-section {
    padding: 50px 15px;
    min-height: auto;
  }

  .features h2,
  .how-it-works h2,
  .values-section h2 {
    font-size: clamp(24px, 6vw, 36px);
    margin-bottom: 30px;
  }

  .features-grid,
  .values-grid,
  .steps-container {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 100%;
  }

  .feature-item,
  .value-item,
  .step {
    padding: 20px;
  }

  .feature-item h3,
  .value-item h3,
  .step h3 {
    font-size: 16px;
  }

  .feature-item p,
  .value-item p,
  .step p {
    font-size: 13px;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  /* Footer */
  .footer-container {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 0 15px 30px;
  }

  .footer-section h4,
  .footer-section p,
  .footer-section a {
    font-size: 13px;
  }

  .social-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  /* Forms */
  .form-group {
    margin-bottom: 15px;
  }

  .form-group label {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 10px;
    font-size: 14px;
    border-radius: 6px;
  }

  /* Login Page */
  .login-page {
    padding: 20px 15px;
    min-height: calc(100vh - 60px);
  }

  .login-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .login-card {
    padding: 25px 20px;
  }

  .login-card h1 {
    font-size: 24px;
  }

  .login-subtitle {
    font-size: 14px;
  }

  .login-info {
    display: none;
  }

  /* Subscription Page */
  .subscription-page {
    padding: 30px 15px;
  }

  .subscription-page h1 {
    font-size: 28px;
    margin-bottom: 25px;
  }

  .subscription-content {
    padding: 20px;
    border-radius: 10px;
  }

  .pricing-card {
    padding: 20px;
  }

  .pricing-card h2 {
    font-size: 18px;
  }

  .price {
    font-size: 32px;
  }

  .benefits-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .benefits-list li {
    padding: 12px;
    font-size: 14px;
  }

  .requirements-section {
    margin-bottom: 30px;
  }

  .requirement-item {
    padding: 15px;
    margin-bottom: 12px;
  }

  .requirement-item h3 {
    font-size: 15px;
    margin-bottom: 6px;
  }

  .requirement-item p {
    font-size: 13px;
  }

  /* Dashboard */
  .dashboard-page {
    padding: 10px;
    background: transparent;
  }

  .dashboard-container {
    max-width: 100%;
    padding: 0;
  }

  .dashboard-header {
    padding: 24px 16px;
    margin-bottom: 14px;
  }

  .dashboard-header h1 {
    font-size: 28px;
    margin: 0 0 6px 0;
    color: var(--background);
  }

  .dashboard-header p {
    font-size: 14px;
    margin: 0;
    color: var(--background);
  }

  .dashboard-content {
    padding: 0;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .dashboard-card {
    padding: 12px;
    border-radius: 8px;
  }

  .dashboard-card h3 {
    font-size: 14px;
  }

  .dashboard-card p {
    font-size: 12px;
  }

  /* Loadboard */
  .loadboard-filters {
    padding: 12px;
    gap: 6px;
    background: var(--background-100);
    border-radius: 8px;
    margin-bottom: 12px;
  }

  .filters-header {
    margin-bottom: 10px;
  }

  .filters-header h3 {
    font-size: 14px;
    margin: 0;
  }

  .filter-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .filter-row:last-child {
    grid-template-columns: 1fr;
  }

  .filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .filter-group label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-600);
  }

  .filter-select,
  .filter-input {
    padding: 10px;
    font-size: 13px;
    border: 1px solid var(--background-300);
    border-radius: 6px;
  }

  .filter-date-range,
  .filter-range {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .filter-date-range .filter-input,
  .filter-range .filter-input {
    width: 100%;
    max-width: 100%;
  }

  .date-separator,
  .range-separator {
    display: none;
  }

  .filter-actions {
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
  }

  .filter-actions .btn-filter,
  .filter-actions .btn-clear-filter {
    width: 100%;
  }

  .loadboard-actions--extended {
    grid-template-columns: 1fr;
    grid-auto-flow: row;
    gap: 10px;
  }

  .loadboard-actions--extended .btn-new-load {
    grid-column: 1;
    width: 100%;
  }

  .loadboard-actions--extended .loadboard-search {
    grid-column: 1;
    width: 100%;
    flex-direction: column;
  }

  .loadboard-actions--extended .loadboard-toggles {
    grid-column: 1;
    width: 100%;
    flex-direction: column;
  }

  .loadboard-search input {
    width: 100% !important;
  }

  .loadboard-search button {
    width: 100%;
  }

  .loadboard-toggles {
    flex-direction: column;
    align-items: stretch;
  }

  .toggle-switch {
    width: 100%;
  }

  .btn-new-load {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
  }

  .loadboard-container {
    padding: 12px;
    background: transparent;
    box-shadow: none;
  }

  .loadboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 15px;
    padding: 0;
  }

  .loadboard-header h2 {
    font-size: 16px;
    margin: 0;
  }

  .load-count {
    font-size: 12px;
  }

  .load-card {
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid var(--background-300);
  }

  .load-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 8px;
  }

  .load-id {
    font-size: 12px;
    font-weight: 600;
  }

  .load-status {
    font-size: 9px;
    padding: 2px 6px;
  }

  .load-route {
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    background: var(--background-100);
    border-radius: 6px;
    margin-bottom: 8px;
  }

  .route-point {
    gap: 6px;
  }

  .route-point strong {
    font-size: 12px;
  }

  .route-date {
    font-size: 11px;
  }

  .route-arrow {
    transform: rotate(90deg);
    align-self: center;
    margin: 2px 0;
    font-size: 14px;
  }

  .load-details {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
  }

  .detail-text {
    padding: 3px 6px;
    font-size: 11px;
    min-height: 20px;
  }

  .load-actions {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
  }

  .btn-load-details,
  .btn-load-contact,
  .btn-load-edit,
  .btn-load-delete,
  .btn-load-offers {
    flex: 1 1 calc(50% - 3px);
    min-width: 90px;
    padding: 6px 8px;
    font-size: 11px;
    border-radius: 5px;
  }

  .match-badge {
    width: 32px;
    height: 32px;
    right: 6px;
    top: 6px;
    font-size: 14px;
  }

  .loadboard-pagination {
    flex-direction: column-reverse;
    gap: 10px;
    padding: 10px 0;
  }

  .btn-page {
    width: 100%;
    padding: 10px;
  }

  .page-info {
    order: -1;
    text-align: center;
  }

  /* Modals */
  .modal {
    padding: 10px;
  }

  .modal-content {
    width: calc(100vw - 20px);
    max-height: 90vh;
    overflow-y: auto;
    padding: 20px;
    border-radius: 12px;
  }

  .modal-content h2 {
    font-size: 20px;
    margin-bottom: 15px;
  }

  .modal-content > p {
    font-size: 13px;
  }

  .modal-form {
    max-width: 100%;
  }

  .modal-close {
    top: 10px;
    right: 10px;
    font-size: 24px;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions button {
    width: 100%;
  }

  .modal-form .chat-message-input {
    max-height: 100px;
    min-height: 100px;
  }

  /* Account Pages */
  .account-content {
    padding: 0;
  }

  .account-card {
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
  }

  .card-header h2 {
    font-size: 16px;
  }

  .btn-edit {
    width: 100%;
  }

  .info-row {
    flex-direction: column;
    gap: 4px;
    padding: 10px 0;
  }

  .info-row .label {
    font-size: 12px;
    font-weight: 700;
  }

  .info-row .value {
    font-size: 14px;
  }

  /* Stats */
  .stats-summary {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .stat-card {
    padding: 15px;
  }

  .stat-icon {
    font-size: 28px;
  }

  .stat-info h3 {
    font-size: 20px;
  }

  .stat-info p {
    font-size: 12px;
  }

  .chart-bars {
    grid-template-columns: repeat(4, minmax(20px, 1fr));
    height: 120px;
    gap: 8px;
  }

  .chart-labels {
    grid-template-columns: repeat(4, minmax(20px, 1fr));
    font-size: 10px;
  }

  /* Contact Form */
  .contact-content {
    padding: 20px 15px;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-form {
    padding: 20px 15px;
  }

  .contact-methods h2,
  .contact-form-section h2 {
    font-size: 20px;
  }

  .contact-method {
    padding: 15px;
  }

  .contact-method h3 {
    font-size: 15px;
  }

  .contact-method p {
    font-size: 13px;
  }

  /* Legal Pages */
  .terms-page,
  .privacy-page,
  .legal-page,
  .cookies-page {
    padding: 20px 15px;
  }

  .terms-header h1,
  .privacy-header h1,
  .legal-header h1,
  .cookies-header h1 {
    font-size: 26px;
  }

  .terms-subtitle,
  .privacy-subtitle,
  .legal-subtitle,
  .cookies-subtitle {
    font-size: 13px;
  }

  .terms-content,
  .privacy-content,
  .legal-content,
  .cookies-content {
    padding: 15px;
  }

  .terms-section h2,
  .privacy-section h2,
  .legal-section h2,
  .cookies-section h2 {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .terms-section p,
  .privacy-section p,
  .legal-section p,
  .cookies-section p,
  .terms-list li,
  .privacy-list li,
  .legal-list li,
  .cookies-list li,
  .about-list li {
    font-size: 13px;
    line-height: 1.6;
  }

  .terms-intro p,
  .privacy-intro p,
  .legal-intro p,
  .cookies-intro p {
    font-size: 14px;
  }

  .terms-footer-note,
  .privacy-footer-note {
    padding: 12px;
    font-size: 12px;
  }

  /* About Page */
  .about-hero,
  .contact-hero {
    padding: 60px 15px;
  }

  .about-hero p,
  .contact-hero p {
    font-size: 14px;
  }

  .about-content {
    padding: 30px 15px;
  }

  .about-section {
    padding: 22px 18px;
    border-radius: 10px;
  }

  .about-section h2 {
    font-size: 18px;
  }

  .about-section p {
    font-size: 13px;
    line-height: 1.6;
  }

  /* Chat Widget */
  .chat-widget {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
    max-width: 90vw;
    max-height: 60vh;
    border-radius: 12px;
  }

  .chat-widget.is-minimized {
    width: 48px;
    height: 48px;
  }

  .chat-widget-header {
    padding: 8px 10px;
  }

  .chat-widget-title {
    font-size: 13px;
  }

  .chat-widget-body {
    min-height: 280px;
  }

  .chat-widget-list {
    padding: 8px 10px;
  }

  .chat-widget-list-panel {
    width: 120px;
  }

  /* Buttons */
  .btn-primary,
  .btn-secondary,
  .btn-subscribe,
  .btn-back,
  .btn-new-load,
  .btn-filter,
  .btn-clear-filter {
    width: 100%;
    min-height: 44px;
    padding: 10px 16px;
    font-size: 14px;
    border-radius: 8px;
  }

  .btn-signup,
  .btn-google,
  .btn-login {
    width: 100%;
  }

  /* Tables/Lists */
  [role="grid"],
  table {
    font-size: 13px;
    overflow-x: auto;
  }

  /* Presets */
  .preset-bubbles {
    gap: 6px;
  }

  .preset-bubble {
    font-size: 11px;
    padding: 4px 6px 4px 8px;
  }

  .preset-modal-card {
    width: calc(100vw - 30px);
  }

  /* Stop List */
  .stop-item {
    padding: 10px;
  }

  .stop-schedule {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .date-appt-group {
    grid-template-columns: 1fr;
  }

  .appt-options label {
    padding: 4px 6px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  /* Extra small phones - maximum compression */
  html {
    font-size: 93%;
  }

  body {
    padding: 0;
  }

  /* Hero Sections */
  .hero {
    padding: 24px 14px;
    min-height: auto;
    margin-top: 0;
  }

  .hero h1 {
    font-size: 22px;
    margin-bottom: 8px;
    letter-spacing: normal;
  }

  .subtitle {
    font-size: 14px;
    margin-bottom: 15px;
  }

  .about-hero.home-hero {
    padding: 50px 12px 70px;
    min-height: auto;
  }

  .about-hero.home-hero h1 {
    font-size: 22px;
  }

  .about-hero,
  .contact-hero {
    padding: 50px 12px;
  }

  .about-hero p,
  .contact-hero p {
    font-size: 13px;
  }

  /* Cards */
  .card-container {
    flex-direction: column;
    width: 100%;
    padding: 0 10px;
    gap: 12px;
    max-width: 100%;
  }

  .card {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  }

  .card h2 {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .card p {
    font-size: 12px;
    line-height: 1.4;
  }

  /* Features and Steps */
  .features,
  .how-it-works,
  .values {
    padding: 30px 12px;
  }

  .features-grid,
  .steps-container,
  .values-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .feature-item,
  .value-item,
  .step {
    padding: 15px;
  }

  .feature-item h3,
  .value-item h3,
  .step h3 {
    font-size: 15px;
  }

  .feature-item p,
  .value-item p,
  .step p {
    font-size: 12px;
  }

  .step-number {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  /* Footer */
  .footer-container {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 12px 25px;
  }

  .footer-section h4,
  .footer-section p,
  .footer-section a {
    font-size: 12px;
  }

  .social-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  /* Forms */
  .form-group {
    margin-bottom: 12px;
  }

  .form-group label {
    font-size: 12px;
    margin-bottom: 4px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 9px;
    font-size: 16px;
    border-radius: 6px;
  }

  /* Dashboard */
  .dashboard-page {
    padding: 8px;
    background: transparent;
  }

  .dashboard-container {
    max-width: 100%;
    padding: 0;
  }

  .dashboard-header {
    padding: 20px 14px;
    margin-bottom: 10px;
  }

  .dashboard-header h1 {
    font-size: 24px;
    margin: 0 0 4px 0;
    color: var(--background);
  }

  .dashboard-header p {
    font-size: 13px;
    margin: 0;
    color: var(--background);
  }

  .dashboard-content {
    padding: 0;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .dashboard-card {
    padding: 10px;
    border-radius: 8px;
  }

  .dashboard-card h3 {
    font-size: 13px;
  }

  .dashboard-card p {
    font-size: 11px;
  }

  /* Loadboard */
  .loadboard-filters {
    padding: 10px;
    gap: 4px;
    background: var(--background-100);
    border-radius: 6px;
    margin-bottom: 10px;
  }

  .filters-header h3 {
    font-size: 13px;
    margin: 0 0 8px 0;
  }

  .filter-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .filter-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .filter-group label {
    font-size: 10px;
    font-weight: 600;
  }

  .filter-select,
  .filter-input {
    padding: 8px;
    font-size: 12px;
    border: 1px solid var(--background-300);
    border-radius: 4px;
  }

  .filter-date-range,
  .filter-range {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .filter-date-range .filter-input,
  .filter-range .filter-input {
    width: 100%;
  }

  .date-separator,
  .range-separator {
    display: none;
  }

  .filter-actions {
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
  }

  .filter-actions .btn-filter,
  .filter-actions .btn-clear-filter {
    width: 100%;
    padding: 8px 10px;
    font-size: 12px;
  }

  .loadboard-actions--extended {
    grid-template-columns: 1fr;
    grid-auto-flow: row;
    gap: 8px;
  }

  .loadboard-actions--extended .btn-new-load {
    grid-column: 1;
    width: 100%;
    padding: 10px 12px;
    font-size: 12px;
  }

  .loadboard-actions--extended .loadboard-search {
    grid-column: 1;
    width: 100%;
    flex-direction: column;
    gap: 4px;
  }

  .loadboard-actions--extended .loadboard-toggles {
    grid-column: 1;
    width: 100%;
    flex-direction: column;
    gap: 4px;
  }

  .loadboard-search input {
    width: 100% !important;
    padding: 8px;
    font-size: 12px;
  }

  .loadboard-search button {
    width: 100%;
    padding: 8px;
    font-size: 12px;
  }

  .loadboard-toggles {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .toggle-switch {
    width: 100%;
  }

  .loadboard-container {
    padding: 10px;
    background: transparent;
    box-shadow: none;
  }

  .loadboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 12px;
    padding: 0;
  }

  .loadboard-header h2 {
    font-size: 15px;
    margin: 0;
  }

  .load-count {
    font-size: 11px;
  }

  .load-card {
    padding: 10px;
    margin-bottom: 8px;
    border: 1px solid var(--background-300);
    border-radius: 6px;
  }

  .load-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin-bottom: 6px;
  }

  .load-id {
    font-size: 11px;
    font-weight: 600;
  }

  .load-status {
    font-size: 8px;
    padding: 1px 4px;
  }

  .load-route {
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    background: var(--background-100);
    border-radius: 4px;
    margin-bottom: 6px;
  }

  .route-point {
    gap: 4px;
    margin-bottom: 2px;
  }

  .route-point strong {
    font-size: 11px;
  }

  .route-date {
    font-size: 10px;
  }

  .route-arrow {
    transform: rotate(90deg);
    align-self: center;
    margin: 0;
    font-size: 12px;
  }

  .load-details {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 6px;
  }

  .detail-text {
    padding: 2px 4px;
    font-size: 10px;
    min-height: 18px;
    flex: 0 1 calc(50% - 2px);
  }

  .load-actions {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    padding-top: 6px;
    border-top: 1px solid var(--background-200);
  }

  .btn-load-details,
  .btn-load-contact,
  .btn-load-edit,
  .btn-load-delete,
  .btn-load-offers {
    flex: 1 1 calc(50% - 2px);
    min-width: 70px;
    padding: 4px 6px;
    font-size: 10px;
    border-radius: 4px;
  }

  .match-badge {
    width: 28px;
    height: 28px;
    right: 4px;
    top: 4px;
    font-size: 12px;
  }

  .loadboard-pagination {
    flex-direction: column-reverse;
    gap: 8px;
    padding: 8px 0;
  }

  .btn-page {
    width: 100%;
    padding: 8px;
    font-size: 12px;
  }

  .page-info {
    order: -1;
    text-align: center;
    font-size: 11px;
  }

  /* Modals */
  .modal {
    padding: 8px;
  }

  .modal-content {
    width: calc(100vw - 16px);
    max-height: 90vh;
    overflow-y: auto;
    padding: 15px;
    border-radius: 10px;
  }

  .modal-content h2 {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .modal-content > p {
    font-size: 12px;
  }

  .modal-form {
    max-width: 100%;
  }

  .modal-close {
    top: 8px;
    right: 8px;
    font-size: 20px;
  }

  .form-actions {
    flex-direction: column;
    gap: 6px;
  }

  .form-actions button {
    width: 100%;
    padding: 10px 12px;
    font-size: 12px;
  }

  .modal-form .chat-message-input {
    max-height: 80px;
    min-height: 80px;
  }

  /* Account Pages */
  .account-content {
    padding: 0;
  }

  .account-card {
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 8px;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
  }

  .card-header h2 {
    font-size: 15px;
  }

  .btn-edit {
    width: 100%;
    padding: 8px 12px;
    font-size: 12px;
  }

  .info-row {
    flex-direction: column;
    gap: 2px;
    padding: 8px 0;
  }

  .info-row .label {
    font-size: 11px;
    font-weight: 700;
  }

  .info-row .value {
    font-size: 13px;
  }

  /* Stats */
  .stats-summary {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stat-card {
    padding: 12px;
  }

  .stat-icon {
    font-size: 24px;
  }

  .stat-info h3 {
    font-size: 14px;
  }

  .stat-info p {
    font-size: 11px;
  }

  .chart-bars {
    grid-template-columns: repeat(4, minmax(18px, 1fr));
    height: 100px;
    gap: 6px;
  }

  .chart-labels {
    grid-template-columns: repeat(4, minmax(18px, 1fr));
    font-size: 9px;
  }

  /* Contact Form */
  .contact-content {
    padding: 15px 10px;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-form {
    padding: 15px 10px;
  }

  .contact-methods h2,
  .contact-form-section h2 {
    font-size: 18px;
  }

  .contact-method {
    padding: 12px;
  }

  .contact-method h3 {
    font-size: 14px;
  }

  .contact-method p {
    font-size: 12px;
  }

  /* Legal Pages */
  .terms-page,
  .privacy-page,
  .legal-page,
  .cookies-page {
    padding: 15px 10px;
  }

  .terms-header h1,
  .privacy-header h1,
  .legal-header h1,
  .cookies-header h1 {
    font-size: 22px;
  }

  .terms-subtitle,
  .privacy-subtitle,
  .legal-subtitle,
  .cookies-subtitle {
    font-size: 12px;
  }

  .terms-content,
  .privacy-content,
  .legal-content,
  .cookies-content {
    padding: 12px;
  }

  .terms-section h2,
  .privacy-section h2,
  .legal-section h2,
  .cookies-section h2 {
    font-size: 15px;
    margin-bottom: 8px;
  }

  .terms-section p,
  .privacy-section p,
  .legal-section p,
  .cookies-section p,
  .terms-list li,
  .privacy-list li,
  .legal-list li,
  .cookies-list li,
  .about-list li {
    font-size: 12px;
    line-height: 1.6;
  }

  .terms-intro p,
  .privacy-intro p,
  .legal-intro p,
  .cookies-intro p {
    font-size: 13px;
  }

  .terms-footer-note,
  .privacy-footer-note {
    padding: 10px;
    font-size: 11px;
  }

  /* About Page */
  .about-content {
    padding: 20px 10px;
  }

  .about-section {
    padding: 18px 14px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(var(--text-950-rgb), 0.06);
  }

  .about-section h2 {
    font-size: 16px;
  }

  .about-section p {
    font-size: 12px;
    line-height: 1.6;
  }

  /* User Menu */
  .user-circle {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .dropdown-item {
    padding: 10px 12px;
    font-size: 13px;
  }

  /* Footer */
  .footer {
    padding: 30px 15px;
  }

  /* Chat Widget */
  .chat-widget {
    right: 8px;
    bottom: 8px;
    width: calc(100vw - 16px);
    max-width: none;
    max-height: 50vh;
    border-radius: 10px;
  }

  .chat-widget.is-minimized {
    width: 44px;
    height: 44px;
  }

  .chat-widget-header {
    padding: 6px 8px;
  }

  .chat-widget-title {
    font-size: 12px;
  }

  .chat-widget-body {
    min-height: 250px;
  }

  .chat-widget-list {
    padding: 6px 8px;
  }

  .chat-widget-list-panel {
    width: 100px;
  }

  /* Buttons */
  .btn-primary,
  .btn-secondary,
  .btn-subscribe,
  .btn-back,
  .btn-new-load,
  .btn-filter,
  .btn-clear-filter {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 13px;
    border-radius: 6px;
  }

  .btn-signup,
  .btn-google,
  .btn-login {
    width: 100%;
    font-size: 14px;
  }

  /* Tables/Lists */
  [role="grid"],
  table {
    font-size: 12px;
    overflow-x: auto;
  }

  /* Presets */
  .preset-bubbles {
    gap: 4px;
  }

  .preset-bubble {
    font-size: 10px;
    padding: 3px 5px 3px 6px;
  }

  .preset-modal-card {
    width: calc(100vw - 20px);
  }

  /* Stop List */
  .stop-item {
    padding: 8px;
  }

  .stop-schedule {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .date-appt-group {
    grid-template-columns: 1fr;
  }

  .appt-options label {
    padding: 3px 4px;
    font-size: 11px;
  }

  /* iOS zoom prevention — keep inputs at 16px */
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
  }
}

/* ══════════════════════════════════════════════════════
   ADMIN PANEL STYLES
   ══════════════════════════════════════════════════════ */

/* Tabs */
.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.admin-tab {
  padding: 10px 20px;
  border: 2px solid var(--primary-200);
  border-radius: 10px;
  background: var(--background-50);
  color: var(--text-700);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-tab:hover {
  background: var(--primary-50);
  border-color: var(--primary-400);
  color: var(--primary-700);
}

.admin-tab.active {
  background: var(--gradient-header);
  color: var(--background);
  border-color: transparent;
}

/* Panels */
.admin-panel {
  background: var(--background-50);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(var(--text-950-rgb), 0.06);
}

/* Filters */
.admin-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  align-items: center;
}

.admin-filters .filter-select,
.admin-filters .filter-input {
  padding: 8px 14px;
  border: 1.5px solid var(--primary-200);
  border-radius: 8px;
  font-size: 13px;
  background: var(--background);
  color: var(--text-800);
  transition: border-color 0.2s;
}

.admin-filters .filter-select:focus,
.admin-filters .filter-input:focus {
  border-color: var(--primary-500);
  outline: none;
}

/* List container */
.admin-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── User cards (document verification) ── */
.admin-user-card {
  background: var(--background);
  border: 1.5px solid var(--primary-100);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}

.admin-user-card:hover {
  box-shadow: 0 8px 28px rgba(var(--text-950-rgb), 0.10);
  transform: translateY(-2px);
}

.admin-user-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 16px;
  background: linear-gradient(135deg, var(--primary-50) 0%, transparent 100%);
  border-bottom: 1px solid var(--primary-50);
  flex-wrap: wrap;
  gap: 10px;
}

.admin-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gradient-header);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(var(--primary-rgb, 99, 102, 241), 0.25);
}

.admin-user-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.admin-user-email {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-900);
  letter-spacing: -0.01em;
}

.admin-user-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-user-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-600);
}

.admin-user-role {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.admin-user-role.role-carrier {
  background: #dbeafe;
  color: #1e40af;
}

.admin-user-role.role-provider {
  background: #fce7f3;
  color: #9d174d;
}

[data-theme="dark"] .admin-user-role.role-carrier {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

[data-theme="dark"] .admin-user-role.role-provider {
  background: rgba(236, 72, 153, 0.2);
  color: #f9a8d4;
}

/* Verification badge */
.admin-verification {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.admin-verification.is-verified {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}

.admin-verification.is-unverified {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
}

[data-theme="dark"] .admin-verification.is-verified {
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
}

[data-theme="dark"] .admin-verification.is-unverified {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
}

.admin-verification-icon {
  font-size: 14px;
}

/* Progress bar */
.admin-progress-track {
  height: 6px;
  background: var(--primary-50);
  border-radius: 3px;
  overflow: hidden;
  margin: 0 24px;
}

.admin-progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.admin-progress-fill.progress-complete {
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

.admin-progress-fill.progress-partial {
  background: linear-gradient(90deg, #f59e0b, #eab308);
}

/* Document items inside user cards */
.admin-docs-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 8px 16px 16px;
}

.admin-doc-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  gap: 16px;
  border-bottom: 1px solid var(--primary-50);
  transition: background 0.15s;
}

.admin-doc-item:last-child {
  border-bottom: none;
}

.admin-doc-item:hover {
  background: var(--primary-50);
  border-radius: 10px;
}

.admin-doc-info {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.admin-doc-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.admin-doc-icon.icon-pending {
  background: rgba(245, 158, 11, 0.1);
}

.admin-doc-icon.icon-approved {
  background: rgba(34, 197, 94, 0.1);
}

.admin-doc-icon.icon-rejected {
  background: rgba(239, 68, 68, 0.1);
}

.admin-doc-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.admin-doc-type {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-900);
  letter-spacing: 0;
  text-transform: none;
}

.admin-doc-link {
  font-size: 12px;
  color: var(--primary-500);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
  display: inline-block;
}

.admin-doc-link:hover {
  text-decoration: underline;
  color: var(--primary-700);
}

.admin-doc-date {
  font-size: 11px;
  color: var(--text-400);
}

/* Status pill */
.admin-doc-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.admin-doc-status.status-approved {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}

.admin-doc-status.status-rejected {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}

.admin-doc-status.status-pending {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
}

[data-theme="dark"] .admin-doc-status.status-approved {
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
}

[data-theme="dark"] .admin-doc-status.status-rejected {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
}

[data-theme="dark"] .admin-doc-status.status-pending {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
}

/* Approve / Reject buttons */
.admin-doc-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.btn-admin-approve,
.btn-admin-reject {
  padding: 7px 16px;
  border: none;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-admin-approve {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  border: 1.5px solid rgba(34, 197, 94, 0.25);
}

.btn-admin-approve:hover {
  background: #22c55e;
  color: #fff;
  border-color: #22c55e;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
  transform: translateY(-1px);
}

.btn-admin-reject {
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
  border: 1.5px solid rgba(239, 68, 68, 0.2);
}

.btn-admin-reject:hover {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
  transform: translateY(-1px);
}

[data-theme="dark"] .btn-admin-approve {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.3);
}

[data-theme="dark"] .btn-admin-reject {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.25);
}

/* Admin internal notes */
.admin-note-display {
  margin-top: 10px;
  padding: 10px 14px;
  background: rgba(255, 193, 7, 0.08);
  border-left: 3px solid #f59e0b;
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  color: var(--text-600);
  line-height: 1.5;
}

.admin-note-label {
  font-weight: 700;
  color: var(--text-700);
}

[data-theme="dark"] .admin-note-display {
  background: rgba(255, 193, 7, 0.06);
  border-left-color: #d97706;
}

/* Reject prompt (inline) */
.admin-reject-prompt {
  margin-top: 10px;
  padding: 12px;
  background: rgba(239, 68, 68, 0.04);
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: 10px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .2s ease, transform .2s ease;
}

.admin-reject-prompt.visible {
  opacity: 1;
  transform: translateY(0);
}

.admin-reject-note {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--background-300);
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  background: var(--background-50);
  color: var(--text-800);
  transition: border-color .2s ease;
}

.admin-reject-note:focus {
  outline: none;
  border-color: #ef4444;
}

.admin-reject-note::placeholder {
  color: var(--text-400);
}

.admin-reject-prompt-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.btn-admin-confirm-reject {
  padding: 6px 16px;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  background: #ef4444;
  color: #fff;
  transition: background .2s ease;
}

.btn-admin-confirm-reject:hover {
  background: #dc2626;
}

.btn-admin-cancel-reject {
  padding: 6px 16px;
  border: 1.5px solid var(--background-300);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: var(--text-600);
  transition: background .2s ease;
}

.btn-admin-cancel-reject:hover {
  background: var(--background-200);
}

/* Load / Vehicle email pill */
.admin-load-email {
  font-size: 12px;
  color: var(--text-500);
  font-style: italic;
}

/* ── Admin responsive ── */
@media (max-width: 768px) {
  .admin-tabs {
    flex-direction: column;
  }
  .admin-tab {
    width: 100%;
    text-align: center;
  }
  .admin-panel {
    padding: 16px;
  }
  .admin-doc-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px;
  }
  .admin-doc-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .admin-doc-actions {
    width: 100%;
  }
  .admin-doc-actions button {
    flex: 1;
  }
  .admin-user-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }
  .admin-user-info {
    flex-direction: column;
    align-items: flex-start;
  }
  .admin-docs-list {
    padding: 8px 8px 12px;
  }
  .admin-doc-link {
    max-width: 160px;
  }
  .admin-progress-track {
    margin: 0 16px;
  }
  .admin-filters .filter-input {
    max-width: 100% !important;
    width: 100%;
  }
  .admin-filters .filter-select {
    width: 100%;
  }
}

/* ── Admin dark mode fixes ── */
[data-theme="dark"] .admin-user-card {
  background: var(--background-100, #1e1e2e);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .admin-user-header {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, transparent 100%);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .admin-user-email {
  color: #f1f5f9;
}

[data-theme="dark"] .admin-user-name {
  color: #cbd5e1;
}

[data-theme="dark"] .admin-user-avatar {
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

[data-theme="dark"] .admin-doc-item {
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .admin-doc-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .admin-doc-type {
  color: #e2e8f0;
}

[data-theme="dark"] .admin-doc-link {
  color: #818cf8;
}

[data-theme="dark"] .admin-doc-link:hover {
  color: #a5b4fc;
}

[data-theme="dark"] .admin-doc-date {
  color: #94a3b8;
}

[data-theme="dark"] .admin-panel {
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .admin-progress-track {
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .admin-doc-icon.icon-pending {
  background: rgba(245, 158, 11, 0.15);
}

[data-theme="dark"] .admin-doc-icon.icon-approved {
  background: rgba(34, 197, 94, 0.15);
}

[data-theme="dark"] .admin-doc-icon.icon-rejected {
  background: rgba(239, 68, 68, 0.15);
}
