/* ============================================================
   VERDE WIRE — styles.css
   Recreated asset (originals were lost). Clean, responsive,
   light/dark theme. Class names match the restored templates.
   ============================================================ */

:root {
  --green: #d9363c;
  --green-600: #c0282e;
  --green-700: #a31e24;
  --green-soft: #fdf2f2;
  --ink: #0c1116;
  --bg: #ffffff;
  --bg-alt: #f4f7f6;
  --card: #ffffff;
  --fg: #16202a;
  --muted: #5b6b78;
  --border: #e3e9ec;
  --shadow: 0 10px 30px rgba(15, 40, 30, .08);
  --shadow-lg: 0 20px 50px rgba(15, 40, 30, .14);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

[data-theme="dark"] {
  --bg: #0b0f14;
  --bg-alt: #10161d;
  --card: #121a22;
  --fg: #e8eef2;
  --muted: #93a4b1;
  --border: #1f2a33;
  --green-soft: #2a1215;
  --shadow: 0 10px 30px rgba(0, 0, 0, .4);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, .55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .3s, color .3s;
}
h1, h2, h3, h4, h5 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.accent { color: var(--green); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s;
  background: var(--green); color: #fff;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); background: var(--green-600); }
.btn--primary { background: var(--green); color: #fff; }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--border); }
.btn--ghost:hover { background: var(--bg-alt); }
.btn--outline, .btn--outline-white { background: transparent; border-color: var(--green); color: var(--green); }
.btn--white, .btn--outline-white { color: #fff; border-color: rgba(255,255,255,.6); }
.btn--lg { padding: 15px 28px; font-size: 16px; }
.btn--sm { padding: 8px 16px; font-size: 13px; }
.btn-icon { padding: 10px 14px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 20px; }
.brand__mark img { width: 34px; height: 34px; border-radius: 9px; }
.brand b { color: var(--green); }
.nav { display: flex; gap: 22px; font-weight: 600; font-size: 15px; }
.nav a { color: var(--muted); transition: color .2s; }
.nav a:hover, .nav .nav__active, .nav a.active { color: var(--fg); }
.header__actions { display: flex; align-items: center; gap: 12px; }

/* Language + theme */
.lang { position: relative; }
.lang__btn { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 1px solid var(--border); border-radius: 999px; padding: 8px 12px; cursor: pointer; color: var(--fg); font-weight: 600; font-size: 14px; }
.lang__menu { position: absolute; right: 0; top: 120%; background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; min-width: 150px; display: none; }
.lang__menu.open { display: block; }
.lang__menu button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 9px 12px; border-radius: 8px; cursor: pointer; color: var(--fg); font-size: 14px; }
.lang__menu button:hover { background: var(--bg-alt); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: transparent; color: var(--fg); cursor: pointer; transition: background .2s; }
.icon-btn:hover { background: var(--bg-alt); }
.burger { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 70px 0 80px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; background: radial-gradient(900px 500px at 80% -10%, var(--green-soft), transparent 60%); pointer-events: none; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero__badge { display: inline-flex; align-items: center; gap: 8px; background: var(--green-soft); color: var(--green-700); font-weight: 600; font-size: 13px; padding: 7px 14px; border-radius: 999px; }
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.hero h1 { font-size: clamp(34px, 5vw, 56px); margin: 18px 0 14px; }
.hero__sub { color: var(--muted); font-size: 18px; max-width: 540px; }
.hero__cta { display: flex; gap: 14px; margin: 26px 0; flex-wrap: wrap; }
.hero__meta { display: flex; gap: 30px; margin-top: 10px; }
.hero__meta div { display: flex; flex-direction: column; }
.hero__meta b { font-family: var(--font-head); font-size: 26px; color: var(--fg); }
.hero__meta span { color: var(--muted); font-size: 13px; }
.hero__visual { position: relative; }
.hero__visual svg { width: 100%; height: auto; }
.node { fill: var(--green); }
.node--core { fill: var(--green-700); }
.signal { stroke: var(--green); stroke-width: 2; stroke-dasharray: 6 8; opacity: .6; animation: flow 2s linear infinite; }
.pulse { fill: var(--green); animation: pulse 2s ease-in-out infinite; }
@keyframes flow { to { stroke-dashoffset: -28; } }
@keyframes pulse { 0%,100% { opacity: .3; r: 3; } 50% { opacity: 1; r: 6; } }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section--alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.eyebrow { display: inline-block; color: var(--green); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; margin-bottom: 10px; }
.section-title { font-size: clamp(26px, 3.4vw, 38px); }
.section-lead { color: var(--muted); font-size: 17px; }

/* ---------- Product grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.product-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card__img { background: var(--green-soft); aspect-ratio: 16/10; display: grid; place-items: center; }
.product-card__img img { width: 64%; }
.product-card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card__cat { font-size: 12px; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: .05em; }
.product-card__title { font-size: 18px; }
.product-card__desc { color: var(--muted); font-size: 14px; flex: 1; }
.product-card__specs { display: flex; flex-wrap: wrap; gap: 6px; }
.product-card__spec { font-size: 12px; background: var(--bg-alt); border: 1px solid var(--border); color: var(--muted); padding: 3px 9px; border-radius: 999px; font-family: var(--font-mono); }
.product-card__actions { display: flex; gap: 10px; margin-top: 6px; }

/* ---------- Category tabs / chips ---------- */
.cat-tabs, .chips, .blog-filter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 30px; }
.cat-tab, .chip { border: 1px solid var(--border); background: var(--card); color: var(--fg); padding: 9px 18px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 14px; transition: all .2s; }
.cat-tab.active, .chip.active, .cat-tab:hover { background: var(--green); color: #fff; border-color: var(--green); }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.blog-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card__img { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--green), var(--green-700)); display: grid; place-items: center; color: #fff; font-family: var(--font-head); font-size: 22px; padding: 20px; text-align: center; }
.blog-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-card__meta { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--muted); }
.blog-card__tag { background: var(--green-soft); color: var(--green-700); font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.blog-card__title { font-size: 18px; }
.blog-card__excerpt { color: var(--muted); font-size: 14px; flex: 1; }
.blog-card__date { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #c7d2da; padding: 60px 0 30px; }
[data-theme="dark"] .footer { background: #060a0e; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer__grid h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer a { color: #c7d2da; }
.footer a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: #8a98a4; }
.footer__social, .social-links { display: flex; gap: 12px; }
.social-link { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; }

/* ---------- FAQ ---------- */
.faq-search { max-width: 520px; margin: 0 auto 24px; }
.faq-search input { width: 100%; padding: 14px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--fg); font-size: 15px; }
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card); overflow: hidden; }
.faq-item__q { width: 100%; text-align: left; background: none; border: 0; padding: 18px 20px; font-weight: 600; font-size: 16px; cursor: pointer; color: var(--fg); display: flex; justify-content: space-between; align-items: center; }
.faq-item__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item__a-inner { padding: 0 20px 18px; color: var(--muted); }
.faq-item.open .faq-item__a { max-height: 400px; }
.faq-category__title { font-family: var(--font-head); margin: 26px 0 8px; color: var(--green); }

/* ---------- Lightbox (spec) ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(5,10,14,.6); display: none; place-items: center; z-index: 100; padding: 20px; }
.lightbox.open { display: grid; }
.lightbox__inner { background: var(--card); border-radius: var(--radius); max-width: 560px; width: 100%; padding: 26px; position: relative; box-shadow: var(--shadow-lg); }
.lightbox__close { position: absolute; top: 14px; right: 14px; background: var(--bg-alt); border: 0; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 18px; color: var(--fg); }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 14px; }
.spec-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 14px; }
.spec-table td:first-child { color: var(--muted); width: 40%; }

/* ---------- About / timeline / stats ---------- */
.about__copy { max-width: 720px; }
.about__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; margin-top: 30px; }
.stat, .stat-inline { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px; }
.stat b, .dash-stat__value { font-family: var(--font-head); font-size: 30px; color: var(--green); display: block; }
.stat span { color: var(--muted); font-size: 14px; }
.cards { display: grid; gap: 18px; }
.cards--3col { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card__icon, .svc__ico { width: 48px; height: 48px; border-radius: 12px; background: var(--green-soft); display: grid; place-items: center; color: var(--green-700); margin-bottom: 14px; font-size: 22px; }
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline__item { position: relative; padding: 0 0 26px 24px; }
.timeline__dot { position: absolute; left: -26px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--green); border: 3px solid var(--bg); }
.timeline__year { font-family: var(--font-head); color: var(--green); font-weight: 700; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--muted); }
.form-group input, .form-group textarea, .form-group select { padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--card); color: var(--fg); font-size: 15px; font-family: inherit; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-info__item { display: flex; gap: 12px; align-items: center; }
.contact-info__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--green-soft); display: grid; place-items: center; color: var(--green-700); }
.contact-info__label { font-size: 12px; color: var(--muted); }
.contact-info__value { font-weight: 600; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--green), var(--green-700)); color: #fff; border-radius: 24px; padding: 50px; text-align: center; margin: 0 auto; max-width: var(--maxw); }
.cta-band h2 { color: #fff; }
.cta-band__actions { display: flex; gap: 14px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.cta-band .btn--ghost { color: #fff; border-color: rgba(255,255,255,.6); }

/* ---------- Misc ---------- */
.page-hero { padding: 90px 0 50px; text-align: center; }
.page-hero h1 { font-size: clamp(30px, 4vw, 46px); }
.logos, .map-container, .floor-plan, .cert-group, .stats-band, .dash-stats, .admin-* { /* layout helpers */ }
.logos { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; align-items: center; opacity: .8; }
.chip, .tag { font-size: 13px; }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }
.whatsapp-fab { position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg); z-index: 90; font-size: 26px; }
.danger { color: #e5484d; }
.status-badge { font-size: 11px; padding: 2px 8px; border-radius: 999px; font-weight: 700; }
.status-badge--active { background: var(--green-soft); color: var(--green-700); }
.status-badge--draft { background: #fdecec; color: #c0392b; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; }

/* ---------- AI chat widget ---------- */
.ai-chat-btn { position: fixed; right: 20px; bottom: 90px; z-index: 95; width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--green); color: #fff; font-size: 24px; cursor: pointer; box-shadow: var(--shadow-lg); display: grid; place-items: center; }
.ai-chat-box { position: fixed; right: 20px; bottom: 160px; z-index: 96; width: 340px; max-width: calc(100vw - 40px); background: var(--card); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); display: none; flex-direction: column; overflow: hidden; }
.ai-chat-box.open { display: flex; }
.ai-chat-header { background: var(--green); color: #fff; padding: 14px 16px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.ai-chat-messages { padding: 14px; height: 260px; overflow-y: auto; font-size: 14px; display: flex; flex-direction: column; gap: 10px; }
.ai-chat-messages .msg { padding: 9px 12px; border-radius: 12px; max-width: 85%; }
.ai-chat-messages .msg.bot { background: var(--bg-alt); align-self: flex-start; }
.ai-chat-messages .msg.user { background: var(--green); color: #fff; align-self: flex-end; }
.ai-chat-input { display: flex; border-top: 1px solid var(--border); }
.ai-chat-input input { flex: 1; border: 0; padding: 12px 14px; background: var(--card); color: var(--fg); font-family: inherit; }
.ai-chat-input button { border: 0; background: var(--green); color: #fff; padding: 0 18px; cursor: pointer; }

/* ---------- Admin (basic, restored) ---------- */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--ink); color: #c7d2da; padding: 22px 16px; }
.admin-sidebar__brand { font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 18px; margin-bottom: 24px; display: flex; align-items: center; gap: 8px; }
.admin-sidebar__nav { display: flex; flex-direction: column; gap: 4px; }
.admin-sidebar__link { padding: 10px 12px; border-radius: 8px; color: #c7d2da; }
.admin-sidebar__link:hover, .admin-sidebar__link.active { background: rgba(255,255,255,.08); color: #fff; }
.admin-sidebar__link svg { width: 20px; height: 20px; flex-shrink: 0; }
.admin-sidebar__brand img { width: 32px; height: 32px; border-radius: 8px; object-fit: contain; }
.admin-main { padding: 26px 30px; background: var(--bg-alt); }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.admin-topbar__title { font-family: var(--font-head); font-size: 22px; }
.admin-table-wrap { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: auto; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; font-size: 14px; }
.admin-table th { color: var(--muted); font-weight: 700; }
.admin-actions { display: flex; gap: 8px; }
.admin-form { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; max-width: 620px; }
.dash-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.dash-stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.dash-stat__label { color: var(--muted); font-size: 13px; }
.dash-stat__value { font-size: 28px; }
.dash-stat__change { font-size: 13px; color: var(--green); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 360px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .burger { display: inline-flex; }
  .mobile-nav { display: none; flex-direction: column; gap: 4px; padding: 10px 22px 18px; background: var(--bg); border-bottom: 1px solid var(--border); }
  .mobile-nav.open { display: flex; }
  .mobile-nav a { padding: 10px 0; color: var(--fg); font-weight: 600; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
  .hero__meta { gap: 18px; }
}

/* ============================================================
   ADDITIONS — missing styles (non-conflicting)
   ============================================================ */
/* Login */
.login-wrapper { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg-alt); }
.login-box { background: var(--card); border-radius: var(--radius); padding: 36px 32px; width: 100%; max-width: 400px; box-shadow: var(--shadow-lg); }
.login-box__brand { text-align: center; margin-bottom: 28px; }
.login-box__brand img { width: 56px; height: 56px; margin-bottom: 12px; }
.login-box__brand h2 { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--fg); }
.login-box__brand p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.login-form .form-group { margin-bottom: 16px; }
.login-form .form-group label { font-size: 13px; font-weight: 600; color: var(--fg); }
.login-form .form-group input { padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px; width: 100%; font-size: 14px; font-family: inherit; }
.login-form .form-group input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31,157,85,0.15); }
.login-form .btn--primary { width: 100%; padding: 12px; font-size: 15px; font-weight: 600; border-radius: 10px; }
.login-error { text-align: center; font-size: 13px; font-weight: 600; color: #e74c3c; min-height: 20px; margin-bottom: 12px; }
.remember-row { display: flex; align-items: center; gap: 8px; margin: 4px 0 20px; font-size: 13px; color: var(--muted); cursor: pointer; user-select: none; }
.remember-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--brand); }
/* Admin extras */
/* Page visibility controlled by showPage() JS function */
.dash-stat__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.dash-stat__icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; }
.admin-thumb { width: 48px; height: 36px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); }
.chart-placeholder { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; min-height: 200px; display: grid; place-items: center; color: var(--muted); font-size: 14px; }
/* Rich editor */
.rich-editor { border: 1.5px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--card); }
.rich-toolbar { display: flex; gap: 2px; padding: 8px; background: var(--bg-alt); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.rich-toolbar button { width: 32px; height: 32px; border: 1px solid transparent; border-radius: 6px; background: var(--card); cursor: pointer; display: grid; place-items: center; color: var(--muted); font-weight: 700; font-size: 13px; }
.rich-toolbar button:hover { background: var(--bg-alt); border-color: var(--border); }
.rich-area { min-height: 250px; padding: 14px; outline: none; font-family: inherit; font-size: 14px; line-height: 1.7; }
/* Chat */
.chat-fab { position: fixed; bottom: 24px; right: 24px; width: 56px; height: 56px; border-radius: 50%; background: var(--brand); color: #fff; border: none; cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow-lg); z-index: 70; font-size: 24px; transition: transform 0.3s; }
.chat-fab:hover { transform: scale(1.08); }
.chat-panel { position: fixed; bottom: 90px; right: 24px; width: 360px; max-height: 500px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 70; display: none; flex-direction: column; overflow: hidden; }
.chat-panel.open { display: flex; }
.chat-head { background: var(--brand); color: #fff; padding: 16px; display: flex; align-items: center; gap: 12px; }
.chat-head__close { margin-left: auto; background: rgba(255,255,255,0.2); border: none; color: #fff; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--bg-alt); }
.msg { max-width: 80%; padding: 10px 14px; border-radius: 14px; font-size: 13px; line-height: 1.5; }
.msg--bot { background: var(--card); border: 1px solid var(--border); align-self: flex-start; }
.msg--user { background: var(--brand); color: #fff; align-self: flex-end; }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); background: var(--card); }
.chat-input input { flex: 1; padding: 10px 12px; border: 1px solid var(--border); border-radius: 20px; font-size: 13px; }
.chat-input button { width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--brand); color: #fff; cursor: pointer; display: grid; place-items: center; }
/* Pagination */
.pagination { display: flex; justify-content: center; gap: 4px; margin-top: 32px; }
.pagination button { width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); font-weight: 600; font-size: 13px; cursor: pointer; }
.pagination button:hover { border-color: var(--brand); color: var(--brand); }
.pagination button.active { background: var(--brand); border-color: var(--brand); color: #fff; }
/* Article detail */
.article-hero { padding: 48px 0 24px; text-align: center; background: var(--bg-alt); }
.article-body { max-width: 740px; margin: 0 auto; padding: 36px 0 60px; }
.article-body h2 { font-size: 22px; margin: 32px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--border); }
.article-body p { margin-bottom: 16px; line-height: 1.75; color: var(--fg); }
/* Lightbox extras */
.lightbox__body img { max-width: 100%; border-radius: 8px; border: 1px solid var(--border); }
