/* ============ COMPATIBILITY VARIABLES ============ */
:root {
  --bg: var(--bg-color);
  --line: var(--border-color);
  --line-soft: rgba(20, 17, 13, 0.05);
  --panel: var(--panel-bg-solid);
  --panel-2: rgba(222, 218, 210, 0.85);
}

/* ============ GENERAL SECTIONS ============ */
.section {
  width: 100%;
  border-top: 1px solid var(--border-color);
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

/* ============ LEGAL SECTIONS ============ */
.legal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.legal-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
}

.legal-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--amber);
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.legal-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legal-card li {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.6;
  position: relative;
  padding-left: 16px;
}

.legal-card li::before {
  content: '•';
  color: var(--amber);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* ============ PROBLEM SECTION ============ */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.compare-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px;
  position: relative;
}

.compare-card.bad {
  border-color: rgba(248, 113, 113, 0.3);
}

.compare-card.bad::before {
  content: '✕';
  position: absolute;
  top: -16px; left: 24px;
  width: 32px; height: 32px;
  background: var(--red);
  color: var(--bg);
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compare-card.good {
  border-color: var(--amber);
  background: linear-gradient(180deg, var(--amber-soft) 0%, var(--panel) 60%);
}

.compare-card.good::before {
  content: '✓';
  position: absolute;
  top: -16px; left: 24px;
  width: 32px; height: 32px;
  background: var(--amber);
  color: var(--bg);
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compare-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.compare-card.bad .compare-tag { color: var(--red);
}

.compare-card.good .compare-tag { color: var(--amber);
}

.compare-card h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
}

.compare-lyrics {
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 16px 20px;
  font-family: 'IBM Plex Sans Thai', sans-serif;
  margin-bottom: 16px;
  line-height: 2;
}

.compare-lyrics .line {
  display: flex;
  gap: 12px;
  align-items: center;
}

.compare-lyrics .ln {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--text-mute);
  width: 18px;
}

.compare-lyrics .err {
  color: var(--red);
  border-bottom: 2px wavy var(--red);
  padding: 0 2px;
}

.compare-lyrics .good-rhy {
  color: var(--green);
  border-bottom: 1px solid var(--green);
  padding: 0 2px;
}

.compare-issues {
  font-size: 15px;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.compare-issues .issue {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.compare-issues .x { color: var(--red); flex-shrink: 0;
}

.compare-issues .v { color: var(--green); flex-shrink: 0;
}

/* ============ HOW IT WORKS ============ */
.steps-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.steps-list > .step-card:nth-child(5) {
  grid-column: span 2;
}

.step-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.step-card:hover {
  border-color: var(--amber);
  transform: translateY(-4px);
}

.step-card::before {
  content: attr(data-num);
  position: absolute;
  top: 16px; right: 24px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 64px;
  font-weight: 700;
  color: var(--amber);
  opacity: 0.1;
  line-height: 1;
}

.step-card-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}

.step-card h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-card p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.step-card .visual {
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 16px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
}

.step-card .visual .key { color: var(--amber);
}

.step-card .visual .val { color: var(--text);
}

/* Visual chips for step examples */
.viz-chip {
  display: inline-block;
  padding: 4px 10px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin: 2px;
  font-family: 'IBM Plex Sans Thai', sans-serif;
  font-size: 14px;
  color: var(--text);
}

/* ============ FEATURES ============ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ============ PRICING TEASER ============ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.price-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px 24px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.price-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.price-card.featured {
  border-color: var(--amber);
  background: linear-gradient(180deg, var(--amber-soft) 0%, var(--panel) 60%);
}

.price-card.featured:hover {
  border-color: var(--amber-bright);
  box-shadow: 0 12px 36px var(--amber-glow);
}

.price-card.featured::before {
  content: 'แนะนำ';
  position: absolute;
  top: -12px; left: 24px;
  padding: 4px 12px;
  background: var(--amber);
  color: var(--bg-color);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  border-radius: 4px;
  z-index: 10;
}

.price-tier {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber);
  margin-bottom: 12px;
}

.price-amount {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
}

.price-amount .currency {
  font-size: 18px;
  font-weight: 500;
  margin-right: 2px;
}

.price-amount .period {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-dim);
  margin-left: 2px;
}

.price-songs {
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}

.price-features {
  list-style: none !important;
  list-style-type: none !important;
  padding-left: 0 !important;
  margin: 0 0 28px 0 !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-features li {
  list-style: none !important;
  list-style-type: none !important;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.4;
}

.price-features li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

.price-cta {
  display: block;
  text-align: center;
  padding: 12px 20px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition);
  margin-top: auto;
}

.price-cta.outline {
  border: 1px solid var(--border-color);
  color: var(--text-main);
  background: transparent;
}

.price-cta.outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.price-cta.solid {
  background: var(--amber);
  color: var(--bg-color);
  box-shadow: var(--amber-shadow);
}

.price-cta.solid:hover {
  background: var(--amber-bright);
  box-shadow: 0 4px 16px var(--amber-glow);
  transform: translateY(-1px);
}

.price-note {
  text-align: center;
  margin-top: 28px;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.7;
}

@media (max-width: 1200px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px;
  }
}

@media (max-width: 700px) {
  .pricing-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
}

.examples-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.example-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
  transition: all .25s;
}

.example-card:hover { border-color: var(--amber); transform: translateY(-3px);
}

.example-card h3 { font-size: 19px; margin-bottom: 8px;
}

/* ============ ABOUT THE CREATOR ============ */
.creator {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 64px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 48px;
}

.creator-portrait {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--panel-2), var(--bg));
  border: 1px solid var(--line);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.creator-portrait::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, var(--amber-soft), transparent 70%);
}

.creator-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.creator-portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,20,25,0.08) 0%, rgba(14,20,25,0.22) 55%, rgba(14,20,25,0.72) 100%);
  z-index: 2;
  pointer-events: none;
}

.creator-mark {
  width: 120px; height: 120px;
  background: var(--amber);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 64px;
  font-weight: 700;
  color: var(--bg);
  position: relative;
  z-index: 2;
  box-shadow: 0 8px 32px var(--amber-glow);
}

.creator-credentials {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.creator-credentials .line {
  display: flex;
  justify-content: space-between;
  padding: 6px 10px;
  background: rgba(13,9,6,0.7);
  border: 1px solid var(--line);
  border-radius: 3px;
  backdrop-filter: blur(8px);
}

.creator-credentials .v { color: var(--amber);
}

.creator h3 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.creator .nick {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 24px;
}

.creator-bio {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.creator-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.creator-role {
  padding: 6px 14px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

/* ============ FAQ ============ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 8px;
  overflow: hidden;
  transition: all 0.2s;
}

.faq-item:hover { border-color: var(--amber);
}

.faq-q {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
  user-select: none;
}

.faq-q::after {
  content: '+';
  font-family: 'IBM Plex Mono', monospace;
  font-size: 24px;
  color: var(--amber);
  transition: transform 0.3s;
  font-weight: 300;
}

.faq-item.open .faq-q::after { content: '−';
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.7;
}

.faq-item.open .faq-a { max-height: 300px;
}

.faq-a-inner { padding: 0 24px 20px; border-top: 1px solid var(--line-soft); padding-top: 16px;
}



@media (max-width: 900px) {
  .examples-grid, .legal-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .compare-grid, .pricing-grid, .features-grid, .testimonials,
  .creator, .footer-inner, .steps-list { grid-template-columns: 1fr; }
  .steps-list > .step-card:nth-child(5) { grid-column: 1; }
  .nav-links { display: none; }
}

/* ============ FOOTER STYLING ============ */
.main-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-color);
  padding: 80px 0 40px;
  margin-top: 60px;
  position: relative;
  z-index: 1;
}

.main-footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand .footer-desc {
  margin-top: 20px;
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 320px;
}

.footer-links-col h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-col ul a {
  font-size: 15px;
  color: var(--text-dim);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links-col ul a:hover {
  color: var(--amber);
}

.footer-email a {
  color: var(--amber);
  text-decoration: none;
}

.footer-email a:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--text-mute);
}

@media (max-width: 1000px) {
  .main-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 600px) {
  .main-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .main-footer {
    padding: 60px 0 30px;
  }
}

@media (max-width: 700px) {
  nav.top-nav { padding: 12px 16px; }
  .section { padding: 64px 16px; }
  .hero { padding: 48px 16px 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .proof-inner { grid-template-columns: 1fr; gap: 24px; }
  .proof-stat { border-right: none; border-bottom: 1px solid var(--line); padding-right: 0; padding-bottom: 24px; }
  .creator { padding: 32px 24px; }
  .final-cta { padding: 48px 24px; }
  .demo-meta { flex-wrap: wrap; gap: 8px; }
}

/* ============ CHECKOUT MODAL STYLES ============ */
.checkout-dialog {
  background: rgba(20, 28, 38, 0.95);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  color: var(--text-main);
  padding: 0;
  max-width: 820px;
  width: 90%;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 0, 0, 0.6);
  font-family: var(--font-sans);
}

.checkout-dialog::backdrop {
  background: rgba(4, 8, 12, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.checkout-container {
  display: flex;
  min-height: 420px;
  border-top: 1px solid var(--border-color);
}

.checkout-summary-col {
  width: 42%;
  background: rgba(0, 0, 0, 0.2);
  border-right: 1px solid var(--border-color);
  padding: 32px 32px;
  display: flex;
  flex-direction: column;
}

.checkout-payment-col {
  width: 58%;
  padding: 32px 32px;
}

/* Summary Column Card */
.checkout-plan-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.checkout-plan-tier {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--amber);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.checkout-plan-price {
  font-size: 38px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
}

.checkout-plan-price .currency {
  font-size: 20px;
  margin-right: 2px;
}

.checkout-plan-price .period {
  font-size: 15px;
  color: var(--text-dim);
  font-weight: 400;
}

.checkout-plan-desc {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.checkout-plan-features {
  list-style: none !important;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkout-plan-features li {
  font-size: 15px;
  color: var(--text-dim);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}

.checkout-plan-features li::before {
  content: '✓';
  color: var(--amber);
  font-weight: bold;
  flex-shrink: 0;
}

/* Payment tabs */
.payment-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
  gap: 16px;
}

.payment-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-mute);
  padding: 10px 4px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.payment-tab:hover {
  color: var(--text-dim);
}

.payment-tab.active {
  color: var(--amber);
  border-bottom-color: var(--amber);
}

.payment-tab svg {
  width: 16px;
  height: 16px;
}

/* Payment Panels */
.payment-panel {
  display: none;
}

.payment-panel.active {
  display: block;
}

/* PromptPay QR Code Styles */
.promptpay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.promptpay-logo {
  height: 24px;
  width: auto;
}

.promptpay-sub {
  font-size: 13px;
  color: var(--text-mute);
}

.promptpay-qr-wrapper {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.promptpay-qr-box {
  background: white;
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.pp-qr-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 180px;
}

.pp-qr-top {
  background: #003764;
  color: white;
  width: 100%;
  text-align: center;
  padding: 4px 0;
  border-radius: 4px 4px 0 0;
  font-family: sans-serif;
  font-weight: bold;
  font-size: 11px;
  letter-spacing: 0.5px;
}

.pp-qr-body {
  padding: 10px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
}

.mock-qr-code {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promptpay-qr-logo {
  position: absolute;
  background: #003764;
  color: white;
  font-family: sans-serif;
  font-weight: bold;
  font-size: 12px;
  padding: 2px 4px;
  border-radius: 4px;
  border: 2px solid white;
}

.pp-qr-footer {
  border-top: 1px solid #eee;
  width: 100%;
  text-align: center;
  padding: 4px 0 0;
  color: #333;
  font-family: sans-serif;
  font-size: 7px;
  font-weight: 600;
}

.pp-merchant-name {
  margin-bottom: 2px;
}

.pp-ref-id {
  color: #666;
  font-size: 6px;
}

.promptpay-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 15px;
  border-top: 1px dashed var(--border-color);
  padding-top: 12px;
}

.promptpay-info .info-row {
  display: flex;
  justify-content: space-between;
}

.promptpay-info .info-row .lbl {
  color: var(--text-mute);
}

.promptpay-info .info-row .val {
  color: var(--text-main);
  font-weight: 500;
}

.promptpay-info .info-row .val.amber {
  color: var(--amber);
  font-weight: 700;
}

/* Credit Card Form Overrides */
.checkout-card-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Stripe Card Element container */
.stripe-element-container {
  background: var(--input-bg, rgba(255,255,255,0.06));
  border: 1px solid var(--border, rgba(255,255,255,0.12));
  border-radius: 8px;
  padding: 13px 14px;
  transition: border-color 0.2s;
}

.stripe-element-container:focus-within,
.stripe-element-container.StripeElement--focus {
  border-color: var(--accent, #7c5be6);
  box-shadow: 0 0 0 2px rgba(124, 91, 230, 0.18);
}

.stripe-element-container.StripeElement--invalid {
  border-color: var(--red, #e05c5c);
}

.checkout-card-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.input-with-icon {
  position: relative;
}

.input-with-icon input {
  padding-left: 40px !important;
}

.field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-mute);
  pointer-events: none;
}

/* Loading & Success States inside Dialog */
.checkout-loading-view,
.checkout-success-view {
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  text-align: center;
}

.checkout-loading-view h3,
.checkout-success-view h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.checkout-loading-view p,
.checkout-success-view p {
  color: var(--text-dim);
  font-size: 15px;
  max-width: 400px;
  line-height: 1.6;
}

.checkout-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.05);
  border-top-color: var(--amber);
  border-radius: 50%;
  animation: checkout-spin 1s linear infinite;
  margin-bottom: 24px;
}

@keyframes checkout-spin {
  to { transform: rotate(360deg); }
}

/* Checkmark SVG drawing animation */
.success-checkmark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: block;
  stroke-width: 2.5;
  stroke: var(--green);
  stroke-miterlimit: 10;
  box-shadow: inset 0px 0px 0px rgba(46, 204, 113, 0);
  animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out 0s forwards;
  margin: 0 auto 24px;
}

.success-checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2.5;
  stroke-miterlimit: 10;
  stroke: var(--green);
  fill: none;
  animation: check-stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: check-stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes check-stroke {
  100% { stroke-dashoffset: 0; }
}

@keyframes scale {
  0%, 100% { transform: none; }
  50% { transform: scale3d(1.1, 1.1, 1); }
}

@keyframes fill {
  100% { box-shadow: inset 0px 0px 0px 40px rgba(46, 204, 113, 0.1); }
}

/* User Navbar Tier Badge */
.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 4px 12px 4px 6px;
  border-radius: 20px;
}

.user-avatar {
  background: var(--amber);
  color: var(--bg-color);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  font-family: var(--font-mono);
}

.user-tier-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 4px;
  letter-spacing: 0.05em;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.user-tier-badge.free {
  background: rgba(144, 158, 176, 0.15);
  color: var(--text-dim);
  border: 1px solid rgba(144, 158, 176, 0.2);
}

.user-tier-badge.creator {
  background: rgba(46, 204, 113, 0.15);
  color: var(--green);
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.user-tier-badge.pro {
  background: rgba(255, 169, 64, 0.15);
  color: var(--amber);
  border: 1px solid rgba(255, 169, 64, 0.3);
  box-shadow: 0 0 12px var(--amber-glow);
}

.user-tier-badge.studio {
  background: rgba(52, 152, 219, 0.15);
  color: #3498db;
  border: 1px solid rgba(52, 152, 219, 0.3);
}

.user-tier-badge.whitelisted {
  background: rgba(162, 89, 255, 0.15);
  color: #a259ff;
  border: 1px solid rgba(162, 89, 255, 0.3);
}

/* Responsive adjustments for Checkout Modal */
@media (max-width: 768px) {
  .checkout-container {
    flex-direction: column;
  }
  .checkout-summary-col {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 24px;
  }
  .checkout-payment-col {
    width: 100%;
    padding: 24px;
  }
}

.checkout-dialog .dialog-head {
  padding: 24px 32px 16px 32px;
  margin-bottom: 0;
}

/* ============ SCROLL REVEAL ANIMATIONS ============ */
.section-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

