/* ============================================================
   ModelDirectory.org — Main Stylesheet
   ============================================================ */

/* ── Reset & Variables ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:          #0d0d0d;
  --bg-2:        #131313;
  --bg-3:        #1a1a1a;
  --bg-4:        #212121;
  --border:      #232323;
  --border-2:    #2e2e2e;
  --text:        #efefef;
  --text-2:      #9a9a9a;
  --text-3:      #555;
  --accent:      #3b82f6;
  --accent-h:    #2563eb;
  --accent-dim:  rgba(59,130,246,.12);
  --green:       #10b981;
  --green-dim:   rgba(16,185,129,.12);
  --amber:       #f59e0b;
  --red:         #ef4444;
  --radius:      8px;
  --radius-lg:   14px;
  --shadow:      0 4px 24px rgba(0,0,0,.45);
  --font:        -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:   'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
  --transition:  .18s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
input, select { font-family: var(--font); }
::selection { background: var(--accent-dim); color: var(--accent); }

/* ── Container ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Typography ── */
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.2; }
h2 { font-size: 1.4rem; font-weight: 600; letter-spacing: -0.02em; }
h3 { font-size: 1.05rem; font-weight: 600; }
h4 { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: #fff;
  border-radius: var(--radius); padding: 10px 22px;
  font-size: 0.9rem; font-weight: 600;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn-primary:hover { background: var(--accent-h); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: var(--text-2);
  border: 1px solid var(--border-2); border-radius: var(--radius);
  padding: 10px 22px; font-size: 0.9rem; font-weight: 500;
  transition: all var(--transition);
}
.btn-outline:hover { color: var(--text); border-color: var(--text-3); background: var(--bg-3); }

.btn-outline-sm {
  display: inline-flex; align-items: center;
  background: transparent; color: var(--text-2);
  border: 1px solid var(--border-2); border-radius: var(--radius);
  padding: 7px 16px; font-size: 0.85rem; font-weight: 500;
  transition: all var(--transition);
}
.btn-outline-sm:hover { color: var(--text); border-color: var(--text-3); background: var(--bg-3); }

.btn-ghost {
  display: inline-flex; align-items: center;
  color: var(--accent); font-size: 0.9rem; font-weight: 500;
  padding: 10px 0; transition: gap var(--transition);
  gap: 4px;
}
.btn-ghost:hover { gap: 8px; }

/* ── Inputs ── */
input[type="search"],
input[type="text"],
input[type="email"] {
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95rem;
  padding: 10px 16px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
input::placeholder { color: var(--text-3); }
input::-webkit-search-cancel-button { display: none; }

select {
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  color: var(--text-2);
  font-size: 0.85rem;
  padding: 8px 12px;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px;
  padding-right: 30px;
}
select:focus { outline: none; border-color: var(--accent); }

/* ════════════════════════════════════════
   HEADER
════════════════════════════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,13,13,.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 60px;
}

.logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 1rem; font-weight: 700;
  letter-spacing: -0.02em; white-space: nowrap;
  flex-shrink: 0;
  color: var(--text);
  transition: color var(--transition);
}
.logo:hover { color: var(--accent); }
.logo-mark { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }
.logo-tld { color: var(--accent); }

.header-search-wrap {
  flex: 1; max-width: 520px; position: relative;
}
.header-search {
  padding-left: 40px !important;
  height: 38px; font-size: 0.875rem !important;
}
.header-search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--text-3);
  pointer-events: none;
}

.site-nav {
  display: flex; align-items: center; gap: 4px; flex-shrink: 0; margin-left: auto;
}
.site-nav a {
  color: var(--text-2); font-size: 0.875rem; font-weight: 500;
  padding: 6px 12px; border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.site-nav a:hover { color: var(--text); background: var(--bg-3); }
.site-nav .btn-outline-sm { margin-left: 8px; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  width: 28px; padding: 4px; flex-shrink: 0;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--text-2); border-radius: 2px;
  transition: all var(--transition);
}

/* ════════════════════════════════════════
   HERO
════════════════════════════════════════ */
.hero {
  position: relative; overflow: hidden;
  padding: 80px 0 56px;
  border-bottom: 1px solid var(--border);
}

.hero-inner { position: relative; z-index: 1; max-width: 720px; }

.hero h1 { margin-bottom: 16px; }
.hero-accent { color: var(--accent); }

.hero-sub {
  color: var(--text-2); font-size: 1.05rem; max-width: 560px;
  margin-bottom: 32px; line-height: 1.65;
}

.hero-search-wrap {
  display: flex; gap: 8px; max-width: 560px; margin-bottom: 24px;
}
.hero-search {
  flex: 1; height: 48px; font-size: 1rem !important;
  border-radius: 10px !important;
}
.hero-search-wrap .btn-primary { height: 48px; padding: 0 28px; border-radius: 10px; }

.category-pills {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding-bottom: 4px;
}
.pill {
  padding: 6px 14px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 500;
  background: var(--bg-3); color: var(--text-2);
  border: 1px solid var(--border-2);
  transition: all var(--transition);
}
.pill:hover { color: var(--text); border-color: var(--text-3); background: var(--bg-4); }
.pill.active {
  background: var(--accent-dim); color: var(--accent);
  border-color: rgba(59,130,246,.35);
}

/* Hero grid background */
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 80% at 80% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 80% 50%, black 20%, transparent 80%);
}

/* ════════════════════════════════════════
   STATS BAR
════════════════════════════════════════ */
.stats-bar {
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.stats-inner {
  display: flex; justify-content: space-around; flex-wrap: wrap;
  padding: 20px 24px;
}
.stat {
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 16px; gap: 2px;
}
.stat-n {
  font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em;
}
.stat-badge {
  font-size: 0.85rem !important;
  color: var(--accent);
}
.stat-l { font-size: 0.75rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; }

/* ════════════════════════════════════════
   BROWSE SECTION
════════════════════════════════════════ */
.browse-section { padding: 48px 0 64px; }

.browse-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; margin-bottom: 24px;
}

.browse-controls {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}

.fmt-filters {
  display: flex; gap: 4px;
}
.fmt {
  padding: 6px 12px; border-radius: var(--radius);
  font-size: 0.8rem; font-weight: 500;
  color: var(--text-3); background: var(--bg-3);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.fmt:hover { color: var(--text-2); border-color: var(--border-2); }
.fmt.active { color: var(--text); background: var(--bg-4); border-color: var(--border-2); }

/* ── Model Grid ── */
.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* ── Model Card ── */
.model-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  display: flex; flex-direction: column;
}
.model-card:hover {
  border-color: var(--border-2);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.model-card a { color: inherit; text-decoration: none; display: flex; flex-direction: column; flex: 1; }

.card-thumb {
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.card-thumb-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  z-index: 2;
}
.card-thumb-inner {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 24px 24px;
}
.card-thumb-icon {
  position: relative; z-index: 1;
  width: 48px; height: 48px; opacity: .45;
}

.card-format-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: rgba(0,0,0,.7); backdrop-filter: blur(4px);
  color: var(--text-2); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 4px;
  border: 1px solid var(--border-2);
}

.card-verified {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: var(--green-dim); color: var(--green);
  font-size: 0.68rem; font-weight: 600;
  padding: 3px 8px; border-radius: 4px;
  border: 1px solid rgba(16,185,129,.2);
}

.card-body {
  padding: 14px 16px 16px;
  flex: 1; display: flex; flex-direction: column; gap: 8px;
}

.card-title {
  font-size: 0.9rem; font-weight: 600;
  line-height: 1.35; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

.card-creator {
  font-size: 0.78rem; color: var(--text-3);
  display: flex; align-items: center; gap: 4px;
}
.card-creator span { color: var(--text-2); }

.card-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 8px;
  border-top: 1px solid var(--border);
}
.card-likes, .card-downloads {
  display: flex; align-items: center; gap: 4px;
  font-size: 0.75rem; color: var(--text-3);
}
.card-likes svg, .card-downloads svg { width: 13px; height: 13px; }

.card-license {
  font-size: 0.68rem; font-weight: 600;
  padding: 2px 7px; border-radius: 4px;
  background: var(--bg-4); color: var(--text-3);
  border: 1px solid var(--border);
}
.card-license.cc0 { background: rgba(16,185,129,.1); color: var(--green); border-color: rgba(16,185,129,.2); }

/* ── Crawl source badge ── */
.card-source-badge {
  display: inline-block;
  font-size: 0.68rem; font-weight: 500;
  padding: 2px 7px; border-radius: 4px;
  background: rgba(99,102,241,.1); color: #818cf8;
  border: 1px solid rgba(99,102,241,.2);
  margin: 4px 0 2px;
}

/* ── Claim button (model page) ── */
.claim-section {
  margin-top: 20px;
  padding: 16px;
  background: rgba(99,102,241,.07);
  border: 1px solid rgba(99,102,241,.2);
  border-radius: var(--radius-lg);
}
.claim-section p { font-size: 0.82rem; color: var(--text-2); margin-bottom: 12px; line-height: 1.55; }
.claim-modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.7);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.claim-modal {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 480px; width: 100%;
}
.claim-modal h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.claim-modal p  { font-size: 0.85rem; color: var(--text-2); margin-bottom: 20px; line-height: 1.6; }
.claim-dropzone {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 28px 20px; text-align: center; cursor: pointer;
  background: var(--bg-3); position: relative; margin-bottom: 16px;
  transition: border-color .2s, background .2s;
}
.claim-dropzone:hover, .claim-dropzone.drag-over { border-color: var(--accent); background: var(--accent-dim); }
.claim-dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.claim-dropzone p { font-size: 0.85rem; color: var(--text-2); margin: 0; }
.claim-status { font-size: 0.82rem; padding: 10px 14px; border-radius: var(--radius); margin-bottom: 12px; }
.claim-status.match   { background: rgba(16,185,129,.1); color: #10b981; border: 1px solid rgba(16,185,129,.2); }
.claim-status.nomatch { background: rgba(239,68,68,.1);  color: #ef4444; border: 1px solid rgba(239,68,68,.2); }
.claim-status.hashing { background: var(--bg-3); color: var(--text-2); border: 1px solid var(--border); }
.claim-modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ── Skeleton loading ── */
@keyframes skel-shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}

.skel {
  background: var(--bg-4);
  background-image: linear-gradient(
    90deg,
    var(--bg-4)   0px,
    var(--bg-3)   80px,
    var(--bg-4)   160px
  );
  background-size: 400px 100%;
  animation: skel-shimmer 1.4s ease-in-out infinite;
  border-radius: 4px;
}

.skel-line {
  height: 12px;
  display: block;
}

.model-card--skeleton {
  pointer-events: none;
}

.model-card--skeleton .card-thumb {
  /* aspect-ratio kept from .card-thumb */
  border-radius: 0;
}

/* ── Browse error state ── */
.browse-error {
  grid-column: 1 / -1;
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; padding: 64px 0; text-align: center;
  color: var(--text-2);
}
.browse-error p { font-size: 0.9rem; }
.browse-error-msg {
  font-size: 0.8rem !important;
  color: var(--text-3); font-family: var(--font-mono);
}
.browse-error .btn-outline-sm { margin-top: 4px; }

/* ── Empty state ── */
.no-results {
  grid-column: 1 / -1;
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; padding: 64px 0; color: var(--text-3);
}
.no-results svg { width: 48px; height: 48px; opacity: .3; }
.no-results p { font-size: 0.95rem; }

/* ── Restricted content notice (guests only) ── */
.restricted-notice {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 16px; padding: 10px 14px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: 8px; font-size: 0.875rem; color: var(--text-2);
}
.restricted-notice svg { flex-shrink: 0; color: var(--accent); opacity: .7; }
.restricted-notice a { color: var(--accent); text-decoration: underline; }

/* ── Load more ── */
.load-more-wrap { text-align: center; margin-top: 40px; }

/* ════════════════════════════════════════
   CTA SECTION
════════════════════════════════════════ */
.cta-section {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 64px 0;
}
.cta-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.cta-text h2 { font-size: 1.7rem; margin-bottom: 12px; letter-spacing: -0.025em; }
.cta-text p { color: var(--text-2); margin-bottom: 28px; line-height: 1.7; max-width: 420px; }
.cta-buttons { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

/* Proof card */
.proof-card {
  background: var(--bg-3); border: 1px solid var(--border-2);
  border-radius: var(--radius-lg); padding: 20px;
  font-size: 0.83rem; box-shadow: var(--shadow);
  max-width: 340px; margin-left: auto;
}
.proof-card-header {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 0.85rem; color: var(--text);
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.proof-card-header svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }
.proof-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 0; border-bottom: 1px solid var(--border);
}
.proof-row:last-of-type { border-bottom: none; }
.proof-row span { color: var(--text-3); }
.proof-row code {
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-2);
  background: var(--bg-4); padding: 2px 6px; border-radius: 4px;
}
.proof-verified {
  margin-top: 14px; text-align: center;
  color: var(--green); font-weight: 600; font-size: 0.82rem;
  background: var(--green-dim); border-radius: 6px; padding: 7px;
  border: 1px solid rgba(16,185,129,.2);
}

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 56px 0 0;
}
.footer-inner {
  display: grid; grid-template-columns: 1.4fr 2fr; gap: 48px;
  padding-bottom: 48px;
}
.footer-brand .logo { margin-bottom: 12px; font-size: 0.95rem; }
.footer-brand p { color: var(--text-3); font-size: 0.85rem; line-height: 1.6; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { margin-bottom: 4px; }
.footer-col a { color: var(--text-3); font-size: 0.85rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--text-2); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex; flex-direction: column; gap: 4px;
}
.footer-bottom .container { display: flex; flex-direction: column; gap: 4px; }
.footer-bottom p { font-size: 0.8rem; color: var(--text-3); }
.footer-bottom a { color: var(--text-3); text-decoration: underline; text-decoration-color: var(--border-2); }
.footer-sub { font-size: 0.75rem !important; }
.footer-address {
  font-style: normal;
  color: var(--text-3); font-size: 0.78rem; line-height: 1.6;
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--border);
}
.footer-address-inline { font-size: 0.75rem !important; font-style: normal; color: var(--text-3); }

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */
@media (max-width: 900px) {
  .cta-inner { grid-template-columns: 1fr; }
  .cta-visual { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-links { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
  .header-search-wrap { display: none; }
  .site-nav a:not(.btn-outline-sm) { display: none; }
  .nav-toggle { display: flex; }

  .hero { padding: 48px 0 40px; }
  .hero-search-wrap { flex-direction: column; }
  .hero-search-wrap .btn-primary { width: 100%; justify-content: center; }

  .stats-inner { gap: 0; }
  .stat { padding: 8px; }
  .stat-n { font-size: 0.95rem; }

  .browse-header { flex-direction: column; align-items: flex-start; }
  .browse-controls { width: 100%; justify-content: space-between; }

  .model-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }

  .footer-links { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  h1 { font-size: 1.7rem; }
  .model-grid { grid-template-columns: 1fr 1fr; }
  .fmt-filters { display: none; }
  .footer-links { grid-template-columns: 1fr; }
}

/* ── Payment method modal ─────────────────────────────────────────────────── */
.pay-modal-overlay {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(0,0,0,.75);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.pay-modal {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 520px; width: 100%;
  position: relative;
}
.pay-modal h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
.pay-modal .pay-sub { font-size: 0.83rem; color: var(--text-2); margin-bottom: 24px; }
.pay-method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 22px; }
.pay-method-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  cursor: pointer;
  text-align: center;
  transition: border-color .2s, background .2s;
  background: var(--bg-3);
}
.pay-method-card:hover { border-color: var(--accent); background: var(--accent-dim); }
.pay-method-card.selected { border-color: var(--accent); background: var(--accent-dim); }
.pay-method-icon { font-size: 2rem; margin-bottom: 8px; }
.pay-method-label { font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; }
.pay-method-price { font-size: 0.78rem; color: var(--text-2); }
.pay-method-badge {
  display: inline-block;
  background: #10b981; color: #fff;
  font-size: 0.65rem; font-weight: 700;
  padding: 2px 7px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: .04em;
  margin-top: 4px;
}
/* Crypto payment step */
.pay-crypto-step { display: none; }
.pay-crypto-step.active { display: block; }
.pay-address-box {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-family: monospace; font-size: 0.75rem;
  word-break: break-all;
  color: var(--text-1);
  margin-bottom: 12px;
  cursor: pointer;
  position: relative;
}
.pay-address-box::after {
  content: 'click to copy';
  position: absolute; bottom: 6px; right: 10px;
  font-size: 0.65rem; color: var(--text-2); font-family: inherit;
}
.pay-address-box.copied::after { content: 'copied!'; color: #10b981; }
.pay-amount-big {
  font-size: 1.6rem; font-weight: 700; text-align: center;
  margin-bottom: 4px; letter-spacing: -.02em;
}
.pay-amount-sub { font-size: 0.8rem; color: var(--text-2); text-align: center; margin-bottom: 16px; }
.pay-timer { font-size: 0.8rem; color: var(--text-2); text-align: center; margin-bottom: 14px; }
.pay-timer span { font-weight: 600; color: var(--text-1); }
.pay-status-bar {
  font-size: 0.82rem; padding: 10px 14px;
  border-radius: var(--radius); margin-bottom: 14px; text-align: center;
}
.pay-status-bar.waiting  { background: var(--bg-3); color: var(--text-2); border: 1px solid var(--border); }
.pay-status-bar.checking { background: rgba(251,191,36,.08); color: #f59e0b; border: 1px solid rgba(251,191,36,.2); }
.pay-status-bar.confirming { background: rgba(99,102,241,.08); color: #818cf8; border: 1px solid rgba(99,102,241,.2); }
.pay-status-bar.paid    { background: rgba(16,185,129,.1); color: #10b981; border: 1px solid rgba(16,185,129,.2); }
.pay-status-bar.expired { background: rgba(239,68,68,.08); color: #ef4444; border: 1px solid rgba(239,68,68,.2); }
.pay-close-btn {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; cursor: pointer;
  color: var(--text-2); font-size: 1.2rem; line-height: 1;
  padding: 4px 8px; border-radius: var(--radius);
}
.pay-close-btn:hover { background: var(--bg-3); color: var(--text-1); }
.pay-modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }
.pay-qr { text-align: center; margin-bottom: 14px; }
.pay-qr canvas, .pay-qr img { border-radius: 8px; border: 4px solid #fff; }
.pay-network-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.75rem; color: var(--text-2);
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 20px; padding: 4px 12px;
  margin: 0 auto 16px; display: flex; justify-content: center;
}
.pay-network-dot { width: 8px; height: 8px; border-radius: 50%; background: #8247e5; flex-shrink: 0; }

/* ── Featured Creators section ───────────────────────────────────────────── */
.featured-creators-section {
  padding: 56px 0 48px;
  border-top: 1px solid var(--border);
}
.featured-creators-section .container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.fc-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 28px; flex-wrap: wrap; gap: 12px;
}
.fc-header h2 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; }
.fc-header a { font-size: 0.82rem; color: var(--text-2); text-decoration: none; }
.fc-header a:hover { color: var(--accent); }
.fc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.fc-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center;
  transition: border-color .2s, transform .15s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}
.fc-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.fc-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #8247e5);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 700; color: #fff;
  letter-spacing: -.02em; flex-shrink: 0;
}
.fc-avatar.has-thumb {
  background: none;
}
.fc-avatar img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}
.fc-name {
  font-size: 0.88rem; font-weight: 700;
  line-height: 1.2; word-break: break-word;
}
.fc-meta { font-size: 0.74rem; color: var(--text-2); }
.fc-verified-dot {
  position: absolute; top: 10px; right: 10px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #10b981;
  display: flex; align-items: center; justify-content: center;
}
.fc-verified-dot svg { width: 10px; height: 10px; color: #fff; }

/* ── Hero redesign ───────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
}

/* Animated hex rings */
.hero-hex-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hex-ring {
  position: absolute;
  border: 1px solid var(--accent);
  opacity: 0;
  border-radius: 4px;
  transform: rotate(30deg) scale(0.6);
  animation: hexPulse 8s ease-in-out infinite;
}
.hex-ring-1 {
  width: 320px; height: 320px;
  top: -60px; right: 8%;
  animation-delay: 0s;
}
.hex-ring-2 {
  width: 200px; height: 200px;
  top: 20px; right: 12%;
  animation-delay: 2s;
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
}
.hex-ring-3 {
  width: 100px; height: 100px;
  top: 60px; right: 16%;
  animation-delay: 4s;
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}
@keyframes hexPulse {
  0%   { opacity: 0;    transform: rotate(30deg) scale(0.6); }
  20%  { opacity: 0.18; transform: rotate(30deg) scale(1);   }
  70%  { opacity: 0.10; transform: rotate(30deg) scale(1.05);}
  100% { opacity: 0;    transform: rotate(30deg) scale(1.1); }
}

/* Eyebrow label */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.hero-chain-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: chainBlink 2.4s ease-in-out infinite;
}
@keyframes chainBlink {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--accent); }
  50%       { opacity: 0.5; box-shadow: 0 0 3px var(--accent); }
}

/* Proof nudge line */
.hero-proof-nudge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-2);
  margin-bottom: 24px;
}
.hero-proof-nudge svg { color: var(--accent); flex-shrink: 0; }
.hero-proof-nudge a  { color: var(--accent); text-decoration: none; }
.hero-proof-nudge a:hover { text-decoration: underline; }

/* ── Activity ticker ─────────────────────────────────────────────────────── */
.activity-ticker {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 24px;
  margin-top: 36px;
  background: color-mix(in srgb, var(--bg-2) 70%, transparent);
  border-top: 1px solid var(--border);
  overflow: hidden;
  font-size: 0.76rem;
}
.ticker-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}
.ticker-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  animation: tickerPulse 1.8s ease-in-out infinite;
}
@keyframes tickerPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
.ticker-track {
  display: flex;
  gap: 32px;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0, black 4%, black 96%, transparent 100%);
}
.ticker-inner {
  display: flex;
  gap: 32px;
  animation: tickerScroll 90s linear infinite;
  white-space: nowrap;
}
@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-item {
  color: var(--text-2);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ticker-item .ticker-creator { color: var(--text); font-weight: 600; }
.ticker-item .ticker-chain   { color: var(--accent); }

/* ── Plans teaser section ────────────────────────────────────────────────── */
.plans-teaser-section {
  padding: 64px 0 56px;
  border-top: 1px solid var(--border);
}
.plans-teaser-header {
  text-align: center;
  margin-bottom: 40px;
}
.plans-teaser-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 8px;
}
.plans-teaser-header p {
  color: var(--text-2);
  font-size: 0.92rem;
}
.plans-teaser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}
.pt-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  transition: border-color .2s, box-shadow .2s;
}
.pt-card:hover {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
}
.pt-card-featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent),
              0 12px 40px rgba(0,0,0,.25);
}
.pt-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 99px;
  white-space: nowrap;
}
.pt-plan-name {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 6px;
}
.pt-price {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-bottom: 4px;
}
.pt-amount {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
}
.pt-per { font-size: 0.82rem; color: var(--text-2); }
.pt-highlight {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}
.pt-features {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.82rem;
  color: var(--text-2);
  flex: 1;
  margin-bottom: 20px;
}
.pt-features li::before {
  content: '✓ ';
  color: #10b981;
  font-weight: 700;
}
.pt-cta {
  display: block;
  text-align: center;
  padding: 9px 16px;
  border-radius: var(--radius);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity .15s, transform .1s;
}
.pt-cta:hover { opacity: .85; transform: translateY(-1px); }
.pt-cta-primary {
  background: var(--accent);
  color: #fff;
}
.pt-cta-ghost {
  border: 1px solid var(--border);
  color: var(--text);
}
.pt-cta-ghost:hover { border-color: var(--accent); }
.plans-teaser-footnote {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-2);
  margin-top: 20px;
}
.plans-teaser-footnote a { color: var(--accent); text-decoration: none; }
.plans-teaser-footnote a:hover { text-decoration: underline; }


/* ── Account settings social inputs ────────────────────────────────────────── */
.settings-section-title {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.social-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.social-input-row svg { color: var(--text-2); flex-shrink: 0; }
.social-input-prefix {
  font-size: 0.74rem;
  color: var(--text-2);
  white-space: nowrap;
}
.social-input-row input {
  flex: 1;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 7px 10px;
  color: var(--text);
  font-size: 0.82rem;
}
.social-input-row input:focus { outline: none; border-color: var(--accent); }

/* ── First-stamp celebration overlay ─────────────────────────────────────── */
.stamp-celebrate {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.stamp-celebrate.visible {
  opacity: 1;
  pointer-events: auto;
}
.stamp-celebrate-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  max-width: 480px;
  width: calc(100% - 40px);
  text-align: center;
  transform: translateY(24px) scale(.97);
  transition: transform .5s cubic-bezier(.22,.61,.36,1);
  position: relative;
  overflow: hidden;
}
.stamp-celebrate.visible .stamp-celebrate-card {
  transform: translateY(0) scale(1);
}

/* Accent glow line at top */
.stamp-celebrate-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: glowLine 2.5s ease-in-out infinite;
}
@keyframes glowLine {
  0%,100% { opacity: .5; }
  50%      { opacity: 1; }
}

.celeb-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 15%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  animation: celebIconPulse 2s ease-in-out infinite;
}
@keyframes celebIconPulse {
  0%,100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 30%, transparent); }
  50%     { box-shadow: 0 0 0 12px transparent; }
}
.celeb-icon svg { color: var(--accent); }

.celeb-title {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 6px;
}
.celeb-subtitle {
  font-size: 0.84rem;
  color: var(--text-2);
  margin-bottom: 24px;
}

.celeb-proof-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  text-align: left;
  margin-bottom: 24px;
  font-size: 0.78rem;
}
.celeb-proof-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
}
.celeb-proof-row:not(:last-child) { border-bottom: 1px solid color-mix(in srgb, var(--border) 40%, transparent); padding-bottom: 6px; margin-bottom: 4px; }
.celeb-proof-row .label { color: var(--text-2); }
.celeb-proof-row .val   { font-family: var(--mono, monospace); color: var(--text); font-size: 0.74rem; text-align: right; word-break: break-all; max-width: 240px; }
.celeb-proof-row .val.pending { color: var(--accent); font-family: inherit; font-size: 0.78rem; }
.celeb-proof-row .val.confirmed { color: #10b981; font-family: inherit; font-size: 0.78rem; }

.celeb-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.celeb-btn {
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: opacity .15s, transform .1s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.celeb-btn:hover { opacity: .85; transform: translateY(-1px); }
.celeb-btn-primary { background: var(--accent); color: #fff; border: none; }
.celeb-btn-ghost   { background: transparent; border: 1px solid var(--border); color: var(--text); }
.celeb-btn-ghost:hover { border-color: var(--accent); }

.celeb-stamp-status {
  margin-bottom: 16px;
  font-size: 0.78rem;
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.celeb-stamp-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  animation: tickerPulse 1.8s infinite;
}
.celeb-stamp-dot.confirmed { background: #10b981; animation: none; }

/* ── Upload page stamp pricing strip ────────────────────────────────────── */
.stamp-pricing-strip {
  margin-top: 14px;
  padding: 12px 14px;
  background: color-mix(in srgb, var(--accent) 6%, var(--bg-2));
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--border));
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.78rem;
}
.stamp-pricing-tiers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.stamp-tier-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-2);
}
.stamp-tier-pill.free  { border-color: #10b981; color: #10b981; background: color-mix(in srgb, #10b981 8%, var(--bg)); }
.stamp-tier-pill.paid  { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--bg)); }
.stamp-pricing-strip .credits-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #10b981;
  white-space: nowrap;
}
.stamp-pricing-strip .pricing-link {
  font-size: 0.72rem;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.stamp-pricing-strip .pricing-link:hover { text-decoration: underline; }
.stamp-credits-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Hero visitor CTA row ── */
.hero-cta-row {
  display: flex; align-items: center; gap: 14px;
  margin-top: 16px; flex-wrap: wrap;
}
.btn-hero-cta {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--accent); color: #fff;
  font-size: 1rem; font-weight: 700;
  padding: 13px 28px; border-radius: 10px;
  text-decoration: none; letter-spacing: .01em;
  box-shadow: 0 4px 20px rgba(99,102,241,.35);
  transition: opacity .15s, transform .15s, box-shadow .15s;
}
.btn-hero-cta:hover {
  opacity: .92; color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(99,102,241,.45);
}
.hero-cta-sub {
  font-size: 0.78rem; color: var(--text-3);
}

/* ── Model card blockchain stamp badge ── */
.card-stamp-badge {
  z-index: 3;
  position: absolute; bottom: 8px; left: 8px;
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(10,10,18,.82); backdrop-filter: blur(4px);
  border: 1px solid rgba(130,71,229,.35);
  color: #8247E5; font-size: 0.65rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 4px;
}
.card-stamp-badge svg { flex-shrink: 0; }

/* ── Pricing social proof strip ── */
.pricing-social-proof {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin: 0 auto 32px; max-width: 480px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 99px; padding: 10px 24px;
}
.pricing-sp-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 1px; padding: 0 20px;
}
.pricing-sp-num {
  font-size: 1.1rem; font-weight: 800; color: var(--text);
}
.pricing-sp-label {
  font-size: 0.7rem; color: var(--text-3); white-space: nowrap;
}
.pricing-sp-divider {
  width: 1px; height: 28px; background: var(--border); flex-shrink: 0;
}

/* ── Annual billing toggle ── */
.billing-toggle-wrap {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; margin-bottom: 28px;
}
.billing-label {
  font-size: 0.88rem; color: var(--text-2); display: flex; align-items: center; gap: 6px;
}
.billing-save-badge {
  background: color-mix(in srgb, #10b981 15%, var(--bg));
  color: #10b981; border: 1px solid rgba(16,185,129,.25);
  font-size: 0.68rem; font-weight: 700; letter-spacing: .05em;
  padding: 2px 7px; border-radius: 99px; text-transform: uppercase;
}
.billing-toggle {
  width: 44px; height: 24px; border-radius: 99px;
  background: var(--bg-4); border: 1px solid var(--border-2);
  position: relative; cursor: pointer;
  transition: background .2s;
}
.billing-toggle[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }
.billing-toggle-knob {
  position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.billing-toggle[aria-pressed="true"] .billing-toggle-knob { transform: translateX(20px); }

