:root {
  --fs-primary: #007aff;
  --fs-primary-dark: #0062cc;
  --fs-primary-light: #e8f4ff;
  --fs-accent: #f59e0b;
  --fs-accent-dark: #d97706;
  --fs-surface: #ffffff;
  --fs-bg: #f4f6fb;
  --fs-bg-subtle: #e8ecf4;
  --fs-text: #1e293b;
  --fs-text-muted: #64748b;
  --fs-border: #e2e8f0;
  --fs-success: #059669;
  --fs-danger: #dc2626;
  --fs-warning: #d97706;
  --fs-glass: rgba(255, 255, 255, 0.95);
  --fs-glass-soft: rgba(255, 255, 255, 0.6);
  --fs-glass-topbar: rgba(255, 255, 255, 0.9);
  --fs-glass-auth: rgba(255, 255, 255, 0.85);
  --fs-danger-hover-bg: #fef2f2;
  --fs-danger-hover-border: #fecaca;
  --fs-inline-code-color: #0062cc;
  --fs-info-panel-bg: var(--fs-primary-light);
  --fs-info-panel-border: #b3d9ff;
  --fs-info-panel-text: #004999;
  --fs-body-gradient-1: rgba(0, 122, 255, 0.12);
  --fs-body-gradient-2: rgba(245, 158, 11, 0.06);
  --fs-table-hover: rgba(0, 122, 255, 0.03);
  --fs-radius: 0.75rem;
  --fs-radius-lg: 1rem;
  --fs-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --fs-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  --fs-shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);
  --fs-sidebar-width: 260px;
  --fs-topbar-height: 56px;
}

[data-bs-theme="dark"] {
  --fs-primary: #409cff;
  --fs-primary-dark: #66b3ff;
  --fs-primary-light: rgba(0, 122, 255, 0.18);
  --fs-accent: #fbbf24;
  --fs-accent-dark: #f59e0b;
  --fs-surface: #1e293b;
  --fs-bg: #0f172a;
  --fs-bg-subtle: #1e293b;
  --fs-text: #f1f5f9;
  --fs-text-muted: #94a3b8;
  --fs-border: #334155;
  --fs-success: #34d399;
  --fs-danger: #f87171;
  --fs-warning: #fbbf24;
  --fs-glass: rgba(30, 41, 59, 0.95);
  --fs-glass-soft: rgba(30, 41, 59, 0.72);
  --fs-glass-topbar: rgba(30, 41, 59, 0.92);
  --fs-glass-auth: rgba(30, 41, 59, 0.9);
  --fs-danger-hover-bg: rgba(220, 38, 38, 0.15);
  --fs-danger-hover-border: rgba(248, 113, 113, 0.35);
  --fs-inline-code-color: #66b3ff;
  --fs-info-panel-bg: rgba(0, 122, 255, 0.14);
  --fs-info-panel-border: rgba(64, 156, 255, 0.35);
  --fs-info-panel-text: #b3d9ff;
  --fs-body-gradient-1: rgba(0, 122, 255, 0.18);
  --fs-body-gradient-2: rgba(251, 191, 36, 0.08);
  --fs-table-hover: rgba(64, 156, 255, 0.08);
  --fs-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25);
  --fs-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  --fs-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 15px;
  position: relative;
  min-height: 100%;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  color: var(--fs-text);
  background: var(--fs-bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--fs-body-gradient-1), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, var(--fs-body-gradient-2), transparent);
  background-attachment: fixed;
}

body.fs-auth-layout {
  display: flex;
  flex-direction: column;
}

.brand-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--fs-primary), #3395ff);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* ── Sidebar layout ── */

body.fs-with-sidebar {
  display: flex;
}

.fs-sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 1035;
  backdrop-filter: blur(2px);
}

.fs-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1040;
  width: var(--fs-sidebar-width);
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--fs-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-right: 1px solid var(--fs-border);
  box-shadow: var(--fs-shadow-sm);
  transform: translateX(-100%);
  transition: transform 0.25s ease;
}

.fs-sidebar.show {
  transform: translateX(0);
}

.fs-sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--fs-border);
  min-height: 64px;
}

.fs-sidebar-brand-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--fs-text) !important;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  min-width: 0;
}

.fs-sidebar-brand-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fs-sidebar-close {
  border: none;
  background: transparent;
  color: var(--fs-text-muted);
  width: 36px;
  height: 36px;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fs-sidebar-close:hover {
  background: var(--fs-bg);
  color: var(--fs-text);
}

.fs-sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0.85rem;
}

.fs-sidebar-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.fs-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.6rem;
  color: var(--fs-text-muted) !important;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.fs-sidebar-link i {
  font-size: 1.1rem;
  width: 1.25rem;
  text-align: center;
  flex-shrink: 0;
}

.fs-sidebar-link:hover,
.fs-sidebar-link.active {
  color: var(--fs-primary) !important;
  background: var(--fs-primary-light);
}

.fs-sidebar-link.active {
  font-weight: 600;
}

.fs-sidebar-footer {
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--fs-border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.fs-sidebar-footer .user-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--fs-bg);
  border: 1px solid var(--fs-border);
  border-radius: 0.75rem;
  padding: 0.5rem 0.65rem;
  font-size: 0.85rem;
  color: var(--fs-text);
  min-width: 0;
}

.fs-sidebar-footer .user-badge .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fs-primary), #3395ff);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  flex-shrink: 0;
}

.fs-sidebar-footer .user-name {
  font-weight: 600;
}

.fs-sidebar-footer .btn-logout {
  color: var(--fs-text-muted);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.6rem;
  border: 1px solid var(--fs-border);
  background: var(--fs-surface);
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.fs-sidebar-footer .btn-logout:hover {
  color: var(--fs-danger);
  background: var(--fs-danger-hover-bg);
  border-color: var(--fs-danger-hover-border);
}

.fs-app {
  flex: 1;
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.fs-topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--fs-topbar-height);
  padding: 0 1rem;
  background: var(--fs-glass-topbar);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--fs-border);
}

.fs-sidebar-toggle {
  border: none;
  background: var(--fs-bg);
  color: var(--fs-text);
  width: 40px;
  height: 40px;
  border-radius: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.fs-sidebar-toggle:hover {
  background: var(--fs-primary-light);
  color: var(--fs-primary);
}

.fs-topbar-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--fs-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 992px) {
  .fs-sidebar {
    position: sticky;
    transform: none;
    flex-shrink: 0;
  }
}

@media (max-width: 991.98px) {
  body.fs-sidebar-open {
    overflow: hidden;
  }
}

/* ── Auth header (login/register) ── */

.fs-auth-header {
  background: var(--fs-glass-auth);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--fs-border);
  box-shadow: var(--fs-shadow-sm);
}

.fs-auth-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.fs-auth-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--fs-text) !important;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.fs-auth-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ── Main & Footer ── */

.fs-main {
  flex: 1;
  padding: 2rem 0 3rem;
}

body.fs-with-sidebar .fs-main {
  padding-top: 1.5rem;
}

@media (max-width: 991.98px) {
  body.fs-with-sidebar .fs-main {
    padding-top: 1rem;
  }
}

.fs-footer {
  border-top: 1px solid var(--fs-border);
  background: var(--fs-glass-soft);
  backdrop-filter: blur(8px);
  padding: 1.25rem 0;
  margin-top: auto;
}

.fs-footer p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--fs-text-muted);
}

/* ── Page header ── */

.page-header {
  margin-bottom: 1.75rem;
}

.page-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
  color: var(--fs-text);
}

.page-header .page-subtitle {
  color: var(--fs-text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ── Cards ── */

.fs-card {
  background: var(--fs-surface);
  border: 1px solid var(--fs-border);
  border-radius: var(--fs-radius-lg);
  box-shadow: var(--fs-shadow-sm);
  overflow: hidden;
}

.fs-card .card-body {
  padding: 1.5rem;
}

.fs-card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--fs-border);
  background: var(--fs-bg);
}

.fs-card-header h5,
.fs-card-header h6 {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
}

/* ── Auth pages ── */

.auth-wrapper {
  min-height: calc(100vh - 64px - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--fs-surface);
  border: 1px solid var(--fs-border);
  border-radius: var(--fs-radius-lg);
  box-shadow: var(--fs-shadow-lg);
  padding: 2.25rem 2rem;
}

.auth-card .auth-logo {
  text-align: center;
  margin-bottom: 1.75rem;
}

.auth-card .auth-logo .brand-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--fs-primary), #3395ff);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.auth-card .auth-logo h1 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}

.auth-card .auth-logo p {
  color: var(--fs-text-muted);
  font-size: 0.875rem;
  margin: 0;
}

/* ── Forms ── */

.form-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--fs-text);
  margin-bottom: 0.4rem;
}

.form-control {
  border: 1.5px solid var(--fs-border);
  border-radius: 0.6rem;
  padding: 0.6rem 0.85rem;
  font-size: 0.9rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: var(--fs-surface);
}

.form-control:focus {
  border-color: var(--fs-primary);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
}

.form-control.font-monospace {
  font-size: 0.82rem;
  line-height: 1.5;
}

.input-group-text {
  border: 1.5px solid var(--fs-border);
  border-radius: 0.6rem 0 0 0.6rem;
  background: var(--fs-surface);
  color: var(--fs-text-muted);
}

.input-group .form-control {
  border-radius: 0 0.6rem 0.6rem 0;
}

.input-group:focus-within .input-group-text,
.input-group:focus-within .form-control {
  border-color: var(--fs-primary);
}

.input-group:focus-within {
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
  border-radius: 0.6rem;
}

.form-check-input:checked {
  background-color: var(--fs-primary);
  border-color: var(--fs-primary);
}

.form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
}

/* ── Buttons ── */

.btn {
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0.6rem;
  padding: 0.55rem 1.1rem;
  transition: transform 0.1s, box-shadow 0.15s, background 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--fs-primary), #3395ff);
  border: none;
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, var(--fs-primary-dark), var(--fs-primary));
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.35);
}

.btn-success {
  background: linear-gradient(135deg, var(--fs-success), #10b981);
  border: none;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
}

.btn-outline-primary {
  border-color: var(--fs-primary);
  color: var(--fs-primary);
}

.btn-outline-primary:hover {
  background: var(--fs-primary-light);
  border-color: var(--fs-primary);
  color: var(--fs-primary-dark);
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
}

/* ── Alerts ── */

.alert {
  border: none;
  border-radius: var(--fs-radius);
  font-size: 0.9rem;
  padding: 0.85rem 1.1rem;
}

.alert-success {
  background: #ecfdf5;
  color: #065f46;
}

.alert-warning {
  background: #fffbeb;
  color: #92400e;
}

.alert-info {
  background: #eff6ff;
  color: #1e40af;
}

.alert-danger {
  background: #fef2f2;
  color: #991b1b;
}

[data-bs-theme="dark"] .alert-success {
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
}

[data-bs-theme="dark"] .alert-warning {
  background: rgba(245, 158, 11, 0.16);
  color: #fcd34d;
}

[data-bs-theme="dark"] .alert-info {
  background: rgba(59, 130, 246, 0.16);
  color: #93c5fd;
}

[data-bs-theme="dark"] .alert-danger {
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
}

/* ── Code blocks ── */

.fs-code-block {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: var(--fs-radius);
  padding: 1.25rem;
  font-size: 0.8rem;
  line-height: 1.6;
  overflow: auto;
  max-height: 320px;
  border: 1px solid #1e293b;
}

.fs-code-block code {
  color: inherit;
  font-family: "Cascadia Code", "Fira Code", "Consolas", monospace;
}

.fs-inline-code {
  background: var(--fs-bg-subtle);
  color: var(--fs-inline-code-color);
  padding: 0.15rem 0.4rem;
  border-radius: 0.35rem;
  font-size: 0.85em;
}

/* ── Steps ── */

.fs-steps {
  display: flex;
  gap: 0;
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.fs-step {
  flex: 1;
  min-width: 140px;
  text-align: center;
  position: relative;
  padding: 0 0.5rem;
}

.fs-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 18px;
  left: calc(50% + 20px);
  width: calc(100% - 40px);
  height: 2px;
  background: var(--fs-border);
}

.fs-step.done:not(:last-child)::after {
  background: var(--fs-primary);
}

.fs-step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--fs-bg-subtle);
  border: 2px solid var(--fs-border);
  color: var(--fs-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.fs-step.active .fs-step-number {
  background: var(--fs-primary);
  border-color: var(--fs-primary);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.2);
}

.fs-step.done .fs-step-number {
  background: var(--fs-primary-light);
  border-color: var(--fs-primary);
  color: var(--fs-primary);
}

.fs-step-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--fs-text-muted);
  line-height: 1.3;
}

.fs-step.active .fs-step-label {
  color: var(--fs-primary);
}

.amazon-advanced summary {
  cursor: pointer;
  list-style: none;
}

.amazon-advanced summary::-webkit-details-marker {
  display: none;
}

.amazon-advanced summary::before {
  content: "\F282";
  font-family: "bootstrap-icons";
  display: inline-block;
  margin-right: 0.35rem;
  transition: transform 0.15s ease;
  color: var(--fs-text-muted);
}

.amazon-advanced[open] summary::before {
  transform: rotate(90deg);
}

/* ── Table ── */

.fs-table-wrapper {
  background: var(--fs-surface);
  border: 1px solid var(--fs-border);
  border-radius: var(--fs-radius-lg);
  box-shadow: var(--fs-shadow-sm);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.fs-table-wrapper .table {
  margin-bottom: 0;
  min-width: 640px;
}

.fs-table-wrapper .table thead th {
  background: var(--fs-bg);
  border-bottom: 1px solid var(--fs-border);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fs-text-muted);
  padding: 0.85rem 1.25rem;
  white-space: nowrap;
}

.fs-table-wrapper .table tbody td {
  padding: 1rem 1.25rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--fs-border);
  font-size: 0.9rem;
}

.fs-table-wrapper .table tbody tr:last-child td {
  border-bottom: none;
}

.fs-table-wrapper .table tbody tr:hover {
  background: var(--fs-table-hover);
}

@media (max-width: 767.98px) {
  .fs-table-wrapper {
    overflow-x: visible;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  .fs-table-wrapper .table {
    min-width: 0;
  }

  .fs-table-wrapper .table thead {
    display: none;
  }

  .fs-table-wrapper .table tbody tr {
    display: block;
    margin-bottom: 0.85rem;
    background: var(--fs-surface);
    border: 1px solid var(--fs-border);
    border-radius: var(--fs-radius);
    box-shadow: var(--fs-shadow-sm);
    overflow: hidden;
  }

  .fs-table-wrapper .table tbody tr:last-child {
    margin-bottom: 0;
  }

  .fs-table-wrapper .table tbody tr:hover {
    background: var(--fs-surface);
  }

  .fs-table-wrapper .table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--fs-border);
    text-align: right !important;
  }

  .fs-table-wrapper .table tbody td::before {
    content: attr(data-label);
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--fs-text-muted);
    text-align: left;
    flex-shrink: 0;
    padding-top: 0.1rem;
  }

  .fs-table-wrapper .table tbody td.fs-table-action {
    display: block;
    text-align: center !important;
    padding: 0.75rem 1rem;
    border-bottom: none;
  }

  .fs-table-wrapper .table tbody td.fs-table-action::before {
    display: none;
  }

  .fs-table-wrapper .table tbody td.fs-table-action .btn {
    width: 100%;
  }

  .fs-table-wrapper .table tbody tr:last-child td {
    border-bottom: 1px solid var(--fs-border);
  }

  .fs-table-wrapper .table tbody tr:last-child td.fs-table-action {
    border-bottom: none;
  }

  .fs-table-wrapper .table tbody td.fs-table-empty {
    display: block;
    text-align: center !important;
    border-bottom: none;
  }

  .fs-table-wrapper .table tbody td.fs-table-empty::before {
    display: none;
  }
}

/* ── Empty state ── */

.fs-empty-state {
  text-align: center;
  padding: 3.5rem 2rem;
}

.fs-empty-state .empty-icon {
  width: 64px;
  height: 64px;
  background: var(--fs-primary-light);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fs-primary);
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}

.fs-empty-state h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.fs-empty-state p {
  color: var(--fs-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* ── Section blocks ── */

.fs-section {
  margin-bottom: 1.75rem;
}

.fs-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fs-text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fs-section-title i {
  font-size: 1rem;
}

/* ── Badges ── */

.badge {
  font-weight: 600;
  font-size: 0.72rem;
  padding: 0.3em 0.65em;
  border-radius: 0.4rem;
}

/* ── Theme switcher ── */

.fs-theme-switcher {
  position: relative;
  display: inline-flex;
}

.fs-theme-toggle {
  border: 1px solid var(--fs-border);
  background: var(--fs-surface);
  color: var(--fs-text-muted);
  width: 36px;
  height: 36px;
  border-radius: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: color 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.fs-theme-toggle:hover,
.fs-theme-switcher.is-open .fs-theme-toggle {
  color: var(--fs-primary);
  background: var(--fs-primary-light);
  border-color: var(--fs-primary);
}

.fs-theme-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.4rem);
  z-index: 1050;
  min-width: 9.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.35rem;
  background: var(--fs-surface);
  border: 1px solid var(--fs-border);
  border-radius: 0.65rem;
  box-shadow: var(--fs-shadow);
}

.fs-theme-menu[hidden] {
  display: none;
}

.fs-theme-option {
  border: none;
  background: transparent;
  color: var(--fs-text);
  border-radius: 0.45rem;
  padding: 0.45rem 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  font-weight: 500;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}

.fs-theme-option i {
  font-size: 0.95rem;
  width: 1rem;
  text-align: center;
  color: var(--fs-text-muted);
}

.fs-theme-option:hover {
  background: var(--fs-bg);
}

.fs-theme-option.active {
  background: var(--fs-primary-light);
  color: var(--fs-primary);
}

.fs-theme-option.active i {
  color: var(--fs-primary);
}

.fs-sidebar-footer .fs-theme-switcher {
  align-self: flex-end;
}

.fs-auth-actions .fs-theme-menu {
  bottom: auto;
  top: calc(100% + 0.4rem);
}

/* ── Action bar ── */

.fs-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

/* ── Info panel ── */

.fs-info-panel {
  background: var(--fs-info-panel-bg);
  border: 1px solid var(--fs-info-panel-border);
  border-radius: var(--fs-radius);
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  color: var(--fs-info-panel-text);
  line-height: 1.6;
}

.fs-info-panel p:last-child {
  margin-bottom: 0;
}

/* ── Links ── */

a {
  color: var(--fs-primary);
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  color: var(--fs-primary-dark);
}

.auth-footer-link {
  text-align: center;
  font-size: 0.875rem;
  color: var(--fs-text-muted);
  margin-top: 1.25rem;
  margin-bottom: 0;
}

/* ── Amazon accounts ── */

.accounts-search {
  min-width: min(100%, 320px);
  max-width: 420px;
}

.accounts-view-toggle .btn.active {
  background: var(--fs-primary-light);
  border-color: var(--fs-primary);
  color: var(--fs-primary-dark);
}

.account-avatar {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 50%;
  background: var(--fs-primary-light);
  color: var(--fs-primary);
}

.accounts-view-list .account-item {
  flex: 0 0 100%;
  max-width: 100%;
}

.accounts-view-list .account-card .card-body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.accounts-view-list .account-main {
  flex: 1 1 220px;
  min-width: 0;
}

.accounts-view-list .account-actions {
  flex-shrink: 0;
  margin-left: auto;
}

.selfie-verify-btn.btn-outline-warning {
  animation: selfie-pulse 2s ease-in-out infinite;
}

@keyframes selfie-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--bs-warning-rgb), 0.4); }
  50% { box-shadow: 0 0 0 0.35rem rgba(var(--bs-warning-rgb), 0); }
}

@media (min-width: 768px) {
  .accounts-view-list .account-card .card-body {
    flex-wrap: nowrap;
  }
}

.selected-account-panel .selected-account-meta dt {
  font-weight: 500;
  margin-bottom: 0.15rem;
}

.selected-account-panel .selected-account-meta dd {
  font-size: 0.9375rem;
}
