/* ============================================================
   Ctr-L Pattern Editor — Main Stylesheet
   ============================================================ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: #1a1a2e;
  background: #fff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Design tokens ── */
:root {
  --purple: #7C3AED;
  --purple-dark: #5B21B6;
  --cyan: #06B6D4;
  --green: #10B981;
  --yellow: #F59E0B;
  --red: #EF4444;
  --pink: #EC4899;
  --bg-soft: #F5F3FF;
  --bg-cyan: #ECFEFF;
  --border: #E5E7EB;
  --text-muted: #6B7280;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(124,58,237,.1);
  --shadow-lg: 0 12px 48px rgba(124,58,237,.16);
}

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

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4rem; padding: .65rem 1.4rem;
  border-radius: 50px; font-weight: 600; font-size: .95rem;
  cursor: pointer; border: 2px solid transparent;
  transition: all .2s ease; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  color: #fff; border-color: transparent;
  box-shadow: 0 4px 14px rgba(124,58,237,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(124,58,237,.4); }
.btn-outline  { background: transparent; border-color: var(--purple); color: var(--purple); }
.btn-outline:hover { background: var(--bg-soft); }
.btn-ghost    { background: transparent; border-color: transparent; color: var(--purple); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-white    { background: #fff; color: var(--purple); border-color: transparent;
                box-shadow: 0 4px 20px rgba(0,0,0,.15); }
.btn-white:hover { transform: translateY(-2px); }
.btn-lg  { padding: .85rem 2rem; font-size: 1.05rem; }
.btn-sm  { padding: .4rem 1rem; font-size: .85rem; }
.btn-full { width: 100%; }

/* ── Navbar ── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s;
}
.navbar.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.06); }
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 2rem;
}
.navbar-logo { display: flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.15rem; }
.logo-text { background: linear-gradient(135deg,var(--purple),var(--cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.navbar-links { display: flex; align-items: center; gap: 2rem; }
.navbar-links a { font-weight: 500; color: #374151; transition: color .15s; }
.navbar-links a:hover { color: var(--purple); }
.navbar-actions { display: flex; align-items: center; gap: .75rem; }
.btn-lang {
  padding: .4rem .9rem; border-radius: 50px; border: 1px solid var(--border);
  font-size: .85rem; font-weight: 500; cursor: pointer; transition: all .15s;
  background: transparent; color: #374151;
}
.btn-lang:hover { border-color: var(--purple); color: var(--purple); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: .4rem; background: none; border: none; }
.hamburger span { display: block; width: 22px; height: 2px; background: #374151; border-radius: 2px; transition: all .2s; }

/* ── Hero ── */
.hero { position: relative; background: var(--bg-soft); overflow: hidden; }
.hero-bg-dots {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(124,58,237,.08) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  align-items: center; padding: 6rem 24px 4rem;
}
.hero-badge {
  display: inline-block; padding: .35rem .9rem; border-radius: 50px;
  background: rgba(124,58,237,.12); color: var(--purple);
  font-weight: 600; font-size: .85rem; margin-bottom: 1.25rem;
}
.hero-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800;
  line-height: 1.15; margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #1a1a2e 40%, var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-subtitle { font-size: 1.05rem; color: #4B5563; max-width: 480px; margin-bottom: 2rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.hero-rating { font-size: .9rem; color: var(--text-muted); }
.hero-stars { color: #F59E0B; font-size: .9rem; margin-top: .25rem; }

/* App mockup */
.hero-visual { position: relative; }
.app-mockup {
  background: #fff; border-radius: 16px;
  box-shadow: 0 24px 80px rgba(124,58,237,.2);
  overflow: hidden; border: 1px solid rgba(124,58,237,.15);
}
.app-titlebar {
  background: #F3F4F6; padding: .6rem 1rem;
  display: flex; align-items: center; gap: .4rem;
}
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot.red    { background: #EF4444; }
.dot.yellow { background: #F59E0B; }
.dot.green  { background: #10B981; }
.app-name { margin-left: .5rem; font-size: .8rem; color: #6B7280; font-weight: 500; }
.app-canvas { display: flex; height: 260px; position: relative; }
.pattern-grid {
  flex: 1; display: grid; grid-template-columns: repeat(6,1fr);
  grid-template-rows: repeat(4,1fr); overflow: hidden;
}
.pattern-grid .pcell {
  transition: all .3s ease;
}
.app-toolbar {
  width: 48px; background: #F9FAFB; border-left: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center;
  padding: .5rem 0; gap: .25rem;
}
.tool {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; cursor: pointer; color: #374151; transition: all .15s;
}
.tool.active, .tool:hover { background: var(--bg-soft); color: var(--purple); }

/* Floating badges */
.float-badge {
  position: absolute; padding: .4rem .85rem; border-radius: 50px;
  font-weight: 600; font-size: .8rem; box-shadow: 0 4px 16px rgba(0,0,0,.12);
  animation: float 3s ease-in-out infinite alternate;
}
.badge-green  { background: #D1FAE5; color: #065F46; top: -16px; right: 20px; animation-delay: 0s; }
.badge-purple { background: #EDE9FE; color: #5B21B6; bottom: 16px; right: -12px; animation-delay: 1s; }
.badge-cyan   { background: #CFFAFE; color: #0E7490; top: 40%; left: -16px; animation-delay: .5s; }
@keyframes float { from { transform: translateY(0); } to { transform: translateY(-8px); } }

/* ── Proof bar ── */
.proof-bar {
  background: #fff; border-top: 1px solid var(--border); padding: 1.25rem 0;
}
.proof-bar .container { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.proof-bar > .container > span { font-size: .85rem; color: var(--text-muted); font-weight: 500; white-space: nowrap; }
.proof-logos { display: flex; gap: 2rem; flex-wrap: wrap; align-items: center; }
.proof-logos span { font-weight: 700; font-size: .9rem; color: #9CA3AF; letter-spacing: -.02em; }

/* ── Sections ── */
.section { padding: 6rem 0; }
.section-head { text-align: center; margin-bottom: 3.5rem; }
.section-head h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800;
  margin-bottom: .75rem; color: #1a1a2e;
}
.section-head p { color: #4B5563; font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* ── Gallery ── */
.gallery-section { background: var(--bg-soft); }
.pattern-gallery {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
}
.gallery-tile {
  aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden;
  cursor: pointer; transition: transform .2s, box-shadow .2s;
}
.gallery-tile:hover { transform: scale(1.06); box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.tile-canvas { width: 100%; height: 100%; display: block; }

/* ── Features ── */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.feat-card {
  padding: 2rem; background: var(--bg-soft); border-radius: var(--radius);
  border: 1px solid rgba(124,58,237,.08); transition: all .2s;
}
.feat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(124,58,237,.2); }
.feat-icon { font-size: 2rem; margin-bottom: 1rem; }
.feat-card h3 { font-weight: 700; margin-bottom: .5rem; }
.feat-card p  { color: var(--text-muted); font-size: .95rem; }

/* ── How it works ── */
.how-section { background: var(--bg-cyan); }
.steps-row {
  display: flex; align-items: flex-start; justify-content: center;
  gap: .5rem; flex-wrap: wrap;
}
.step-card {
  flex: 1; min-width: 200px; max-width: 260px;
  padding: 2rem 1.5rem; text-align: center;
  background: #fff; border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
}
.step-num  { font-size: 2.5rem; font-weight: 900; line-height: 1; margin-bottom: .5rem; }
.step-icon { font-size: 1.8rem; width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin: 0 auto .75rem; }
.step-card h3 { font-weight: 700; margin-bottom: .4rem; }
.step-card p  { color: var(--text-muted); font-size: .9rem; }
.step-arrow { font-size: 1.5rem; color: #CBD5E1; align-self: center; margin-top: -1rem; }

/* ── Testimonials ── */
.testi-section { background: var(--bg-soft); }
.testi-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.testi-card {
  background: #fff; padding: 1.75rem; border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: 0 2px 12px rgba(0,0,0,.04);
  transition: box-shadow .2s;
}
.testi-card:hover { box-shadow: var(--shadow); }
.testi-stars  { color: #F59E0B; font-size: 1rem; margin-bottom: .75rem; }
.testi-quote  { color: #374151; font-size: .95rem; line-height: 1.7; margin-bottom: 1.25rem; }
.testi-author { display: flex; align-items: center; gap: .75rem; }
.testi-avatar {
  width: 40px; height: 40px; border-radius: 50%; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .85rem; flex-shrink: 0;
}
.testi-author strong { display: block; font-size: .9rem; }
.testi-author span   { font-size: .8rem; color: var(--text-muted); }

/* ── Pricing ── */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  align-items: start; max-width: 900px; margin: 0 auto;
}
.price-card {
  background: #fff; border-radius: var(--radius);
  border: 2px solid var(--border); padding: 2rem;
  text-align: center; position: relative;
  transition: all .2s;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price-card.popular {
  border-color: var(--purple); box-shadow: var(--shadow-lg);
  transform: scale(1.04);
}
.popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  color: #fff; padding: .25rem .9rem; border-radius: 50px;
  font-weight: 600; font-size: .8rem; white-space: nowrap;
}
.plan-name  { font-weight: 700; font-size: 1.1rem; margin-bottom: .75rem; color: #374151; }
.plan-price { display: flex; align-items: flex-end; justify-content: center; gap: .15rem; margin-bottom: .25rem; }
.price-currency { font-size: 1.3rem; font-weight: 700; color: var(--purple); padding-bottom: .4rem; }
.price-amount   { font-size: 3.2rem; font-weight: 900; color: #1a1a2e; line-height: 1; }
.price-note  { font-size: .8rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.plan-features { list-style: none; text-align: left; margin-bottom: 1.75rem; display: flex; flex-direction: column; gap: .6rem; }
.plan-features li { display: flex; gap: .5rem; align-items: flex-start; font-size: .9rem; }
.check { color: var(--green); font-weight: 700; flex-shrink: 0; }
.price-guarantee { text-align: center; margin-top: 2rem; color: var(--text-muted); font-size: .9rem; }

/* ── FAQ ── */
.faq-container { max-width: 720px; }
.faq-list { display: flex; flex-direction: column; gap: .75rem; }
.faq-item {
  background: var(--bg-soft); border-radius: var(--radius-sm);
  border: 1px solid rgba(124,58,237,.1); overflow: hidden;
}
.faq-q {
  width: 100%; background: none; border: none; padding: 1.15rem 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; font-size: .97rem; cursor: pointer; text-align: left;
  color: #1a1a2e;
}
.faq-icon { font-size: 1.3rem; color: var(--purple); font-weight: 400; flex-shrink: 0; transition: transform .2s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 1.5rem 1.25rem; color: #4B5563; font-size: .95rem; line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, #4C1D95, #0E7490);
  padding: 5rem 0; text-align: center; position: relative; overflow: hidden;
}
.cta-pattern-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,.06) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
}
.cta-inner { position: relative; z-index: 1; }
.cta-banner h2 { color: #fff; font-size: 2.2rem; font-weight: 800; margin-bottom: 1rem; }
.cta-banner p  { color: rgba(255,255,255,.8); font-size: 1.05rem; margin-bottom: 2rem; }

/* ── Footer ── */
.footer { background: #0F0A2C; color: rgba(255,255,255,.8); padding: 4rem 0 2rem; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 3rem;
}
.footer-logo { display: flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1rem; color: #fff; margin-bottom: .75rem; }
.footer-tagline { font-size: .9rem; margin-bottom: 1.25rem; opacity: .7; }
.footer-copy { font-size: .8rem; opacity: .5; line-height: 1.8; }
.footer-col h4 { color: #fff; font-weight: 700; font-size: .9rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-col a  { display: block; color: rgba(255,255,255,.6); font-size: .9rem; margin-bottom: .5rem; transition: color .15s; }
.footer-col a:hover { color: #fff; }

/* ── Page body (inner pages) ── */
.page-body { padding: 5rem 0; min-height: 60vh; }

/* ── Download card ── */
.download-card {
  background: var(--bg-soft); border-radius: var(--radius);
  border: 1px solid rgba(124,58,237,.1); padding: 2.5rem;
  text-align: center; margin: 0 auto;
}
.dl-icon { font-size: 3rem; margin-bottom: 1rem; }
.download-card h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: .5rem; }
.download-card p  { color: var(--text-muted); margin-bottom: 1.75rem; }
.dl-meta { margin-top: 2rem; display: flex; flex-direction: column; gap: .6rem; text-align: left; }
.dl-meta-item { display: flex; justify-content: space-between; align-items: center;
                padding: .6rem .9rem; background: #fff; border-radius: var(--radius-sm);
                border: 1px solid var(--border); font-size: .9rem; }
.meta-label { color: var(--text-muted); }
.meta-val   { font-weight: 600; }

/* ── Buy page ── */
.buy-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start;
  max-width: 940px; margin: 0 auto;
}
.plan-summary { background: var(--bg-soft); border-radius: var(--radius); padding: 2rem; border: 1px solid rgba(124,58,237,.1); }
.plan-summary h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; }
.plan-tabs { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.5rem; }
.plan-tab {
  display: flex; justify-content: space-between; align-items: center;
  padding: .7rem 1rem; border-radius: var(--radius-sm); border: 2px solid var(--border);
  background: #fff; cursor: pointer; font-weight: 600; transition: all .15s;
}
.plan-tab.active { border-color: var(--purple); background: var(--bg-soft); }
.plan-tab span { color: var(--purple); font-weight: 700; }
.plan-price-big { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; }
.plan-name-big  { font-weight: 700; }
.plan-amount-big { font-size: 1.6rem; font-weight: 900; color: var(--purple); }
.plan-feat-list { list-style: none; display: flex; flex-direction: column; gap: .5rem; font-size: .9rem; margin-bottom: 1.5rem; }
.plan-feat-list li { display: flex; gap: .4rem; }
.trust-badges { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .5rem; }
.trust-badge { padding: .35rem .7rem; border-radius: 50px; background: #fff; border: 1px solid var(--border); font-size: .78rem; font-weight: 500; }
.buy-form-wrap { background: #fff; border-radius: var(--radius); padding: 2rem; border: 1px solid var(--border); }
.buy-form-wrap h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 1.5rem; }
.buy-secure { font-size: .8rem; color: var(--text-muted); text-align: center; margin-top: .75rem; }
.pay-method-note {
  padding: 1rem; background: #FFF7ED; border: 1px solid #FED7AA;
  border-radius: var(--radius-sm); font-size: .85rem; color: #92400E;
}
.card-group { display: flex; flex-direction: column; gap: .75rem; }
.card-row-small { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.card-input { width: 100%; }

/* ── Form common ── */
.buy-form { display: flex; flex-direction: column; gap: 1.15rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-size: .88rem; font-weight: 600; color: #374151; }
.form-group input,
.form-group textarea,
.form-group select {
  padding: .7rem 1rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); font-size: .95rem;
  font-family: inherit; transition: border-color .15s; background: #fff; width: 100%;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(124,58,237,.1); }
.form-group small { font-size: .78rem; color: var(--text-muted); }
.form-group input.input-disabled { background: #F9FAFB; cursor: not-allowed; color: var(--text-muted); }
.form-check { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.form-check input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--purple); }
.form-check a { color: var(--purple); font-weight: 600; }

/* Input with eye button */
.input-eye { position: relative; display: flex; }
.input-eye input { flex: 1; padding-right: 2.5rem; }
.eye-btn {
  position: absolute; right: .75rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: .9rem; padding: 0;
}

/* ── Order success ── */
.order-success { text-align: center; padding: 3rem 2rem; }
.success-icon { font-size: 4rem; margin-bottom: 1rem; }
.order-success h1 { font-size: 2rem; font-weight: 800; margin-bottom: .75rem; }
.order-success p  { color: var(--text-muted); margin-bottom: 2rem; }
.key-box { background: var(--bg-soft); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 2rem; border: 1px solid rgba(124,58,237,.15); }
.key-box label { font-size: .85rem; font-weight: 600; color: var(--text-muted); display: block; margin-bottom: .5rem; }
.key-display { font-family: monospace; font-size: 1.3rem; font-weight: 700; color: var(--purple); letter-spacing: .12em; margin-bottom: .75rem; word-break: break-all; }

/* ── Alerts ── */
.alert { padding: .9rem 1.25rem; border-radius: var(--radius-sm); font-size: .9rem; font-weight: 500; }
.alert-error   { background: #FEF2F2; color: #991B1B; border: 1px solid #FCA5A5; }
.alert-success { background: #F0FDF4; color: #166534; border: 1px solid #86EFAC; }

/* ── Auth page ── */
.member-auth-page { background: linear-gradient(135deg, var(--bg-soft), var(--bg-cyan)); }
.auth-card {
  background: #fff; border-radius: 20px; padding: 2.5rem;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(124,58,237,.1);
  margin: 0 auto;
}
.auth-logo { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.2rem; margin-bottom: 1.5rem; justify-content: center; }
.auth-tabs { display: flex; border-radius: 50px; background: var(--bg-soft); padding: 4px; margin-bottom: 1.75rem; }
.auth-tab {
  flex: 1; text-align: center; padding: .55rem .5rem;
  border-radius: 50px; font-weight: 600; font-size: .9rem; transition: all .2s; color: var(--text-muted);
}
.auth-tab.active { background: #fff; color: var(--purple); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.auth-footer-link { text-align: center; font-size: .85rem; color: var(--text-muted); margin-top: .75rem; }
.auth-footer-link a { color: var(--purple); font-weight: 600; }

/* ── Member dashboard ── */
.member-dash-page { background: #F8F7FF; }
.member-container {
  display: grid; grid-template-columns: 260px 1fr; gap: 2rem;
  align-items: start; padding-top: 2.5rem; padding-bottom: 4rem;
}
.member-sidebar {
  background: #fff; border-radius: var(--radius); padding: 1.5rem;
  border: 1px solid var(--border); position: sticky; top: 88px;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.member-avatar-wrap { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
.member-avatar {
  width: 46px; height: 46px; border-radius: 50%; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .95rem; flex-shrink: 0;
}
.member-info strong { display: block; font-size: .9rem; font-weight: 700; }
.member-info span   { font-size: .78rem; color: var(--text-muted); }
.member-nav { display: flex; flex-direction: column; gap: .25rem; }
.member-nav-link {
  display: flex; align-items: center; gap: .6rem;
  padding: .65rem .9rem; border-radius: var(--radius-sm);
  font-weight: 500; font-size: .9rem; color: #374151;
  cursor: pointer; transition: all .15s;
}
.member-nav-link:hover, .member-nav-link.active {
  background: var(--bg-soft); color: var(--purple);
}
.member-sidebar-footer { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: .5rem; }
.member-logout-link { display: block; text-align: center; font-size: .85rem; color: var(--text-muted); padding: .4rem; transition: color .15s; }
.member-logout-link:hover { color: var(--red); }

/* Member sections */
.member-section { display: none; }
.member-section.active { display: block; }
.member-section-head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem; }
.member-section-head h2 { font-size: 1.2rem; font-weight: 800; }
.member-section-head h3 { font-size: 1rem; font-weight: 700; }
.badge-count {
  background: var(--purple); color: #fff; font-size: .75rem; font-weight: 700;
  padding: .15rem .55rem; border-radius: 50px;
}

/* Welcome banner */
.welcome-banner {
  background: linear-gradient(135deg, #EDE9FE, #CFFAFE);
  border: 1px solid rgba(124,58,237,.2); border-radius: var(--radius);
  padding: 1.25rem 1.5rem; margin-bottom: 1.75rem; font-size: .95rem; color: #1a1a2e; line-height: 1.6;
}
.welcome-banner strong { color: var(--purple); }
.welcome-banner small { display: block; margin-top: .4rem; color: #4B5563; font-size: .85rem; }

/* Empty state */
.member-empty { text-align: center; padding: 4rem 2rem; background: var(--bg-soft); border-radius: var(--radius); border: 2px dashed rgba(124,58,237,.2); }
.empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.member-empty p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* License cards */
.license-card {
  background: #fff; border-radius: 16px; border: 1px solid var(--border);
  overflow: hidden; margin-bottom: 1.25rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.05); transition: box-shadow .2s;
}
.license-card:hover { box-shadow: var(--shadow); }
.license-card.license-revoked { opacity: .7; }
.license-card-header {
  padding: 1.25rem 1.5rem; display: flex; justify-content: space-between; align-items: center;
}
.lc-plan { display: flex; align-items: center; gap: .75rem; color: #fff; }
.lc-plan-icon { font-size: 1.6rem; }
.lc-plan strong { display: block; font-weight: 800; font-size: 1rem; color: #fff; }
.lc-plan span   { font-size: .8rem; color: rgba(255,255,255,.7); }
.lc-status-badge {
  padding: .35rem .85rem; border-radius: 50px; font-size: .8rem; font-weight: 700;
  background: rgba(255,255,255,.2); color: #fff; backdrop-filter: blur(4px);
}
.lc-status-badge.revoked { background: rgba(0,0,0,.2); }

.license-card-body { padding: 1.5rem; }
.license-key-section { margin-bottom: 1.25rem; }
.license-key-section label { font-size: .8rem; font-weight: 600; color: var(--text-muted); display: block; margin-bottom: .4rem; }
.license-key-row { display: flex; align-items: center; gap: .5rem; }
.license-key-code {
  flex: 1; font-family: 'Courier New', monospace; font-size: .95rem; font-weight: 700;
  color: #1a1a2e; background: var(--bg-soft); padding: .65rem 1rem; border-radius: var(--radius-sm);
  border: 1px solid rgba(124,58,237,.15); letter-spacing: .08em; word-break: break-all;
}
.copy-btn {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: .65rem .85rem; cursor: pointer;
  font-size: .9rem; transition: all .15s; flex-shrink: 0;
}
.copy-btn:hover { background: var(--purple); border-color: var(--purple); }

.license-meta-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-bottom: 1.25rem;
}
.lm-item {
  background: var(--bg-soft); border-radius: var(--radius-sm);
  padding: .75rem 1rem; border: 1px solid rgba(124,58,237,.08);
}
.lm-label { font-size: .75rem; color: var(--text-muted); font-weight: 500; display: block; margin-bottom: .2rem; }
.lm-val   { font-size: .9rem; font-weight: 600; color: #1a1a2e; display: flex; align-items: center; gap: .4rem; }

/* Activation dots */
.act-bar { display: flex; gap: 3px; }
.act-dot { width: 8px; height: 8px; border-radius: 50%; background: #E5E7EB; }
.act-dot.used { background: var(--purple); }

.license-actions { display: flex; gap: .5rem; flex-wrap: wrap; padding-top: 1rem; border-top: 1px solid var(--border); }

.buy-more-row { margin-top: .5rem; }

/* Download history */
.dl-history-table-wrap { overflow-x: auto; margin-bottom: 2rem; }
.dl-history-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.dl-history-table th { padding: .75rem 1rem; background: var(--bg-soft); font-weight: 600; text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); border-bottom: 2px solid var(--border); }
.dl-history-table td { padding: .75rem 1rem; border-bottom: 1px solid var(--border); }

/* Quick download grid */
.quick-dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.quick-dl-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.25rem; background: #fff; border-radius: var(--radius-sm);
  border: 1px solid var(--border); cursor: pointer; transition: all .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.quick-dl-card:hover { border-color: var(--purple); box-shadow: var(--shadow); transform: translateY(-2px); }
.qdl-icon { font-size: 1.5rem; width: 44px; height: 44px; border-radius: 10px; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.quick-dl-card strong { display: block; font-size: .9rem; font-weight: 700; }
.quick-dl-card span  { display: block; font-size: .78rem; color: var(--text-muted); }

/* Profile */
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.profile-card { background: #fff; border-radius: var(--radius); padding: 1.75rem; border: 1px solid var(--border); }
.profile-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1.25rem; }
.account-info-box { background: var(--bg-soft); border-radius: var(--radius); padding: 1.25rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; border: 1px solid rgba(124,58,237,.08); }
.ai-row { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px solid rgba(124,58,237,.07); font-size: .9rem; }
.ai-row:last-child { border-bottom: none; }
.ai-row span { color: var(--text-muted); }

/* Plan badges (shared) */
.badge { display: inline-block; padding: .2rem .65rem; border-radius: 50px; font-size: .75rem; font-weight: 600; }
.badge-personal { background: #CFFAFE; color: #0E7490; }
.badge-pro      { background: #EDE9FE; color: #5B21B6; }
.badge-studio   { background: #D1FAE5; color: #065F46; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid    { grid-template-columns: repeat(2, 1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .pattern-gallery { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; padding: 3.5rem 24px 2rem; text-align: center; }
  .hero-content { order: 1; }
  .hero-visual  { order: 2; }
  .hero-cta { justify-content: center; }
  .hero-rating { justify-content: center; display: flex; flex-direction: column; align-items: center; }
  .navbar-links { display: none; }
  .hamburger { display: flex; }
  .navbar-links.open { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: #fff; padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); z-index: 99; gap: .75rem; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .price-card.popular { transform: scale(1); }
  .features-grid { grid-template-columns: 1fr; }
  .testi-grid    { grid-template-columns: 1fr; }
  .buy-grid      { grid-template-columns: 1fr; }
  .steps-row     { flex-direction: column; align-items: center; }
  .step-arrow    { transform: rotate(90deg); }
  .pattern-gallery { grid-template-columns: repeat(3, 1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .member-container { grid-template-columns: 1fr; }
  .member-sidebar { position: static; }
  .license-meta-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-grid  { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .pattern-gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .license-meta-grid { grid-template-columns: 1fr; }
}
