/* ═══════════════════════════════════════════════════
   LetrasDiferentesOnline.com — Main Stylesheet
   Dark mode default · Light mode toggle
   Purple/Violet accent theme
   ═══════════════════════════════════════════════════ */

/* ── DARK THEME (default) ── */
:root {
  --bg:        #08070f;
  --bg2:       #0d0b1a;
  --surface:   #110f22;
  --surface2:  #1a1730;
  --border:    #2a2445;
  --border2:   #352f58;
  --accent:    #a855f7;
  --accent2:   #7c3aed;
  --accent3:   #ec4899;
  --gold:      #f59e0b;
  --green:     #10b981;
  --red:       #ef4444;
  --text:      #e8e4f5;
  --muted:     #6b6490;
  --light:     #9d98bb;
  --nav-bg:    rgba(8,7,15,.88);
  --shadow-card: 0 8px 32px rgba(0,0,0,.6), 0 0 60px rgba(168,85,247,.05);
  --shadow-btn:  0 4px 20px rgba(168,85,247,.35);
  --glow:      0 0 24px rgba(168,85,247,.25);
  --hero-grad: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(124,58,237,.18), transparent),
               radial-gradient(ellipse 60% 40% at 80% 60%, rgba(236,72,153,.1), transparent);
  --card-hover-bg: #1e1a35;
  --input-bg:  #15122b;
}

/* ── LIGHT THEME ── */
[data-theme="light"] {
  --bg:        #f7f5ff;
  --bg2:       #ede9ff;
  --surface:   #ffffff;
  --surface2:  #f3f0ff;
  --border:    #ddd8f8;
  --border2:   #b8b0e8;
  --accent:    #7c3aed;
  --accent2:   #6d28d9;
  --accent3:   #db2777;
  --gold:      #d97706;
  --green:     #059669;
  --red:       #dc2626;
  --text:      #1a1333;
  --muted:     #6b7280;
  --light:     #8b8397;
  --nav-bg:    rgba(255,255,255,.97);
  --shadow-card: 0 2px 8px rgba(0,0,0,.06), 0 8px 32px rgba(124,58,237,.12);
  --shadow-btn:  0 4px 16px rgba(124,58,237,.35);
  --glow:      0 0 20px rgba(124,58,237,.15);
  --hero-grad: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(124,58,237,.1), transparent);
  --card-hover-bg: #f0ebff;
  --input-bg:  #f0ebff;
}

/* ── RESET ── */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:16px; overflow-x:clip; scroll-padding-top:70px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background .3s, color .3s;
}
img { max-width:100%; height:auto; display:block; }
a { color:inherit; text-decoration:none; }
button { font-family:inherit; cursor:pointer; border:none; background:none; }

/* ── LAYOUT ── */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── NAVIGATION ── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(0,0,0,.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px;
  height: 62px;
  transition: background .3s, box-shadow .3s;
}
/* offset body so content isn't hidden behind fixed nav */
body { padding-top: 62px; }
/* WP admin bar offset */
.admin-bar .site-nav { top: 32px; }
.admin-bar body { padding-top: 94px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-nav { top: 46px; }
  .admin-bar body { padding-top: 108px; }
}
.nav-logo { display:flex; align-items:center; gap:7px; flex-shrink:0; text-decoration:none; }
.nav-logo-mark { font-size:1.4rem; background:linear-gradient(135deg,#a855f7,#ec4899); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; line-height:1; }
.nav-logo-text { font-size:.97rem; font-weight:800; color:var(--text); letter-spacing:-.01em; line-height:1.2; }
.nav-logo-accent { background:linear-gradient(90deg,#a855f7,#ec4899); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.nav-logo-tld { color:var(--muted); font-weight:400; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}
.nav-link {
  font-size: .82rem;
  font-weight: 500;
  color: var(--light);
  padding: 6px 10px;
  border-radius: 8px;
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.is-hot {
  color: var(--accent);
  background: rgba(168,85,247,.1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.theme-toggle-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 36px; height: 36px;
  display:flex; align-items:center; justify-content:center;
  font-size: 1rem;
  transition: background .2s, border-color .2s;
}
.theme-toggle-btn:hover { border-color: var(--accent); }

.btn-fill {
  background: var(--accent);
  color: #fff !important;
  font-size: .82rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 10px;
  white-space: nowrap;
  box-shadow: var(--shadow-btn);
  transition: opacity .2s, transform .1s;
}
.btn-fill:hover { opacity:.88; transform:translateY(-1px); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px; padding: 2px;
  background: none;
}
.nav-hamburger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-hamburger.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-hamburger.is-open span:nth-child(2) { opacity:0; }
.nav-hamburger.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ── HERO ── */
.hero {
  position: relative;
  padding: 72px 20px 48px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-grad);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(168,85,247,.12);
  border: 1px solid rgba(168,85,247,.25);
  color: var(--accent);
  font-size: .78rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.02em;
  margin-bottom: 18px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.hero h1 .accent { color: var(--accent); }

.hero-desc {
  font-size: clamp(.95rem, 2vw, 1.15rem);
  color: var(--light);
  max-width: 600px;
  margin: 0 auto 28px;
  line-height: 1.7;
}
.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: var(--shadow-btn);
  transition: transform .15s, box-shadow .15s;
  margin-bottom: 32px;
}
.hero-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(168,85,247,.5); }

/* ── ARTICLE BOTTOM CTA ── */
.article-back-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.article-back-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff !important;
  font-weight: 700;
  font-size: .95rem;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none !important;
  box-shadow: var(--shadow-btn);
  transition: transform .15s;
}
.article-back-cta a:hover { transform: translateY(-2px); }

/* ── LEGAL PAGES ── */
.legal-wrap h2 { font-size: 1.2rem; font-weight: 700; color: var(--accent); margin: 36px 0 10px; }
.legal-wrap h3 { font-size: 1rem; font-weight: 600; color: var(--text); margin: 24px 0 8px; }
.legal-wrap p, .legal-wrap li { color: var(--light); line-height: 1.75; margin-bottom: 10px; }
.legal-wrap ul { padding-left: 20px; margin-bottom: 14px; }
.legal-wrap li { margin-bottom: 6px; }
.legal-wrap a { color: var(--accent); text-decoration: underline; }
.legal-wrap code { background: var(--surface2); color: var(--accent); padding: 2px 6px; border-radius: 4px; font-size: .85em; }
.legal-table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: .88rem; }
.legal-table th { background: var(--surface2); color: var(--text); font-weight: 600; text-align: left; padding: 10px 14px; border: 1px solid var(--border2); }
.legal-table td { padding: 9px 14px; border: 1px solid var(--border); color: var(--light); vertical-align: top; }
.legal-table tr:nth-child(even) td { background: rgba(255,255,255,.02); }
.legal-footer-links { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--border); font-size: .88rem; }
.legal-footer-links a { color: var(--muted); text-decoration: none; }
.legal-footer-links a:hover { color: var(--accent); }
@media (max-width: 640px) {
  .legal-table { display: block; overflow-x: auto; }
  .legal-wrap h2 { font-size: 1.05rem; }
}

/* ── STATS BAR ── */
.stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin: 0 auto 48px;
  padding: 20px;
  max-width: 600px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.stat-item { text-align:center; }
.stat-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.stat-lbl {
  font-size: .78rem;
  color: var(--muted);
  margin-top: 3px;
}

/* ── GENERATOR SECTION ── */
.generator-section {
  padding: 0 20px 64px;
}
.generator-box {
  max-width: 900px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.gen-input-area {
  padding: 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.gen-input-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  opacity: .7;
}
#ld-input {
  flex: 1;
  background: var(--input-bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 1.05rem;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  resize: none;
  height: 56px;
  line-height: 1.4;
}
#ld-input:focus {
  border-color: var(--accent);
  box-shadow: var(--glow);
}
#ld-input::placeholder { color: var(--muted); }

#ld-clear {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: .82rem;
  flex-shrink: 0;
  transition: color .2s, border-color .2s;
}
#ld-clear:hover { color: var(--red); border-color: var(--red); }

/* ── FILTER TABS ── */
.gen-filters {
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.filter-label {
  font-size: .76rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-right: 6px;
}
.js-filter-btn {
  font-size: .8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  color: var(--light);
  background: transparent;
  transition: all .2s;
  cursor: pointer;
}
.js-filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.js-filter-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ── GRID ── */
.gen-grid-wrap {
  padding: 24px;
}
.ld-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.ld-meta-row-title {
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
}
#ld-counter {
  font-size: .82rem;
  color: var(--muted);
  background: var(--surface2);
  padding: 3px 10px;
  border-radius: 100px;
}

#ld-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

/* ── CARD ── */
.ld-card {
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .15s, box-shadow .2s;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
  user-select: none;
}
.ld-card:hover {
  border-color: var(--accent);
  background: var(--card-hover-bg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.ld-card.flash {
  border-color: var(--green);
  background: rgba(16,185,129,.08);
}
.ld-card-label {
  font-size: .7rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.ld-card-result {
  font-size: 1.1rem;
  line-height: 1.4;
  word-break: break-all;
  color: var(--text);
  min-height: 1.6em;
}
.ld-copy-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--muted);
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  align-self: flex-start;
  margin-top: 4px;
  transition: color .2s, border-color .2s, background .2s;
}
.ld-copy-btn:hover, .ld-copy-btn.copied {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(168,85,247,.08);
}
.ld-copy-btn.copied { color: var(--green); border-color: var(--green); }

.ld-placeholder {
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
  padding: 40px 20px;
  grid-column: 1/-1;
}

/* ── PLATFORM QUICK LINKS ── */
.platforms-section {
  padding: 48px 20px;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-header {
  text-align: center;
  margin-bottom: 36px;
}
.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}
.section-sub {
  color: var(--light);
  font-size: .95rem;
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.platform-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 16px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  text-align: center;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.platform-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.platform-icon { font-size: 2.2rem; line-height: 1; }
.platform-name {
  font-weight: 700;
  font-size: .9rem;
}
.platform-kw {
  font-size: .75rem;
  color: var(--muted);
  font-style: italic;
}

/* ── STYLES SHOWCASE ── */
.styles-section {
  padding: 60px 20px;
}
.styles-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 700px;
  margin: 36px auto 0;
}
.style-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color .2s;
}
.style-row:hover { border-color: var(--accent); }
.style-row-name {
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  min-width: 140px;
}
.style-row-preview {
  font-size: 1.05rem;
  color: var(--text);
  flex: 1;
  text-align: center;
}
.style-row-copy {
  font-size: .75rem;
  font-weight: 600;
  color: var(--accent);
  padding: 5px 12px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: rgba(168,85,247,.08);
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
}
.style-row-copy:hover { background: rgba(168,85,247,.18); }

/* ── HOW TO USE ── */
.howto-section {
  padding: 60px 20px;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 36px auto 0;
}
.step-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 28px 22px;
  text-align: center;
}
.step-num {
  width: 44px; height: 44px;
  background: var(--accent);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.step-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.step-desc {
  font-size: .88rem;
  color: var(--light);
  line-height: 1.6;
}

/* ── INTERNAL LINKS ── */
.links-section {
  padding: 60px 20px;
}
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  max-width: 900px;
  margin: 36px auto 0;
}
.links-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: .88rem;
  font-weight: 600;
  transition: border-color .2s, color .2s;
}
.links-card:hover { border-color: var(--accent); color: var(--accent); }
.links-card-icon { font-size: 1.2rem; }

/* ── FAQ ── */
.faq-section {
  padding: 60px 20px;
  background: var(--bg2);
  border-top: 1px solid var(--border);
}
.faq-list {
  max-width: 760px;
  margin: 36px auto 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
details.faq-item {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .2s;
}
details.faq-item[open] { border-color: var(--accent); }
details.faq-item summary {
  list-style: none;
  padding: 18px 22px;
  font-size: .97rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
details.faq-item summary::-webkit-details-marker { display:none; }
details.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform .3s;
}
details.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body {
  padding: 0 22px 20px;
  font-size: .92rem;
  color: var(--light);
  line-height: 1.75;
}
.faq-body a { color: var(--accent); text-decoration: underline; }

/* ── PLATFORM PAGE HERO ── */
.plat-hero {
  padding: 56px 20px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.plat-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-grad);
  pointer-events: none;
}
.plat-icon { font-size: 3.5rem; margin-bottom: 16px; }
.plat-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -.02em;
}
.plat-hero p {
  font-size: 1rem;
  color: var(--light);
  max-width: 540px;
  margin: 0 auto;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  padding: 14px 20px;
  font-size: .8rem;
  color: var(--muted);
  max-width: 900px;
  margin: 0 auto;
}
.breadcrumb a { color: var(--accent); }
.breadcrumb span { margin: 0 6px; }

/* ── TIPS SECTION ── */
.tips-section {
  padding: 48px 20px;
}
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 32px auto 0;
}
.tip-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}
.tip-card-icon { font-size: 1.6rem; margin-bottom: 10px; }
.tip-card-title {
  font-size: .92rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.tip-card-desc {
  font-size: .84rem;
  color: var(--light);
  line-height: 1.6;
}

/* ── CONTENT ARTICLE — floating card ── */
.content-article {
  background: var(--bg);
  padding: 48px 20px 72px;
}
.article-wrap {
  max-width: 900px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 20px;
  box-shadow: 0 4px 32px rgba(124,58,237,.12), 0 2px 8px rgba(0,0,0,.12);
  padding: 48px 56px;
}
@media (max-width: 640px) {
  .article-wrap { padding: 28px 22px; border-radius: 14px; }
}
.content-article h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 36px 0 12px;
  line-height: 1.3;
}
.content-article h2:first-child { margin-top: 0; }
.content-article h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 22px 0 8px;
}
.content-article p {
  color: var(--light);
  margin-bottom: 16px;
  line-height: 1.8;
  font-size: .97rem;
}
.content-article ul, .content-article ol {
  padding-left: 22px;
  color: var(--light);
  margin-bottom: 16px;
  line-height: 1.8;
  font-size: .97rem;
}
.content-article li { margin-bottom: 6px; }
.content-article a { color: var(--accent); text-decoration: underline; }
.content-article strong { color: var(--text); font-weight: 600; }

/* ── BLOG ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 36px auto 0;
  padding: 0 20px;
}
.post-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.post-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.post-card-img {
  aspect-ratio: 16/9;
  object-fit: cover;
  width: 100%;
}
.post-card-body { padding: 20px; }
.post-card-meta {
  font-size: .75rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.post-card-title {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}
.post-card-title a { transition: color .2s; }
.post-card-title a:hover { color: var(--accent); }
.post-card-excerpt {
  font-size: .85rem;
  color: var(--light);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-footer { padding: 14px 20px; border-top: 1px solid var(--border); }
.read-more {
  font-size: .82rem;
  font-weight: 600;
  color: var(--accent);
}

/* ── SINGLE POST ── */
.single-hero {
  padding: 56px 20px 32px;
  max-width: 760px;
  margin: 0 auto;
}
.single-hero h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.3;
  margin-bottom: 14px;
}
.single-meta {
  font-size: .82rem;
  color: var(--muted);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 56px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  padding-bottom: 48px;
  align-items: start;
}
.footer-brand { max-width: 280px; }
.footer-logo-link img { height: 32px; width: auto; margin-bottom: 14px; }
.footer-tagline {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.6;
}
.footer-nav {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.footer-col { display:flex; flex-direction:column; gap:8px; }
.footer-col-title {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: .87rem;
  color: var(--muted);
  transition: color .2s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px;
  text-align: center;
  font-size: .8rem;
  color: var(--muted);
}
.footer-disclaimer { margin-top: 6px; font-size: .75rem; opacity: .7; }

/* ── 404 ── */
.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}
.error-page .error-code {
  font-size: 7rem;
  font-weight: 900;
  color: var(--accent);
  opacity: .3;
  line-height: 1;
}
.error-page h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 16px 0 12px;
}
.error-page p { color: var(--light); margin-bottom: 28px; }

/* ── CTA BANNER ── */
.cta-section {
  padding: 56px 20px;
  text-align: center;
}
.cta-box {
  max-width: 600px;
  margin: 0 auto;
  padding: 48px 36px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(168,85,247,.12), transparent);
  pointer-events: none;
}
.cta-box h2 {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -.02em;
}
.cta-box p {
  color: var(--light);
  margin-bottom: 28px;
  font-size: .95rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { gap: 32px; }
}

@media (max-width: 768px) {
  .nav-links { display:none; }
  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 62px;
    left: 0; right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    padding: 16px 20px 24px;
    border-bottom: 1px solid var(--border);
    z-index: 99;
  }
  .nav-hamburger { display:flex; }
  .btn-fill { display:none; }

  .hero { padding: 48px 16px 32px; }
  .stats-bar { gap: 20px; }
  .gen-input-area { padding: 16px; }
  .gen-grid-wrap { padding: 16px; }
  #ld-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-nav { flex-direction: column; gap: 24px; }
}

@media (max-width: 480px) {
  #ld-grid { grid-template-columns: 1fr; }
  .platforms-grid { grid-template-columns: repeat(2, 1fr); }
  .links-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════
   NEW UX COMPONENTS — multimillion upgrade
   ═══════════════════════════════════════════════════ */

/* ── TRENDING CHIPS ── */
.trending-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 auto 32px;
  max-width: 640px;
}
.chips-label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  margin-right: 2px;
}
.js-chip {
  font-size: .8rem;
  font-weight: 600;
  color: var(--light);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  cursor: pointer;
  transition: all .2s;
}
.js-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(168,85,247,.08);
  transform: translateY(-1px);
}

/* ── CHAR COUNTER ── */
.char-count {
  font-size: .75rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color .2s;
}
.char-count.warn   { color: var(--gold); }
.char-count.danger { color: var(--red); }

/* ── GENERATOR TOOLS BAR ── */
.gen-tools {
  padding: 10px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.gen-tool-btn {
  font-size: .76rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.gen-tool-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(168,85,247,.08);
}
.gen-tool-btn.is-active {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(168,85,247,.12);
}

/* ── FAVORITES BUTTON ON CARD ── */
.ld-fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s;
  z-index: 1;
}
.ld-fav-btn:hover { color: var(--red); border-color: var(--red); }
.ld-fav-btn.is-fav { color: var(--red); border-color: var(--red); background: rgba(239,68,68,.1); }

/* ── CARD CATEGORY EMOJI ── */
.ld-card-label {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-right: 32px;
}
.ld-card-cat { font-size: .9rem; }

/* ── HISTORY CHIPS ── */
.ld-history-bar {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.ld-history-bar.full {
  border-bottom: none;
  padding-bottom: 20px;
}
.ld-history-label {
  font-size: .76rem;
  font-weight: 600;
  color: var(--muted);
}
.ld-hist-chip {
  font-size: .78rem;
  color: var(--light);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 12px;
  cursor: pointer;
  transition: all .2s;
}
.ld-hist-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── TOAST NOTIFICATION ── */
.ld-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text);
  font-size: .88rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 100px;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  z-index: 9999;
  opacity: 0;
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
  white-space: nowrap;
  pointer-events: none;
}
.ld-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.ld-toast--success { border-color: var(--green); }
.ld-toast--info    { border-color: var(--accent); }

/* ── BACK-TO-TOP BUTTON ── */
#ld-back-top {
  position: fixed;
  bottom: 28px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .3s, transform .3s;
  z-index: 200;
  border: none;
}
#ld-back-top.visible {
  opacity: 1;
  transform: translateY(0);
}
#ld-back-top:hover { opacity: .88; }

/* ══════════════════════════════════════════════
   SÍMBOLOS PAGE
   ══════════════════════════════════════════════ */

/* Search input */
.sym-search-wrap {
  padding: 16px 20px 0;
}
.sym-search-wrap input {
  width: 100%;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 16px;
  color: var(--text);
  font-size: .95rem;
  outline: none;
  transition: border-color .2s;
}
.sym-search-wrap input:focus {
  border-color: var(--accent);
}

/* Symbol grid */
.sym-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 8px;
  padding: 16px 20px 20px;
}

/* Symbol button */
.sym-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  font-size: 1.5rem;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: transform .15s, border-color .15s, background .15s, box-shadow .15s;
  animation: cardIn .25s ease both;
  position: relative;
  overflow: hidden;
  user-select: none;
}
.sym-btn:hover {
  border-color: var(--accent);
  background: var(--card-hover-bg);
  transform: translateY(-2px) scale(1.06);
  box-shadow: var(--glow);
}
.sym-btn:active {
  transform: scale(.95);
}
.sym-btn.copied {
  border-color: var(--green);
  background: rgba(16,185,129,.12);
}
.sym-btn.copied::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  color: var(--green);
  background: rgba(16,185,129,.15);
  border-radius: inherit;
}

@media (max-width: 480px) {
  .sym-grid {
    grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
    gap: 6px;
  }
  .sym-btn { height: 50px; font-size: 1.35rem; }
}
