/* SIA — Pop & Casual UI */
:root {
  --bg: #ffffff;
  --bg-alt: #faf8f6;
  --fg: #333333;
  --fg-dim: #888888;
  --accent: #DE7859;
  --accent-light: #fbede8;
  --accent-hover: #c86a4d;
  --warn: #f5a623;
  --error: #e53935;
  --success: #4caf50;
  --link: #DE7859;
  --border: #e8e4e0;
  --radius: 12px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", "Noto Sans JP", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Breadcrumb */
.breadcrumb { margin-bottom: 16px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0; font-size: 13px; color: var(--fg-dim); }
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb li + li::before { content: "\203A"; margin: 0 8px; font-size: 16px; line-height: 1; }
.breadcrumb a { color: var(--fg-dim); text-decoration: none; }
.breadcrumb a:hover { color: var(--fg); text-decoration: underline; }
.breadcrumb .current { color: var(--fg); }

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23DE7859' fill-opacity='0.15' d='M0,160L48,170.7C96,181,192,203,288,192C384,181,480,139,576,128C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom / 100% auto,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23DE7859' fill-opacity='0.10' d='M0,96L48,112C96,128,192,160,288,165.3C384,171,480,149,576,149.3C672,149,768,171,864,165.3C960,160,1056,128,1152,117.3C1248,107,1344,117,1392,122.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom / 100% auto,
    linear-gradient(160deg, #fdfbf9 0%, #faf5f2 40%, #f7ebe5 70%, #f2e0d8 100%);
  background-attachment: fixed;
  color: var(--fg);
  min-height: 100vh;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px;
}

/* Header */
.site-header {
  background: var(--bg);
  padding: 0;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 20px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-title {
  color: var(--accent);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.5px;
}
.site-title:hover { text-decoration: none; color: var(--accent-hover); }

.site-logo {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.site-logo img {
  height: 44px;
  width: auto;
  transition: opacity 0.2s;
}
.site-logo .site-title {
  color: var(--fg);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.3px;
  line-height: 1;
  padding-bottom: 2px;
}
.site-logo:hover img { opacity: 0.8; }
.site-logo:hover { text-decoration: none; }
.site-logo:hover .site-title { color: var(--accent); }

/* Portal badge next to logo */
.portal-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: var(--accent-light);
  color: var(--accent) !important;
  font-size: 13px;
  font-weight: 700;
  border-radius: 20px;
  transition: transform 0.15s, background 0.15s;
}
.portal-badge:hover {
  transform: translateY(-1px);
  background: var(--accent);
  color: #fff !important;
  text-decoration: none;
}

.portal-tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 8px 14px;
  background: #333;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 100;
  pointer-events: none;
}
.portal-tooltip::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: #333;
}
.portal-badge:hover .portal-tooltip {
  visibility: visible;
  opacity: 1;
}

/* Menu toggle (hamburger) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--fg);
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.menu-toggle:hover {
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
}
.site-nav a {
  margin-left: 24px;
  color: var(--fg);
  font-size: 15px;
  font-weight: 500;
}
.site-nav a:hover { color: var(--accent); text-decoration: none; }

.lang-switch {
  margin-left: 16px !important;
  padding: 4px 12px;
  border: 2px solid var(--border);
  border-radius: 20px;
  color: var(--fg) !important;
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.lang-switch:hover {
  background: var(--accent);
  color: #fff !important;
  border-color: var(--accent);
  text-decoration: none;
}
.lang-switch .flag-jp {
  font-size: 14px;
  line-height: 1;
}
.lang-switch i {
  font-size: 12px;
}

/* Headings */
h1, h2, h3 { font-weight: 700; }
h1::before, h2::before { content: none; }

h1 { font-size: 24px; margin-bottom: 20px; color: var(--fg); }
h2 { font-size: 18px; margin-bottom: 14px; color: var(--fg); }
h3 { font-size: 15px; margin-bottom: 8px; color: var(--fg-dim); }

/* Cards / panels */
.panel {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}

/* Legal document pages */
.legal-document h2 {
  margin-top: 28px;
  margin-bottom: 12px;
  font-size: 18px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}
.legal-document h3 {
  margin-top: 20px;
  margin-bottom: 8px;
  font-size: 15px;
}
.legal-document p,
.legal-document ul {
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.8;
}
.legal-document ul {
  padding-left: 20px;
}
.legal-document li {
  margin-bottom: 6px;
}
.legal-updated {
  font-size: 13px;
  color: var(--fg-dim);
  margin-bottom: 20px;
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 14px;
}
.legal-table th,
.legal-table td {
  padding: 8px 12px;
  border: 1px solid var(--border);
  text-align: left;
}
.legal-table th {
  background: var(--bg);
  white-space: nowrap;
  width: 1%;
}
.email-svg {
  height: 1.15em;
  vertical-align: text-bottom;
}

.panel-title {
  color: var(--accent);
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}

/* Product header with filter */
.products-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.products-header h1 {
  margin: 0;
}
.product-filter {
  width: 200px;
  padding: 6px 12px;
  border: 1px solid var(--border, #ccc);
  border-radius: 4px;
  background: var(--bg, #fff);
  color: var(--fg, #333);
  font-size: 13px;
  cursor: pointer;
}

/* Product cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  position: relative;
  color: var(--fg);
  text-decoration: none;
  cursor: pointer;
}

.product-card:hover {
  box-shadow: 0 4px 16px rgba(222, 120, 89, 0.12);
  transform: translateY(-2px);
  text-decoration: none;
}

a.product-card:hover .product-name {
  color: var(--accent);
}

.product-card-actions {
  margin-top: auto;
  padding-top: 12px;
}
.product-card-actions .btn {
  display: block;
  text-align: center;
  padding: 12px 20px;
  font-size: 15px;
  letter-spacing: 0.3px;
}
.product-card-actions .btn-sale {
  font-size: 15px;
  padding: 12px 20px;
}

.product-icon-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 12px;
}
.product-icon {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
}

.product-detail-video {
  width: 100%;
  border-radius: 8px;
}
.product-card.coming-soon .product-name,
.product-card.coming-soon .product-desc {
  color: var(--fg-dim);
}

/* Sale badge */
.product-card.draft-preview {
  border: 2px solid #000;
}
.product-card.draft-preview .product-icon {
  opacity: 0.7;
}
.product-card.on-sale {
  position: relative;
  border-color: var(--accent);
}
.sale-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  gap: 6px;
  align-items: center;
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.35);
  z-index: 1;
  animation: sale-pulse 1.5s ease-in-out infinite;
}
@keyframes sale-pulse {
  0%, 100% { box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3); transform: scale(1); }
  50% { box-shadow: 0 0 20px 6px rgba(231, 76, 60, 0.6); transform: scale(1.05); }
}
.sale-label {
  font-size: 13px;
  letter-spacing: 0.5px;
}
.sale-timer {
  background: rgba(0,0,0,0.25);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.product-price .sale-price {
  color: var(--accent);
}
.btn-sale {
  background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
  color: #fff !important;
  border-color: #c0392b !important;
}

/* Channel badges (product card top-left) */
.channel-badge {
  position: absolute;
  top: -10px;
  left: 12px;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.3px;
  z-index: 1;
}
.channel-badge i {
  font-size: 13px;
}
.channel-badge-appstore {
  background: #000;
  color: #fff;
}
.channel-badge-direct {
  background: #ff744e;
  color: #fff;
}
/* Platform badge (product detail hero, next to channel-badge) */
.platform-badge {
  position: absolute;
  top: -10px;
  left: 145px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #555;
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  z-index: 1;
}

/* Platform icon (product card top-right) */
.platform-icon {
  position: absolute;
  top: -10px;
  right: 12px;
  background: #555;
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  z-index: 1;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.3px;
}
.appstore-badge-inline {
  background: #000;
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}
.appstore-badge-inline.hero-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
}
.btn-appstore {
  background: #000 !important;
  color: #fff !important;
  border-color: #000 !important;
}
.btn-appstore:hover {
  background: #333 !important;
}
.appstore-badge-img {
  height: 80px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}
.appstore-badge-img-lg {
  height: 100px;
}
.btn-sale:hover {
  background: linear-gradient(135deg, #c0392b, #a93226) !important;
}

.product-icon-lg {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.product-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.product-header h1 { margin-bottom: 0; }
.product-header-info { flex: 1; }
.product-lang-select {
  align-self: flex-end;
}
.product-lang-select select {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--fg);
  font-size: 13px;
  cursor: pointer;
}

/* Screenshot horizontal scroll */
.screenshot-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 16px 0;
  margin-bottom: 20px;
}

.screenshot-placeholder {
  position: relative;
  flex-shrink: 0;
  height: 260px;
  min-width: 200px;
  background: var(--bg-secondary, #1a1a2e);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.placeholder-icon {
  position: absolute;
  z-index: 2;
  font-size: 32px;
  color: var(--fg-dim, #555);
  opacity: 0.4;
  pointer-events: none;
  transition: opacity 0.3s;
}
.placeholder-icon.loaded {
  opacity: 0;
}
.placeholder-icon-video {
  font-size: 28px;
}
.screenshot-img {
  height: 260px;
  width: auto;
  border-radius: 8px;
  flex-shrink: 0;
  cursor: pointer;
  transition: opacity 0.15s;
  background: transparent;
  object-fit: cover;
}
.screenshot-img:hover {
  opacity: 0.8;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox.active {
  display: flex;
}
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 4px 40px rgba(0,0,0,0.5);
}

/* Description links */
.product-desc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.desc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}
.desc-link:hover {
  text-decoration: underline;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.product-name {
  color: var(--fg);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 2px;
}
.product-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.update-badge {
  flex-shrink: 0;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 3px;
  letter-spacing: 0.3px;
}
.product-version {
  font-size: 12px;
  color: var(--fg-dim);
  margin-bottom: 6px;
}

.product-price {
  color: var(--accent);
  font-size: 20px;
  font-weight: 800;
}

.product-price .original {
  text-decoration: line-through;
  color: var(--fg-dim);
  font-size: 14px;
  font-weight: normal;
  margin-left: 8px;
}

.product-price .currency-code {
  font-size: 12px;
  font-weight: normal;
  color: var(--fg-dim);
  margin-left: 4px;
}

.product-desc {
  color: var(--fg-dim);
  font-size: 14px;
  margin: 8px 0;
  max-height: 3.4em;
  overflow: hidden;
  line-height: 1.7;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 24px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn:hover {
  background: var(--accent-hover);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active { transform: translateY(0); }

.btn i { margin-left: 6px; }

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover { background: var(--accent-light); color: var(--accent); }

.btn-disabled {
  background: var(--muted, #999);
  cursor: not-allowed;
  opacity: 0.7;
}
.btn-disabled:hover {
  background: var(--muted, #999);
  transform: none;
}

.btn-danger {
  background: var(--error);
}
.btn-danger:hover { background: #c62828; }

.btn-warn {
  background: var(--warn);
  color: #fff;
}
.btn-warn:hover { background: #e09500; }

/* Forms */
input, textarea, select {
  font-family: var(--font);
  font-size: 15px;
  background: var(--bg);
  color: var(--fg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  width: 100%;
  transition: border-color 0.2s;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

label {
  display: block;
  color: var(--fg);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  margin-top: 16px;
}

label:first-child { margin-top: 0; }

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

th { color: var(--fg-dim); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }

tr:hover { background: var(--accent-light); }

/* Status badges */
.badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
}

.badge-active, .badge-paid { background: #e8f5e9; color: #2e7d32; }
.badge-revoked, .badge-refunded { background: #ffebee; color: #c62828; }
.badge-draft { background: #f5f5f5; color: #888; }
.badge-open { background: #fff8e1; color: #f57f17; }
.badge-closed { background: #f5f5f5; color: #888; }
.badge-partial_refund { background: #fff8e1; color: #f57f17; }

/* Flash messages */
.flash {
  padding: 12px 16px;
  margin-bottom: 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}

.flash-success { background: #e8f5e9; color: #2e7d32; }
.flash-error { background: #ffebee; color: #c62828; }

/* Key display */
.license-key {
  font-size: 14px;
  font-family: "SF Mono", "Menlo", monospace;
  color: var(--accent);
  background: var(--accent-light);
  padding: 6px 12px;
  border-radius: 6px;
  user-select: all;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 24px;
  margin-top: 48px;
  background: var(--bg-alt);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 24px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fg);
  margin-bottom: 4px;
}
.footer-col a {
  color: var(--fg-dim);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom-left {
  display: flex;
  align-items: flex-end;
  gap: 16px;
}
.footer-company {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--fg-dim);
  font-size: 12px;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.footer-company:hover {
  opacity: 1;
  text-decoration: none;
}
.footer-company img {
  height: 40px;
  width: auto;
}
.footer-copy {
  color: var(--fg-dim);
  font-size: 12px;
}

.stripe-badge {
  display: inline-flex;
  align-items: center;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.stripe-badge:hover {
  opacity: 1;
  text-decoration: none;
}
.stripe-badge img {
  height: 27px;
  width: auto;
}

/* Detail list (key: value) */
.detail-list dt {
  color: var(--fg-dim);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 12px;
}

.detail-list dd {
  color: var(--fg);
  margin-bottom: 4px;
}

/* FAQ */
.faq-search {
  margin-bottom: 20px;
  display: flex;
  gap: 8px;
}
.faq-search input { flex: 1; }

.faq-article {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.faq-article summary {
  cursor: pointer;
  color: var(--link);
  font-size: 15px;
  font-weight: 500;
}

.faq-article-body {
  color: var(--fg-dim);
  margin-top: 10px;
  padding-left: 16px;
  white-space: pre-wrap;
  line-height: 1.7;
}

/* Pagination */
.pagination {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  font-size: 13px;
}

.pagination a, .pagination span {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.pagination a:hover { background: var(--accent-light); text-decoration: none; }

.pagination .current {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

/* Portal features list (checkout complete page) */
.portal-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.portal-features li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.portal-features li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.portal-features li:first-child {
  padding-top: 0;
}

.portal-features .feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--accent-light);
  border-radius: 10px;
  font-size: 18px;
  flex-shrink: 0;
}

.portal-features strong {
  display: block;
  color: var(--fg);
  font-size: 15px;
  margin-bottom: 4px;
}

.portal-features p {
  color: var(--fg-dim);
  font-size: 13px;
  margin: 0;
  line-height: 1.5;
}

/* Access steps (checkout complete page) */
.access-steps {
  padding-left: 20px;
  margin: 0;
}

.access-steps li {
  padding: 8px 0;
  color: var(--fg);
  font-size: 15px;
}

.access-steps li::marker {
  color: var(--accent);
  font-weight: 700;
}

/* Hero Carousel (horizontal scroll + snap) */
.hero-carousel {
  position: relative;
  margin-bottom: 32px;
  border-radius: 24px;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #1a1a1a 0%, #000 100%);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.hero-carousel:hover .carousel-btn {
  opacity: 1;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.carousel-btn-prev {
  left: 12px;
}

.carousel-btn-next {
  right: 12px;
}

.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.carousel-dot.active {
  background: #fff;
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
}

.carousel-slide img,
.carousel-slide video {
  width: 90%;
  height: 90%;
  object-fit: contain;
}

.carousel-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 60px 24px 20px;
  background: linear-gradient(transparent 0%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0.9) 100%);
}

.carousel-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.carousel-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ==========================================================================
   Product Detail Page
   ========================================================================== */

/* Hero */
.product-hero {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  position: relative;
}

.product-hero-download {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}
.download-version {
  font-size: 12px;
  color: var(--muted);
  font-family: monospace;
}

.btn-download {
  font-size: 13px;
  padding: 6px 14px;
  background: var(--fg);
  color: var(--bg);
  border-radius: 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s;
}
.btn-download:hover {
  opacity: 0.85;
  color: var(--bg);
  text-decoration: none;
}

.product-hero.on-sale {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.product-hero-main {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.product-hero-icon {
  width: auto;
  height: 96px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.product-hero-info {
  flex: 1;
}

.product-hero-info h1 {
  margin-bottom: 2px;
  font-size: 28px;
}
.product-hero-version {
  font-size: 13px;
  color: var(--fg-dim);
  margin-bottom: 8px;
}

.product-hero-subtitle {
  color: var(--fg-dim);
  font-size: 15px;
  margin-bottom: 12px;
}

.product-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--fg-dim);
}

.product-hero-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.product-hero-meta i {
  color: var(--accent);
}

.product-hero-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.hero-appstore-row {
  display: flex;
  justify-content: flex-end;
}

.hero-appstore-badge {
  height: 36px;
  width: auto;
  display: block;
}

.btn-lp {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  white-space: nowrap;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
}
.btn-lp:hover {
  background: var(--accent-hover, #1565c0);
  border-color: var(--accent-hover, #1565c0);
  color: #fff;
}
.btn-lp i {
  font-size: 11px;
  margin-left: 4px;
}

/* Sale Banner */
.sale-banner {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  animation: banner-glow 3s ease-in-out infinite;
}
@keyframes banner-glow {
  0%, 100% { box-shadow: 0 2px 12px rgba(231, 76, 60, 0.3); }
  50% { box-shadow: 0 4px 24px rgba(231, 76, 60, 0.5); }
}

.sale-banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sale-banner-badge {
  background: rgba(255,255,255,0.2);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.sale-banner-text {
  font-size: 14px;
}

.sale-banner-timer {
  background: rgba(0, 0, 0, 0.25);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  font-family: "SF Mono", "Menlo", monospace;
  font-variant-numeric: tabular-nums;
}

/* Price Card */
.product-price-card {
  background: var(--bg);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.product-price-main {
  flex: 1;
}

.product-price-card.on-sale {
  border-color: #e74c3c;
}

.product-price-discount {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.discount-badge {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #fff;
  padding: 4px 14px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.discount-save {
  font-size: 13px;
  color: #e74c3c;
  font-weight: 600;
}

.product-price-note-inline {
  margin-top: 4px;
  font-size: 13px;
  color: var(--fg-dim);
}

.btn-purchase-sale {
  background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
  box-shadow: 0 4px 16px rgba(231, 76, 60, 0.4) !important;
  animation: cta-pulse 2s ease-in-out infinite;
}
.btn-purchase-sale:hover {
  box-shadow: 0 8px 28px rgba(231, 76, 60, 0.5) !important;
}
@keyframes cta-pulse {
  0%, 100% { transform: translateY(0); box-shadow: 0 4px 16px rgba(231, 76, 60, 0.4); }
  50% { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(231, 76, 60, 0.5); }
}

.product-price-current {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-symbol {
  font-size: 24px;
  font-weight: 600;
  color: var(--fg);
}

.price-amount {
  font-size: 48px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.price-currency {
  font-size: 14px;
  color: var(--fg-dim);
  margin-left: 4px;
}

.product-price-original {
  margin-top: 8px;
  font-size: 14px;
  color: var(--fg-dim);
}

.price-strikethrough {
  text-decoration: line-through;
}

.product-price-action {
  text-align: center;
}

.btn-purchase {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  padding: 16px 40px;
  font-size: 18px;
  letter-spacing: 0.5px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(222, 120, 89, 0.35);
  width: 100%;
}

.btn-purchase:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(222, 120, 89, 0.45);
}

.btn-lg {
  padding: 18px 48px;
  font-size: 18px;
}

.product-price-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--fg-dim);
}

.product-price-note i {
  color: var(--success);
  margin-right: 4px;
}

/* Product Sections */
.product-section {
  margin-bottom: 32px;
}

.product-section h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  margin-bottom: 16px;
}

.product-section h2 i {
  color: var(--accent);
}

.product-description {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 20px;
  white-space: pre-wrap;
  color: var(--fg);
  line-height: 1.8;
}

/* Features Grid */
.product-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feature-item {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-item:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(222, 120, 89, 0.1);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

.feature-text strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
  color: var(--fg);
}

.feature-text p {
  font-size: 12px;
  color: var(--fg-dim);
  margin: 0;
  line-height: 1.4;
}

/* LP Link */
.product-lp-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--fg);
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s;
}

.product-lp-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* Bottom CTA */
.product-bottom-cta {
  position: sticky;
  bottom: 0;
  background: var(--bg);
  border-top: 2px solid var(--accent);
  padding: 12px 24px;
  margin: 0 -24px -24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  z-index: 50;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}
.product-bottom-cta .btn-purchase {
  width: auto;
  padding: 12px 36px;
  flex-shrink: 0;
}
.product-bottom-cta-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.cta-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 11px;
  color: var(--fg-dim);
}
.cta-meta span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}
.cta-meta i { font-size: 10px; opacity: 0.7; }
.cta-meta-trial { color: var(--success); }

.product-bottom-cta.on-sale {
  background: var(--bg);
}

.product-bottom-cta-price {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cta-discount {
  background: var(--accent);
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.cta-price {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
}

.cta-original {
  font-size: 16px;
  color: var(--fg-dim);
  text-decoration: line-through;
}

/* ==========================================================================
   Pricing Section (Top Page)
   ========================================================================== */

.pricing-section {
  margin-top: 32px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 8px;
}

.pricing-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: var(--fg);
  cursor: pointer;
}
.pricing-card:hover {
  box-shadow: 0 6px 24px rgba(222, 120, 89, 0.12);
  transform: translateY(-2px);
  text-decoration: none;
}
.pricing-card.on-sale {
  border-color: #e74c3c;
}

.pricing-sale-badge {
  position: absolute;
  top: -10px;
  right: 16px;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #fff;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  gap: 8px;
  align-items: center;
  box-shadow: 0 2px 10px rgba(231, 76, 60, 0.35);
  z-index: 2;
  animation: sale-pulse 2s ease-in-out infinite;
}
.pricing-sale-label { font-size: 14px; letter-spacing: 0.5px; }
.pricing-sale-timer {
  background: rgba(0,0,0,0.2);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-family: "SF Mono", "Menlo", monospace;
}

.pricing-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 12px;
}

.pricing-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.pricing-card:hover .pricing-name { color: var(--accent); }

.pricing-save {
  display: inline-block;
  background: #fbede8;
  color: #e74c3c;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
  width: fit-content;
}

.pricing-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}
.pricing-price-now {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
}
.pricing-card.on-sale .pricing-price-now { color: #e74c3c; }
.pricing-price-was {
  font-size: 14px;
  color: var(--fg-dim);
  text-decoration: line-through;
}

.pricing-note {
  font-size: 12px;
  color: var(--fg-dim);
  margin-bottom: 16px;
}
.pricing-note i { color: #4caf50; margin-right: 3px; }

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablet */
@media (max-width: 768px) {
  .container {
    padding: 16px;
  }

  /* Header */
  .site-header .container {
    flex-wrap: wrap;
    gap: 12px;
    position: relative;
  }

  .header-left {
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
  }

  .site-logo img {
    height: 28px;
  }

  .site-logo .site-title {
    font-size: 14px;
  }

  .portal-badge {
    padding: 4px 10px;
    font-size: 11px;
  }

  .portal-tooltip {
    display: none;
  }

  /* Hamburger menu */
  .menu-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    margin-left: 0;
    padding: 12px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--border);
  }

  .site-nav a:last-child {
    border-bottom: none;
  }

  .lang-switch {
    margin-left: 0 !important;
    margin-top: 8px;
    padding: 8px 16px;
    text-align: center;
    display: inline-block;
    width: fit-content;
  }

  /* Footer */
  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  /* Product */
  .product-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .product-header {
    flex-wrap: wrap;
  }

  .screenshot-img {
    height: 200px;
  }

  /* Product Detail */
  .product-hero-main {
    flex-wrap: wrap;
  }

  .product-hero-actions {
    order: -1;
    width: 100%;
    justify-content: flex-end;
    margin-bottom: 8px;
  }

  .product-hero-icon {
    width: auto;
    height: 72px;
  }

  .product-hero-info h1 {
    font-size: 22px;
  }

  .product-price-card {
    flex-direction: column;
    text-align: center;
  }

  .product-price-current {
    justify-content: center;
  }

  .price-amount {
    font-size: 40px;
  }
}

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(51, 51, 51, 0.95);
  color: #eee;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 13px;
  z-index: 9999;
  flex-wrap: wrap;
}
.cookie-text a {
  color: var(--accent);
  text-decoration: underline;
}
.cookie-buttons {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.cookie-btn {
  border: none;
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.cookie-btn-accept {
  background: var(--accent);
  color: #fff;
}
.cookie-btn-accept:hover {
  background: var(--accent-hover);
}
.cookie-btn-reject {
  background: transparent;
  color: #ccc;
  border: 1px solid #888;
}
.cookie-btn-reject:hover {
  background: rgba(255, 255, 255, 0.1);
}

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

  .product-bottom-cta {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    margin: 0 -16px -16px;
    padding: 10px 16px;
    gap: 8px;
  }
  .product-bottom-cta-left { align-items: center; }
  .cta-meta { justify-content: center; }
  .cta-price { font-size: 22px; }

  /* Carousel */
  .carousel-title {
    font-size: 16px;
  }

  .carousel-subtitle {
    font-size: 12px;
  }

  /* Headings */
  h1 { font-size: 20px; }
  h2 { font-size: 16px; }
}

/* Mobile */
@media (max-width: 480px) {
  .container {
    padding: 12px;
  }

  /* Header */
  .site-header .container {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .header-left {
    flex: 1;
  }

  .site-logo img {
    height: 24px;
  }

  .site-logo .site-title {
    font-size: 13px;
  }

  .portal-badge {
    padding: 3px 8px;
    font-size: 10px;
  }

  .site-nav {
    padding: 12px;
  }

  .site-nav a {
    padding: 10px 0;
    font-size: 14px;
  }

  /* Footer */
  .site-footer {
    padding: 20px 0 16px;
  }

  .footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .footer-copy {
    font-size: 11px;
  }

  /* Product */
  .product-card {
    padding: 16px;
  }

  .product-name {
    font-size: 15px;
  }

  .product-price {
    font-size: 18px;
  }

  .product-desc {
    font-size: 13px;
  }

  .product-header {
    gap: 12px;
  }

  .product-icon-lg {
    width: 56px;
    height: 56px;
  }

  .screenshot-img {
    height: 160px;
  }

  /* Carousel */
  .carousel-info {
    padding: 40px 16px 14px;
  }

  .carousel-title {
    font-size: 14px;
  }

  .carousel-subtitle {
    font-size: 11px;
    -webkit-line-clamp: 1;
  }

  /* Buttons */
  .btn {
    padding: 8px 16px;
    font-size: 13px;
  }

  /* Panel */
  .panel {
    padding: 16px;
  }

  /* Headings */
  h1 { font-size: 18px; margin-bottom: 16px; }
  h2 { font-size: 15px; margin-bottom: 12px; }

  /* Tables - horizontal scroll */
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  th, td {
    padding: 8px 10px;
    font-size: 12px;
  }

  /* Forms */
  input, textarea, select {
    font-size: 16px; /* Prevent zoom on iOS */
    padding: 10px 12px;
  }

  /* Sale badge */
  .sale-badge {
    font-size: 10px;
    padding: 3px 8px;
  }

  .sale-timer {
    font-size: 9px;
    padding: 2px 4px;
  }
}

/* ---- Reviews ---- */
.review-section { margin-top: 64px; }

.review-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.review-contact-link {
  font-size: 13px;
  color: var(--fg-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.review-contact-link:hover { color: var(--accent); }

.review-list { display: flex; flex-direction: column; gap: 16px; }

.review-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.review-nickname {
  font-weight: 600;
  color: var(--fg);
}

.review-stars { color: var(--accent); font-size: 14px; letter-spacing: 1px; }

.review-date { color: var(--fg-dim); font-size: 13px; margin-left: auto; }

.review-body { line-height: 1.7; white-space: pre-wrap; }

.review-admin-reply {
  margin-top: 12px;
  padding: 12px;
  background: #fff;
  border-left: 3px solid var(--accent);
  border-radius: 4px;
}

.review-admin-reply-label {
  font-weight: 600;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 4px;
}

.review-admin-reply-body { line-height: 1.7; white-space: pre-wrap; }

.review-empty { color: var(--fg-dim); text-align: center; padding: 24px 0; }

.review-guide {
  color: var(--fg-dim);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.btn-write-review {
  margin-bottom: 20px;
}

.btn-cancel-review {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg-dim);
}

.review-form-wrapper {
  margin-bottom: 20px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
}

.review-form .form-group { margin-bottom: 14px; }

.review-form label:not(.ai-consent-label):not(.star-label) { display: block; font-weight: 600; margin-bottom: 4px; }

.ai-consent-label {
  display: flex !important;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  font-weight: 400 !important;
  font-size: 0.9em;
  line-height: 1.4;
  margin: 14px 0;
}
.ai-consent-label input[type="checkbox"] {
  width: auto !important;
  margin-top: 3px;
  flex-shrink: 0;
}

.review-form input[type="text"],
.review-form textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  box-sizing: border-box;
}

.review-form-row {
  display: flex;
  gap: 16px;
  align-items: flex-end;
}

.review-form-nickname { flex: 1; }

.review-form-rating { flex-shrink: 0; }

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

@media (max-width: 480px) {
  .review-form-row { flex-direction: column; align-items: stretch; gap: 0; }
}

.star-input {
  display: inline-flex;
  gap: 4px;
  font-size: 22px;
  cursor: pointer;
}

.star-input input { display: none; }

.star-label { display: inline !important; color: var(--accent); cursor: pointer; transition: transform 0.1s; margin: 0; }
.star-label:hover { transform: scale(1.15); }

/* ---- Social Proof Badges ---- */
.social-proof-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.social-proof-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  border-radius: 12px;
  white-space: nowrap;
}

.social-proof-badge i {
  font-size: 10px;
}

.review-summary-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--fg);
  white-space: nowrap;
}

.review-stars-inline {
  color: #f5a623;
  font-weight: 700;
}

.hero-review-badge {
  margin-top: 8px;
  font-size: 14px;
  padding: 4px 0;
}

/* ---- Global Reach ---- */
.global-reach {
  white-space: nowrap;
}

/* ---- Trial Hint (subtle) ---- */
.trial-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--success);
  margin-top: 4px;
}

/* ---- Price Card Meta (compact row) ---- */
.price-card-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  margin-top: 10px;
  font-size: 11px;
  color: var(--fg-dim);
}

.price-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.price-card-meta i {
  font-size: 10px;
  opacity: 0.7;
}

/* ---- Review lazy reveal ---- */
.review-hidden {
  display: none;
}
.review-card.review-reveal {
  animation: reviewFadeIn 0.3s ease;
}
@keyframes reviewFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.review-sentinel {
  height: 1px;
}

/* ---- Trust Bar (Checkout) ---- */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding: 10px 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 13px;
}

.trust-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--fg-dim);
  white-space: nowrap;
}

.trust-bar-item i {
  color: var(--accent);
}

.trust-bar-item .review-stars-inline {
  color: #f5a623;
}

@media (max-width: 600px) {
  .trust-bar {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
}
