@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --bg: #0b1017;
  --surface: #121a26;
  --surface-2: #192538;
  --line: rgba(170, 191, 220, 0.22);
  --text: #ebf2ff;
  --muted: #9eb1cc;
  --brand: #38c7d8;
  --brand-2: #ffbc70;
  --success: #49cf9b;
  --danger: #ff6d79;
  --container: min(1180px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  background: radial-gradient(1200px 700px at 5% -10%, #18324f 0%, transparent 55%),
    radial-gradient(1000px 600px at 98% 2%, #3e2446 0%, transparent 50%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.35;
}

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

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

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(11, 16, 23, 0.82);
  backdrop-filter: blur(14px);
}

.site-header.is-scrolled {
  background: rgba(11, 16, 23, 0.95);
}

.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand img {
  width: auto;
  height: 34px;
  max-width: 180px;
  object-fit: contain;
}

.brand span {
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-link {
  white-space: nowrap;
}

.auth-guest {
  display: inline-flex;
}

.auth-user {
  position: relative;
}

.auth-guest[hidden],
.auth-user[hidden] {
  display: none !important;
}

.profile-trigger {
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.profile-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand), #4f83ff);
  color: #05151c;
  font-size: 12px;
  font-weight: 800;
}

.profile-name {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-caret {
  color: var(--muted);
  font-size: 12px;
}

.profile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 210px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(13, 21, 33, 0.98);
  display: none;
  overflow: hidden;
  box-shadow: 0 20px 34px rgba(0, 0, 0, 0.38);
  z-index: 50;
}

.auth-user.open .profile-menu {
  display: block;
}

.profile-menu a,
.profile-menu button {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: var(--text);
  display: block;
  padding: 10px 12px;
  text-align: left;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.profile-menu a:last-child,
.profile-menu button:last-child {
  border-bottom: 0;
}

.profile-menu a:hover,
.profile-menu button:hover {
  background: rgba(255, 255, 255, 0.07);
}

.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 76px;
  right: 14px;
  left: 14px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(12, 18, 28, 0.98);
  z-index: 39;
}

.mobile-nav.open {
  display: grid;
  gap: 8px;
}

.mobile-auth {
  display: grid;
  gap: 8px;
}

.mobile-auth .btn {
  width: 100%;
}

.mobile-auth a,
.mobile-auth button {
  width: 100%;
}

.mobile-auth button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: 10px;
  height: 40px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.auth-modal[hidden] {
  display: none;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 12, 0.68);
}

.auth-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100vw - 24px));
  margin: 12vh auto 0;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(24, 36, 54, 0.98), rgba(14, 21, 34, 0.98));
}

.auth-modal-dialog h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
}

.auth-modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
}

.auth-provider-list {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.site-main {
  padding-bottom: 46px;
}

.page-banner {
  margin: 14px auto 8px;
  padding: 0;
  min-height: auto;
  border: 0;
  border-radius: 0;
  background: none;
  overflow: visible;
}

.page-banner::after {
  display: none;
}

.page-banner.compact {
  padding: 0;
}

.page-banner > .breadcrumb {
  margin: 0;
}

.page-banner-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.page-banner-head .breadcrumb {
  margin: 0;
}

.banner-back {
  white-space: nowrap;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-weight: 700;
}

.breadcrumb a {
  color: #f4f9ff;
}

.breadcrumb span {
  color: var(--muted);
}

.breadcrumb [aria-current="page"] {
  color: var(--brand-2);
}

.page-title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
}

.page-title span {
  color: var(--brand);
}

.page-banner p {
  margin: 14px 0 0;
  color: var(--muted);
  max-width: 640px;
}

.hero-cta {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.section {
  margin-top: 22px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.section-sub {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section-title {
  margin: 4px 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.1;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: linear-gradient(180deg, rgba(26, 39, 58, 0.95), rgba(14, 22, 35, 0.96));
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 199, 216, 0.45);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.25);
}

.card-media {
  display: block;
  aspect-ratio: 4/3;
  background: #111a27;
  overflow: hidden;
}

.card-media.tall {
  aspect-ratio: 4/5;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 12px;
}

.card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.card-title a:hover {
  color: var(--brand);
}

.card-text {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.card-meta {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.price {
  color: var(--brand-2);
  font-weight: 800;
  font-size: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(120deg, var(--brand), #5cc8ff);
  color: #082029;
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-outline {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-danger {
  border-color: rgba(255, 109, 121, 0.45);
  background: rgba(255, 109, 121, 0.12);
  color: #ffd2d7;
}

.input,
textarea.input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  height: 42px;
  padding: 0 12px;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

textarea.input {
  min-height: 100px;
  padding: 10px 12px;
  resize: vertical;
}

.input::placeholder {
  color: #7f93af;
}

.search-wrap {
  width: min(320px, 100%);
}

.shop-category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shop-category-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: 0.2s ease;
}

.shop-category-chip:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--text);
}

.shop-category-chip.active {
  border-color: rgba(56, 199, 216, 0.75);
  background: rgba(56, 199, 216, 0.2);
  color: #d8f8ff;
}

.panel {
  background: linear-gradient(180deg, rgba(25, 37, 55, 0.95), rgba(14, 21, 34, 0.95));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

.panel h3,
.panel h4 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
}

.panel p {
  margin: 10px 0 0;
  color: var(--muted);
}

.audio-player {
  width: 100%;
  margin-top: 12px;
}

.row-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}

.detail-main {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 18px;
}

.detail-cover {
  border-radius: 16px;
  border: 1px solid var(--line);
  overflow: hidden;
  min-height: 300px;
}

.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

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

.small {
  font-size: 13px;
}

.state {
  margin-top: 10px;
  color: var(--muted);
}

.shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.product-detail-wrap {
  display: grid;
  gap: 16px;
}

.product-detail-banner-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.product-detail-banner-head .breadcrumb {
  margin: 0;
}

.product-detail-back-btn {
  min-width: 108px;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 420px);
  gap: 16px;
  align-items: start;
}

.product-gallery-shell {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
}

.product-thumbs {
  display: grid;
  gap: 10px;
  align-content: start;
  max-height: 520px;
  overflow: auto;
  padding-right: 2px;
}

.product-thumb {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.product-thumb.active,
.product-thumb:hover {
  border-color: rgba(92, 200, 255, 0.7);
}

.product-thumb img {
  width: 100%;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
}

.product-hero {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.product-hero img {
  width: 100%;
  max-height: 440px;
  object-fit: contain;
}

.product-buy-panel {
  display: grid;
  gap: 12px;
}

.product-title {
  margin: 0;
  font-size: clamp(24px, 3.3vw, 34px);
}

.product-meta-list {
  display: grid;
  gap: 8px;
}

.product-meta-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
}

.product-meta-list span {
  color: var(--muted);
}

.product-qty-block .small {
  margin: 0 0 6px;
}

.product-qty-control {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.03);
}

.product-qty-control button {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.product-qty-control span {
  min-width: 20px;
  text-align: center;
  font-weight: 700;
}

.product-price-box {
  display: grid;
  gap: 2px;
}

.product-price-box strong {
  font-size: 30px;
  color: var(--brand-2);
  line-height: 1.1;
}

.product-action-row {
  margin-top: 2px;
}

.product-description-panel {
  display: grid;
  gap: 12px;
}

.tab-head {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tab-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 12px;
  cursor: pointer;
}

.tab-btn.active {
  border-color: rgba(92, 200, 255, 0.7);
  background: rgba(56, 199, 216, 0.18);
}

.tab-panel .card-text {
  margin: 0;
  line-height: 1.75;
  white-space: pre-wrap;
}

.product-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.product-spec-grid div {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
}

.product-spec-grid span {
  color: var(--muted);
  font-size: 12px;
  display: block;
}

.product-spec-grid b {
  margin-top: 5px;
  display: block;
  font-size: 15px;
}

.cart-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.cart-page-items {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.cart-page-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.cart-page-item img {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
}

.cart-page-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.cart-page-qty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cart-page-qty button {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
}

.cart-page-line-total {
  font-size: 13px;
  color: var(--brand-2);
  font-weight: 800;
}

.cart-page-total {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-step {
  margin-top: 14px;
}

.payment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.payment-head p {
  margin: 8px 0 0;
}

.payment-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.payment-head-actions .btn {
  height: 34px;
}

.qpay-head-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.qpay-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.qpay-badge.pending {
  background: rgba(255, 188, 112, 0.2);
  border: 1px solid rgba(255, 188, 112, 0.45);
  color: #ffd59d;
}

.qpay-badge.paid {
  background: rgba(73, 207, 155, 0.18);
  border: 1px solid rgba(73, 207, 155, 0.45);
  color: #97ffd0;
}

.qpay-badge.failed,
.qpay-badge.expired {
  background: rgba(255, 109, 121, 0.18);
  border: 1px solid rgba(255, 109, 121, 0.45);
  color: #ffc7ce;
}

.qpay-deadline {
  margin: 0;
}

.cart-detail {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.qpay-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 16px;
  align-items: start;
}

.qpay-left {
  display: grid;
  gap: 8px;
}

.qpay-qr-block {
  display: grid;
  gap: 12px;
}

.qpay-qr-frame {
  width: min(100%, 370px);
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.qpay-qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qpay-qr-empty {
  color: #334155;
  font-size: 13px;
  text-align: center;
}

.payment-banks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
}

.bank-chip {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  min-height: 94px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 10px 8px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  color: #dbe8fb;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

a.bank-chip:hover {
  border-color: rgba(92, 200, 255, 0.65);
  transform: translateY(-1px);
}

.bank-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.bank-dot {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(120deg, var(--brand), #5cc8ff);
  color: #082029;
  font-size: 11px;
  font-weight: 800;
}

.bank-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.qpay-order-box {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.qpay-order-box h4 {
  font-size: 20px;
}

.qpay-order-info {
  display: grid;
  gap: 10px;
}

.qpay-order-lines {
  display: grid;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.qpay-order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
}

.qpay-order-row span {
  color: var(--muted);
}

.qpay-order-row strong {
  color: #f5f9ff;
  text-align: right;
  word-break: break-word;
}

.qpay-order-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 800;
}

.qpay-order-total span {
  color: var(--muted);
}

.qpay-order-total strong {
  color: var(--brand-2);
  font-size: 20px;
}

.qpay-order-code code {
  display: block;
  width: 100%;
  padding: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qpay-back-btn {
  width: 100%;
}

.payment-extra-actions {
  margin-top: 4px;
}


.cart-detail-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.cart-detail-item .label {
  min-width: 90px;
  color: var(--muted);
  font-size: 13px;
}

.delivery-form {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.delivery-status {
  margin-top: 10px;
}

.status-box {
  margin-top: 10px;
  min-height: 44px;
}

.empty-state,
.error-state {
  padding: 18px;
  border-radius: 12px;
  border: 1px dashed var(--line);
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
}

.error-state {
  color: #ffc7ce;
  border-color: rgba(255, 109, 121, 0.5);
  background: rgba(255, 109, 121, 0.08);
}

.site-footer {
  margin-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0 30px;
  color: var(--muted);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

code {
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 12px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
}

.is-ready [data-reveal] {
  animation: rise-in 0.65s ease forwards;
  animation-delay: var(--delay, 0ms);
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .grid.cols-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .row-split,
  .detail-main {
    grid-template-columns: 1fr;
  }

  .qpay-layout {
    grid-template-columns: 1fr;
  }

  .product-detail-layout {
    grid-template-columns: 1fr;
  }

  .product-hero {
    min-height: 360px;
  }

  .payment-banks {
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  }

  .page-banner-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .banner-back {
    align-self: flex-start;
  }

  .qpay-qr-frame {
    width: min(100%, 320px);
  }

  .detail-cover {
    min-height: 260px;
  }

  .page-banner {
    min-height: 170px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(1180px, calc(100vw - 24px));
  }

  .grid.cols-4,
  .grid.cols-3,
  .grid.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-wrap {
    width: 100%;
  }

  .product-gallery-shell {
    grid-template-columns: 1fr;
  }

  .product-thumbs {
    grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
    max-height: unset;
    overflow: visible;
  }

  .product-detail-banner-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-detail-back-btn {
    width: 100%;
  }

  .header-inner {
    height: 70px;
  }

  .mobile-nav {
    top: 70px;
  }
}

@media (max-width: 520px) {
  .grid.cols-4,
  .grid.cols-3,
  .grid.cols-2 {
    grid-template-columns: 1fr;
  }

  .product-spec-grid {
    grid-template-columns: 1fr;
  }

  .header-actions .btn,
  .header-actions .profile-trigger {
    display: none;
  }

  .page-title {
    font-size: 30px;
  }
}

/* 2026-02 light dashboard direction */
:root {
  --bg: #edf1f7;
  --surface: #ffffff;
  --surface-2: #f5f7fc;
  --line: #dde3ef;
  --text: #1f2940;
  --muted: #72809f;
  --brand: #5753ff;
  --brand-2: #2f7df6;
  --success: #1ea971;
  --danger: #d04b68;
  --sidebar-w: 270px;
}

body {
  background: radial-gradient(1200px 700px at -8% -8%, #dbe7ff 0%, transparent 52%),
    radial-gradient(1000px 700px at 108% 0%, #e9defe 0%, transparent 48%), var(--bg);
  color: var(--text);
}

body::before {
  background-image: linear-gradient(rgba(27, 55, 116, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 55, 116, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.8;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 18px;
  bottom: 18px;
  width: var(--sidebar-w);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 50px rgba(23, 40, 74, 0.16);
  padding: 14px;
  z-index: 41;
}

.site-header .container {
  width: 100%;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  flex-direction: column;
  gap: 14px;
}

.brand {
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(125deg, #f5f8ff, #f0f3fa);
  border: 1px solid #e5eaf4;
}

.brand img {
  height: 28px;
  max-width: 150px;
}

.brand span {
  color: #273453;
  font-size: 18px;
}

.nav-links {
  display: grid;
  align-items: stretch;
  gap: 6px;
}

.nav-link {
  justify-content: flex-start;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  color: #6f7b96;
  font-size: 13px;
  font-weight: 700;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: linear-gradient(125deg, var(--brand), #7a69ff);
  box-shadow: 0 10px 20px rgba(87, 83, 255, 0.28);
}

.mobile-toggle {
  margin-top: auto;
  border-color: #d5dced;
  background: #fff;
  color: #22304f;
}

.workspace-head {
  position: sticky;
  top: 12px;
  z-index: 35;
  margin-left: calc(var(--sidebar-w) + 34px);
  padding-top: 12px;
}

.workspace-head .container,
.site-main .container,
.site-footer .container {
  width: min(1240px, calc(100vw - var(--sidebar-w) - 70px));
}

.workspace-head-inner {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 24px rgba(22, 39, 74, 0.08);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}

.workspace-search {
  flex: 1;
  max-width: 500px;
}

.workspace-search .input {
  height: 40px;
  border-radius: 12px;
}

.header-actions {
  gap: 8px;
}

.btn {
  height: 40px;
  border-radius: 12px;
}

.btn-primary {
  background: linear-gradient(125deg, var(--brand), #7a69ff);
  color: #fff;
  box-shadow: 0 10px 20px rgba(87, 83, 255, 0.24);
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-outline {
  border-color: #d2daea;
  background: #fff;
  color: #2d3a56;
}

.btn-outline:hover {
  border-color: #bac6df;
  background: #f9fbff;
}

.profile-trigger {
  border-color: #d3dbec;
  background: #fff;
  color: #263453;
  border-radius: 12px;
}

.profile-avatar {
  background: linear-gradient(125deg, var(--brand), #4aa3ff);
  color: #fff;
}

.profile-caret {
  color: #7685a4;
}

.profile-menu {
  border-color: #d8dfef;
  background: #fff;
  box-shadow: 0 20px 34px rgba(26, 44, 80, 0.16);
}

.profile-menu a,
.profile-menu button {
  color: #1f2940;
  border-bottom: 1px solid #eef2f9;
}

.profile-menu a:hover,
.profile-menu button:hover {
  background: #f5f8ff;
}

.site-main {
  margin-left: calc(var(--sidebar-w) + 34px);
  padding-bottom: 20px;
}

.page-banner {
  min-height: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(22, 39, 74, 0.08);
  padding: 14px 18px;
}

.page-banner::after {
  display: none;
}

.page-banner.compact {
  min-height: auto;
}

.page-banner > .breadcrumb {
  position: static;
}

.page-banner-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.page-banner-head .breadcrumb {
  margin: 0;
}

.banner-back {
  white-space: nowrap;
}

.breadcrumb {
  gap: 10px;
  color: #8491ac;
  font-size: 13px;
}

.breadcrumb a:hover {
  color: #5169a9;
}

.breadcrumb [aria-current="page"] {
  color: #2f3f66;
  font-weight: 700;
}

.section {
  margin-top: 16px;
}

.section-sub {
  color: #8a95ad;
}

.section-title {
  color: #1d2840;
}

.card,
.panel,
.status-box,
.empty-state,
.auth-modal-dialog {
  border-color: var(--line);
  background: #fff;
  box-shadow: 0 14px 28px rgba(22, 39, 74, 0.08);
}

.card:hover {
  border-color: #cdd7ec;
  box-shadow: 0 18px 28px rgba(22, 39, 74, 0.13);
}

.card-media {
  background: #f2f6fd;
}

.card-title {
  color: #1f2940;
}

.card-title a:hover {
  color: var(--brand);
}

.card-text {
  color: #7b89a8;
}

.badge {
  background: #eff3fb;
  color: #5e6d8e;
}

.price {
  color: #2f6be6;
}

.input,
textarea.input {
  border-color: #d4dceb;
  background: #f9fbff;
  color: #1f2940;
}

.input::placeholder {
  color: #93a1bf;
}

.site-footer {
  margin-top: 28px;
  margin-left: calc(var(--sidebar-w) + 34px);
  border-top-color: #d7dfef;
  color: #6f7c98;
}

.auth-modal-backdrop {
  background: rgba(25, 40, 72, 0.22);
}

.mobile-nav {
  border-color: #d7deef;
  background: #fff;
}

@media (max-width: 1100px) {
  .site-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    border: 0;
    border-bottom: 1px solid #d7deef;
    border-radius: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: none;
  }

  .site-header .container {
    width: min(1240px, calc(100vw - 24px));
  }

  .header-inner {
    height: 72px;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    gap: 10px;
  }

  .brand {
    padding: 0;
    border: 0;
    background: transparent;
  }

  .brand span {
    font-size: 17px;
  }

  .workspace-head,
  .site-main,
  .site-footer {
    margin-left: 0;
  }

  .workspace-head {
    top: 8px;
    padding-top: 8px;
  }

  .workspace-head .container,
  .site-main .container,
  .site-footer .container {
    width: min(1240px, calc(100vw - 24px));
  }

  .workspace-search {
    display: none;
  }

  .mobile-nav {
    top: 72px;
    left: 12px;
    right: 12px;
  }
}

/* 2026-02 dark audio-market direction */
:root {
  --bg: #07070a;
  --surface: #0f1014;
  --surface-2: #161821;
  --line: #232636;
  --text: #f2f4f8;
  --muted: #a2a7ba;
  --brand: #6960ff;
  --brand-2: #7d74ff;
  --success: #2fcf97;
  --danger: #ff6b87;
}

body {
  background: radial-gradient(1200px 700px at 12% -18%, rgba(77, 70, 255, 0.22) 0%, transparent 55%),
    radial-gradient(1000px 700px at 88% -20%, rgba(109, 64, 240, 0.18) 0%, transparent 54%), var(--bg);
  color: var(--text);
}

body::before {
  background-image: linear-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 1;
}

.site-header {
  position: sticky;
  top: 8px;
  left: auto;
  bottom: auto;
  width: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(8, 9, 14, 0.86);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34);
  padding: 0;
  margin: 12px auto 0;
  max-width: min(1280px, calc(100vw - 26px));
}

.site-header .container {
  width: 100%;
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  gap: 12px;
  padding: 0 14px;
}

.brand {
  padding: 0;
  border: 0;
  background: transparent;
}

.brand img {
  height: 30px;
  max-width: 160px;
}

.brand span {
  color: #fff;
  font-size: 22px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  justify-content: center;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  color: #bcc2d3;
  font-size: 13px;
  font-weight: 700;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: none;
}

.workspace-head {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search {
  width: min(260px, 30vw);
}

.header-search .input {
  height: 38px;
  border-radius: 999px;
  font-size: 13px;
  background: #141926;
}

.btn {
  height: 38px;
  border-radius: 999px;
  font-size: 13px;
}

.btn-primary {
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  color: #fff;
  box-shadow: 0 10px 18px rgba(105, 96, 255, 0.3);
}

.btn-outline {
  border-color: #2f3448;
  background: rgba(255, 255, 255, 0.04);
  color: #e6e9f1;
}

.btn-outline:hover {
  border-color: #464e67;
  background: rgba(255, 255, 255, 0.08);
}

.profile-trigger {
  border-color: #30364a;
  background: rgba(255, 255, 255, 0.03);
  color: #eef1f8;
  border-radius: 999px;
}

.profile-avatar {
  background: linear-gradient(125deg, #6b62ff, #57a3ff);
  color: #fff;
}

.profile-caret {
  color: #a6afc8;
}

.profile-menu {
  border-color: #2d3345;
  background: #11131a;
  box-shadow: 0 20px 34px rgba(0, 0, 0, 0.46);
}

.profile-menu a,
.profile-menu button {
  color: #eef1f7;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.profile-menu a:hover,
.profile-menu button:hover {
  background: rgba(255, 255, 255, 0.07);
}

.site-main,
.site-footer {
  margin-left: 0;
}

.container,
.site-main .container,
.site-footer .container {
  width: min(1280px, calc(100vw - 26px));
}

.page-banner {
  margin: 14px auto 8px;
  min-height: auto;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  padding: 0;
  overflow: visible;
}

.page-banner::after {
  display: none;
}

.page-banner > .breadcrumb {
  position: static;
  margin: 0;
}

.home-banner {
  position: relative;
  min-height: clamp(260px, 42vw, 500px);
  background: linear-gradient(180deg, rgba(9, 10, 16, 0.08), rgba(9, 10, 16, 0.42)), var(--banner-bg) center/cover no-repeat,
    #0f1118;
  border: 1px solid #252a3b;
  border-radius: 16px;
  display: flex;
  align-items: flex-end;
  padding: clamp(18px, 4vw, 42px);
  overflow: hidden;
}

.home-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(94deg, rgba(8, 11, 18, 0.78) 8%, rgba(8, 11, 18, 0.18) 70%);
  pointer-events: none;
}

.home-banner-content {
  position: relative;
  z-index: 1;
  max-width: min(720px, 100%);
}

.home-banner-subtitle {
  margin: 0 0 8px;
  color: #b9c2d8;
  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-banner-title {
  margin: 0;
  color: #ffffff;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.home-banner-title .is-highlight {
  color: #ffd087;
}

.home-banner-actions {
  margin-top: 18px;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #9aa3bf;
  font-size: 12px;
  font-weight: 700;
}

.breadcrumb a {
  color: #f4f9ff;
}

.breadcrumb span {
  color: #9aa3bf;
}

.breadcrumb [aria-current="page"] {
  color: #ffd087;
}

.section {
  margin-top: 18px;
}

.section-sub {
  color: #8e95ad;
}

.section-title {
  color: #fff;
}

.card,
.panel,
.status-box,
.empty-state,
.auth-modal-dialog {
  border-color: #252a3b;
  background: #10131c;
  box-shadow: none;
}

.card:hover {
  border-color: #343b52;
  box-shadow: none;
}

.card-media {
  background: #191c26;
}

.card-title {
  color: #fff;
}

.card-title a:hover {
  color: #d5d9ff;
}

.card-text {
  color: #a8aec0;
}

.badge {
  background: rgba(255, 255, 255, 0.07);
  color: #c4cada;
}

.price {
  color: #c3bbff;
}

.input,
textarea.input {
  border-color: #30364a;
  background: #151925;
  color: #eef1f8;
}

.input::placeholder {
  color: #848ca8;
}

.site-footer {
  margin-top: 24px;
  border-top-color: #24293b;
  color: #868ea8;
}

.auth-modal-backdrop {
  background: rgba(2, 3, 7, 0.75);
}

.mobile-nav {
  border-color: #2e3448;
  background: #10131c;
}

.track-hero {
  display: grid;
  grid-template-columns: minmax(220px, 290px) minmax(0, 1fr) 230px;
  gap: 20px;
  padding: 18px;
}

.track-hero-cover {
  border: 1px solid #2a3043;
  border-radius: 14px;
  overflow: hidden;
  background: #161a26;
  aspect-ratio: 1/1;
}

.track-hero-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.track-hero-main {
  display: grid;
  gap: 12px;
  align-content: start;
}

.track-title {
  margin: 0;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.track-subtitle {
  margin: 0;
}

.track-wave-box {
  border: 1px solid #2a3043;
  border-radius: 12px;
  padding: 12px;
  background: #131825;
}

.track-wave-box .small {
  margin: 0 0 8px;
}

.track-purchase-box {
  border: 1px solid #2a3043;
  border-radius: 12px;
  padding: 12px;
  background: #131825;
}

.track-price-inline {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.track-price-inline strong {
  font-size: 30px;
  color: #cec8ff;
  line-height: 1;
}

.track-hero-stats {
  display: grid;
  gap: 10px;
  align-content: start;
}

.track-meta-item {
  border: 1px solid #2a3043;
  border-radius: 12px;
  background: #131825;
  padding: 12px;
}

.track-meta-item span {
  display: block;
  color: #8f97b0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.track-meta-item b {
  display: block;
  margin-top: 6px;
  font-size: 16px;
}

.track-list {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.audio-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.audio-inline-search {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: min(700px, 100%);
}

.audio-inline-input {
  flex: 1;
  min-width: 220px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(139, 157, 191, 0.34);
  background: rgba(12, 19, 33, 0.84);
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.audio-inline-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 143, 230, 0.2);
  color: #d7e4ff;
  font-size: 12px;
  flex: 0 0 auto;
}

.audio-inline-input input {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  color: #edf2ff;
  font: inherit;
}

.audio-inline-input input::placeholder {
  color: #9cabca;
}

.audio-inline-input input:focus {
  outline: none;
}

.audio-inline-input:focus-within {
  border-color: rgba(132, 188, 255, 0.84);
  box-shadow: 0 0 0 3px rgba(95, 157, 233, 0.2);
}

.audio-inline-count {
  white-space: nowrap;
  border-color: rgba(139, 157, 191, 0.34);
  background: rgba(255, 255, 255, 0.06);
}

.audio-inline-count b {
  color: #ffffff;
}

.audio-inline-search #audioSearchReset {
  height: 40px;
  border-radius: 10px;
  padding: 0 14px;
}

.audio-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.audio-detail-main,
.audio-detail-side {
  border: 1px solid #2a3042;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(14, 17, 25, 0.96), rgba(8, 10, 16, 0.98));
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.33);
  padding: 14px;
}

.audio-detail-main {
  display: grid;
  gap: 12px;
}

.audio-detail-hero {
  display: grid;
  grid-template-columns: minmax(220px, 290px) minmax(0, 1fr);
  gap: 14px;
}

.audio-detail-cover {
  border: 1px solid #313852;
  border-radius: 12px;
  overflow: hidden;
  background: #151b2a;
  aspect-ratio: 1 / 1;
}

.audio-detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.audio-detail-info {
  display: grid;
  align-content: start;
  gap: 8px;
}

.audio-detail-genre {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(240, 155, 65, 0.2);
  border: 1px solid rgba(240, 155, 65, 0.36);
  color: #ffcb83;
  font-size: 12px;
  font-weight: 700;
}

.audio-detail-title {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 34px);
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: #f4f7ff;
}

.audio-detail-meta {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
  color: #b8c1d7;
  font-size: 13px;
  font-weight: 600;
}

.audio-detail-meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.audio-detail-facts {
  margin-top: 2px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.audio-fact-chip {
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #303750;
  background: rgba(255, 255, 255, 0.04);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #9ca8c5;
  font-size: 11px;
  font-weight: 700;
}

.audio-fact-chip b {
  color: #e3e9fb;
  font-size: 12px;
}

.audio-quality-row {
  margin-top: 4px;
  display: grid;
  gap: 8px;
}

.audio-trailer-inline {
  border: 1px solid #2f3550;
  border-radius: 14px;
  background: #131722;
  padding: 8px 10px;
  display: grid;
  gap: 6px;
}

.audio-wave-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 64px;
}

.audio-wave-left,
.audio-wave-right {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.audio-wave-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #3d465f;
  background: rgba(255, 255, 255, 0.03);
  color: #d3d9ea;
  font: inherit;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.audio-wave-icon.is-active {
  border-color: rgba(115, 86, 255, 0.8);
  color: #f8f3ff;
  background: rgba(115, 86, 255, 0.22);
}

.audio-wave-center {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.audio-wave-time {
  margin: 0;
  color: #c4ccdd;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1;
}

.audio-waveform {
  min-width: 0;
  border: 1px solid #2a3045;
  border-radius: 999px;
  background: #151b29;
  padding: 6px 8px;
}

.audio-wave-nav,
.audio-wave-toggle {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #3a4360;
  color: #f6f8ff;
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

.audio-wave-nav {
  background: rgba(255, 255, 255, 0.05);
  font-size: 13px;
}

.audio-wave-toggle {
  width: 40px;
  height: 40px;
  background: linear-gradient(120deg, #5f52f7, #8b4eff);
  box-shadow: 0 0 0 3px rgba(112, 83, 255, 0.18);
  font-size: 15px;
  font-weight: 700;
}

.audio-wave-toggle:disabled,
.audio-wave-nav:disabled,
.audio-wave-icon:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.audio-wave-time:last-child {
  color: #eef2ff;
}

.audio-waveform wave {
  border-radius: 999px;
}

.audio-wave-toggle:hover,
.audio-wave-nav:hover,
.audio-wave-icon:hover {
  border-color: rgba(132, 153, 188, 0.72);
}

.audio-wave-toggle:focus-visible,
.audio-wave-nav:focus-visible,
.audio-wave-icon:focus-visible {
  outline: 2px solid rgba(134, 186, 255, 0.62);
  outline-offset: 1px;
}

.audio-wave-toggle {
  background: linear-gradient(120deg, #5f52f7, #8b4eff);
  border-color: rgba(127, 99, 255, 0.72);
}

.audio-trailer-state {
  margin: 0 3px 1px;
  color: #98a5c4;
  font-size: 11px;
  font-weight: 600;
}

.audio-trailer-state:empty {
  display: none;
}

.audio-trailer-state.is-error {
  color: #ff9cb2;
}

.audio-trailer-state.is-warn {
  color: #ffd28e;
}

.audio-quality-btn {
  min-width: 132px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #3a4360;
  background: linear-gradient(120deg, #5f52f7, #8b4eff);
  color: #f6f8ff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 0 14px;
}

.audio-quality-btn:not(.is-active) {
  background: rgba(255, 255, 255, 0.07);
  border-color: #323b55;
  color: #c7d0e7;
}

.audio-quality-btn.is-unlocked {
  background: linear-gradient(120deg, #3fca91, #27b27c);
  border-color: rgba(80, 214, 159, 0.64);
  color: #ffffff;
}

.audio-player-card {
  border: 1px solid #2f3750;
  border-radius: 12px;
  background: #181c27;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.audio-player-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
}

.audio-player-label {
  margin: 0;
  color: #c4cbe0;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.audio-ghost-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #353e58;
  background: rgba(255, 255, 255, 0.04);
  color: #bec7dc;
  font: inherit;
  cursor: pointer;
}

.audio-native-player {
  width: 100%;
  margin: 0;
}

.audio-share-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
}

.audio-share-input {
  height: 40px;
  border-radius: 10px;
}

.audio-share-row .btn {
  min-width: 86px;
}

.audio-description-card,
.audio-comments-card {
  border: 1px solid #2d3550;
  border-radius: 12px;
  background: #131a29;
  padding: 12px;
}

.audio-unlock-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(72, 109, 178, 0.55);
  border-radius: 16px;
  background: radial-gradient(64% 80% at 50% 20%, rgba(32, 78, 168, 0.38) 0%, rgba(8, 17, 35, 0) 70%),
    linear-gradient(152deg, #061227 0%, #091730 44%, #040d20 100%);
  padding: clamp(10px, 1.2vw, 14px);
  display: grid;
  gap: 10px;
}

.audio-paywall {
  position: relative;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: 10px;
  min-height: clamp(170px, 20vw, 230px);
  padding: clamp(8px, 1.2vw, 14px) clamp(8px, 1.3vw, 14px);
}

.audio-paywall-glow {
  position: absolute;
  top: -14px;
  left: 50%;
  width: min(56vw, 380px);
  height: min(32vw, 180px);
  transform: translateX(-50%);
  pointer-events: none;
  background: radial-gradient(circle, rgba(51, 128, 255, 0.2) 0%, rgba(51, 128, 255, 0) 72%);
}

.audio-paywall-icon {
  position: relative;
  z-index: 1;
  width: 60px;
  height: 60px;
  border-radius: 999px;
  border: 1px solid rgba(86, 130, 212, 0.5);
  background: rgba(18, 42, 82, 0.84);
  box-shadow: inset 0 0 0 1px rgba(157, 190, 255, 0.1), 0 6px 18px rgba(16, 53, 126, 0.32);
  display: grid;
  place-items: center;
  color: #56abff;
}

.audio-paywall-icon svg {
  width: 22px;
  height: 22px;
}

.audio-paywall-title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: #f5f8ff;
}

.audio-paywall-desc {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(100%, 520px);
  font-size: 14px;
  line-height: 1.4;
  color: #9da9bf;
}

.audio-paywall-desc strong {
  color: #ffffff;
  font-weight: 800;
}

.audio-unlock-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.audio-paywall-cta {
  min-width: 0;
  min-height: 0;
  padding: 0 14px;
  gap: 8px;
}

.audio-paywall-cta::before {
  content: none;
}

.audio-paywall-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.audio-paywall-cta-icon svg {
  width: 16px;
  height: 16px;
}

.audio-paywall-secondary {
  min-height: 36px;
  border-radius: 8px;
  font-size: 12px;
}

.audio-payment-box {
  --bs-modal-zindex: 1200;
}

.audio-payment-box .modal-dialog {
  margin: clamp(10px, 1.8vw, 20px) auto;
  max-width: min(940px, calc(100vw - 20px));
}

.audio-payment-box .modal-content {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.audio-payment-modal {
  width: min(920px, 100%);
  max-height: calc(100vh - 28px);
  overflow: auto;
  border: 1px solid #d6deea;
  border-radius: 14px;
  background: #f7f9fc;
  padding: clamp(10px, 1.2vw, 14px);
  color: #111827;
  display: grid;
  gap: 12px;
  box-shadow: 0 20px 56px rgba(15, 23, 42, 0.26);
}

.audio-payment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.audio-payment-head-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.audio-payment-head-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.audio-payment-head-amount {
  margin: 0;
  color: #111827;
  font-size: 14px;
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.audio-payment-head h3 {
  margin: 0;
  color: #111827;
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  line-height: 1.1;
}

.audio-payment-close {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: #9aa3b2;
  font: inherit;
  font-size: 26px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.audio-payment-close:hover {
  color: #6f7d95;
  background: rgba(149, 167, 199, 0.14);
}

.audio-payment-top-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.audio-payment-stat {
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid #dde5f0;
  border-radius: 10px;
  background: #eef2f7;
  padding: 10px 12px;
  min-height: 84px;
}

.audio-payment-stat p {
  margin: 0;
  color: #626f84;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.audio-payment-stat strong {
  margin: 0;
  color: #111827;
  font-size: 14px;
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.audio-payment-modal .qpay-badge {
  justify-self: flex-start;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 700;
}

.audio-payment-modal .qpay-badge.pending {
  background: #fff3d8;
  border-color: #f4d590;
  color: #9a6800;
}

.audio-payment-modal .qpay-badge.paid {
  background: #dff8ea;
  border-color: #95dfb9;
  color: #166b3f;
}

.audio-payment-modal .qpay-badge.failed,
.audio-payment-modal .qpay-badge.expired {
  background: #ffe5ea;
  border-color: #f4b4c2;
  color: #9b2e4a;
}

.audio-payment-invoice {
  margin: 0;
  color: #66758d;
  font-size: 12px;
}

.audio-payment-invoice b {
  color: #13233e;
}

.audio-payment-divider {
  width: 100%;
  height: 1px;
  background: #dce4ef;
}

.audio-payment-qr-section {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.audio-payment-qr-section h4 {
  margin: 0;
  color: #111827;
  font-size: 14px;
  line-height: 1.12;
}

.audio-payment-qr-section p {
  margin: 0;
  color: #66758d;
  font-size: 12px;
}

.audio-payment-qr-frame {
  width: min(100%, 220px);
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  border: 1px solid #d5deea;
  background: #ffffff;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.audio-payment-qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.audio-payment-check-btn {
  width: 100%;
  min-height: 42px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  transform: none;
}

.audio-payment-check-btn.btn-primary {
  color: #ffffff;
  border-color: #2563eb;
  background: #2563eb;
  box-shadow: none;
}

.audio-payment-check-btn.btn-primary:hover {
  color: #ffffff;
  border-color: #1d4ed8;
  background: #1d4ed8;
  transform: none;
}

.audio-payment-or {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7b889c;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.audio-payment-or::before,
.audio-payment-or::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: #dce4ef;
}

.audio-payment-or::before {
  margin-right: 14px;
}

.audio-payment-or::after {
  margin-left: 14px;
}

.audio-payment-app-title {
  margin: 0;
  text-align: center;
  color: #1f2937;
  font-size: 13px;
  font-weight: 600;
}

.audio-payment-apps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.audio-bank-tile {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  min-height: 84px;
  border: 1px solid #d8e0eb;
  border-radius: 10px;
  background: #ffffff;
  padding: 8px 6px;
  text-align: center;
  text-decoration: none;
  color: #4b5563;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

a.audio-bank-tile:hover {
  transform: translateY(-1px);
  border-color: #8eb8ff;
  box-shadow: 0 10px 22px rgba(42, 95, 188, 0.14);
}

.audio-bank-logo-shell {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border: 1px solid #d9e1ed;
}

.audio-bank-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.audio-bank-fallback {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2b5fef, #4290ff);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
}

.audio-bank-name {
  width: 100%;
  color: #4b5563;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audio-payment-open {
  min-height: 38px;
}

.audio-payment-empty {
  margin: 0;
  text-align: center;
  color: #64748b;
  font-size: 12px;
}

.audio-full-player {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
  display: grid;
  gap: 10px;
}

.audio-full-shell {
  border: 1px solid #2f3852;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px;
  display: grid;
  gap: 10px;
}

.audio-full-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.audio-full-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.audio-full-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #3a4360;
  background: rgba(255, 255, 255, 0.05);
  color: #f6f8ff;
  font: inherit;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}

.audio-full-btn.is-play {
  width: 40px;
  height: 40px;
  background: linear-gradient(120deg, #5f52f7, #8b4eff);
  border-color: rgba(127, 99, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(112, 83, 255, 0.18);
  font-size: 15px;
  font-weight: 700;
}

.audio-full-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.audio-full-time {
  margin: 0;
  color: #c4ccdd;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.audio-full-seek {
  width: 100%;
  accent-color: #7d62ff;
}

.audio-full-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.audio-full-track-title {
  margin: 0;
  color: #e3e9fb;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  min-width: 0;
  max-width: min(100%, 380px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audio-full-volume-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c4cce0;
  font-size: 13px;
}

.audio-full-volume {
  width: 130px;
  accent-color: #7d62ff;
}

.audio-pay-state {
  border: 1px solid #37405b;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  padding: 8px 10px;
  color: #d1d9ec;
  font-size: 12px;
}

.audio-pay-state.ok {
  border-color: rgba(67, 212, 155, 0.52);
  background: rgba(67, 212, 155, 0.14);
  color: #9ef0cb;
}

.audio-pay-state.err {
  border-color: rgba(255, 117, 144, 0.52);
  background: rgba(255, 117, 144, 0.12);
  color: #ffb8c7;
}

.audio-pay-state b {
  color: #ffffff;
}

.audio-pay-qr img {
  width: min(180px, 100%);
  border-radius: 10px;
  border: 1px solid #303851;
  display: block;
}

.audio-description-card h3,
.audio-comments-card h3,
.audio-suggest-head {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 17px;
  color: #f4f7ff;
}

.audio-description-content {
  margin-top: 8px;
  display: grid;
  gap: 10px;
}

.audio-description-content p {
  margin: 0;
  color: #b9c3da;
  font-size: 13px;
  line-height: 1.8;
}

.audio-comment-list {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.audio-comment-card {
  border: 1px solid #2f3852;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px;
  display: grid;
  gap: 10px;
}

.audio-comment-user {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
}

.audio-comment-user img {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid #38435e;
  object-fit: cover;
}

.audio-comment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.audio-comment-head b {
  color: #f2f5ff;
  font-size: 14px;
}

.audio-comment-head time {
  color: #97a4c2;
  font-size: 11px;
}

.audio-comment-card p {
  margin: 6px 0 0;
  color: #b2bcd4;
  font-size: 13px;
  line-height: 1.6;
}

.audio-comment-actions {
  display: inline-flex;
  gap: 8px;
}

.audio-comment-actions button {
  height: 30px;
  border-radius: 8px;
  border: 1px solid #333d58;
  background: rgba(255, 255, 255, 0.03);
  color: #c8d2ea;
  font: inherit;
  font-size: 12px;
  padding: 0 10px;
  cursor: pointer;
}

.audio-detail-side {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.audio-suggest-list {
  display: grid;
  gap: 10px;
}

.audio-suggest-item {
  border: 1px solid #313a54;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  padding: 8px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.audio-suggest-cover {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #39415e;
  background: #1a2236;
}

.audio-suggest-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.audio-suggest-main {
  min-width: 0;
}

.audio-suggest-title {
  display: block;
  color: #f1f4fb;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audio-suggest-sub {
  margin: 4px 0 0;
  color: #9aa6c5;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audio-suggest-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.audio-suggest-actions button,
.audio-suggest-actions a {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid #38415d;
  background: rgba(255, 255, 255, 0.04);
  color: #c7d0e7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.advice-detail {
  max-width: min(920px, 100%);
  margin: 0 auto;
  border: 1px solid #2a3247;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(16, 21, 34, 0.96), rgba(12, 16, 26, 0.98));
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.35);
  padding: clamp(16px, 2.6vw, 26px);
}

.advice-detail-head {
  display: grid;
  gap: 12px;
}

.advice-detail-topic {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #9ba7c2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.advice-detail-topic .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #f5be61;
}

.advice-detail-title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: #f4f7ff;
  font-size: clamp(20px, 3vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.advice-detail-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.advice-detail-author {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.advice-detail-author img {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid #3a435c;
  object-fit: cover;
  background: #1a2235;
}

.advice-detail-author-text {
  display: grid;
  gap: 1px;
}

.advice-detail-author-main {
  margin: 0;
  color: #f0f4ff;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.advice-detail-follow {
  color: #f5be61;
  font-size: 12px;
  font-weight: 700;
}

.advice-detail-author-sub {
  margin: 0;
  color: #9aa5c1;
  font-size: 12px;
  font-weight: 600;
}

.advice-detail-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.advice-action-chip {
  height: 34px;
  border-radius: 999px;
  border: 1px solid #313951;
  background: rgba(255, 255, 255, 0.04);
  color: #bec9e4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
}

.advice-action-chip b {
  color: #dfe7fb;
  font-weight: 700;
}

.advice-like-chip {
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.advice-like-chip:hover {
  border-color: #445172;
  color: #d8e0f3;
  background: rgba(255, 255, 255, 0.08);
}

.advice-like-chip:focus-visible {
  outline: 2px solid rgba(255, 99, 40, 0.42);
  outline-offset: 2px;
}

.advice-like-chip.is-active {
  border-color: rgba(255, 99, 40, 0.62);
  background: rgba(255, 99, 40, 0.14);
}

.advice-like-chip.is-active i,
.advice-like-chip.is-active b {
  color: #ff8e68;
}

.advice-like-chip[aria-disabled="true"] {
  opacity: 0.7;
  pointer-events: none;
}

.advice-action-chip i {
  width: 15px;
  height: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #95a2bf;
}

.advice-action-chip svg,
.advice-action-btn svg {
  width: 15px;
  height: 15px;
}

.advice-action-chip path,
.advice-action-btn path {
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.advice-action-chip circle,
.advice-action-btn circle,
.advice-row-stats circle {
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.advice-action-btn {
  width: 34px;
  height: 34px;
  border: 1px solid #313951;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #95a2bf;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.advice-action-btn:hover {
  border-color: #445172;
  color: #d8e0f3;
  background: rgba(255, 255, 255, 0.08);
}

.advice-action-btn.is-copied {
  border-color: rgba(70, 216, 166, 0.62);
  color: #8ff0cb;
  background: rgba(70, 216, 166, 0.14);
}

.advice-detail-cover {
  margin: 14px 0 0;
  border: 1px solid #2f3852;
  border-radius: 18px;
  overflow: hidden;
  background: #151d2f;
  aspect-ratio: 16 / 10;
}

.advice-detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.advice-detail-summary {
  margin: 14px 0 0;
  color: #b8c3dd;
  font-size: 14px;
  line-height: 1.75;
}

.advice-detail-content {
  margin-top: 12px;
  display: grid;
  gap: 14px;
}

.advice-detail-content h2 {
  margin: 4px 0 0;
  color: #f3f6ff;
  font-size: 22px;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

.advice-detail-content p {
  margin: 0;
  color: #c2cce3;
  font-size: 14px;
  line-height: 1.85;
}

.advice-detail-content figure {
  margin: 4px 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #2f3852;
  background: #111a2a;
}

.advice-detail-content figure img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.advice-access-section {
  margin-top: 14px;
}

.advice-access-section .audio-paywall {
  min-height: 0;
  padding-top: 12px;
}

.advice-paid-state {
  border: 1px solid rgba(66, 178, 136, 0.4);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(17, 32, 24, 0.9), rgba(12, 23, 18, 0.95));
  padding: 14px;
  display: grid;
  gap: 10px;
}

.advice-paid-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.advice-paid-top strong {
  color: #b7f5d9;
  font-size: 16px;
  letter-spacing: 0.01em;
}

.advice-paid-desc {
  margin: 0;
  color: #b9d6c8;
  font-size: 13px;
  line-height: 1.6;
}

.advice-paid-meta {
  display: grid;
  gap: 7px;
}

.advice-paid-meta span {
  color: #9fbea9;
  font-size: 12px;
}

.advice-paid-meta b {
  color: #ecfff3;
  font-weight: 700;
}

.advice-shell {
  border: 1px solid #242b3e;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(16, 21, 34, 0.95) 0%, rgba(12, 16, 27, 0.97) 100%);
  padding: 18px;
  box-shadow: 0 20px 34px rgba(0, 0, 0, 0.34);
}

.advice-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.advice-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.advice-tabs::-webkit-scrollbar {
  display: none;
}

.advice-tab {
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #9aa5bf;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  padding: 10px 15px;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.advice-tab:hover {
  color: #f0f4ff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.advice-tab.active {
  color: #ffffff;
  background: rgba(121, 114, 255, 0.26);
  border-color: rgba(148, 142, 255, 0.48);
}

.advice-search {
  flex: 0 0 min(290px, 100%);
  width: min(290px, 100%);
  height: 40px;
  border: 1px solid #333a51;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
}

.advice-search span {
  color: #909dbc;
  font-size: 13px;
}

.advice-search input {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  color: #f2f4f8;
  font: inherit;
  font-size: 13px;
}

.advice-search input::placeholder {
  color: #8f9abc;
}

.advice-search input:focus {
  outline: none;
}

.advice-search:focus-within {
  border-color: rgba(132, 144, 192, 0.92);
  box-shadow: 0 0 0 3px rgba(118, 132, 189, 0.2);
}

.advice-feed {
  display: grid;
  gap: 14px;
}

.advice-row {
  display: grid;
  grid-template-columns: minmax(270px, 380px) minmax(0, 1fr);
  align-items: stretch;
  gap: 16px;
  border: 1px solid #2a3248;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(22, 29, 46, 0.95), rgba(16, 22, 35, 0.98));
  padding: 11px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.advice-row:hover {
  border-color: #3a4665;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.34);
}

.advice-row-media {
  border-radius: 14px;
  overflow: hidden;
  background: #1a2235;
  aspect-ratio: 16 / 10;
}

.advice-row-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.advice-row-body {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 11px;
  padding: 4px 8px 4px 0;
}

.advice-row-top {
  margin: 0;
  color: #9ca7c2;
  font-size: 12px;
  font-weight: 600;
}

.advice-row-top strong {
  color: #dce6fd;
  font-weight: 700;
}

.advice-row-title {
  margin: 0;
  font-size: clamp(17px, 2vw, 24px);
  line-height: 1.28;
  letter-spacing: -0.015em;
}

.advice-row-title a {
  color: #f4f7ff;
}

.advice-row-title a:hover {
  color: #b7c4ff;
}

.advice-row-summary {
  margin: 0;
  color: #a3adc5;
  font-size: 14px;
  line-height: 1.5;
}

.advice-row-foot {
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.advice-row-author {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #e5ebfa;
  font-size: 13px;
  font-weight: 700;
}

.advice-author-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #3a4560;
  object-fit: cover;
  background: #1f2738;
}

.advice-row-stats {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  color: #a1adc8;
  font-size: 12px;
  font-weight: 600;
}

.advice-row-stats span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.advice-stat-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8190af;
}

.advice-stat-icon svg {
  width: 16px;
  height: 16px;
}

.advice-stat-icon path {
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.advice-row-skeleton {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border: 1px solid #2b3348;
  border-radius: 18px;
  background: #121927;
}

.advice-row-skeleton::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(174, 192, 231, 0.12), rgba(255, 255, 255, 0));
  transform: translateX(-100%);
  animation: skeleton-sweep 1.2s ease-in-out infinite;
}

@media (max-width: 1150px) {
  .advice-shell {
    border-radius: 20px;
    padding: 15px;
  }

  .advice-row {
    grid-template-columns: minmax(230px, 320px) minmax(0, 1fr);
  }

  .advice-row-title {
    font-size: clamp(16px, 1.9vw, 20px);
  }

  .advice-row-summary {
    font-size: 13px;
  }
}

@media (max-width: 980px) {
  .audio-detail-layout {
    grid-template-columns: 1fr;
  }

  .audio-detail-hero {
    grid-template-columns: minmax(190px, 260px) minmax(0, 1fr);
  }

  .audio-share-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .audio-share-row .btn:last-child {
    grid-column: 1 / -1;
  }

  .audio-suggest-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .advice-detail {
    border-radius: 18px;
    padding: 15px;
  }

  .advice-detail-title {
    font-size: clamp(18px, 4.2vw, 26px);
  }

  .advice-detail-meta-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .advice-detail-cover {
    border-radius: 14px;
  }

  .advice-detail-content h2 {
    font-size: 20px;
  }

  .advice-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .advice-tabs {
    width: 100%;
  }

  .advice-search {
    width: 100%;
    flex: 1 1 auto;
  }

  .advice-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .advice-row-media {
    aspect-ratio: 16 / 9;
  }

  .advice-row-body {
    padding: 0 2px 2px;
  }

  .advice-row-title {
    font-size: clamp(16px, 3.4vw, 20px);
  }

  .advice-row-summary {
    font-size: 13px;
  }

  .advice-row-foot {
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  .audio-detail-main,
  .audio-detail-side {
    border-radius: 14px;
    padding: 10px;
  }

  .audio-detail-hero {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .audio-detail-cover {
    max-width: 260px;
    margin: 0 auto;
  }

  .audio-detail-title {
    font-size: 20px;
  }

  .audio-detail-meta {
    font-size: 12px;
  }

  .audio-fact-chip {
    height: 28px;
    font-size: 10px;
  }

  .audio-quality-btn {
    height: 36px;
    font-size: 12px;
  }

  .audio-trailer-inline {
    padding: 8px;
  }

  .audio-wave-shell {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .audio-wave-left {
    justify-self: start;
  }

  .audio-wave-right {
    justify-self: end;
  }

  .audio-wave-time {
    font-size: 11px;
  }

  .audio-wave-toggle {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  .audio-wave-nav {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .audio-wave-center {
    width: 100%;
    gap: 8px;
  }

  .audio-share-row {
    grid-template-columns: 1fr;
  }

  .audio-share-row .btn:last-child {
    grid-column: auto;
  }

  .audio-share-row .btn {
    width: 100%;
  }

  .audio-paywall {
    min-height: 0;
    padding: 8px 2px 2px;
    gap: 8px;
  }

  .audio-paywall-icon {
    width: 52px;
    height: 52px;
  }

  .audio-paywall-icon svg {
    width: 18px;
    height: 18px;
  }

  .audio-paywall-title {
    font-size: 14px;
  }

  .audio-paywall-desc {
    font-size: 14px;
    line-height: 1.35;
  }

  .audio-unlock-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .audio-payment-modal {
    width: min(720px, 100%);
    max-height: calc(100vh - 20px);
    padding: 10px;
    border-radius: 10px;
    gap: 10px;
  }

  .audio-payment-head-amount {
    font-size: 14px;
  }

  .audio-payment-qr-section h4 {
    font-size: 14px;
  }

  .audio-payment-qr-frame {
    width: min(100%, 200px);
  }

  .audio-payment-check-btn {
    min-height: 40px;
    font-size: 14px;
  }

  .audio-payment-apps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audio-full-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .audio-full-foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .audio-full-track-title {
    max-width: 100%;
  }

  .audio-full-volume {
    width: min(220px, 72vw);
  }

  .audio-suggest-list {
    grid-template-columns: 1fr;
  }

  .audio-suggest-title {
    font-size: 14px;
  }

  .advice-detail-title {
    font-size: 17px;
    line-height: 1.34;
  }

  .advice-detail-author img {
    width: 36px;
    height: 36px;
  }

  .advice-detail-author-main {
    font-size: 12px;
    gap: 8px;
  }

  .advice-detail-author-sub,
  .advice-detail-topic {
    font-size: 11px;
  }

  .advice-action-chip,
  .advice-action-btn {
    height: 32px;
  }

  .advice-action-btn {
    width: 32px;
  }

  .advice-detail-summary,
  .advice-detail-content p {
    font-size: 13px;
    line-height: 1.75;
  }

  .advice-detail-content h2 {
    font-size: 17px;
  }

  .advice-access-section .audio-paywall {
    padding-top: 8px;
  }

  .advice-paid-state {
    border-radius: 12px;
    padding: 10px;
    gap: 8px;
  }

  .advice-paid-top strong {
    font-size: 14px;
  }

  .advice-paid-desc {
    font-size: 12px;
    line-height: 1.55;
  }

  .advice-paid-meta span {
    font-size: 11px;
  }

  .advice-shell {
    border-radius: 16px;
    padding: 12px;
  }

  .advice-topbar {
    gap: 10px;
    margin-bottom: 10px;
  }

  .advice-tab {
    font-size: 12px;
    padding: 8px 12px;
  }

  .advice-search {
    height: 38px;
    border-radius: 10px;
  }

  .advice-feed {
    gap: 10px;
  }

  .advice-row {
    border-radius: 14px;
    padding: 8px;
  }

  .advice-row-top {
    font-size: 12px;
  }

  .advice-row-title {
    font-size: 16px;
  }

  .advice-row-summary {
    font-size: 12px;
    line-height: 1.45;
  }

  .advice-row-author {
    font-size: 12px;
  }

  .advice-author-avatar {
    width: 30px;
    height: 30px;
  }

  .advice-row-stats {
    font-size: 11px;
    gap: 10px;
  }
}

@media (max-width: 520px) {
  .advice-row-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

.audio-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(88, 104, 136, 0.45);
  border-radius: 20px;
  background: #070c15;
  min-height: clamp(250px, 32vw, 390px);
  padding: 0;
}

.audio-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(130% 80% at 0% 0%, rgba(33, 64, 120, 0.72) 0%, rgba(8, 12, 20, 0.9) 55%),
    linear-gradient(140deg, rgba(10, 19, 40, 0.86), rgba(14, 20, 35, 0.66)), var(--audio-hero-bg) center/cover no-repeat;
}

.audio-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 8, 15, 0.18), rgba(4, 8, 15, 0.74));
  pointer-events: none;
}

.audio-hero-head,
.audio-hero-search {
  position: relative;
  z-index: 1;
}

.audio-hero-head {
  padding: clamp(20px, 2.8vw, 30px) clamp(20px, 3vw, 34px) 6px;
  max-width: min(760px, 100%);
}

.audio-hero-kicker {
  margin: 0;
  color: #b5bfd8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.audio-hero-title {
  margin: 8px 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: #f6f9ff;
}

.audio-hero-meta {
  margin: 10px 0 0;
  color: #d2dbef;
  font-size: 14px;
  font-weight: 600;
}

.audio-hero-meta b {
  color: #ffffff;
  font-size: 18px;
  margin-right: 4px;
}

.audio-hero-actions {
  margin-top: 14px;
}

.audio-hero-search {
  margin-top: clamp(18px, 6vw, 60px);
  padding: 0 clamp(20px, 3vw, 34px) clamp(18px, 2.6vw, 28px);
  display: flex;
  align-items: center;
  gap: 10px;
}

.audio-hero-search-input {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: min(640px, 100%);
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(152, 170, 206, 0.38);
  background: rgba(8, 14, 24, 0.72);
  backdrop-filter: blur(6px);
  padding: 0 14px;
}

.audio-hero-search-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(80, 128, 224, 0.24);
  color: #d5e5ff;
  font-size: 13px;
  flex: 0 0 auto;
}

.audio-hero-search-input input {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  color: #edf2ff;
  font: inherit;
}

.audio-hero-search-input input::placeholder {
  color: #a6b1cb;
}

.audio-hero-search-input input:focus {
  outline: none;
}

.audio-hero-search-input:focus-within {
  border-color: rgba(132, 188, 255, 0.88);
  box-shadow: 0 0 0 3px rgba(95, 157, 233, 0.22);
}

.audio-hero-search #audioSearchReset {
  height: 48px;
  border-radius: 12px;
  padding: 0 16px;
  border-color: rgba(152, 170, 206, 0.38);
  background: rgba(8, 14, 24, 0.72);
}

.audio-catalog {
  margin-top: 10px;
  border: 1px solid #2c3346;
  border-radius: 16px;
  background: #0f1421;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.34);
}

.audio-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid #262d3f;
  background: #111827;
}

.audio-list-result {
  margin: 0;
  color: #99a3bb;
  font-size: 12px;
  font-weight: 600;
}

.audio-list-result b {
  color: #f1f4fb;
  font-size: 16px;
  margin-right: 4px;
}

.audio-catalog-body {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.audio-clean-row {
  display: grid;
  grid-template-columns: 48px 64px minmax(0, 1fr) 68px 44px;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid #2b3246;
  background: #131a2a;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.audio-clean-row:hover {
  border-color: #3a435d;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28);
  transform: translateY(-1px);
}

.audio-clean-index {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #4a556f;
  text-align: center;
  line-height: 1;
}

.audio-clean-cover {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #39415a;
  background: #1b2437;
}

.audio-clean-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.audio-clean-main {
  min-width: 0;
}

.audio-clean-title {
  display: block;
  color: #f2f5ff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audio-clean-meta {
  margin: 4px 0 0;
  color: #929db8;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audio-clean-meta-icon {
  color: #6f7b98;
  font-size: 11px;
  flex: 0 0 auto;
}

.audio-clean-duration {
  color: #d7def0;
  font-size: 17px;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.audio-clean-play {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff5032, #ff2e16);
  color: #ffffff;
  font-size: 16px;
  box-shadow: 0 8px 14px rgba(255, 65, 40, 0.34);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.audio-clean-play:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(255, 65, 40, 0.42);
  filter: brightness(1.03);
}

.audio-catalog-skeleton {
  position: relative;
  overflow: hidden;
  min-height: 76px;
  border: 1px solid #2b3246;
  border-radius: 12px;
  background: #131a2a;
}

.audio-catalog-skeleton::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  transform: translateX(-100%);
  animation: skeleton-sweep 1.2s ease-in-out infinite;
}

.audio-catalog-body .empty-state,
.audio-catalog-body .error-state {
  margin: 12px;
}

.audio-list {
  position: relative;
  gap: 10px;
  margin-top: 2px;
  border: 1px solid rgba(88, 104, 136, 0.35);
  border-radius: 16px;
  background: rgba(11, 17, 29, 0.88);
  box-shadow: none;
  padding: 10px;
}

.audio-search-panel {
  position: relative;
  overflow: visible;
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  border: 1px solid rgba(88, 104, 136, 0.35);
  border-radius: 16px;
  background: rgba(11, 17, 29, 0.88);
  box-shadow: none;
  padding: 14px 16px;
}

.audio-search-panel::before {
  display: none;
}

.audio-search-panel::after {
  display: none;
}

.audio-search-panel > * {
  position: relative;
  z-index: 1;
}

.audio-search-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.audio-search-panel .section-sub {
  margin: 0;
}

.audio-search-panel .section-title {
  margin: 6px 0 0;
  max-width: 980px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.05;
  letter-spacing: 0;
  color: #f5f8ff;
}

.audio-result-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid rgba(141, 159, 195, 0.3);
  background: rgba(255, 255, 255, 0.06);
  color: #ced6eb;
  backdrop-filter: none;
}

.audio-result-badge b {
  color: #ffffff;
  font-size: 14px;
}

.audio-search-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.audio-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(680px, 100%);
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(133, 157, 197, 0.3);
  background: rgba(16, 24, 40, 0.9);
  padding: 0 12px;
  box-shadow: none;
}

.audio-search-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(98, 194, 234, 0.12);
  color: #a7d4f7;
  font-size: 13px;
  line-height: 1;
  flex: 0 0 auto;
}

.audio-search-input {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.audio-search-input:focus {
  outline: none;
}

.audio-search-input::placeholder {
  color: #93a0be;
}

.audio-search-input-wrap:focus-within {
  border-color: rgba(95, 210, 233, 0.72);
  box-shadow: 0 0 0 3px rgba(95, 210, 233, 0.14);
}

#audioSearchReset {
  height: 46px;
  padding: 0 16px;
  border-radius: 12px;
  border-color: rgba(133, 157, 197, 0.3);
  background: rgba(255, 255, 255, 0.05);
  color: #e7ecf8;
  font-weight: 700;
}

#audioSearchReset:hover {
  border-color: rgba(133, 157, 197, 0.42);
  background: rgba(255, 255, 255, 0.1);
}

.audio-search-hint {
  margin: 0;
  color: #a4afc9;
  font-size: 13px;
}

.audio-list .track-row {
  grid-template-columns: 72px minmax(240px, 1.4fr) minmax(200px, 1fr) 170px;
  grid-template-rows: auto auto;
  grid-template-areas:
    "cover main wave price"
    "cover main wave btn";
  border: 1px solid rgba(88, 104, 136, 0.4);
  border-radius: 14px;
  background: rgba(14, 22, 38, 0.9);
  padding: 12px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.audio-list .track-row:hover {
  border-color: rgba(115, 139, 182, 0.62);
  background: rgba(16, 25, 43, 0.95);
}

.audio-list .track-row-cover {
  grid-area: cover;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  border-color: rgba(130, 149, 184, 0.45);
  box-shadow: none;
}

.audio-list .track-row-title {
  font-size: 18px;
  line-height: 1.3;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.audio-list .track-row-main {
  grid-area: main;
}

.audio-list .track-row-wave-wrap {
  grid-area: wave;
  border: 1px solid rgba(103, 122, 158, 0.33);
  border-radius: 12px;
  background: rgba(20, 29, 48, 0.74);
  padding: 8px 10px;
}

.audio-list .track-row-play {
  width: 30px;
  height: 30px;
  font-size: 11px;
  background: #32476f;
  box-shadow: none;
}

.audio-list .track-wave-visual {
  height: 20px;
  border-radius: 6px;
  opacity: 0.78;
  background-size: 11px 100%;
  animation: none;
}

.audio-list .track-row-sub {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  max-height: 2.8em;
}

.audio-list .track-row-duration {
  color: #afbddc;
  font-size: 12px;
  font-weight: 600;
}

.audio-list .track-row-price {
  grid-area: price;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: flex-end;
  line-height: 1.1;
  color: #d9def2;
  font-size: 26px;
  text-shadow: none;
}

.audio-list .track-row-price::before {
  content: none;
}

.audio-list .track-row-btn {
  grid-area: btn;
  width: 100%;
  height: 38px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.audio-list .track-row-btn.btn-primary {
  background: linear-gradient(120deg, #50b8ff, #5f7fff);
  box-shadow: none;
}

.audio-list .track-row-btn.btn-primary:hover {
  background: linear-gradient(120deg, #63c4ff, #6f8dff);
}

@media (prefers-reduced-motion: reduce) {
  .audio-list .track-wave-visual {
    animation: none;
  }
}

.track-row {
  display: grid;
  grid-template-columns: 56px minmax(240px, 1.4fr) minmax(160px, 1fr) 110px 94px;
  gap: 12px;
  align-items: center;
  border: 1px solid #242a3d;
  border-radius: 12px;
  background: #111622;
  padding: 8px;
}

.track-row-cover {
  width: 56px;
  height: 56px;
  border-radius: 9px;
  overflow: hidden;
  background: #181c29;
  border: 1px solid #2a3043;
}

.track-row-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.track-row-wave-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.track-row-play {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #fff;
  background: #2a3043;
  flex: 0 0 auto;
}

.track-wave-visual {
  position: relative;
  flex: 1;
  min-width: 80px;
  height: 20px;
  border-radius: 6px;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 5px,
    rgba(255, 255, 255, 0.44) 5px,
    rgba(255, 255, 255, 0.44) 6px,
    transparent 6px,
    transparent 11px
  );
  opacity: 0.72;
}

.track-row-duration {
  color: #8f97b0;
  font-size: 11px;
  white-space: nowrap;
}

.track-row-main {
  min-width: 0;
}

.track-row-title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #f2f4f8;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.track-row-sub {
  margin: 3px 0 0;
  color: #8f97b0;
  font-size: 12px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.track-row-price {
  color: #cec8ff;
  font-size: 18px;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.track-row-btn {
  width: 100%;
  height: 34px;
}

@media (max-width: 1150px) {
  .audio-clean-row {
    grid-template-columns: 42px 58px minmax(0, 1fr) 62px 40px;
    gap: 10px;
    padding: 8px 9px;
  }

  .audio-clean-index {
    font-size: 24px;
  }

  .audio-clean-cover {
    width: 58px;
    height: 58px;
  }

  .audio-clean-title {
    font-size: 16px;
  }

  .audio-clean-duration {
    font-size: 16px;
  }

  .audio-clean-play {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .track-hero {
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  }

  .track-hero-stats {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .track-row {
    grid-template-columns: 56px minmax(160px, 1.4fr) minmax(140px, 1fr) 88px;
  }

  .track-row-price {
    text-align: left;
    font-size: 16px;
  }

  .audio-list .track-row {
    grid-template-columns: 64px minmax(0, 1fr) 150px;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "cover main price"
      "cover main btn"
      "cover wave wave";
  }

  .audio-list .track-row-cover {
    width: 64px;
    height: 64px;
  }

  .audio-list .track-row-price {
    font-size: 22px;
  }

  .audio-list .track-row-btn {
    grid-column: auto;
  }
}

@media (max-width: 980px) {
  .audio-page-head {
    align-items: stretch;
  }

  .audio-inline-search {
    margin-left: 0;
    min-width: 0;
    width: 100%;
    flex-wrap: wrap;
  }

  .audio-inline-input {
    flex: 1 1 100%;
    min-width: 0;
  }

  .audio-inline-search #audioSearchReset {
    margin-left: auto;
  }

  .audio-catalog {
    border-radius: 14px;
  }

  .audio-list-toolbar {
    padding: 10px 12px;
  }

  .audio-list-result b {
    font-size: 15px;
  }

  .audio-catalog-body {
    padding: 10px;
  }

  .audio-clean-row {
    grid-template-columns: 34px 54px minmax(0, 1fr) 56px 38px;
    gap: 10px;
    padding: 8px;
  }

  .audio-clean-index {
    font-size: 20px;
  }

  .audio-clean-cover {
    width: 54px;
    height: 54px;
  }

  .audio-clean-title {
    font-size: 15px;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .audio-clean-meta {
    font-size: 12px;
  }

  .audio-clean-duration {
    font-size: 15px;
  }

  .audio-clean-play {
    width: 38px;
    height: 38px;
    font-size: 13px;
    box-shadow: none;
  }

  .site-header {
    top: 0;
    margin-top: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    max-width: none;
  }

  .header-inner {
    height: 68px;
    padding: 0 12px;
  }

  .header-search {
    display: none;
  }

  .track-hero {
    grid-template-columns: 1fr;
  }

  .track-hero-cover {
    max-width: 320px;
  }

  .track-hero-stats {
    grid-template-columns: 1fr;
  }

  .track-row {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
  }

  .track-row-wave-wrap,
  .track-row-price,
  .track-row-btn {
    grid-column: 2;
  }

  .track-row-wave-wrap {
    margin-top: -4px;
  }

  .track-row-price {
    text-align: left;
  }

  .track-row-btn {
    max-width: 120px;
  }

  .audio-list .track-row {
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    grid-template-areas:
      "cover main"
      "cover wave"
      "price price"
      "btn btn";
  }

  .audio-list .track-row-btn {
    max-width: none;
  }

  .audio-list .track-row-price {
    align-items: flex-start;
    justify-content: flex-start;
    font-size: 24px;
    text-align: left;
    margin-top: 2px;
  }

  .audio-search-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .audio-search-input-wrap {
    width: 100%;
  }

  .audio-search-head {
    align-items: flex-start;
    flex-direction: column;
  }

  #audioSearchReset {
    width: 100%;
  }
}

/* 2026-02 UX polish: system, steps, skeleton, states */
:root {
  --radius-xs: 8px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --space-1: 6px;
  --space-2: 10px;
  --space-3: 14px;
  --space-4: 18px;
  --shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.checkout-steps {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.checkout-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #2a3043;
  border-radius: 999px;
  padding: 7px 12px;
  color: #98a1b9;
  background: #111621;
  white-space: nowrap;
}

.checkout-step-index {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #d7dded;
  background: #28304a;
}

.checkout-step-label {
  font-size: 12px;
  font-weight: 700;
}

.checkout-step.is-active {
  border-color: rgba(125, 116, 255, 0.8);
  color: #f2f4f8;
  background: linear-gradient(120deg, rgba(105, 96, 255, 0.22), rgba(125, 116, 255, 0.14));
}

.checkout-step.is-active .checkout-step-index {
  color: #fff;
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
}

.checkout-step.is-done {
  border-color: rgba(47, 207, 151, 0.4);
  color: #c9f8e4;
  background: rgba(47, 207, 151, 0.12);
}

.checkout-step.is-done .checkout-step-index {
  color: #0f3429;
  background: #7be0b9;
}

.skeleton-list {
  display: grid;
  gap: 10px;
}

.skeleton-row,
.skeleton-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #252b3d;
  border-radius: 12px;
  background: #111621;
}

.skeleton-row {
  min-height: 88px;
}

.skeleton-card {
  min-height: 240px;
}

.skeleton-row::before,
.skeleton-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  transform: translateX(-100%);
  animation: skeleton-sweep 1.2s ease-in-out infinite;
}

@keyframes skeleton-sweep {
  to {
    transform: translateX(100%);
  }
}

.state-card {
  border: 1px solid #2c3347;
  border-radius: 12px;
  background: #111722;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.state-card .state-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.state-card .state-text {
  margin: 0;
  color: #a6aec4;
  font-size: 13px;
}

.state-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-box .btn {
  margin-top: 8px;
}

.retry-inline {
  margin-left: 8px;
}

@media (max-width: 760px) {
  .btn {
    min-height: 44px;
    padding: 0 14px;
  }

  .input,
  textarea.input {
    min-height: 44px;
  }

  .hero-cta {
    gap: 8px;
  }

  .cart-page-item {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .cart-page-item img {
    width: 62px;
    height: 62px;
  }
}

/* 2026-03 mobile refinement */
@media (max-width: 980px) {
  .container,
  .site-main .container,
  .site-footer .container {
    width: min(100%, calc(100vw - 20px));
  }

  .section {
    margin-top: 14px;
  }

  .mobile-toggle {
    position: relative;
    z-index: 1310;
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  body.mobile-nav-open {
    overflow: hidden;
  }

  body.mobile-nav-open::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(2, 7, 15, 0.58);
    z-index: 1290;
  }

  .mobile-nav {
    display: grid;
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    bottom: 0;
    width: min(320px, calc(100vw - 20px));
    max-height: 100vh;
    overflow-y: auto;
    border-radius: 16px 0 0 16px;
    border-right: 0;
    padding: 72px 12px 14px;
    gap: 8px;
    box-shadow: -18px 0 36px rgba(3, 8, 16, 0.52);
    z-index: 1300;
    transform: translateX(calc(100% + 14px));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.26s ease, opacity 0.2s ease, visibility 0s linear 0.26s;
  }

  .mobile-nav.open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s, 0s, 0s;
  }

  .mobile-nav .nav-link {
    justify-content: flex-start;
    min-height: 36px;
    border-radius: 8px;
  }

  .mobile-auth {
    padding-top: 6px;
    gap: 6px;
    border-top: 1px solid rgba(120, 136, 165, 0.2);
  }

  .home-banner {
    min-height: 240px;
    padding: 16px;
    border-radius: 14px;
  }

  .home-banner-title {
    font-size: clamp(22px, 5.8vw, 30px);
    line-height: 1.12;
  }

  .track-title {
    font-size: clamp(22px, 5.8vw, 30px);
  }

  .audio-list .track-row-price {
    font-size: 18px;
  }
}

@media (max-width: 760px) {
  .container,
  .site-main .container,
  .site-footer .container {
    width: min(100%, calc(100vw - 16px));
  }

  .site-header {
    top: 0;
  }

  .header-inner {
    height: 60px;
    padding: 0 10px;
    gap: 8px;
  }

  .brand img {
    height: 24px;
    max-width: 132px;
  }

  .mobile-toggle {
    width: 38px;
    height: 38px;
  }

  .mobile-nav {
    width: min(304px, calc(100vw - 16px));
    padding: 64px 10px 12px;
    border-radius: 14px 0 0 14px;
  }

  .mobile-nav .nav-link {
    min-height: 34px;
    padding: 0 10px;
    font-size: 13px;
  }

  .btn {
    height: 36px;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 13px;
  }

  .input,
  textarea.input {
    min-height: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 13px;
  }

  .section-title {
    font-size: clamp(18px, 6.2vw, 24px);
  }

  .section-sub {
    font-size: 12px;
  }

  .home-banner {
    min-height: 210px;
    padding: 14px;
    border-radius: 12px;
  }

  .home-banner-subtitle {
    font-size: 11px;
  }

  .home-banner-title {
    font-size: clamp(18px, 7vw, 24px);
  }

  .track-title {
    font-size: clamp(18px, 7vw, 24px);
    line-height: 1.14;
  }

  .track-price-inline strong {
    font-size: 20px;
  }

  .track-meta-item span {
    font-size: 11px;
  }

  .track-meta-item b {
    font-size: 14px;
  }

  .audio-hero {
    min-height: 220px;
    border-radius: 14px;
  }

  .audio-hero-head {
    padding: 14px 14px 4px;
  }

  .audio-hero-title {
    font-size: clamp(18px, 7vw, 24px);
  }

  .audio-hero-meta {
    font-size: 12px;
  }

  .audio-hero-meta b {
    font-size: 14px;
  }

  .audio-hero-search {
    margin-top: 16px;
    padding: 0 14px 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .audio-hero-search-input {
    width: 100%;
    height: 40px;
    border-radius: 10px;
    padding: 0 10px;
  }

  .audio-hero-search #audioSearchReset {
    width: 100%;
    height: 36px;
  }

  .audio-catalog,
  .audio-detail-main,
  .audio-detail-side,
  .audio-unlock-card {
    border-radius: 12px;
  }

  .audio-unlock-card {
    padding: 8px;
    gap: 8px;
  }

  .audio-paywall {
    max-width: 100%;
    min-height: 0;
    gap: 6px;
    padding: 6px 0 0;
  }

  .audio-paywall-icon {
    width: 46px;
    height: 46px;
  }

  .audio-paywall-icon svg {
    width: 16px;
    height: 16px;
  }

  .audio-paywall-title,
  .audio-paywall-desc,
  .audio-paywall-desc strong {
    font-size: 14px;
  }

  .audio-paywall-cta,
  .audio-unlock-actions .btn {
    height: 36px;
    min-height: 36px;
    font-size: 13px;
    border-radius: 10px;
  }

  .audio-paywall-cta {
    padding: 0 12px;
  }

  .audio-paywall-cta-icon {
    width: 16px;
    height: 16px;
  }

  .audio-payment-box .modal-dialog {
    margin: 8px auto;
    max-width: calc(100vw - 16px);
  }

  .audio-payment-modal {
    width: 100%;
    max-height: calc(100vh - 16px);
    border-radius: 10px;
    padding: 10px;
    gap: 9px;
  }

  .audio-payment-head h3,
  .audio-payment-qr-section h4,
  .audio-payment-head-amount {
    font-size: 14px;
  }

  .audio-payment-close {
    width: 28px;
    height: 28px;
    font-size: 22px;
  }

  .audio-payment-head-meta,
  .audio-payment-invoice,
  .audio-payment-qr-section p,
  .audio-payment-or,
  .audio-payment-app-title {
    font-size: 11px;
  }

  .audio-payment-check-btn {
    min-height: 36px;
    border-radius: 9px;
    font-size: 13px;
  }

  .audio-payment-qr-frame {
    width: min(100%, 188px);
    padding: 6px;
    border-radius: 8px;
  }

  .audio-payment-apps {
    gap: 6px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audio-bank-tile {
    min-height: 74px;
    border-radius: 8px;
    padding: 6px 4px;
    gap: 5px;
  }

  .audio-bank-logo-shell {
    width: 28px;
    height: 28px;
    border-radius: 7px;
  }

  .audio-bank-name {
    font-size: 10px;
  }

  .audio-list .track-row {
    padding: 8px;
    gap: 8px;
  }

  .audio-list .track-row-price {
    font-size: 16px;
    margin-top: 0;
  }
}

@media (max-width: 520px) {
  .container,
  .site-main .container,
  .site-footer .container {
    width: min(100%, calc(100vw - 14px));
  }

  .header-inner {
    height: 56px;
    padding: 0 8px;
  }

  .mobile-toggle {
    width: 36px;
    height: 36px;
  }

  .mobile-nav {
    width: min(286px, calc(100vw - 12px));
    padding: 60px 8px 10px;
    border-radius: 12px 0 0 12px;
  }

  .mobile-nav .nav-link {
    min-height: 32px;
    font-size: 12px;
  }

  .mobile-auth .btn,
  .mobile-auth button {
    min-height: 32px;
    height: 32px;
    font-size: 12px;
  }

  .section {
    margin-top: 12px;
  }

  .home-banner {
    min-height: 190px;
    padding: 12px;
  }

  .home-banner-title {
    font-size: 20px;
  }

  .audio-detail-cover {
    max-width: 220px;
  }

  .audio-payment-modal {
    border-radius: 9px;
    padding: 8px;
  }

  .audio-payment-apps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 390px) {
  .audio-payment-apps {
    grid-template-columns: 1fr;
  }
}

/* ===== TOTO 2026 Public Refresh ===== */
:root {
  --bg: #f2f4f7;
  --surface: #ffffff;
  --surface-2: #f8f9fc;
  --line: #e3e6ee;
  --text: #12151d;
  --muted: #616b7b;
  --brand: #ef2f67;
  --brand-2: #111317;
  --container: min(1240px, calc(100vw - 52px));
}

body {
  color: var(--text);
  background: radial-gradient(1100px 420px at 100% -120px, #ffe4ee 0%, transparent 65%),
    radial-gradient(900px 300px at -8% -120px, #e7ebff 0%, transparent 66%),
    var(--bg);
}

body::before {
  display: none;
}

.site-header {
  background: rgba(248, 250, 253, 0.96);
  border-bottom: 1px solid #e4e8f0;
  backdrop-filter: blur(14px);
}

.site-header.is-scrolled {
  background: rgba(251, 252, 255, 0.98);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  height: auto;
  padding: 16px 0 12px;
}

.brand {
  min-width: 132px;
}

.brand img {
  height: 44px;
  max-width: 220px;
  object-fit: contain;
}

.header-search {
  position: relative;
  width: 100%;
}

.header-search::before {
  content: "⌕";
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #8993a6;
  font-size: 16px;
  font-weight: 700;
  pointer-events: none;
}

.header-search .input {
  height: 50px;
  border-radius: 16px;
  border: 1px solid #e2e6ee;
  background: #f0f2f7;
  color: #1b2230;
  font-weight: 600;
  padding: 0 16px 0 42px;
}

.header-search .input::placeholder {
  color: #8993a6;
}

.header-actions {
  gap: 8px;
}

.header-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid #dde2eb;
  background: #ffffff;
  color: #333846;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
}

.header-icon-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand);
  border: 2px solid #fff;
  position: absolute;
  top: 9px;
  right: 9px;
}

.cart-link {
  border: 1px solid #dde2eb;
  background: #fff;
  color: #1d2431;
  border-radius: 12px;
  height: 42px;
  font-size: 13px;
  font-weight: 700;
}

.auth-guest .btn,
.auth-user .profile-trigger {
  height: 42px;
  border-radius: 12px;
  border: 1px solid #dde2eb;
  background: #fff;
  color: #212838;
}

.profile-trigger {
  background: #fff;
}

.profile-avatar {
  background: linear-gradient(135deg, var(--brand), #ff7aa0);
  color: #fff;
}

.profile-caret {
  color: #6f7786;
}

.profile-menu {
  border: 1px solid #e0e5ef;
  background: #fff;
  box-shadow: 0 20px 36px rgba(16, 24, 40, 0.14);
}

.profile-menu a,
.profile-menu button {
  color: #212838;
  border-bottom: 1px solid #edf0f5;
}

.profile-menu a:hover,
.profile-menu button:hover {
  background: #f7f9fc;
}

.mobile-toggle {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid #dde2eb;
  background: #fff;
  color: #2d3443;
  display: inline-flex;
}

.nav-links {
  grid-column: 1 / -1;
  border-top: 1px solid #e9edf4;
  padding-top: 10px;
  gap: 10px;
}

.nav-link {
  color: #5f6775;
  border: 1px solid transparent;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

.nav-link:hover,
.nav-link.active {
  color: #141925;
  border-color: #e2e6ef;
  background: #fff;
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.08);
}

.mobile-nav {
  border: 1px solid #e2e6ef;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 36, 0.16);
}

.mobile-auth button {
  border: 1px solid #dde3ec;
  background: #fff;
  color: #1d2430;
}

.site-main {
  padding: 26px 0 52px;
}

.site-footer {
  border-top: 1px solid #e5e9f1;
  background: #fff;
  color: #5f6776;
}

.footer-inner {
  min-height: 68px;
}

.btn {
  border-radius: 12px;
}

.btn-primary {
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}

.btn-primary:hover {
  background: #db2459;
  border-color: #db2459;
}

.btn-outline {
  border: 1px solid #dce2ec;
  background: #fff;
  color: #232a38;
}

.btn-outline:hover {
  border-color: #cdd6e6;
  background: #f8faff;
}

.home-canvas {
  display: grid;
  gap: 26px;
}

.home-hero-strip,
.story-section,
.feed-section,
.catalog-section {
  border-radius: 24px;
  border: 1px solid #e3e7ef;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.home-hero-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 28px;
  overflow: hidden;
  position: relative;
}

.home-hero-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.28)), var(--banner-bg) center/cover;
  z-index: 0;
}

.home-hero-strip > * {
  position: relative;
  z-index: 1;
}

.home-hero-subtitle {
  margin: 0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  color: var(--brand);
}

.home-hero-title {
  margin: 8px 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1.05;
  color: #10141d;
}

.home-hero-title .is-highlight {
  color: var(--brand);
}

.home-hero-text {
  margin: 0;
  max-width: 680px;
  color: #485264;
  font-size: 15px;
  font-weight: 600;
}

.story-section,
.feed-section,
.catalog-section {
  padding: 24px;
}

.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.section-row h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(24px, 2.7vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.section-note {
  margin: 0;
  color: #6e7686;
  font-size: 13px;
  font-weight: 700;
}

.story-filters {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.story-filter {
  height: 36px;
  border-radius: 999px;
  border: 1px solid #e0e5ef;
  padding: 0 14px;
  background: #f7f9fc;
  color: #4f596b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.story-filter.active {
  background: #11141b;
  border-color: #11141b;
  color: #fff;
}

.story-rail-wrap {
  overflow-x: auto;
  padding-bottom: 6px;
}

.story-rail-wrap::-webkit-scrollbar {
  height: 8px;
}

.story-rail-wrap::-webkit-scrollbar-thumb {
  background: #d6dbe6;
  border-radius: 999px;
}

.story-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(188px, 1fr);
  gap: 16px;
}

.story-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 280px;
  display: block;
  color: #fff;
  transform: translateY(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.22);
}

.story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(16, 24, 40, 0.26);
}

.story-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 20, 0.02), rgba(10, 14, 20, 0.82));
}

.story-card-body {
  position: absolute;
  inset: auto 14px 12px;
}

.story-card-body h3 {
  margin: 8px 0 4px;
  font-size: 19px;
  line-height: 1.12;
}

.story-card-body p {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.86);
}

.story-card-tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.36);
  padding: 0 10px;
  font-size: 11px;
  letter-spacing: 0.04em;
  font-weight: 800;
  text-transform: uppercase;
}

.story-card-skeleton {
  min-height: 280px;
  border-radius: 18px;
  background: linear-gradient(90deg, #edf1f8, #f8f9fc, #edf1f8);
  background-size: 200% 100%;
  animation: totoShimmer 1.4s linear infinite;
}

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

.media-tile {
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  min-height: 230px;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.14);
}

.media-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 16, 24, 0.06), rgba(12, 16, 24, 0.8));
}

.media-tile-body {
  position: absolute;
  inset: auto 14px 12px;
  color: #fff;
}

.media-tile-body span {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.88);
}

.media-tile-body h3 {
  margin: 6px 0 0;
  font-size: 18px;
  line-height: 1.2;
}

.media-tile-skeleton {
  min-height: 230px;
  border-radius: 18px;
  background: linear-gradient(90deg, #edf1f8, #f8f9fc, #edf1f8);
  background-size: 200% 100%;
  animation: totoShimmer 1.4s linear infinite;
}

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

.catalog-panel {
  border: 1px solid #e6eaf2;
  border-radius: 18px;
  background: #fbfcff;
  padding: 14px;
}

.catalog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.catalog-head h3 {
  margin: 0;
  font-size: 18px;
  font-family: "Space Grotesk", sans-serif;
}

.catalog-head a {
  color: #5b6576;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.catalog-list {
  display: grid;
  gap: 10px;
}

.catalog-item {
  display: grid;
  grid-template-columns: 66px 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #e6eaf1;
  border-radius: 12px;
  padding: 8px;
  background: #fff;
}

.catalog-item img {
  width: 66px;
  height: 66px;
  border-radius: 9px;
  object-fit: cover;
}

.catalog-item-body h4 {
  margin: 0;
  color: #182030;
  font-size: 14px;
  line-height: 1.2;
}

.catalog-item-body p {
  margin: 4px 0 0;
  color: #677081;
  font-size: 12px;
  line-height: 1.3;
}

.catalog-price {
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.catalog-item-skeleton {
  min-height: 82px;
  border-radius: 12px;
  background: linear-gradient(90deg, #edf1f8, #f8f9fc, #edf1f8);
  background-size: 200% 100%;
  animation: totoShimmer 1.4s linear infinite;
}

.empty-block {
  border: 1px dashed #d5dce8;
  border-radius: 12px;
  padding: 22px;
  text-align: center;
  color: #727b8c;
  font-size: 13px;
  font-weight: 700;
}

@keyframes totoShimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .brand {
    grid-column: 1 / -1;
  }

  .header-search {
    grid-column: 1 / 2;
  }

  .header-actions {
    grid-column: 2 / 3;
  }

  .nav-links {
    grid-column: 1 / -1;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .home-hero-strip {
    padding: 22px;
    flex-direction: column;
    align-items: flex-start;
  }

  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .container,
  .site-main .container,
  .site-footer .container {
    width: min(100%, calc(100vw - 18px));
  }

  .header-search .input {
    height: 44px;
    border-radius: 13px;
  }

  .header-icon-btn,
  .cart-link,
  .auth-guest .btn,
  .auth-user .profile-trigger,
  .mobile-toggle {
    height: 38px;
    border-radius: 10px;
  }

  .section-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .story-rail {
    grid-auto-columns: minmax(150px, 1fr);
  }

  .story-card,
  .story-card-skeleton {
    min-height: 220px;
  }

  .media-grid {
    grid-template-columns: 1fr;
  }

  .media-tile,
  .media-tile-skeleton {
    min-height: 220px;
  }
}

/* ===== TOTO Reference Strict (home only) ===== */
.home-ref-mode {
  background: #f2f2f2;
  color: #1a1d24;
}

.home-ref-mode .site-header {
  position: static;
  border-bottom: 0;
  background: transparent;
  backdrop-filter: none;
}

.home-ref-mode .site-header.is-scrolled {
  background: transparent;
}

.home-ref-mode .site-main {
  padding: 10px 0 26px;
}

.home-ref-mode .site-footer,
.home-ref-mode .brand,
.home-ref-mode .cart-link,
.home-ref-mode .auth-guest,
.home-ref-mode .auth-user,
.home-ref-mode .nav-links,
.home-ref-mode .mobile-nav {
  display: none !important;
}

.home-ref-mode .header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  height: auto;
  padding: 0;
}

.home-ref-mode .header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.home-ref-mode .header-search {
  width: 100%;
  position: relative;
}

.home-ref-mode .header-search::before {
  content: "⌕";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #a2a7b3;
  font-size: 17px;
  line-height: 1;
  font-weight: 700;
  pointer-events: none;
}

.home-ref-mode .header-search .input {
  height: 52px;
  border-radius: 18px;
  border: 0;
  background: #ececec;
  color: #202432;
  padding: 0 16px 0 44px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px #ececec;
}

.home-ref-mode .header-search .input::placeholder {
  color: #7f8796;
}

.home-ref-mode .header-icon-btn,
.home-ref-mode .mobile-toggle {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  color: #8e96a5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home-ref-mode .mobile-toggle {
  font-size: 20px;
  line-height: 1;
}

.home-ref-mode .header-icon-dot {
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-width: 2px;
}

.home-ref {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 8px 0 0;
  box-shadow: none;
}

.home-ref-block + .home-ref-block {
  margin-top: 36px;
}

.home-ref-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.home-ref-head h2 {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: #272b34;
}

.home-ref-featured-title {
  position: relative;
  padding-bottom: 8px;
  color: #ffffff !important;
}

.home-ref-featured-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 92px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), rgba(239, 47, 103, 0.3));
}

.home-ref-pill {
  height: 42px;
  border-radius: 999px;
  border: 0;
  background: #f1f1f1;
  color: #585f6c;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.home-ref-story-shell {
  position: relative;
}

.home-ref-story-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.home-ref-story-wrap::-webkit-scrollbar {
  display: none;
}

.home-ref-story-rail {
  display: flex;
  gap: 18px;
  width: max-content;
  user-select: none;
}

.home-ref-story-card,
.home-ref-story-skeleton {
  flex: 0 0 174px;
  height: 276px;
  border-radius: 14px;
  overflow: hidden;
}

.home-ref-story-card {
  position: relative;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.home-ref-story-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.home-ref-scroll-hit {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 56px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.home-ref-scroll-hit.is-left {
  left: 0;
  justify-content: flex-start;
  padding-left: 4px;
  background: linear-gradient(90deg, rgba(11, 15, 22, 0.48), rgba(11, 15, 22, 0));
}

.home-ref-scroll-hit.is-right {
  right: 0;
  justify-content: flex-end;
  padding-right: 4px;
  background: linear-gradient(270deg, rgba(11, 15, 22, 0.48), rgba(11, 15, 22, 0));
}

.home-ref-scroll-hit:hover {
  color: #ffffff;
}

.home-ref-story-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.64));
}

.home-ref-story-title {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.34);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-ref-story-price {
  position: absolute;
  left: 12px;
  right: auto;
  bottom: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(12, 18, 32, 0.62);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.home-ref-story-skeleton,
.home-ref-grid-skeleton,
.home-ref-media-skeleton {
  background: linear-gradient(90deg, #eceff4, #f7f8fa, #eceff4);
  background-size: 200% 100%;
  animation: totoShimmer 1.4s linear infinite;
}

.home-ref-feed-block {
  position: relative;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #283750;
  background: linear-gradient(180deg, rgba(15, 23, 37, 0.96) 0%, rgba(11, 18, 30, 0.98) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 14px 28px rgba(0, 0, 0, 0.24);
}

.home-ref-feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.home-ref-feed-toggle {
  width: min(360px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
  border-radius: 12px;
  background: #162235;
  border: 1px solid #2b3c58;
  margin-bottom: 0;
}

.home-ref-feed-tab {
  height: 36px;
  border-radius: 9px;
  border: 0;
  background: transparent;
  color: #8ea3c8;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.home-ref-feed-tab.is-active {
  background: linear-gradient(180deg, #213451 0%, #1a2a42 100%);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(88, 120, 176, 0.65), 0 6px 14px rgba(0, 0, 0, 0.28);
}

.home-ref-feed-all {
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #314663;
  background: #152235;
  color: #d9e6ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.home-ref-feed-all:hover {
  color: #ffffff;
  border-color: #4d668e;
  box-shadow: inset 0 0 0 1px rgba(119, 146, 190, 0.35);
}

.home-ref-feed-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.home-ref-media-card,
.home-ref-media-skeleton {
  position: relative;
  display: block;
  height: 320px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #2a3a55;
  background: #121b2b;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.home-ref-media-card img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.home-ref-media-card:hover img {
  transform: scale(1.03);
}

.home-ref-media-chip {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(184, 198, 224, 0.38);
  background: rgba(14, 21, 34, 0.66);
  color: #dce8ff;
  font-size: 11px;
  font-weight: 700;
  line-height: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-ref-media-actions {
  display: none;
}

.home-ref-media-actions span {
  display: none;
}

.home-ref-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 16, 27, 0) 34%, rgba(10, 16, 27, 0.7) 74%, rgba(10, 16, 27, 0.94) 100%);
}

.home-ref-media-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 14px 12px;
  z-index: 2;
  color: #ffffff;
}

.home-ref-media-content h3 {
  margin: 0;
  font-size: clamp(20px, 1.45vw, 26px);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.01em;
  max-width: 100%;
}

.home-ref-media-content p {
  margin: 6px 0 0;
  max-width: 100%;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(216, 225, 240, 0.9);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-ref-media-meta {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(206, 219, 240, 0.9);
}

.home-ref-media-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(163, 183, 216, 0.5);
  background: rgba(8, 14, 23, 0.64);
  color: #dce8ff;
  font-size: 10px;
  font-weight: 700;
}

.home-ref-empty {
  border: 1px dashed #dbdee4;
  border-radius: 12px;
  padding: 20px;
  color: #727985;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  width: 100%;
}

@media (max-width: 1080px) {
  .home-ref-head h2 {
    font-size: 20px;
  }

  .home-ref-feed-stack {
    gap: 12px;
  }

  .home-ref-media-card,
  .home-ref-media-skeleton {
    height: 290px;
  }

  .home-ref-media-content h3 {
    font-size: clamp(18px, 2.9vw, 23px);
  }
}

@media (max-width: 720px) {
  .home-ref {
    padding: 6px 0 0;
  }

  .home-ref-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 10px;
    margin-bottom: 12px;
  }

  .home-ref-head h2 {
    font-size: 20px;
    white-space: nowrap;
  }

  .home-ref-pill {
    flex-shrink: 0;
  }

  .home-ref-story-card,
  .home-ref-story-skeleton {
    flex-basis: 146px;
    height: 230px;
  }

  .home-ref-scroll-hit {
    width: 42px;
    font-size: 24px;
  }

  .home-ref-story-title {
    font-size: 12px;
  }

  .home-ref-story-price {
    bottom: 44px;
    min-height: 22px;
    padding: 0 9px;
    font-size: 10px;
  }

  .home-ref-feed-block {
    padding: 10px;
    border-radius: 18px;
  }

  .home-ref-feed-head {
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
  }

  .home-ref-feed-toggle {
    width: 100%;
    padding: 3px;
    gap: 3px;
    margin-bottom: 0;
  }

  .home-ref-feed-tab {
    height: 34px;
    font-size: 12px;
  }

  .home-ref-feed-all {
    height: 34px;
    padding: 0 10px;
    font-size: 11px;
  }

  .home-ref-feed-stack {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .home-ref-media-card,
  .home-ref-media-skeleton {
    height: 250px;
    border-radius: 14px;
  }

  .home-ref-media-chip {
    top: 10px;
    left: 10px;
    height: 22px;
    padding: 0 9px;
    font-size: 10px;
    line-height: 21px;
  }

  .home-ref-media-content {
    padding: 12px 12px 10px;
  }

  .home-ref-media-content h3 {
    font-size: clamp(17px, 5vw, 21px);
    max-width: 100%;
  }

  .home-ref-media-content p {
    margin-top: 5px;
    max-width: 100%;
    font-size: 12px;
  }

  .home-ref-media-meta {
    margin-top: 8px;
    gap: 6px;
    font-size: 9px;
    letter-spacing: 0.08em;
  }

  .home-ref-media-avatar {
    width: 20px;
    height: 20px;
    font-size: 9px;
  }
}

/* ===== Global Dark Mode Override ===== */
:root {
  --bg: #0b0f16;
  --surface: #111825;
  --surface-2: #171f2e;
  --line: rgba(164, 178, 204, 0.24);
  --text: #e8efff;
  --muted: #9aabc7;
  --brand: #ef2f67;
  --brand-2: #0f131c;
}

body {
  color: var(--text);
  background: radial-gradient(1000px 420px at 100% -120px, rgba(239, 47, 103, 0.16) 0%, transparent 62%),
    radial-gradient(900px 340px at 0% -160px, rgba(65, 115, 255, 0.16) 0%, transparent 64%),
    var(--bg);
}

.site-header {
  background: rgba(8, 12, 19, 0.9);
  border-bottom: 1px solid #202939;
}

.site-header.is-scrolled {
  background: rgba(8, 12, 19, 0.97);
}

.header-search::before {
  color: #8898b3;
}

.header-search .input {
  border-color: #293446;
  background: #111a28;
  color: #e8efff;
}

.header-search .input::placeholder {
  color: #8796b1;
}

.header-icon-btn,
.mobile-toggle,
.cart-link,
.auth-guest .btn,
.auth-user .profile-trigger {
  border-color: #2a3548;
  background: #111a28;
  color: #dce6fa;
}

.header-icon-dot {
  border-color: #111a28;
}

.profile-caret {
  color: #97a8c3;
}

.profile-menu {
  border-color: #2a3548;
  background: #111a28;
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.42);
}

.profile-menu a,
.profile-menu button {
  color: #dde8ff;
  border-bottom-color: #223045;
}

.profile-menu a:hover,
.profile-menu button:hover {
  background: #1a2538;
}

.nav-links {
  border-top-color: #1f2a3d;
}

.nav-link {
  color: #9db0cf;
}

.nav-link:hover,
.nav-link.active {
  color: #f3f7ff;
  border-color: #2c3a52;
  background: #141e2f;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.34);
}

.mobile-nav {
  border-color: #293547;
  background: #0f1827;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.44);
}

.mobile-auth button {
  border-color: #2a3548;
  background: #111a28;
  color: #dce6fa;
}

.site-footer {
  border-top-color: #1f2a3c;
  background: #0d1421;
  color: #9eb0cb;
}

.btn-outline {
  border-color: #2a3548;
  background: #111a28;
  color: #dce6fa;
}

.btn-outline:hover {
  border-color: #34445f;
  background: #162235;
}

/* home reference strict дээр dark өнгө */
.home-ref-mode {
  background: #0b0f16;
  color: #e8efff;
}

.home-ref-mode .header-search::before {
  color: #8fa1bf;
}

.home-ref-mode .header-search .input {
  background: #121a28;
  color: #e8efff;
  box-shadow: inset 0 0 0 1px #2a3548;
}

.home-ref-mode .header-search .input::placeholder {
  color: #8698b5;
}

.home-ref-mode .header-icon-btn,
.home-ref-mode .mobile-toggle {
  color: #9bb0d1;
}

.home-ref-head h2 {
  color: #272b34;
}

.home-ref-pill {
  background: #1b2536;
  color: #c5d3ea;
}

.home-ref-story-wrap::-webkit-scrollbar-thumb {
  background: #38465f;
}

.home-ref-empty {
  border-color: #33435f;
  color: #9fb2cf;
}

/* ===== Home Primary Pill Tune ===== */
.home-ref-pill--primary {
  position: relative;
  isolation: isolate;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(140deg, #121a29 0%, #1a2538 62%, #202e46 100%);
  color: #ffffff;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 8px 18px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(239, 47, 103, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.home-ref-pill--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, rgba(239, 47, 103, 0.76), rgba(239, 47, 103, 0.08) 45%, rgba(255, 255, 255, 0.16) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.9;
  z-index: 0;
}

.home-ref-pill--primary:hover {
  transform: translateY(-1px);
  border-color: rgba(239, 47, 103, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 10px 20px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(239, 47, 103, 0.26);
}

.home-ref-pill--primary:focus-visible {
  outline: 2px solid rgba(239, 47, 103, 0.72);
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .home-ref-pill--primary {
    height: 40px;
    padding: 0 15px;
    font-size: 12px;
  }
}

/* ===== Header 2026 Refresh ===== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  margin: 0;
  max-width: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  background: rgba(8, 12, 19, 0.92);
  border-bottom: 1px solid #202939;
  backdrop-filter: blur(14px);
  z-index: 60;
}

.site-header.is-scrolled {
  background: rgba(8, 12, 19, 0.98);
}

.site-header .container {
  width: var(--container);
  margin: 0 auto;
}

.header-inner {
  display: grid;
  grid-template-columns: auto minmax(320px, 1fr) auto;
  align-items: center;
  gap: 12px 14px;
  height: auto;
  padding: 12px 0 10px;
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
}

.brand img {
  height: 35px;
  max-width: 270px;
  object-fit: contain;
  margin: 1em 0;
}

.header-search {
  width: 100%;
  max-width: 520px;
  justify-self: center;
}

.header-search::before {
  color: #8ea1c0;
}

.header-search .input {
  height: 38px;
  border-radius: 12px;
  border: 1px solid #2a364b;
  background: #101a2a;
  color: #e8efff;
  padding: 0 14px 0 42px;
  font-size: 14px;
}

.header-search .input::placeholder {
  color: #8da0bf;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cart-link,
.auth-guest .btn,
.auth-user .profile-trigger {
  height: 38px;
  border-radius: 11px;
  border: 1px solid #2b374c;
  background: #101a2a;
  color: #dce7fc;
  font-size: 12px;
  font-weight: 700;
}

.cart-link {
  white-space: nowrap;
  padding: 0 12px;
}

.auth-guest .btn {
  padding: 0 14px;
}

.auth-user .profile-trigger {
  padding: 0 10px;
}

.profile-caret {
  color: #9cb0d0;
}

.nav-links {
  grid-column: 1 / -1;
  border-top: 1px solid #1f2a3c;
  padding-top: 8px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.nav-link {
  white-space: nowrap;
  color: #9db0cf;
  background: #121d2d;
  border: 1px solid #24334b;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 13px;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  border-color: rgba(239, 47, 103, 0.5);
  background: #18263a;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.34);
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 10px 0;
  }

  .brand {
    grid-column: 1 / 2;
  }

  .header-actions {
    grid-column: 2 / 3;
  }

  .header-search {
    grid-column: 1 / -1;
    order: 3;
    max-width: none;
    justify-self: stretch;
  }

  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .profile-name {
    display: none;
  }
}

@media (max-width: 680px) {
  .header-search .input {
    height: 36px;
    border-radius: 11px;
  }

  .cart-link,
  .auth-guest .btn,
  .auth-user .profile-trigger,
  .mobile-toggle {
    height: 34px;
    border-radius: 10px;
    font-size: 11px;
  }

  .cart-link {
    padding: 0 10px;
  }

  .auth-guest .btn {
    padding: 0 11px;
  }
}

/* Home дээр өмнөх hide-г болиулж шинэ header-ийг ижил харуулна */
.home-ref-mode .site-header {
  position: sticky !important;
  top: 0;
  left: 0;
  width: 100%;
  margin: 0;
  max-width: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  background: rgba(8, 12, 19, 0.92) !important;
  border-bottom: 1px solid #202939 !important;
  backdrop-filter: blur(14px) !important;
}

.home-ref-mode .site-header.is-scrolled {
  background: rgba(8, 12, 19, 0.98) !important;
}

.home-ref-mode .brand,
.home-ref-mode .cart-link,
.home-ref-mode .auth-guest,
.home-ref-mode .auth-user,
.home-ref-mode .nav-links {
  display: inline-flex !important;
}

.home-ref-mode .nav-links {
  display: flex !important;
}

.home-ref-mode .auth-guest[hidden],
.home-ref-mode .auth-user[hidden] {
  display: none !important;
}

.home-ref-mode .header-inner {
  grid-template-columns: auto minmax(320px, 1fr) auto !important;
  gap: 12px 14px !important;
  padding: 12px 0 10px !important;
}

.home-ref-mode .header-search {
  width: 100% !important;
  position: relative !important;
}

.home-ref-mode .header-search .input {
  height: 38px !important;
  border-radius: 12px !important;
  border: 1px solid #2a364b !important;
  background: #101a2a !important;
  color: #e8efff !important;
  padding: 0 14px 0 42px !important;
  box-shadow: none !important;
}

.home-ref-mode .mobile-nav {
  display: none !important;
}

.home-ref-mode .mobile-nav.open {
  display: grid !important;
}

@media (max-width: 980px) {
  .home-ref-mode .header-inner {
    grid-template-columns: 1fr auto !important;
    gap: 10px !important;
    padding: 10px 0 !important;
  }

  .home-ref-mode .header-search {
    grid-column: 1 / -1 !important;
    order: 3;
    max-width: none !important;
    justify-self: stretch !important;
  }

  .home-ref-mode .nav-links {
    display: none !important;
  }

  .home-ref-mode .mobile-toggle {
    display: inline-flex !important;
  }

  .home-ref-mode .profile-name {
    display: none;
  }
}

@media (max-width: 520px) {
  .header-actions .btn,
  .header-actions .profile-trigger {
    display: inline-flex !important;
  }

  .header-inner {
    gap: 8px 10px;
  }

  .header-search .input,
  .home-ref-mode .header-search .input {
    height: 34px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    padding-left: 38px !important;
  }

  .header-actions {
    gap: 6px;
  }

  .cart-link,
  .auth-guest .btn,
  .auth-user .profile-trigger {
    height: 32px;
    font-size: 10px;
    border-radius: 9px;
  }

  .cart-link {
    padding: 0 8px;
  }

  .auth-guest .btn {
    padding: 0 9px;
  }

  .auth-user .profile-trigger {
    padding: 0 8px;
  }

  .profile-avatar {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }

  .profile-caret {
    font-size: 10px;
  }
}

/* ===== Footer Showcase ===== */
.footer-showcase {
  margin-top: 56px;
  padding: 74px 0 82px;
  border-top: 0;
  background: #040507;
  color: #dce2ef;
}

.home-ref-mode .site-footer.footer-showcase {
  display: block !important;
}

.footer-showcase .container {
  width: min(1040px, calc(100vw - 36px));
  margin: 0 auto;
}

.footer-showcase-inner {
  display: grid;
  justify-items: center;
  align-items: center;
  gap: 34px;
  text-align: center;
}

.footer-showcase-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  text-decoration: none;
}

.footer-showcase-brand-logo {
  height: 34px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}

.footer-showcase-brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  background: radial-gradient(circle at 24% 24%, #d3d5ff 0%, #7f89ff 34%, #4d59ea 68%, #3541c7 100%);
  box-shadow: inset 0 1px 4px rgba(255, 255, 255, 0.28), 0 8px 22px rgba(63, 73, 219, 0.42);
}

.footer-showcase-brand-name {
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.footer-showcase-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 40px;
}

.footer-showcase-nav a {
  color: #d9dce6;
  font-size: clamp(12px, 0.9vw, 14px);
  font-weight: 500;
  line-height: 1.15;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-showcase-nav a:hover {
  color: #ffffff;
}

.footer-showcase-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.footer-showcase-social a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #b6bfd2;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-showcase-social a:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.footer-showcase-social svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

@media (max-width: 1100px) {
  .footer-showcase {
    padding: 60px 0 66px;
  }
}

@media (max-width: 760px) {
  .footer-showcase {
    margin-top: 40px;
    padding: 48px 0 54px;
  }

  .footer-showcase-inner {
    gap: 24px;
  }

  .footer-showcase-brand {
    gap: 10px;
  }

  .footer-showcase-brand-logo {
    height: 30px;
    max-width: 130px;
  }

  .footer-showcase-brand-icon {
    width: 32px;
    height: 32px;
    border-radius: 11px;
    font-size: 20px;
  }

  .footer-showcase-brand-name {
    font-size: 18px;
  }

  .footer-showcase-nav {
    gap: 8px 18px;
  }

  .footer-showcase-nav a {
    font-size: 12px;
  }

  .footer-showcase-social {
    gap: 20px;
  }

  .footer-showcase-social a {
    width: 34px;
    height: 34px;
  }

  .footer-showcase-social svg {
    width: 24px;
    height: 24px;
  }
}

/* ===== Home Three Column Layout ===== */
.home-ref-mode .site-main {
  padding: 22px 0 46px !important;
}

.home-ref.home-ref-layout,
.home-ref-grid {
  padding-top: 10px;
}

.home-ref-mobile-controls,
.home-ref-drawer-backdrop,
.home-ref-drawer-close {
  display: none;
}

.home-ref-pane {
  min-height: clamp(560px, 70vh, 780px);
  padding: 16px;
  border-radius: 14px;
  border: 1px solid #d8e0ea;
  background: #edf1f6;
  color: #1f2b3b;
}

.home-ref-pane--left {
  display: grid;
  align-content: start;
  gap: 20px;
  background: transparent;
  border-color: transparent;
}

.home-ref-pane--right {
  display: grid;
  align-content: start;
  gap: 14px;
}

.home-ref-pane--center {
  background: #ffffff;
  border-color: #d5ddeb;
  display: grid;
  align-content: start;
  gap: 16px;
}

@media (min-width: 992px) {
  .home-ref .offcanvas-lg.home-ref-pane {
    background: #edf1f6 !important;
    border: 1px solid #d8e0ea !important;
    border-radius: 14px;
  }

  .home-ref .offcanvas-lg.home-ref-pane .offcanvas-body {
    display: block;
    padding: 0 !important;
    background: transparent !important;
  }

  .home-ref .offcanvas-lg.home-ref-pane--left {
    background: transparent !important;
    border-color: transparent !important;
  }
}

.home-ref-pane-title {
  margin: 0;
  font-size: clamp(18px, 1.2vw, 21px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #263345;
}

.home-ref-side-section {
  display: grid;
  gap: 10px;
}

.home-ref-side-section + .home-ref-side-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #cfd6e1;
}

.home-ref-side-title {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #4c525c;
  padding-left: 8px;
}

.home-ref-side-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.home-ref-side-empty {
  border: 1px dashed #c9d4e4;
  border-radius: 10px;
  padding: 10px;
  color: #525b69;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  background: transparent;
}

.home-ref-side-list a {
  position: relative;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: #2f3540;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 10px;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.home-ref-side-list a::before {
  content: none;
}

.home-ref-side-list a i {
  width: 22px;
  flex: 0 0 22px;
  text-align: center;
  font-size: 20px;
  line-height: 1;
  color: inherit;
}

.home-ref-side-list a span {
  display: block;
  line-height: 1.2;
}

.home-ref-side-list a:hover {
  border-color: transparent;
  background: rgba(24, 33, 47, 0.06);
  color: #1d232d;
}

.home-ref-side-list a.is-active {
  border-color: transparent;
  background: rgba(24, 33, 47, 0.1);
  color: #141922;
  box-shadow: none;
}

.home-ref-side-list a.is-active i {
  color: #141922;
}

.home-ref-side-list a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 999px;
  background: #1a1f28;
}

.home-ref-side-count {
  margin-left: auto;
  min-width: 22px;
  height: 20px;
  border-radius: 999px;
  padding: 0 6px;
  background: #dfe7f3;
  color: #55647d;
  font-size: 11px;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
}

.home-ref-center-head {
  text-align: left;
  padding: 2px 2px 4px;
}

.home-ref-center-head h2 {
  margin: 0;
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #20324a;
}

.home-ref-center-head p {
  margin: 8px 0 0;
  max-width: 620px;
  color: #667993;
  font-size: 13px;
  font-weight: 600;
}

.home-ref-pane--center .home-ref-block {
  margin: 0;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid #dbe2ec;
  background: #f7f9fc;
}

.home-ref-pane--center .home-ref-block + .home-ref-block {
  margin-top: 0;
}

.home-ref-pane--center .home-ref-head {
  margin-bottom: 12px;
}

.home-ref-pane--center .home-ref-featured-title {
  color: #1f2f44 !important;
}

.home-ref-pane--center .home-ref-featured-title::after {
  background: linear-gradient(90deg, #ef5f5f, rgba(239, 95, 95, 0.2));
}

.home-ref-comment-banner {
  min-height: 132px;
  border-radius: 12px;
  border: 1px solid #d6deea;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f4fb 0%, #e5ebf5 100%);
  position: relative;
}

.home-ref-comment-banner-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.home-ref-comment-banner img {
  width: 100%;
  height: 100%;
  min-height: 132px;
  max-height: 180px;
  object-fit: contain;
  background: #fff;
  display: none;
}

.home-ref-comment-banner-empty {
  min-height: 132px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 12px;
  color: #7c8ea6;
  font-size: 12px;
  font-weight: 700;
}

.home-ref-comment-form {
  display: grid;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid #d6deea;
  background: #ffffff;
  padding: 10px;
}

.home-ref-comment-input,
.home-ref-comment-textarea {
  width: 100%;
  border: 1px solid #d6deea;
  border-radius: 9px;
  background: #f8fafd;
  color: #203247;
  font: inherit;
  font-size: 13px;
}

.home-ref-comment-input {
  height: 36px;
  padding: 0 10px;
}

.home-ref-comment-textarea {
  min-height: 90px;
  padding: 10px;
  resize: vertical;
}

.home-ref-comment-input::placeholder,
.home-ref-comment-textarea::placeholder {
  color: #8c9cb1;
}

.home-ref-comment-submit {
  height: 36px;
  border-radius: 9px;
  border: 1px solid #df4d4d;
  background: linear-gradient(180deg, #f46c6c 0%, #e74e4e 100%);
  color: #ffffff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.16s ease, filter 0.16s ease;
}

.home-ref-comment-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.home-ref-comment-submit[disabled] {
  cursor: not-allowed;
  opacity: 0.74;
  transform: none;
  filter: none;
}

.home-ref-comment-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.home-ref-comment-price {
  color: #6d7f98;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.home-ref-comment-hint {
  min-height: 18px;
  margin: -2px 0 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.home-ref-comment-hint.is-muted {
  color: #7f90a8;
}

.home-ref-comment-hint.is-success {
  color: #2f8e61;
}

.home-ref-comment-hint.is-error {
  color: #d45353;
}

.home-ref-comment-list {
  --comment-row: 62px;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  max-height: calc((10 * var(--comment-row)) + (9 * 10px));
  overflow-y: auto;
  padding-right: 4px;
}

.home-ref-comment-payment-box {
  --bs-modal-zindex: 1260;
}

.home-ref-comment-payment-box .modal-dialog {
  max-width: min(780px, calc(100vw - 20px));
}

.home-comment-payment-modal {
  width: min(760px, 100%);
}

.home-comment-payment-modal .audio-payment-check-btn {
  width: 100%;
}

.home-ref-comment-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 9px;
  border-radius: 12px;
  border: 1px solid #d8e0ea;
  background: #ffffff;
}

.home-ref-comment-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #2b3f59;
  color: #f3f7ff;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home-ref-comment-item p {
  margin: 0;
  color: #30435d;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.32;
}

.home-ref-comment-item small {
  margin-top: 4px;
  display: inline-block;
  color: #7f91ab;
  font-size: 11px;
  font-weight: 600;
}

.home-ref-comment-empty {
  border: 1px dashed #ccd6e4;
  border-radius: 12px;
  padding: 14px;
  color: #7f90a8;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 1240px) {
  .home-ref-pane {
    padding: 14px;
  }
}

@media (max-width: 991.98px) {
  .home-ref-mobile-controls {
    order: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0 2px;
  }

  .home-ref-mobile-btn {
    min-height: 52px;
    border-radius: 14px;
    border: 1px solid #2f476a;
    background: linear-gradient(135deg, rgba(22, 36, 56, 0.95) 0%, rgba(14, 24, 39, 0.95) 100%);
    color: #dbe7fb;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: inset 0 0 0 1px rgba(92, 122, 165, 0.12);
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  }

  .home-ref-mobile-btn i {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    color: #9fc0ee;
    background: rgba(53, 77, 109, 0.56);
  }

  .home-ref-mobile-btn:hover {
    border-color: #3f5d86;
    background: linear-gradient(135deg, rgba(27, 44, 69, 0.98) 0%, rgba(17, 29, 46, 0.98) 100%);
    color: #f2f7ff;
  }

  .home-ref-mobile-btn:focus-visible {
    outline: 2px solid #84abdf;
    outline-offset: 2px;
  }

  .home-ref-mobile-btn.is-active,
  .home-ref-mobile-btn[aria-expanded="true"] {
    border-color: #5f87bd;
    background: linear-gradient(135deg, rgba(40, 63, 96, 0.95) 0%, rgba(26, 43, 68, 0.95) 100%);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(11, 20, 33, 0.35), inset 0 0 0 1px rgba(123, 159, 208, 0.3);
  }

  .home-ref-mobile-btn.is-active i,
  .home-ref-mobile-btn[aria-expanded="true"] i {
    background: linear-gradient(135deg, #79a8e6 0%, #537ab4 100%);
    color: #f6fbff;
  }

  .home-ref-mobile-btn:active {
    transform: translateY(1px);
  }

  .home-ref-pane {
    min-height: auto;
  }

  .home-ref .offcanvas-lg.home-ref-pane--left,
  .home-ref .offcanvas-lg.home-ref-pane--right {
    z-index: 1205;
    width: min(86vw, 360px);
    max-width: 360px;
    padding: 16px 14px 20px;
    border-radius: 0;
    border: 1px solid #2a3f5d;
    background: #111c2c;
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.45);
    color: #d8e6ff;
  }

  .home-ref .offcanvas-lg .offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #2a3f5d;
  }

  .home-ref .offcanvas-lg .offcanvas-header .btn-close {
    filter: invert(1) grayscale(100%);
    opacity: 0.85;
  }

  .home-ref .offcanvas-lg .offcanvas-body {
    display: block;
    padding: 0 !important;
  }

  .home-ref-pane--left,
  .home-ref-pane--right {
    gap: 14px;
  }

  .home-ref-pane-title {
    text-align: left;
  }
}

@media (max-width: 760px) {
  .home-ref-mode .site-main {
    padding-top: 14px !important;
  }

  .home-ref.home-ref-layout,
  .home-ref-grid {
    gap: 10px;
    padding-top: 0;
  }

  .home-ref-pane {
    padding: 14px;
  }

  .home-ref-pane-title {
    font-size: 18px;
  }

  .home-ref-center-head {
    text-align: left;
    padding: 2px 2px 0;
  }

  .home-ref-center-head h2 {
    font-size: 23px;
  }

  .home-ref-center-head p {
    margin-top: 8px;
    font-size: 12px;
  }

  .home-ref-pane--center .home-ref-block {
    padding: 10px;
    border-radius: 12px;
  }

  .home-ref-side-list a {
    font-size: 13px;
  }

  .home-ref-comment-banner,
  .home-ref-comment-banner img,
  .home-ref-comment-banner-empty {
    min-height: 108px;
    max-height: 140px;
  }

  .home-ref-comment-form-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .home-ref-comment-submit {
    width: 100%;
  }

  .home-ref-comment-textarea {
    min-height: 80px;
  }
}

/* ===== Home Unified Feed (Center) ===== */
.home-ref-feed-wall {
  display: grid;
  gap: 14px;
}

.home-ref-feed-card {
  border: 1px solid #d7dee8;
  border-radius: 12px;
  background: #ffffff;
  padding: 12px;
  box-shadow: 0 2px 0 rgba(24, 41, 63, 0.03);
}

.home-ref-feed-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.home-ref-feed-author {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2d3f57;
}

.home-ref-feed-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #26374f;
  color: #f3f7ff;
  font-size: 12px;
  font-weight: 800;
}

.home-ref-feed-author strong {
  display: block;
  font-size: 14px;
  line-height: 1.1;
}

.home-ref-feed-author small {
  display: block;
  margin-top: 2px;
  color: #8796aa;
  font-size: 12px;
  line-height: 1.1;
}

.home-ref-feed-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #8d9caf;
  font-size: 12px;
  white-space: nowrap;
}

.home-ref-feed-meta em {
  font-style: normal;
  border: 1px solid #d6deeb;
  border-radius: 999px;
  padding: 3px 8px;
  color: #455a77;
  background: #f7f9fc;
}

.home-ref-feed-link {
  display: block;
  margin-top: 10px;
  color: inherit;
}

.home-ref-feed-text {
  margin: 0;
  color: #26384f;
  font-size: 15px;
  line-height: 1.48;
}

.home-ref-feed-tags {
  margin: 6px 0 0;
  color: #3b74c0;
  font-size: 13px;
  line-height: 1.3;
}

.home-ref-feed-media {
  margin-top: 10px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #dae2ee;
  background: #e7edf5;
}

.home-ref-feed-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-ref-feed-media.is-single {
  min-height: 240px;
}

.home-ref-feed-media.is-single img {
  min-height: 240px;
  max-height: 360px;
}

.home-ref-feed-media.is-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  min-height: 240px;
}

.home-ref-feed-media.is-split img {
  min-height: 240px;
  max-height: 320px;
}

.home-ref-feed-actions {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #ebeff5;
  display: flex;
  align-items: center;
  gap: 16px;
  color: #8a9ab0;
  font-size: 12px;
  font-weight: 700;
}

.home-ref-feed-actions .home-ref-feed-stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.home-ref-feed-stat i {
  font-size: 16px;
  line-height: 1;
  color: #6f8eb2;
}

.home-ref-feed-cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  padding: 7px 14px;
  border-radius: 10px;
  border: 1px solid #ef765a;
  background: linear-gradient(135deg, #ff8d68 0%, #f05b5b 100%);
  box-shadow: 0 8px 18px rgba(240, 91, 91, 0.24);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.home-ref-feed-cta i {
  font-size: 15px;
  line-height: 1;
}

.home-ref-feed-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(240, 91, 91, 0.32);
  filter: brightness(1.03);
}

.home-ref-feed-cta:focus-visible {
  outline: 2px solid #ffb89f;
  outline-offset: 2px;
}

.home-ref-feed-empty {
  border: 1px dashed #cfd8e6;
  border-radius: 12px;
  background: #fbfcff;
  color: #71839b;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  padding: 24px 14px;
}

.home-ref-feed-more-wrap {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

.home-ref-feed-more-btn {
  border: 1px solid #d6dfec;
  border-radius: 999px;
  background: #ffffff;
  color: #30435f;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  padding: 8px 16px;
  box-shadow: 0 2px 8px rgba(28, 49, 75, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-ref-feed-more-btn:hover {
  transform: translateY(-1px);
  border-color: #b8c9df;
  box-shadow: 0 6px 12px rgba(28, 49, 75, 0.14);
}

.home-ref-feed-more-btn:focus-visible {
  outline: 2px solid #8eb3e0;
  outline-offset: 2px;
}

.home-ref-feed-card.is-skeleton {
  padding: 14px;
}

.home-ref-feed-skeleton-line {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #edf1f7, #f7f9fc, #edf1f7);
  background-size: 200% 100%;
  animation: totoShimmer 1.2s linear infinite;
}

.home-ref-feed-skeleton-line + .home-ref-feed-skeleton-line {
  margin-top: 8px;
}

.home-ref-feed-skeleton-line.w-100 {
  width: 100%;
}

.home-ref-feed-skeleton-line.w-78 {
  width: 78%;
}

.home-ref-feed-skeleton-line.w-40 {
  width: 40%;
}

.home-ref-feed-skeleton-line.w-34 {
  width: 34%;
}

.home-ref-feed-skeleton-media {
  margin-top: 12px;
  height: 220px;
  border-radius: 10px;
  background: linear-gradient(90deg, #edf1f7, #f7f9fc, #edf1f7);
  background-size: 200% 100%;
  animation: totoShimmer 1.2s linear infinite;
}

@media (max-width: 760px) {
  .home-ref-feed-card {
    padding: 10px;
  }

  .home-ref-feed-text {
    font-size: 14px;
  }

  .home-ref-feed-meta em {
    display: none;
  }

  .home-ref-feed-media.is-single,
  .home-ref-feed-media.is-single img,
  .home-ref-feed-media.is-split,
  .home-ref-feed-media.is-split img {
    min-height: 190px;
  }

  .home-ref-feed-actions {
    gap: 10px;
    font-size: 11px;
    flex-wrap: wrap;
  }

  .home-ref-feed-cta {
    padding: 5px 10px;
    font-size: 11px;
  }
}

/* ===== Home Dark Palette Override ===== */
.home-ref-mode .home-ref-pane {
  border-color: #24344b;
  background: #121b2b;
  color: #d8e6ff;
}

.home-ref-mode .home-ref-pane--center {
  border-color: #293c57;
  background: #0f1827;
}

.home-ref-mode .home-ref-pane--left {
  border-color: transparent;
  background: transparent;
  color: #aabbd7;
}

@media (min-width: 992px) {
  .home-ref-mode .offcanvas-lg.home-ref-pane {
    border-color: #24344b !important;
    background: #121b2b !important;
    color: #d8e6ff;
  }

  .home-ref-mode .offcanvas-lg.home-ref-pane .offcanvas-body {
    background: transparent !important;
  }

  .home-ref-mode .offcanvas-lg.home-ref-pane--left {
    border-color: transparent !important;
    background: transparent !important;
  }
}

.home-ref-mode .home-ref-pane--left .home-ref-side-title {
  color: #8198bd;
}

.home-ref-mode .home-ref-pane--left .home-ref-side-list a {
  border-color: transparent;
  background: transparent;
  color: #b6c8e5;
}

.home-ref-mode .home-ref-pane--left .home-ref-side-list a::before {
  content: none;
}

.home-ref-mode .home-ref-pane--left .home-ref-side-list a:hover {
  border-color: transparent;
  background: rgba(33, 49, 73, 0.5);
  color: #eef4ff;
}

.home-ref-mode .home-ref-pane--left .home-ref-side-list a.is-active {
  border-color: transparent;
  background: rgba(46, 69, 101, 0.65);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px #44608a;
}

.home-ref-mode .home-ref-pane--left .home-ref-side-list a.is-active i {
  color: #ff9a79;
}

.home-ref-mode .home-ref-pane--left .home-ref-side-list a.is-active::after {
  background: #ff7e66;
}

.home-ref-mode .home-ref-pane--left .home-ref-side-section + .home-ref-side-section {
  border-top-color: #2c3f5c;
}

.home-ref-mode .home-ref-side-count {
  background: #253a57;
  color: #d3e6ff;
}

.home-ref-mode .home-ref-pane--left .home-ref-side-empty {
  border-color: #344c70;
  background: transparent;
  color: #8ea5c8;
}

.home-ref-mode .home-ref-comment-form {
  border-color: #2a3e5a;
  background: #121f31;
}

.home-ref-mode .home-ref-comment-banner {
  border-color: #2d4260;
  background: linear-gradient(135deg, #1a2b43 0%, #121f31 100%);
}

.home-ref-mode .home-ref-comment-banner-empty {
  color: #8aa0c3;
}

.home-ref-mode .home-ref-comment-input,
.home-ref-mode .home-ref-comment-textarea {
  border-color: #2d4260;
  background: #0f1725;
  color: #e7efff;
}

.home-ref-mode .home-ref-comment-input::placeholder,
.home-ref-mode .home-ref-comment-textarea::placeholder {
  color: #7f93b2;
}

.home-ref-mode .home-ref-comment-submit {
  border-color: #f05e5e;
  background: linear-gradient(180deg, #f56f6f 0%, #e64f4f 100%);
}

.home-ref-mode .home-ref-comment-price {
  color: #8fa6ca;
}

.home-ref-mode .home-ref-comment-hint.is-muted {
  color: #95aacb;
}

.home-ref-mode .home-ref-comment-hint.is-success {
  color: #83e8b7;
}

.home-ref-mode .home-ref-comment-hint.is-error {
  color: #ff939f;
}

.home-ref-mode .home-ref-comment-item {
  border-color: #2b3f5b;
  background: #132034;
}

.home-ref-mode .home-ref-comment-avatar {
  background: #2f4565;
  color: #f2f7ff;
}

.home-ref-mode .home-ref-comment-item p {
  color: #dbe8ff;
}

.home-ref-mode .home-ref-comment-item small {
  color: #8ea4c7;
}

.home-ref-mode .home-ref-comment-empty {
  border-color: #2f4667;
  background: #111d2f;
  color: #95aacb;
}

.home-ref-mode .home-ref-feed-card {
  border-color: #2a3f5c;
  background: #131f31;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.24);
}

.home-ref-mode .home-ref-feed-author {
  color: #e6efff;
}

.home-ref-mode .home-ref-feed-avatar {
  background: #304766;
  color: #f2f7ff;
}

.home-ref-mode .home-ref-feed-author small {
  color: #8fa4c6;
}

.home-ref-mode .home-ref-feed-meta {
  color: #9bb0d1;
}

.home-ref-mode .home-ref-feed-meta em {
  border-color: #344d70;
  background: #1a2a42;
  color: #d2e4ff;
}

.home-ref-mode .home-ref-feed-text {
  color: #e1ecff;
}

.home-ref-mode .home-ref-feed-tags {
  color: #7eb4ff;
}

.home-ref-mode .home-ref-feed-media {
  border-color: #2d4566;
  background: #0f1929;
}

.home-ref-mode .home-ref-feed-actions {
  border-top-color: #27405f;
  color: #9cb2d4;
}

.home-ref-mode .home-ref-feed-stat i {
  color: #8db8ff;
}

.home-ref-mode .home-ref-feed-cta {
  border-color: #ff8f6d;
  background: linear-gradient(135deg, #ff8f6d 0%, #ef5b5b 100%);
  box-shadow: 0 8px 20px rgba(255, 111, 89, 0.35);
  color: #ffffff;
}

.home-ref-mode .home-ref-feed-cta:hover {
  box-shadow: 0 12px 24px rgba(255, 111, 89, 0.45);
  filter: brightness(1.03);
}

.home-ref-mode .home-ref-feed-empty {
  border-color: #324a6d;
  background: #101b2b;
  color: #9ab0d2;
}

.home-ref-mode .home-ref-feed-more-btn {
  border-color: #304a6f;
  background: #132136;
  color: #d7e5ff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.28);
}

.home-ref-mode .home-ref-feed-more-btn:hover {
  border-color: #4a6d9c;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.34);
}

.home-ref-mode .home-ref-feed-skeleton-line,
.home-ref-mode .home-ref-feed-skeleton-media {
  background: linear-gradient(90deg, #1a2638, #222f44, #1a2638);
  background-size: 200% 100%;
}

.home-ref-mode .home-comment-payment-modal {
  border-color: #2f4668;
  background: #132034;
  color: #dbe8ff;
}

.home-ref-mode .home-comment-payment-modal .audio-payment-stat p,
.home-ref-mode .home-comment-payment-modal .audio-payment-invoice,
.home-ref-mode .home-comment-payment-modal .audio-payment-qr-section p,
.home-ref-mode .home-comment-payment-modal .audio-payment-or,
.home-ref-mode .home-comment-payment-modal .audio-payment-app-title {
  color: #9bb0d1;
}

.home-ref-mode .home-comment-payment-modal .audio-payment-stat strong,
.home-ref-mode .home-comment-payment-modal .audio-payment-head h3,
.home-ref-mode .home-comment-payment-modal .audio-payment-qr-section h4 {
  color: #eef4ff;
}

.home-ref-mode .home-comment-payment-modal .audio-payment-head-meta {
  color: #9bb0d1;
}

.home-ref-mode .home-comment-payment-modal .audio-payment-head-amount {
  color: #eef4ff;
}

.home-ref-mode .home-comment-payment-modal .audio-payment-close {
  border-color: #2f4668;
  background: #0f1827;
  color: #dbe8ff;
}

.home-ref-mode .home-comment-payment-modal .audio-bank-tile {
  border-color: #2e4566;
  background: #121f31;
  color: #caddf7;
}

.home-ref-mode .home-comment-payment-modal a.audio-bank-tile:hover {
  border-color: #5f87bd;
  box-shadow: 0 12px 22px rgba(18, 34, 53, 0.48);
}

@media (max-width: 991.98px) {
  .home-ref-mode .offcanvas-lg.home-ref-pane--left,
  .home-ref-mode .offcanvas-lg.home-ref-pane--right {
    border-color: #2a3f5d;
    background: #111c2c;
  }
}
