/* ============================================================
   Monetive — Global Stylesheet
   Matches original design: white/black/yellow (#FFE034), Inter font
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ── Design Tokens ── */
:root {
  --radius: 1rem;
  --bg: #FFFFFF;
  --fg: #0A0A0A;
  --card: #FFFFFF;
  --muted: #F5F5F5;
  --muted-fg: #6B6B6B;
  --border: #E8E8E8;
  --primary: #FFE034;
  --primary-fg: #0A0A0A;
  --primary-soft: #FFF7C2;
  --destructive: #FF3B30;
  --shadow-card: 0 2px 8px rgb(0 0 0 / 0.06);
  --shadow-elevated: 0 8px 24px -8px rgb(0 0 0 / 0.12), 0 2px 6px rgb(0 0 0 / 0.05);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11","ss01","ss03";
  line-height: 1.5;
}
h1,h2,h3,h4 { letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input,textarea,select {
  font-family: inherit;
  font-size: 15px;
  color: var(--fg);
}
img { max-width: 100%; display: block; }

/* ── Utility ── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 48px; }
@media (max-width: 768px) { .container { padding: 0 20px; } }

.hidden { display: none !important; }
.flex { display: flex; }
.flex-1 { flex: 1; }
.grid { display: grid; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Input ── */
.input {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 0 14px;
  font-size: 15px;
  color: var(--fg);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  display: block;
}
.input::placeholder { color: #9A9A9A; }
.input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,224,52,.2);
}
textarea.input { height: auto; padding: 11px 14px; resize: vertical; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 20px; height: 48px; border-radius: 12px; font-size: 15px; font-weight: 600; transition: all .15s; cursor: pointer; border: none; white-space: nowrap; }
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { background: #FFD000; }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; }
.btn-black { background: #0A0A0A; color: #fff; }
.btn-black:hover { background: #1f1f1f; }
.btn-outline { background: #fff; color: var(--fg); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--fg); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 9px; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: 9px; }
.btn-destructive { background: #FEF2F2; color: var(--destructive); }
.btn-destructive:hover { background: #FEE2E2; }

/* ── Card ── */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; }
.card-elevated { box-shadow: var(--shadow-elevated); }

/* ── Badge ── */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.badge-yellow { background: var(--primary-soft); color: #7A6000; }
.badge-green { background: #DCFCE7; color: #15803D; }
.badge-red { background: #FEE2E2; color: #DC2626; }
.badge-gray { background: var(--muted); color: var(--muted-fg); }
.badge-blue { background: #EFF6FF; color: #1D4ED8; }

/* ── Flash messages ── */
.flash { padding: 12px 16px; border-radius: 12px; font-size: 14px; margin-bottom: 16px; }
.flash-error { background: #FEF2F2; color: #DC2626; border: 1px solid #FECACA; }
.flash-success { background: #DCFCE7; color: #15803D; border: 1px solid #BBF7D0; }

/* ── SVG Icons (inline) ── */
.icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* ── Prefix Input ── */
.prefix-input { display: flex; height: 48px; align-items: center; border-radius: 12px; border: 1px solid var(--border); background: #fff; transition: border-color .15s, box-shadow .15s; overflow: hidden; }
.prefix-input:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,224,52,.2); }
.prefix-input .prefix { display: flex; align-items: center; padding: 0 14px; font-size: 15px; color: var(--muted-fg); border-right: 1px solid var(--border); height: 100%; white-space: nowrap; flex-shrink: 0; }
.prefix-input input { flex: 1; border: none; outline: none; background: transparent; padding: 0 12px; font-size: 15px; height: 100%; color: var(--fg); }
.prefix-input input::placeholder { color: #9A9A9A; }
.prefix-input .suffix { padding: 0 12px; color: var(--muted-fg); display: flex; align-items: center; }

/* ── Toast (simple) ── */
#toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast { background: #0A0A0A; color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 500; box-shadow: 0 4px 16px rgba(0,0,0,.2); animation: slideUp .2s ease; max-width: 320px; }
.toast.toast-error { background: var(--destructive); }
.toast.toast-success { background: #16A34A; }
@keyframes slideUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ── Spinner ── */
.spinner { width: 20px; height: 20px; border: 2px solid rgba(0,0,0,.1); border-top-color: currentColor; border-radius: 50%; animation: spin .6s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Modal ── */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { background: #fff; border-radius: 20px; width: 100%; max-width: 480px; box-shadow: var(--shadow-elevated); }
.modal-header { padding: 20px 24px 0; display: flex; align-items: center; justify-content: space-between; }
.modal-body { padding: 20px 24px 24px; }
.modal-footer { padding: 0 24px 24px; display: flex; gap: 12px; }

/* ── Table ── */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead { background: #FAFAFA; }
th { padding: 10px 16px; text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-fg); font-weight: 600; }
td { padding: 12px 16px; border-top: 1px solid var(--border); color: var(--fg); }
tr:hover td { background: #FAFAFA; }

/* ── Tabs ── */
.tabs { display: flex; border-bottom: 1px solid var(--border); gap: 0; }
.tab { padding: 10px 16px; font-size: 14px; font-weight: 500; color: var(--muted-fg); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all .15s; cursor: pointer; }
.tab:hover { color: var(--fg); }
.tab.active { color: var(--fg); border-bottom-color: var(--primary); font-weight: 600; }

/* ── Dropdown menu ── */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-elevated); min-width: 180px; z-index: 100; overflow: hidden; }
.dropdown-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 14px; color: var(--fg); transition: background .1s; cursor: pointer; }
.dropdown-item:hover { background: var(--muted); }
.dropdown-item.danger { color: var(--destructive); }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* ── Announcement bar ── */
.announce { background: #0A0A0A; color: #9CA3AF; font-size: 12px; text-align: center; padding: 0 40px; height: 36px; display: flex; align-items: center; justify-content: center; position: relative; }
.announce a { color: var(--primary); font-weight: 600; margin-left: 8px; }
.announce-close { position: absolute; right: 12px; background: none; border: none; color: #444; cursor: pointer; padding: 4px; display: flex; align-items: center; }
.announce-close:hover { color: #fff; }

/* ── Landing Nav ── */
.site-nav { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--border); }
.site-nav-inner { max-width: 1280px; margin: 0 auto; padding: 0 48px; height: 60px; display: flex; align-items: center; justify-content: space-between; }
@media (max-width: 768px) { .site-nav-inner { padding: 0 20px; } }
.nav-links { display: flex; align-items: center; gap: 40px; }
.nav-links a { font-size: 14px; font-weight: 500; color: #6B7280; transition: color .15s; }
.nav-links a:hover { color: var(--fg); }
.nav-cta { display: flex; align-items: center; gap: 24px; }
.nav-login { font-size: 14px; color: #6B7280; }
.nav-login:hover { color: var(--fg); }

/* ── Hero ── */
.hero { padding: 80px 0 80px; text-align: center; }
@media (max-width: 768px) { .hero { padding: 60px 0 60px; } }
.hero-badge { display: inline-flex; align-items: center; border: 1px solid var(--border); background: #FAFAFA; border-radius: 999px; padding: 6px 16px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: #6B7280; }
.hero h1 { font-size: 72px; font-weight: 900; line-height: 1.05; letter-spacing: -0.03em; margin: 24px auto 0; max-width: 900px; }
@media (max-width: 768px) { .hero h1 { font-size: 40px; } }
.hero-sub { font-size: 22px; font-weight: 500; color: #6B7280; margin-top: 16px; }
.hero-sub strong { color: var(--fg); font-weight: 700; }
.hero-desc { font-size: 16px; color: #9CA3AF; line-height: 1.7; max-width: 520px; margin: 24px auto 0; }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 40px; flex-wrap: wrap; }
.hero-checks { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px 24px; margin-top: 32px; }
.hero-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #6B7280; }

/* ── Stats bar ── */
.stats-bar { background: #0A0A0A; padding: 40px 0; }
.stats-grid { max-width: 1200px; margin: 0 auto; padding: 0 48px; display: grid; grid-template-columns: repeat(4,1fr); }
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2,1fr); gap: 32px 0; padding: 0 20px; } }
.stat-item { text-align: center; padding: 0 16px; }
.stat-item + .stat-item { border-left: 1px solid #1E1E1E; }
@media (max-width: 768px) { .stat-item + .stat-item { border-left: none; } }
.stat-value { font-size: 40px; font-weight: 900; letter-spacing: -0.02em; color: var(--primary); }
@media (max-width: 768px) { .stat-value { font-size: 32px; } }
.stat-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: #6B7280; margin-top: 4px; }

/* ── Section headings ── */
.section-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: #9CA3AF; }
.section-label.yellow { color: var(--primary); }
.section-h2 { font-size: 48px; font-weight: 700; letter-spacing: -0.02em; margin-top: 12px; }
@media (max-width: 768px) { .section-h2 { font-size: 32px; } }

/* ── How it works ── */
.how-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 64px; position: relative; }
@media (max-width: 768px) { .how-steps { grid-template-columns: 1fr; gap: 48px; } }
.how-step { text-align: center; }
.how-step-num { width: 48px; height: 48px; border-radius: 50%; border: 2px solid #0A0A0A; background: #fff; font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto; position: relative; z-index: 1; }
.how-step h3 { font-size: 18px; font-weight: 700; margin-top: 16px; }
.how-step p { font-size: 14px; color: #6B7280; line-height: 1.6; margin: 8px auto 0; max-width: 220px; }
.how-line { position: absolute; top: 24px; left: 12%; right: 12%; border-top: 1px dashed var(--border); display: none; }
@media (min-width: 769px) { .how-line { display: block; } }

/* ── Features grid ── */
.feature-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 56px; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2,1fr); } }
.feature-card { border: 1px solid var(--border); border-radius: 12px; padding: 24px; background: #fff; transition: border-color .2s; }
.feature-card:hover { border-color: var(--primary); }
.feature-card h3 { font-size: 16px; font-weight: 700; margin-top: 12px; }
.feature-card p { font-size: 14px; color: #6B7280; line-height: 1.6; margin-top: 4px; }

/* ── Education section ── */
.edu-section { background: #0A0A0A; padding: 100px 0; }
@media (max-width: 768px) { .edu-section { padding: 60px 0; } }
.edu-grid { max-width: 1200px; margin: 0 auto; padding: 0 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
@media (max-width: 768px) { .edu-grid { grid-template-columns: 1fr; gap: 48px; padding: 0 20px; } }
.edu-card { background: #111; border: 1px solid #1E1E1E; border-radius: 12px; padding: 20px; }
.edu-card h3 { font-size: 16px; font-weight: 700; color: #fff; margin-left: 12px; }
.edu-card p { font-size: 14px; color: #6B7280; line-height: 1.6; margin-top: 12px; }

/* ── Testimonials ── */
.testimonial-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 48px; }
@media (max-width: 768px) { .testimonial-grid { grid-template-columns: 1fr; } }
.testimonial-card { border: 1px solid var(--border); border-radius: 20px; padding: 24px; background: #fff; }
.testimonial-stars { display: flex; gap: 4px; color: var(--primary); }
.testimonial-quote { font-size: 16px; font-weight: 500; line-height: 1.6; margin-top: 16px; }
.testimonial-quote::before { content: '"'; font-size: 24px; font-weight: 900; color: rgba(255,224,52,.3); margin-right: 4px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.testimonial-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; flex-shrink: 0; }

/* ── Pricing ── */
.pricing-card { max-width: 480px; margin: 64px auto 0; border: 2px solid #0A0A0A; border-radius: 20px; padding: 40px; }
.pricing-price { font-size: 64px; font-weight: 900; letter-spacing: -0.03em; line-height: 1; }
@media (max-width: 768px) { .pricing-price { font-size: 56px; } }
.pricing-features { list-style: none; }
.pricing-features li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #F3F4F6; font-size: 14px; }
.pricing-features li:last-child { border-bottom: none; }

/* ── FAQ ── */
.faq-section { background: #FAFAFA; padding: 100px 0; }
@media (max-width: 768px) { .faq-section { padding: 60px 0; } }
.faq-grid { max-width: 1100px; margin: 0 auto; padding: 0 48px; display: grid; grid-template-columns: 280px 1fr; gap: 64px; }
@media (max-width: 768px) { .faq-grid { grid-template-columns: 1fr; gap: 40px; padding: 0 20px; } }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 20px 0; text-align: left; font-size: 16px; font-weight: 500; background: none; border: none; cursor: pointer; gap: 16px; }
.faq-q svg { flex-shrink: 0; color: #9CA3AF; transition: transform .2s; }
.faq-q.open svg { transform: rotate(180deg); }
.faq-a { font-size: 14px; color: #6B7280; line-height: 1.7; padding-bottom: 20px; max-width: 560px; display: none; }
.faq-a.open { display: block; }

/* ── Footer ── */
.site-footer { background: #0A0A0A; border-top: 1px solid #1E1E1E; padding: 64px 0 32px; }
.footer-grid { max-width: 1200px; margin: 0 auto; padding: 0 48px; display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; padding: 0 20px; } }
.footer-col-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 14px; color: #6B7280; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { max-width: 1200px; margin: 32px auto 0; padding: 24px 48px 0; border-top: 1px solid #1E1E1E; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
@media (max-width: 768px) { .footer-bottom { padding: 24px 20px 0; flex-direction: column; align-items: flex-start; } }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #1E1E1E; color: #fff; display: flex; align-items: center; justify-content: center; transition: border-color .15s; }
.footer-social a:hover { border-color: var(--primary); }

/* ── Auth page ── */
.auth-page { min-height: 100vh; background: #F5F5F5; display: flex; align-items: flex-start; justify-content: center; padding: 32px 16px; }
.auth-box { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 32px; box-shadow: var(--shadow-card); }
.auth-tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.auth-tab { flex: 1; padding: 10px 12px; font-size: 14px; font-weight: 600; color: var(--muted-fg); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all .15s; background: none; border-top: none; border-left: none; border-right: none; }
.auth-tab:hover { color: var(--fg); }
.auth-tab.active { color: var(--fg); border-bottom-color: var(--primary); }
.auth-divider { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted-fg); margin: 16px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── Dashboard layout ── */
.dash-layout { display: flex; min-height: 100vh; background: #FAFAFA; }
.dash-sidebar { width: 220px; flex-shrink: 0; background: #fff; border-right: 1px solid var(--border); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
@media (max-width: 768px) { .dash-sidebar { display: none; } }
.dash-logo { padding: 20px; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; display: block; }
.dash-nav { flex: 1; overflow-y: auto; padding: 8px 0; }
.nav-section-label { padding: 16px 24px 8px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: #9B9B9B; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 16px; margin: 0 8px; border-radius: 12px; font-size: 14px; color: #6B6B6B; transition: all .1s; text-decoration: none; position: relative; }
.nav-item:hover { background: #F5F5F5; color: var(--fg); }
.nav-item.active { background: #FFF9D6; color: var(--fg); font-weight: 600; }
.nav-item.active::before { content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 0 3px 3px 0; background: var(--primary); }
.nav-item.disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.nav-item .nav-soon { font-size: 10px; color: var(--muted-fg); margin-left: auto; }
.nav-icon { width: 18px; height: 18px; flex-shrink: 0; }
.dash-sidebar-footer { border-top: 1px solid var(--border); padding: 12px; }
.sidebar-profile { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 12px; }
.sidebar-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--muted); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; overflow: hidden; flex-shrink: 0; }
.sidebar-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-name { font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-username { font-size: 11px; color: var(--muted-fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-main { flex: 1; min-width: 0; padding: 40px 32px; }
@media (max-width: 768px) { .dash-main { padding: 72px 16px 96px; } }

/* ── Mobile top bar ── */
.mobile-topbar { display: none; position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 56px; background: #fff; border-bottom: 1px solid var(--border); padding: 0 16px; align-items: center; justify-content: space-between; }
@media (max-width: 768px) { .mobile-topbar { display: flex; } }

/* ── Mobile bottom nav ── */
.mobile-bottom-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 100; height: 64px; background: #fff; border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom); }
@media (max-width: 768px) { .mobile-bottom-nav { display: flex; } }
.bottom-nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 10px; color: #6B6B6B; text-decoration: none; position: relative; }
.bottom-nav-item.active { color: var(--fg); font-weight: 600; }
.bottom-nav-item.active::before { content: ''; position: absolute; top: 6px; width: 4px; height: 4px; border-radius: 50%; background: var(--primary); }
.bottom-nav-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 10px; text-decoration: none; }
.bottom-nav-center-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; margin-top: -4px; }

/* ── Dashboard content cards ── */
.action-card { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 20px; display: block; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.action-card:hover { border-color: var(--primary); box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.action-card-icon { width: 40px; height: 40px; border-radius: 12px; background: #FFF9D6; display: flex; align-items: center; justify-content: center; }
.action-card h3 { font-size: 15px; font-weight: 600; margin-top: 16px; }
.action-card p { font-size: 14px; color: var(--muted-fg); margin-top: 4px; }
.action-card-cta { font-size: 12px; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; }

.stat-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.stat-card-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-fg); }
.stat-card-value { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin-top: 8px; }
@media (max-width: 768px) { .stat-card-value { font-size: 18px; } }

/* ── Payment page card ── */
.pp-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 16px; display: flex; gap: 12px; transition: box-shadow .15s; }
.pp-card:hover { box-shadow: var(--shadow-card); }
.pp-thumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--muted); flex-shrink: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--muted-fg); }
.pp-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ── Onboarding ── */
.onboarding-page { min-height: 100vh; background: #F5F5F5; padding: 48px 16px; }
.onboarding-card { max-width: 540px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 32px; box-shadow: var(--shadow-card); }

/* ── Public creator page ── */
.public-profile-page { min-height: 100vh; }
.public-cover { width: 100%; height: 200px; background: #F5F5F5; object-fit: cover; }
.public-avatar { width: 80px; height: 80px; border-radius: 50%; border: 3px solid #fff; object-fit: cover; flex-shrink: 0; }
.public-links { display: flex; flex-direction: column; gap: 12px; }
.public-link-btn { display: flex; align-items: center; justify-content: center; width: 100%; padding: 14px 20px; border-radius: 12px; background: var(--primary); color: var(--primary-fg); font-weight: 600; font-size: 15px; text-decoration: none; transition: opacity .15s; }
.public-link-btn:hover { opacity: .88; }

/* ── Payment page (public) ── */
.payment-page-public { max-width: 680px; margin: 0 auto; padding: 40px 20px 80px; }
.payment-page-cover { width: 100%; border-radius: 16px; max-height: 360px; object-fit: cover; }
.payment-page-price { font-size: 36px; font-weight: 900; letter-spacing: -0.02em; }
.payment-page-original { font-size: 20px; text-decoration: line-through; color: var(--muted-fg); margin-left: 12px; }

/* ── Admin ── */
.admin-layout { display: flex; min-height: 100vh; background: #FAFAFA; }

/* ── Store public ── */
.store-page { min-height: 100vh; }

/* ── My purchases ── */
.purchases-page { max-width: 640px; margin: 0 auto; padding: 48px 20px; }

/* ── Success pages ── */
.success-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #FAFAFA; padding: 40px 20px; }
.success-card { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 40px; text-align: center; max-width: 480px; width: 100%; box-shadow: var(--shadow-card); }
.success-icon { width: 64px; height: 64px; border-radius: 50%; background: #DCFCE7; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }

/* ── Legal pages ── */
.legal-page { max-width: 760px; margin: 0 auto; padding: 60px 24px; }
.legal-page h1 { font-size: 36px; font-weight: 700; margin-bottom: 8px; }
.legal-page h2 { font-size: 20px; font-weight: 700; margin: 32px 0 12px; }
.legal-page p { font-size: 15px; color: #525252; line-height: 1.8; margin-bottom: 16px; }
.legal-page ul { padding-left: 24px; margin-bottom: 16px; }
.legal-page li { font-size: 15px; color: #525252; line-height: 1.8; margin-bottom: 8px; }

/* ── Responsive helpers ── */
@media (max-width: 768px) { .md-hidden { display: none !important; } }
@media (min-width: 769px) { .sm-hidden { display: none !important; } }

/* ── Credits badge (sidebar) ── */
.credits-badge { display: flex; align-items: center; justify-content: space-between; background: #FFF9D6; border: 1px solid var(--border); border-radius: 12px; padding: 8px 12px; margin: 4px 8px 0; font-size: 12px; text-decoration: none; transition: background .15s; }
.credits-badge:hover { background: #FFEDA0; }

/* ── Store builder preview ── */
.store-preview-frame { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: #fff; }

/* ── Payment page wizard steps ── */
.wizard-step { display: none; }
.wizard-step.active { display: block; }
.step-indicator { display: flex; gap: 8px; margin-bottom: 24px; }
.step-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); transition: background .2s; }
.step-dot.active { background: var(--primary); }
.step-dot.done { background: #22C55E; }
