/*
Theme Name: Cinder
Theme URI: https://cinder.local
Author: Cinder
Description: Verified dating contacts theme.
Version: 0.2.3
Text Domain: cinder
*/

:root {
  --bg: #f6f2ed;
  --surface: #fffaf4;
  --surface-strong: #ffffff;
  --surface-soft: #f0ebe5;
  --ink: #171513;
  --muted: #716a62;
  --line: rgba(23, 21, 19, 0.12);
  --brand: #e34d5a;
  --brand-dark: #b72d3c;
  --teal: #127f78;
  --gold: #d1a13a;
  --silver: #aeb6bf;
  --shadow: 0 18px 45px rgba(42, 32, 24, 0.12);
  --shadow-soft: 0 10px 28px rgba(42, 32, 24, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 12% 0%, rgba(227, 77, 90, 0.12), transparent 26rem),
    linear-gradient(180deg, #fbf6ef 0, var(--bg) 34rem);
}

body.admin-bar .cinder-header {
  top: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

.cinder-shell {
  min-height: 100vh;
}

.cinder-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(14px, 3vw, 32px);
  padding: 12px clamp(16px, 4vw, 42px);
  border-bottom: 1px solid rgba(23, 21, 19, 0.08);
  background: rgba(255, 250, 244, 0.88);
  box-shadow: 0 8px 24px rgba(42, 32, 24, 0.06);
  backdrop-filter: blur(18px);
}

.cinder-logo {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
}

.cinder-logo-full {
  display: block;
  width: auto;
  height: 44px;
  max-width: min(210px, 48vw);
  object-fit: contain;
}

.cinder-logo-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), transparent 45%),
    linear-gradient(135deg, var(--brand), #f29347);
  box-shadow: 0 9px 22px rgba(227, 77, 90, 0.28);
}

.cinder-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  box-shadow: 0 9px 22px rgba(227, 77, 90, 0.24);
}

.cinder-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.cinder-nav::-webkit-scrollbar {
  display: none;
}

.cinder-nav a,
.cinder-lang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  white-space: nowrap;
  padding: 8px 11px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
}

.cinder-nav a:hover,
.cinder-lang a:hover {
  color: var(--ink);
  background: rgba(23, 21, 19, 0.06);
}

.cinder-lang {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  padding-left: 4px;
  border-left: 1px solid var(--line);
}

.cinder-main {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(18px, 3vw, 34px) 0 58px;
}

.single-cinder_profile .cinder-main {
  width: min(1160px, calc(100% - 32px));
  padding-top: 20px;
}

.single-cinder_profile .cinder-notice {
  margin-bottom: 14px;
}

.cinder-notice {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(18, 127, 120, 0.24);
  border-radius: var(--radius);
  background: #e9f5f2;
  color: #104b47;
  font-weight: 760;
  box-shadow: var(--shadow-soft);
}

.cinder-feed-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: clamp(18px, 4vw, 40px);
  align-items: end;
  margin-bottom: 22px;
}

.cinder-title {
  min-width: 0;
}

.cinder-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 12px;
  padding: 6px 9px;
  border: 1px solid rgba(227, 77, 90, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 250, 244, 0.72);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.cinder-title h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(34px, 6vw, 68px);
  line-height: 0.98;
  letter-spacing: 0;
}

.cinder-title p {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.55;
}

.cinder-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.cinder-trust-row span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
  color: #453f39;
  font-size: 13px;
  font-weight: 780;
}

.cinder-filters {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  padding: 10px;
  border: 4px solid rgba(23, 21, 19, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 250, 244, 0.78);
  box-shadow: var(--shadow-soft);
}

.cinder-filters select,
.cinder-inline-form select,
.cinder-inline-form input,
.cinder-form-grid input,
.cinder-form-grid select,
.cinder-upload-form input,
.cinder-card-form input,
.cinder-card-form select,
.cinder-card-form textarea,
.cinder-report textarea,
.cinder-report input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 9px 11px;
  outline: none;
}

.cinder-filters select:focus,
.cinder-inline-form select:focus,
.cinder-inline-form input:focus,
.cinder-form-grid input:focus,
.cinder-form-grid select:focus,
.cinder-upload-form input:focus,
.cinder-card-form input:focus,
.cinder-card-form select:focus,
.cinder-card-form textarea:focus,
.cinder-report textarea:focus,
.cinder-report input:focus {
  border-color: rgba(227, 77, 90, 0.42);
  box-shadow: 0 0 0 3px rgba(227, 77, 90, 0.11);
}

.cinder-button,
.cinder-icon-button,
.cinder-filters button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 9px 14px;
  font-weight: 850;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.cinder-button:hover,
.cinder-icon-button:hover,
.cinder-filters button:hover {
  transform: translateY(-1px);
  border-color: rgba(227, 77, 90, 0.35);
  box-shadow: 0 8px 18px rgba(42, 32, 24, 0.08);
}

.cinder-button-primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), #f07464);
  color: #fff;
  box-shadow: 0 12px 28px rgba(227, 77, 90, 0.24);
}

.cinder-button-primary:hover {
  border-color: transparent;
  box-shadow: 0 14px 32px rgba(227, 77, 90, 0.3);
}

.cinder-feed {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.cinder-profile-card {
  position: relative;
  overflow: hidden;
  min-height: 0;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(23, 21, 19, 0.1);
  border-radius: var(--radius);
  background: #ddd;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.cinder-profile-card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 34%;
}

.cinder-profile-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), transparent 38%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.18) 55%, transparent 72%);
}

.cinder-profile-card::after {
  content: "";
  position: absolute;
  inset: 7px;
  z-index: 1;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-radius: calc(var(--radius) - 3px);
  pointer-events: none;
}

.cinder-profile-card.plan-select {
  border-width: 5px;
  border-color: rgba(177, 185, 196, 0.98);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.82), 0 0 0 9px rgba(177, 185, 196, 0.32), var(--shadow);
}

.cinder-profile-card.plan-luxury {
  border-width: 6px;
  border-color: rgba(209, 161, 58, 1);
  box-shadow: 0 0 0 4px rgba(255, 248, 224, 0.92), 0 0 0 11px rgba(209, 161, 58, 0.34), var(--shadow);
}

.cinder-profile-card.plan-select::after,
.cinder-profile-card.plan-luxury::after {
  border-width: 3px;
  border-left-color: transparent;
  border-bottom-color: transparent;
}

.cinder-card-badges,
.cinder-card-content {
  position: absolute;
  z-index: 2;
  left: 14px;
  right: 14px;
}

.cinder-card-badges {
  top: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.cinder-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  color: #1c1a17;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.cinder-badge-dark {
  background: rgba(23, 21, 19, 0.78);
  color: #fff;
}

.cinder-badge-gold {
  background: rgba(209, 161, 58, 0.94);
}

.cinder-badge-silver {
  background: rgba(229, 233, 238, 0.96);
}

.cinder-card-content {
  bottom: 14px;
  color: #fff;
}

.cinder-card-content h2 {
  margin: 0 0 6px;
  font-size: clamp(21px, 2.2vw, 27px);
  line-height: 1.05;
  text-wrap: balance;
}

.cinder-card-content p {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 650;
}

.cinder-card-actions {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 8px;
}

.cinder-card-actions .cinder-button,
.cinder-card-actions .cinder-icon-button {
  width: 100%;
  min-width: 0;
}

.cinder-panel {
  margin-bottom: 18px;
  padding: clamp(16px, 3vw, 26px);
  border: 1px solid rgba(23, 21, 19, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 250, 244, 0.9);
  box-shadow: var(--shadow-soft);
}

.cinder-panel h1,
.cinder-panel h2,
.cinder-panel h3 {
  margin-top: 0;
  line-height: 1.12;
}

.cinder-panel p {
  line-height: 1.55;
}

.cinder-muted {
  color: var(--muted);
}

.cinder-profile-detail {
  display: grid;
  grid-template-columns: minmax(0, 666px) minmax(360px, 430px);
  justify-content: center;
  gap: 18px;
  align-items: start;
}

.cinder-gallery {
  display: grid;
  grid-template-columns: minmax(0, 560px);
  justify-content: end;
  gap: 10px;
  align-items: start;
}

.cinder-gallery.has-thumbnails {
  grid-template-columns: minmax(0, 560px) 96px;
}

.cinder-gallery-main,
.cinder-gallery-small {
  overflow: hidden;
  border: 4px solid rgba(23, 21, 19, 0.12);
  border-radius: var(--radius);
  background: #d8d8d8;
  box-shadow: var(--shadow-soft);
}

.cinder-profile-detail.plan-select .cinder-gallery-main,
.cinder-profile-detail.plan-select .cinder-gallery-small {
  border-color: rgba(177, 185, 196, 0.98);
  box-shadow: 0 0 0 4px rgba(177, 185, 196, 0.24), var(--shadow-soft);
}

.cinder-profile-detail.plan-luxury .cinder-gallery-main,
.cinder-profile-detail.plan-luxury .cinder-gallery-small {
  border-color: rgba(209, 161, 58, 1);
  box-shadow: 0 0 0 5px rgba(209, 161, 58, 0.28), var(--shadow-soft);
}

.cinder-gallery-main {
  aspect-ratio: 3 / 4;
  min-height: 0;
}

.cinder-gallery-side {
  display: grid;
  align-content: start;
  grid-auto-rows: max-content;
  gap: 10px;
  max-height: calc(100vh - 110px);
  overflow: auto;
  padding: 5px;
  scrollbar-width: thin;
}

.cinder-gallery-small {
  min-height: 0;
  aspect-ratio: 3 / 4;
}

.cinder-gallery-main img,
.cinder-gallery-small img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 34%;
}

.cinder-profile-aside {
  position: sticky;
  top: 82px;
}

.cinder-profile-aside h1 {
  margin-bottom: 10px;
  font-size: clamp(30px, 3vw, 42px);
  overflow-wrap: normal;
  word-break: normal;
}

.cinder-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.cinder-price-box {
  display: grid;
  gap: 12px;
  margin: 18px 0;
  padding: 14px;
  border: 1px solid rgba(18, 127, 120, 0.14);
  border-radius: var(--radius);
  background: #edf7f4;
}

.cinder-price-box .cinder-button,
.cinder-price-box form {
  width: 100%;
}

.cinder-contact-open {
  overflow-wrap: anywhere;
  padding: 13px;
  border-radius: var(--radius);
  background: #171513;
  color: #fff;
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 900;
  text-align: center;
}

.cinder-dashboard {
  display: grid;
  gap: 16px;
}

.cinder-wallet-strip,
.cinder-owner-head,
.cinder-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.cinder-wallet-strip {
  margin: 14px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.cinder-inline-form,
.cinder-action-row,
.cinder-upload-form,
.cinder-stars-form,
.cinder-toggle-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cinder-inline-form {
  min-width: min(100%, 260px);
}

.cinder-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.cinder-metric {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.cinder-metric span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.cinder-metric strong {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 6px;
  font-size: 20px;
}

.cinder-buyer-rating {
  max-width: 320px;
}

.cinder-purchase-row {
  display: grid;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.cinder-purchase-row:first-child {
  border-top: 0;
}

.cinder-stars-form select {
  min-width: 120px;
  color: #b88213;
  font-weight: 900;
}

.cinder-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.cinder-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cinder-switch span {
  position: relative;
  width: 48px;
  height: 28px;
  border: 1px solid rgba(23, 21, 19, 0.16);
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 1px 3px rgba(42, 32, 24, 0.12);
}

.cinder-switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 0.16s ease, background 0.16s ease;
}

.cinder-switch input:checked + span {
  border-color: rgba(227, 77, 90, 0.42);
  background: rgba(227, 77, 90, 0.12);
}

.cinder-switch input:checked + span::after {
  transform: translateX(20px);
  background: var(--brand);
}

.cinder-switch b {
  font-size: 13px;
}

.cinder-dashboard-columns,
.cinder-auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.cinder-card-form,
.cinder-list-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.cinder-card-form h2 {
  margin-bottom: 8px;
}

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

.cinder-form-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 760;
}

.cinder-form-grid button {
  align-self: end;
}

.cinder-history {
  margin-top: 16px;
}

.cinder-ledger-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.cinder-ledger-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.cinder-ledger-row strong,
.cinder-ledger-row span {
  display: block;
}

.cinder-ledger-row span {
  overflow-wrap: anywhere;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.cinder-ledger-amount {
  min-width: 118px;
  text-align: right;
}

.cinder-ledger-amount.is-credit strong {
  color: #127f78;
}

.cinder-ledger-amount.is-debit strong {
  color: #b44b57;
}

.cinder-report {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.cinder-report textarea {
  min-height: 96px;
  resize: vertical;
}

.is-balance-hidden .js-balance-value {
  filter: blur(8px);
}

.cinder-footer {
  padding: 28px clamp(16px, 4vw, 40px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: rgba(255, 250, 244, 0.48);
}

@media (max-width: 1120px) {
  .cinder-feed {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cinder-feed-top {
    grid-template-columns: 1fr;
  }

  .cinder-filters {
    width: min(100%, 620px);
  }

  .cinder-profile-detail {
    grid-template-columns: 1fr;
  }

  .cinder-gallery {
    justify-content: center;
  }

  .cinder-profile-aside {
    position: static;
  }
}

@media (max-width: 820px) {
  .cinder-header {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 10px;
  }

  .cinder-nav {
    justify-content: flex-start;
    margin-inline: -4px;
    padding-bottom: 2px;
  }

  .cinder-main {
    width: min(100% - 24px, 1240px);
    padding-top: 18px;
  }

  .single-cinder_profile .cinder-main {
    width: min(100% - 24px, 1160px);
    padding-top: 14px;
  }

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

  .cinder-gallery {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .cinder-gallery.has-thumbnails {
    grid-template-columns: 1fr;
  }

  .cinder-gallery-main {
    aspect-ratio: 3 / 4;
    min-height: 0;
  }

  .cinder-gallery-side {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cinder-dashboard-grid,
  .cinder-dashboard-columns,
  .cinder-auth-grid,
  .cinder-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .cinder-header {
    padding-inline: 14px;
    gap: 8px;
  }

  .cinder-logo {
    max-width: 52vw;
  }

  .cinder-logo-full {
    height: 38px;
    max-width: 100%;
  }

  .cinder-nav a,
  .cinder-lang a {
    min-height: 34px;
    padding-inline: 9px;
    font-size: 13px;
  }

  .cinder-title h1 {
    font-size: clamp(30px, 9.4vw, 38px);
    line-height: 1.01;
  }

  .cinder-title p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 15px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .cinder-kicker {
    min-height: 26px;
    margin-bottom: 8px;
    padding: 5px 8px;
    font-size: 11px;
  }

  .cinder-feed-top {
    gap: 14px;
    margin-bottom: 14px;
  }

  .cinder-trust-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    margin-top: 12px;
    padding-bottom: 1px;
    scrollbar-width: none;
  }

  .cinder-trust-row::-webkit-scrollbar {
    display: none;
  }

  .cinder-trust-row span {
    flex: 0 0 auto;
    min-height: 30px;
    padding: 6px 8px;
    font-size: 12px;
  }

  .cinder-filters {
    grid-template-columns: 1fr 1fr;
    padding: 8px;
  }

  .cinder-filters button {
    grid-column: 1 / -1;
  }

  .cinder-feed {
    grid-template-columns: 1fr;
  }

  .cinder-profile-card {
    aspect-ratio: 3 / 4;
  }

  .cinder-card-content h2 {
    font-size: 25px;
  }

  .cinder-card-actions {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .cinder-wallet-strip,
  .cinder-owner-head,
  .cinder-list-item,
  .cinder-inline-form,
  .cinder-action-row,
  .cinder-upload-form {
    align-items: stretch;
  }

  .cinder-wallet-strip > *,
  .cinder-owner-head > *,
  .cinder-list-item > *,
  .cinder-inline-form > *,
  .cinder-action-row > *,
  .cinder-upload-form > * {
    width: 100%;
  }

  .cinder-action-row .cinder-button,
  .cinder-upload-form .cinder-button {
    width: 100%;
  }

  .cinder-ledger-row {
    grid-template-columns: 1fr;
  }

  .cinder-ledger-amount {
    min-width: 0;
    text-align: left;
  }
}
