/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:   #16a34a;
  --green-d: #14532d;
  --green-l: #f0fdf4;
  --ink:     #0f172a;
  --body:    #334155;
  --muted:   #64748b;
  --border:  #e2e8f0;
  --card:    #ffffff;
  --bg:      #f8fafc;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--green-d);
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: .7rem 1.2rem;
}
.nav-logo {
  font-family: 'Lora', serif; font-size: 1.25rem; font-weight: 700;
  color: #fff; text-decoration: none; display: flex; align-items: center; gap: .4rem;
}
.nav-logo span { color: #86efac; }
.nav-logo-icon { font-size: 1.4rem; }
.nav-links { list-style: none; display: flex; gap: .2rem; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,.8); text-decoration: none; font-size: .8rem;
  font-weight: 700; padding: .35rem .7rem; border-radius: 8px; transition: all .15s;
}
.nav-links a:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav-menu-btn {
  display: none; background: none; border: none; color: #fff; cursor: pointer; padding: .3rem;
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: flex; }
}

/* ── MOBILE OVERLAY ── */
.nav-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: var(--green-d); padding: 1.2rem 1.5rem;
  flex-direction: column;
}
.nav-overlay.open { display: flex; }
.nav-overlay-close {
  align-self: flex-end; background: rgba(255,255,255,.1); border: none;
  color: #fff; font-size: 1.2rem; border-radius: 50%; width: 36px; height: 36px;
  cursor: pointer; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}
.nav-overlay-links { list-style: none; display: flex; flex-direction: column; gap: .3rem; }
.nav-overlay-links a {
  display: block; color: rgba(255,255,255,.85); text-decoration: none;
  padding: .75rem 1rem; border-radius: 10px; font-weight: 700; font-size: .95rem;
  transition: background .15s;
}
.nav-overlay-links a:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, #052e16 0%, #14532d 50%, #065f46 100%);
  padding: 3rem 1.2rem 2.5rem;
  text-align: center;
}
.hero-inner { max-width: 700px; margin: 0 auto; }
.hero-badge {
  display: inline-block; background: rgba(255,255,255,.12); color: rgba(255,255,255,.8);
  border: 1px solid rgba(255,255,255,.2); border-radius: 99px;
  padding: .3rem 1rem; font-size: .72rem; font-weight: 900;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem;
}
.hero-title {
  font-family: 'Lora', serif; font-size: clamp(2rem, 7vw, 3rem); font-weight: 700;
  color: #fff; margin-bottom: .4rem; line-height: 1.1;
}
.hero-sub { font-size: 1.1rem; font-weight: 800; color: #86efac; margin-bottom: .6rem; }
.hero-desc { color: rgba(255,255,255,.72); font-size: .88rem; line-height: 1.7; margin-bottom: 1.5rem; }
.hero-btns { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; }
.btn-hero-primary {
  background: var(--green); color: #fff; text-decoration: none;
  padding: .7rem 1.6rem; border-radius: 12px; font-weight: 900; font-size: .9rem;
  transition: background .15s;
}
.btn-hero-primary:hover { background: #15803d; }
.btn-hero-secondary {
  background: rgba(255,255,255,.12); color: #fff; text-decoration: none;
  border: 1.5px solid rgba(255,255,255,.3); padding: .7rem 1.6rem;
  border-radius: 12px; font-weight: 900; font-size: .9rem; transition: background .15s;
}
.btn-hero-secondary:hover { background: rgba(255,255,255,.2); }

/* ── CONTAINER ── */
.container {
  max-width: 960px; margin: 0 auto; padding: 1.5rem 1rem 3rem;
}

/* ── PORTAL CARDS ── */
.portal-strip {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: .75rem; margin: 1rem 0 1.5rem;
}
.portal-card {
  display: flex; flex-direction: column; gap: .3rem;
  border-radius: 14px; padding: 1.1rem 1rem 1rem;
  text-decoration: none; position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.portal-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.18); }
.pc-bhulekh { background: linear-gradient(135deg, #052e16, #16a34a); }
.pc-bhu     { background: linear-gradient(135deg, #0c1a4a, #1d4ed8); }
.pc-khasra  { background: linear-gradient(135deg, #3b1406, #b45309); }
.pc-vaad    { background: linear-gradient(135deg, #2e0a4a, #6d28d9); }
.pc-vaadsrch{ background: linear-gradient(135deg, #1a0a2e, #4c1d95); }
.pc-icon { font-size: 1.9rem; line-height: 1; margin-bottom: .1rem; }
.pc-name { font-size: .88rem; font-weight: 900; color: #fff; line-height: 1.3; }
.pc-sub  { font-size: .68rem; color: rgba(255,255,255,.65); font-weight: 700; }
.pc-use  { font-size: .68rem; color: rgba(255,255,255,.5); font-weight: 600; margin-top: .2rem; }
.pc-btn  {
  margin-top: .5rem; display: inline-flex; align-items: center; gap: .3rem;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
  border-radius: 99px; padding: .3rem .8rem; font-size: .7rem; font-weight: 900;
  color: #fff; transition: background .2s; width: fit-content;
}
.portal-card:hover .pc-btn { background: rgba(255,255,255,.25); }
.portal-head {
  display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem;
}
.portal-head-title {
  font-size: .72rem; font-weight: 900; color: var(--muted);
  letter-spacing: .08em; text-transform: uppercase;
}
.portal-head-badge {
  background: var(--green-l); color: var(--green-d); border: 1px solid #86efac;
  border-radius: 99px; font-size: .65rem; font-weight: 900; padding: .1rem .55rem;
}

/* ── TAB BUTTONS ── */
.lk-tabs { display: flex; gap: .45rem; flex-wrap: wrap; margin: 1.2rem 0 .6rem; }
.lk-btn {
  background: var(--card); border: 2px solid var(--border); border-radius: 12px;
  padding: .55rem .9rem; font-family: 'Nunito', sans-serif; font-size: .78rem;
  font-weight: 800; cursor: pointer; color: var(--body); line-height: 1.3;
  transition: all .18s; text-align: center;
}
.lk-btn .tb-e { display: block; font-size: 1.2rem; margin-bottom: 2px; }
.lk-btn .tb-n { display: block; font-size: .82rem; }
.lk-btn .tb-h { display: block; font-size: .6rem; opacity: .7; font-weight: 600; }
.lk-btn:hover { border-color: var(--green); color: var(--green-d); }
.lk-btn.active { background: var(--green); border-color: var(--green); color: #fff; }
.lk-panel { display: none; }
.lk-panel.active { display: block; }

/* ── BADGES & SECTIONS ── */
.lk-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--green-l); color: var(--green-d); border: 1.5px solid #86efac;
  border-radius: 99px; padding: .3rem 1rem; font-size: .75rem; font-weight: 900;
  margin: .4rem 0 .9rem;
}
.lk-sec { display: flex; align-items: flex-start; gap: .6rem; margin: 1.4rem 0 .7rem; }
.lk-sec .si { font-size: 1.25rem; flex-shrink: 0; padding-top: 2px; }
.lk-sec .st { font-size: .95rem; font-weight: 900; color: var(--ink); line-height: 1.3; }
.lk-sec .ss { font-size: .73rem; color: var(--muted); font-weight: 600; margin-top: .1rem; }

/* ── INFO BOXES ── */
.lk-info {
  background: var(--green-l); border: 1.5px solid #86efac;
  border-radius: 10px; padding: .8rem 1rem; margin: .6rem 0;
  font-size: .83rem; line-height: 1.75;
}
.lk-info strong { color: var(--green-d); }
.lk-warn {
  background: #fffbeb; border: 1.5px solid #fde68a;
  border-radius: 10px; padding: .8rem 1rem; margin: .6rem 0;
  font-size: .83rem; line-height: 1.75;
}
.lk-warn strong { color: #92400e; }
.lk-note {
  background: #eff6ff; border: 1.5px solid #bfdbfe;
  border-radius: 10px; padding: .8rem 1rem; margin: .6rem 0;
  font-size: .83rem; line-height: 1.75;
}
.lk-note strong { color: #1d4ed8; }

/* ── TABLES ── */
.lk-tbl { width: 100%; border-collapse: collapse; margin: .4rem 0 1rem; font-size: .83rem; }
.lk-tbl th {
  background: var(--green-d); color: #fff; padding: .55rem .75rem;
  text-align: left; font-weight: 800; font-size: .75rem;
}
.lk-tbl th:first-child { border-radius: 8px 0 0 0; }
.lk-tbl th:last-child  { border-radius: 0 8px 0 0; }
.lk-tbl td { padding: .6rem .75rem; border-bottom: 1px solid var(--border); vertical-align: top; line-height: 1.55; }
.lk-tbl tr:nth-child(even) td { background: var(--green-l); }
.lk-tbl td:first-child { font-weight: 700; color: var(--ink); }

/* ── STATE TABS ── */
.state-tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.state-btn {
  background: var(--bg); border: 2px solid var(--border); border-radius: 8px;
  padding: .35rem .85rem; font-family: 'Nunito', sans-serif; font-size: .75rem;
  font-weight: 800; cursor: pointer; transition: all .15s; color: var(--body);
}
.state-btn.active { background: var(--green); border-color: var(--green); color: #fff; }
.state-btn:hover:not(.active) { border-color: var(--green); color: var(--green-d); }

/* ── CONVERTER ── */
.converter-box {
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: 16px; padding: 1.4rem; margin: .8rem 0 1.2rem;
}
.conv-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: .75rem; align-items: end; margin-bottom: 1rem; }
.conv-field label { display: block; font-size: .72rem; font-weight: 900; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-bottom: .4rem; }
.conv-field input, .conv-field select {
  width: 100%; padding: .7rem 1rem; border: 1.5px solid var(--border);
  border-radius: 10px; font-family: 'Nunito', sans-serif; font-size: .95rem;
  font-weight: 700; color: var(--ink); background: var(--bg);
  transition: border-color .2s; outline: none;
}
.conv-field input:focus, .conv-field select:focus { border-color: var(--green); }
.conv-arrow { font-size: 1.4rem; text-align: center; padding-bottom: .6rem; color: var(--green); font-weight: 900; }
.conv-result {
  background: linear-gradient(135deg, var(--green-d), var(--green));
  border-radius: 12px; padding: 1.2rem; text-align: center; color: #fff; margin-top: .5rem;
}
.conv-result .cr-num { font-size: 1.8rem; font-weight: 900; font-family: monospace; }
.conv-result .cr-unit { font-size: .85rem; opacity: .8; font-weight: 700; margin-top: .2rem; }
.conv-btn {
  width: 100%; background: linear-gradient(135deg, var(--green), var(--green-d));
  color: #fff; border: none; border-radius: 10px; padding: .75rem;
  font-family: 'Nunito', sans-serif; font-size: .9rem; font-weight: 900;
  cursor: pointer; transition: opacity .2s; margin-top: .6rem;
}
.conv-btn:hover { opacity: .9; }
.quick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .6rem; margin: .5rem 0 1rem; }
.qc-card { background: var(--card); border: 1.5px solid var(--border); border-radius: 11px; padding: .8rem 1rem; font-size: .82rem; }
.qc-from { font-weight: 900; color: var(--ink); font-size: .88rem; }
.qc-eq   { color: var(--green); font-weight: 800; font-size: .8rem; margin-top: .2rem; line-height: 1.7; }

/* ── AREA CALCULATOR ── */
.area-box { background: var(--card); border: 1.5px solid var(--border); border-radius: 16px; padding: 1.4rem; margin: .8rem 0 1.2rem; }
.shape-btns { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.shape-btn {
  background: var(--bg); border: 2px solid var(--border); border-radius: 10px;
  padding: .55rem 1.1rem; font-family: 'Nunito', sans-serif; font-size: .82rem;
  font-weight: 800; color: var(--body); cursor: pointer; transition: all .18s;
  display: flex; align-items: center; gap: .35rem;
}
.shape-btn.active { background: var(--green); border-color: var(--green); color: #fff; }
.shape-btn:hover:not(.active) { border-color: var(--green); color: var(--green-d); }
.area-inputs { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.area-field label { display: block; font-size: .72rem; font-weight: 900; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; margin-bottom: .4rem; }
.area-field input, .area-field select {
  width: 100%; padding: .65rem .9rem; border: 1.5px solid var(--border);
  border-radius: 9px; font-family: 'Nunito', sans-serif; font-size: .92rem;
  font-weight: 700; color: var(--ink); background: var(--bg); outline: none;
  transition: border-color .2s;
}
.area-field input:focus, .area-field select:focus { border-color: var(--green); }
.area-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; margin-top: 1rem; }
.ar-card { background: var(--bg); border: 1.5px solid var(--border); border-radius: 10px; padding: .7rem .9rem; text-align: center; }
.ar-card.primary { background: var(--green-d); border-color: var(--green-d); }
.ar-card.primary .ar-val { color: #fff; }
.ar-card.primary .ar-lbl { color: rgba(255,255,255,.7); }
.ar-val { font-size: 1.05rem; font-weight: 900; color: var(--green); font-family: monospace; }
.ar-lbl { font-size: .7rem; color: var(--muted); font-weight: 700; margin-top: 1px; }
.shape-diagram { background: var(--bg); border: 1.5px solid var(--border); border-radius: 10px; padding: 1rem; text-align: center; font-size: .8rem; color: var(--muted); margin-bottom: 1rem; }
.shape-diagram .formula { font-size: .85rem; font-weight: 800; color: var(--green); margin-top: .3rem; }

/* ── CROP CALENDAR ── */
.season-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin: .5rem 0 1.2rem; }
.season-card { border-radius: 14px; padding: 1.2rem 1.3rem; }
.sc-kharif { background: linear-gradient(135deg, #065f46, #047857); }
.sc-rabi    { background: linear-gradient(135deg, #1e3a5f, #1d4ed8); }
.sc-zaid    { background: linear-gradient(135deg, #92400e, #d97706); }
.sc-season  { font-size: .65rem; font-weight: 900; color: rgba(255,255,255,.6); letter-spacing: .1em; text-transform: uppercase; margin-bottom: .3rem; }
.sc-name    { font-size: 1.15rem; font-weight: 900; color: #fff; margin-bottom: .2rem; }
.sc-months  { font-size: .78rem; color: rgba(255,255,255,.75); font-weight: 700; margin-bottom: .85rem; }
.sc-crops   { display: flex; flex-wrap: wrap; gap: .35rem; }
.sc-crop    { background: rgba(255,255,255,.15); color: #fff; font-size: .71rem; font-weight: 800; padding: .2rem .65rem; border-radius: 99px; }

/* ── GLOSSARY ── */
.gloss-search {
  width: 100%; padding: .75rem 1rem; border: 2px solid var(--border);
  border-radius: 12px; font-family: 'Nunito', sans-serif; font-size: .92rem;
  font-weight: 600; color: var(--ink); background: var(--bg); outline: none;
  margin: .4rem 0 .8rem; transition: border-color .2s;
}
.gloss-search:focus { border-color: var(--green); }
.gloss-count { font-size: .78rem; color: var(--muted); font-weight: 700; margin-bottom: .4rem; }

/* ── MUTATION STEPS ── */
.mut-steps { display: flex; flex-direction: column; gap: .7rem; margin: .5rem 0 1rem; }
.mut-step { display: flex; gap: 1rem; align-items: flex-start; background: var(--card); border: 1.5px solid var(--border); border-radius: 12px; padding: 1rem 1.1rem; }
.mut-num { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg, var(--green), var(--green-d)); color: #fff; font-size: .85rem; font-weight: 900; display: flex; align-items: center; justify-content: center; }
.mut-title { font-size: .9rem; font-weight: 900; color: var(--ink); margin-bottom: .2rem; }
.mut-desc  { font-size: .8rem; color: var(--body); line-height: 1.6; }
.mut-docs  { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .4rem; }
.mut-doc   { background: var(--green-l); border: 1px solid #86efac; color: var(--green-d); font-size: .7rem; font-weight: 800; padding: .15rem .6rem; border-radius: 99px; }

/* ── PROBLEM ACCORDION ── */
.prob-grid { display: flex; flex-direction: column; gap: .5rem; margin: .5rem 0 1rem; }
.prob-card { background: var(--card); border: 1.5px solid var(--border); border-radius: 12px; overflow: hidden; }
.prob-head { display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; cursor: pointer; user-select: none; transition: background .15s; }
.prob-head:hover { background: rgba(22,163,74,.05); }
.prob-icon { font-size: 1.25rem; flex-shrink: 0; }
.prob-title-wrap { flex: 1; }
.prob-title { font-size: .88rem; font-weight: 900; color: var(--ink); }
.prob-sub   { font-size: .68rem; color: var(--muted); font-weight: 600; margin-top: .1rem; }
.prob-arr   { font-size: .75rem; color: var(--muted); transition: transform .2s; flex-shrink: 0; }
.prob-card.open .prob-arr { transform: rotate(90deg); color: var(--green); }
.prob-body  { display: none; padding: .9rem 1rem 1rem; border-top: 1.5px solid var(--border); }
.prob-card.open .prob-body { display: block; }
.prob-card.open .prob-head { background: var(--green-l); }
.prob-step { display: flex; gap: .65rem; margin: .4rem 0; font-size: .82rem; line-height: 1.65; }
.prob-step-num { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; background: var(--green); color: #fff; font-size: .65rem; font-weight: 900; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.prob-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin: .6rem 0 .2rem; }
.prob-tag  { background: var(--green-l); border: 1px solid #86efac; color: var(--green-d); font-size: .68rem; font-weight: 800; padding: .15rem .65rem; border-radius: 99px; }
.prob-tag.orange { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.prob-tag.blue   { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }

/* ── FORMAT BOXES ── */
.fmt-grid { display: flex; flex-direction: column; gap: .6rem; margin: .5rem 0; }
.fmt-card { background: var(--card); border: 1.5px solid var(--border); border-radius: 12px; overflow: hidden; }
.fmt-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .8rem 1rem; cursor: pointer; user-select: none; }
.fmt-head:hover { background: rgba(22,163,74,.04); }
.fmt-head-left { display: flex; align-items: center; gap: .6rem; }
.fmt-head-icon { font-size: 1.1rem; }
.fmt-head-name { font-size: .88rem; font-weight: 900; color: var(--ink); }
.fmt-head-sub  { font-size: .68rem; color: var(--muted); font-weight: 600; }
.fmt-card.open .fmt-head { background: var(--green-l); border-bottom: 1.5px solid var(--border); }
.fmt-body  { display: none; }
.fmt-card.open .fmt-body { display: block; }
.fmt-pre-wrap { position: relative; }
.fmt-pre  { font-family: 'Courier New', Courier, monospace; font-size: .75rem; color: #e2e8f0; line-height: 1.9; white-space: pre-wrap; word-break: break-word; background: #0f172a; padding: 1.1rem 1rem; margin: 0; }
.fmt-copy { position: absolute; top: .5rem; right: .5rem; background: var(--green); color: #fff; border: none; border-radius: 6px; padding: .28rem .7rem; font-size: .68rem; font-weight: 900; cursor: pointer; transition: background .15s; }
.fmt-copy:hover { background: var(--green-d); }
.fmt-copy.copied { background: #f59e0b; }
.fmt-arr { font-size: .75rem; color: var(--muted); transition: transform .2s; }
.fmt-card.open .fmt-arr { transform: rotate(90deg); color: var(--green); }

/* ── LAW CARDS ── */
.law-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: .7rem; margin: .5rem 0 1rem; }
.law-card { background: var(--card); border: 1.5px solid var(--border); border-radius: 12px; padding: 1rem 1.1rem; }
.law-sec  { font-size: .65rem; font-weight: 900; color: var(--green); letter-spacing: .08em; text-transform: uppercase; margin-bottom: .25rem; }
.law-title { font-size: .9rem; font-weight: 900; color: var(--ink); margin-bottom: .4rem; line-height: 1.35; }
.law-body  { font-size: .8rem; color: var(--body); line-height: 1.75; }
.law-body strong { color: var(--green-d); }

/* ── AI CHAT ── */
.lk-ai-wrap { background: var(--card); border: 1.5px solid var(--border); border-radius: 14px; overflow: hidden; margin: .6rem 0; }
.lk-ai-head { background: linear-gradient(135deg, var(--green-d), var(--green)); padding: 1rem 1.2rem; display: flex; align-items: center; gap: .75rem; }
.lk-ai-av   { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.lk-ai-name { font-size: .95rem; font-weight: 900; color: #fff; }
.lk-ai-sub  { font-size: .7rem; color: rgba(255,255,255,.75); font-weight: 700; margin-top: .1rem; }
.lk-ai-msgs { overflow-y: auto; max-height: 340px; min-height: 120px; padding: .9rem; display: flex; flex-direction: column; gap: .6rem; background: var(--bg); }
.lk-ai-msg  { display: flex; align-items: flex-end; gap: .45rem; }
.lk-ai-msg.user { flex-direction: row-reverse; }
.lk-ai-bub  { padding: .65rem .95rem; border-radius: 12px; font-size: .82rem; line-height: 1.65; max-width: 84%; word-break: break-word; white-space: pre-wrap; }
.lk-ai-msg.bot  .lk-ai-bub { background: var(--card); border: 1px solid var(--border); color: var(--body); border-bottom-left-radius: 3px; }
.lk-ai-msg.user .lk-ai-bub { background: linear-gradient(135deg, var(--green), var(--green-d)); color: #fff; border-bottom-right-radius: 3px; }
.lk-ai-av2  { width: 24px; height: 24px; border-radius: 50%; background: var(--green-l); border: 1.5px solid #86efac; font-size: .7rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lk-ai-dots .lk-ai-d { width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; display: inline-block; animation: lk-dot .9s infinite; margin: 0 2px; }
.lk-ai-dots .lk-ai-d:nth-child(2) { animation-delay: .15s; }
.lk-ai-dots .lk-ai-d:nth-child(3) { animation-delay: .3s; }
@keyframes lk-dot { 0%,80%,100% { transform: translateY(0); } 40% { transform: translateY(-5px); } }
.lk-ai-sugs { padding: .5rem .9rem; display: flex; flex-wrap: wrap; gap: .4rem; border-top: 1px solid var(--border); background: var(--card); }
.lk-ai-sug  { font-size: .7rem; font-weight: 800; background: var(--green-l); color: var(--green-d); border: 1px solid #86efac; border-radius: 99px; padding: .3rem .8rem; cursor: pointer; transition: background .15s; white-space: nowrap; }
.lk-ai-sug:hover { background: #dcfce7; }
.lk-ai-form { display: flex; gap: .5rem; padding: .75rem; border-top: 1px solid var(--border); background: var(--card); }
.lk-ai-inp  { flex: 1; border: 1.5px solid var(--border); border-radius: 10px; padding: .65rem .9rem; font-family: 'Nunito', sans-serif; font-size: .83rem; outline: none; color: var(--ink); background: var(--bg); transition: border-color .15s; }
.lk-ai-inp:focus { border-color: var(--green); }
.lk-ai-send { background: var(--green); color: #fff; border: none; border-radius: 10px; padding: .65rem 1.1rem; font-weight: 900; font-size: .85rem; cursor: pointer; transition: background .15s; flex-shrink: 0; }
.lk-ai-send:hover { background: var(--green-d); }
.lk-ai-send:disabled { background: #94a3b8; cursor: not-allowed; }

/* ── SHARE BOX ── */
.share-box {
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 16px; padding: 1.2rem; text-align: center; margin: 2rem 0 1rem;
}
.share-box p { color: #fff; font-size: .85rem; margin-bottom: .8rem; font-weight: 700; }
.share-btn {
  display: inline-block; background: #fff; color: #128C7E; font-weight: 900; font-size: .85rem;
  padding: .65rem 1.5rem; border-radius: 99px; text-decoration: none; transition: opacity .15s;
}
.share-btn:hover { opacity: .9; }

/* ── SCROLL TOP ── */
#scrollTop {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 90;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--green-d); color: #fff; border: none;
  font-size: 1.1rem; font-weight: 900; cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,.25); transition: opacity .2s;
}
#scrollTop:hover { opacity: .85; }

/* ── FOOTER ── */
.footer { background: var(--green-d); padding: 2rem 1.2rem 1.5rem; }
.footer-inner { max-width: 960px; margin: 0 auto; text-align: center; }
.footer-brand { font-family: 'Lora', serif; font-size: 1.3rem; font-weight: 700; color: #fff; margin-bottom: .4rem; }
.footer-brand span { color: #86efac; }
.footer-desc { color: rgba(255,255,255,.65); font-size: .82rem; margin-bottom: 1rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 1rem; }
.footer-links a { color: rgba(255,255,255,.7); text-decoration: none; font-size: .78rem; font-weight: 700; padding: .25rem .6rem; border-radius: 6px; transition: background .15s; }
.footer-links a:hover { background: rgba(255,255,255,.1); color: #fff; }
.footer-copy { color: rgba(255,255,255,.4); font-size: .72rem; }

/* ── RESPONSIVE ── */
@media (max-width: 560px) {
  .portal-strip { grid-template-columns: 1fr 1fr; }
  .conv-row { grid-template-columns: 1fr; }
  .conv-arrow { display: none; }
  .law-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 1.8rem; }
  .season-grid { grid-template-columns: 1fr; }
}
@media (min-width: 561px) and (max-width: 720px) {
  .portal-strip { grid-template-columns: repeat(3, 1fr); }
}
