:root {
  color-scheme: light;
  --ink: #0f172a;
  --muted: #64748b;
  --bg: #fffbf7; /* WARM BACKGROUND */
  --card: #ffffff;
  --accent: #2563eb;
  --accent-dark: #1e40af;
  --accent-light: #3b82f6;
  --accent-soft: #eff6ff;
  --success: #10b981;
  --success-soft: #d1fae5;
  --warning: #f59e0b;
  --warning-soft: #fef3c7;
  --danger: #ef4444;
  --danger-soft: #fee2e2;
  --line: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  /* Softer than Tailwind's shadow-xl; used for customer cards */
  --shadow-xl: 0 10px 20px rgba(15, 23, 42, 0.06), 0 4px 8px rgba(15, 23, 42, 0.035);
  --radius: 16px;
  --radius-lg: 24px;
  --mono: "Inter", "Space Grotesk", "Segoe UI", sans-serif;
  --serif: "Fraunces", "Times New Roman", serif;
  
  --form-bg: #ffffff;
  --form-border: #cbd5e1;
  --form-radius: 12px;
  --form-shadow: none;
  --form-shadow-focus: 0 0 0 3px rgba(37, 99, 235, 0.1);
  --form-label: #475569;
  --form-placeholder: #94a3b8;
  --form-gap: 20px;
}

/* -------------------------------------------------------------------------
   Customer Panel Softening Overrides
   - Many pages use Tailwind utility classes (shadow-xl, border-2, etc.).
   - We override a few "too harsh" ones so USA (DS-160) + Schengen pages share
     the same softer card language across the whole customer panel.
   ------------------------------------------------------------------------- */
.panel-body .shadow-xl {
  box-shadow: var(--shadow-xl) !important;
}
.panel-body .shadow-2xl {
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.10), 0 8px 20px rgba(15, 23, 42, 0.06) !important;
}
.panel-body .hover\\:shadow-2xl:hover,
.panel-body .hover\\:shadow-xl:hover {
  box-shadow: var(--shadow-xl) !important;
}
.panel-body .border-2 {
  border-width: 1px !important;
}
/* Disable aggressive gradient borders on cards (still looks premium but less "kaba"). */
.panel-body .gradient-border::before,
.panel-body .gradient-border:hover::before {
  opacity: 0 !important;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--mono);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* -------------------------------------------------------------------------
   Application Shell (DS-160 look) — used by DS-160 and generic country forms
   ------------------------------------------------------------------------- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.6s ease-out; }

.ds160-modern-wrapper {
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8f0fe 50%, #f3e7f9 100%);
  padding: 2rem;
}
.ds160-modern-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  align-items: start;
}
.ds160-modern-sidebar {
  position: sticky;
  top: 100px;
  background: white;
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow-xl);
  transition: box-shadow 0.3s ease;
  border: 1px solid rgba(15, 23, 42, 0.08);
}
.ds160-modern-sidebar:hover { box-shadow: 0 12px 22px rgba(15, 23, 42, 0.07), 0 5px 10px rgba(15, 23, 42, 0.04); }
.ds160-modern-sidebar h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
  color: var(--ink);
  font-family: var(--serif);
}
.ds160-modern-sidebar p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}
.ds160-modern-content {
  background: white;
  border-radius: 24px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
  border: 1px solid rgba(15, 23, 42, 0.08);
}
.ds160-modern-content:hover { box-shadow: 0 12px 22px rgba(15, 23, 42, 0.07), 0 5px 10px rgba(15, 23, 42, 0.04); }

/* -------------------------------------------------------------------------
   Tailwind Utility Overrides (Customer Panel)
   The UI uses Tailwind CDN for layout utilities, but we want a consistent,
   softer "card" language across DS-160 + Schengen + dashboard pages.
   ------------------------------------------------------------------------- */
.shadow-xl { box-shadow: var(--shadow-xl) !important; }
.shadow-2xl { box-shadow: var(--shadow-xl) !important; }
.rounded-3xl { border-radius: var(--radius-lg) !important; }
.rounded-2xl { border-radius: var(--radius) !important; }
.hover\\:shadow-xl:hover { box-shadow: var(--shadow-xl) !important; }
.hover\\:shadow-2xl:hover { box-shadow: var(--shadow-xl) !important; }
.ds160-modern-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  padding: 2rem;
  color: white;
}
.ds160-modern-header h2 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  color: white;
}
.ds160-modern-header p { opacity: 0.9; margin: 0; }
.ds160-form-wrapper { padding: 2rem; }

/* Sidebar nav links (shared) */
.ds160-nav { margin-top: 1.25rem; }
.ds160-link {
  display: block;
  padding: 0.75rem 1rem;
  color: #6b7280;
  text-decoration: none;
  border-radius: 12px;
  margin-bottom: 0.25rem;
  transition: all 0.3s;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}
.ds160-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
  transform: scaleY(0);
  transition: transform 0.3s;
}
.ds160-link:hover {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  color: #111827;
  transform: translateX(2px);
}
.ds160-link:hover::before { transform: scaleY(1); }
.ds160-link.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.30);
}

@media (max-width: 1024px) {
  .ds160-modern-wrapper { padding: 1rem; }
  .ds160-modern-container { grid-template-columns: 1fr; }
  .ds160-modern-sidebar { position: relative; top: 0; }
  .ds160-form-wrapper { padding: 1rem; }
}

/* --- TOPBAR & HEADER STYLES --- */
.customer-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.customer-topbar > div:first-child {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}

.customer-topbar > div:first-child > div:last-child {
  display: flex;
  flex-direction: column;
}

.customer-topbar .customer-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border, #dee2e6);
  flex-shrink: 0;
  background: var(--bg-secondary, #f8f9fa);
}

.customer-topbar .customer-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.customer-topbar h1 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  font-family: var(--serif);
}

.pill {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.customer-nav {
  display: flex;
  gap: 8px;
  background: #fff;
  padding: 6px;
  border-radius: 99px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.nav-link {
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 99px;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.nav-link:hover {
  background: var(--bg);
  color: var(--ink);
}

.nav-link.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

/* -------------------------------------------------------------------------
   Modern Header (Topbar)
   - Markup is Tailwind utility-heavy; these rules cover the non-utility bits:
     sticky gradient header, active underline, dropdown menu, and responsive fixes.
   ------------------------------------------------------------------------- */
.modern-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}
.nav-link-modern {
  position: relative;
  transition: all 0.3s ease;
}

/* Header hardening: do not rely on Tailwind utilities for layout stability.
   This prevents USA vs ITA header "kabalık" drift when labels get longer,
   and also keeps icon+label aligned even if Tailwind CDN is blocked. */
.wl-topbar-row {
  gap: 16px;
}
.wl-topbar-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
}
.wl-topbar-nav .nav-link-modern {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.wl-topbar-nav .nav-link-modern svg {
  flex: 0 0 auto;
}
.wl-topbar-nav .nav-label {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 220px;
}
.application-switcher > button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.application-switcher .app-label {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 360px;
}
.nav-link-modern::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: transform 0.3s ease;
}
.nav-link-modern:hover::after,
.nav-link-modern.active::after {
  transform: translateX(-50%) scaleX(1);
}
.avatar-dropdown { position: relative; }
.avatar-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.20);
  min-width: 200px;
  animation: slideDown 0.3s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Tailwind utility fallbacks (header stability if CDN is blocked) */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.items-center { align-items: center; }
.gap-2 { gap: 0.5rem; }
.whitespace-nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shrink-0 { flex-shrink: 0; }
.min-w-0 { min-width: 0; }

/* Mobile overflow fixes: keep header contents from forcing page width */
.modern-header .max-w-7xl { max-width: 100%; }
.modern-header nav {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.modern-header nav::-webkit-scrollbar { height: 0; }

@media (max-width: 768px) {
  .modern-header .max-w-7xl {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .modern-header .max-w-7xl > .flex {
    flex-wrap: wrap;
    gap: 10px;
  }
  .modern-header nav {
    width: 100%;
    order: 10;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: 6px 8px !important;
  }
  .nav-link-modern {
    padding: 8px 12px !important;
    font-size: 12px;
    white-space: nowrap;
  }
  .wl-topbar-nav .nav-label {
    max-width: 160px;
  }
  .application-switcher .app-label {
    max-width: 240px;
  }
  .application-switcher { margin-right: 0 !important; }
  .application-switcher > button { max-width: 100%; }
}

/* Header variants (A/B) */
.modern-header[data-variant="v1"] .max-w-7xl { padding-top: 10px; padding-bottom: 10px; }
.modern-header[data-variant="v1"] .text-white > p { display: none; }
.modern-header[data-variant="v1"] h1 { font-size: 16px !important; line-height: 1.2; }
.modern-header[data-variant="v1"] nav {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.modern-header[data-variant="v1"] .nav-link-modern { padding: 8px 14px !important; font-size: 13px; }
.modern-header[data-variant="v1"] .application-switcher > button {
  padding: 8px 12px !important;
  border-radius: 14px !important;
}
.modern-header[data-variant="v2"] .max-w-7xl { padding-top: 14px; padding-bottom: 14px; }
.modern-header[data-variant="v2"] .max-w-7xl > .flex { flex-wrap: wrap; gap: 12px; }
.modern-header[data-variant="v2"] nav {
  width: 100%;
  order: 20;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.10) !important;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.modern-header[data-variant="v2"] .application-switcher { order: 10; margin-right: 0 !important; }

/* Fallback for inputs */
input,
select,
textarea {
  border: 1.5px solid var(--form-border);
  border-radius: var(--form-radius);
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 0.95rem;
  background: var(--form-bg);
  box-shadow: var(--form-shadow);
  transition: all 0.2s ease;
  width: 100%;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--form-shadow-focus);
  transform: translateY(-1px);
}

input::placeholder,
textarea::placeholder {
  color: var(--form-placeholder);
}

/* --- Layout: Main Panel Wrapper --- */
.panel {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
}

/* --- Layout: Sidebar + Content (DS-160) --- */
.ds160-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
  align-items: start;
}

.ds160-sidebar {
  background: #ffffff;
  padding: 30px;
  border-radius: var(--radius);
  position: sticky;
  top: 30px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}

.ds160-sidebar h2 {
  font-family: var(--serif);
  margin-top: 0;
  margin-bottom: 10px;
}

.ds160-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}

.ds160-link {
  display: block;
  padding: 12px 16px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 600;
  transition: all 0.2s ease;
  text-decoration: none;
}

.ds160-link:hover {
  background: var(--bg);
  color: var(--ink);
}

.ds160-link.active {
  background: var(--accent-soft);
  color: var(--accent);
}

/* DS160 Nav Group - Açılır Kapanır Menü */
.ds160-nav-group {
  border-radius: 10px;
  overflow: hidden;
}

.ds160-nav-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.ds160-nav-group-header:hover {
  background: var(--bg);
  color: var(--ink);
}

.ds160-nav-group.open .ds160-nav-group-header {
  background: var(--bg);
  color: var(--ink);
}

.ds160-nav-arrow {
  transition: transform 0.2s ease;
}

.ds160-nav-group.open .ds160-nav-arrow {
  transform: rotate(180deg);
}

.ds160-nav-group-children {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 4px 0 8px 0;
  background: var(--bg);
}

.ds160-nav-group.open .ds160-nav-group-children {
  display: flex;
}

.ds160-link-child {
  padding: 10px 16px 10px 28px;
  font-size: 0.9rem;
  border-radius: 0;
}

.ds160-link-child::before {
  content: "•";
  margin-right: 8px;
  opacity: 0.5;
}

.ds160-link-child.active {
  background: var(--accent-soft);
  color: var(--accent);
}

/* --- Panel Dashboard Layout --- */
.panel-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
}

.dashboard-card {
  height: 100%;
}

.progress-card {
  grid-column: 1 / -1;
}

@media (max-width: 900px) {
  .ds160-layout,
  .panel-dashboard {
    grid-template-columns: 1fr;
  }
  .ds160-sidebar {
    position: static;
    margin-bottom: 20px;
  }
}

/* --- Premium Form Styles --- */
.grid-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 32px;
  margin-top: 0;
  padding: 0;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.field > span,
.field label {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  letter-spacing: -0.01em;
  margin: 0;
  display: block;
  line-height: 1.4;
}

.field input,
.field select,
.field textarea {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 15px;
  font-family: var(--mono);
  background: #ffffff;
  color: #111827;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
  height: 42px;
  margin: 0;
  appearance: none;
  line-height: 1.5;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #9ca3af;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
  outline: none;
}

.field input:hover:not(:disabled):not(:focus),
.field select:hover:not(:disabled):not(:focus),
.field textarea:hover:not(:disabled):not(:focus) {
  border-color: #9ca3af;
}

.field textarea {
  height: auto;
  min-height: 96px;
  resize: vertical;
  padding: 10px 14px;
  line-height: 1.6;
}

.field input:disabled,
.field select:disabled,
.field textarea:disabled {
  background: #f3f4f6;
  color: #6b7280;
  cursor: not-allowed;
  border-color: #e5e7eb;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
  cursor: pointer;
}

.field-wide {
  grid-column: 1 / -1;
}

.field-group-horizontal {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 32px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  border: none;
  margin: 0;
}

.form-section-title {
  grid-column: 1 / -1;
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin-top: 48px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.02em;
}

.form-section-title:first-of-type {
  margin-top: 0;
}

.form-section-title::before {
  content: "";
  display: block;
  width: 3px;
  height: 22px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  padding: 8px 0;
}

.checkbox input {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid var(--form-border);
  accent-color: var(--accent);
  cursor: pointer;
  margin: 0;
  box-shadow: none;
}

.checkbox span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding: 6px 0 2px;
}

.radio {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  padding: 6px 0;
}

.radio input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
  margin: 0;
  box-shadow: none;
}

.radio span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
}

.field-help {
  margin: 6px 0 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}

.ds160-form [data-conditional],
.ds160-form [data-conditional-not],
.ds160-form [data-conditional-not-name] {
  display: none;
  animation: fadeIn 0.4s ease-out;
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 0.5rem;
  grid-column: 1 / -1;
}

.ds160-form [data-conditional] .field,
.ds160-form [data-conditional-not] .field,
.ds160-form [data-conditional-not-name] .field {
  grid-column: 1 / -1;
  width: 100%;
}

.ds160-form [data-conditional] .field-wide,
.ds160-form [data-conditional-not] .field-wide,
.ds160-form [data-conditional-not-name] .field-wide {
  width: 100%;
}

.ds160-form [data-conditional] input,
.ds160-form [data-conditional] select,
.ds160-form [data-conditional] textarea,
.ds160-form [data-conditional-not] input,
.ds160-form [data-conditional-not] select,
.ds160-form [data-conditional-not] textarea,
.ds160-form [data-conditional-not-name] input,
.ds160-form [data-conditional-not-name] select,
.ds160-form [data-conditional-not-name] textarea {
  width: 100%;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .grid-form {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .field-group-horizontal {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }
}

/* --- Restoring Existing Header/Card Styles --- */
h1, h2, h4 {
  font-family: var(--serif);
  margin: 0 0 0.5rem;
  font-weight: 700;
  color: var(--ink);
}

h1 { font-size: clamp(28px, 4vw, 42px); }
h2 { font-size: clamp(22px, 3vw, 28px); }

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* Modern Card */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--line);
  overflow: visible;
  margin-bottom: 30px;
}

.card-header {
  padding: 24px 28px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-body {
  padding: 28px;
}

.card > .grid-form {
  padding: 28px;
}

.ds160-content .card-body {
  padding: 32px 40px 48px;
}

/* -------------------------------------------------------------------------
   Tailwind Utility Softening (Customer Theme)
   Some pages still use Tailwind CDN utilities (shadow-xl, rounded-3xl, etc.).
   To keep a single consistent "soft" theme across ALL applications, we
   override the heavy defaults here (style.css is loaded after Tailwind).
   ------------------------------------------------------------------------- */
.rounded-3xl { border-radius: var(--radius) !important; }
.shadow-xl { box-shadow: var(--shadow-xl) !important; }
.shadow-2xl { box-shadow: var(--shadow-xl) !important; }
.hover\\:shadow-2xl:hover { box-shadow: var(--shadow-xl) !important; }

/* Reduce the "neon frame" feeling without touching markup everywhere */
.gradient-border::before { opacity: 0.10 !important; }
.gradient-border:hover::before { opacity: 0.16 !important; }

/* Panel Dashboard Styles (Progress, Status, Table) */
.progress {
  background: var(--bg);
  border-radius: 99px;
  height: 12px;
  margin: 20px 40px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.progress-bar {
  background: var(--gradient-success);
  height: 100%;
  border-radius: 99px;
  transition: width 1s ease;
}

.progress-meta {
  padding: 0 40px 30px;
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--muted);
}

.security-badge {
  background: var(--success-soft);
  color: var(--success);
  text-align: center;
  padding: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  padding: 0 40px 40px;
}

.status-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.status-item span {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 16px 24px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  background: var(--bg);
  font-weight: 600;
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* DS-160 Header Badges */
.ds160-header-badges {
  display: flex;
  gap: 12px;
  align-items: center;
}

.ds160-modern-content [data-list-container] {
  grid-column: 1 / -1;
}

.ds160-modern-content .section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #111827;
  margin: 32px 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.10);
  letter-spacing: -0.02em;
}

.ds160-modern-content .section-title span {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 999px;
  animation: ds160Pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes ds160Pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.15); }
}

.ds160-modern-content .btn-doc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.ds160-modern-content .btn-doc:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.16);
  filter: brightness(1.02);
}

.ds160-modern-content .btn-doc-upload { background: var(--accent); }
.ds160-modern-content .btn-doc-view { background: #10b981; }
.ds160-modern-content .btn-doc-delete { background: #ef4444; }

.ds160-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--bg);
  border-radius: 99px;
  border: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink);
  transition: all 0.2s ease;
}

.ds160-badge-item:hover {
  border-color: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.ds160-badge-icon {
  font-size: 1rem;
  line-height: 1;
}

.ds160-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.ds160-badge-label {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.ds160-badge-value {
  font-weight: 600;
  color: var(--ink);
}

.btn-micro {
  padding: 2px 6px;
  font-size: 0.75rem;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  margin-left: 6px;
}
.btn-micro:hover {
  background: var(--bg);
}

/* Error Text */
.ds160-app-id-error {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 4px;
  margin-top: 4px;
  white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  gap: 8px;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
  color: #fff;
}

.btn-secondary, .btn-ghost {
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-secondary:hover, .btn-ghost:hover {
  background: var(--bg);
  border-color: var(--muted);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
}

.btn-link {
  background: transparent;
  border: none;
  color: var(--accent);
  padding: 4px 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease;
}

.btn-link:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.btn-link-danger {
  color: var(--danger);
}

.btn-link-danger:hover {
  color: #dc2626;
}

/* Badges & Tags */
.badge {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.tag {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.tag-ok {
  background: var(--success-soft);
  color: var(--success);
}

.tag-warn {
  background: var(--warning-soft);
  color: var(--warning);
}

/* Alerts */
.alert {
  padding: 16px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-weight: 500;
}

.alert-success {
  background: var(--success-soft);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-error {
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Field Readonly (Profile Page) */
.field-readonly {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-readonly span {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  margin: 0;
}

.field-readonly strong {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  line-height: 1.6;
  margin: 0;
  min-height: 24px;
  display: block;
}

/* Button Outline */
.btn-outline {
  background: #ffffff;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-outline:hover {
  background: var(--accent);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* Panel Grid (Documents Page) */
.panel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 1024px) {
  .panel-grid {
    grid-template-columns: 1.5fr 1fr;
  }
}

/* Form Actions */
.form-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

.modal-actions {
  border-top: none;
  padding-top: 0;
  margin-top: 24px;
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal[hidden] {
  display: none;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: #f3f4f6;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  transition: all 0.2s ease;
  z-index: 2;
}

.modal-close:hover {
  background: #e5e7eb;
  color: #111827;
}

.modal-header {
  padding: 32px 32px 24px;
  border-bottom: 1px solid #e5e7eb;
}

.modal-header h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  color: #111827;
}

.modal-header p {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
}

.modal-card .grid-form {
  padding: 32px;
}

/* Table in Documents */
.table-wrapper table {
  margin: 0;
}

.table-wrapper th,
.table-wrapper td {
  padding: 14px 20px;
  font-size: 14px;
}

.table-wrapper form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.table-wrapper input[type="file"] {
  font-size: 13px;
  padding: 6px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #ffffff;
}

.table-wrapper .btn-outline {
  padding: 6px 14px;
  font-size: 13px;
  white-space: nowrap;
}

/* Link Styles */
.link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.link:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

/* ========================================
   AUTH / LOGIN PAGE STYLES
   ======================================== */
.auth-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

.auth-header {
  padding: 24px 40px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.auth-header__logo {
  display: flex;
  align-items: center;
}

.auth-header__logo .logo-img {
  height: 80px;
  width: auto;
}

.auth {
  flex: 1;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px;
  align-items: start;
}

.auth-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}

.auth-card__brand {
  margin-bottom: 32px;
}

.auth-card__brand h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--ink);
  margin: 8px 0 16px 0;
  font-family: var(--serif);
}

.auth-card__brand p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-form .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-form .field > span {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.auth-form .field input {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 15px;
  font-family: var(--mono);
  background: var(--card);
  transition: all 0.2s ease;
}

.auth-form .field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  outline: none;
}

.auth-form .field input::placeholder {
  color: var(--muted);
}

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink);
}

.checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

.auth-help {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
}

.auth-side {
  display: flex !important;
  flex-direction: column;
  gap: 32px;
}

.auth-side .stat {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--line);
}

.auth-side .stat h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px 0;
}

.auth-side .stat p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* Floating Orbs */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
}

.orb-a {
  width: 400px;
  height: 400px;
  background: var(--accent-soft);
  top: -100px;
  right: -100px;
}

.orb-b {
  width: 300px;
  height: 300px;
  background: var(--warning-soft);
  bottom: -50px;
  left: -50px;
}

@media (max-width: 900px) {
  .auth {
    grid-template-columns: 1fr;
    padding: 40px 20px;
    gap: 40px;
  }
  
  .auth-card {
    padding: 32px 24px;
  }
  
  .auth-side {
    display: none;
  }
}

/* -------------------------------------------------------------------------
   Tailwind Soft Overrides (Customer Panel Only)
   - Tailwind CDN is used for layout utilities. These overrides make card-like
     frames consistent and less "kaba" across all customer applications.
   ------------------------------------------------------------------------- */
.panel-body .shadow-xl { box-shadow: var(--shadow-xl) !important; }
.panel-body .shadow-2xl { box-shadow: 0 22px 55px rgba(15, 23, 42, 0.10), 0 10px 22px rgba(15, 23, 42, 0.06) !important; }
.panel-body .rounded-3xl { border-radius: var(--radius-lg) !important; }
