/* ============================================================
   DIGITAL SAMAAJ — PREMIUM STYLES v4.0 (Unified Buttons & Layout)
   ============================================================ */

/* ── DESIGN TOKENS ── */
:root {
  --primary: #5B4CFF;
  --primary-light: #EEF0FF;
  --primary-dark: #3D30E8;
  --accent: #FF6B35;
  --accent-light: #FFF0EB;
  --success: #10B981;
  --success-light: #ECFDF5;
  --warning: #F59E0B;
  --warning-light: #FFFBEB;
  --danger: #EF4444;

  --bg: #F8F7FF;
  --surface: #FFFFFF;
  --surface-2: #F4F3FF;
  --surface-3: #EEEEFF;
  --border: #E8E6FF;
  --border-light: #F0EEFF;

  --text: #1A1A2E;
  --text-2: #4A4A6A;
  --muted: #8B8BAA;
  --muted-light: #C4C4DA;

  --silver: #B8B8C8;
  --gold: #F59E0B;
  --diamond: #5B4CFF;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;

  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 4px rgba(91,76,255,.06);
  --shadow: 0 4px 20px rgba(91,76,255,.10);
  --shadow-lg: 0 12px 40px rgba(91,76,255,.16);
  --shadow-xl: 0 24px 64px rgba(91,76,255,.22);

  --nav-h: 68px;
  --top-h: 60px;
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

.dark-theme {
  --bg: #0E0E1A;
  --surface: #18182C;
  --surface-2: #20203A;
  --surface-3: #282848;
  --border: #2C2C4A;
  --border-light: #252540;
  --text: #F0EFFF;
  --text-2: #B8B8D8;
  --muted: #7070A0;
  --muted-light: #404060;
  --primary-light: #1E1A4A;
  --shadow: 0 4px 20px rgba(0,0,0,.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.5);
}

/* ── RESET ── */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { font-size:16px; -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body {
  font-family:var(--font-body);
  background:var(--bg);
  color:var(--text);
  min-height:100vh;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
img { display:block; max-width:100%; }
button { cursor:pointer; border:none; background:none; font-family:inherit; }
input,select,textarea { font-family:inherit; }
a { color:inherit; text-decoration:none; }
ul { list-style:none; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width:4px; height:4px; }
::-webkit-scrollbar-track { background:transparent; }
::-webkit-scrollbar-thumb { background:var(--border); border-radius:99px; }

@media (min-width:768px) {
  html {
    overflow-y: scroll;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--surface-2);
  }
  html::-webkit-scrollbar { width:10px; height:10px; }
  html::-webkit-scrollbar-track {
    background:var(--surface-2);
    border-left:1px solid var(--border);
  }
  html::-webkit-scrollbar-thumb {
    background:var(--primary);
    border-radius:6px;
    border:2px solid var(--surface-2);
    min-height:40px;
  }
  html::-webkit-scrollbar-thumb:hover { background:var(--primary-dark); }
}

/* ── TOP BAR ── */
.top-bar {
  position:fixed; top:0; left:0; right:0; z-index:200;
  height:var(--top-h);
  background:rgba(248,247,255,.92);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  border-bottom:1px solid transparent;
  transition:var(--transition);
}
.dark-theme .top-bar { background:rgba(14,14,26,.92); }
.top-bar.scrolled { border-bottom-color:var(--border); box-shadow:var(--shadow-sm); }
.top-bar-inner {
  max-width:600px; margin:0 auto;
  height:100%; display:flex; align-items:center;
  justify-content:space-between; padding:0 16px;
}
.brand { display:flex; align-items:center; gap:10px; }
.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}
.brand-name {
  font-family:var(--font-display);
  font-size:18px; font-weight:900;
  color:var(--primary); line-height:1.1;
  letter-spacing:-.3px;
}
.brand-tagline { display:block; font-size:10px; color:var(--muted); font-weight:500; letter-spacing:.4px; text-transform:uppercase; }
.top-actions { display:flex; align-items:center; gap:4px; }

/* ── SEARCH BAR ── */
.search-bar-wrap {
  position:fixed; top:0; left:0; right:0; z-index:300;
  height:var(--top-h);
  background:var(--surface);
  padding:0 16px;
  display:flex; align-items:center;
  transform:translateY(-100%);
  transition:transform .3s ease;
  box-shadow:var(--shadow);
}
.search-bar-wrap.open { transform:translateY(0); }
.search-bar {
  flex:1; display:flex; align-items:center; gap:10px;
  background:var(--surface-2);
  border:1.5px solid var(--border);
  border-radius:var(--radius-full);
  padding:0 16px; height:40px;
}
.search-bar input {
  flex:1; border:none; background:none; font-size:14px; color:var(--text);
  outline:none;
}
.search-bar input::placeholder { color:var(--muted); }
.close-search { background:none; border:none; font-size:18px; color:var(--muted); padding:4px 8px; }

/* ── MAIN CONTENT ── */
.main-content {
  padding-top:var(--top-h);
  padding-bottom:calc(var(--nav-h) + 8px);
  min-height:100vh;
}

/* ── PAGES ── */
.page { display:none; }
.page.active { display:block; }

/* ── BOTTOM NAV ── */
.bottom-nav {
  position:fixed; bottom:0; left:0; right:0; z-index:200;
  height:var(--nav-h);
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(24px);
  -webkit-backdrop-filter:blur(24px);
  border-top:1px solid var(--border);
  display:flex; align-items:stretch;
  padding:0 4px 8px;
  box-shadow:0 -4px 24px rgba(91,76,255,.08);
}
.dark-theme .bottom-nav { background:rgba(24,24,44,.96); }
.nav-item {
  flex:1; display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:3px;
  color:var(--muted); font-size:11px; font-weight:600;
  border-radius:var(--radius); padding:6px 4px;
  transition:var(--transition); position:relative;
  letter-spacing:.2px;
}
.nav-item:active { transform:scale(.94); }
.nav-item.active { color:var(--primary); }
.nav-item.active svg { stroke:var(--primary); }
.nav-item.active::before {
  content:'';
  position:absolute; top:0; left:25%; right:25%; height:3px;
  background:var(--primary); border-radius:0 0 6px 6px;
  animation:navSlideIn .25s cubic-bezier(.4,0,.2,1);
}
@keyframes navSlideIn {
  from { transform:scaleX(0); opacity:0; }
  to   { transform:scaleX(1); opacity:1; }
}
.nav-item svg { transition:var(--transition); }
.nav-item.active svg { transform:translateY(-1px); }

/* ── UNIFIED BUTTON SYSTEM ── */
.btn-primary,
.btn-ghost,
.btn-ghost.dark,
.btn-wa,
.see-all,
.img-prompt-copy-btn,
.tool-mini-chip,
.cat-tab,
.prompt-type-tab,
.learn-tab,
.program-btn,
.mem-cta-btn {
  font-family: var(--font-body);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 24px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.1px;
  border: none;
  cursor: pointer;
  outline: none;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: none;
}

/* ── PRIMARY BUTTON ── */
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(91, 76, 255, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(91, 76, 255, 0.4);
  background: linear-gradient(135deg, #6B5CFF 0%, var(--primary) 100%);
}
.btn-primary:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 2px 8px rgba(91, 76, 255, 0.2);
}

/* size variations */
.btn-primary.small {
  height: 38px;
  padding: 0 16px;
  font-size: 12px;
}
.btn-primary.large {
  height: 52px;
  padding: 0 32px;
  font-size: 15px;
}
.btn-primary.full-width {
  width: 100%;
}

/* ── GHOST BUTTON ── */
.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}
.btn-ghost:active {
  transform: scale(0.97);
}

.btn-ghost.dark {
  background: var(--surface-2);
  color: var(--text);
  border: 1.5px solid var(--border);
  backdrop-filter: none;
}
.btn-ghost.dark:hover {
  background: var(--surface-3);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-ghost.small {
  height: 38px;
  padding: 0 16px;
  font-size: 12px;
}

/* ── WHATSAPP BUTTON ── */
.btn-wa {
  background: #25D366;
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.25);
}
.btn-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  background: #20C05B;
}

/* ── SEE ALL PILL ── */
.see-all {
  height: 34px;
  padding: 0 16px;
  font-size: 12px;
  color: var(--primary);
  background: var(--primary-light);
}
.see-all:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

/* ── COPY PROMPT BUTTON ── */
.img-prompt-copy-btn {
  width: 100%;
  height: 40px;
  font-size: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(91, 76, 255, 0.15);
}
.img-prompt-copy-btn:hover {
  background: linear-gradient(135deg, #6B5CFF 0%, var(--primary) 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(91, 76, 255, 0.25);
}

/* ── CATEGORY TAB ── */
.cat-tab {
  height: 38px;
  padding: 0 18px;
  font-size: 12px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
}
.cat-tab:hover:not(.active) {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.cat-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(91, 76, 255, 0.2);
}

/* ── PROMPT TYPE TAB ── */
.prompt-type-tab {
  flex: 1;
  height: 44px;
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--muted);
}
.prompt-type-tab:hover:not(.active) {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.prompt-type-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(91, 76, 255, 0.2);
}

/* ── LEARN TAB ── */
.learn-tab {
  height: 46px;
  border-radius: 0;
  background: none;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}
.learn-tab:hover:not(.active) {
  color: var(--text);
  background: var(--surface-2);
}
.learn-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ── RECENT TOOL MINI CHIP ── */
.tool-mini-chip {
  height: 38px;
  padding: 0 16px;
  font-size: 12px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
}
.tool-mini-chip:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
  transform: translateY(-1px);
}

/* ── IN-CARD BUTTONS ── */
.program-btn,
.mem-cta-btn {
  width: 100%;
  height: 44px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(91, 76, 255, 0.15);
}
.program-btn:hover,
.mem-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(91, 76, 255, 0.25);
}

/* ── ICON BUTTON ── */
.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  background: none;
  transition: all 0.2s;
}
.icon-btn:hover {
  background: var(--surface-2);
  color: var(--primary);
  transform: scale(1.06);
}

/* ── DESKTOP BUTTON SIZE BUMPS (1024px+) ── */
@media (min-width: 1024px) {
  .btn-primary         { height: 48px; padding: 0 28px; font-size: 15px; }
  .btn-primary.small   { height: 38px; padding: 0 18px; font-size: 13px; }
  .btn-ghost           { height: 48px; padding: 0 26px; font-size: 15px; }
  .btn-ghost.small     { height: 38px; padding: 0 18px; font-size: 13px; }
  .btn-wa              { height: 48px; padding: 0 28px; font-size: 15px; }
  .see-all             { height: 38px; padding: 0 20px; font-size: 13px; }
  .cat-tab             { height: 42px; padding: 0 22px; font-size: 13px; }
  .prompt-type-tab     { height: 48px; font-size: 15px; }
  .learn-tab           { height: 50px; font-size: 14px; }
  .img-prompt-copy-btn { height: 44px !important; font-size: 13px !important; }
  .tool-mini-chip      { height: 42px; padding: 0 20px; font-size: 13px; }
  .program-btn,
  .mem-cta-btn         { height: 46px; font-size: 14px; }
}

/* ── DARK THEME OVERRIDES ── */
.dark-theme .btn-ghost.dark {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}
.dark-theme .btn-ghost.dark:hover {
  background: var(--surface-3);
  border-color: var(--primary);
  color: var(--primary);
}
.dark-theme .see-all {
  background: var(--surface-2);
  color: var(--primary);
}
.dark-theme .see-all:hover {
  background: var(--primary);
  color: #fff;
}
.dark-theme .cat-tab {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text-2);
}
.dark-theme .cat-tab:hover:not(.active) {
  background: var(--surface-2);
  color: var(--primary);
  border-color: var(--primary);
}
.dark-theme .prompt-type-tab {
  background: var(--surface);
  border-color: var(--border);
  color: var(--muted);
}
.dark-theme .prompt-type-tab:hover:not(.active) {
  background: var(--surface-2);
  color: var(--primary);
  border-color: var(--primary);
}
.dark-theme .tool-mini-chip {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text-2);
}
.dark-theme .tool-mini-chip:hover {
  background: var(--surface-2);
  color: var(--primary);
  border-color: var(--primary);
}

/* ── STATS STRIP ── */
.stats-strip {
  display:grid; grid-template-columns:repeat(4,1fr);
  gap:1px; background:var(--border);
  margin:0; border-bottom:1px solid var(--border);
}
.stat-item {
  background:var(--surface); padding:16px 8px;
  display:flex; flex-direction:column; align-items:center; gap:3px;
}
.stat-num {
  font-family:var(--font-display);
  font-size:22px; font-weight:900; color:var(--primary); line-height:1;
}
.stat-label { font-size:11px; color:var(--muted); font-weight:600; letter-spacing:.3px; }

/* ── SECTION BLOCKS ── */
.section-block { padding:24px 16px; }
.section-header {
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:16px;
}
.section-title {
  font-family:var(--font-display);
  font-size:20px; font-weight:800; color:var(--text);
  letter-spacing:-.4px;
}

/* ── HORIZONTAL SCROLL ROW ── */
.scroll-row {
  display:flex; gap:14px; overflow-x:auto;
  padding-bottom:8px; scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
}
.scroll-row::-webkit-scrollbar { display:none; }

/* ── CONTINUE LEARNING STRIP ── */
.continue-strip {
  margin:16px 16px 0;
  background:linear-gradient(135deg,var(--primary),#8B5CF6);
  border-radius:var(--radius-lg);
  padding:16px 18px;
  display:flex; align-items:center; gap:14px;
  cursor:pointer; transition:var(--transition);
  box-shadow:var(--shadow);
}
.continue-strip:hover { transform:translateY(-2px); box-shadow:var(--shadow-lg); }
.continue-icon { font-size:36px; flex-shrink:0; }
.continue-info { flex:1; min-width:0; }
.continue-label { font-size:11px; color:rgba(255,255,255,.7); font-weight:600; text-transform:uppercase; letter-spacing:.5px; margin-bottom:2px; }
.continue-title { font-size:15px; font-weight:700; color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-bottom:8px; }
.continue-bar { height:5px; background:rgba(255,255,255,.25); border-radius:99px; overflow:hidden; }
.continue-fill { height:100%; background:#fff; border-radius:99px; transition:width .6s ease; }
.continue-arrow { font-size:20px; color:#fff; flex-shrink:0; }

/* ── COURSE CARDS ── */
.course-card {
  flex-shrink:0; width:220px; scroll-snap-align:start;
  background:var(--surface); border-radius:var(--radius-lg);
  overflow:hidden; cursor:pointer;
  box-shadow:var(--shadow-sm);
  border:1.5px solid var(--border);
  transition:var(--transition);
}
.course-card:hover { transform:translateY(-3px); box-shadow:var(--shadow); border-color:var(--primary-light); }
.course-thumb {
  height:120px; width:100%;
  display:flex; align-items:center; justify-content:center;
  font-size:44px; position:relative; overflow:hidden;
}
.course-thumb-badge {
  position:absolute; top:10px; left:10px;
  background:rgba(0,0,0,.4); backdrop-filter:blur(8px);
  color:#fff; font-size:10px; font-weight:700;
  padding:3px 10px; border-radius:var(--radius-full);
  border:1px solid rgba(255,255,255,.2);
}
.course-info { padding:14px; }
.course-cat {
  font-size:11px; font-weight:700; color:var(--primary);
  letter-spacing:.5px; text-transform:uppercase;
  background:var(--primary-light); padding:3px 8px;
  border-radius:var(--radius-full); display:inline-block;
  margin-bottom:6px;
}
.course-title {
  font-size:14px; font-weight:700; color:var(--text);
  line-height:1.35; margin-bottom:8px;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.course-meta {
  display:flex; align-items:center; justify-content:space-between;
  font-size:12px; color:var(--muted);
}
.course-rating { display:flex; align-items:center; gap:3px; }
.course-price {
  font-size:14px; font-weight:800; color:var(--text);
  font-family:var(--font-display);
}
.course-price.free { color:var(--success); }
.course-progress {
  height:4px; background:var(--border); border-radius:99px;
  overflow:hidden; margin-top:10px;
}
.course-progress-fill { height:100%; background:var(--primary); border-radius:99px; }

/* ── PROGRAM CARDS ── */
.program-card {
  flex-shrink:0; width:300px; scroll-snap-align:start;
  background:var(--surface); border-radius:var(--radius-lg);
  border:1.5px solid var(--border); overflow:hidden;
  cursor:pointer; transition:var(--transition); box-shadow:var(--shadow-sm);
}
.program-card:hover { transform:translateY(-3px); box-shadow:var(--shadow); }
.program-card-head {
  padding:20px 18px 16px;
  background:linear-gradient(135deg,var(--primary),#8B5CF6);
  position:relative; overflow:hidden;
}
.program-card-head::after {
  content:''; position:absolute; top:-30px; right:-30px;
  width:100px; height:100px; border-radius:50%;
  background:rgba(255,255,255,.08);
}
.program-emoji { font-size:36px; margin-bottom:10px; display:block; }
.program-name { font-size:16px; font-weight:800; color:#fff; line-height:1.2; }
.program-sub { font-size:12px; color:rgba(255,255,255,.75); margin-top:4px; }
.program-tags { display:flex; gap:6px; margin-top:12px; flex-wrap:wrap; }
.program-tag {
  background:rgba(255,255,255,.15); color:#fff;
  font-size:10px; font-weight:600; padding:3px 10px;
  border-radius:var(--radius-full); border:1px solid rgba(255,255,255,.2);
}
.program-card-body { padding:14px 18px 18px; }
.program-stat-row { display:flex; gap:12px; margin-bottom:12px; }
.program-stat { display:flex; align-items:center; gap:5px; font-size:12px; color:var(--muted); font-weight:500; }

/* ── LEARNING TRACK CARDS ── */
.track-card {
  flex-shrink:0; width:200px; scroll-snap-align:start;
  background:var(--surface); border-radius:var(--radius-lg);
  border:1.5px solid var(--border); overflow:hidden;
  cursor:pointer; transition:var(--transition); padding:16px;
  box-shadow:var(--shadow-sm);
}
.track-card:hover { transform:translateY(-3px); box-shadow:var(--shadow); }
.track-icon {
  width:48px; height:48px; border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  font-size:24px; margin-bottom:10px;
}
.track-title { font-size:13px; font-weight:700; color:var(--text); line-height:1.35; margin-bottom:6px; }
.track-meta { font-size:11px; color:var(--muted); }
.track-progress-row { display:flex; align-items:center; gap:8px; margin-top:10px; }
.track-progress { flex:1; height:4px; background:var(--border); border-radius:99px; overflow:hidden; }
.track-progress-fill { height:100%; border-radius:99px; background:var(--primary); }
.track-pct { font-size:10px; font-weight:700; color:var(--primary); }

/* ── MEMBERSHIP CARDS ── */
.membership-row {
  display:grid; grid-template-columns:repeat(3,1fr);
  gap:10px; padding:16px;
}
.mem-card {
  background:var(--surface); border-radius:var(--radius-lg);
  padding:18px 12px; text-align:center;
  border:2px solid var(--border);
  cursor:pointer; transition:var(--transition);
  position:relative; overflow:hidden;
  box-shadow:var(--shadow-sm);
}
.mem-card::before {
  content:''; position:absolute; top:0; left:0; right:0; height:3px;
}
.mem-card.silver::before { background:linear-gradient(90deg,#9CA3AF,#D1D5DB); }
.mem-card.gold::before { background:linear-gradient(90deg,#F59E0B,#FBBF24); }
.mem-card.diamond::before { background:linear-gradient(90deg,#5B4CFF,#8B5CF6); }
.mem-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-lg); }
.mem-card.gold { border-color:rgba(245,158,11,.3); background:linear-gradient(180deg,#FFFBEB,var(--surface)); }
.mem-card.diamond { border-color:rgba(91,76,255,.3); background:linear-gradient(180deg,#F0EEFF,var(--surface)); }
.mem-icon { font-size:28px; display:block; margin-bottom:8px; }
.mem-card strong { display:block; font-size:13px; font-weight:800; color:var(--text); margin-bottom:4px; }
.mem-price { display:block; font-size:16px; font-weight:900; font-family:var(--font-display); color:var(--primary); margin-bottom:8px; }
.mem-tag {
  display:inline-block; font-size:9px; font-weight:700;
  padding:3px 8px; border-radius:var(--radius-full);
  background:var(--primary-light); color:var(--primary);
  letter-spacing:.4px; text-transform:uppercase;
}
.mem-card.gold .mem-tag { background:var(--warning-light); color:var(--warning); }

/* ── TOOL CHIPS ── */
.tools-grid-mini {
  display:grid; grid-template-columns:repeat(4,1fr); gap:10px;
}
.tool-chip {
  background:var(--surface); border:1.5px solid var(--border);
  border-radius:var(--radius); padding:12px 8px;
  display:flex; flex-direction:column; align-items:center; gap:6px;
  cursor:pointer; transition:var(--transition); text-align:center;
  box-shadow:var(--shadow-sm);
}
.tool-chip:hover { border-color:var(--primary); background:var(--primary-light); transform:translateY(-2px); box-shadow:var(--shadow); }
.tool-chip-icon { font-size:22px; }
.tool-chip-label { font-size:11px; font-weight:700; color:var(--text-2); line-height:1.2; }

/* ── PROMPT CATEGORY CHIPS ── */
.prompt-cats { display:flex; gap:10px; overflow-x:auto; padding-bottom:4px; }
.prompt-cats::-webkit-scrollbar { display:none; }

/* ── WEBINAR BANNER ── */
.webinar-banner {
  margin:0 16px 8px;
  background:linear-gradient(135deg,#1A1A2E,#2D1B69,#5B4CFF);
  border-radius:var(--radius-lg); padding:18px 16px;
  display:flex; align-items:center; gap:12px;
  cursor:pointer; transition:var(--transition);
  box-shadow:var(--shadow-lg);
  position:relative; overflow:hidden;
}
.webinar-banner::before {
  content:'🎯'; position:absolute; right:-8px; top:-8px;
  font-size:80px; opacity:.07;
}
.webinar-banner:hover { transform:translateY(-2px); box-shadow:var(--shadow-xl); }
.webinar-left { flex:1; }
.webinar-label {
  font-size:10px; font-weight:800; color:var(--warning);
  letter-spacing:.8px; text-transform:uppercase; margin-bottom:5px;
}
.webinar-banner h3 { font-size:16px; font-weight:800; color:#fff; line-height:1.25; margin-bottom:5px; font-family:var(--font-display); }
.webinar-banner p { font-size:12px; color:rgba(255,255,255,.7); margin-bottom:8px; }
.countdown-mini { font-size:12px; font-weight:700; color:rgba(255,255,255,.9); }

/* ── WHATSAPP BLOCK ── */
.whatsapp-block {
  margin:0 16px; background:linear-gradient(135deg,#128C7E,#25D366);
  border-radius:var(--radius-lg); padding:16px 18px;
  display:flex; align-items:center; gap:14px;
  box-shadow:0 8px 24px rgba(37,211,102,.25);
}
.wa-icon { font-size:32px; flex-shrink:0; }
.wa-text { flex:1; }
.wa-text strong { display:block; font-size:15px; font-weight:800; color:#fff; margin-bottom:2px; }
.wa-text span { font-size:12px; color:rgba(255,255,255,.8); }

/* ── SUCCESS STORIES ── */
.story-card {
  flex-shrink:0; width:220px; scroll-snap-align:start;
  background:var(--surface); border:1.5px solid var(--border);
  border-radius:var(--radius-lg); padding:18px 16px;
  box-shadow:var(--shadow-sm); transition:var(--transition);
}
.story-card:hover { transform:translateY(-2px); box-shadow:var(--shadow); }
.story-avatar { font-size:40px; margin-bottom:10px; text-align:center; }
.story-name { font-size:15px; font-weight:800; color:var(--text); margin-bottom:2px; }
.story-role { font-size:12px; color:var(--muted); margin-bottom:6px; }
.story-income {
  font-size:18px; font-weight:900; font-family:var(--font-display);
  color:var(--success); margin-bottom:10px;
}
.story-quote { font-size:12px; color:var(--text-2); line-height:1.6; font-style:italic; }
.story-city { font-size:11px; color:var(--muted); margin-top:8px; }

/* ── NEWS LIST ── */
.news-list { display:flex; flex-direction:column; gap:10px; }
.news-item {
  background:var(--surface); border:1.5px solid var(--border);
  border-radius:var(--radius); padding:14px 16px;
  display:flex; align-items:flex-start; gap:12px;
  cursor:pointer; transition:var(--transition);
}
.news-item:hover { border-color:var(--primary); background:var(--primary-light); }
.news-emoji { font-size:24px; flex-shrink:0; margin-top:2px; }
.news-title { font-size:14px; font-weight:700; color:var(--text); line-height:1.4; margin-bottom:4px; }
.news-date { font-size:11px; color:var(--muted); font-weight:500; }

/* ── FAQ ── */
.faq-list { display:flex; flex-direction:column; gap:8px; }
.faq-item {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: box-shadow .2s;
}
.faq-item.open { border-color:var(--primary); }
.faq-q {
  display:flex; align-items:center; justify-content:space-between;
  padding:16px; cursor:pointer; font-size:14px; font-weight:700; color:var(--text);
  gap:12px;
}
.faq-arrow { font-size:12px; color:var(--muted); transition:transform .3s; flex-shrink:0; }
.faq-item.open .faq-arrow { transform:rotate(180deg); color:var(--primary); }
.faq-a {
  max-height:0; overflow:hidden; padding:0 16px;
  font-size:13px; color:var(--text-2); line-height:1.7;
  transition:max-height .4s ease, padding .3s;
}
.faq-item.open .faq-a { max-height:200px; padding:0 16px 16px; }

/* ── PAGE HEADER ── */
.page-header { padding:20px 16px 8px; }
.page-title {
  font-family:var(--font-display);
  font-size:26px; font-weight:900; color:var(--text);
  letter-spacing:-.6px; margin-bottom:4px;
}
.page-sub { font-size:13px; color:var(--muted); font-weight:500; }

/* ── AI TOOLS PAGE ── */
.tools-search-bar,
.prompts-search-bar {
  margin:0 16px 12px; padding:0 14px; height:44px;
  background:var(--surface); border:1.5px solid var(--border);
  border-radius:var(--radius-full); display:flex; align-items:center; gap:10px;
  box-shadow:var(--shadow-sm);
}
.tools-search-bar input,
.prompts-search-bar input {
  flex:1; border:none; background:none; font-size:14px; color:var(--text); outline:none;
}
.tools-search-bar input::placeholder,
.prompts-search-bar input::placeholder { color:var(--muted); }

/* Recently Used & Favourites strip */
.tools-row-strip { padding:0 16px 16px; }
.tools-row-strip-title {
  font-size:13px; font-weight:700; color:var(--muted);
  text-transform:uppercase; letter-spacing:.6px; margin-bottom:10px;
}
.tools-row-mini { display:flex; gap:10px; overflow-x:auto; padding-bottom:4px; }
.tools-row-mini::-webkit-scrollbar { display:none; }

.tools-category-block { padding:0 16px 20px; }
.tools-cat-title {
  font-size:16px; font-weight:800; color:var(--text); letter-spacing:-.2px;
}

.tools-grid {
  display:grid; grid-template-columns:repeat(2,1fr); gap:10px;
}
.tool-card {
  background:var(--surface); border:1.5px solid var(--border);
  border-radius:var(--radius); padding:14px;
  display:flex; align-items:flex-start; gap:12px;
  cursor:pointer; transition:var(--transition); position:relative;
  box-shadow:var(--shadow-sm);
}
.tool-card:hover { border-color:var(--primary); background:var(--primary-light); transform:translateY(-2px); box-shadow:var(--shadow); }
.tool-fav-btn {
  position:absolute; top:10px; right:10px;
  font-size:14px; color:var(--muted-light);
  transition:var(--transition);
}
.tool-fav-btn.active { color:var(--danger); }

/* ── TOOL MODAL ── */
.modal-overlay {
  position:fixed; inset:0; z-index:500;
  background:rgba(10,10,30,.6);
  backdrop-filter:blur(8px);
  display:none; align-items:flex-end; justify-content:center;
  padding:0;
}
.modal-overlay.center { align-items:center; padding:16px; }
.modal-box {
  background:var(--surface);
  border-radius:var(--radius-xl) var(--radius-xl) 0 0;
  width:100%; max-width:600px;
  max-height:90vh; overflow-y:auto;
  animation:slideUp .3s cubic-bezier(.4,0,.2,1);
}
.modal-overlay.center .modal-box {
  border-radius:var(--radius-xl);
  animation:scaleIn .25s cubic-bezier(.4,0,.2,1);
}
@keyframes slideUp {
  from { transform:translateY(100%); opacity:0; }
  to { transform:translateY(0); opacity:1; }
}
@keyframes scaleIn {
  from { transform:scale(.92); opacity:0; }
  to { transform:scale(1); opacity:1; }
}
.modal-handle {
  width:40px; height:4px; background:var(--border);
  border-radius:99px; margin:12px auto 0; display:block;
}
.modal-head {
  display:flex; align-items:flex-start; justify-content:space-between;
  padding:20px 20px 16px; border-bottom:1px solid var(--border);
  gap:12px;
}
.modal-head h3 { font-size:18px; font-weight:800; color:var(--text); letter-spacing:-.3px; line-height:1.2; }
.modal-sub { font-size:13px; color:var(--muted); margin-top:3px; }

.tool-input-area { padding:16px 20px; }
.tool-input-area label { font-size:13px; font-weight:700; color:var(--text-2); display:block; margin-bottom:8px; }
.tool-input-area textarea {
  width:100%; padding:12px 14px; border-radius:var(--radius);
  border:1.5px solid var(--border); background:var(--surface-2);
  font-size:14px; color:var(--text); resize:vertical; min-height:100px;
  outline:none; transition:var(--transition); line-height:1.5;
}
.tool-input-area textarea:focus { border-color:var(--primary); background:var(--surface); }
.tool-lang-row { display:flex; align-items:center; gap:10px; margin-top:12px; }
.tool-lang-row select {
  flex:1; padding:10px 12px; border-radius:var(--radius);
  border:1.5px solid var(--border); background:var(--surface-2);
  font-size:13px; color:var(--text); outline:none;
}
.tool-output-area { margin:0 20px 16px; background:var(--surface-2); border-radius:var(--radius); border:1.5px solid var(--border); overflow:hidden; }
.output-head {
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 14px; border-bottom:1px solid var(--border);
  font-size:12px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:.5px;
}
.output-text {
  padding:14px; font-size:13px; color:var(--text); line-height:1.7;
  white-space:pre-wrap; max-height:280px; overflow-y:auto;
}
.tool-history { padding:0 20px 20px; }
.tool-history h5 { font-size:12px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:.5px; margin-bottom:8px; }
.history-item {
  font-size:12px; color:var(--text-2); background:var(--surface-2);
  border-radius:var(--radius-sm); padding:10px 12px; margin-bottom:6px;
  cursor:pointer; border-left:3px solid var(--primary);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.history-item:hover { background:var(--primary-light); }

/* ── PROMPT LIBRARY ── */
.prompts-grid {
  display:grid; grid-template-columns:repeat(2,1fr);
  gap:10px; padding:0 16px 16px;
}
.prompt-card {
  background:var(--surface); border:1.5px solid var(--border);
  border-radius:var(--radius); padding:14px; cursor:pointer;
  position:relative; transition:var(--transition); box-shadow:var(--shadow-sm);
}
.prompt-card:hover { border-color:var(--primary); transform:translateY(-2px); box-shadow:var(--shadow); }
.prompt-platform {
  font-size:10px; font-weight:700; color:var(--primary);
  background:var(--primary-light); padding:3px 8px;
  border-radius:var(--radius-full); display:inline-block; margin-bottom:7px;
  letter-spacing:.3px;
}
.prompt-title { font-size:13px; font-weight:700; color:var(--text); line-height:1.35; margin-bottom:8px; }
.prompt-cat-tag { font-size:10px; font-weight:600; color:var(--muted); margin-bottom:6px; }
.prompt-bookmark {
  position:absolute; top:10px; right:10px;
  font-size:16px; cursor:pointer;
}

/* Prompt detail modal */
.prompt-modal .modal-head { flex-direction:column; align-items:stretch; }
.prompt-meta { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.prompt-body-text {
  padding:16px 20px; font-size:14px; color:var(--text-2);
  line-height:1.8; white-space:pre-wrap;
  background:var(--surface-2); margin:0 20px;
  border-radius:var(--radius); border:1px solid var(--border);
  max-height:260px; overflow-y:auto;
}
.prompt-tags-row { display:flex; flex-wrap:wrap; gap:6px; padding:12px 20px; }
.modal-actions-row { display:flex; gap:8px; padding:0 20px 24px; flex-wrap:wrap; }
.tag {
  display:inline-block; font-size:11px; font-weight:700;
  background:var(--surface-2); color:var(--text-2);
  padding:4px 10px; border-radius:var(--radius-full);
  border:1px solid var(--border);
}

/* ── LEARN PAGE ── */
.course-modal-img {
  width:100%; height:180px; object-fit:cover;
  background:linear-gradient(135deg,var(--primary),#8B5CF6);
  display:flex; align-items:center; justify-content:center;
  font-size:64px;
}
.course-modal-body { padding:16px 20px; }
.curriculum-list { display:flex; flex-direction:column; gap:8px; }
.curriculum-item {
  display:flex; align-items:center; gap:12px;
  padding:12px 14px; background:var(--surface-2);
  border-radius:var(--radius-sm); border:1px solid var(--border);
  font-size:14px; color:var(--text);
}
.curriculum-num {
  font-size:12px; font-weight:800; color:var(--primary);
  background:var(--primary-light); padding:4px 8px;
  border-radius:var(--radius-sm); flex-shrink:0; font-family:var(--font-display);
}

/* ── PROFILE PAGE ── */
.streak-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 16px 0;
  background: linear-gradient(135deg, #FF6B35, #F59E0B);
  border-radius: 16px;
  padding: 14px 16px;
  color: #fff;
}
.streak-fire { font-size: 32px; flex-shrink: 0; }
.streak-info { flex: 1; }
.streak-count { font-weight: 800; font-size: 18px; line-height: 1.2; }
.streak-msg { font-size: 12px; opacity: .85; margin-top: 2px; }
.streak-days { display: flex; gap: 5px; flex-shrink: 0; }
.streak-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.35);
}
.streak-dot.active { background: #fff; }

.profile-header {
  padding:24px 16px 20px;
  background:linear-gradient(135deg,#1A1A2E,#2D1B69,#5B4CFF);
  display:flex; align-items:center; gap:16px;
}
.profile-avatar {
  width:64px; height:64px; border-radius:20px;
  background:rgba(255,255,255,.15); border:2px solid rgba(255,255,255,.3);
  display:flex; align-items:center; justify-content:center; font-size:32px;
  flex-shrink:0;
}
.profile-name { font-size:18px; font-weight:800; color:#fff; margin-bottom:2px; letter-spacing:-.3px; }
.profile-email { font-size:12px; color:rgba(255,255,255,.7); margin-bottom:8px; }
.profile-badge {
  display:inline-block; font-size:11px; font-weight:700;
  background:rgba(255,255,255,.15); color:#fff;
  padding:4px 12px; border-radius:var(--radius-full);
  border:1px solid rgba(255,255,255,.2);
}

/* Stats grid */
.profile-stats {
  display:grid; grid-template-columns:repeat(3,1fr);
  gap:10px; padding:16px;
}
.profile-stat-card {
  background:var(--surface); border:1.5px solid var(--border);
  border-radius:var(--radius); padding:14px; text-align:center;
  box-shadow:var(--shadow-sm);
}
.profile-stat-num {
  font-family:var(--font-display); font-size:24px; font-weight:900;
  color:var(--primary); display:block; margin-bottom:3px;
}
.profile-stat-label { font-size:11px; color:var(--muted); font-weight:600; }

/* Sections */
.profile-sections { padding:0 16px 32px; }
.profile-section-title {
  font-size:12px; font-weight:800; color:var(--muted);
  text-transform:uppercase; letter-spacing:.8px;
  padding:16px 0 8px;
}
.profile-menu-item {
  display:flex; align-items:center; gap:12px;
  padding:14px 0; border-bottom:1px solid var(--border-light);
  cursor:pointer; transition:var(--transition);
}
.profile-menu-item:hover { padding-left:4px; }
.profile-menu-item:last-child { border-bottom:none; }
.menu-icon { font-size:20px; width:36px; height:36px; display:flex; align-items:center; justify-content:center; background:var(--surface-2); border-radius:10px; flex-shrink:0; }
.menu-label { flex:1; font-size:14px; font-weight:600; color:var(--text); }
.menu-arrow { font-size:18px; color:var(--muted-light); font-weight:300; }
.menu-toggle { margin-left:auto; }

/* Toggle */
.toggle { position:relative; width:44px; height:24px; display:inline-block; }
.toggle input { opacity:0; width:0; height:0; }
.toggle-slider {
  position:absolute; inset:0; background:var(--border);
  border-radius:99px; cursor:pointer; transition:.3s;
}
.toggle-slider::before {
  content:''; position:absolute;
  width:18px; height:18px; left:3px; bottom:3px;
  background:#fff; border-radius:50%; transition:.3s;
  box-shadow:0 1px 4px rgba(0,0,0,.2);
}
.toggle input:checked + .toggle-slider { background:var(--primary); }
.toggle input:checked + .toggle-slider::before { transform:translateX(20px); }

/* ── WEBINAR MODAL ── */
.webinar-modal { border-radius:var(--radius-xl) var(--radius-xl) 0 0; padding-bottom:24px; }
.webinar-details { padding:16px 20px; }
.webinar-meta-row { font-size:14px; color:var(--text-2); font-weight:600; margin-bottom:14px; padding:12px 14px; background:var(--surface-2); border-radius:var(--radius-sm); }
.webinar-benefits { display:flex; flex-direction:column; gap:8px; margin-bottom:16px; }
.webinar-benefits li { font-size:14px; color:var(--text-2); display:flex; align-items:center; gap:8px; }
.countdown-big { font-size:18px; font-weight:800; color:var(--primary); font-family:var(--font-display); }
.webinar-form { padding:0 20px 20px; }
.webinar-form h4 { font-size:16px; font-weight:800; color:var(--text); margin-bottom:14px; }
.webinar-form input,
.webinar-form select {
  width:100%; padding:12px 14px; border-radius:var(--radius);
  border:1.5px solid var(--border); background:var(--surface-2);
  font-size:14px; color:var(--text); margin-bottom:10px; outline:none;
  transition:var(--transition);
}
.webinar-form input:focus,
.webinar-form select:focus { border-color:var(--primary); background:var(--surface); }
.form-note { font-size:12px; color:var(--muted); text-align:center; margin-top:8px; }

/* ── NOTIFICATION PANEL ── */
.notif-panel {
  position:fixed; top:var(--top-h); right:12px; z-index:400;
  width:300px; max-height:400px; overflow-y:auto;
  background:var(--surface); border-radius:var(--radius-lg);
  box-shadow:var(--shadow-xl); border:1.5px solid var(--border);
  animation:scaleIn .2s ease;
}
.notif-head {
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 16px; border-bottom:1px solid var(--border);
  font-size:14px; font-weight:800; color:var(--text);
}
.notif-item {
  display:flex; align-items:flex-start; gap:10px;
  padding:12px 16px; border-bottom:1px solid var(--border-light);
}
.notif-item:last-child { border-bottom:none; }
.notif-item-icon { font-size:20px; flex-shrink:0; }
.notif-item-title { font-size:13px; font-weight:600; color:var(--text); margin-bottom:2px; line-height:1.3; }
.notif-item-time { font-size:11px; color:var(--muted); }

.overlay-bg {
  position:fixed; inset:0; z-index:300;
  background:rgba(0,0,0,.3);
}

/* ── EMPTY STATE ── */
.empty-state {
  display:flex; flex-direction:column; align-items:center;
  padding:48px 24px; text-align:center;
}
.empty-icon { font-size:56px; margin-bottom:14px; opacity:.7; }
.empty-title { font-size:18px; font-weight:800; color:var(--text); margin-bottom:6px; }
.empty-sub { font-size:14px; color:var(--muted); margin-bottom:24px; line-height:1.5; }

/* ── LOADING SKELETON ── */
@keyframes shimmer {
  0% { background-position:-200% 0; }
  100% { background-position:200% 0; }
}
.skeleton {
  background:linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size:200% 100%;
  animation:shimmer 1.4s infinite;
  border-radius:var(--radius-sm);
}

/* ── GENERATING ANIMATION ── */
@keyframes pulse-dot {
  0%,80%,100% { transform:scale(0); }
  40% { transform:scale(1); }
}
.generating { display:flex; align-items:center; gap:6px; padding:16px; }
.generating span {
  width:8px; height:8px; border-radius:50%; background:var(--primary);
  animation:pulse-dot 1.2s ease-in-out infinite;
}
.generating span:nth-child(2) { animation-delay:.2s; }
.generating span:nth-child(3) { animation-delay:.4s; }

/* ── REVEAL ANIMATION ── */
.reveal { opacity:0; transform:translateY(24px); transition:opacity .5s ease, transform .5s ease; }

/* ── UTILITY ── */
.full-width { width:100%; }
.text-center { text-align:center; }
.mt-8 { margin-top:8px; }
.mt-16 { margin-top:16px; }
.mb-16 { margin-bottom:16px; }
.gap-8 { gap:8px; }

/* ── TABS ── */
.learn-tabs { display:flex; gap:0; padding:0 16px; overflow-x:auto; margin-bottom:0; border-bottom:1px solid var(--border); }
.learn-tabs::-webkit-scrollbar { display:none; }

/* ── PROMPT TYPE TABS ── */
.prompt-type-tabs {
  display:flex; gap:8px; padding:12px 16px 4px;
}

/* ── IMAGE PROMPTS GRID ── */
.img-prompts-grid {
  display:grid; grid-template-columns:1fr 1fr;
  gap:14px; padding:0 16px 100px;
}
.img-prompt-card {
  background:var(--surface); border-radius:18px;
  overflow:hidden; border:1.5px solid var(--border);
  cursor:pointer; transition:transform .2s, box-shadow .2s;
  box-shadow:var(--shadow-sm);
  display:flex; flex-direction:column;
}
.img-prompt-card:hover { transform:translateY(-3px); box-shadow:var(--shadow); }
.img-prompt-card:active { transform:scale(.97); }

.img-prompt-preview {
  position:relative;
  width:100%;
  aspect-ratio:4/3;
  overflow:hidden;
  background:var(--surface-2);
  flex-shrink:0;
}
.img-prompt-preview img {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  border-radius:0;
  display:block;
}
.img-prompt-tool-badge {
  position:absolute !important; top:8px; right:8px;
  background:rgba(0,0,0,.60); color:#fff;
  font-size:9px; font-weight:700;
  padding:3px 8px; border-radius:20px;
  z-index:3; pointer-events:none;
  white-space:nowrap;
  backdrop-filter:blur(4px);
}
.img-prompt-style {
  position:absolute !important; bottom:8px; left:8px;
  background:rgba(0,0,0,.40); color:#fff;
  font-size:9px; font-weight:600;
  padding:3px 8px; border-radius:20px;
  z-index:3; pointer-events:none;
  white-space:nowrap;
  backdrop-filter:blur(4px);
  max-width:calc(100% - 16px);
  overflow:hidden; text-overflow:ellipsis;
}

.img-prompt-info {
  padding:12px 12px 12px;
  display:flex; flex-direction:column; flex:1;
}
.img-prompt-title {
  font-size:13px; font-weight:700; color:var(--text);
  margin-bottom:6px; line-height:1.35;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.img-prompt-meta {
  display:flex; align-items:center; gap:8px; margin-bottom:6px;
}
.img-prompt-cat {
  font-size:10px; font-weight:600; color:var(--primary);
  background:rgba(91,76,255,.1); padding:2px 7px; border-radius:10px;
}
.img-prompt-likes { font-size:10px; color:var(--muted); }
.img-prompt-preview-text {
  font-size:11px; color:var(--muted); line-height:1.5; margin-bottom:10px;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
  flex:1;
}

/* ── RESPONSIVE ── */
@media (max-width:360px) {
  .tools-grid { grid-template-columns:1fr; }
  .prompts-grid { grid-template-columns:1fr; }
  .tools-grid-mini { grid-template-columns:repeat(3,1fr); }
}
@media (min-width:480px) {
  .tools-grid { grid-template-columns:repeat(3,1fr); }
  .prompts-grid { grid-template-columns:repeat(2,1fr); }
}

/* ============================================================
   TABLET — 768px+
   ============================================================ */
@media (min-width:768px) {
  :root {
    --top-h: 68px;
  }
  .top-bar-inner { max-width:960px; padding:0 28px; }
  .main-content  { padding-bottom:calc(var(--nav-h) + 8px); }

  .slide { padding:48px 40px 56px; min-height:300px; }
  .slide-content h1 { font-size:36px; }
  .slide-img { width:180px; height:180px; }

  .stat-num { font-size:28px; }

  .section-block { padding:32px 28px; }
  .page-header { padding:28px 28px 12px; }

  .tools-grid       { grid-template-columns:repeat(3,1fr); }
  .tools-grid-mini  { grid-template-columns:repeat(6,1fr); }
  .prompts-grid     { grid-template-columns:repeat(3,1fr); }
  .img-prompts-grid { grid-template-columns:repeat(3,1fr); padding:0 28px 80px; }
  .membership-row   { gap:16px; padding:16px 28px; }

  .course-card  { width:260px; }
  .program-card { width:340px; }
  .story-card   { width:260px; }

  .cat-tabs  { padding:0 28px 12px; }
  .prompt-type-tabs { padding:12px 28px 4px; }

  .tools-search-bar { margin:0 28px 12px; }
  .prompts-search-bar { margin:0 28px 12px; }

  .continue-strip { margin:20px 28px 0; }

  .webinar-banner { margin:0 28px 8px; }
  .whatsapp-block { margin:0 28px; }

  .tools-category-block { padding:0 28px 24px; }
  .tools-row-strip { padding:0 28px 16px; }

  .prompts-grid { padding:0 28px 16px; }

  .modal-box { max-width:680px; }
}

/* ============================================================
   DESKTOP — 1024px+
   ============================================================ */
@media (min-width:1024px) {
  :root {
    --top-h: 72px;
    --nav-h: 0px;
  }

  .top-bar-inner {
    max-width: 1440px;
    padding: 0 48px;
  }

  .bottom-nav { display:none !important; }
  .main-content { padding-bottom:48px; }

  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 auto 0 32px;
  }
  .desktop-nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-2);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    background: none;
    font-family: var(--font-body);
    white-space: nowrap;
  }
  .desktop-nav-item:hover { background:var(--surface-2); color:var(--primary); }
  .desktop-nav-item.active { background:var(--primary-light); color:var(--primary); }

  .section-block     { padding:48px 48px; max-width:1440px; margin:0 auto; box-sizing:border-box; }
  .page-header       { padding:40px 48px 16px; max-width:1440px; margin:0 auto; }
  .stats-strip       { max-width:1440px; margin:0 auto; }
  .continue-strip    { margin:24px 48px 0; max-width:calc(1440px - 96px); }
  .webinar-banner    { margin:0 48px 12px; max-width:calc(1440px - 96px); }
  .whatsapp-block    { margin:0 48px; max-width:calc(1440px - 96px); }
  .tools-search-bar  { margin:0 48px 16px; max-width:calc(1440px - 96px); }
  .prompts-search-bar{ margin:0 48px 16px; max-width:calc(1440px - 96px); }
  .cat-tabs          { padding:0 48px 16px; max-width:1440px; }
  .prompt-type-tabs  { padding:16px 48px 8px; }
  .tools-row-strip   { padding:0 48px 20px; max-width:1440px; }
  .tools-category-block { padding:0 48px 28px; max-width:1440px; }
  .membership-row    { padding:24px 48px; max-width:1440px; margin:0 auto; }
  .hero-slider       { border-radius:0 0 var(--radius-xl) var(--radius-xl); }
  .img-prompts-grid  { padding:0 48px 80px; max-width:1440px; margin:0 auto; }

  .section-block { padding-top:48px; padding-bottom:0; }
  .section-block:last-child { padding-bottom:64px; }

  .tools-grid       { grid-template-columns:repeat(4,1fr); gap:14px; }
  .tools-grid-mini  { grid-template-columns:repeat(6,1fr); gap:14px; }
  .prompts-grid     { grid-template-columns:repeat(4,1fr); gap:14px; }
  .img-prompts-grid { grid-template-columns:repeat(4,1fr); gap:20px; }
  .membership-row   { grid-template-columns:repeat(3,1fr); gap:24px; }
  .profile-stats    { grid-template-columns:repeat(4,1fr); }

  .slide { padding:64px 48px 72px; min-height:360px; gap:32px; }
  .slide-content h1 { font-size:44px; }
  .slide-content p  { font-size:16px; }
  .slide-img { width:240px; height:240px; border-radius:28px; }
  .slider-dots { bottom:20px; }

  #featuredCourses,
  #popularCourses,
  #freeCourses,
  #latestCourses {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 16px;
    overflow: visible;
    padding-bottom: 0;
  }
  #featuredCourses .course-card,
  #popularCourses .course-card,
  #freeCourses .course-card,
  #latestCourses .course-card {
    width: 100%;
    flex-shrink: unset;
  }

  #successStories {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 16px;
    overflow: visible;
    padding-bottom: 0;
  }
  #successStories .story-card {
    width: 100%;
    flex-shrink: unset;
  }

  .course-card  { width:100%; }
  .story-card   { width:100%; }
  .program-card { width:100%; }

  .modal-box    { max-width:720px; }
  .modal-overlay.center { padding:32px; }

  .notif-panel  { width:360px; }

  .stats-strip  { grid-template-columns:repeat(4,1fr); }
  .stat-num     { font-size:32px; }
  .stat-item    { padding:24px 16px; }

  .section-title { font-size:24px; }
  .page-title    { font-size:32px; }

  .profile-header { padding:40px 48px; }
  .profile-sections { padding:0 48px 48px; }
}

/* ============================================================
   WIDE DESKTOP — 1280px+
   ============================================================ */
@media (min-width:1280px) {
  .img-prompts-grid { grid-template-columns:repeat(5,1fr); }
  .tools-grid       { grid-template-columns:repeat(5,1fr); }
  .prompts-grid     { grid-template-columns:repeat(4,1fr); }

  #featuredCourses,
  #popularCourses,
  #freeCourses,
  #latestCourses { grid-template-columns:repeat(5,1fr); }

  #successStories   { grid-template-columns:repeat(5,1fr); }
}

/* ============================================================
   UI CONSISTENCY — SPACING, TYPOGRAPHY & CARD POLISH
   ============================================================ */
.course-info          { padding:20px; }
.course-thumb         { height:140px; }
.course-cat           { margin-bottom:9px; }
.course-title         { font-size:15px; line-height:1.4; margin-bottom:10px; }
.course-progress      { margin-top:12px; }

.story-avatar         { font-size:44px; margin-bottom:12px; }
.story-name           { font-size:16px; margin-bottom:4px; }
.story-role           { margin-bottom:8px; }
.story-income         { font-size:20px; margin-bottom:12px; }
.story-quote          { font-size:13px; line-height:1.65; }
.story-city           { margin-top:10px; }

.prompt-card          { display:flex; flex-direction:column; padding:20px; }
.prompt-platform      { font-size:11px; padding:4px 10px; margin-bottom:9px; }
.prompt-title         { font-size:14px; line-height:1.4; margin-bottom:10px; }
.prompt-cat-tag       { font-size:11px; margin-bottom:9px; }

.section-title        { font-size:22px; letter-spacing:-.5px; }
.section-header       { margin-bottom:20px; }

.img-prompt-preview   { aspect-ratio:3/2; }
.img-prompt-info      { padding:14px; }
.img-prompt-title     { font-size:14px; font-weight:700; line-height:1.4; margin-bottom:8px; }
.img-prompt-meta      { margin-bottom:8px; }
.img-prompt-cat       { font-size:11px; padding:3px 9px; }
.img-prompt-likes     { font-size:11px; }
.img-prompt-preview-text { font-size:12px; line-height:1.55; margin-bottom:12px; -webkit-line-clamp:3; }
.img-prompt-copy-btn  { padding:10px 0; font-size:13px; border-radius:12px; }
.img-prompt-tool-badge{ font-size:10px; padding:4px 10px; }
.img-prompt-style     { font-size:10px; padding:4px 10px; }

.page-title           { font-size:28px; letter-spacing:-.7px; margin-bottom:6px; }
.page-sub             { font-size:14px; }

.news-title           { font-size:15px; line-height:1.45; margin-bottom:5px; }
.news-date            { font-size:12px; }
.news-emoji           { font-size:26px; }

.faq-q                { font-size:15px; padding:18px; }
.faq-a                { font-size:14px; }

.mem-card             { padding:24px 16px; }
.mem-card strong      { font-size:14px; margin-bottom:6px; }
.mem-price            { font-size:18px; margin-bottom:10px; }
.mem-icon             { font-size:32px; margin-bottom:10px; }

.stat-item            { padding:20px 12px; gap:5px; }
.stat-label           { font-size:12px; }

@media (min-width:768px) {
  .course-thumb        { height:160px; }
  .course-info         { padding:22px; }
  .course-title        { font-size:16px; }
  .story-card          { padding:24px 20px; }
  .prompt-card         { padding:22px; }
  .prompt-title        { font-size:15px; }
  .section-title       { font-size:24px; }
  .page-title          { font-size:30px; }
  .img-prompt-info     { padding:16px; }
  .img-prompt-title    { font-size:15px; }
  .tool-card           { padding:20px 16px; }
  .news-item           { gap:16px; }
}

@media (min-width:1024px) {
  .course-thumb        { height:180px; }
  .course-info         { padding:24px; }
  .course-title        { font-size:16px; }
  .course-cat          { font-size:12px; }
  .story-card          { padding:24px; }
  .story-name          { font-size:17px; }
  .story-income        { font-size:22px; }
  .story-quote         { font-size:14px; }
  .prompt-card         { padding:24px; }
  .prompt-title        { font-size:15px; }
  .prompt-platform     { font-size:12px; }
  .section-title       { font-size:26px; }
  .page-title          { font-size:34px; }
  .news-title          { font-size:16px; }
  .faq-q               { font-size:16px; padding:20px; }
  .faq-a               { font-size:15px; }
  .mem-card            { padding:28px 20px; }
  .mem-icon            { font-size:36px; }
  .mem-card strong     { font-size:16px; }
  .mem-price           { font-size:20px; }
  .stat-num            { font-size:36px; }
  .stat-label          { font-size:13px; }
  .stat-item           { padding:28px 20px; }
  .img-prompt-preview  { aspect-ratio:4/3; }
  .img-prompt-info     { padding:16px; }
  .img-prompt-title    { font-size:15px; }
}

/* ============================================================
   CARD STANDARDISATION — consistent across every card type
   ============================================================ */
.course-card,
.story-card,
.prompt-card,
.tool-card,
.img-prompt-card,
.track-card,
.program-card,
.mem-card {
  border-radius: 18px !important;
  border: 1.5px solid var(--border) !important;
  box-shadow: 0 2px 12px rgba(91,76,255,.07) !important;
  transition: transform .22s cubic-bezier(.4,0,.2,1),
              box-shadow .22s cubic-bezier(.4,0,.2,1),
              border-color .22s !important;
  overflow: hidden;
}
.course-card:hover,
.story-card:hover,
.prompt-card:hover,
.tool-card:hover,
.img-prompt-card:hover,
.track-card:hover,
.program-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 36px rgba(91,76,255,.15) !important;
  border-color: var(--primary) !important;
}
.course-card:active,
.story-card:active,
.prompt-card:active,
.tool-card:active,
.img-prompt-card:active { transform: scale(.97) !important; }

.course-card {
  display: flex;
  flex-direction: column;
}
.course-thumb {
  width: 100%;
  height: 150px;
  flex-shrink: 0;
  border-radius: 0 !important;
}
.course-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 18px 18px !important;
  gap: 0;
}
.course-cat    { margin-bottom: 8px !important; }
.course-title  {
  flex: 1;
  font-size: 14px !important;
  font-weight: 700;
  line-height: 1.4 !important;
  margin-bottom: 10px !important;
  -webkit-line-clamp: 2;
}
.course-meta   { margin-top: auto; }
.course-price  { font-size: 15px !important; font-weight: 900 !important; }

@media (min-width:768px) {
  .course-thumb  { height: 160px; }
  .course-info   { padding: 18px 20px 20px !important; }
  .course-title  { font-size: 15px !important; }
}
@media (min-width:1024px) {
  .course-thumb  { height: 172px; }
  .course-info   { padding: 20px 22px 22px !important; }
  .course-title  { font-size: 15px !important; }
}

.story-card {
  display: flex;
  flex-direction: column;
  padding: 20px 18px 20px !important;
  text-align: left;
}
.story-avatar  { font-size: 42px !important; margin-bottom: 10px !important; text-align: center; }
.story-name    { font-size: 15px !important; font-weight: 800; margin-bottom: 2px !important; }
.story-role    { font-size: 12px !important; color: var(--muted); margin-bottom: 8px !important; }
.story-income  {
  font-size: 20px !important;
  font-weight: 900 !important;
  color: var(--success);
  margin-bottom: 10px !important;
}
.story-quote   {
  flex: 1;
  font-size: 12px !important;
  line-height: 1.6 !important;
  font-style: italic;
  color: var(--text-2);
}
.story-city    { font-size: 11px !important; color: var(--muted); margin-top: 10px !important; }

.prompt-card {
  display: flex !important;
  flex-direction: column !important;
  padding: 18px !important;
  min-height: 180px;
}
.prompt-platform  { margin-bottom: 8px !important; flex-shrink: 0; }
.prompt-title     {
  font-size: 13px !important;
  font-weight: 700;
  line-height: 1.4 !important;
  flex: 1;
  margin-bottom: 10px !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.prompt-cat-tag   {
  font-size: 10px !important;
  margin-bottom: 0 !important;
  margin-top: auto;
}

@media (min-width:768px) {
  .prompt-card    { padding: 20px !important; min-height: 190px; }
  .prompt-title   { font-size: 14px !important; }
}
@media (min-width:1024px) {
  .prompt-card    { padding: 22px !important; min-height: 200px; }
  .prompt-title   { font-size: 14px !important; }
}

.tool-card {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  padding: 16px !important;
  min-height: 88px;
  flex-direction: row !important;
}
.tool-card-icon  { font-size: 26px !important; flex-shrink: 0; margin-top: 1px; }
.tool-card-info  { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.tool-card-name  { font-size: 13px !important; font-weight: 700 !important; line-height: 1.2; color: var(--text); }
.tool-card-desc  { font-size: 11px !important; color: var(--muted) !important; line-height: 1.4; }

@media (min-width:768px) {
  .tool-card      { padding: 18px !important; }
  .tool-card-name { font-size: 14px !important; }
  .tool-card-desc { font-size: 12px !important; }
}
@media (min-width:1024px) {
  .tool-card      { padding: 20px 18px !important; }
}

.img-prompt-card {
  display: flex !important;
  flex-direction: column !important;
}
.img-prompt-preview {
  width: 100% !important;
  aspect-ratio: 4 / 3 !important;
  position: relative !important;
  overflow: hidden !important;
  flex-shrink: 0;
}
.img-prompt-preview img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}
.img-prompt-info {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  padding: 14px !important;
  gap: 0;
}
.img-prompt-title {
  font-size: 13px !important;
  font-weight: 700;
  line-height: 1.35 !important;
  margin-bottom: 8px !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.img-prompt-meta      { margin-bottom: 6px !important; }
.img-prompt-preview-text {
  flex: 1 !important;
  font-size: 11px !important;
  line-height: 1.5 !important;
  margin-bottom: 10px !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--muted);
}

@media (min-width:1024px) {
  .img-prompt-info      { padding: 16px !important; }
  .img-prompt-title     { font-size: 14px !important; }
}

.mem-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  padding: 24px 16px !important;
  text-align: center;
}
.mem-icon   { font-size: 32px !important; margin-bottom: 10px !important; display: block; }
.mem-card strong { font-size: 14px !important; font-weight: 800 !important; margin-bottom: 6px !important; display: block; }
.mem-price  { font-size: 18px !important; font-weight: 900 !important; margin-bottom: 10px !important; display: block; }
.mem-tag    { margin-top: auto; }

.track-card {
  display: flex !important;
  flex-direction: column !important;
  padding: 18px !important;
  min-height: 160px;
}
.track-icon   { margin-bottom: 10px !important; }
.track-title  { font-size: 13px !important; font-weight: 700; line-height: 1.35; margin-bottom: 6px !important; flex: 1; }
.track-meta   { font-size: 11px !important; color: var(--muted); margin-bottom: 10px !important; }

.program-card {
  display: flex !important;
  flex-direction: column !important;
}
.program-card-body { flex: 1; }

.news-item {
  border-radius: 14px !important;
  padding: 14px 16px !important;
  transition: transform .2s, box-shadow .2s, border-color .2s !important;
}
.news-item:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(91,76,255,.10) !important;
}

/* ── GRID ALIGNMENT ── */
.prompts-grid,
.img-prompts-grid,
.tools-grid {
  align-items: stretch !important;
}
.prompts-grid > *,
.img-prompts-grid > *,
.tools-grid > * {
  height: 100%;
}

#featuredCourses,
#popularCourses,
#freeCourses,
#latestCourses,
#successStories {
  align-items: stretch !important;
}
#featuredCourses > *,
#popularCourses > *,
#freeCourses > *,
#latestCourses > *,
#successStories > * {
  height: 100%;
}

/* ── VISUAL HIERARCHY ── */
.section-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -.5px;
  line-height: 1.2;
  position: relative;
  padding-bottom: 12px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 36px; height: 3px;
  background: linear-gradient(90deg, var(--primary), #8B5CF6);
  border-radius: 99px;
}

.section-header {
  align-items: flex-start;
  margin-bottom: 32px;
  gap: 12px;
}
.section-header .see-all {
  flex-shrink: 0;
  margin-top: 2px;
}

.page-title {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -.8px;
  line-height: 1.1;
  color: var(--text);
}
.page-sub {
  color: var(--muted);
  line-height: 1.6;
  margin-top: 4px;
}

.section-block {
  padding-top: 32px;
  padding-bottom: 8px;
  position: relative;
}
.section-block + .section-block::before {
  content: '';
  display: block;
  height: 1.5px;
  background: var(--border);
  margin: 0 0 48px;
  opacity: .8;
}

.section-block.tinted {
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  margin: 0 12px;
  padding-left: 20px;
  padding-right: 20px;
}

.stats-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-num {
  background: linear-gradient(135deg, var(--primary), #8B5CF6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  text-transform: uppercase;
  letter-spacing: .5px;
}

.webinar-banner {
  margin-top: 8px;
  margin-bottom: 16px;
}

.page-header {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.learn-tabs {
  position: sticky;
  top: var(--top-h);
  z-index: 50;
  background: var(--bg);
  padding-top: 4px;
}
.learn-tab {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.1px;
}

.tools-category-block {
  position: relative;
  padding-top: 24px;
}
.tools-category-block + .tools-category-block::before {
  content: '';
  display: block;
  height: 1px;
  background: var(--border);
  margin-bottom: 24px;
  opacity: .6;
}

.cat-tabs {
  padding-top: 4px;
  padding-bottom: 16px;
}

.profile-section-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 20px 0 10px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 2px;
}

.faq-item + .faq-item { margin-top: 2px; }
.faq-q { font-weight: 800; letter-spacing: -.1px; }
.news-title { font-weight: 800; letter-spacing: -.1px; }

.membership-row .section-title { text-align: center; }
.membership-row .section-title::after { left: 50%; transform: translateX(-50%); }

@media (min-width: 768px) {
  .section-title        { font-size: 24px; padding-bottom: 12px; }
  .section-title::after { width: 44px; height: 4px; }
  .section-header       { margin-bottom: 28px; }
  .section-block        { padding-top: 40px; }
  .section-block + .section-block::before { margin-bottom: 40px; }
  .page-title           { font-size: 30px; }
  .page-header          { padding-bottom: 20px; }
  .tools-category-block { padding-top: 28px; }
  .tools-category-block + .tools-category-block::before { margin-bottom: 28px; }
  .learn-tab            { font-size: 15px; padding: 14px 20px; }
  .section-block.tinted { margin: 0 20px; padding-left: 28px; padding-right: 28px; }
}

@media (min-width: 1024px) {
  .section-title        { font-size: 28px; padding-bottom: 14px; }
  .section-title::after { width: 52px; height: 4px; }
  .section-header       { margin-bottom: 32px; }
  .section-block        { padding-top: 56px; }
  .section-block + .section-block::before { margin-bottom: 56px; }
  .page-title           { font-size: 36px; }
  .page-header          { padding-bottom: 24px; margin-bottom: 8px; }
  .tools-category-block { padding-top: 36px; }
  .tools-category-block + .tools-category-block::before { margin-bottom: 36px; }
  .learn-tab            { font-size: 15px; padding: 16px 24px; }
  .profile-section-title{ font-size: 12px; padding: 24px 0 12px; }
  .section-block.tinted { margin: 0 48px; padding-left: 48px; padding-right: 48px; border-radius: var(--radius-xl); }
  .stat-label           { font-size: 13px; letter-spacing: .6px; }
  .section-block + .section-block::before { opacity: 1; }
}

/* ============================================================
   RESPONSIVE LAYOUT AUDIT — overflow, alignment & spacing fixes
   ============================================================ */
* { max-width: 100%; }
img, svg, video, iframe { max-width: 100%; }
.top-bar, .bottom-nav, .main-content { max-width: 100vw; }

.top-bar-inner { overflow: hidden; }
.brand-name    { font-size: clamp(14px, 4vw, 18px); }
.brand-tagline { display: none; }

.hero-slider   { overflow: hidden; }
.slider-track  { overflow: visible; }
.slide         { overflow: hidden; }

.main-content  { overflow-x: hidden; }
.page          { overflow-x: hidden; }

.scroll-row    { overflow-x: auto; overflow-y: visible; padding-left: 0; padding-right: 0; }

@media (max-width: 360px) {
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-num    { font-size: 18px; }
  .stat-label  { font-size: 10px; }
}

.ecosystem-strip { overflow: hidden; }
.eco-steps       { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.eco-steps::-webkit-scrollbar { display: none; }

.webinar-banner h3 {
  font-size: clamp(13px, 3.5vw, 16px);
  white-space: normal;
  overflow-wrap: break-word;
}
.webinar-banner { align-items: flex-start; }

.whatsapp-block { overflow: hidden; }
.wa-text strong { font-size: clamp(13px, 3.5vw, 15px); }
.wa-text span   { font-size: clamp(11px, 3vw, 12px); }

.continue-title { max-width: calc(100% - 32px); }

.section-title {
  word-break: break-word;
  overflow-wrap: break-word;
}

.prompt-card { word-break: break-word; overflow-wrap: break-word; }
.prompt-title { word-break: break-word; }

.tool-card { overflow: hidden; }
.tool-card-desc { overflow-wrap: break-word; word-break: break-word; }

.modal-box    { overflow-x: hidden; }
.modal-head h3 { word-break: break-word; }
.prompt-body-text { word-break: break-word; overflow-wrap: break-word; }

.cat-tabs  { padding-left: 16px; padding-right: 16px; gap: 8px; }
.cat-tab   { flex-shrink: 0; }

@media (max-width: 360px) {
  .prompts-grid     { grid-template-columns: 1fr; }
  .img-prompts-grid { grid-template-columns: 1fr; }
}

.img-prompt-tool-badge,
.img-prompt-style { max-width: calc(50% - 20px); overflow: hidden; text-overflow: ellipsis; }

.learn-tabs-bar {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  top: var(--top-h);
}
.learn-tabs-bar::-webkit-scrollbar { display: none; }
.learn-tab { flex-shrink: 0; }
.learn-panel { overflow-x: hidden; }

.mcf-badge { max-width: 48%; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.mcf-content { min-width: 0; overflow: hidden; }
.mcf-name    { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcf-tagline { white-space: normal; overflow-wrap: break-word; }

.profile-header { overflow: hidden; }
.profile-name   { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-email  { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 360px) {
  .profile-stats { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .profile-stat-num { font-size: 18px; }
}

.notif-panel { max-width: calc(100vw - 24px); right: 12px; }
.search-bar-wrap { padding: 0 12px; }

@media (min-width: 768px) {
  .brand-tagline { display: block; }
  .brand-name    { font-size: 18px; }

  .page-header       { padding-left: 28px; padding-right: 28px; }

  .webinar-banner { margin-left: 28px; margin-right: 28px; }
  .whatsapp-block { margin-left: 28px; margin-right: 28px; }
  .ecosystem-strip{ margin-left: 28px; margin-right: 28px; }
  .continue-strip { margin-left: 28px; margin-right: 28px; }

  .learn-panel { padding: 24px 28px; }
  .learn-tabs-bar { padding-left: 28px; }

  #lpanel-programs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 24px 28px;
    align-items: start;
  }
  #lpanel-programs .ecosystem-intro { grid-column: 1 / -1; }

  .profile-header  { padding: 28px; }
  .profile-sections{ padding: 0 28px 32px; }
  .profile-stats   { padding: 0 28px; grid-template-columns: repeat(4, 1fr); }
  .streak-banner   { margin: 16px 28px 0; }

  #faqList { column-count: 2; column-gap: 16px; }
  .faq-item { break-inside: avoid; margin-bottom: 10px; }

  .news-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .prompt-type-tabs { padding-left: 28px; padding-right: 28px; }
  .notif-panel { width: 340px; }
  .modal-overlay.center { padding: 24px; }
}

@media (min-width: 1024px) {
  .brand-tagline { display: block; font-size: 11px; }
  .top-bar-inner { gap: 24px; }

  .search-bar-wrap { max-width: 1440px; margin: 0 auto; }

  .learn-panel { padding: 32px 48px; }
  .learn-tabs-bar {
    padding-left: 48px;
    padding-right: 48px;
    top: var(--top-h);
  }

  #lpanel-programs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 32px 48px;
    max-width: 1440px;
    margin: 0 auto;
  }
  #lpanel-programs .ecosystem-intro { grid-column: 1 / -1; }

  .membership-card-full {
    height: 100%;
    margin-bottom: 0;
  }

  #faqList {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    column-count: unset;
  }
  .faq-item { break-inside: avoid; margin-bottom: 0; }

  .news-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .profile-stats {
    padding: 0 48px;
    grid-template-columns: repeat(4, 1fr);
  }
  .streak-banner { margin: 20px 48px 0; }

  .webinar-banner { max-width: calc(1440px - 96px); margin-left: auto; margin-right: auto; }
  .whatsapp-block { max-width: calc(1440px - 96px); margin-left: auto; margin-right: auto; }
  .ecosystem-strip{ max-width: calc(1440px - 96px); margin-left: auto; margin-right: auto; }

  #successStories {
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
  }

  .modal-overlay     { align-items: center; padding: 32px; }
  .modal-box         { border-radius: var(--radius-xl); animation: scaleIn .25s cubic-bezier(.4,0,.2,1); }
  .modal-box         { max-width: 640px; }

  .prompt-modal .modal-box { max-width: 720px; }
  .tool-modal        { max-width: 680px; }

  .bottom-nav { display: none !important; }
  .main-content { padding-bottom: 48px; }
  .slide-img { display: block; }
}

@media (min-width: 1280px) {
  #lpanel-programs {
    grid-template-columns: repeat(2, 1fr);
  }
  #faqList { grid-template-columns: repeat(3, 1fr); }
  .news-list { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .learn-tabs-bar { top: var(--top-h); }
}

@media (min-width: 1024px) {
  #prompt-section-image .prompts-search-bar { margin-left: 48px; margin-right: 48px; max-width: calc(1440px - 96px); }
  #prompt-section-image .cat-tabs           { padding-left: 48px; padding-right: 48px; }
  #imgPromptsGrid                            { padding-left: 48px; padding-right: 48px; }
}

@media (min-width: 1024px) {
  #toolCatTabs { padding-left: 48px !important; padding-right: 48px !important; }
}

@media (min-width: 1024px) {
  #lpanel-mylearning { padding: 32px 48px; max-width: 1440px; margin: 0 auto; }
  #myLearningContent { padding: 0; }
}

@media (min-width: 1024px) {
  #featuredCourses,
  #popularCourses,
  #freeCourses,
  #latestCourses,
  #successStories { padding-bottom: 0; }
}

@media (max-width: 480px) {
  .slide-img { width: 90px; height: 90px; }
}
@media (max-width: 360px) {
  .slide-img { display: none; }
  .slide     { justify-content: flex-start; }
}
