/* ================================================================
   GEOPONOS — Premium AgriOS Design System
   Glassmorphism · Dark/Light · Animations · Modern
   ================================================================ */

/* ─── FONTS ────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ─── CSS VARIABLES ─────────────────────────────────────────── */
:root {
  /* Brand */
  --brand:     #00C851;
  --brand-d:   #009A3E;
  --brand-l:   #E8FFF1;
  --brand-2:   #0057FF;
  --accent:    #FF6B35;

  /* Light mode */
  --bg:        #F0F4F0;
  --surface:   #FFFFFF;
  --surface-2: #F7FAF7;
  --border:    rgba(0,0,0,.08);
  --text:      #0D1F0D;
  --text-2:    #4A5E4A;
  --text-3:    #8A9E8A;

  /* Status */
  --g:   #00C851; --gm: #007A30; --gp: #E8FFF1; --gd: #004D1F;
  --rd:  #E53935; --rdl: #FFF0F0;
  --am:  #F59E0B; --amd: #92400E; --aml: #FFFBEB;
  --bl:  #2563EB; --bll: #EFF6FF;

  /* Layout */
  --r:   12px;
  --r-l: 20px;
  --sh:  0 2px 12px rgba(0,0,0,.06);
  --sh-h:0 8px 32px rgba(0,0,0,.12);
  --nav: 64px;
  --side:240px;

  /* Animations */
  --ease: cubic-bezier(.4,0,.2,1);
  --fast: 150ms;
  --mid:  300ms;
  --slow: 500ms;
}

/* ─── DARK MODE ─────────────────────────────────────────────── */
[data-theme="dark"] {
  --bg:        #0A0F0A;
  --surface:   #141A14;
  --surface-2: #1C241C;
  --border:    rgba(255,255,255,.08);
  --text:      #E8F5E8;
  --text-2:    #9DB89D;
  --text-3:    #5C7A5C;
  --sh:        0 2px 12px rgba(0,0,0,.3);
  --sh-h:      0 8px 32px rgba(0,0,0,.5);
  --brand-l:   rgba(0,200,81,.1);
  --gp:        rgba(0,200,81,.1);
  --rdl:       rgba(229,57,53,.1);
  --aml:       rgba(245,158,11,.1);
  --bll:       rgba(37,99,235,.1);
}

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

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100dvh;
  overflow-x: hidden;
  transition: background var(--mid) var(--ease), color var(--mid) var(--ease);
}

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

/* ─── TOPBAR ────────────────────────────────────────────────── */
.topbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
  padding: 0 20px;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--mid) var(--ease);
}

.logo {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px; font-weight: 700;
  color: var(--brand-d);
  text-decoration: none;
}
.logo .logo-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--brand), var(--brand-d));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}

.topbar-weather {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 20px; padding: 4px 12px;
  cursor: pointer; transition: all var(--fast);
}
.topbar-weather:hover { background: var(--brand-l); border-color: var(--brand); }

.topbar-spacer { flex: 1; }

.topbar-user {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500;
}
.avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 12px;
}

/* Dark mode toggle */
.theme-btn {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: all var(--fast);
}
.theme-btn:hover { background: var(--brand-l); border-color: var(--brand); }

/* ─── SIDEBAR ───────────────────────────────────────────────── */
.sidebar {
  position: fixed; top: var(--nav); left: 0;
  width: var(--side); height: calc(100dvh - var(--nav));
  background: var(--surface);
  border-right: 1px solid var(--border);
  overflow-y: auto; overflow-x: hidden;
  padding: 12px 8px;
  z-index: 90;
  transition: transform var(--mid) var(--ease), width var(--mid) var(--ease);
}

.sidebar-section {
  font-size: 10px; font-weight: 700; letter-spacing: .08em;
  color: var(--text-3); text-transform: uppercase;
  padding: 16px 8px 4px;
}

.sidebar-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 13px; font-weight: 500; color: var(--text-2);
  cursor: pointer; transition: all var(--fast);
  text-decoration: none; border: none; background: none; width: 100%;
  position: relative;
}
.sidebar-item:hover { background: var(--surface-2); color: var(--text); }
.sidebar-item.active {
  background: var(--brand-l);
  color: var(--brand-d);
  font-weight: 600;
}
.sidebar-item.active::before {
  content: '';
  position: absolute; left: -8px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 20px;
  background: var(--brand);
  border-radius: 0 3px 3px 0;
}
.sidebar-icon { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; }
.sidebar-badge {
  margin-left: auto;
  background: var(--rd); color: white;
  border-radius: 10px; padding: 1px 6px;
  font-size: 10px; font-weight: 700;
}

/* ─── MAIN CONTENT ──────────────────────────────────────────── */
.main {
  margin-left: var(--side);
  margin-top: var(--nav);
  padding: 24px;
  min-height: calc(100dvh - var(--nav));
  transition: margin var(--mid) var(--ease);
}

/* ─── PAGE HEADER ───────────────────────────────────────────── */
.ph {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 24px; gap: 12px; flex-wrap: wrap;
}
.ptitle {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px; font-weight: 700; color: var(--text);
  line-height: 1.2;
}
.psub { font-size: 13px; color: var(--text-3); margin-top: 2px; }

/* ─── CARDS ─────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  padding: 20px;
  box-shadow: var(--sh);
  transition: box-shadow var(--mid) var(--ease), transform var(--fast) var(--ease);
}
.card:hover { box-shadow: var(--sh-h); }
.card-t {
  font-size: 13px; font-weight: 700; color: var(--text-2);
  text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: 14px;
}

/* Glass card */
.card-glass {
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.8);
}
[data-theme="dark"] .card-glass {
  background: rgba(20,26,20,.7);
  border-color: rgba(255,255,255,.1);
}

/* Stat card */
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: var(--r);
  padding: 16px 20px;
  transition: all var(--fast);
}
.stat:hover { transform: translateY(-2px); box-shadow: var(--sh-h); }
.sv {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px; font-weight: 800; color: var(--brand-d);
  line-height: 1;
}
.sl { font-size: 12px; color: var(--text-3); margin-top: 4px; font-weight: 500; }

/* Field card */
.fc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--brand);
  border-radius: var(--r-l);
  padding: 16px;
  cursor: pointer; position: relative; overflow: hidden;
  transition: all var(--mid) var(--ease);
}
.fc:hover { transform: translateY(-4px); box-shadow: var(--sh-h); }
.fc::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--brand-l), transparent);
  opacity: 0; transition: opacity var(--mid);
}
.fc:hover::after { opacity: 1; }

/* ─── GRIDS ─────────────────────────────────────────────────── */
.grid-s {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px; margin-bottom: 20px;
}
.grid-f {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

/* ─── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 10px 18px;
  border: none; border-radius: 10px;
  font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all var(--fast) var(--ease);
  text-decoration: none; white-space: nowrap;
  position: relative; overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: white; opacity: 0;
  transition: opacity var(--fast);
}
.btn:active::after { opacity: .15; }

.btn-p {
  background: linear-gradient(135deg, var(--brand), var(--brand-d));
  color: white;
  box-shadow: 0 2px 8px rgba(0,200,81,.3);
}
.btn-p:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,200,81,.4);
}
.btn-s {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
}
.btn-s:hover { background: var(--surface); border-color: var(--brand); color: var(--brand-d); }
.btn-d {
  background: var(--rdl);
  border: 1px solid rgba(229,57,53,.2);
  color: var(--rd);
}
.btn-d:hover { background: var(--rd); color: white; }
.btn-sm { padding: 5px 12px; font-size: 12px; border-radius: 8px; }
.btn-ic { padding: 6px; width: 32px; height: 32px; border-radius: 8px; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }

/* ─── INPUTS & FORMS ────────────────────────────────────────── */
.fi {
  width: 100%; padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit; font-size: 13px; color: var(--text);
  transition: all var(--fast);
  outline: none;
  appearance: none;
}
.fi:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0,200,81,.1);
}
.fi::placeholder { color: var(--text-3); }

.fl {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--text-2); margin-bottom: 5px;
}

.fg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fgg { display: flex; flex-direction: column; }
.fgg.full { grid-column: 1 / -1; }

/* ─── TABLES ────────────────────────────────────────────────── */
.tw { overflow-x: auto; border-radius: var(--r); }
.tbl {
  width: 100%; border-collapse: collapse;
  font-size: 13px;
}
.tbl thead th {
  background: var(--surface-2);
  padding: 10px 14px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-3);
  text-align: left;
  position: sticky; top: 0;
}
.tbl tbody tr {
  border-top: 1px solid var(--border);
  transition: background var(--fast);
}
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl td { padding: 12px 14px; }

/* ─── TAGS ──────────────────────────────────────────────────── */
.tag {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 6px;
  font-size: 11px; font-weight: 600;
}
.tg  { background: var(--gp);  color: var(--gm); }
.tr  { background: var(--rdl); color: var(--rd); }
.ta  { background: var(--aml); color: var(--amd); }
.tb  { background: var(--bll); color: var(--bl); }
.badge { background: var(--rd); color: white; border-radius: 10px; padding: 1px 6px; font-size: 10px; font-weight: 700; }

/* ─── TABS ──────────────────────────────────────────────────── */
.tabs {
  display: flex; gap: 4px;
  background: var(--surface-2);
  border-radius: 12px; padding: 4px;
  margin-bottom: 16px; overflow-x: auto;
}
.tab {
  padding: 7px 16px; border-radius: 9px;
  font-size: 13px; font-weight: 500; color: var(--text-2);
  cursor: pointer; white-space: nowrap;
  transition: all var(--fast);
}
.tab:hover { color: var(--text); }
.tab.on {
  background: var(--surface);
  color: var(--brand-d);
  font-weight: 700;
  box-shadow: var(--sh);
}

/* ─── CHIPS ─────────────────────────────────────────────────── */
.chip {
  display: inline-flex; align-items: center;
  padding: 5px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 500; color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer; transition: all var(--fast);
}
.chip:hover, .chip.on {
  background: var(--brand-l);
  border-color: var(--brand);
  color: var(--brand-d);
  font-weight: 600;
}

/* ─── BOTTOM NAV (mobile) ───────────────────────────────────── */
.bnav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  height: 64px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(12px);
  z-index: 100;
  padding: 0 8px;
  display: flex; align-items: center;
  box-shadow: 0 -4px 20px rgba(0,0,0,.06);
}
.bn {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  padding: 6px 4px; border: none; background: none;
  color: var(--text-3); font-size: 10px; font-weight: 500;
  cursor: pointer; border-radius: 12px;
  transition: all var(--fast); font-family: inherit;
}
.bn span { font-size: 20px; line-height: 1; }
.bn:hover, .bn.active {
  color: var(--brand-d);
  background: var(--brand-l);
}

/* ─── MODAL ─────────────────────────────────────────────────── */
.mov {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; padding: 16px;
  animation: fadeIn var(--fast) var(--ease);
}
.mbox {
  background: var(--surface);
  border-radius: 20px;
  padding: 28px;
  width: 100%; max-width: 520px; max-height: 90dvh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,.2);
  animation: slideUp var(--mid) var(--ease);
}
.mbox h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px; font-weight: 700;
  margin-bottom: 20px; color: var(--text);
}
.mft {
  display: flex; gap: 8px; justify-content: flex-end;
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ─── LOADING ───────────────────────────────────────────────── */
.sp {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin .6s linear infinite;
}

/* Skeleton loading */
.skel {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

/* ─── FLOATING AI BUTTON ────────────────────────────────────── */
.ai-fab {
  position: fixed; bottom: 80px; right: 20px;
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,200,81,.4);
  z-index: 200;
  transition: all var(--fast);
  border: none; animation: pulse 3s ease infinite;
}
.ai-fab:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(0,200,81,.5); }

/* ─── DETAILS (accordion) ───────────────────────────────────── */
details { border-radius: var(--r); overflow: hidden; }
details summary { list-style: none; }
details summary::-webkit-details-marker { display: none; }

/* ─── EMPTY STATE ───────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 48px 24px;
  color: var(--text-3);
}
.empty-state .icon { font-size: 48px; margin-bottom: 12px; }
.empty-state .title { font-size: 16px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.empty-state .sub { font-size: 13px; margin-bottom: 16px; }

/* ─── ANIMATIONS ────────────────────────────────────────────── */
@keyframes fadeIn    { from{opacity:0} to{opacity:1} }
@keyframes slideUp   { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }
@keyframes slideIn   { from{opacity:0;transform:translateX(-16px)} to{opacity:1;transform:translateX(0)} }
@keyframes spin      { to{transform:rotate(360deg)} }
@keyframes shimmer   { to{background-position:-200% 0} }
@keyframes pulse     { 0%,100%{box-shadow:0 4px 20px rgba(0,200,81,.4)} 50%{box-shadow:0 4px 32px rgba(0,200,81,.7)} }
@keyframes fadeInUp  { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }

.fade-in    { animation: fadeIn var(--mid) var(--ease) both; }
.slide-in   { animation: slideIn var(--mid) var(--ease) both; }
.fade-in-up { animation: fadeInUp var(--mid) var(--ease) both; }

/* Stagger children */
.stagger > * { animation: fadeInUp var(--mid) var(--ease) both; }
.stagger > *:nth-child(1) { animation-delay: 0ms; }
.stagger > *:nth-child(2) { animation-delay: 60ms; }
.stagger > *:nth-child(3) { animation-delay: 120ms; }
.stagger > *:nth-child(4) { animation-delay: 180ms; }

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --side: 0px; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; padding: 16px; padding-bottom: 80px; }
  .bnav { display: flex; }
  .topbar { padding: 0 12px; }
  .grid-s { grid-template-columns: repeat(2, 1fr); }
  .fg2 { grid-template-columns: 1fr; }
  .mbox { padding: 20px; }
}

@media (min-width: 1400px) {
  :root { --side: 260px; }
  .main { padding: 28px 32px; }
}

/* ─── UTILITY ───────────────────────────────────────────────── */
.ld { display:flex; align-items:center; gap:8px; color:var(--text-3); font-size:13px; padding:20px; }
.tw { overflow-x:auto; }

/* ================================================================
   PANEL SYSTEM — Show/Hide (ΚΡΙΣΙΜΟ)
   ================================================================ */
.panel { display: none !important; }
.panel.on { display: block !important; }

/* ================================================================
   SIDEBAR ITEMS
   ================================================================ */
#sidebar { overflow-y: auto; overflow-x: hidden; }

.sb-sec {
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  color: var(--text-3); text-transform: uppercase;
  padding: 16px 12px 4px; margin-top: 4px;
}

.sbi {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: var(--text-2);
  cursor: pointer; transition: all var(--fast);
  text-decoration: none; border: none; background: none;
  width: 100%; box-sizing: border-box;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border-left: 3px solid transparent;
  margin-bottom: 1px;
}
.sbi:hover { background: var(--surface-2); color: var(--text); }
.sbi.on {
  background: var(--brand-l);
  color: var(--brand-d);
  font-weight: 600;
  border-left-color: var(--brand);
}
.sbi.sub { padding-left: 28px; font-size: 12px; }
.sbi.fi  { padding-left: 28px; font-size: 12px; border-left-width: 3px; }

/* Group header */
.sbg {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; border-radius: 8px;
  font-size: 12px; font-weight: 700; color: var(--text-2);
  cursor: pointer; transition: all var(--fast);
  text-transform: uppercase; letter-spacing: .04em;
  margin-top: 4px;
}
.sbg:hover { background: var(--surface-2); color: var(--text); }
.sbg .arr { transition: transform var(--fast); font-size: 14px; }
.sbg.open .arr { transform: rotate(90deg); }

/* Group items container */
.sbs { display: none; }
.sbs.open { display: block; }

/* Badge */
.bdg {
  background: var(--rd); color: white;
  border-radius: 10px; padding: 1px 6px;
  font-size: 10px; font-weight: 700; margin-left: auto;
}

/* Sidebar footer */
#sbSub { font-size: 11px; color: var(--text-3); padding: 4px 12px; }

/* ================================================================
   SIDEBAR HEADER
   ================================================================ */
.sb-header {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 12px 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}
.sb-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px; font-weight: 700; color: var(--brand-d);
}
.sb-user {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; margin-top: 4px;
}

/* ================================================================
   CONTENT AREA
   ================================================================ */
#content {
  padding: 20px;
  min-height: calc(100dvh - var(--nav));
}

/* ================================================================
   AUTH PAGE
   ================================================================ */
#authPage {
  display: flex; align-items: center; justify-content: center;
  min-height: 100dvh;
  background: linear-gradient(135deg, #0a1a0a 0%, #0d2b0d 50%, #0a1a0a 100%);
}
.auth-box {
  background: var(--surface);
  border-radius: 20px; padding: 32px;
  width: 100%; max-width: 400px;
  box-shadow: 0 24px 80px rgba(0,0,0,.3);
}

/* ================================================================
   LOADING
   ================================================================ */
.ld {
  display: flex; align-items: center; gap: 10px;
  padding: 24px; color: var(--text-3); font-size: 13px;
}

/* ================================================================
   RESPONSIVE FIXES
   ================================================================ */
@media (max-width: 768px) {
  #sidebar {
    position: fixed; top: var(--nav); left: 0;
    width: 260px; height: calc(100dvh - var(--nav));
    transform: translateX(-100%);
    z-index: 200;
    transition: transform var(--mid) var(--ease);
    box-shadow: none;
  }
  #sidebar.mob {
    transform: translateX(0);
    box-shadow: 4px 0 20px rgba(0,0,0,.2);
  }
  #content { padding: 14px; padding-bottom: 72px; }
  .grid-s { grid-template-columns: 1fr 1fr; }
}


/* ── Topbar layout fix: tb-* classes (reconstructed index.html) ── */
.tb-r { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.tb-user {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; cursor: pointer;
  padding: 4px 8px; border-radius: 8px; transition: background var(--fast);
}
.tb-user:hover { background: var(--surface-2); }
.tb-weather {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-2);
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 20px; padding: 4px 12px; cursor: pointer;
}
.tb-frost {
  font-size: 11px; font-weight: 700; color: #1565C0;
  background: #E3F2FD; border-radius: 14px; padding: 3px 10px;
}
.av {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 12px; flex-shrink: 0;
}
.hbg {
  width: 36px; height: 36px; border: 1px solid var(--border);
  border-radius: 8px; background: var(--surface-2); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
}
.hbg span { display: block; width: 16px; height: 2px; background: var(--text-2); border-radius: 2px; }
