/* ════════════════════════════════════════════════════════════════
   GROWTECHES — Shared Stylesheet
   Brand: warm cream + blue accent, Playfair Display + Plus Jakarta Sans
   Used by: blog, blog post, login, admin
   ════════════════════════════════════════════════════════════════ */

:root{
  --bg:#f8f6f1;
  --bg2:#ffffff;
  --surface:#f2efe9;
  --border:#e5e0d8;
  --border2:#cec9be;
  --accent:#1d4ed8;
  --accent-h:#1e40af;
  --accent2:#f97316;
  --accent3:#059669;
  --accent4:#7c3aed;
  --text:#1c1917;
  --muted:#78716c;
  --muted2:#a8a29e;
  --heading:#0c0a09;
  --sh:0 1px 3px rgba(0,0,0,.07),0 4px 16px rgba(0,0,0,.05);
  --sh-lg:0 8px 32px rgba(0,0,0,.09),0 2px 8px rgba(0,0,0,.05);
  --sh-xl:0 24px 64px rgba(0,0,0,.11);
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  background:var(--bg);color:var(--text);
  font-family:'Plus Jakarta Sans',sans-serif;font-size:16px;line-height:1.7;
  overflow-x:hidden;
}
h1,h2,h3{font-family:'Playfair Display',serif;color:var(--heading);line-height:1.12}
h4,h5,h6{font-family:'Plus Jakarta Sans',sans-serif;color:var(--heading);font-weight:700}
a{color:var(--accent);text-decoration:none}
img{max-width:100%;height:auto}

/* dot texture (matches index.php) */
body::before{content:'';position:fixed;inset:0;pointer-events:none;z-index:0;
  background-image:radial-gradient(circle,#c5c0b5 1px,transparent 1px);
  background-size:28px 28px;opacity:.35}

/* ─── NAV ──────────────────────────────────────────────────── */
.gt-nav{
  position:fixed;top:0;left:0;right:0;z-index:100;
  display:flex;align-items:center;justify-content:space-between;
  padding:0 5vw;height:72px;
  background:rgba(248,246,241,.93);backdrop-filter:blur(20px);
  border-bottom:1px solid var(--border);
}
.gt-logo{display:flex;align-items:center;gap:.6rem;
  font-family:'Playfair Display',serif;font-weight:900;font-size:1.55rem;
  color:var(--heading);letter-spacing:-.01em;line-height:1}
.gt-logo img{width:36px;height:36px;display:block}
.gt-logo em{color:var(--accent);font-style:normal}
.nav-links{display:flex;gap:2rem;align-items:center}
.nav-links a{color:var(--muted);font-size:.87rem;font-weight:600;letter-spacing:.01em;transition:color .2s}
.nav-links a:hover,.nav-links a.is-active{color:var(--text)}
.nav-links a.is-active{font-weight:700}
.nav-cta{
  background:var(--accent)!important;color:#fff!important;
  padding:.52rem 1.5rem!important;border-radius:999px!important;
  font-weight:700!important;font-size:.84rem!important;
  box-shadow:0 4px 14px rgba(29,78,216,.28);
  transition:transform .2s,box-shadow .2s!important
}
.nav-cta:hover{transform:translateY(-1px);box-shadow:0 6px 22px rgba(29,78,216,.38)!important}

.nav-burger{display:none;background:none;border:0;width:36px;height:36px;
  flex-direction:column;justify-content:center;gap:5px;cursor:pointer}
.nav-burger span{display:block;width:22px;height:2px;background:var(--text);border-radius:2px}

/* ─── PAGE CONTAINER ───────────────────────────────────────── */
.gt-page{position:relative;z-index:1;padding-top:72px}
.mw{max-width:1200px;margin:0 auto;padding:0 5vw}

/* ─── BLOG HERO ────────────────────────────────────────────── */
.blog-hero{
  position:relative;padding:96px 5vw 56px;text-align:center;overflow:hidden;
}
.blog-hero::before,.blog-hero::after{content:'';position:absolute;border-radius:50%;pointer-events:none}
.blog-hero::before{top:0;right:6%;width:480px;height:480px;
  background:radial-gradient(circle,rgba(29,78,216,.08) 0%,transparent 70%)}
.blog-hero::after{bottom:-50px;left:2%;width:360px;height:360px;
  background:radial-gradient(circle,rgba(249,115,22,.08) 0%,transparent 70%)}
.blog-hero .pill{
  display:inline-flex;align-items:center;gap:.5rem;background:#fff;
  border:1.5px solid var(--border2);padding:.38rem 1.1rem;border-radius:999px;
  font-size:.75rem;font-weight:800;color:var(--accent);letter-spacing:.05em;
  text-transform:uppercase;margin-bottom:1.5rem;box-shadow:var(--sh);
  position:relative;z-index:1;
}
.blog-hero .pill::before{content:'';width:7px;height:7px;border-radius:50%;background:var(--accent3);
  animation:blip 2s infinite}
@keyframes blip{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.35;transform:scale(.65)}}
.blog-hero h1{font-size:clamp(2.4rem,5.2vw,4.2rem);font-weight:900;letter-spacing:-.03em;
  margin-bottom:1.1rem;position:relative;z-index:1}
.blog-hero h1 .ital{font-style:italic;color:var(--accent)}
.blog-hero p.sub{font-size:1.05rem;color:var(--muted);max-width:620px;margin:0 auto;position:relative;z-index:1}

/* ─── CATEGORY CHIPS ───────────────────────────────────────── */
.cat-bar{display:flex;flex-wrap:wrap;gap:.5rem;justify-content:center;margin:2rem auto 0;max-width:880px;position:relative;z-index:1}
.cat-chip{
  display:inline-block;padding:.45rem 1.05rem;background:#fff;
  border:1.5px solid var(--border2);border-radius:999px;
  font-size:.78rem;font-weight:700;color:var(--text);
  transition:all .18s;cursor:pointer;
}
.cat-chip:hover{border-color:var(--accent);color:var(--accent);transform:translateY(-1px)}
.cat-chip.is-active{background:var(--accent);border-color:var(--accent);color:#fff;box-shadow:0 4px 14px rgba(29,78,216,.28)}

/* ─── FEATURED POST ────────────────────────────────────────── */
.featured-wrap{padding:1rem 5vw 3rem;position:relative;z-index:1}
.featured-card{
  max-width:1200px;margin:0 auto;background:#fff;border:1px solid var(--border);
  border-radius:24px;overflow:hidden;display:grid;grid-template-columns:1.1fr 1fr;
  box-shadow:var(--sh-lg);transition:transform .25s,box-shadow .25s;
}
.featured-card:hover{transform:translateY(-3px);box-shadow:var(--sh-xl)}
.featured-cover{
  background:linear-gradient(135deg,#1d4ed8 0%,#1e40af 100%);
  min-height:380px;position:relative;overflow:hidden;
}
.featured-cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.featured-cover .no-img{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  color:#fff;font-family:'Playfair Display',serif;font-size:6rem;font-weight:900;opacity:.5}
.featured-body{padding:3rem 2.6rem;display:flex;flex-direction:column;justify-content:center}
.feat-badge{display:inline-flex;align-items:center;gap:.4rem;background:rgba(249,115,22,.12);
  color:var(--accent2);font-size:.7rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;
  padding:.32rem .85rem;border-radius:999px;width:max-content;margin-bottom:1rem}
.featured-body .cat{font-size:.72rem;font-weight:800;color:var(--accent);letter-spacing:.08em;
  text-transform:uppercase;margin-bottom:.8rem}
.featured-body h2{font-size:clamp(1.6rem,2.6vw,2.4rem);font-weight:900;letter-spacing:-.02em;margin-bottom:1rem}
.featured-body h2 a{color:var(--heading)}
.featured-body h2 a:hover{color:var(--accent)}
.featured-body p.excerpt{color:var(--muted);font-size:1rem;margin-bottom:1.6rem;line-height:1.6}
.featured-body .meta{display:flex;align-items:center;gap:1rem;font-size:.82rem;color:var(--muted2);font-weight:600}
.featured-body .meta .dot{width:4px;height:4px;background:var(--muted2);border-radius:50%}
.featured-body .read-link{margin-top:1.4rem;display:inline-flex;align-items:center;gap:.4rem;
  font-weight:700;font-size:.95rem;color:var(--accent);width:max-content}
.featured-body .read-link:hover{gap:.7rem}

/* ─── POSTS GRID ───────────────────────────────────────────── */
.posts-section{padding:2rem 5vw 6rem;position:relative;z-index:1}
.posts-section .eyebrow{display:block;text-align:center;font-size:.75rem;font-weight:800;letter-spacing:.15em;
  text-transform:uppercase;color:var(--accent);margin-bottom:.6rem}
.posts-section h2{text-align:center;font-size:clamp(1.8rem,3vw,2.6rem);font-weight:900;margin-bottom:.5rem;
  letter-spacing:-.02em}
.posts-section .h-sub{text-align:center;color:var(--muted);max-width:560px;margin:0 auto 3rem}
.posts-grid{
  max-width:1200px;margin:0 auto;display:grid;
  grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:1.6rem;
}
.post-card{
  background:#fff;border:1px solid var(--border);border-radius:18px;overflow:hidden;
  display:flex;flex-direction:column;transition:transform .22s,box-shadow .22s,border-color .22s;
  box-shadow:var(--sh);
}
.post-card:hover{transform:translateY(-4px);box-shadow:var(--sh-lg);border-color:var(--border2)}
.post-cover{aspect-ratio:16/9;background:linear-gradient(135deg,#e0e7ff,#dbeafe);position:relative;overflow:hidden}
.post-cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .4s}
.post-card:hover .post-cover img{transform:scale(1.04)}
.post-cover .no-img{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  color:var(--accent);font-family:'Playfair Display',serif;font-size:3.6rem;font-weight:900;opacity:.4}
.post-body{padding:1.5rem 1.6rem 1.8rem;flex:1;display:flex;flex-direction:column}
.post-body .cat{font-size:.7rem;font-weight:800;color:var(--accent);letter-spacing:.08em;
  text-transform:uppercase;margin-bottom:.6rem}
.post-body h3{font-size:1.28rem;font-weight:900;letter-spacing:-.01em;margin-bottom:.7rem;line-height:1.2}
.post-body h3 a{color:var(--heading)}
.post-body h3 a:hover{color:var(--accent)}
.post-body p{color:var(--muted);font-size:.92rem;margin-bottom:1.2rem;flex:1;line-height:1.6}
.post-meta{display:flex;align-items:center;gap:.7rem;font-size:.76rem;color:var(--muted2);font-weight:600;
  padding-top:1.2rem;border-top:1px solid var(--border)}
.post-meta .dot{width:3px;height:3px;background:var(--muted2);border-radius:50%}

.empty-state{
  max-width:520px;margin:4rem auto;text-align:center;padding:3rem 2rem;
  background:#fff;border:1.5px dashed var(--border2);border-radius:18px;
}
.empty-state .icon{font-size:3rem;margin-bottom:1rem}
.empty-state h3{font-size:1.5rem;margin-bottom:.6rem}
.empty-state p{color:var(--muted)}

/* ═══════════════ BLOG POST PAGE ═══════════════════════════════ */
.post-hero{
  padding:80px 5vw 2.5rem;text-align:center;max-width:820px;margin:0 auto;position:relative;z-index:1;
}
.post-hero .crumbs{font-size:.78rem;color:var(--muted2);margin-bottom:1.4rem;font-weight:600}
.post-hero .crumbs a{color:var(--muted)}
.post-hero .crumbs a:hover{color:var(--accent)}
.post-hero .post-cat{display:inline-block;font-size:.72rem;font-weight:800;color:var(--accent);
  letter-spacing:.1em;text-transform:uppercase;margin-bottom:1rem;background:rgba(29,78,216,.08);
  padding:.32rem .85rem;border-radius:999px}
.post-hero h1{font-size:clamp(2.2rem,4.6vw,3.6rem);font-weight:900;letter-spacing:-.025em;
  margin-bottom:1.2rem;line-height:1.1}
.post-hero p.lede{color:var(--muted);font-size:1.1rem;line-height:1.65;max-width:680px;margin:0 auto 1.8rem}
.post-hero .meta{display:flex;justify-content:center;gap:1rem;font-size:.86rem;
  color:var(--muted);font-weight:600;align-items:center;flex-wrap:wrap}
.post-hero .meta .dot{width:4px;height:4px;background:var(--muted2);border-radius:50%}
.post-hero .author-avatar{width:36px;height:36px;border-radius:50%;background:var(--accent);
  color:#fff;display:inline-flex;align-items:center;justify-content:center;
  font-weight:800;font-size:.86rem;font-family:'Plus Jakarta Sans',sans-serif}

.post-cover-large{max-width:1080px;margin:1rem auto 3rem;padding:0 5vw;position:relative;z-index:1}
.post-cover-large img{width:100%;aspect-ratio:21/9;object-fit:cover;border-radius:24px;box-shadow:var(--sh-lg)}

.post-article{
  max-width:720px;margin:0 auto;padding:0 5vw 4rem;position:relative;z-index:1;
}
.post-article > *{margin-bottom:1.3rem}
.post-article h1,.post-article h2,.post-article h3,
.post-article h4,.post-article h5,.post-article h6{margin-top:2.4rem;margin-bottom:1rem;letter-spacing:-.015em}
.post-article h1{font-size:2.1rem;font-weight:900}
.post-article h2{font-size:1.75rem;font-weight:900}
.post-article h3{font-size:1.35rem;font-weight:800}
.post-article h4{font-size:1.15rem;font-weight:800}
.post-article p{font-size:1.08rem;line-height:1.78;color:#2d2925}
.post-article a{color:var(--accent);text-decoration:underline;text-decoration-thickness:1.5px;
  text-underline-offset:3px;font-weight:600}
.post-article a:hover{color:var(--accent-h)}
.post-article strong{font-weight:800;color:var(--heading)}
.post-article em{font-style:italic}
.post-article ul,.post-article ol{padding-left:1.6rem;margin-bottom:1.4rem}
.post-article li{margin-bottom:.5rem;font-size:1.05rem;line-height:1.7}
.post-article blockquote{
  border-left:4px solid var(--accent);padding:.5rem 0 .5rem 1.5rem;margin:2rem 0;
  font-family:'Playfair Display',serif;font-style:italic;font-size:1.3rem;color:var(--heading);
}
.post-article img{border-radius:14px;margin:1.6rem 0;box-shadow:var(--sh)}
.post-article pre,.post-article code{font-family:'JetBrains Mono','Courier New',monospace;font-size:.92rem}
.post-article code{background:var(--surface);padding:.15rem .4rem;border-radius:5px}
.post-article pre{background:#0c0a09;color:#f8f6f1;padding:1.4rem;border-radius:12px;overflow-x:auto;line-height:1.5}
.post-article pre code{background:transparent;padding:0;color:inherit}
.post-article hr{border:0;border-top:1px solid var(--border);margin:2.5rem 0}
.post-article figure{margin:1.8rem 0;text-align:center}
.post-article figcaption{font-size:.85rem;color:var(--muted);margin-top:.6rem;font-style:italic}

.share-bar{
  max-width:720px;margin:0 auto 3rem;padding:1.6rem 5vw 0;
  display:flex;justify-content:space-between;align-items:center;
  border-top:1px solid var(--border);position:relative;z-index:1;flex-wrap:wrap;gap:1rem;
}
.share-bar .lbl{font-size:.85rem;font-weight:700;color:var(--muted)}
.share-bar .btns{display:flex;gap:.5rem}
.share-bar .btns a{
  width:38px;height:38px;border-radius:50%;background:#fff;border:1px solid var(--border);
  display:inline-flex;align-items:center;justify-content:center;
  color:var(--text);font-weight:700;font-size:.95rem;transition:all .2s;
}
.share-bar .btns a:hover{background:var(--accent);color:#fff;border-color:var(--accent);transform:translateY(-2px)}

/* Related posts */
.related-wrap{background:#fff;border-top:1px solid var(--border);padding:4rem 5vw;position:relative;z-index:1}
.related-wrap .mw{max-width:1200px;margin:0 auto}
.related-wrap .eyebrow{display:block;text-align:center;font-size:.75rem;font-weight:800;
  letter-spacing:.15em;text-transform:uppercase;color:var(--accent);margin-bottom:.5rem}
.related-wrap h3{text-align:center;font-size:1.8rem;margin-bottom:2.5rem}

/* ─── FOOTER ───────────────────────────────────────────────── */
.gt-footer{background:var(--heading);color:#d6d3d1;padding:4rem 5vw 1.5rem;position:relative;z-index:1}
.foot-grid{max-width:1200px;margin:0 auto;display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:3rem;padding-bottom:3rem;border-bottom:1px solid #292524}
.foot-brand p{color:#a8a29e;font-size:.93rem;max-width:340px;margin-top:1rem;line-height:1.6}
.foot-logo-img{max-width:200px;height:auto;display:block;filter:drop-shadow(0 4px 14px rgba(29,78,216,.25))}
.foot-col h5{color:#fff;font-size:.95rem;font-weight:800;margin-bottom:1.1rem;letter-spacing:.01em}
.foot-col a{display:block;color:#a8a29e;font-size:.88rem;margin-bottom:.65rem;transition:color .2s}
.foot-col a:hover{color:#fff}
.foot-btm{max-width:1200px;margin:0 auto;display:flex;justify-content:space-between;align-items:center;
  padding-top:1.5rem;color:#78716c;font-size:.83rem;flex-wrap:wrap;gap:1rem}
.foot-btm em{color:#93c5fd;font-style:italic}
.socials{display:flex;gap:.8rem}
.socials a{width:36px;height:36px;border-radius:50%;background:#292524;display:flex;align-items:center;
  justify-content:center;color:#d6d3d1;font-weight:700;transition:background .2s,transform .2s}
.socials a:hover{background:var(--accent);color:#fff;transform:translateY(-2px)}

/* ─── FAB & POPUP (matches index.php) ───────────────────────── */
.fab{position:fixed;bottom:24px;right:24px;background:var(--accent);color:#fff;border:none;padding:.85rem 1.5rem;
  border-radius:999px;font-weight:700;font-size:.88rem;cursor:pointer;box-shadow:0 8px 28px rgba(29,78,216,.45);
  font-family:'Plus Jakarta Sans',sans-serif;z-index:50;transition:transform .2s,box-shadow .2s}
.fab:hover{transform:translateY(-2px);box-shadow:0 12px 36px rgba(29,78,216,.55)}

.overlay{position:fixed;inset:0;background:rgba(12,10,9,.72);backdrop-filter:blur(8px);
  display:none;align-items:center;justify-content:center;z-index:200;padding:1rem}
.overlay.show{display:flex;animation:fadeOver .25s ease}
@keyframes fadeOver{from{opacity:0}to{opacity:1}}
.popup{background:#fff;border-radius:18px;padding:1.7rem 1.5rem 1.4rem;max-width:380px;width:100%;position:relative;
  max-height:90vh;overflow-y:auto;box-shadow:var(--sh-xl);animation:popIn .3s cubic-bezier(.34,1.56,.64,1)}
@keyframes popIn{from{opacity:0;transform:translateY(20px) scale(.96)}to{opacity:1;transform:none}}
.pop-x{position:absolute;top:.7rem;right:.7rem;background:var(--surface);border:none;width:30px;height:30px;
  border-radius:50%;font-size:1rem;cursor:pointer;color:var(--muted);transition:background .2s,color .2s;line-height:1}
.pop-x:hover{background:var(--accent);color:#fff}
.pop-avatar{display:flex;justify-content:center;margin-bottom:.5rem}
.pop-avatar img{width:44px;height:44px;background:var(--surface);border-radius:50%;padding:6px;border:1px solid var(--border)}
.pop-tag{text-align:center;font-size:.78rem;font-weight:600;color:var(--muted);margin-bottom:.7rem;letter-spacing:.01em}
.popup h2{font-size:1.35rem;font-weight:900;margin-bottom:.35rem;letter-spacing:-.015em;text-align:center}
.psub{color:var(--muted);font-size:.82rem;margin-bottom:1.1rem;text-align:center;line-height:1.45}
.fg{margin-bottom:.55rem}
.fg input,.fg select,.fg textarea{
  width:100%;padding:.65rem .85rem;border:1.5px solid var(--border);background:var(--bg);
  border-radius:8px;font-size:.86rem;color:var(--text);
  font-family:'Plus Jakarta Sans',sans-serif;transition:border-color .2s,background .2s;
}
.fg input:focus,.fg select:focus,.fg textarea:focus{outline:none;border-color:var(--accent);background:#fff}
.fg input::placeholder,.fg textarea::placeholder{color:var(--muted2);opacity:1}
.pop-btn{width:100%;background:var(--accent);color:#fff;border:none;padding:.75rem;border-radius:8px;
  font-weight:700;font-size:.9rem;cursor:pointer;margin-top:.6rem;
  font-family:'Plus Jakarta Sans',sans-serif;transition:background .2s,transform .2s}
.pop-btn:hover:not(:disabled){background:var(--accent-h);transform:translateY(-1px)}
.pop-btn:disabled{opacity:.6;cursor:not-allowed}
.pop-note{font-size:.72rem;color:var(--muted2);text-align:center;margin-top:.7rem}
.success{display:none;text-align:center;padding:.6rem 0}
.success .tick{font-size:2.6rem;margin-bottom:.7rem}
.success h3{font-size:1.3rem;margin-bottom:.4rem;font-weight:900}
.success p{color:var(--muted);font-size:.85rem;line-height:1.5}

/* ═══════════════ LOGIN PAGE ═══════════════════════════════════ */
.login-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:88px 1rem 2rem;position:relative;z-index:1}
.login-card{background:#fff;border:1px solid var(--border);border-radius:22px;padding:2.8rem 2.4rem;
  max-width:420px;width:100%;box-shadow:var(--sh-xl)}
.login-card .login-logo{display:flex;align-items:center;gap:.6rem;justify-content:center;margin-bottom:1.6rem}
.login-card .login-logo img{width:42px;height:42px}
.login-card .login-logo span{font-family:'Playfair Display',serif;font-weight:900;font-size:1.55rem}
.login-card .login-logo em{color:var(--accent);font-style:normal}
.login-card h1{font-size:1.7rem;font-weight:900;margin-bottom:.5rem;text-align:center;letter-spacing:-.015em}
.login-card p.sub{color:var(--muted);font-size:.92rem;text-align:center;margin-bottom:1.8rem}
.login-error{
  background:rgba(220,38,38,.08);border:1px solid rgba(220,38,38,.25);color:#b91c1c;
  padding:.75rem 1rem;border-radius:10px;font-size:.86rem;font-weight:600;margin-bottom:1.2rem;
}
.login-card .pop-btn{margin-top:1rem}
.login-help{text-align:center;margin-top:1.4rem;font-size:.82rem;color:var(--muted)}
.login-help a{color:var(--accent);font-weight:600}

/* ═══════════════ ADMIN PAGES ══════════════════════════════════ */
.admin-shell{padding:96px 5vw 3rem;max-width:1200px;margin:0 auto;position:relative;z-index:1}
.admin-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem;margin-bottom:2.4rem}
.admin-head h1{font-size:2.2rem;font-weight:900;letter-spacing:-.02em}
.admin-head .user-chip{font-size:.84rem;color:var(--muted);font-weight:600}
.admin-actions{display:flex;gap:.7rem;align-items:center;flex-wrap:wrap}
.btn{padding:.65rem 1.3rem;border-radius:10px;font-weight:700;font-size:.85rem;cursor:pointer;border:none;
  transition:all .18s;font-family:'Plus Jakarta Sans',sans-serif;text-decoration:none;display:inline-flex;align-items:center;gap:.4rem;line-height:1}
.btn-primary{background:var(--accent);color:#fff;box-shadow:0 4px 14px rgba(29,78,216,.28)}
.btn-primary:hover{background:var(--accent-h);transform:translateY(-1px);color:#fff}
.btn-ghost{background:#fff;color:var(--text);border:1.5px solid var(--border2)}
.btn-ghost:hover{border-color:var(--accent);color:var(--accent)}
.btn-danger{background:rgba(220,38,38,.08);color:#b91c1c;border:1px solid rgba(220,38,38,.2)}
.btn-danger:hover{background:#b91c1c;color:#fff;border-color:#b91c1c}

.flash{padding:.85rem 1.2rem;border-radius:10px;margin-bottom:1.5rem;font-weight:600;font-size:.9rem}
.flash-success{background:rgba(5,150,105,.1);border:1px solid rgba(5,150,105,.25);color:#047857}
.flash-error  {background:rgba(220,38,38,.08);border:1px solid rgba(220,38,38,.25);color:#b91c1c}

.posts-table{background:#fff;border:1px solid var(--border);border-radius:14px;overflow:hidden;box-shadow:var(--sh)}
.posts-table table{width:100%;border-collapse:collapse}
.posts-table th,.posts-table td{text-align:left;padding:1rem 1.2rem;border-bottom:1px solid var(--border);font-size:.91rem;vertical-align:middle}
.posts-table th{background:var(--surface);font-weight:800;text-transform:uppercase;letter-spacing:.06em;font-size:.72rem;color:var(--muted)}
.posts-table tr:last-child td{border-bottom:0}
.posts-table .title-cell{font-weight:700;color:var(--heading);max-width:380px}
.posts-table .title-cell .slug-sub{display:block;font-weight:500;font-size:.78rem;color:var(--muted);margin-top:.2rem;font-family:'JetBrains Mono',monospace}
.status-pill{display:inline-block;padding:.18rem .65rem;border-radius:999px;font-size:.7rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase}
.status-pub{background:rgba(5,150,105,.12);color:#047857}
.status-draft{background:var(--surface);color:var(--muted)}
.status-feat{background:rgba(249,115,22,.14);color:#c2410c;margin-left:.3rem}
.row-actions{display:flex;gap:.4rem;flex-wrap:wrap}
.row-actions .btn{padding:.42rem .8rem;font-size:.76rem}

/* Editor */
.editor-shell{padding:96px 5vw 3rem;max-width:980px;margin:0 auto;position:relative;z-index:1}
.editor-shell h1{font-size:2rem;font-weight:900;margin-bottom:.4rem;letter-spacing:-.02em}
.editor-shell .breadcrumb{margin-bottom:1.8rem;font-size:.85rem;color:var(--muted)}
.editor-shell .breadcrumb a{color:var(--accent);font-weight:600}
.editor-card{background:#fff;border:1px solid var(--border);border-radius:16px;padding:2.2rem;box-shadow:var(--sh)}
.editor-card .fg{margin-bottom:1.4rem}
.editor-card .fg-row{display:grid;grid-template-columns:1fr 1fr;gap:1.2rem}
.editor-card .fg label{font-size:.82rem;font-weight:700;margin-bottom:.45rem;letter-spacing:.01em}
.editor-card .hint{font-size:.78rem;color:var(--muted);margin-top:.35rem}
.editor-card textarea.body{min-height:420px;font-family:'JetBrains Mono','Courier New',monospace;font-size:.93rem;line-height:1.6}
.editor-card .checkboxes{display:flex;gap:1.5rem;flex-wrap:wrap;margin-top:.4rem}
.editor-card .checkboxes label{display:flex;align-items:center;gap:.5rem;font-size:.92rem;font-weight:600;color:var(--text);cursor:pointer;margin:0}
.editor-card .checkboxes input{width:auto;margin:0}
.editor-card .actions-row{display:flex;gap:.8rem;justify-content:flex-end;margin-top:2rem;padding-top:1.6rem;border-top:1px solid var(--border);flex-wrap:wrap}
.cover-preview{margin-top:.6rem}
.cover-preview img{max-width:240px;border-radius:10px;border:1px solid var(--border)}
.cover-remove{display:inline-block;margin-top:.5rem;font-size:.82rem;color:#b91c1c;cursor:pointer;font-weight:600}

/* Quill overrides */
.ql-toolbar.ql-snow,.ql-container.ql-snow{border-color:var(--border)!important;background:#fff}
.ql-toolbar.ql-snow{border-top-left-radius:10px;border-top-right-radius:10px}
.ql-container.ql-snow{border-bottom-left-radius:10px;border-bottom-right-radius:10px;font-family:'Plus Jakarta Sans',sans-serif;font-size:1rem;min-height:380px}
.ql-editor{min-height:380px;line-height:1.7;color:var(--text)}
.ql-editor h2{font-family:'Playfair Display',serif;font-size:1.6rem;font-weight:900;margin:1.4rem 0 .8rem}
.ql-editor h3{font-family:'Playfair Display',serif;font-size:1.3rem;font-weight:800;margin:1.2rem 0 .6rem}
.ql-editor blockquote{border-left:4px solid var(--accent);padding-left:1rem;color:var(--heading);font-style:italic}

/* ═══════════════ RESPONSIVE ═══════════════════════════════════ */
@media (max-width:880px){
  .featured-card{grid-template-columns:1fr}
  .featured-cover{min-height:240px}
  .featured-body{padding:2rem 1.6rem}
  .foot-grid{grid-template-columns:1fr 1fr;gap:2rem}
}
@media (max-width:680px){
  .nav-burger{display:flex}
  .nav-links{
    display:none;position:absolute;top:72px;left:0;right:0;
    background:rgba(248,246,241,.98);backdrop-filter:blur(20px);
    flex-direction:column;align-items:stretch;padding:1rem 5vw;gap:.4rem;
    border-bottom:1px solid var(--border);box-shadow:var(--sh)
  }
  body.nav-open .nav-links{display:flex}
  .nav-links a{padding:.8rem .4rem;border-radius:8px;font-size:.95rem}
  .nav-links .nav-cta{margin-top:.4rem;text-align:center}
  .gt-logo{font-size:1.3rem}
  .gt-logo img{width:32px;height:32px}
  .blog-hero{padding:88px 5vw 32px}
  .featured-body{padding:1.6rem}
  .editor-card .fg-row{grid-template-columns:1fr}
  .editor-card{padding:1.6rem 1.4rem}
  .post-cover-large img{aspect-ratio:16/9}
  .post-article{padding:0 6vw 3rem}
  .foot-grid{grid-template-columns:1fr}
  .posts-table{overflow-x:auto}
  .posts-table table{min-width:640px}
  .admin-shell,.editor-shell{padding-top:88px}
  .fab{padding:.65rem 1.1rem;font-size:.8rem;bottom:16px;right:16px}
}
