/* FOSSGO Manage — brand overlay matching fossgo.id */
@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300&family=JetBrains+Mono:wght@500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --fossgo-bg: #040609;
  --fossgo-surface: #080b12;
  --fossgo-surface-elevated: #0d121c;
  --fossgo-border: #1e2733;
  --fossgo-accent: #96c1a2;
  --fossgo-accent-secondary: #588157;
  --fossgo-accent-glow: rgba(150, 193, 162, 0.15);
  --fossgo-text: #ffffff;
  --fossgo-text-secondary: #94a3b8;
  --fossgo-text-muted: #475569;
  --fossgo-font-sans: "Hanken Grotesk", system-ui, sans-serif;
  --fossgo-font-display: "Space Grotesk", system-ui, sans-serif;
  --fossgo-font-mono: "JetBrains Mono", ui-monospace, monospace;
}

html[data-bs-theme="dark"] {
  color-scheme: dark;
  --bs-body-bg: var(--fossgo-bg);
  --bs-body-color: var(--fossgo-text);
  --bs-secondary-bg: var(--fossgo-surface);
  --bs-tertiary-bg: var(--fossgo-surface-elevated);
  --bs-border-color: var(--fossgo-border);
  --bs-primary: var(--fossgo-accent);
  --bs-primary-rgb: 150, 193, 162;
  --bs-link-color: var(--fossgo-accent);
  --bs-link-hover-color: #b5d4bf;
  --bs-emphasis-color: var(--fossgo-text);
  --bs-secondary-color: var(--fossgo-text-secondary);
  --bs-secondary: var(--fossgo-text-secondary);
  --bs-heading-color: var(--fossgo-text);
  --bs-card-bg: var(--fossgo-surface);
  --bs-card-border-color: var(--fossgo-border);
  --bs-body-font-family: var(--fossgo-font-sans);
  --bs-font-sans-serif: var(--fossgo-font-sans);
  --bs-btn-bg: var(--fossgo-accent);
  --bs-success: var(--fossgo-accent);
  --bs-info: var(--fossgo-accent);
}

html[data-bs-theme="light"] {
  color-scheme: light;
  /* FOSSGO light — sage-tinted canvas matching fossgo.id brand */
  --fossgo-bg: #f2f6f3;
  --fossgo-surface: #ffffff;
  --fossgo-surface-elevated: #f7faf8;
  --fossgo-border: #d4e0d7;
  --fossgo-accent: #588157;
  --fossgo-accent-secondary: #3f5f3e;
  --fossgo-accent-glow: rgba(88, 129, 87, 0.12);
  --fossgo-text: #040609;
  --fossgo-text-secondary: #3d4a45;
  --fossgo-text-muted: #6b7a72;

  --bs-body-bg: var(--fossgo-bg);
  --bs-body-color: var(--fossgo-text);
  --bs-secondary-bg: var(--fossgo-surface);
  --bs-tertiary-bg: var(--fossgo-surface-elevated);
  --bs-border-color: var(--fossgo-border);
  --bs-primary: var(--fossgo-accent);
  --bs-primary-rgb: 88, 129, 87;
  --bs-link-color: var(--fossgo-accent);
  --bs-link-hover-color: var(--fossgo-accent-secondary);
  --bs-emphasis-color: var(--fossgo-text);
  --bs-secondary-color: var(--fossgo-text-secondary);
  --bs-secondary: var(--fossgo-text-secondary);
  --bs-heading-color: var(--fossgo-text);
  --bs-card-bg: var(--fossgo-surface);
  --bs-card-border-color: var(--fossgo-border);
  --bs-body-font-family: var(--fossgo-font-sans);
  --bs-font-sans-serif: var(--fossgo-font-sans);
  --bs-success: var(--fossgo-accent);
  --bs-info: var(--fossgo-accent);
}

html, body {
  font-family: var(--fossgo-font-sans) !important;
  -webkit-font-smoothing: antialiased;
}

html[data-bs-theme="dark"] body {
  background: var(--fossgo-bg) !important;
  color: var(--fossgo-text);
  background-image: radial-gradient(circle, rgba(150, 193, 162, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}

html[data-bs-theme="light"] body {
  background: var(--fossgo-bg) !important;
  color: var(--fossgo-text);
  background-image: radial-gradient(circle, rgba(88, 129, 87, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
}


h1, h2, h3, h4, h5, h6,
.navbar-brand,
.card-header h1,
.page-login .card h1,
.page-signup .card h1 {
  font-family: var(--fossgo-font-display) !important;
  letter-spacing: -0.01em;
}

.btn-primary,
.btn-success,
a.btn.btn-primary {
  --bs-btn-bg: var(--fossgo-accent);
  --bs-btn-border-color: var(--fossgo-accent);
  --bs-btn-hover-bg: var(--fossgo-accent-secondary);
  --bs-btn-hover-border-color: var(--fossgo-accent-secondary);
  --bs-btn-active-bg: var(--fossgo-accent-secondary);
  --bs-btn-color: #040609;
  --bs-btn-hover-color: #040609;
  font-weight: 600;
  border-radius: 999px !important;
  box-shadow: 0 0 26px rgba(150, 193, 162, 0.3);
}

.btn-outline-primary {
  --bs-btn-color: var(--fossgo-accent);
  --bs-btn-border-color: rgba(150, 193, 162, 0.4);
  --bs-btn-hover-bg: rgba(150, 193, 162, 0.1);
  --bs-btn-hover-border-color: var(--fossgo-accent);
  --bs-btn-hover-color: var(--fossgo-text);
  border-radius: 999px !important;
}

.card,
.modal-content,
.offcanvas,
.dropdown-menu,
.list-group-item,
.sidebar,
aside.card {
  border-radius: 1rem !important;
}

.navbar.fg-topbar {
  border-radius: 0 !important;
}

html[data-bs-theme="dark"] .card,
html[data-bs-theme="dark"] .modal-content,
html[data-bs-theme="dark"] .offcanvas,
html[data-bs-theme="dark"] .dropdown-menu {
  background-color: var(--fossgo-surface) !important;
  border-color: var(--fossgo-border) !important;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.45);
}

html[data-bs-theme="dark"] .navbar,
html[data-bs-theme="dark"] .bg-body-tertiary,
html[data-bs-theme="dark"] .bg-body-secondary {
  background-color: rgba(8, 11, 18, 0.92) !important;
  backdrop-filter: blur(12px);
  border-color: var(--fossgo-border) !important;
}

html[data-bs-theme="dark"] .form-control,
html[data-bs-theme="dark"] .form-select,
html[data-bs-theme="dark"] .ts-wrapper .ts-control {
  background-color: var(--fossgo-surface-elevated) !important;
  border-color: var(--fossgo-border) !important;
  color: var(--fossgo-text) !important;
  border-radius: 0.75rem !important;
}

html[data-bs-theme="dark"] .form-control:focus,
html[data-bs-theme="dark"] .form-select:focus {
  border-color: var(--fossgo-accent) !important;
  box-shadow: 0 0 0 0.2rem rgba(150, 193, 162, 0.25) !important;
}

html[data-bs-theme="dark"] .nav-link.active,
html[data-bs-theme="dark"] .nav-pills .nav-link.active,
html[data-bs-theme="dark"] .list-group-item.active {
  background-color: rgba(150, 193, 162, 0.15) !important;
  color: var(--fossgo-accent) !important;
  border-color: rgba(150, 193, 162, 0.35) !important;
}

html[data-bs-theme="dark"] a:not(.btn) {
  color: var(--fossgo-accent);
}
html[data-bs-theme="dark"] a:not(.btn):hover {
  color: #b5d4bf;
}

.badge.text-bg-primary,
.badge.bg-primary {
  background-color: var(--fossgo-accent) !important;
  color: #040609 !important;
  font-family: var(--fossgo-font-mono);
  letter-spacing: 0.04em;
}

footer,
.footer {
  color: var(--fossgo-text-secondary) !important;
  border-top: 1px solid var(--fossgo-border);
}

/* Login / signup polish */
.page-login .card,
.page-signup .card,
.page-password-reset .card {
  border: 1px solid rgba(150, 193, 162, 0.35) !important;
  box-shadow: 0 0 40px rgba(150, 193, 162, 0.12), 0 0 60px rgba(0, 0, 0, 0.5) !important;
}

.page-login .card h1,
.page-signup .card h1 {
  color: var(--fossgo-accent) !important;
}

/* Tables */
html[data-bs-theme="dark"] table > thead > tr > th {
  color: var(--fossgo-text-muted) !important;
  letter-spacing: 0.14em;
}

/* Soft accent glow on primary CTAs */
.btn-primary:hover {
  box-shadow: 0 0 38px rgba(150, 193, 162, 0.5) !important;
}

/* =========================================================
   FOSSGO Manage — DigitalOcean / WHMCS-inspired shell
   ========================================================= */

body.dashboard .page-header,
body.fossgo-shell .breadcrumb,
body.dashboard h1.page-title {
  display: none !important;
}

/* Wider canvas like DO control panel */
body.fossgo-shell > .container,
body.fossgo-shell .container {
  max-width: 1280px;
}

body.fossgo-shell header .navbar {
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
  border-bottom: 1px solid var(--fossgo-border);
  margin-bottom: 1.25rem;
}

body.fossgo-shell header .navbar-brand img {
  height: 28px !important;
  width: auto !important;
}

body.fossgo-shell .nav-link.active {
  color: var(--fossgo-accent) !important;
}

/* Sidebar rail */
body.fossgo-shell .col-3 > .offcanvas-md,
body.fossgo-shell #sidebarMenu {
  background: var(--fossgo-surface) !important;
  border: 1px solid var(--fossgo-border) !important;
  border-radius: 12px !important;
  padding: 0.5rem !important;
  position: sticky;
  top: 1rem;
}

body.fossgo-shell #sidebarMenu .nav {
  gap: 0.15rem;
}

body.fossgo-shell #sidebarMenu .offcanvas-item {
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  overflow: hidden;
}

body.fossgo-shell #sidebarMenu .offcanvas-item:hover {
  background: rgba(150, 193, 162, 0.08) !important;
}

body.fossgo-shell #sidebarMenu .nav-link {
  border-radius: 10px !important;
  color: var(--fossgo-text-secondary) !important;
  font-size: 0.9rem !important;
  padding: 0.6rem 0.85rem !important;
  margin: 0 !important;
  background: transparent !important;
  width: 100%;
}

body.fossgo-shell #sidebarMenu .nav-link:hover {
  background: transparent !important;
  color: var(--fossgo-text) !important;
}

/* Active = full-width rail item (not a floating pill/capsule) */
body.fossgo-shell #sidebarMenu .offcanvas-item.active {
  background: rgba(150, 193, 162, 0.14) !important;
  box-shadow: inset 3px 0 0 var(--fossgo-accent);
}

body.fossgo-shell #sidebarMenu .nav-link.active,
body.fossgo-shell #sidebarMenu .offcanvas-item.active > .nav-link {
  background: transparent !important;
  color: var(--fossgo-accent) !important;
  font-weight: 600;
}

body.fossgo-shell #sidebarMenu .icon {
  opacity: 0.85;
}

/* Content block breathe */
body.fossgo-shell .content-block {
  padding-top: 0 !important;
}

/* ---- Dashboard ---- */
.fg-dash {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.fg-dash-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(150, 193, 162, 0.14), transparent 55%),
    linear-gradient(180deg, var(--fossgo-surface-elevated) 0%, var(--fossgo-surface) 100%);
  border: 1px solid var(--fossgo-border);
  border-radius: 14px;
}

.fg-kicker {
  margin: 0 0 0.35rem;
  font-family: var(--fossgo-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fossgo-accent);
}

.fg-dash-title {
  margin: 0;
  font-family: var(--fossgo-font-display), var(--fossgo-font-sans), system-ui, sans-serif;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fossgo-text) !important;
  line-height: 1.25;
}

.fg-dash-sub {
  margin: 0.4rem 0 0;
  color: var(--fossgo-text-muted);
  font-size: 0.95rem;
  max-width: 42rem;
}

.fg-dash-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fg-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  border-radius: 10px;
  border: 1px solid rgba(150, 193, 162, 0.35);
  background: rgba(150, 193, 162, 0.08);
  color: var(--fossgo-text-secondary);
  font-size: 0.92rem;
}

.fg-banner a {
  color: var(--fossgo-accent) !important;
  font-weight: 600;
  text-decoration: none;
}

/* Metric cards — DO style */
.fg-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

@media (max-width: 991px) {
  .fg-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
  .fg-metrics { grid-template-columns: 1fr; }
}

.fg-metric {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1.15rem;
  background: var(--fossgo-surface);
  border: 1px solid var(--fossgo-border);
  border-radius: 12px;
  text-decoration: none !important;
  color: inherit !important;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 118px;
}

.fg-metric:hover {
  border-color: rgba(150, 193, 162, 0.55);
  box-shadow: 0 0 0 1px rgba(150, 193, 162, 0.2), 0 12px 28px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}

.fg-metric-label {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fossgo-text-muted);
  font-weight: 500;
}

.fg-metric-value {
  font-family: var(--fossgo-font-display), var(--fossgo-font-sans), system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: var(--fossgo-text);
  line-height: 1.1;
}

.fg-metric-value--sm {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.fg-metric-value.is-warn {
  color: #f0b429;
}

.fg-metric-meta {
  margin-top: auto;
  font-size: 0.78rem;
  color: var(--fossgo-text-muted);
}

/* Quick actions */
.fg-quick {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (max-width: 991px) {
  .fg-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
  .fg-quick { grid-template-columns: 1fr; }
}

.fg-quick-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  background: var(--fossgo-bg);
  border: 1px solid var(--fossgo-border);
  border-radius: 12px;
  text-decoration: none !important;
  color: inherit !important;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.fg-quick-item:hover {
  border-color: rgba(150, 193, 162, 0.45);
  background: rgba(150, 193, 162, 0.06);
}

.fg-quick-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  background: rgba(150, 193, 162, 0.12);
  color: var(--fossgo-accent);
  font-family: var(--fossgo-font-mono);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.fg-quick-item strong {
  display: block;
  font-size: 0.92rem;
  color: var(--fossgo-text);
}

.fg-quick-item small {
  display: block;
  color: var(--fossgo-text-muted);
  font-size: 0.78rem;
  margin-top: 0.1rem;
}

/* Panels */
.fg-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

@media (max-width: 767px) {
  .fg-panels { grid-template-columns: 1fr; }
}

.fg-panel {
  background: var(--fossgo-surface);
  border: 1px solid var(--fossgo-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 220px;
}

.fg-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--fossgo-border);
}

.fg-panel-head h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fossgo-text);
  letter-spacing: -0.01em;
}

.fg-panel-actions {
  display: flex;
  gap: 0.75rem;
  font-size: 0.82rem;
}

.fg-panel-actions a {
  color: var(--fossgo-accent) !important;
  text-decoration: none;
  font-weight: 500;
}

.fg-panel-actions a:hover {
  text-decoration: underline;
}

.fg-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fg-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid rgba(30, 39, 51, 0.9);
  text-decoration: none !important;
  color: inherit !important;
  transition: background 0.12s ease;
}

.fg-list li:last-child .fg-list-row {
  border-bottom: 0;
}

.fg-list-row:hover {
  background: rgba(150, 193, 162, 0.05);
}

.fg-list-main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.fg-list-main strong {
  font-size: 0.9rem;
  font-weight: 550;
  color: var(--fossgo-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fg-list-meta {
  font-size: 0.75rem;
  color: var(--fossgo-text-muted);
}

.fg-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--fossgo-text-muted);
}

.fg-empty p {
  margin: 0;
  font-size: 0.9rem;
}

/* Soften stock Bootstrap cards elsewhere so they match */
body.fossgo-shell .card {
  background: var(--fossgo-surface) !important;
  border: 1px solid var(--fossgo-border) !important;
  border-radius: 12px !important;
}

body.fossgo-shell .card-header {
  background: transparent !important;
  border-bottom-color: var(--fossgo-border) !important;
}

/* Hide FOSSBilling generator vibe in footer notes */
body.fossgo-shell noscript {
  display: none !important;
}

meta[name="generator"] {
  /* can't hide via CSS — ignore */
}

/* Hide stock FOSSBilling attribution in client footer */
#footer a[href*="fossbilling.org"],
#footer a[href*="fossbilling.org"] + *,
#footer .d-flex.justify-content-center:has(a[href*="fossbilling.org"]) {
  display: none !important;
}


/* ==== FOSSGO light shell polish ==== */
html[data-bs-theme="light"] .btn-primary,
html[data-bs-theme="light"] .btn-success,
html[data-bs-theme="light"] a.btn.btn-primary {
  --bs-btn-bg: #96c1a2;
  --bs-btn-border-color: #96c1a2;
  --bs-btn-hover-bg: var(--fossgo-accent);
  --bs-btn-hover-border-color: var(--fossgo-accent);
  --bs-btn-active-bg: var(--fossgo-accent-secondary);
  --bs-btn-color: #040609;
  --bs-btn-hover-color: #ffffff;
  box-shadow: 0 0 22px rgba(150, 193, 162, 0.35);
}

html[data-bs-theme="light"] .btn-outline-primary {
  --bs-btn-color: var(--fossgo-accent);
  --bs-btn-border-color: rgba(88, 129, 87, 0.45);
  --bs-btn-hover-bg: rgba(88, 129, 87, 0.08);
  --bs-btn-hover-border-color: var(--fossgo-accent);
  --bs-btn-hover-color: var(--fossgo-accent-secondary);
}

html[data-bs-theme="light"] .card,
html[data-bs-theme="light"] .modal-content,
html[data-bs-theme="light"] .offcanvas,
html[data-bs-theme="light"] .dropdown-menu {
  background-color: var(--fossgo-surface) !important;
  border-color: var(--fossgo-border) !important;
  box-shadow: 0 8px 28px rgba(4, 6, 9, 0.06);
  color: var(--fossgo-text);
}

html[data-bs-theme="light"] .navbar,
html[data-bs-theme="light"] .bg-body-tertiary,
html[data-bs-theme="light"] .bg-body-secondary {
  background-color: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(12px);
  border-bottom-color: var(--fossgo-border) !important;
}

html[data-bs-theme="light"] .navbar .nav-link,
html[data-bs-theme="light"] .navbar .dropdown-toggle {
  color: var(--fossgo-text-secondary) !important;
}

html[data-bs-theme="light"] .navbar .nav-link.active,
html[data-bs-theme="light"] .navbar .nav-link:hover {
  color: var(--fossgo-accent) !important;
}

html[data-bs-theme="light"] .navbar-brand,
html[data-bs-theme="light"] .navbar-brand span {
  color: var(--fossgo-text) !important;
}

/* Prefer dark logo on light canvas when both exist */
html[data-bs-theme="light"] .navbar-brand img.logo-dark,
html[data-bs-theme="light"] img.d-none.d-sm-block[src*="logo-dark"] {
  /* huraga swaps via theme classes — force readable mark */
}

html[data-bs-theme="light"] body.fossgo-shell header .navbar {
  border-bottom: 1px solid var(--fossgo-border);
  background: rgba(255, 255, 255, 0.92) !important;
}

html[data-bs-theme="light"] body.fossgo-shell .col-3 > .offcanvas-md,
html[data-bs-theme="light"] body.fossgo-shell #sidebarMenu {
  background: var(--fossgo-surface) !important;
  border: 1px solid var(--fossgo-border) !important;
  box-shadow: 0 8px 24px rgba(4, 6, 9, 0.04);
}

html[data-bs-theme="light"] body.fossgo-shell #sidebarMenu .offcanvas-item:hover {
  background: rgba(88, 129, 87, 0.08) !important;
}

html[data-bs-theme="light"] body.fossgo-shell #sidebarMenu .nav-link {
  color: var(--fossgo-text-secondary) !important;
}

html[data-bs-theme="light"] body.fossgo-shell #sidebarMenu .nav-link:hover {
  background: transparent !important;
  color: var(--fossgo-text) !important;
}

html[data-bs-theme="light"] body.fossgo-shell #sidebarMenu .offcanvas-item.active {
  background: rgba(150, 193, 162, 0.28) !important;
  box-shadow: inset 3px 0 0 var(--fossgo-accent);
}

html[data-bs-theme="light"] body.fossgo-shell #sidebarMenu .nav-link.active,
html[data-bs-theme="light"] body.fossgo-shell #sidebarMenu .offcanvas-item.active > .nav-link {
  background: transparent !important;
  color: var(--fossgo-accent-secondary) !important;
}

html[data-bs-theme="light"] body.fossgo-shell .card {
  background: var(--fossgo-surface) !important;
  border: 1px solid var(--fossgo-border) !important;
}

html[data-bs-theme="light"] .fg-dash-hero {
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(150, 193, 162, 0.28), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f7faf8 100%);
  border-color: var(--fossgo-border);
}

html[data-bs-theme="light"] .fg-kicker {
  color: var(--fossgo-accent);
}

html[data-bs-theme="light"] .fg-dash-title {
  color: var(--fossgo-text) !important;
}

html[data-bs-theme="light"] .fg-dash-sub,
html[data-bs-theme="light"] .fg-metric-label,
html[data-bs-theme="light"] .fg-metric-meta,
html[data-bs-theme="light"] .fg-list-meta,
html[data-bs-theme="light"] .fg-empty {
  color: var(--fossgo-text-muted);
}

html[data-bs-theme="light"] .fg-metric,
html[data-bs-theme="light"] .fg-panel,
html[data-bs-theme="light"] .fg-quick-item {
  background: var(--fossgo-surface);
  border-color: var(--fossgo-border);
  box-shadow: 0 6px 18px rgba(4, 6, 9, 0.04);
}

html[data-bs-theme="light"] .fg-metric:hover,
html[data-bs-theme="light"] .fg-quick-item:hover {
  border-color: rgba(88, 129, 87, 0.45);
  box-shadow: 0 0 0 1px rgba(150, 193, 162, 0.35), 0 12px 28px rgba(4, 6, 9, 0.08);
  background: #fbfdfb;
}

html[data-bs-theme="light"] .fg-metric-value,
html[data-bs-theme="light"] .fg-list-main strong,
html[data-bs-theme="light"] .fg-panel-head h2,
html[data-bs-theme="light"] .fg-quick-item strong {
  color: var(--fossgo-text);
}

html[data-bs-theme="light"] .fg-quick-icon {
  background: rgba(150, 193, 162, 0.28);
  color: var(--fossgo-accent-secondary);
}

html[data-bs-theme="light"] .fg-panel-head {
  border-bottom-color: var(--fossgo-border);
}

html[data-bs-theme="light"] .fg-panel-actions a {
  color: var(--fossgo-accent) !important;
}

html[data-bs-theme="light"] .fg-list-row {
  border-bottom-color: var(--fossgo-border);
}

html[data-bs-theme="light"] .fg-list-row:hover {
  background: rgba(150, 193, 162, 0.12);
}

html[data-bs-theme="light"] .fg-banner {
  border-color: rgba(88, 129, 87, 0.3);
  background: rgba(150, 193, 162, 0.18);
  color: var(--fossgo-text-secondary);
}

html[data-bs-theme="light"] .list-group-item {
  background: var(--fossgo-surface) !important;
  color: var(--fossgo-text) !important;
  border-color: var(--fossgo-border) !important;
}

html[data-bs-theme="light"] .form-control,
html[data-bs-theme="light"] .form-select,
html[data-bs-theme="light"] .form-control:focus,
html[data-bs-theme="light"] .form-select:focus {
  background-color: #ffffff !important;
  color: var(--fossgo-text) !important;
  border-color: var(--fossgo-border) !important;
}

html[data-bs-theme="light"] .table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--fossgo-text);
  --bs-table-border-color: var(--fossgo-border);
  --bs-table-striped-bg: rgba(150, 193, 162, 0.08);
}

html[data-bs-theme="light"] footer,
html[data-bs-theme="light"] #footer {
  color: var(--fossgo-text-muted) !important;
  border-top: 1px solid var(--fossgo-border);
}

html[data-bs-theme="light"] .page-login .card,
html[data-bs-theme="light"] .page-signup .card,
html[data-bs-theme="light"] .page-password-reset .card {
  border: 1px solid rgba(88, 129, 87, 0.25) !important;
  box-shadow: 0 12px 40px rgba(4, 6, 9, 0.08) !important;
  background: #ffffff !important;
}

html[data-bs-theme="light"] .page-login .card h1,
html[data-bs-theme="light"] .page-signup .card h1 {
  color: var(--fossgo-accent) !important;
}

html[data-bs-theme="light"] .text-muted,
html[data-bs-theme="light"] .text-secondary {
  color: var(--fossgo-text-muted) !important;
}

html[data-bs-theme="light"] .badge.text-bg-primary,
html[data-bs-theme="light"] .badge.bg-primary {
  background-color: #96c1a2 !important;
  color: #040609 !important;
}

/* Support / content pages — match dashboard card language */
html[data-bs-theme="light"] .content-block .card-header,
html[data-bs-theme="light"] body.fossgo-shell .card-header {
  background: transparent !important;
  border-bottom-color: var(--fossgo-border) !important;
  color: var(--fossgo-text);
}


/* ==== FOSSGO topbar + user chip ==== */
body.fossgo-shell header .navbar.fg-topbar {
  padding: 0.65rem 0 !important;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--fossgo-border);
  background: transparent !important;
  box-shadow: none !important;
}

body.fossgo-shell .fg-topbar .navbar-brand img {
  height: 28px !important;
  width: auto !important;
}

body.fossgo-shell .fg-topbar .navbar-nav {
  gap: 0.5rem !important;
  align-items: center !important;
}

body.fossgo-shell .fg-topbar .form-select.js-locale-selector {
  min-height: 36px;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  font-size: 0.85rem;
  border-radius: 999px !important;
  border-color: var(--fossgo-border);
  background-color: var(--fossgo-surface);
  color: var(--fossgo-text);
  max-width: 9.5rem;
}

.fg-icon-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px !important;
  border: 1px solid var(--fossgo-border);
  background: var(--fossgo-surface);
  color: var(--fossgo-text-secondary) !important;
  text-decoration: none !important;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.fg-icon-btn:hover {
  border-color: rgba(150, 193, 162, 0.55);
  color: var(--fossgo-accent) !important;
  background: rgba(150, 193, 162, 0.1);
}

.fg-icon-btn .icon {
  width: 1.1rem;
  height: 1.1rem;
}

.fg-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.2rem 0.55rem 0.2rem 0.2rem;
  margin: 0;
  border: 1px solid var(--fossgo-border);
  border-radius: 999px;
  background: var(--fossgo-surface);
  color: var(--fossgo-text) !important;
  line-height: 1.1;
}

.fg-user-chip::after {
  margin-left: 0.15rem;
  opacity: 0.55;
}

.fg-user-chip:hover,
.fg-user-chip[aria-expanded="true"] {
  border-color: rgba(150, 193, 162, 0.55);
  background: rgba(150, 193, 162, 0.08);
}

.fg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: var(--fossgo-border);
}

.fg-user-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding-right: 0.15rem;
}

.fg-user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fossgo-text);
  max-width: 9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fg-user-org {
  font-size: 0.68rem;
  color: var(--fossgo-text-muted);
  max-width: 9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 575px) {
  .fg-user-meta { display: none; }
  .fg-user-chip { padding-right: 0.25rem; }
}

html[data-bs-theme="light"] body.fossgo-shell header .navbar.fg-topbar {
  background: transparent !important;
}

html[data-bs-theme="light"] .fg-icon-btn,
html[data-bs-theme="light"] .fg-user-chip,
html[data-bs-theme="light"] body.fossgo-shell .fg-topbar .form-select.js-locale-selector {
  background: #ffffff;
}


/* ==== FOSSGO editor + KB color unify ==== */
/* CKEditor — match FOSSGO dark/light (override stock white editor) */
html[data-bs-theme="dark"] {
  --ck-color-base-background: #0d121c;
  --ck-color-base-foreground: #080b12;
  --ck-color-base-border: #1e2733;
  --ck-color-base-text: #f1f5f9;
  --ck-color-base-action: #96c1a2;
  --ck-color-base-active: #588157;
  --ck-color-base-active-focus: #96c1a2;
  --ck-color-base-focus: #96c1a2;
  --ck-color-focus-border: #96c1a2;
  --ck-color-focus-outer-shadow: rgba(150, 193, 162, 0.25);
  --ck-color-button-default-hover-background: rgba(150, 193, 162, 0.12);
  --ck-color-button-default-active-background: rgba(150, 193, 162, 0.18);
  --ck-color-button-on-background: rgba(150, 193, 162, 0.22);
  --ck-color-button-on-color: #96c1a2;
  --ck-color-toolbar-background: #080b12;
  --ck-color-toolbar-border: #1e2733;
  --ck-color-dropdown-panel-background: #0d121c;
  --ck-color-dropdown-panel-border: #1e2733;
  --ck-color-panel-background: #0d121c;
  --ck-color-panel-border: #1e2733;
  --ck-color-list-background: #0d121c;
  --ck-color-list-button-hover-background: rgba(150, 193, 162, 0.12);
  --ck-color-input-background: #080b12;
  --ck-color-input-border: #1e2733;
  --ck-color-input-text: #f1f5f9;
  --ck-color-text: #f1f5f9;
  --ck-color-engine-placeholder-text: #64748b;
}

html[data-bs-theme="light"] {
  --ck-color-base-background: #ffffff;
  --ck-color-base-foreground: #f7faf8;
  --ck-color-base-border: #d4e0d7;
  --ck-color-base-text: #040609;
  --ck-color-base-action: #588157;
  --ck-color-base-active: #588157;
  --ck-color-base-active-focus: #3f5f3e;
  --ck-color-base-focus: #588157;
  --ck-color-focus-border: #588157;
  --ck-color-focus-outer-shadow: rgba(88, 129, 87, 0.22);
  --ck-color-button-default-hover-background: rgba(150, 193, 162, 0.22);
  --ck-color-button-on-background: rgba(150, 193, 162, 0.3);
  --ck-color-button-on-color: #3f5f3e;
  --ck-color-toolbar-background: #f7faf8;
  --ck-color-toolbar-border: #d4e0d7;
}

html[data-bs-theme="dark"] .ck.ck-editor,
html[data-bs-theme="dark"] .ck.ck-toolbar,
html[data-bs-theme="dark"] .ck.ck-dropdown__panel,
html[data-bs-theme="dark"] .ck.ck-balloon-panel {
  --ck-color-base-background: #0d121c;
  --ck-color-base-foreground: #080b12;
  --ck-color-base-border: #1e2733;
  --ck-color-base-text: #f1f5f9;
}

html[data-bs-theme="dark"] .ck.ck-editor {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--fossgo-border) !important;
}

html[data-bs-theme="dark"] .ck.ck-toolbar {
  background: #080b12 !important;
  border-color: var(--fossgo-border) !important;
}

html[data-bs-theme="dark"] .ck-editor__main,
html[data-bs-theme="dark"] .ck-editor__main > .ck-editor__editable,
html[data-bs-theme="dark"] .ck.ck-editor__editable,
html[data-bs-theme="dark"] .ck-content {
  background: #0d121c !important;
  color: #f1f5f9 !important;
  border-color: var(--fossgo-border) !important;
  box-shadow: none !important;
}

/* Kill FOSSBilling inline style that only sets dark text on white editor */
html[data-bs-theme="dark"] .ck-editor__main {
  color: #f1f5f9 !important;
}

html[data-bs-theme="dark"] .ck.ck-button .ck-button__label,
html[data-bs-theme="dark"] .ck.ck-icon,
html[data-bs-theme="dark"] .ck.ck-dropdown .ck-button {
  color: #cbd5e1 !important;
}

html[data-bs-theme="dark"] .ck.ck-button:not(.ck-disabled):hover,
html[data-bs-theme="dark"] .ck.ck-button.ck-on {
  background: rgba(150, 193, 162, 0.14) !important;
}

html[data-bs-theme="light"] .ck.ck-editor {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--fossgo-border);
}

html[data-bs-theme="light"] .ck.ck-toolbar {
  background: #f7faf8 !important;
  border-color: var(--fossgo-border) !important;
}

/* Forms — keep inputs on-theme */
html[data-bs-theme="dark"] .form-control,
html[data-bs-theme="dark"] .form-select {
  background-color: var(--fossgo-surface-elevated) !important;
  border-color: var(--fossgo-border) !important;
  color: var(--fossgo-text) !important;
}

html[data-bs-theme="dark"] .form-control:focus,
html[data-bs-theme="dark"] .form-select:focus {
  border-color: rgba(150, 193, 162, 0.55) !important;
  box-shadow: 0 0 0 0.2rem rgba(150, 193, 162, 0.18) !important;
}

html[data-bs-theme="dark"] .form-control::placeholder {
  color: var(--fossgo-text-muted) !important;
}

html[data-bs-theme="dark"] .form-label {
  color: var(--fossgo-text-secondary) !important;
}

/* Unify link / KB colors — no Bootstrap blue leftovers */
body.fossgo-shell a:not(.btn):not(.nav-link):not(.dropdown-item):not(.fg-metric):not(.fg-quick-item):not(.fg-list-row):not(.list-group-item),
body.fossgo-shell .card-title a,
body.fossgo-shell .btn-link,
body.fossgo-shell .link-underline,
body.kb-index .card-title a,
body.kb-index .list-group-item-action,
body.kb-index a.btn-link {
  color: var(--fossgo-accent) !important;
}

body.fossgo-shell a:not(.btn):not(.nav-link):not(.dropdown-item):hover,
body.fossgo-shell .card-title a:hover,
body.fossgo-shell .btn-link:hover {
  color: var(--fossgo-accent-secondary) !important;
}

html[data-bs-theme="light"] body.fossgo-shell a:not(.btn):not(.nav-link):not(.dropdown-item):hover,
html[data-bs-theme="light"] body.fossgo-shell .card-title a:hover {
  color: var(--fossgo-accent-secondary) !important;
}

/* KB article list — consistent rows */
body.kb-index .list-group-item,
body.kb-index .list-group-item-action {
  background: transparent !important;
  border-color: var(--fossgo-border) !important;
  color: var(--fossgo-text) !important;
  border-radius: 0 !important;
}

body.kb-index .card .card .list-group-item-action {
  padding-top: 0.65rem !important;
  padding-bottom: 0.65rem !important;
}

body.kb-index .card .card .list-group-item-action:hover {
  background: rgba(150, 193, 162, 0.1) !important;
  color: var(--fossgo-accent) !important;
}

body.kb-index .card .card {
  background: var(--fossgo-surface-elevated) !important;
  border: 1px solid var(--fossgo-border) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}

html[data-bs-theme="light"] body.kb-index .card .card {
  background: #fbfdfb !important;
}

body.kb-index .card-header .input-group .btn {
  border-radius: 0 999px 999px 0 !important;
}

body.kb-index .card-header .input-group .form-control {
  border-radius: 999px 0 0 999px !important;
}

/* Nested card titles */
body.kb-index .card-title {
  font-family: var(--fossgo-font-display) !important;
  font-size: 1.05rem;
}

/* Contact / support page cards */
body.support-contact-us .card,
body.support-tickets .card {
  border-radius: 14px !important;
}

/* ==== FOSSGO order catalog + domain ==== */
/* Order accordion — FOSSGO, not Bootstrap blue */
body.order-index #orderbutton .accordion-button,
body.order-product #orderbutton .accordion-button {
  background: var(--fossgo-surface) !important;
  color: var(--fossgo-text) !important;
  box-shadow: none !important;
  font-family: var(--fossgo-font-display);
  font-weight: 600;
  gap: 0.35rem;
}

body.order-index #orderbutton .accordion-button:not(.collapsed),
body.order-product #orderbutton .accordion-button:not(.collapsed) {
  background: rgba(150, 193, 162, 0.12) !important;
  color: var(--fossgo-text) !important;
  border-bottom: 1px solid var(--fossgo-border);
}

body.order-index #orderbutton .accordion-button::after,
body.order-product #orderbutton .accordion-button::after {
  filter: none;
}

body.order-index #orderbutton .accordion-item,
body.order-product #orderbutton .accordion-item {
  background: transparent;
  border: 1px solid var(--fossgo-border) !important;
  border-radius: 12px !important;
  margin-bottom: 0.65rem;
  overflow: hidden;
}

body.order-index #orderbutton .accordion-body,
body.order-product #orderbutton .accordion-body {
  background: var(--fossgo-surface);
}

.fg-step-badge {
  margin-left: 0.5rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(150, 193, 162, 0.22);
  color: var(--fossgo-accent-secondary);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

html[data-bs-theme="dark"] .fg-step-badge {
  color: var(--fossgo-accent);
}

/* Catalog */
.fg-catalog-intro h2 {
  margin: 0 0 0.25rem;
  font-family: var(--fossgo-font-display);
  font-size: 1.25rem;
  color: var(--fossgo-text);
}

.fg-catalog-intro p {
  margin: 0 0 1.1rem;
  color: var(--fossgo-text-muted);
  font-size: 0.92rem;
}

.fg-catalog-section-head h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fossgo-accent);
  font-family: var(--fossgo-font-mono);
}

.fg-catalog-section-desc {
  color: var(--fossgo-text-muted);
  font-size: 0.88rem;
  margin-bottom: 0.85rem;
}

.fg-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.85rem;
}

.fg-catalog-card {
  display: flex;
  gap: 0.9rem;
  padding: 1.05rem 1.1rem;
  border: 1px solid var(--fossgo-border);
  border-radius: 14px;
  background: var(--fossgo-bg);
  text-decoration: none !important;
  color: inherit !important;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 168px;
}

.fg-catalog-card:hover,
.fg-catalog-card.is-selected {
  border-color: rgba(150, 193, 162, 0.65);
  box-shadow: 0 0 0 1px rgba(150, 193, 162, 0.25), 0 14px 28px rgba(4, 6, 9, 0.08);
  transform: translateY(-1px);
}

.fg-catalog-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(150, 193, 162, 0.18);
  color: var(--fossgo-accent);
  flex-shrink: 0;
}

.fg-catalog-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  flex: 1;
}

.fg-catalog-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.fg-catalog-card-top h4 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 650;
  color: var(--fossgo-text);
  font-family: var(--fossgo-font-display);
}

.fg-catalog-type {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fossgo-text-muted);
  font-family: var(--fossgo-font-mono);
  white-space: nowrap;
}

.fg-catalog-card-desc {
  margin: 0;
  font-size: 0.84rem;
  color: var(--fossgo-text-muted);
  line-height: 1.4;
}

.fg-tld-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.25rem 0 0;
  padding: 0;
}

.fg-tld-chips li {
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  border: 1px solid var(--fossgo-border);
  font-size: 0.72rem;
  font-family: var(--fossgo-font-mono);
  color: var(--fossgo-text-secondary);
  background: var(--fossgo-surface);
}

.fg-tld-chips li.is-more {
  border-style: dashed;
  color: var(--fossgo-text-muted);
}

.fg-catalog-card-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--fossgo-border);
  text-align: center;
}

.fg-catalog-card-foot .fg-catalog-price {
  width: 100%;
  text-align: center;
}

.fg-catalog-card-foot .fg-catalog-price-row {
  justify-content: center;
}

.fg-catalog-price {
  min-width: 0;
}

.fg-catalog-price-label {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fossgo-text-muted);
}

.fg-catalog-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 0.35rem;
}

.fg-catalog-price strong {
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--fossgo-text);
  font-family: var(--fossgo-font-display);
  font-weight: 650;
}

.fg-catalog-price-unit {
  font-size: 0.75rem;
  color: var(--fossgo-text-muted);
  white-space: nowrap;
}

.fg-catalog-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 8.5rem;
  height: 2.35rem;
  padding: 0 1.15rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: #96c1a2;
  color: #040609 !important;
  font-size: 0.85rem;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  box-shadow: none;
}

.fg-catalog-card:hover .fg-catalog-cta {
  background: var(--fossgo-accent);
  color: #ffffff !important;
}

html[data-bs-theme="light"] .fg-catalog-card:hover .fg-catalog-cta {
  background: #588157;
  color: #ffffff !important;
}

.fg-catalog-empty {
  padding: 1.5rem;
  text-align: center;
  color: var(--fossgo-text-muted);
  border: 1px dashed var(--fossgo-border);
  border-radius: 12px;
}

/* Domain configure */
.fg-domain-hero {
  margin-bottom: 1rem;
}

.fg-domain-title {
  margin: 0;
  font-family: var(--fossgo-font-display);
  font-size: 1.35rem;
  color: var(--fossgo-text);
}

.fg-domain-sub {
  margin: 0.35rem 0 0;
  color: var(--fossgo-text-muted);
  font-size: 0.92rem;
  max-width: 40rem;
}

.fg-domain-tabs {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.25rem;
  border: 1px solid var(--fossgo-border);
  border-radius: 999px;
  background: var(--fossgo-bg);
  margin-bottom: 1rem;
}

.fg-domain-tab {
  border: 0;
  background: transparent;
  color: var(--fossgo-text-secondary);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  font-weight: 600;
  font-size: 0.88rem;
}

.fg-domain-tab.active,
.fg-domain-tab[aria-selected="true"] {
  background: #96c1a2 !important;
  color: #040609 !important;
}

.fg-domain-label {
  font-weight: 600;
  color: var(--fossgo-text-secondary);
}

.fg-domain-search {
  display: grid;
  grid-template-columns: 1fr minmax(5.5rem, 7rem) auto;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

@media (max-width: 575px) {
  .fg-domain-search { grid-template-columns: 1fr; }
}

.fg-domain-input,
.fg-domain-tld,
.fg-domain-years {
  min-height: 44px;
  border-radius: 10px !important;
}

.fg-domain-check {
  min-height: 44px;
  border-radius: 999px !important;
  padding-inline: 1.15rem !important;
}

.fg-tld-pricing {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.fg-tld-price-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: flex-start;
  text-align: left;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--fossgo-border);
  background: var(--fossgo-bg);
  color: var(--fossgo-text);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.fg-tld-price-card strong {
  font-family: var(--fossgo-font-mono);
  font-size: 0.85rem;
  color: var(--fossgo-accent);
}

.fg-tld-price-card span {
  font-size: 0.78rem;
  color: var(--fossgo-text-secondary);
}

.fg-tld-price-card small {
  color: var(--fossgo-text-muted);
}

.fg-tld-price-card:hover,
.fg-tld-price-card.is-active {
  border-color: rgba(150, 193, 162, 0.65);
  background: rgba(150, 193, 162, 0.1);
}

.fg-domain-result {
  margin-top: 0.75rem;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(150, 193, 162, 0.4);
  background: rgba(150, 193, 162, 0.08);
}

.fg-domain-available {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--fossgo-text);
}

.fg-domain-available-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #96c1a2;
  box-shadow: 0 0 0 4px rgba(150, 193, 162, 0.2);
}

.fg-ns-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

@media (max-width: 575px) {
  .fg-ns-grid { grid-template-columns: 1fr; }
}

/* Hide powered-by in order flow */
#orderbutton .small.text-muted a[href*="fossbilling.org"] {
  display: none !important;
}
#orderbutton .small.text-muted {
  display: none !important;
}

/* Kill leftover Bootstrap info blue on order badges */
#orderbutton .badge.bg-info {
  background: rgba(150, 193, 162, 0.22) !important;
  color: var(--fossgo-accent-secondary) !important;
}

html[data-bs-theme="light"] .fg-catalog-card,
html[data-bs-theme="light"] .fg-tld-price-card {
  background: #ffffff;
}

/* ==== FOSSGO horizontal order steps + cart badge ==== */
.fg-order-shell {
  background: transparent !important;
}

.fg-stepper {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  padding: 0.35rem;
  margin-bottom: 1rem;
  border: 1px solid var(--fossgo-border);
  border-radius: 14px;
  background: var(--fossgo-surface);
}

.fg-step {
  flex: 1 1 0;
  min-width: 7.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--fossgo-text-secondary);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.fg-step:hover:not(:disabled):not(.is-disabled) {
  background: rgba(150, 193, 162, 0.1);
  color: var(--fossgo-text);
}

.fg-step.is-active {
  background: rgba(150, 193, 162, 0.18);
  border-color: rgba(150, 193, 162, 0.45);
  color: var(--fossgo-text);
  box-shadow: inset 0 -2px 0 #96c1a2;
}

.fg-step:disabled,
.fg-step.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.fg-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  background: var(--fossgo-bg);
  border: 1px solid var(--fossgo-border);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--fossgo-font-mono);
  flex-shrink: 0;
}

.fg-step.is-active .fg-step-num {
  background: #96c1a2;
  border-color: #96c1a2;
  color: #040609;
}

.fg-step-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.86rem;
  font-weight: 650;
  white-space: nowrap;
}

.fg-step-label .icon {
  width: 1rem;
  height: 1rem;
  opacity: 0.85;
}

.fg-step-meta {
  margin-left: auto;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #96c1a2;
  color: #040609;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fg-step-meta.is-empty {
  background: var(--fossgo-border);
  color: var(--fossgo-text-muted);
}

.fg-step-panels {
  border: 1px solid var(--fossgo-border);
  border-radius: 14px;
  background: var(--fossgo-surface);
  overflow: hidden;
}

.fg-step-panel-inner {
  padding: 1.15rem 1.2rem 1.35rem;
}

.fg-step-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--fossgo-text-muted);
}

.fg-step-empty .btn {
  margin-top: 0.75rem;
}

@media (max-width: 767px) {
  .fg-step {
    flex: 1 1 calc(50% - 0.4rem);
    min-width: 0;
  }
  .fg-step-label span,
  .fg-step-label {
    font-size: 0.78rem;
  }
}

/* Hide old accordion chrome if any leftover */
body.order-index #orderbutton .accordion-button,
body.order-product #orderbutton .accordion-item {
  display: none !important;
}

/* Top cart shortcut */
.fg-cart-link {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
  height: 36px;
  padding: 0 0.7rem 0 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--fossgo-border);
  background: var(--fossgo-surface);
  color: var(--fossgo-text) !important;
  text-decoration: none !important;
  font-size: 0.85rem;
  font-weight: 600;
}

.fg-cart-link:hover {
  border-color: rgba(150, 193, 162, 0.55);
  background: rgba(150, 193, 162, 0.1);
}

.fg-cart-link .icon {
  width: 1.05rem;
  height: 1.05rem;
}

.fg-cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #96c1a2;
  color: #040609;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}

.fg-cart-badge.is-empty {
  background: var(--fossgo-border);
  color: var(--fossgo-text-muted);
}

html[data-bs-theme="light"] .fg-cart-link,
html[data-bs-theme="light"] .fg-stepper,
html[data-bs-theme="light"] .fg-step-panels {
  background: #ffffff;
}

/* ==== FOSSGO brand (leaf + wordmark, fossgo.id style) ==== */
.fg-brand {
  display: inline-flex !important;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none !important;
  color: var(--fossgo-text) !important;
  padding: 0 !important;
  margin: 0 !important;
}
.fg-brand-mark {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.fg-brand-logo {
  height: 50px !important;
  width: auto !important;
  display: block;
}
.fg-brand-wordmark {
  font-family: "Space Grotesk", "Hanken Grotesk", system-ui, sans-serif !important;
  font-weight: 700 !important;
  font-size: 1.15rem !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: inherit !important;
  line-height: 1;
}
html[data-bs-theme="light"] .fg-brand-wordmark {
  color: #0b1a12 !important;
}
html[data-bs-theme="dark"] .fg-brand-wordmark {
  color: #f2f6f3 !important;
}

/* Custom hamburger (fossgo.id-like) */
.fg-menu-toggle {
  border: 1px solid var(--fossgo-border) !important;
  border-radius: 0.65rem !important;
  padding: 0.45rem 0.55rem !important;
  background: var(--fossgo-surface) !important;
  box-shadow: none !important;
}
.fg-menu-toggle:focus {
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--fossgo-accent) 25%, transparent) !important;
}
.fg-menu-toggle .navbar-toggler-icon { display: none; }
.fg-menu-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}
.fg-menu-toggle-bars span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--fossgo-text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.fg-menu-toggle[aria-expanded="true"] .fg-menu-toggle-bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.fg-menu-toggle[aria-expanded="true"] .fg-menu-toggle-bars span:nth-child(2) {
  opacity: 0;
}
.fg-menu-toggle[aria-expanded="true"] .fg-menu-toggle-bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile drawer panel */
@media (max-width: 767.98px) {
  body.fossgo-shell .fg-topbar .fg-nav-collapse {
    margin-top: 0.75rem;
    padding: 0.85rem 0.9rem 1rem;
    border: 1px solid var(--fossgo-border);
    border-radius: 1rem;
    background: var(--fossgo-surface);
    box-shadow: 0 12px 32px rgba(4, 6, 9, 0.08);
  }
  html[data-bs-theme="dark"] body.fossgo-shell .fg-topbar .fg-nav-collapse {
    background: color-mix(in srgb, var(--fossgo-surface) 92%, #000);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  }

  body.fossgo-shell .fg-topbar .fg-nav-list {
    justify-content: flex-start !important;
    align-items: stretch !important;
    gap: 0.55rem !important;
    flex-direction: row;
    flex-wrap: wrap;
  }

  /* Toolbar row: lang + cart + theme + (hide desktop-only top links) */
  body.fossgo-shell .fg-topbar .fg-nav-list > .nav-item.fg-mobile-tool {
    display: flex !important;
    align-items: center;
  }
  body.fossgo-shell .fg-topbar .fg-nav-list > .nav-item:not(.fg-mobile-tool):not(.fg-mobile-nav) {
    display: none !important; /* hide top Dashboard/Order text links on mobile; use drawer list */
  }
  body.fossgo-shell .fg-topbar .js-locale-selector {
    max-width: none;
    width: auto;
  }

  .fg-mobile-nav {
    order: 10;
    width: 100% !important;
    margin-top: 0.35rem;
    padding-top: 0.65rem;
    border-top: 1px solid var(--fossgo-border);
  }
  .fg-mobile-nav-list {
    width: 100%;
    gap: 0.15rem !important;
    align-items: stretch !important;
  }
  .fg-mobile-link {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.85rem !important;
    border-radius: 0.7rem !important;
    color: var(--fossgo-text) !important;
    font-weight: 500 !important;
    text-align: left !important;
    justify-content: flex-start !important;
  }
  .fg-mobile-link .icon {
    width: 1.15rem;
    height: 1.15rem;
    flex: 0 0 auto;
    color: var(--fossgo-text-secondary);
  }
  .fg-mobile-link.active,
  .fg-mobile-link[aria-current="page"] {
    background: color-mix(in srgb, var(--fossgo-accent) 18%, transparent) !important;
    color: var(--fossgo-accent-strong, var(--fossgo-accent)) !important;
  }
  .fg-mobile-link.active .icon,
  .fg-mobile-link[aria-current="page"] .icon {
    color: var(--fossgo-accent-strong, var(--fossgo-accent)) !important;
  }
  .fg-mobile-link:hover {
    background: color-mix(in srgb, var(--fossgo-accent) 10%, transparent) !important;
  }

  .fg-mobile-balance {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.85rem 0.9rem;
    margin: 0.35rem 0;
    border-radius: 0.7rem;
    background: color-mix(in srgb, var(--fossgo-accent) 8%, transparent);
    border: 1px solid var(--fossgo-border);
  }
  .fg-mobile-balance-label {
    font-size: 0.75rem;
    color: var(--fossgo-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  .fg-mobile-balance strong {
    font-size: 1.05rem;
    color: var(--fossgo-text);
  }

  .fg-mobile-account {
    margin-top: 0.35rem;
    padding-top: 0.5rem;
  }
  .fg-mobile-account-btn {
    display: flex !important;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.55rem 0.7rem;
    border-radius: 0.7rem;
    border: 1px solid var(--fossgo-border);
    background: transparent;
    color: var(--fossgo-text);
    text-align: left;
  }
  .fg-mobile-account-btn::after {
    margin-left: auto;
  }
  .fg-mobile-account-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.2;
  }
  .fg-mobile-account-meta .fg-user-name {
    font-weight: 600;
    font-size: 0.9rem;
  }
  .fg-mobile-account-meta .fg-user-org {
    font-size: 0.75rem;
    color: var(--fossgo-text-secondary);
  }
  .fg-mobile-auth {
    display: grid;
    gap: 0.5rem;
  }

  /* Hide duplicate desktop user chip inside mobile tools when account block exists */
  body.fossgo-shell .fg-topbar .fg-user-menu {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .fg-mobile-nav { display: none !important; }
}

/* ==== FOSSGO brand mobile fixes ==== */
.fg-brand {
  flex-wrap: nowrap !important;
  max-width: calc(100% - 3.5rem);
}
.fg-brand-mark {
  flex: 0 0 auto;
}
.fg-brand-logo {
  height: 50px !important;
  width: 50px !important;
  object-fit: contain;
}
.fg-brand-wordmark {
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  body.fossgo-shell .fg-topbar .fg-nav-collapse,
  body.fossgo-shell .fg-topbar .fg-nav-list,
  body.fossgo-shell .fg-topbar .fg-mobile-nav,
  body.fossgo-shell .fg-topbar .fg-mobile-nav-list,
  body.fossgo-shell .fg-topbar .fg-mobile-nav-list .nav-item {
    text-align: left !important;
    align-items: stretch !important;
  }
  body.fossgo-shell .fg-topbar .fg-mobile-nav-list .nav-link,
  body.fossgo-shell .fg-topbar .fg-mobile-link {
    display: flex !important;
    justify-content: flex-start !important;
    text-align: left !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  /* tools row stays left, not centered */
  body.fossgo-shell .fg-topbar .fg-nav-list > .nav-item.fg-mobile-tool {
    justify-content: flex-start !important;
  }
  body.fossgo-shell .fg-topbar .fg-nav-list {
    justify-content: flex-start !important;
  }
  /* kill Bootstrap collapse centering */
  body.fossgo-shell .fg-topbar .navbar-collapse .navbar-nav {
    text-align: left !important;
  }
  body.fossgo-shell .fg-topbar .navbar-collapse .nav-link {
    text-align: left !important;
  }
}

/* ==== FOSSGO auth pages ==== */
.page-login,
.page-signup,
.page-password-reset {
  min-height: 100vh;
  background: var(--fossgo-bg, #f2f6f3);
}
.fg-auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 2.5rem 0 3rem;
}
.fg-auth-wrap > .row {
  width: 100%;
  margin: 0;
}
.fg-auth-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.fg-auth-brand .fg-brand {
  gap: 0.65rem;
}
.fg-auth-brand .fg-brand-logo {
  height: 50px !important;
  width: 50px !important;
}
.fg-auth-brand .fg-brand-wordmark {
  font-size: 1.35rem !important;
}
.fg-auth-card {
  border-radius: 1.15rem !important;
}
.fg-auth-card .card-body {
  padding: 1.75rem 1.5rem 1.5rem !important;
}
@media (min-width: 576px) {
  .fg-auth-card .card-body {
    padding: 2rem 1.75rem 1.75rem !important;
  }
}
.fg-auth-title {
  text-align: center;
  font-size: 1.25rem !important;
  font-weight: 650 !important;
  margin: 0 0 1.35rem !important;
  color: var(--fossgo-text) !important;
  letter-spacing: -0.01em;
}
html[data-bs-theme="light"] .page-login .fg-auth-title,
html[data-bs-theme="light"] .page-signup .fg-auth-title,
html[data-bs-theme="light"] .page-password-reset .fg-auth-title {
  color: #0b1a12 !important;
}
.fg-auth-form .form-label {
  font-weight: 550;
  margin-bottom: 0.35rem;
}
.fg-auth-form .form-control,
.fg-auth-form .form-select {
  min-height: 2.65rem;
  border-radius: 0.75rem !important;
}
.fg-auth-submit {
  margin-top: 0.35rem;
  margin-bottom: 0 !important;
  min-height: 2.75rem;
}
.fg-auth-secondary {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--fossgo-border);
}
.fg-auth-secondary .btn {
  min-height: 2.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  white-space: normal;
  line-height: 1.25;
  padding-left: 1rem;
  padding-right: 1rem;
}
/* Override older auth title color rules that forced accent green on h1 */
.page-login .card h1.fg-auth-title,
.page-signup .card h1.fg-auth-title {
  color: var(--fossgo-text) !important;
}
html[data-bs-theme="light"] .page-login .card h1.fg-auth-title,
html[data-bs-theme="light"] .page-signup .card h1.fg-auth-title {
  color: #0b1a12 !important;
}

/* Global layout safety — reduce common offside overflow */
body.fossgo-shell .container,
body.fossgo-shell .container-fluid {
  overflow-x: clip;
}
body.fossgo-shell img,
body.fossgo-shell svg,
body.fossgo-shell table {
  max-width: 100%;
}
body.fossgo-shell .table-responsive {
  overflow-x: auto;
}

/* ==== FOSSGO quick icons ==== */
.fg-quick-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 0 !important;
  line-height: 0 !important;
}
.fg-quick-icon .icon {
  width: 1.15rem !important;
  height: 1.15rem !important;
  color: var(--fossgo-accent) !important;
  stroke: currentColor;
}
html[data-bs-theme="light"] .fg-quick-icon .icon {
  color: #588157 !important;
}


/* ==== FOSSGO footer redesign ==== */
body.fossgo-shell .fg-footer,
#footer.fg-footer {
  margin-top: 2.5rem !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  border-top: 1px solid var(--fossgo-border) !important;
  background: linear-gradient(180deg, transparent 0%, var(--fossgo-surface-elevated) 40%) !important;
  color: var(--fossgo-text-secondary) !important;
  font-size: 0.875rem !important;
}

.fg-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 1.5rem;
}

.fg-footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--fossgo-border);
}

.fg-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: min(100%, 240px);
}

.fg-footer-logo.fg-brand,
a.fg-footer-logo {
  display: inline-flex !important;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none !important;
  color: var(--fossgo-text) !important;
}

.fg-footer-logo .fg-brand-wordmark {
  font-family: var(--fossgo-font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.fg-footer-tagline {
  margin: 0;
  max-width: 28rem;
  color: var(--fossgo-text-muted) !important;
  font-size: 0.8rem;
  line-height: 1.45;
}

.fg-footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.15rem;
  justify-content: flex-end;
}

.fg-footer-link {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  color: var(--fossgo-text-secondary) !important;
  text-decoration: none !important;
  font-weight: 500;
  font-size: 0.82rem;
  transition: color .15s ease, background-color .15s ease;
}

.fg-footer-link:hover,
.fg-footer-link:focus-visible {
  color: var(--fossgo-accent) !important;
  background: var(--fossgo-accent-glow);
}

.fg-footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-top: 1rem;
}

.fg-footer-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  color: var(--fossgo-text-muted) !important;
  font-size: 0.78rem;
}

.fg-footer-sep {
  opacity: 0.55;
}

.fg-footer-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--fossgo-border);
  background: var(--fossgo-surface);
  color: var(--fossgo-text-secondary);
  font-size: 0.75rem;
}

.fg-footer-bank-label {
  font-family: var(--fossgo-font-mono);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fossgo-accent) !important;
  width: 100%;
}

/* Hide stock FOSSBilling attribution if widgets inject it */
#footer.fg-footer a[href*="fossbilling.org"],
#footer.fg-footer .d-flex.justify-content-center:has(a[href*="fossbilling.org"]) {
  display: none !important;
}

@media (max-width: 767.98px) {
  .fg-footer-top {
    flex-direction: column;
  }
  .fg-footer-nav {
    justify-content: flex-start;
  }
  .fg-footer-inner {
    padding: 1.35rem 1rem 1.25rem;
  }
}


/* ==== FOSSGO sidebar collapse + full-width footer ==== */
body.fossgo-shell .fg-shell-main {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

body.fossgo-shell .fg-shell-row {
  --fg-sidebar-width: 240px;
  --fg-sidebar-collapsed-width: 76px;
}

body.fossgo-shell .fg-shell-row > .fg-sidebar-col {
  flex: 0 0 var(--fg-sidebar-width) !important;
  width: var(--fg-sidebar-width) !important;
  max-width: var(--fg-sidebar-width) !important;
  transition: flex-basis .2s ease, width .2s ease, max-width .2s ease;
}

html.fg-sidebar-collapsed body.fossgo-shell .fg-shell-row > .fg-sidebar-col {
  flex: 0 0 var(--fg-sidebar-collapsed-width) !important;
  width: var(--fg-sidebar-collapsed-width) !important;
  max-width: var(--fg-sidebar-collapsed-width) !important;
}

body.fossgo-shell .fg-shell-row > .fg-content-col {
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

body.fossgo-shell .fg-sidebar-rail {
  position: sticky;
  top: 1rem;
}

body.fossgo-shell .fg-sidebar-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  margin-bottom: 0.45rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--fossgo-border);
  border-radius: 10px;
  background: var(--fossgo-surface-elevated);
  color: var(--fossgo-text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

body.fossgo-shell .fg-sidebar-toggle:hover {
  color: var(--fossgo-accent);
  border-color: rgba(150, 193, 162, 0.45);
  background: var(--fossgo-accent-glow);
}

html.fg-sidebar-collapsed body.fossgo-shell .fg-sidebar-toggle {
  justify-content: center;
  padding: 0.65rem 0.4rem;
}

html.fg-sidebar-collapsed body.fossgo-shell .fg-sidebar-toggle .fg-nav-label {
  display: none !important;
}

html.fg-sidebar-collapsed body.fossgo-shell .fg-sidebar-toggle-icon {
  transform: rotate(180deg);
}

html.fg-sidebar-collapsed body.fossgo-shell #sidebarMenu .fg-nav-label,
html.fg-sidebar-collapsed body.fossgo-shell #sidebarMenu .fg-sidebar-balance,
html.fg-sidebar-collapsed body.fossgo-shell #sidebarMenu .fg-sidebar-note {
  display: none !important;
}

html.fg-sidebar-collapsed body.fossgo-shell #sidebarMenu .nav-link {
  justify-content: center !important;
  gap: 0 !important;
  padding: 0.7rem 0.45rem !important;
}

html.fg-sidebar-collapsed body.fossgo-shell #sidebarMenu {
  padding: 0.35rem !important;
}

html.fg-sidebar-collapsed body.fossgo-shell #sidebarMenu .offcanvas-item.active {
  box-shadow: inset 0 0 0 1px rgba(150, 193, 162, 0.35);
}

/* Footer full-bleed under shell (not trapped in content column) */
body.fossgo-shell > .container > #footer.fg-footer,
body.fossgo-shell #footer.fg-footer {
  width: 100%;
  max-width: none;
  margin-top: 2rem !important;
  border-top: 1px solid var(--fossgo-border) !important;
  background: var(--fossgo-surface-elevated) !important;
}

body.fossgo-shell #footer.fg-footer .fg-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (max-width: 767.98px) {
  body.fossgo-shell .fg-sidebar-col {
    display: none !important;
  }
}


/* Domain check unavailable state */
.fg-domain-unavailable {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1rem;
  border-radius: 12px;
  background: color-mix(in srgb, #dc2626 12%, transparent);
  border: 1px solid color-mix(in srgb, #dc2626 35%, transparent);
  color: inherit;
  margin-bottom: .75rem;
}
.fg-domain-unavailable-dot {
  width: .65rem;
  height: .65rem;
  border-radius: 50%;
  background: #dc2626;
  flex-shrink: 0;
}


/* Domain suggestions when taken */
.fg-domain-suggestions {
  margin-top: .9rem;
}
.fg-domain-suggestions-title {
  font-weight: 600;
  margin: 0 0 .55rem;
  font-size: .95rem;
}
.fg-domain-suggestions-hint {
  margin: .5rem 0 0;
  opacity: .75;
  font-size: .85rem;
}
.fg-domain-suggestions-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .55rem;
}
.fg-domain-suggestion {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .2rem;
  text-align: left;
  border: 1px solid color-mix(in srgb, var(--fg-accent, #6b8f71) 40%, transparent);
  background: color-mix(in srgb, var(--fg-accent, #6b8f71) 10%, transparent);
  border-radius: 12px;
  padding: .7rem .8rem;
  cursor: pointer;
  color: inherit;
}
.fg-domain-suggestion:hover {
  border-color: var(--fg-accent, #6b8f71);
  background: color-mix(in srgb, var(--fg-accent, #6b8f71) 18%, transparent);
}
.fg-domain-suggestion strong {
  font-size: .92rem;
}
.fg-domain-suggestion span {
  font-size: .8rem;
  opacity: .85;
}
.fg-domain-suggestion small {
  opacity: .7;
}

/* ------------------------------------------------------------------ home: domain search */

.osir-hero {
    background: var(--osir-surface);
    border: 1px solid var(--osir-line);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 18px;
}

.osir-hero h1 {
    font-size: 30px;
    margin: 6px 0 6px;
}

.osir-hero p { color: var(--osir-ink-500); margin-bottom: 18px; max-width: 620px; }

.osir-search {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.osir-search .form-control {
    flex: 1 1 260px;
    font-family: var(--osir-mono);
    font-size: 15px;
    padding: 10px 14px;
}

.osir-search .form-select {
    flex: 0 0 130px;
    font-family: var(--osir-mono);
}

.osir-search .btn { flex: 0 0 auto; padding: 10px 18px; }

.osir-prices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.osir-price {
    font-family: var(--osir-mono);
    font-size: 12px;
    color: var(--osir-ink-500);
    border: 1px solid var(--osir-line);
    border-radius: 20px;
    padding: 3px 10px;
    background: #fafafc;
    text-decoration: none;
}

.osir-price b { color: var(--osir-ink-900); font-weight: 500; }

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

.osir-link {
    display: block;
    background: var(--osir-surface);
    border: 1px solid var(--osir-line);
    border-radius: 14px;
    padding: 14px 18px;
    color: var(--osir-ink-700);
    text-decoration: none;
}

.osir-link:hover { border-color: #d9dae3; background: #fbfbfe; color: var(--osir-ink-900); }
.osir-link strong { display: block; color: var(--osir-ink-900); font-weight: 600; font-size: 15px; margin: 4px 0 2px; }
.osir-link span { font-size: 13px; color: var(--osir-ink-500); }

.osir-balance {
    font-family: var(--osir-mono);
    font-size: 18px;
    font-weight: 500;
    color: var(--osir-ink-900);
    letter-spacing: -.02em;
}

.datagrid{--tblr-datagrid-padding:1.5rem;--tblr-datagrid-item-width:15rem;display:grid;grid-gap:var(--tblr-datagrid-padding);grid-template-columns:repeat(auto-fit,minmax(var(--tblr-datagrid-item-width),1fr))}.datagrid-title{font-size:.75rem;font-weight:var(--tblr-font-weight-medium);text-transform:uppercase;letter-spacing:.04em;line-height:1rem;color:var(--tblr-secondary);margin-bottom:.25rem}.empty{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;padding:1rem;text-align:center}@media (min-width:768px){.empty{padding:3rem}}.empty-icon{margin:0 0 1rem;width:3rem;height:3rem;line-height:1;color:var(--tblr-secondary)}.empty-icon svg{width:100%;height:100%}.empty-img{margin:0 0 2rem;line-height:1}.empty-header{margin:0 0 1rem;font-size:4rem;font-weight:var(--tblr-font-weight-light);line-height:1;color:var(--tblr-secondary)}.empty-title{font-size:1.25rem;line-height:1.75rem;font-weight:var(--tblr-font-weight-bold)}.empty-subtitle,.empty-title{margin:0 0 .5rem}.empty-action{margin-top:1.5rem}.empty-bordered{border:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color);border-radius:var(--tblr-border-radius)}.row>*{min-width:0}.col-separator{border-left:var(--tblr-border-width) var(--tblr-border-style) var(--tblr-border-color)}.container-slim{--tblr-gutter-x:calc(var(--tblr-page-padding) * 2);--tblr-gutter-y:0;width:100%;padding-right:calc(var(--tblr-gutter-x) * .5);padding-left:calc(var(--tblr-gutter-x) * .5);margin-right:auto;margin-left:auto;max-width:16rem}.container-tight{--tblr-gutter-x:calc(var(--tblr-page-padding) * 2);--tblr-gutter-y:0;width:100%;padding-right:calc(var(--tblr-gutter-x) * .5);padding-left:calc(var(--tblr-gutter-x) * .5);margin-right:auto;margin-left:auto;max-width:30rem}.container-narrow{--tblr-gutter-x:calc(var(--tblr-page-padding) * 2);--tblr-gutter-y:0;width:100%;padding-right:calc(var(--tblr-gutter-x) * .5);padding-left:calc(var(--tblr-gutter-x) * .5);margin-right:auto;margin-left:auto;max-width:61.875rem}.row-0{margin-right:0;margin-left:0}.row-0>.col,.row-0>[class*=col-]{padding-right:0;padding-left:0}.row-0 .card{margin-bottom:0}.row-sm{margin-right:-.375rem;margin-left:-.375rem}.row-sm>
.row-cards{--tblr-gutter-x:var(--tblr-page-padding);--tblr-gutter-y:var(--tblr-page-padding);min-width:0}.row-cards .row-cards{flex:1}.space-y{display:flex;flex-direction:column;gap:1rem}
.row-cards{--tblr-gutter-x:var(--tblr-page-padding);--tblr-gutter-y:var(--tblr-page-padding);min-width:0}.row-cards .row-cards{flex:1}