:root {
  --color-bg: #F7F4EC;
  --color-surface: #FFFFFF;
  --color-surface-warm: #FFFDF8;
  --color-primary: #8C1D24;
  --color-primary-dark: #6B1319;
  --color-gold: #C59B43;
  --color-gold-light: #F5ECD7;
  --color-ink: #1F242D;
  --color-muted: #5C6370;
  --border-color: #E6DFCE;
  --radius: 12px;
  --shadow-sm: 0 2px 10px rgba(31, 36, 45, 0.05);
  --shadow-md: 0 8px 28px rgba(31, 36, 45, 0.08);
  --font-sans: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: "Noto Serif", Georgia, serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.is-hp-admin #publicShell { display: none !important; }
body.is-hp-admin #hpAdminShell { display: block !important; }

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); }
img { max-width: 100%; display: block; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 18px; }

/* Header & Navigation */
.site-header {
  background: linear-gradient(135deg, #5C1117 0%, #8C1D24 60%, #74161D 100%);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 4px 18px rgba(92, 17, 23, 0.25);
  border-bottom: 2px solid var(--color-gold);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}
.brand-logo { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand-logo:hover { color: #FFF8E7; }
.brand-emblem {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(197, 155, 67, 0.18);
  border: 1.5px solid var(--color-gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #F5D78E;
}
.brand-text strong { display: block; font-family: var(--font-serif); font-size: 17px; letter-spacing: 0.8px; line-height: 1.15; }
.brand-text small { display: block; font-size: 11.5px; color: #F3D999; opacity: 0.92; }

.main-nav { display: flex; align-items: center; gap: 14px; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 9px 12px; color: #FAF7F0; font-size: 14px; font-weight: 600;
  border-radius: 8px; transition: background 0.18s;
}
.nav-link:hover { background: rgba(255, 255, 255, 0.12); color: #FFE8A3; }
.has-dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: 100%; left: 0; min-width: 260px;
  background: #fff; border: 1px solid var(--border-color); border-top: 3px solid var(--color-gold);
  border-radius: 0 0 12px 12px; box-shadow: var(--shadow-md);
  list-style: none; margin: 0; padding: 8px 0;
  display: none; z-index: 950;
}
.dropdown-mega { min-width: 520px; grid-template-columns: 1fr 1fr; }
.has-dropdown:hover > .dropdown-menu { display: block; }
.has-dropdown:hover > .dropdown-mega { display: grid; }
.dropdown-menu li a {
  display: block; padding: 9px 16px; color: var(--color-ink); font-size: 13.5px; font-weight: 500;
}
.dropdown-menu li a:hover { background: var(--color-gold-light); color: var(--color-primary); }

.mobile-menu-toggle {
  display: none; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.28);
  color: #fff; font-size: 20px; padding: 6px 12px; border-radius: 8px; cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: 9px; font-size: 14px; font-weight: 600;
  border: none; cursor: pointer; transition: all 0.18s ease; font-family: inherit;
}
.btn-primary { background: linear-gradient(135deg, #9E2129, #7A151B); color: #fff; box-shadow: 0 3px 10px rgba(140, 29, 36, 0.24); }
.btn-primary:hover { background: linear-gradient(135deg, #B1252E, #8C1D24); transform: translateY(-1px); color: #fff; }
.btn-gold { background: linear-gradient(135deg, #D1A64A, #B3862D); color: #1F1708; }
.btn-gold:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--color-ink); border: 1px solid var(--border-color); }
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); background: #FFFDF8; }
.btn-outline-gold { background: rgba(197, 155, 67, 0.16); color: #FFE8A3; border: 1px solid rgba(245, 215, 142, 0.55); }
.btn-outline-gold:hover { background: rgba(197, 155, 67, 0.28); color: #fff; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 7px; }
.btn-lg { padding: 13px 24px; font-size: 15.5px; }
.btn-block { width: 100%; }
.badge-quota { background: var(--color-gold); color: #1F1708; padding: 2px 7px; border-radius: 99px; font-size: 11px; font-weight: 700; }

/* Cards & Forms */
.card {
  background: var(--color-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.card-classic {
  background: linear-gradient(180deg, #FFFDF9 0%, #FFFFFF 100%);
  border: 1.5px solid #DCCAA2;
  box-shadow: var(--shadow-md);
}
.hero-title {
  font-family: var(--font-serif);
  color: var(--color-primary);
  font-size: 25px;
  margin: 0 0 8px;
  line-height: 1.3;
}
.hero-sub { color: var(--color-muted); font-size: 14px; margin: 0 0 18px; }
.form-group { margin-bottom: 13px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: #383E4A; margin-bottom: 5px; }
.form-control {
  width: 100%; padding: 10px 12px; border: 1px solid #D7CEBA; border-radius: 8px;
  font-size: 14px; font-family: inherit; background: #fff; color: var(--color-ink);
  transition: border-color 0.18s, box-shadow 0.18s;
}
.form-control:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(140, 29, 36, 0.1); }
.form-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.form-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

/* Alerts */
.alert { padding: 12px 16px; border-radius: 9px; font-size: 14px; border: 1px solid transparent; }
.alert-success { background: #F0FDF4; border-color: #86EFAC; color: #166534; }
.alert-danger { background: #FEF2F2; border-color: #FCA5A5; color: #991B1B; }
.alert-warning { background: #FFFBEB; border-color: #FCD34D; color: #92400E; }
.alert-info { background: #EFF6FF; border-color: #93C5FD; color: #1E40AF; }

/* Home Hero & Today Calendar */
.hero-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 20px; align-items: stretch; margin-bottom: 28px; }
.today-card {
  background: linear-gradient(160deg, #FFFDF7 0%, #F9F2E2 100%);
  border: 1.5px solid var(--color-gold);
  border-radius: var(--radius);
  padding: 20px;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: var(--shadow-md);
}
.today-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px dashed #D8C59B; padding-bottom: 10px; font-size: 13.5px; }
.today-big-day { text-align: center; padding: 14px 0; }
.today-big-day .solar-num { font-family: var(--font-serif); font-size: 56px; font-weight: 700; color: var(--color-primary); line-height: 1; }
.today-lunar-box { background: #fff; border: 1px solid var(--border-color); border-radius: 10px; padding: 12px 14px; font-size: 13.5px; }
.today-lunar-box p { margin: 5px 0; }

/* Section Heading & Tools Grid */
.section-heading {
  display: flex; align-items: center; justify-content: space-between;
  margin: 28px 0 16px; padding-bottom: 10px;
  border-bottom: 2px solid var(--border-color);
}
.section-heading h2 {
  font-family: var(--font-serif); font-size: 21px; margin: 0; color: var(--color-primary);
  position: relative;
}
.section-heading h2::after {
  content: ""; position: absolute; left: 0; bottom: -12px; width: 64px; height: 2px; background: var(--color-primary);
}
.tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tool-tile {
  display: flex; gap: 12px; align-items: flex-start;
  background: #fff; border: 1px solid var(--border-color); border-radius: 11px;
  padding: 14px; color: var(--color-ink); transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}
.tool-tile:hover { border-color: var(--color-gold); transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--color-primary); }
.tool-icon {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px;
  background: var(--color-gold-light); display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.tool-tile h3 { margin: 0 0 4px; font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.tool-tile p { margin: 0; font-size: 12.5px; color: var(--color-muted); line-height: 1.45; }

/* E-Newspaper / Magazine Layout for Knowledge & Prayers */
.content-sidebar-grid { display: grid; grid-template-columns: 1fr 310px; gap: 22px; margin-top: 26px; align-items: start; }
.sidebar-sticky-box { position: sticky; top: 84px; }
.mag-featured {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px;
  background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 20px; box-shadow: var(--shadow-md);
}
.mag-featured-img { width: 100%; height: 100%; min-height: 250px; object-fit: cover; }
.mag-featured-body { padding: 22px 22px 22px 4px; display: flex; flex-direction: column; justify-content: center; }
.mag-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mag-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.mag-card {
  background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}
.mag-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.mag-thumb-wrap { aspect-ratio: 16 / 10; overflow: hidden; background: #1F242D; }
.mag-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.mag-card:hover .mag-thumb-wrap img { transform: scale(1.04); }
.mag-card-body { padding: 15px; flex: 1; display: flex; flex-direction: column; }
.article-cat {
  display: inline-block; font-size: 11.5px; font-weight: 700; text-transform: uppercase;
  color: var(--color-primary); background: #FBECEF; padding: 3px 9px; border-radius: 6px; margin-bottom: 8px;
}
.mag-card h3 { margin: 0 0 8px; font-family: var(--font-serif); font-size: 16.5px; line-height: 1.38; }
.mag-card h3 a { color: var(--color-ink); }
.mag-card h3 a:hover { color: var(--color-primary); }
.article-excerpt { font-size: 13.5px; color: var(--color-muted); margin: 0 0 12px; flex: 1; }
.article-meta { display: flex; justify-content: space-between; font-size: 12px; color: #7C8492; border-top: 1px solid #F1ECE0; padding-top: 8px; }
.article-body { font-size: 15.5px; line-height: 1.85; color: #242933; }
.article-body h2 { font-family: var(--font-serif); color: var(--color-primary); margin-top: 24px; font-size: 20px; }
.article-body figure { margin: 18px 0; text-align: center; }
.article-body figure img { border-radius: 10px; margin: 0 auto; max-height: 460px; }
.article-body figcaption { font-size: 12.5px; color: var(--color-muted); margin-top: 6px; font-style: italic; }

/* Interactive Monthly Calendar (Lịch Vạn Niên) */
.cal-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; align-items: start; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 12px; }
.cal-dow { text-align: center; font-size: 12.5px; font-weight: 700; color: var(--color-muted); padding: 6px 0; }
.cal-cell {
  background: #fff; border: 1px solid var(--border-color); border-radius: 9px;
  padding: 8px 4px; text-align: center; cursor: pointer; transition: all 0.15s; min-height: 62px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; position: relative;
}
.cal-cell:hover { border-color: var(--color-primary); background: #FFFBF2; }
.cal-cell.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.cal-cell.active .cal-lunar { color: #FFE8A3; }
.cal-cell.today { border: 2px solid var(--color-gold); }
.cal-cell.empty { background: transparent; border: none; cursor: default; }
.cal-solar { font-size: 16px; font-weight: 700; line-height: 1.1; }
.cal-lunar { font-size: 11px; color: var(--color-muted); margin-top: 3px; }
.cal-dot { width: 6px; height: 6px; border-radius: 50%; position: absolute; top: 5px; right: 5px; }
.cal-dot.good { background: #16A34A; }
.cal-dot.bad { background: #CBD5E1; }

/* Tu Vi Chart & Paywall Teaser */
.tuvi-grid-wrap { position: relative; background: #FFFDF7; border: 2px solid var(--color-gold); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-md); }
.tuvi-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, minmax(150px, auto)); position: relative; }
.tuvi-cell { border: 1px solid #DFD2B5; padding: 8px; font-size: 12px; background: #FFFDF9; cursor: pointer; transition: background 0.15s; position: relative; }
.tuvi-cell:hover { background: #FEF6E4; }
.tuvi-cell.is-selected { background: #FCEEEE; box-shadow: inset 0 0 0 2px var(--color-primary); }
.tuvi-center { grid-column: 2 / 4; grid-row: 2 / 4; padding: 16px; background: linear-gradient(160deg, #FFFDF8, #FBF4E4); border: 1px solid #D9C396; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.tuvi-svg-overlay { position: absolute; inset: 0; pointer-events: none; z-index: 5; width: 100%; height: 100%; }
.palace-head { display: flex; justify-content: space-between; font-weight: 700; border-bottom: 1px dashed #E5D9BF; padding-bottom: 3px; margin-bottom: 5px; font-size: 11.5px; }
.palace-name { color: var(--color-primary); text-transform: uppercase; }
.star-main { font-weight: 700; font-size: 12.5px; color: #8C1D24; margin-bottom: 2px; }
.star-sub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; font-size: 11px; margin-top: 4px; }
.star-good { color: #166534; }
.star-bad { color: #991B1B; }
.palace-foot { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--color-muted); margin-top: 6px; padding-top: 3px; border-top: 1px dotted #E5D9BF; }

.teaser-lock-box { position: relative; margin-top: 16px; border: 1.5px solid var(--color-gold); border-radius: var(--radius); overflow: hidden; background: #FFFDF8; padding: 20px; }
.teaser-blur { filter: blur(4px); user-select: none; pointer-events: none; opacity: 0.65; }
.teaser-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(255, 253, 248, 0.72); padding: 20px; text-align: center;
}

.ai-box {
  margin-top: 20px; background: linear-gradient(135deg, #FFFDF8, #F9F0DF);
  border: 1.5px solid var(--color-gold); border-radius: var(--radius); padding: 22px;
}
.ai-response-content { background: #fff; border: 1px solid var(--border-color); border-radius: 10px; padding: 18px; margin-top: 14px; line-height: 1.8; }

/* Numerology 3x3 Grid */
.num-grid-3x3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 280px; margin: 12px 0; }
.num-cell { background: #FFFDF7; border: 1.5px solid var(--color-gold); border-radius: 9px; padding: 14px 8px; text-align: center; font-weight: 700; font-size: 18px; color: var(--color-primary); min-height: 58px; display: flex; align-items: center; justify-content: center; }
.num-cell.empty { background: #F5F2EA; border-color: #E5DEC9; color: #B8B2A6; font-weight: 400; font-size: 14px; }

/* Ads */
.ad-slot-wrapper { margin: 16px auto; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ad-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.8px; color: #94A3B8; margin-bottom: 4px; }
.ad-slot-inner { width: 100%; display: flex; justify-content: center; }
.ad-banner-link { display: inline-block; max-width: 100%; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-sm); }
.ad-banner-img { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.ad-placeholder-box { width: 100%; border: 1px dashed #D1C5A8; background: #FAF6EC; color: #8A7F68; padding: 18px; border-radius: 8px; font-size: 12.5px; }
.ad-sticky-anchor { position: fixed; bottom: 0; left: 0; right: 0; background: rgba(255,255,255,0.96); border-top: 1px solid var(--border-color); z-index: 800; padding: 6px; text-align: center; }
.ad-anchor-close { position: absolute; top: -24px; right: 8px; background: #1F242D; color: #fff; border: none; width: 24px; height: 24px; border-radius: 50%; cursor: pointer; }

/* Footer */
.site-footer { background: #181C24; color: #E2E8F0; margin-top: 44px; padding-top: 38px; border-top: 3px solid var(--color-gold); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 28px; padding-bottom: 28px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-serif); font-size: 18px; color: #F5D78E; margin-bottom: 10px; }
.footer-col h4 { color: #F5D78E; font-size: 15px; margin: 0 0 12px; font-family: var(--font-serif); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 7px; font-size: 13.8px; }
.footer-links a { color: #CBD5E1; }
.footer-links a:hover { color: #FFE8A3; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 16px 0; text-align: center; font-size: 13px; color: #94A3B8; }

/* ==================== DEDICATED /hp ADMIN SHELL ==================== */
.hp-login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1E232E 0%, #3A1318 100%); padding: 20px;
}
.hp-login-card {
  width: 100%; max-width: 420px; background: #fff; border-radius: 14px;
  padding: 32px; box-shadow: 0 20px 50px rgba(0,0,0,0.35); border-top: 4px solid var(--color-gold);
}
.hp-layout { display: flex; min-height: 100vh; background: #F1F4F9; }
.hp-sidebar {
  width: 256px; flex-shrink: 0; background: #181D27; color: #CBD5E1;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.hp-side-brand {
  padding: 20px 18px; border-bottom: 1px solid rgba(255,255,255,0.08);
  font-family: var(--font-serif); color: #F5D78E; font-size: 17px; font-weight: 700;
  display: flex; align-items: center; gap: 10px;
}
.hp-nav { list-style: none; padding: 12px 10px; margin: 0; flex: 1; }
.hp-nav li { margin-bottom: 4px; }
.hp-nav button {
  width: 100%; text-align: left; background: transparent; border: none; color: #CBD5E1;
  padding: 11px 14px; border-radius: 9px; font-size: 14px; font-weight: 500;
  cursor: pointer; display: flex; align-items: center; gap: 10px; font-family: inherit; transition: all 0.15s;
}
.hp-nav button:hover { background: rgba(255,255,255,0.08); color: #fff; }
.hp-nav button.active { background: var(--color-primary); color: #fff; font-weight: 600; }
.hp-side-foot { padding: 14px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; flex-direction: column; gap: 8px; }
.hp-main { flex: 1; padding: 24px 28px; min-width: 0; }
.hp-topbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid #DCE2EC;
}
.hp-topbar h1 { margin: 0; font-size: 22px; color: #181D27; font-family: var(--font-serif); }
.hp-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.hp-stat-card { background: #fff; border: 1px solid #E2E8F0; border-radius: 11px; padding: 18px; }
.hp-stat-card small { color: #64748B; font-size: 12.5px; font-weight: 600; display: block; }
.hp-stat-card strong { font-size: 26px; color: var(--color-primary); display: block; margin-top: 4px; }
.hp-table { width: 100%; border-collapse: collapse; font-size: 13.5px; background: #fff; border-radius: 10px; overflow: hidden; }
.hp-table th, .hp-table td { padding: 10px 12px; border-bottom: 1px solid #E2E8F0; text-align: left; }
.hp-table th { background: #F8FAFC; color: #475569; font-weight: 600; }
.rte-toolbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; background: #F8FAFC; border: 1px solid #D7CEBA; border-bottom: none; border-radius: 8px 8px 0 0; }
.rte-toolbar button { padding: 5px 10px; font-size: 12.5px; background: #fff; border: 1px solid #CBD5E1; border-radius: 5px; cursor: pointer; font-weight: 600; }
.rte-toolbar button:hover { background: #EFF6FF; border-color: #3B82F6; }
.rte-editor { min-height: 220px; padding: 14px; border: 1px solid #D7CEBA; border-radius: 0 0 8px 8px; background: #fff; outline: none; font-size: 14.5px; line-height: 1.75; }
.rte-editor img { max-width: 100%; border-radius: 8px; margin: 10px 0; }
.thumb-preview { width: 180px; height: 112px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border-color); margin-top: 8px; }

/* Responsive */
@media (max-width: 960px) {
  .mobile-menu-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #5C1117; flex-direction: column; align-items: stretch; padding: 14px;
    border-bottom: 2px solid var(--color-gold);
  }
  .main-nav.open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .dropdown-menu, .dropdown-mega { position: static; min-width: 100%; box-shadow: none; display: none; grid-template-columns: 1fr; }
  .has-dropdown.submenu-open > .dropdown-menu { display: block; }
  .hero-grid, .cal-layout, .content-sidebar-grid, .mag-featured, .footer-grid { grid-template-columns: 1fr; }
  .mag-featured-body { padding: 18px; }
  .tools-grid, .mag-grid, .hp-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid-4, .form-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hp-layout { flex-direction: column; }
  .hp-sidebar { width: 100%; height: auto; position: static; }
}
@media (max-width: 600px) {
  .tools-grid, .mag-grid, .mag-grid-2, .form-grid-2, .form-grid-3, .form-grid-4, .hp-stats-grid { grid-template-columns: 1fr; }
  .tuvi-grid { font-size: 11px; }
}
