:root {
  /* Modern Palette - Slate/Zinc inspired with vibrant accents */
  --color-primary: #0f172a;
  --color-primary-light: #334155;
  --color-accent: #2563eb;
  --color-accent-hover: #1d4ed8;
  --color-success: #10b981;
  --color-danger: #ef4444;
  --color-warning: #f59e0b;
  --color-info: #3b82f6;

  --color-bg-body: #f1f5f9;
  --color-bg-card: #ffffff;
  --color-bg-sidebar: #0f172a;

  --color-text-main: #1e293b;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;
  --color-border: #e2e8f0;

  --bs-primary: var(--color-accent);
  --bs-body-bg: var(--color-bg-body);
  --bs-body-color: var(--color-text-main);
  --bs-border-color: var(--color-border);

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
}

body {
  background-color: var(--color-bg-body);
  color: var(--color-text-main);
  font-family: 'Inter', 'Plus Jakarta Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Dashboard Shell */
.dashboard-shell {
  display: flex;
  min-height: 100vh;
}

.dashboard-sidebar {
  width: 280px;
  background: var(--color-bg-sidebar);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  transition: transform 0.3s ease;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.dashboard-main {
  flex: 1;
  margin-left: 280px;
  padding: 2rem;
  width: 100%;
}

.dashboard-topbar {
  display: none;
  /* Visible on mobile */
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: var(--color-bg-sidebar);
  color: white;
  position: sticky;
  top: 0;
  z-index: 40;
}

@media (max-width: 991px) {
  .dashboard-sidebar {
    transform: translateX(-100%);
  }

  .dashboard-open .dashboard-sidebar {
    transform: translateX(0);
  }

  .dashboard-main {
    margin-left: 0;
    padding: 1rem;
  }

  .dashboard-topbar {
    display: flex;
  }
}

/* Sidebar Brand */
.dashboard-brand {
  padding: 1.5rem 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dashboard-logo {
  width: 40px;
  height: 40px;
  background: var(--color-accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.5rem;
  color: white;
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.4);
}

.dashboard-title {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.dashboard-subtitle {
  font-size: 0.75rem;
  color: var(--color-text-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Sidebar Nav */
.dashboard-nav {
  padding: 1.5rem;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
  font-weight: 600;
  margin-bottom: 0.5rem;
  opacity: 0.6;
}

.dashboard-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: #cbd5e1;
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 500;
  transition: all 0.2s ease;
}

.dashboard-link i {
  font-size: 1.25rem;
  opacity: 0.7;
}

.dashboard-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.dashboard-link.active {
  background: var(--color-accent);
  color: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.dashboard-link.active i {
  opacity: 1;
}

/* Sidebar Footer */
.dashboard-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.2);
}

.option-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.option-actions form {
  margin: 0;
}

.option-actions .btn-sm {
  min-width: 34px;
  height: 34px;
  padding: 0;
}

.options-table td:first-child,
.options-table td:nth-child(2),
.options-table td:nth-child(3) {
  text-align: left;
}

.options-table td:last-child {
  text-align: right;
}

.dashboard-logout {
  background: rgba(239, 68, 68, 0.1);
  color: var(--color-danger);
  border: none;
  padding: 0.75rem;
  width: 100%;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
}

.dashboard-logout:hover {
  background: var(--color-danger);
  color: white;
}

/* Cards & Content */
.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.dashboard-header {
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.dashboard-header-title {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.1;
}

.dashboard-header-subtitle {
  color: var(--color-text-muted);
  font-size: 1rem;
  margin-top: 0.5rem;
}

/* Tables */
.table {
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.table thead th {
  background: #f8fafc;
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--color-border);
  padding: 1rem;
}

.table tbody tr td {
  padding: 1rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-main);
}

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

.table tbody tr:hover td {
  background-color: #f8fafc;
}

/* Buttons */
.btn {
  border-radius: var(--radius-md);
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--color-accent);
  border: none;
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 8px -1px rgba(37, 99, 235, 0.3);
}

.btn-outline-primary {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn-outline-primary:hover {
  background: var(--color-accent);
  color: white;
}

/* Forms */
.form-control,
.form-select {
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: 0.75rem 1rem;
  background-color: #fff;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-main);
  margin-bottom: 0.5rem;
}

/* Badges */
.badge {
  padding: 0.4em 0.8em;
  font-weight: 600;
  border-radius: 9999px;
  font-size: 0.75em;
}

.bg-blue-subtle {
  background-color: #eff6ff;
  color: #1d4ed8;
}

/* Utilities */
.rounded-8 {
  border-radius: 8px !important;
}

.shadow-sm {
  box-shadow: var(--shadow-sm) !important;
}

.text-muted {
  color: var(--color-text-muted) !important;
}

/* Dashboard Toggle Mobile */
.dashboard-menu-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.dashboard-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 45;
  backdrop-filter: blur(2px);
}

.dashboard-open .dashboard-overlay {
  display: block;
}

/* Modal Modernization */
.modal-content {
  border: none;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.modal-header {
  border-bottom: 1px solid var(--color-border);
  background: #f8fafc;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 1.5rem;
}

.modal-footer {
  border-top: 1px solid var(--color-border);
  background: #f8fafc;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  padding: 1.5rem;
}

/* Custom Scrollbar for Sidebar */
.dashboard-nav::-webkit-scrollbar {
  width: 5px;
}

.dashboard-nav::-webkit-scrollbar-track {
  background: transparent;
}

.dashboard-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.dashboard-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* QR Areas Specific adjustments */
.table-hover tbody tr:hover {
  background-color: #f8fafc;
}

/* --- RESTORED PUBLIC STYLES --- */

.qr-shell {
  max-width: 840px;
}

.scan-page {
  min-height: 100vh;
  background: #f8fafc;
  color: #0f172a;
  display: flex;
  flex-direction: column;
}

.scan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(1rem, 3vw, 2rem);
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  position: sticky;
  top: 0;
  z-index: 10;
}

.scan-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.scan-brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #0f6b5e;
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.scan-brand-title {
  font-weight: 700;
  font-size: 1.1rem;
}

.scan-brand-subtitle {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #64748b;
}

.scan-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.scan-location {
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 1.5rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.scan-location-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
}

.scan-location-meta {
  margin: 0;
  color: #64748b;
}

.scan-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.scan-card {
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 1.75rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.08);
}

.scan-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.scan-card-text {
  color: #64748b;
  margin-bottom: 1.2rem;
}

.scan-card-btn {
  width: 100%;
}

.scan-form {
  display: grid;
  gap: 1.25rem;
}

.scan-section-title {
  display: block;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: #0f172a;
}

.scan-choice-grid {
  gap: 1.25rem;
}

.scan-page .choice-card {
  min-height: 160px;
  border-radius: 1.4rem;
  padding: 1.4rem;
}

.scan-page .choice-card .choice-icon {
  width: 54px;
  height: 54px;
  font-size: 1.8rem;
}

.scan-page .choice-card .choice-title {
  font-size: 1.1rem;
}

.scan-submit {
  padding: 0.95rem 1rem;
  font-weight: 700;
}

.home-hero {
  background: linear-gradient(135deg, rgba(15, 107, 94, 0.12), rgba(242, 166, 90, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.home-hero .card-body {
  padding: 2.6rem;
}

.home-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(15, 107, 94, 0.12);
  color: #0f6b5e;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.12;
}

.home-lead {
  font-size: 1.05rem;
  max-width: 36rem;
}

.home-card {
  border-radius: 1.2rem;
  padding: 1.4rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(26, 25, 23, 0.08);
  box-shadow: 0 14px 32px rgba(26, 25, 23, 0.12);
}

.home-card-title {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.home-card-text {
  margin: 0;
  color: #5b5753;
}

.home-section {
  margin-bottom: 2.5rem;
}

.home-section-header {
  margin-bottom: 1rem;
}

.home-section-title {
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  margin: 0;
}

.home-step-index {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(15, 107, 94, 0.12);
  color: #0f6b5e;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
}

.home-feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(59, 77, 255, 0.12);
  color: #3342b5;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
  letter-spacing: 0.05em;
}

.home-spotlight {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(26, 25, 23, 0.08);
  margin-bottom: 1.2rem;
}

.home-spotlight-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: conic-gradient(from 120deg, #0f6b5e, #f2a65a, #3b4dff, #0f6b5e);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.08em;
}

.home-spotlight-title {
  font-family: 'Fraunces', serif;
  font-size: 1.35rem;
}

.home-spotlight-text {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6d6a66;
}

.home-spotlight-list {
  display: grid;
  gap: 0.6rem;
}

.home-spotlight-item {
  font-weight: 600;
  color: #1a1917;
  padding: 0.55rem 0.75rem;
  border-radius: 0.9rem;
  background: rgba(15, 107, 94, 0.08);
}

.home-cta {
  margin-top: 1.5rem;
  background: linear-gradient(135deg, rgba(15, 107, 94, 0.16), rgba(255, 255, 255, 0.95));
  border: 1px solid rgba(15, 107, 94, 0.2);
}

.home-footer-note {
  @media (max-width: 768px) {
    .site-topbar {
      border-radius: 1.1rem;
    }

    .brand-mark {
      width: 48px;
      height: 48px;
    }

    .nav-pills {
      display: grid !important;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0.6rem;
    }

    .btn:not(.btn-sm) {
      width: 100%;
    }

    .btn-group .btn {
      width: auto;
    }

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

    .home-hero .card-body {
      padding: 1.6rem;
    }

    .home-title {
      font-size: 2rem;
    }

  }
}

/* Landing page */
.home-body {
  background: #f8fafc;
  color: #0f172a;
}

.home-body::before,
.home-body::after {
  content: none;
}

.landing-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  backdrop-filter: blur(14px);
}

.landing-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-content: space-between;
  position: relative;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #0f172a;
  font-weight: 700;
  font-size: 1.05rem;
}

.landing-logo {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
}

.landing-logo-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.landing-brand-text {
  letter-spacing: 0.02em;
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  justify-content: center;
  flex: 1;
}

.landing-nav-links a {
  color: #475569;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.landing-nav-links a:hover {
  color: #0f172a;
}

.landing-contact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.landing-contact-item {
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 1rem;
  padding: 1rem 1.2rem;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.landing-contact-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: #0f172a;
}

.landing-contact-item p {
  margin: 0;
  color: #475569;
}

.landing-contact-item a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.landing-contact-note {
  margin-top: 0.75rem;
  color: #475569;
  text-align: center;
  font-size: 0.9rem;
}

.landing-lang {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.landing-lang-toggle-flag {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  justify-content: center;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.6);
  display: inline-flex;
  align-items: center;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.landing-lang-toggle-flag::after {
  display: none;
}

.landing-lang-toggle-flag .lang-flag {
  font-size: 1.45rem;
  line-height: 1;
}

.landing-lang-toggle-flag:hover {
  border-color: rgba(37, 99, 235, 0.8);
  transform: translateY(-1px);
}

.landing-lang-mobile {
  display: none;
}

.landing-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.landing-lang-toggle {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: #fff;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.landing-lang-menu {
  border-radius: 1rem;
  padding: 0.25rem;
  min-width: 170px;
  border: 1px solid rgba(226, 232, 240, 0.75);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.15);
  background: #fff;
}

.landing-nav-cta {
  text-decoration: none;
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: #fff;
  font-weight: 600;
  border: none;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.28);
  color: #fff;
}

.landing-nav-mobile {
  display: none;
  margin-left: auto;
  position: relative;
}

.landing-contact {
  grid-template-columns: 1fr;
}

.landing-nav-mobile summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: #fff;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.landing-nav-mobile summary::-webkit-details-marker {
  display: none;
}

.landing-nav-mobile summary::after {
  content: '☰';
  font-size: 1rem;
  line-height: 1;
}

.landing-nav-mobile[open] summary::after {
  content: '✕';
}

.landing-nav-mobile-panel {
  margin-top: 0.75rem;
  padding: 0.9rem;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
  display: grid;
  gap: 0.5rem;
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  width: min(82vw, 320px);
  z-index: 1010;
  max-height: calc(100vh - 120px);
  overflow: auto;
  transform-origin: top right;
  animation: landingMenuIn 0.18s ease;
}

.landing-nav-mobile-overlay {
  display: none;
}

.landing-nav-mobile-panel>a {
  text-decoration: none;
  color: #0f172a;
  font-weight: 600;
  padding: 0.55rem 0.7rem;
  border-radius: 0.85rem;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.15);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.landing-nav-mobile-panel>a:hover {
  background: #eef2ff;
  border-color: rgba(99, 102, 241, 0.25);
  transform: translateX(2px);
}

.landing-mobile-lang {
  padding: 0.5rem 0;
  border-top: 1px dashed rgba(148, 163, 184, 0.25);
  border-bottom: 1px dashed rgba(148, 163, 184, 0.25);
}

.landing-mobile-lang-dropdown {
  border-radius: 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #fff;
  overflow: hidden;
}

.landing-mobile-lang-dropdown summary {
  list-style: none;
  cursor: pointer;
  padding: 0.55rem 0.9rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  font-weight: 600;
  color: #0f172a;
  background: rgba(248, 250, 252, 0.95);
}

.landing-mobile-lang-dropdown summary::-webkit-details-marker {
  display: none;
}

.landing-mobile-lang-arrow {
  font-size: 0.95rem;
  transition: transform 0.2s ease;
}

.landing-mobile-lang-dropdown[open] .landing-mobile-lang-arrow {
  transform: rotate(180deg);
}

.landing-mobile-lang-options {
  padding: 0.25rem 0.9rem 0.75rem;
  display: grid;
  gap: 0.4rem;
}

.landing-lang-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: #475569;
  text-decoration: none;
  width: 100%;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.landing-lang-item .lang-flag {
  font-size: 1.15rem;
}

.landing-lang-item.is-active {
  color: #0f172a;
  font-weight: 600;
}

.landing-lang-menu .landing-lang-item {
  background: transparent;
  border: none;
  padding: 0.4rem 0.9rem;
  border-radius: 0.75rem;
}

.landing-lang-menu .landing-lang-item:hover,
.landing-lang-menu .landing-lang-item.active {
  background: rgba(37, 99, 235, 0.08);
  color: #0f172a;
}

.landing-mobile-lang-options .landing-lang-item {
  background: #fff;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 0.55rem 0.9rem;
}

.landing-mobile-lang-options .landing-lang-item:hover {
  background: #f8fafc;
  border-color: rgba(37, 99, 235, 0.35);
}

.landing-mobile-lang-options .landing-lang-item.is-active {
  border-color: rgba(37, 99, 235, 0.4);
  background: rgba(37, 99, 235, 0.08);
  color: #0f172a;
  font-weight: 600;
}

.landing-nav-mobile-panel .landing-nav-cta {
  width: 100%;
  text-align: center;
}

@keyframes landingMenuIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }

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

@keyframes landingSheetIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

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

.page-transition {
  opacity: 0;
  transform: translateY(16px);
  animation: pageTransitionIn 0.45s ease forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes pageTransitionIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

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

.landing-main {
  padding-top: 90px;
}

.landing-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.landing-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #eff6ff 0%, #ecfeff 45%, #ffffff 100%);
}

.landing-hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(15, 23, 42, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.08) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.18;
  pointer-events: none;
}

.landing-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3.5rem;
  padding: 0.5rem 0 3.5rem;
  z-index: 1;
  padding-left: 2em;
  padding-right: 2em;
}

.landing-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.landing-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  width: fit-content;
}

.landing-hero-title {
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  line-height: 1.1;
  font-weight: 700;
  margin: 0;
}

.text-gradient {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.landing-hero-lead {
  font-size: 1.15rem;
  color: #475569;
  max-width: 32rem;
}

.landing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.landing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.85rem 2rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-btn-primary {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: #fff;
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.25);
}

.landing-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.3);
  color: #fff;
}

.landing-btn-outline {
  border: 2px solid rgba(148, 163, 184, 0.5);
  color: #0f172a;
  background: #fff;
}

.landing-btn-outline:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.12);
}

.landing-hero-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.95rem;
  color: #475569;
}

.landing-check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.landing-check svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #22c55e;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.landing-hero-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-hero-card {
  background: #fff;
  padding: 2.3rem;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.18);
  transform: rotate(2deg);
  transition: transform 0.4s ease;
}

.landing-hero-card:hover {
  transform: rotate(0deg);
}

.landing-hero-qr {
  width: 240px;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  background: linear-gradient(135deg, #dbeafe, #cffafe);
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-hero-qr svg {
  width: 140px;
  height: 140px;
  fill: none;
  stroke: #2563eb;
  stroke-width: 1.6;
}

.landing-hero-metrics {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.75rem;
}

.landing-hero-metric {
  background: rgba(34, 197, 94, 0.1);
  padding: 0.75rem 1rem;
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: #166534;
}

.landing-hero-metric.is-bad {
  background: rgba(248, 113, 113, 0.12);
  color: #991b1b;
}

.landing-hero-glow {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.22;
  z-index: -1;
}

.landing-hero-glow-primary {
  background: #60a5fa;
  top: 10%;
  right: -8%;
}

.landing-hero-glow-secondary {
  background: #22d3ee;
  bottom: -10%;
  left: -8%;
}

.landing-section {
  padding: 5rem 0;
}

.landing-section-muted {
  background: #f8fafc;
}

.landing-section-heading {
  margin-bottom: 2.5rem;
}

.landing-section-title {
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 700;
  margin: 0;
}

.landing-grid {
  display: grid;
  gap: 1.5rem;
}

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

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

.landing-step-card,
.landing-feature-card,
.landing-audience-card,
.landing-stat-card {
  background: #fff;
  border-radius: 20px;
  padding: 1.8rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.08);
}

.landing-step-card {
  position: relative;
  overflow: hidden;
}

.landing-step-index {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.landing-step-icon,
.landing-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  margin-bottom: 1.1rem;
}

.landing-step-icon.is-cyan,
.landing-feature-icon.is-cyan {
  background: rgba(6, 182, 212, 0.12);
  color: #0e7490;
}

.landing-step-card svg,
.landing-feature-card svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.landing-step-card h3,
.landing-feature-card h3,
.landing-audience-card h3 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
  font-weight: 700;
}

.landing-step-card p,
.landing-feature-card p {
  margin: 0;
  color: #64748b;
}

.landing-feature-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.12);
}

.landing-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.landing-stat-card {
  text-align: center;
  background: linear-gradient(135deg, #f8fafc, #ffffff);
}

.landing-stat-value {
  font-size: 2.4rem;
  font-weight: 700;
  display: block;
}

.landing-stat-label {
  color: #64748b;
  font-weight: 500;
}

.landing-audience-card {
  background: #fff;
}

.landing-audience-tag {
  display: inline-flex;
  padding: 0.35rem 0.85rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.landing-audience-tag.is-cyan {
  background: linear-gradient(135deg, #06b6d4, #0e7490);
}

.landing-audience-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.landing-audience-card li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #475569;
  font-weight: 500;
}

.landing-audience-card li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
}

.landing-cta {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: #fff;
}

.landing-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.landing-cta h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.landing-cta p {
  margin: 0;
  max-width: 40rem;
  opacity: 0.9;
}

.landing-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.landing-btn-light {
  background: #fff;
  color: #2563eb;
}

.landing-btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: #fff;
}

.landing-btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
}

.landing-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 3.5rem 0 2rem;
}

.landing-footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.landing-footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.8rem;
}

.landing-footer-note {
  max-width: 26rem;
  margin: 0;
}

.landing-footer-links {
  display: grid;
  gap: 0.6rem;
}

.landing-footer-links a {
  color: #cbd5f5;
  text-decoration: none;
  font-weight: 500;
}

.landing-footer-copy {
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding-top: 1.5rem;
}

.landing-reveal {
  animation: landingFadeUp 0.7s ease both;
  animation-delay: var(--delay, 0s);
}

@keyframes landingFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

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

@media (max-width: 1100px) {
  .landing-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .landing-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .landing-nav-links,
  .landing-nav-actions {
    display: none;
  }

  .landing-lang-mobile {
    display: inline-flex;
    margin-left: auto;
    margin-right: -1em;
  }

  .landing-lang-mobile .landing-lang-toggle-flag {
    width: 44px;
    height: 44px;
  }

  .landing-nav-mobile {
    display: block;
    margin-left: 0;
  }

  .landing-contact {
    grid-template-columns: 1fr;
  }

  .landing-nav-mobile[open] .landing-nav-mobile-overlay {
    display: block;
  }

  .landing-nav-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(2px);
    z-index: 1000;
  }

  .landing-nav-mobile-panel {
    position: fixed;
    right: 0;
    left: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    max-width: 100%;
    border-radius: 1.5rem 1.5rem 0 0;
    padding: 1.2rem 1.4rem 1.8rem;
    max-height: 78vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 -20px 40px rgba(15, 23, 42, 0.2);
    animation: landingSheetIn 0.22s ease;
  }

  .landing-nav-mobile[open] .landing-nav-mobile-panel {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .landing-nav-mobile-panel::before {
    content: '';
    width: 56px;
    height: 5px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.6);
    display: block;
    margin: 0 auto 0.9rem;
  }

  .landing-hero-inner {
    grid-template-columns: 1fr;
  }

  .landing-hero-card {
    transform: none;
  }

  .landing-stats {
    grid-template-columns: 1fr;
  }

  .landing-grid-3 {
    grid-template-columns: 1fr;
  }

  .landing-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .landing-main {
    padding-top: 5em;
  }

  .landing-nav {
    height: auto;
    padding: 1rem 1.2rem;
  }

  .landing-hero {
    padding-top: 1rem;
  }

  .landing-hero-title {
    font-size: clamp(2rem, 8vw, 2.6rem);
  }

  .landing-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .landing-hero-checks {
    flex-direction: column;
    gap: 0.6rem;
  }

  .landing-hero-card {
    padding: 1.6rem;
    max-width: 320px;
    margin: 0 auto;
  }

  .landing-hero-qr {
    width: 100%;
  }

  .landing-section {
    padding: 3.5rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-reveal {
    animation: none;
  }

  .landing-hero-card,
  .landing-feature-card {
    transition: none;
  }
}

/* Internationalization (i18n) */
.i18n-group {
  position: relative;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  background: #fff;
}

.i18n-group-compact {
  padding: 0.5rem;
}

.i18n-input {
  display: none !important;
}

.i18n-input.is-active {
  display: block !important;
  animation: fadeIn 0.2s ease;
}

.i18n-flags {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  border-top: 1px solid var(--color-border);
  padding-top: 0.75rem;
  flex-wrap: wrap;
}

.i18n-group-compact .i18n-flags {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}

.lang-flag-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1.2rem;
  opacity: 0.6;
}

.lang-flag-btn:hover {
  transform: translateY(-2px);
  opacity: 1;
  border-color: var(--color-accent);
}

.lang-flag-btn:focus,
.lang-flag-btn.is-active {
  opacity: 1;
  border-color: var(--color-accent);
  background: rgba(37, 99, 235, 0.05);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
  outline: none;
}

.lang-flag-btn.is-complete {
  border-color: var(--color-success);
  color: var(--color-success);
}

.lang-flag-btn.is-missing {
  border-color: var(--color-warning);
}

.lang-flag {
  display: block;
  line-height: 1;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Language Switcher Refinement */
.lang-switch .lang-dropdown-toggle {
  display: flex !important;
  align-items: center !important;
  gap: 0.6rem !important;
  padding: 0.45rem 1rem !important;
  border-radius: 999px !important;
  border: 1px solid rgba(37, 99, 235, 0.15) !important;
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(8px);
  color: var(--color-accent) !important;
  font-weight: 600 !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.lang-switch .lang-dropdown-toggle:hover {
  background: #fff !important;
  border-color: var(--color-accent) !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
}

.lang-switch .lang-flag {
  font-size: 1.2rem;
  line-height: 1;
  display: inline-block !important;
}

.lang-switch .lang-name {
  font-size: 0.85rem;
  letter-spacing: 0.01em;
}

.lang-dropdown-menu {
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 1.25rem !important;
  padding: 0.5rem !important;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12) !important;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.95) !important;
  min-width: 160px !important;
  margin-top: 0.5rem !important;
  animation: landingMenuIn 0.2s ease;
}

.lang-dropdown-menu .dropdown-item {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  padding: 0.6rem 1rem !important;
  border-radius: 0.85rem !important;
  color: #475569 !important;
  font-weight: 500 !important;
  transition: all 0.15s ease !important;
}

.lang-dropdown-menu .dropdown-item:hover,
.lang-dropdown-menu .dropdown-item.active {
  background: rgba(37, 99, 235, 0.08) !important;
  color: var(--color-accent) !important;
}

.lang-dropdown-menu .dropdown-item.active {
  font-weight: 700 !important;
}

/* Mobile Input & Flag Fixes */
@media (max-width: 768px) {
  .i18n-flags {
    gap: 0.35rem !important;
    margin-top: 0.5rem !important;
    padding-top: 0.5rem !important;
  }

  .lang-flag-btn {
    width: 28px !important;
    height: 28px !important;
    font-size: 1rem !important;
    border-radius: 6px !important;
  }

  /* Specific handling for table-based i18n groups */
  .i18n-group-compact .i18n-flags {
    margin-top: 0.25rem !important;
    padding-top: 0.25rem !important;
    border-top: none !important; /* Save vertical space */
  }

  .i18n-group-compact .lang-flag-btn {
    width: 24px !important;
    height: 24px !important;
    font-size: 0.9rem !important;
  }

  /* Improve form actions alignment in tables on mobile */
  .option-actions form {
    justify-content: flex-start !important; /* Align to left/start on mobile */
    gap: 0.5rem !important;
  }
}

/* Enhanced Mobile Input & Flag Fixes */
@media (max-width: 768px) {
  /* Prevent i18n-group from being crushed in flex containers (e.g., table cells) */
  .d-flex > .i18n-group,
  .vstack > .i18n-group,
  .option-actions .i18n-group {
    flex: 0 0 100% !important;
    width: 100% !important;
    margin-bottom: 0.5rem !important;
  }

  .i18n-flags {
    gap: 0.25rem !important;
    margin-top: 0.4rem !important;
    padding-top: 0.4rem !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
  }

  .lang-flag-btn {
    width: 26px !important;
    height: 26px !important;
    font-size: 0.95rem !important;
    border-radius: 6px !important;
  }

  /* Extreme compact mode for tables */
  .i18n-group-compact .i18n-flags {
    margin-top: 0.2rem !important;
    padding-top: 0 !important;
    border-top: none !important;
  }

  .i18n-group-compact .lang-flag-btn {
    width: 22px !important;
    height: 22px !important;
    font-size: 0.85rem !important;
  }

  /* Table action cell adjustments */
  .options-table td:last-child {
    min-width: 160px; /* Ensure enough room for actions */
  }

  .option-actions form {
    width: 100%;
    flex-wrap: wrap !important;
  }
}

/* Global Table-to-Card Transformation for Mobile Admin Panels */
@media (max-width: 991px) {
  .table-responsive table,
  .table-responsive thead,
  .table-responsive tbody,
  .table-responsive th,
  .table-responsive td,
  .table-responsive tr {
    display: block !important;
    width: 100% !important;
  }

  /* Hide headers on mobile */
  .table-responsive thead {
    display: none !important;
  }

  .table-responsive tr {
    border: 1px solid var(--color-border) !important;
    border-radius: var(--radius-lg) !important;
    margin-bottom: 1.5rem !important;
    background: #fff !important;
    padding: 0 !important;
    box-shadow: var(--shadow-sm) !important;
    overflow: hidden;
  }

  .table-responsive td {
    border: none !important;
    padding: 0.85rem 1.25rem !important;
    position: relative;
    text-align: left !important;
  }

  /* Treat first cell as header */
  .table-responsive td:first-child {
    font-weight: 700;
    font-size: 1.1rem;
    background: #f8fafc;
    border-bottom: 1px solid var(--color-border) !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }

  /* Treat last cell as footer/actions */
  .table-responsive td:last-child {
    border-top: 1px solid var(--color-border) !important;
    background: #f8fafc;
    margin-top: 0.5rem;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }

  /* Fix nested form elements to use full width */
  .table-responsive form {
    width: 100% !important;
  }

  .table-responsive .row {
    margin: 0 !important;
    width: 100% !important;
  }

  .table-responsive .col-12, 
  .table-responsive .col-md-6, 
  .table-responsive .col-md-4 {
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    margin-bottom: 0.75rem !important;
  }

  .table-responsive .form-control,
  .table-responsive .form-select {
    font-size: 1rem !important;
    padding: 0.65rem 0.85rem !important;
  }

  .table-responsive .btn {
    width: 100% !important;
    margin-top: 0.25rem;
  }

  /* Improved consistency for multi-language components in cards */
  .table-responsive .i18n-group {
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    background: rgba(248, 250, 252, 0.5);
  }
}
