/* ============================================================
   TCGPlayer Tools - Professional application theme
   ============================================================ */

:root {
  color-scheme: dark;
  --bg-main: #080b0d;
  --bg-page: #0b1013;
  --surface: #111820;
  --surface-soft: #151d25;
  --surface-strong: #1b2530;
  --surface-hover: #202c38;
  --border-subtle: rgba(154, 171, 184, 0.18);
  --border-strong: rgba(154, 171, 184, 0.32);
  --text-main: #edf4f7;
  --text-soft: #c4d0d6;
  --text-muted-custom: #8b9aa4;
  --primary: #2dd4bf;
  --primary-strong: #14b8a6;
  --primary-soft: rgba(45, 212, 191, 0.12);
  --accent: #f59e0b;
  --accent-soft: rgba(245, 158, 11, 0.13);
  --success: #22c55e;
  --success-soft: rgba(34, 197, 94, 0.13);
  --danger: #f43f5e;
  --danger-soft: rgba(244, 63, 94, 0.12);
  --info: #60a5fa;
  --info-soft: rgba(96, 165, 250, 0.12);
  --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.28);
  --radius: 8px;
}

* {
  letter-spacing: 0 !important;
}

html {
  min-height: 100%;
}

body.app-body,
body.auth-body,
body.landing-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  color: var(--text-main);
  background:
    linear-gradient(180deg, rgba(15, 21, 25, 0.98) 0%, var(--bg-page) 36%, var(--bg-main) 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: geometricPrecision;
}

body.app-body main,
body.auth-body main {
  flex: 1;
}

::selection {
  background: rgba(45, 212, 191, 0.28);
  color: #fff;
}

a {
  color: var(--primary);
}

a:hover {
  color: #7dd3fc;
}

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

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

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

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

.text-warning {
  color: #fbbf24 !important;
}

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

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

.bg-black,
.bg-dark {
  background-color: var(--bg-main) !important;
}

.container-narrow {
  max-width: 980px;
}

.py-6 {
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}

/* ---- NAVBAR ---- */
.app-navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  min-height: 68px;
  background: rgba(8, 11, 13, 0.88) !important;
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff !important;
  min-width: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), #60a5fa);
  color: #021012;
  box-shadow: 0 12px 32px rgba(45, 212, 191, 0.22);
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-name {
  font-size: 0.98rem;
  font-weight: 800;
}

.brand-subtitle {
  margin-top: 0.16rem;
  color: var(--text-muted-custom);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.app-nav {
  align-items: center;
  gap: 0.25rem;
}

.app-nav .nav-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.78rem !important;
  border-radius: var(--radius);
  color: var(--text-soft) !important;
  font-size: 0.94rem;
  font-weight: 650;
}

.app-nav .nav-link:hover,
.app-nav .nav-link.active {
  background: rgba(255, 255, 255, 0.06);
  color: #fff !important;
}

.app-nav .nav-link.active {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.user-menu {
  display: inline-flex !important;
  align-items: center;
  gap: 0.55rem;
  border-radius: var(--radius);
  color: var(--text-soft) !important;
  font-weight: 650;
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-strong);
  border: 1px solid var(--border-strong);
  color: #fff;
  font-size: 0.82rem;
}

.app-dropdown {
  border: 1px solid var(--border-subtle);
  background: #10161d;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

/* ---- LAYOUT PRIMITIVES ---- */
.page-shell {
  max-width: 1220px;
  margin: 0 auto;
  min-width: 0;
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.page-eyebrow,
.hero-eyebrow,
.section-eyebrow {
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.page-title {
  margin: 0.25rem 0 0;
  color: #fff;
  font-size: 2rem;
  font-weight: 850;
  overflow-wrap: break-word;
}

.page-copy {
  max-width: 720px;
  margin: 0.55rem 0 0;
  color: var(--text-muted-custom);
  overflow-wrap: break-word;
}

.section-heading {
  color: #fff;
  font-size: 2.35rem;
  font-weight: 850;
  margin-bottom: 0.75rem;
}

.section-copy {
  max-width: 720px;
  color: var(--text-muted-custom);
  font-size: 1.05rem;
}

.surface-card,
.card.bg-dark,
.pricing-card,
.auth-card,
.problem-card,
.feature-card,
.action-card,
.metric-card,
.connection-card,
.settings-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)), var(--surface);
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius) !important;
  box-shadow: none;
}

.surface-card:hover,
.feature-card:hover,
.problem-card:hover,
.connection-card:hover {
  border-color: var(--border-strong) !important;
}

.card-header.border-secondary,
.card-header {
  border-color: var(--border-subtle) !important;
  background: rgba(255, 255, 255, 0.025);
}

.card-body {
  color: var(--text-soft);
}

.soft-panel {
  background: var(--surface-soft);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}

.icon-tile {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--primary);
  flex: 0 0 auto;
}

.icon-tile.success {
  color: var(--success);
}

.icon-tile.warning {
  color: var(--accent);
}

.icon-tile.danger {
  color: var(--danger);
}

.icon-tile.info {
  color: var(--info);
}

/* ---- BUTTONS ---- */
.btn {
  border-radius: var(--radius);
  font-weight: 750;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-sm {
  min-height: 32px;
}

.btn-lg {
  min-height: 48px;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #041112;
  box-shadow: 0 12px 24px rgba(45, 212, 191, 0.16);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--primary-strong);
  border-color: var(--primary-strong);
  color: #041112;
}

.btn-success {
  background: var(--success);
  border-color: var(--success);
  color: #04110a;
}

.btn-success:hover,
.btn-success:focus {
  background: #16a34a;
  border-color: #16a34a;
  color: #04110a;
}

.btn-outline-secondary {
  border-color: var(--border-strong);
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.02);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.btn-outline-danger {
  color: #fda4af;
  border-color: rgba(244, 63, 94, 0.38);
}

.btn-outline-danger:hover {
  color: #fff;
  background: var(--danger);
  border-color: var(--danger);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-link-clean {
  color: var(--text-soft);
  text-decoration: none;
}

.btn-link-clean:hover {
  color: #fff;
}

/* ---- BADGES / STATUS ---- */
.badge {
  border-radius: 999px;
  font-weight: 750;
  padding: 0.42em 0.65em;
}

.bg-primary {
  background-color: var(--primary) !important;
  color: #041112 !important;
}

.bg-success {
  background-color: var(--success) !important;
  color: #03150a !important;
}

.bg-secondary {
  background-color: rgba(148, 163, 184, 0.16) !important;
  color: var(--text-soft) !important;
}

.bg-danger {
  background-color: var(--danger) !important;
}

.bg-warning {
  background-color: var(--accent) !important;
  color: #151008 !important;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.4rem 0.62rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.82rem;
  font-weight: 750;
}

.status-pill.connected,
.status-pill.complete,
.status-pill.success {
  border-color: rgba(34, 197, 94, 0.3);
  background: var(--success-soft);
  color: #bbf7d0;
}

.status-pill.running,
.status-pill.warning {
  border-color: rgba(245, 158, 11, 0.34);
  background: var(--accent-soft);
  color: #fde68a;
}

.status-pill.failed,
.status-pill.danger {
  border-color: rgba(244, 63, 94, 0.34);
  background: var(--danger-soft);
  color: #fecdd3;
}

.status-dot {
  width: 8px;
  height: 8px;
  display: inline-flex;
  border-radius: 50%;
  background: var(--text-muted-custom);
}

.status-dot.connected,
.status-dot.success {
  background: var(--success);
}

.status-dot.warning {
  background: var(--accent);
}

.status-dot.danger {
  background: var(--danger);
}

/* ---- FORMS ---- */
.form-label {
  color: var(--text-soft);
  font-weight: 700;
  font-size: 0.92rem;
}

.form-control,
.form-select,
.form-control-dark,
.form-select-dark {
  border-radius: var(--radius);
  background-color: #0d1318;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.form-control:focus,
.form-select:focus,
.form-control-dark:focus,
.form-select-dark:focus {
  background-color: #101820;
  border-color: rgba(45, 212, 191, 0.65);
  color: #fff;
  box-shadow: 0 0 0 0.2rem rgba(45, 212, 191, 0.14);
}

.form-control::placeholder {
  color: #60707a;
}

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

.form-check-input {
  background-color: #0d1318;
  border-color: var(--border-strong);
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.form-check-input:focus {
  border-color: rgba(45, 212, 191, 0.65);
  box-shadow: 0 0 0 0.2rem rgba(45, 212, 191, 0.14);
}

.input-group-text.bg-secondary,
.input-group-text {
  background-color: #0d1318 !important;
  border-color: var(--border-subtle) !important;
  color: var(--text-muted-custom) !important;
}

/* ---- TABLES ---- */
.table-dark {
  --bs-table-bg: transparent;
  --bs-table-color: var(--text-soft);
  --bs-table-hover-bg: rgba(255, 255, 255, 0.045);
  --bs-table-border-color: rgba(154, 171, 184, 0.11);
}

.table > :not(caption) > * > * {
  padding: 0.82rem 1rem;
  vertical-align: middle;
}

.table-dark thead th {
  color: var(--text-muted-custom);
  border-bottom-color: var(--border-subtle);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.table-panel {
  overflow: hidden;
}

.sync-log-scroll {
  max-height: 420px;
  overflow-y: auto;
}

.sticky-top {
  position: sticky;
  top: 0;
  z-index: 1;
  background-color: var(--surface) !important;
}

.table-truncate {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- ALERTS ---- */
.alert {
  border-radius: var(--radius);
  border-width: 1px;
}

.flash-stack {
  margin-bottom: 1rem;
}

.alert-info {
  background-color: var(--info-soft);
  border-color: rgba(96, 165, 250, 0.3);
  color: #bfdbfe;
}

.alert-warning {
  background-color: var(--accent-soft);
  border-color: rgba(245, 158, 11, 0.34);
  color: #fde68a;
}

.alert-danger {
  background-color: var(--danger-soft);
  border-color: rgba(244, 63, 94, 0.34);
  color: #fecdd3;
}

.alert-success {
  background-color: var(--success-soft);
  border-color: rgba(34, 197, 94, 0.32);
  color: #bbf7d0;
}

.payment-modal .modal-content {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.018)),
    var(--surface);
  color: var(--text-soft);
  box-shadow: var(--shadow-soft);
}

.payment-modal .modal-header,
.payment-modal .modal-footer {
  border-color: var(--border-subtle);
}

.payment-modal .modal-footer {
  justify-content: space-between;
}

.payment-confirm-check {
  padding: 0.9rem 0.9rem 0.9rem 2.55rem;
  border: 1px solid rgba(45, 212, 191, 0.28);
  border-radius: var(--radius);
  background: var(--primary-soft);
}

.payment-confirm-check .form-check-label {
  color: var(--text-soft);
  font-weight: 650;
}

.btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

/* ---- DASHBOARD ---- */
.dashboard-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.overview-panel {
  padding: 1.25rem;
}

.overview-title {
  font-size: 1.8rem;
  font-weight: 850;
  color: #fff;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1.25rem;
}

.mini-stat {
  padding: 0.85rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}

.mini-stat span {
  display: block;
  color: var(--text-muted-custom);
  font-size: 0.78rem;
}

.mini-stat strong {
  display: block;
  margin-top: 0.25rem;
  color: #fff;
  font-size: 1rem;
}

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

.metric-card {
  padding: 1rem;
  min-height: 122px;
}

.metric-label {
  color: var(--text-muted-custom);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-value {
  margin-top: 0.9rem;
  color: #fff;
  font-size: 1.45rem;
  font-weight: 850;
}

.metric-card .metric-icon {
  float: right;
  color: var(--primary);
  opacity: 0.85;
}

.connection-card {
  padding: 1.1rem;
  height: 100%;
}

.connection-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.connection-name {
  color: #fff;
  font-size: 1.06rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.command-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
}

.command-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.empty-state {
  padding: 3.25rem 1rem;
  text-align: center;
  color: var(--text-muted-custom);
}

.empty-state i {
  display: block;
  margin-bottom: 0.85rem;
  color: var(--text-soft);
  font-size: 2rem;
}

/* ---- SYNC ---- */
.action-card {
  padding: 1.25rem;
  height: 100%;
}

.action-card.danger {
  border-color: rgba(244, 63, 94, 0.34) !important;
}

.action-card-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 850;
  margin-bottom: 0.7rem;
}

.option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.running-jobs-panel {
  margin-bottom: 1rem;
}

/* ---- SETTINGS ---- */
.settings-panel {
  height: 100%;
  overflow: hidden;
}

.settings-panel-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--border-subtle);
}

.settings-panel-header h6 {
  margin: 0;
  color: #fff;
  font-weight: 850;
}

.settings-panel-body {
  padding: 1.15rem;
}

.save-bar {
  position: sticky;
  bottom: 1rem;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-top: 1.5rem;
  padding: 0.9rem;
  background: rgba(17, 24, 32, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
}

/* ---- CONNECTION FLOWS ---- */
.flow-shell {
  max-width: 920px;
  margin: 0 auto;
}

.breadcrumb {
  --bs-breadcrumb-divider-color: var(--text-muted-custom);
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--text-muted-custom);
}

.step-track {
  display: grid;
  grid-template-columns: 36px 1fr 36px 1fr 36px;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
}

.step-indicator {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #0d1318;
  border: 1px solid var(--border-strong);
  color: var(--text-muted-custom);
  font-size: 0.88rem;
  font-weight: 850;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-line {
  height: 1px;
  background: var(--border-subtle);
}

.step-indicator.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #041112;
}

.step-indicator.done {
  background-color: var(--success);
  border-color: var(--success);
  color: #03150a;
}

.help-list {
  margin: 0;
  color: var(--text-muted-custom);
  font-size: 0.92rem;
}

.help-list li + li {
  margin-top: 0.35rem;
}

/* ---- AUTH ---- */
.auth-body {
  background-color: var(--bg-main);
  background-image:
    linear-gradient(180deg, rgba(10, 14, 16, 0.94), rgba(8, 11, 13, 0.98)),
    url("../images/hero-operations.png");
  background-image:
    linear-gradient(180deg, rgba(10, 14, 16, 0.94), rgba(8, 11, 13, 0.98)),
    image-set(
      url("../images/hero-operations.webp") type("image/webp"),
      url("../images/hero-operations.png") type("image/png")
    );
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

.auth-shell {
  max-width: 1040px;
  margin: 0 auto;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 1rem;
  align-items: stretch;
}

.auth-panel {
  padding: 2rem;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
}

.auth-card {
  padding: 1.5rem;
}

.auth-title {
  color: #fff;
  font-size: 1.65rem;
  font-weight: 850;
}

.auth-proof {
  display: grid;
  gap: 0.7rem;
  margin-top: 2rem;
}

.auth-proof-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-soft);
}

/* ---- LANDING ---- */
.landing-body {
  background: var(--bg-main);
}

.hero-section {
  position: relative;
  min-height: 76vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(8, 11, 13, 0.98) 0%, rgba(8, 11, 13, 0.88) 42%, rgba(8, 11, 13, 0.34) 100%),
    linear-gradient(180deg, rgba(8, 11, 13, 0.1), rgba(8, 11, 13, 0.64)),
    url("../images/hero-operations.png");
  background-image:
    linear-gradient(90deg, rgba(8, 11, 13, 0.98) 0%, rgba(8, 11, 13, 0.88) 42%, rgba(8, 11, 13, 0.34) 100%),
    linear-gradient(180deg, rgba(8, 11, 13, 0.1), rgba(8, 11, 13, 0.64)),
    image-set(
      url("../images/hero-operations.webp") type("image/webp"),
      url("../images/hero-operations.png") type("image/png")
    );
  background-size: cover;
  background-position: center;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--border-subtle);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
  padding: 5rem 0 4rem;
}

.hero-title {
  color: #fff;
  font-size: 3.6rem;
  line-height: 1.02;
  font-weight: 900;
  margin: 1rem 0 1.25rem;
}

.hero-lead {
  max-width: 640px;
  color: var(--text-soft);
  font-size: 1.18rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
  color: var(--text-muted-custom);
  font-size: 0.92rem;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.landing-band {
  border-bottom: 1px solid var(--border-subtle);
}

.trust-strip {
  background: #0c1115;
}

.platform-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  font-weight: 800;
}

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

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

.integration-card {
  padding: 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.028);
}

.integration-card h5 {
  margin: 0;
  color: #fff;
  font-size: 1rem;
  font-weight: 850;
}

.integration-card p {
  margin: 0.6rem 0 0;
  color: var(--text-muted-custom);
  font-size: 0.9rem;
}

.integration-card .badge {
  margin-top: 0.9rem;
}

.seo-copy {
  color: var(--text-muted-custom);
  font-size: 1.02rem;
  line-height: 1.75;
}

.seo-copy p {
  margin-bottom: 1rem;
}

.requirements-strip {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem;
  min-width: 0;
  border: 1px solid rgba(45, 212, 191, 0.28);
  border-radius: var(--radius);
  background: var(--primary-soft);
  color: var(--text-soft);
}

.sync-fee-disclaimer {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem;
  min-width: 0;
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: var(--radius);
  background: var(--info-soft);
  color: var(--text-soft);
}

.requirements-strip > div {
  min-width: 0;
  overflow-wrap: anywhere;
}

.sync-fee-disclaimer > div {
  min-width: 0;
  overflow-wrap: anywhere;
}

.feature-card,
.problem-card {
  padding: 1.25rem;
  height: 100%;
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 1rem;
}

.step-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary);
  color: #041112;
  font-size: 1rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.pricing-teaser {
  background-color: #0c1115;
}

.pricing-card {
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pricing-card-featured {
  border-color: rgba(45, 212, 191, 0.48) !important;
  background:
    linear-gradient(180deg, rgba(45, 212, 191, 0.1), rgba(255, 255, 255, 0.02)),
    var(--surface);
  box-shadow: 0 20px 60px rgba(45, 212, 191, 0.08);
}

.pricing-card-lifetime {
  border-color: rgba(245, 158, 11, 0.52) !important;
  background:
    linear-gradient(180deg, rgba(245, 158, 11, 0.13), rgba(255, 255, 255, 0.02)),
    var(--surface);
  box-shadow: 0 20px 60px rgba(245, 158, 11, 0.08);
}

.price-value {
  color: #fff;
  font-size: 2.65rem;
  font-weight: 900;
  line-height: 1;
}

.pricing-card-actions {
  margin-top: auto;
}

.pricing-card-actions .btn {
  width: 100%;
}

.founders-offer-strip {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(245, 158, 11, 0.42);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.13), rgba(45, 212, 191, 0.06)),
    var(--surface);
}

.founders-offer-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.founders-deadline {
  display: grid;
  gap: 0.55rem;
  padding: 0.85rem;
  border: 1px solid rgba(245, 158, 11, 0.34);
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: #fde68a;
  font-size: 0.9rem;
  font-weight: 750;
}

.founders-deadline span {
  display: inline-flex;
  align-items: center;
}

.savings-panel {
  padding: 1.25rem;
  min-width: 0;
  border: 1px solid rgba(45, 212, 191, 0.38);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(45, 212, 191, 0.12), rgba(245, 158, 11, 0.08)),
    var(--surface);
}

.savings-panel > .row {
  margin-left: 0;
  margin-right: 0;
}

.savings-panel > .row > * {
  padding-left: 0;
  padding-right: 0;
}

@media (min-width: 992px) {
  .savings-panel > .row > .col-lg-4 {
    padding-right: 1rem;
  }
}

.savings-number {
  color: #fff;
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
}

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

.savings-step {
  padding: 1rem;
  min-width: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}

.savings-step span {
  display: block;
  color: var(--text-muted-custom);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.savings-step strong {
  display: block;
  margin-top: 0.35rem;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.savings-step.highlight {
  border-color: rgba(45, 212, 191, 0.38);
  background: var(--primary-soft);
}

.savings-calculator {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: rgba(8, 11, 13, 0.34);
}

.savings-calculator-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.savings-result-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.savings-result {
  min-width: 0;
  padding: 0.9rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.032);
}

.savings-result span {
  display: block;
  color: var(--text-muted-custom);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.savings-result strong {
  display: block;
  margin-top: 0.34rem;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.savings-result.highlight {
  border-color: rgba(45, 212, 191, 0.42);
  background: var(--primary-soft);
}

.savings-calculator-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.savings-calculator-note {
  max-width: 760px;
  color: var(--text-muted-custom);
  font-size: 0.92rem;
}

.cta-band {
  background:
    linear-gradient(135deg, rgba(45, 212, 191, 0.95), rgba(96, 165, 250, 0.95));
  color: #061113;
}

.cta-band .text-muted,
.cta-band p {
  color: rgba(6, 17, 19, 0.74) !important;
}

.cta-band .btn-light {
  color: #061113;
}

/* ---- ACCORDION ---- */
.accordion-item {
  border-color: var(--border-subtle) !important;
  background: var(--surface) !important;
}

.accordion-button {
  background: var(--surface) !important;
  color: #fff !important;
  font-weight: 750;
}

.accordion-button:not(.collapsed) {
  background-color: var(--surface-soft) !important;
  color: #fff;
  box-shadow: none;
}

.accordion-button::after {
  filter: invert(1);
}

.accordion-body {
  color: var(--text-muted-custom);
}

/* ---- CODE / MONO ---- */
code {
  color: #99f6e4;
  background: rgba(45, 212, 191, 0.1);
  padding: 0.1em 0.32em;
  border-radius: 4px;
  font-size: 0.86em;
}

.font-monospace {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace !important;
}

.letter-spacing {
  letter-spacing: 0 !important;
}

/* ---- SPINNER ANIMATION ---- */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.spin {
  display: inline-block;
  animation: spin 1s linear infinite;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #0b1013;
}

::-webkit-scrollbar-thumb {
  background: #25313c;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: #334453;
}

/* ---- FOOTER ---- */
.footer-dark {
  background-color: #080b0d;
  border-top: 1px solid var(--border-subtle);
}

.footer-dark a {
  color: var(--text-muted-custom);
}

.footer-dark a:hover {
  color: #fff;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 991.98px) {
  .app-navbar {
    min-height: 62px;
  }

  .page-header > div,
  .savings-panel,
  .savings-grid {
    width: 100%;
    max-width: 640px;
  }

  .app-nav {
    align-items: stretch;
    padding-top: 1rem;
  }

  .page-header,
  .command-bar,
  .founders-offer-strip,
  .save-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-overview,
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .metric-grid,
  .overview-grid,
  .feature-grid,
  .integration-grid,
  .savings-grid,
  .savings-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-section {
    min-height: auto;
    background-position: 62% center;
  }

  .hero-content {
    padding: 4rem 0 3rem;
  }

  .hero-title {
    font-size: 2.65rem;
  }
}

@media (max-width: 575.98px) {
  main.container-fluid {
    max-width: 100vw;
    overflow-x: hidden;
    padding-left: 12px;
    padding-right: 12px;
  }

  .page-shell {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    overflow-x: hidden;
  }

  .brand-subtitle {
    display: none;
  }

  .page-title {
    font-size: 1.45rem;
    line-height: 1.22;
  }

  .section-heading {
    font-size: 1.75rem;
  }

  .hero-title {
    font-size: 2.15rem;
  }

  .hero-content {
    width: 100%;
    max-width: 340px;
  }

  .hero-lead {
    font-size: 1rem;
    max-width: 100%;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
    width: 100%;
  }

  .hero-meta {
    flex-direction: column;
    gap: 0.7rem;
  }

  .hero-meta span {
    width: 100%;
  }

  .platform-flow {
    flex-direction: column;
    align-items: stretch;
  }

  .platform-flow > .bi-arrow-left-right {
    display: none;
  }

  .platform-chip {
    width: 100%;
    justify-content: center;
  }

  .metric-grid,
  .overview-grid,
  .feature-grid,
  .integration-grid,
  .savings-grid,
  .savings-calculator-grid,
  .savings-result-grid {
    grid-template-columns: 1fr;
  }

  .savings-number {
    font-size: 2rem;
  }

  .savings-step strong {
    font-size: 1.18rem;
  }

  .requirements-strip,
  .sync-fee-disclaimer {
    align-items: flex-start;
  }

  .savings-calculator-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .savings-calculator-actions .btn {
    width: 100%;
  }

  .founders-offer-strip .btn {
    width: 100%;
  }

  .auth-panel {
    padding: 1.25rem;
  }

  .auth-card,
  .pricing-card,
  .feature-card,
  .problem-card,
  .action-card,
  .connection-card,
  .overview-panel {
    padding: 1rem;
  }
}
