/* FinDomConnect dual theme: Gilded Ledger + Modern Ritual */

html.theme-gilded,
html.theme-ritual {
  background: var(--background);
  color: var(--foreground);
}

html.theme-gilded body,
html.theme-ritual body {
  font-family: var(--sans);
  background: var(--background);
  color: var(--foreground);
}

html.theme-gilded h1,
html.theme-gilded h2,
html.theme-gilded h3,
html.theme-ritual h1,
html.theme-ritual h2,
html.theme-ritual h3,
.fdc-display {
  font-family: var(--serif);
  font-weight: 500 !important;
  letter-spacing: -0.035em;
}

.fdc-eyebrow {
  font: 700 11px/1.2 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.fdc-button-primary,
html.theme-gilded .btn-primary,
html.theme-ritual .btn-primary {
  background: var(--accent);
  color: var(--accent-foreground);
  border-color: var(--accent);
  border-radius: var(--radius-control);
}

html.theme-gilded .btn-primary:hover,
html.theme-ritual .btn-primary:hover,
html.theme-gilded .btn-primary:focus,
html.theme-ritual .btn-primary:focus {
  background: var(--oxblood, #5b1824);
  border-color: var(--oxblood, #5b1824);
  color: #fff;
}

html.theme-ritual .btn-primary:hover,
html.theme-ritual .btn-primary:focus {
  background: #1c5751;
  border-color: #1c5751;
}

.fdc-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: color-mix(in srgb, var(--background) 92%, white);
  box-shadow: var(--shadow-elevated);
}

.fdc-status {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  border-radius: var(--radius-control);
  padding: 0.4rem 0.7rem;
  font: 700 12px/1.3 var(--sans);
}

.fdc-status--trusted {
  color: #135d50;
  background: #daf0e9;
}

.fdc-status--sandbox {
  color: #763e0a;
  background: #fde3be;
}

.fdc-status--restricted {
  color: #941d36;
  background: #f9dce3;
}

html.theme-gilded a:focus-visible,
html.theme-ritual a:focus-visible,
html.theme-gilded button:focus-visible,
html.theme-ritual button:focus-visible,
html.theme-gilded input:focus-visible,
html.theme-ritual input:focus-visible,
html.theme-gilded .btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ----- Gilded guest chrome ----- */
html.theme-gilded header .navbar {
  background: var(--paper) !important;
  border-bottom: 1px solid var(--line);
  box-shadow: none !important;
  min-height: 84px;
}

html.theme-gilded header .navbar.scroll {
  background: transparent !important;
}

html.theme-gilded header .navbar.scroll.navbar-over {
  background: var(--paper) !important;
}

html.theme-gilded .navbar-brand,
html.theme-gilded .fdc-brand-wordmark {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink) !important;
  font-size: 18px;
}

html.theme-gilded .navbar .nav-link {
  color: var(--ink) !important;
  font-size: 14px;
}

html.theme-gilded .navbar .login-btn {
  border: 1px solid var(--ink);
  padding: 9px 15px;
  border-radius: 999px;
}

html.theme-gilded .footer_background_color,
html.theme-gilded footer.footer_background_color,
html.theme-gilded .py-5.footer_background_color {
  background: var(--ink) !important;
  color: #ded2c0 !important;
  border-top: 0 !important;
}

html.theme-gilded .footer_text_color,
html.theme-gilded .footer_text_color a,
html.theme-gilded .copyright {
  color: #ded2c0 !important;
}

html.theme-gilded .fdc-footer-consent {
  font-size: 12px;
  color: #ded2c0;
}

/* ----- Homepage (Gilded Ledger prototype) ----- */
.fdc-home {
  max-width: 1440px;
  margin: 0 auto;
  background: var(--paper);
  color: var(--ink);
}

.fdc-home a {
  text-decoration: none;
  color: inherit;
}

.fdc-hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  overflow: hidden;
  background: #f8f1e3;
}

.fdc-hero-copy {
  padding: 92px 8vw 80px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.fdc-hero h1 {
  font-size: clamp(58px, 7vw, 102px);
  line-height: 0.9;
  max-width: 720px;
  margin: 21px 0 27px;
}

.fdc-hero .fdc-lead {
  font-size: 18px;
  max-width: 550px;
  color: #4e443e;
  line-height: 1.6;
}

.fdc-actions {
  display: flex;
  gap: 13px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 25px;
}

.fdc-btn {
  display: inline-block;
  border-radius: 999px;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
}

.fdc-btn-primary {
  background: var(--wine);
  color: #fff !important;
}

.fdc-btn-secondary {
  border: 1px solid var(--ink);
  color: var(--ink) !important;
  background: transparent;
}

.fdc-promise {
  font-size: 12px;
  line-height: 1.45;
  max-width: 460px;
  color: var(--muted);
  margin-top: 27px;
}

.fdc-hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: min(100%, 520px);
  margin-top: 28px;
}

.fdc-split-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px 18px;
  border-radius: 18px;
  min-height: 92px;
  justify-content: center;
}

.fdc-split-link--worship {
  background: var(--ink);
  color: #fff7e8 !important;
  border: 1px solid var(--ink);
}

.fdc-split-link--goddess {
  background: transparent;
  color: var(--ink) !important;
  border: 1px solid var(--ink);
  box-shadow: inset 0 0 0 1px rgba(196, 155, 88, .35);
}

.fdc-split-kicker {
  font: 800 10px/1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.72;
}

.fdc-split-title {
  font: 500 20px/1.1 var(--serif);
  letter-spacing: -0.03em;
}

.fdc-paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fdc-path {
  position: relative;
  padding: 72px 8vw 80px;
  min-height: 420px;
  overflow: hidden;
  scroll-margin-top: 96px;
}

.fdc-path--worship {
  background: #fffaf1;
}

.fdc-path--goddess {
  background: linear-gradient(165deg, #e7d5b6 0%, #f8f1e3 55%, #fffaf1 100%);
}

.fdc-path-mark {
  position: absolute;
  right: 6%;
  top: 18px;
  font: 500 140px/1 var(--serif);
  color: rgba(128, 29, 51, 0.08);
  pointer-events: none;
  letter-spacing: -0.06em;
}

.fdc-path h2 {
  font-size: clamp(34px, 3.6vw, 48px);
  line-height: 0.96;
  margin: 12px 0 16px;
  max-width: 16ch;
}

.fdc-path > p {
  max-width: 42ch;
  font-size: 16px;
  line-height: 1.55;
  color: #4e443e;
}

.fdc-path-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  max-width: 42ch;
}

.fdc-path-list li {
  position: relative;
  padding: 10px 0 10px 22px;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.fdc-path-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.fdc-path .fdc-actions {
  margin-top: 28px;
}

.fdc-btn-ghost {
  border: 1px solid rgba(255, 247, 232, 0.45);
  color: #fff7e8 !important;
  background: transparent;
}

.fdc-hero-art {
  position: relative;
  min-height: 500px;
  background: linear-gradient(120deg, #553929 0%, #b99863 43%, #4d3020 100%);
  overflow: hidden;
}

.fdc-hero-art::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(91deg, rgba(28, 15, 10, .35) 0 3px, rgba(253, 223, 163, .12) 5px 31px, rgba(45, 22, 13, .26) 35px 50px);
  mix-blend-mode: multiply;
}

.fdc-portrait {
  position: absolute;
  inset: 9% 12% 0;
  background: var(--fdc-hero-portrait) center 14% / cover no-repeat;
  filter: saturate(0.76) contrast(1.05);
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
}

.fdc-art-label {
  position: absolute;
  right: 7%;
  bottom: 8%;
  background: rgba(22, 17, 15, .84);
  color: #fff7e8;
  padding: 14px 16px;
  font: 11px/1.45 var(--sans);
  max-width: 180px;
  z-index: 1;
}

.fdc-art-label b {
  display: block;
  font: 500 23px var(--serif);
  margin-bottom: 3px;
}

.fdc-intro {
  padding: 120px 8vw 95px;
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 7vw;
  background: var(--paper);
}

.fdc-intro h2 {
  font-size: clamp(38px, 4.2vw, 60px);
  line-height: 0.96;
  margin: 0 0 12px;
}

.fdc-intro p {
  font: 18px/1.55 var(--sans);
  max-width: 650px;
  margin: 5px 0;
}

.fdc-steps {
  padding: 0 8vw 120px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.fdc-step {
  background: var(--paper);
  padding: 38px 34px 42px;
  min-height: 260px;
}

.fdc-step .n {
  font: 800 12px var(--sans);
  color: var(--wine);
}

.fdc-step h3 {
  font-size: 34px;
  line-height: 1;
  margin: 38px 0 15px;
}

.fdc-step p {
  font-size: 14px;
  color: var(--muted);
  max-width: 280px;
}

.fdc-feature {
  background: var(--espresso);
  color: #fff7eb;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}

.fdc-feature-copy {
  padding: 85px 8vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fdc-feature .fdc-eyebrow {
  color: #e3bf7e;
}

.fdc-feature h2 {
  font-size: clamp(38px, 4.2vw, 60px);
  line-height: 0.96;
  margin: 12px 0 18px;
}

.fdc-feature p {
  color: #d5c8bb;
  max-width: 490px;
  font-size: 17px;
}

.fdc-feature-card {
  align-self: center;
  margin: 50px 8vw 50px 0;
  padding: 28px;
  background: #34241c;
  border: 1px solid rgba(238, 202, 135, .38);
  max-width: 430px;
  width: calc(100% - 8vw);
}

.fdc-feature-card .profile-top {
  display: flex;
  gap: 14px;
  align-items: center;
}

.fdc-feature-card .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #211813;
}

.fdc-feature-card .creator {
  font-weight: 800;
}

.fdc-feature-card .tag {
  font-size: 12px;
  color: #d9c3b0;
  margin-top: 3px;
}

.fdc-feature-card .status {
  margin: 26px 0;
  padding: 12px;
  background: #f6e7c5;
  color: #583c0d;
  font-size: 13px;
}

.fdc-feature-card p {
  font-size: 13px;
  margin: 7px 0;
  color: #d5c8bb;
}

.fdc-creator-cta {
  padding: 115px 8vw;
  background: linear-gradient(105deg, #e7d5b6, #f8f1e3);
}

.fdc-creator-cta h2 {
  font-size: clamp(38px, 4.2vw, 60px);
  line-height: 0.96;
  margin: 12px 0 18px;
}

.fdc-creator-cta p {
  max-width: 570px;
  font-size: 18px;
}

.fdc-home-creators {
  padding: 90px 8vw;
  background: var(--paper);
}

.fdc-home-creators h2 {
  font-size: clamp(32px, 3.5vw, 48px);
  margin-bottom: 12px;
}

.fdc-home-creators-lead {
  max-width: 540px;
  color: var(--muted);
  margin: 0 0 28px;
  font-size: 16px;
}

.fdc-final {
  padding: 100px 8vw;
  background: var(--espresso);
  color: #fff7eb;
}

.fdc-final .fdc-eyebrow {
  color: #e3bf7e;
}

.fdc-final h2 {
  font-size: clamp(38px, 4.2vw, 60px);
  line-height: 0.96;
  margin: 12px 0 18px;
}

.fdc-final p {
  max-width: 560px;
  color: #d5c8bb;
  font-size: 18px;
}

.fdc-home-creators .owl-carousel {
  margin-bottom: 24px;
}

@media (max-width: 760px) {
  html.theme-gilded header .navbar {
    min-height: 68px;
  }

  .fdc-hero,
  .fdc-feature,
  .fdc-paths,
  .fdc-hero-split {
    grid-template-columns: 1fr;
  }

  .fdc-hero-copy {
    padding: 70px 26px 44px;
  }

  .fdc-hero h1 {
    font-size: clamp(42px, 12vw, 64px);
  }

  .fdc-hero-art {
    min-height: 460px;
  }

  .fdc-portrait {
    inset: 5% 8% 0;
  }

  .fdc-intro {
    padding: 75px 26px 65px;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .fdc-steps {
    grid-template-columns: 1fr;
    padding: 0 26px 70px;
  }

  .fdc-step {
    padding: 29px 24px;
    min-height: 0;
  }

  .fdc-step h3 {
    margin: 25px 0 10px;
  }

  .fdc-feature-copy {
    padding: 70px 26px 30px;
  }

  .fdc-feature-card {
    margin: 20px 26px 68px;
    width: auto;
  }

  .fdc-creator-cta,
  .fdc-home-creators,
  .fdc-final,
  .fdc-path {
    padding: 75px 26px;
  }

  .fdc-path-mark {
    font-size: 96px;
    top: 8px;
  }

  .fdc-lead {
    font-size: 16px;
  }
}

/* ----- Creator cards ----- */
html.theme-gilded .fdc-creator-card,
html.theme-gilded .card-user-profile {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-elevated);
  overflow: hidden;
  background: color-mix(in srgb, var(--paper) 92%, white);
}

html.theme-gilded .fdc-creator-card .btn-outline-primary,
html.theme-gilded .card-user-profile .btn-outline-primary {
  border-radius: var(--radius-control);
  border-color: var(--wine);
  color: var(--wine);
}

html.theme-gilded .fdc-creator-card .btn-outline-primary.active,
html.theme-gilded .card-user-profile .btn-outline-primary.active {
  background: var(--wine);
  color: #fff;
}

/* ----- Profile CTAs ----- */
html.theme-gilded .btn-profile {
  border-radius: var(--radius-control);
}

html.theme-gilded .fdc-profile-helper {
  font-size: 12px;
  color: var(--muted);
  max-width: 420px;
  margin: 8px auto 0;
}

html.theme-gilded .fdc-trusted-block {
  margin: 12px auto 0;
  max-width: 460px;
}

/* ----- Ritual: auth, wallet, settings, modals, messages ----- */
html.theme-ritual .fdc-auth-shell,
html.theme-ritual .jumbotron.home.bg-gradient {
  background: var(--background) !important;
  background-image: none !important;
  min-height: 70vh;
}

html.theme-ritual .fdc-auth-shell .card,
html.theme-ritual .modal-login .card-body,
html.theme-ritual #loginFormModal .modal-content {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fffdf8;
  box-shadow: var(--shadow-elevated);
}

html.theme-ritual .fdc-auth-shell h4,
html.theme-ritual #loginFormModal .modal-title {
  font-family: var(--serif);
  font-weight: 500 !important;
}

html.theme-ritual .fdc-wallet-balance {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  color: var(--foreground);
  box-shadow: var(--shadow-elevated);
}

html.theme-ritual .fdc-wallet-balance h2 {
  font-family: var(--serif);
  color: var(--foreground);
}

html.theme-ritual .card-settings {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: none;
}

html.theme-ritual .card-settings .list-group-item.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

html.theme-ritual .fdc-ritual-modal .card-header {
  background: #f6f4ef !important;
  background-image: none !important;
  border-bottom: 1px solid var(--line);
  height: auto !important;
  min-height: 24px;
}

html.theme-ritual .modal-content {
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
}

html.theme-ritual .alert-primary {
  background: #e7f3f1;
  border-color: rgba(35, 106, 98, .2);
  color: #172127;
}

html[data-bs-theme="dark"].theme-ritual body,
html[data-bs-theme="dark"].theme-ritual {
  --background: #211813;
  --foreground: #f7efe4;
  --muted: #bda9ad;
  --line: rgba(196, 155, 88, .22);
  background: #211813;
  color: #f7efe4;
}

html[data-bs-theme="dark"].theme-ritual .fdc-wallet-balance,
html[data-bs-theme="dark"].theme-ritual .card-settings,
html[data-bs-theme="dark"].theme-ritual .modal-content {
  background: #2a1f19;
  color: #f7efe4;
}
