﻿:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --ink: #111827;
  --text: #344054;
  --muted: #667085;
  --line: #e4e9f2;
  --line-strong: #d7deea;
  --primary: #0f9f8c;
  --primary-dark: #087a6b;
  --primary-soft: #e8fbf7;
  --info: #2563eb;
  --danger: #e11d48;
  --danger-soft: #fff1f3;
  --dark: #07111f;
  --dark-2: #0c1a2c;
  --shadow: 0 18px 42px -32px rgba(15, 23, 42, .38);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(rgba(15, 23, 42, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, .035) 1px, transparent 1px),
    radial-gradient(circle at 18% 0, rgba(15, 159, 140, .10), transparent 28rem),
    var(--bg);
  background-size: 36px 36px, 36px 36px, auto, auto;
  font-family: Poppins, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 76px;
  padding: 0 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.96), rgba(248,252,255,.92)),
    rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 14px 34px -32px rgba(7,17,31,.55);
  backdrop-filter: blur(18px);
}
.topbar:after {
  content: "";
  position: absolute;
  left: 6vw;
  right: 6vw;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(15,159,140,.45), rgba(37,99,235,.35), transparent);
}
.brand, .side-logo { display: flex; align-items: center; gap: 12px; font-weight: 900; color: var(--ink); }
.topbar .brand {
  min-height: 54px;
  padding: 6px 12px 6px 6px;
  border-radius: 18px;
  transition: .18s ease;
}
.topbar .brand:hover { background: #fff; box-shadow: var(--shadow); }
.topbar .brand > span:not(.brand-mark) {
  font-size: 18px;
  letter-spacing: -.01em;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #2563eb);
  box-shadow: 0 14px 28px -20px var(--primary);
}
.logo-mark svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav, .actions, .top-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.topbar .nav {
  padding: 7px;
  border: 1px solid rgba(228,233,242,.82);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 18px 40px -36px rgba(7,17,31,.52);
}
.nav a, .button {
  min-height: 40px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  transition: .18s ease;
}
.nav a:hover, .button:hover { transform: translateY(-1px); }
.nav a:hover, .button.ghost, .button:not(.primary) { background: #fff; border-color: var(--line); }
.topbar .nav a {
  min-height: 38px;
  border-radius: 999px;
  padding: 0 16px;
}
.topbar .nav a:not(.nav-cta):hover { background: var(--primary-soft); color: var(--primary-dark); }
.nav-cta, .button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #2563eb);
  border-color: transparent;
  box-shadow: 0 14px 26px -18px rgba(15, 159, 140, .7);
}
.topbar .nav-cta {
  color: #fff;
  background: linear-gradient(135deg, #0f9f8c, #2563eb);
  border-color: transparent;
  box-shadow: 0 16px 30px -18px rgba(37, 99, 235, .9);
}
.topbar .nav-cta:hover {
  color: #fff;
  background: linear-gradient(135deg, #087a6b, #1d4ed8);
}
.button.wide { width: 100%; }
.button.danger {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: rgba(225, 29, 72, .22);
}
.button.danger:hover { background: #ffe4e9; }

.hero, .section, .dashboard { width: min(1120px, 92vw); margin: 0 auto; }
.landing-hero, .landing-section {
  width: min(1180px, 92vw);
  margin: 0 auto;
}
.landing-section.section-white, .landing-section.section-tint {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: max(4vw, calc((100vw - 1180px) / 2));
  padding-right: max(4vw, calc((100vw - 1180px) / 2));
}
.landing-section.section-white { background: rgba(255,255,255,.72); }
.landing-section.section-tint {
  background:
    radial-gradient(circle at 12% 0, rgba(15,159,140,.08), transparent 24rem),
    #eef5fb;
}
.landing-hero {
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  gap: 44px;
  align-items: center;
  padding: 54px 0 40px;
}
.hero-copy h1 { margin: 12px 0; font-size: clamp(48px, 7vw, 86px); line-height: .96; }
.hero-copy p { max-width: 620px; font-size: 17px; }
.hero-points { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.hero-points span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-weight: 800;
}
.hero-illustration { min-width: 0; }
.shop-scene {
  position: relative;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(#e6edf5 1px, transparent 1px),
    linear-gradient(90deg, #e6edf5 1px, transparent 1px),
    radial-gradient(circle at 78% 18%, rgba(15,159,140,.18), transparent 14rem),
    #f8fbff;
  background-size: 42px 42px, 42px 42px, auto, auto;
  box-shadow: 0 28px 80px -46px rgba(7,17,31,.55);
}
.float-icon {
  position: absolute;
  z-index: 2;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.9);
  color: var(--primary-dark);
  box-shadow: 0 18px 45px -30px rgba(7,17,31,.55);
  animation: floatIcon 4s ease-in-out infinite;
}
.float-icon svg, .landing-band i svg, .step-card i svg, .module-card i svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fi-one { left: 34px; top: 122px; }
.fi-two { right: 38px; top: 150px; animation-delay: .7s; }
.fi-three { right: 84px; bottom: 86px; animation-delay: 1.2s; }
@keyframes floatIcon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.sun {
  position: absolute;
  right: 64px;
  top: 52px;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #facc15;
  box-shadow: 0 16px 40px -24px #f59e0b;
}
.shop {
  position: absolute;
  left: 92px;
  right: 92px;
  bottom: 94px;
}
.awning {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 72px;
  overflow: hidden;
  border-radius: 24px 24px 10px 10px;
  box-shadow: 0 16px 36px -28px rgba(7,17,31,.45);
}
.awning span:nth-child(odd) { background: var(--primary); }
.awning span:nth-child(even) { background: #fff; }
.shop-body {
  position: relative;
  height: 230px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 28px 28px;
  background: #fff;
}
.door {
  position: absolute;
  left: 42px;
  bottom: 0;
  width: 92px;
  height: 152px;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(180deg, var(--primary), #2563eb);
}
.window-box {
  position: absolute;
  right: 44px;
  top: 52px;
  width: 150px;
  height: 90px;
  border-radius: 20px;
  background: #eefdf9;
  border: 1px solid rgba(15,159,140,.22);
}
.sign-board {
  position: absolute;
  left: 156px;
  top: 58px;
  color: var(--ink);
  font-size: 38px;
  font-weight: 900;
}
.product-basket {
  position: absolute;
  left: 54px;
  bottom: 48px;
  width: 122px;
  height: 70px;
  border-radius: 20px;
  background: #0f8f83;
}
.product-basket span {
  position: absolute;
  top: -20px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f59e0b;
}
.product-basket span:nth-child(1) { left: 12px; }
.product-basket span:nth-child(2) { left: 42px; background: #22c55e; }
.product-basket span:nth-child(3) { left: 72px; background: #ef4444; }
.person {
  position: absolute;
  bottom: 54px;
  width: 48px;
  height: 88px;
  border-radius: 24px 24px 14px 14px;
  background: #2563eb;
}
.person:before {
  content: "";
  position: absolute;
  left: 10px;
  top: -32px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f2c9a1;
}
.person.one { right: 72px; }
.person.two { right: 134px; transform: scale(.88); background: var(--primary); }
.growth-card {
  position: absolute;
  left: 44px;
  top: 46px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--primary-dark);
  box-shadow: var(--shadow);
}
.growth-card svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.growth-card b { color: var(--ink); }
.landing-section { padding: 34px 0; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feature-card span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--primary-soft);
  color: var(--primary-dark);
}
.feature-card svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-card h3 { margin-top: 16px; }
.public-articles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.landing-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
  box-shadow: var(--shadow);
}
.landing-band div {
  padding: 22px;
  background: #fff;
  transition: .18s ease;
}
.landing-band div:hover, .feature-card:hover, .step-card:hover, .module-card:hover {
  transform: translateY(-3px);
  border-color: rgba(15,159,140,.32);
}
.landing-band i, .step-card i, .module-card i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary-dark);
}
.landing-band strong { display: block; color: var(--ink); font-size: 22px; }
.landing-band span { display: block; margin-top: 6px; color: var(--muted); font-weight: 700; }
.split-info, .module-section, .faq-section {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 28px;
  align-items: start;
}
.split-info h2, .module-copy h2, .faq-section h2, .final-cta h2 {
  margin-top: 0;
  font-size: clamp(28px, 4vw, 46px);
}
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.feature-list div, .module-card, .faq-list details {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  transition: .18s ease;
}
.feature-list b, .module-card strong { display: block; color: var(--ink); font-size: 16px; }
.feature-list span, .module-card span { display: block; margin-top: 8px; color: var(--muted); line-height: 1.6; }
.step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.step-card span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
}
.step-card i { margin-bottom: 16px; }
.module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.faq-list { display: grid; gap: 12px; }
.faq-list summary {
  position: relative;
  padding-right: 36px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}
.faq-list summary:after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  transform: translateY(-50%);
}
.faq-list details[open] summary:after { content: "-"; }
.faq-list p { margin: 12px 0 0; }
.final-cta {
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid rgba(15,159,140,.22);
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 20%, rgba(37,99,235,.12), transparent 22rem),
    linear-gradient(135deg, #ffffff, #eefdf9);
  box-shadow: var(--shadow);
}
.final-cta p { max-width: 660px; font-size: 16px; }
.hero {
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 42px;
  align-items: center;
  padding: 54px 0;
}
.section { padding: 34px 0; }
.eyebrow {
  margin: 0 0 8px;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h1, h2, h3 { color: var(--ink); letter-spacing: 0; }
h1 { margin: 14px 0; font-size: clamp(38px, 6vw, 70px); line-height: 1.04; }
h2 { margin: 0 0 16px; font-size: clamp(24px, 3vw, 34px); line-height: 1.18; }
h3 { margin: 0 0 8px; font-size: 18px; }
p { margin: 0 0 12px; color: var(--muted); line-height: 1.7; }

.card, .form-card, .welcome-panel > div {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.card:hover { border-color: rgba(15, 159, 140, .30); }
.preview-grid, .form-grid, .cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid { align-items: end; }
.form-grid > button[type="submit"], .stack-form > button[type="submit"], .card > button[type="submit"] {
  justify-self: end;
  margin-top: 8px;
}
.form-grid > button[type="submit"] { grid-column: 1 / -1; }
.span-full { grid-column: 1 / -1; }
.stack-form { display: grid; gap: 4px; }
.align-end { align-self: end; }
.check-row {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
}
.check-row input { width: auto; }
.metric {
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}
.metric span { color: var(--muted); font-weight: 700; }
.metric strong { display: block; margin-top: 8px; color: var(--ink); font-size: 28px; }
.article-card img { width: 100%; height: 190px; object-fit: cover; border-radius: var(--radius); margin-bottom: 16px; }
.pill, .mini-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 159, 140, .22);
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.form-wrap { width: min(460px, 92vw); margin: 70px auto; }
label { display: block; margin: 14px 0 6px; color: var(--text); font-size: 13px; font-weight: 800; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(15, 159, 140, .12); }
input[type="file"] { padding: 10px; }
input[type="checkbox"] { accent-color: var(--primary); }
textarea { min-height: 104px; resize: vertical; }
.alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 159, 140, .24);
  border-radius: var(--radius);
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 700;
}
.error { border-color: rgba(225, 29, 72, .22); background: var(--danger-soft); color: var(--danger); }

.footer { padding: 34px 6vw; border-top: 1px solid var(--line); color: var(--muted); text-align: center; }

.auth-page { min-height: 100vh; display: grid; grid-template-columns: .82fr 1fr; background: var(--bg); }
.auth-back {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 30;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  background: rgba(255,255,255,.12);
  color: #fff;
  backdrop-filter: blur(12px);
}
.auth-back svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.auth-art {
  position: relative;
  min-height: 100vh;
  padding: 56px 48px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: linear-gradient(160deg, var(--dark), #0b2336 58%, #07372f);
}
.auth-art .brand, .auth-copy h1 { color: #fff; }
.auth-art > .brand { margin-left: 34px; }
.auth-art p, .auth-list, .auth-art blockquote { color: rgba(255,255,255,.72); }
.auth-copy { max-width: 460px; }
.auth-copy h1 span { color: #58e2cf; }
.auth-list { display: grid; gap: 12px; margin-top: 28px; font-weight: 800; }
.auth-list div { position: relative; padding-left: 34px; }
.auth-list div:before { content: "OK"; position: absolute; left: 0; top: 0; color: #58e2cf; font-size: 11px; font-weight: 900; }
.auth-art blockquote { margin: 0; padding-left: 16px; border-left: 3px solid rgba(88, 226, 207, .45); }
.auth-form { min-height: 100vh; display: grid; place-items: center; padding: 34px; }
.form-card.slim { width: min(420px, 100%); }
.auth-form .form-card {
  padding: 30px;
  border-radius: 18px;
}
.auth-form .actions {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 22px;
}
.auth-form .button { width: 100%; }
.auth-form input { min-height: 48px; }

.app-shell { min-height: 100vh; display: flex; background: var(--bg); }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 280px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--dark), var(--dark-2));
  border-right: 1px solid rgba(255,255,255,.08);
}
.side-logo {
  min-height: 72px;
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 12px;
  align-items: center;
  padding: 0 20px;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.side-logo .brand-mark {
  grid-row: 1 / span 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  font-weight: 1000;
}
.side-logo strong { align-self: end; }
.side-logo small { align-self: start; color: #8bded2; font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.side-nav { flex: 1; overflow: auto; padding: 18px 12px; display: grid; align-content: start; gap: 6px; }
.side-nav a {
  min-height: 46px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: var(--radius);
  color: #aab7c8;
  font-weight: 800;
}
.side-nav a span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: transparent;
  color: #c7d2e1;
}
.side-nav svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.side-nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.side-nav a.active { color: #fff; background: rgba(15, 159, 140, .20); box-shadow: inset 3px 0 0 #58e2cf; }
.side-nav a.active span { color: #58e2cf; background: rgba(88, 226, 207, .12); }
.side-user {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 10px;
  align-items: center;
  margin: 14px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  background: rgba(255,255,255,.06);
}
.avatar, .chat-avatar {
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  font-weight: 900;
}
.avatar { width: 38px; height: 38px; }
.side-user strong, .side-user small { display: block; max-width: 132px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user strong { color: #fff; }
.side-user small { color: #aab7c8; font-size: 11px; }
.side-user a { color: #ff9aae; font-size: 12px; font-weight: 900; }

.workspace-main { margin-left: 280px; min-height: 100vh; width: calc(100% - 280px); }
.workspace-top {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 28px;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.workspace-top h1 { margin: 0; font-size: 22px; }
.workspace-content { width: min(1440px, 100%); margin: 0 auto; padding: 28px; }
.mt-section { margin-top: 18px; }
.welcome-panel { display: grid; grid-template-columns: 1fr 360px; gap: 18px; margin-bottom: 18px; }
.promo-tile strong, .promo-tile span { display: block; }
.promo-tile a { display: inline-flex; margin-top: 6px; color: var(--primary-dark); font-weight: 900; }
.workspace-main .cards.three { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.stat-card {
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.stat-card h2 {
  margin: 6px 0;
  font-size: 24px;
  overflow-wrap: anywhere;
}
.stat-card small {
  color: var(--muted);
  font-weight: 700;
}
.stat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.stat-head p {
  margin: 0;
  color: #98a2b3;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.stat-head span, .button.icon-only {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  border: 1px solid rgba(15, 159, 140, .16);
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
}
.stat-head svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, .95fr);
  gap: 18px;
}
.home-grid.bottom { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chart-card, .activity-card { min-height: 420px; }
.section-title.compact h2 { margin-bottom: 4px; font-size: 18px; }
.section-title.compact p { margin: 0; font-size: 13px; }
.chart-legend {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin: 18px 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.income-dot, .expense-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.income-dot { background: #0f8f83; }
.expense-dot { background: #f43f6c; }
.activity-list { display: grid; gap: 10px; margin-top: 20px; }
.activity-row {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px;
  border: 1px solid #eef2f6;
  border-radius: var(--radius);
  background: #fbfcfe;
}
.activity-row strong, .activity-row small { display: block; }
.activity-row strong { color: var(--ink); font-size: 13px; }
.activity-row small { color: #98a2b3; font-size: 11px; font-weight: 800; }
.activity-row b { white-space: nowrap; font-size: 13px; }
.amount-in { color: var(--primary-dark); }
.amount-out { color: var(--danger); }
.home-list { display: grid; gap: 12px; margin-top: 18px; }
.home-list-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.home-list-item.active { border-color: rgba(15,159,140,.35); background: #fbfffd; box-shadow: inset 3px 0 0 var(--primary); }
.home-list-item strong, .home-list-item span { display: block; }
.home-list-item span { color: var(--primary-dark); font-size: 12px; font-weight: 800; }
.home-list-item p { margin: 6px 0 0; font-size: 13px; }
.home-article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.home-article img { width: 100%; height: 128px; object-fit: cover; border-radius: var(--radius); margin-bottom: 12px; }
.home-article strong { display: block; margin-top: 8px; color: var(--ink); line-height: 1.35; }
.content-grid { align-items: stretch; }
.finance-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.finance-total {
  min-height: 126px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.finance-total p {
  margin: 0 0 12px;
  color: #98a2b3;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.finance-total h2 { margin: 0 0 10px; font-size: 28px; }
.finance-total small { color: var(--muted); font-weight: 700; }
.finance-total.income h2 { color: var(--primary-dark); }
.finance-total.expense h2 { color: var(--danger); }
.finance-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
}
.finance-form-card { padding: 0; overflow: hidden; }
.finance-form-card > .section-title { padding: 22px; border-bottom: 1px solid var(--line); }
.finance-form {
  display: grid;
  gap: 8px;
  padding: 22px;
}
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.finance-form textarea { min-height: 92px; }
.finance-form button[type="submit"] { justify-self: stretch; margin-top: 10px; }
.finance-chart-card {
  min-height: 0;
  overflow: hidden;
  height: 100%;
}
.month-filter {
  width: 170px;
  min-height: 44px;
}
.finance-visual {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: 18px;
  margin-top: 18px;
  align-items: center;
}
.chart-label {
  margin: 0 0 10px;
  color: #98a2b3;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.chart-legend.finance { justify-content: center; margin: 0 0 8px; }
#financeChart { width: 100%; height: 240px; display: block; }
.donut-wrap {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-width: 0;
}
.donut {
  width: 170px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#f59e0b 0 62%, #0f8f83 62% 82%, #3b82f6 82% 100%);
  position: relative;
}
.donut:before {
  content: "";
  position: absolute;
  inset: 31px;
  border-radius: 50%;
  background: #fff;
}
.donut span {
  position: relative;
  z-index: 1;
  color: #98a2b3;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.donut b { color: var(--ink); font-size: 17px; text-transform: none; }
.donut-list {
  display: grid;
  gap: 9px;
  min-width: 0;
}
.donut-list span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #eef2f6;
  border-radius: var(--radius);
  background: #fbfcfe;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.donut-list i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.info-dot { background: #3b82f6; }
.warn-dot { background: #f59e0b; }
.item-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.item-card > p { overflow-wrap: anywhere; }
.item-card form { margin-top: auto; }
.card-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: auto; }

.section-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
#cashChart { width: 100%; height: 220px; display: block; margin-top: 8px; }
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; min-width: 760px; border-collapse: collapse; overflow: hidden; background: #fff; }
th, td { padding: 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); background: var(--surface-soft); font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
td { color: var(--text); }
td form { margin: 0; }
.quick-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0 12px;
  color: #98a2b3;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.quick-filter a {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  text-transform: none;
}
.quick-filter a.active {
  color: #fff;
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}
.finance-table { min-width: 980px; }
.finance-table th:last-child, .finance-table td:last-child { text-align: right; }
.finance-table th, .finance-table td {
  padding: 18px 20px;
  vertical-align: middle;
}
.finance-table tr:hover td { background: #fbfcfe; }
.type-badge {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 900;
}
.type-badge.income {
  color: var(--primary-dark);
  background: var(--primary-soft);
  border: 1px solid rgba(15, 159, 140, .20);
}
.type-badge.expense {
  color: var(--danger);
  background: var(--danger-soft);
  border: 1px solid rgba(225, 29, 72, .18);
}
.row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.icon-btn {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  transition: .18s ease;
}
.icon-btn:hover { color: var(--primary-dark); border-color: rgba(15, 159, 140, .32); background: var(--primary-soft); }
.icon-btn.danger {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: rgba(225, 29, 72, .18);
}
.icon-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tiny-icon {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: .18s ease;
}
.tiny-icon:hover { color: var(--primary-dark); background: #fff; border-color: var(--line); }
.tiny-icon.danger { color: var(--danger); }
.tiny-icon.danger:hover { background: var(--danger-soft); border-color: rgba(225,29,72,.18); }
.tiny-icon.save { color: var(--primary-dark); background: var(--primary-soft); border-color: rgba(15,159,140,.20); }
.tiny-icon svg, .send-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mini-actions {
  width: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  justify-self: end;
}
.mini-actions form { margin: 0; }
.mini-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-weight: 800;
}
.mini-button.danger { color: var(--danger); background: var(--danger-soft); border-color: rgba(225,29,72,.18); }
.manage-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.manage-toolbar h2 { margin: 0 0 4px; font-size: 22px; }
.manage-toolbar p { margin: 0; }
.toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 1;
  flex-wrap: wrap;
}
.search-input { width: min(240px, 100%); }
.modal-details { position: relative; }
.modal-details summary { list-style: none; }
.modal-details summary::-webkit-details-marker { display: none; }
.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 17, 31, .42);
  backdrop-filter: blur(5px);
}
.modal-card {
  width: min(560px, 94vw);
  max-height: min(86vh, 760px);
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 90px -42px rgba(7, 17, 31, .75);
}
.modal-card.small { width: min(420px, 94vw); }
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.modal-head h2 { margin: 0; font-size: 22px; }
.modal-close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  background: #fff;
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.design-article-card { padding: 0; overflow: hidden; }
.design-article-card img { width: 100%; height: 190px; object-fit: cover; margin: 0; border-radius: 0; }
.article-body { padding: 18px; display: grid; gap: 10px; }
.article-body h3 { margin: 0; line-height: 1.25; }
.meta-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tag {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef4ff;
  color: #2563eb;
  font-size: 11px;
  font-weight: 900;
}
.tag.success { color: var(--primary-dark); background: var(--primary-soft); }
.split-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.side-form-card .section-title { margin-bottom: 18px; }
.business-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.business-grid.wide { grid-template-columns: repeat(2, minmax(360px, 1fr)); }
.business-card { position: relative; min-height: 150px; display: grid; grid-template-columns: 116px 1fr; gap: 16px; }
.business-card.mine { display: block; border-color: rgba(15,159,140,.28); background: #fbfffd; }
.business-card img { width: 116px; height: 116px; object-fit: cover; border-radius: 12px; }
.business-card h3 { margin: 0 0 4px; }
.business-card strong, .business-card small { display: block; color: var(--muted); font-size: 12px; }
.business-card p { margin: 6px 0; font-size: 13px; }
.distance {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef4ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
}
.profile-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.profile-card { display: grid; gap: 16px; }
.profile-head { display: flex; align-items: center; gap: 14px; }
.profile-head h2 { margin: 0; }
.avatar.xl { width: 58px; height: 58px; font-size: 18px; }
.profile-info {
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface-soft);
}
.profile-info span { color: var(--muted); font-size: 12px; font-weight: 900; }
.profile-info strong { display: block; margin-top: 8px; color: var(--ink); }
.profile-info p { margin: 2px 0 0; }
.profile-form-card > .section-title { margin-bottom: 18px; }
.check-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}
.check-panel input { width: auto; }
.empty-state {
  margin-top: 14px;
  color: var(--muted);
  font-weight: 700;
}

.chat-shell {
  min-height: calc(100vh - 140px);
  display: grid;
  grid-template-columns: 340px 1fr;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.chat-list-panel { padding: 16px; border-right: 1px solid var(--line); }
.mini-form {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}
.mini-form label { margin: 0; font-size: 12px; }
.mini-form input { padding: 10px 11px; }
.chat-segment { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; background: #eef3f8; border-radius: var(--radius); margin-bottom: 14px; }
.chat-segment a { padding: 11px; text-align: center; border-radius: var(--radius); color: var(--muted); font-weight: 900; }
.chat-segment a.active { background: #fff; color: var(--ink); box-shadow: 0 12px 24px -20px rgba(15,23,42,.5); }
.chat-list { display: grid; gap: 8px; margin-top: 16px; }
.chat-contact-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius);
}
.chat-contact-row.active, .chat-contact-row:hover { background: var(--primary-soft); }
.chat-contact-row.editing { grid-template-columns: 1fr; }
.chat-contact {
  min-width: 0;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.chat-contact > span:last-child { min-width: 0; }
.chat-contact strong, .chat-contact small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-contact small { color: var(--muted); font-size: 12px; }
.chat-avatar { width: 46px; height: 46px; }
.chat-avatar.big { width: 52px; height: 52px; }
.chat-window { display: grid; grid-template-rows: auto 1fr auto; min-width: 0; }
.chat-head { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.chat-head h2 { margin: 0; font-size: 20px; }
.chat-head .pill { margin-left: auto; }
.chat-messages { padding: 28px 40px; display: flex; flex-direction: column; gap: 16px; background: #f7fafc; }
.bubble { max-width: 68%; padding: 14px 16px; border-radius: var(--radius); background: #fff; box-shadow: 0 12px 32px -26px rgba(15,23,42,.45); }
.bubble.me { align-self: flex-end; background: var(--primary-dark); color: #fff; }
.bubble.me p, .bubble.me small { color: #fff; }
.bubble strong { color: var(--primary-dark); font-size: 12px; }
.bubble p { margin: 4px 0; color: var(--text); }
.bubble small { color: var(--muted); font-weight: 800; }
.chat-list-panel > .modal-details { margin-bottom: 12px; }
.chat-edit-form {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(15,159,140,.20);
  border-radius: 12px;
  background: #fff;
}
.chat-edit-form input { padding: 9px 10px; }
.edit-actions { display: flex; justify-content: flex-end; gap: 6px; }
.chat-compose { display: grid; grid-template-columns: 1fr 46px; gap: 12px; padding: 16px; border-top: 1px solid var(--line); }
.chat-compose textarea { min-height: 48px; max-height: 120px; }
.send-btn {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 14px;
  background: var(--primary-dark);
  color: #fff;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .landing-hero { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing-band, .step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-info, .module-section, .faq-section { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-grid, .home-grid.bottom { grid-template-columns: 1fr; }
  .finance-summary { grid-template-columns: 1fr; }
  .finance-grid, .finance-visual { grid-template-columns: 1fr; }
  .donut-wrap { grid-template-columns: 1fr; justify-items: center; }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-layout, .profile-layout { grid-template-columns: 1fr; }
  .business-grid { grid-template-columns: 1fr; }
  .workspace-main .cards.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .welcome-panel { grid-template-columns: 1fr; }
  .chat-shell { grid-template-columns: 300px 1fr; }
}

@media (max-width: 820px) {
  .topbar { align-items: flex-start; flex-direction: column; padding: 14px 5vw; }
  .landing-hero { min-height: auto; padding: 42px 0; }
  .feature-grid, .public-articles, .landing-band, .feature-list, .step-grid, .module-grid { grid-template-columns: 1fr; }
  .shop-scene { min-height: 390px; }
  .shop { left: 34px; right: 34px; bottom: 76px; }
  .sign-board { font-size: 28px; left: 132px; }
  .person.one { right: 34px; }
  .person.two { right: 86px; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding: 42px 0; }
  .preview-grid, .form-grid, .stat-grid, .cards.three, .workspace-main .cards.three { grid-template-columns: 1fr; }
  .form-grid.two { grid-template-columns: 1fr; }
  .month-filter { width: 100%; }
  .article-grid { grid-template-columns: 1fr; }
  .manage-toolbar, .toolbar-actions { align-items: stretch; flex-direction: column; }
  .search-input { width: 100%; }
  .business-card { grid-template-columns: 86px 1fr; }
  .business-card img { width: 86px; height: 86px; }
  .chart-card, .activity-card { min-height: auto; }
  .activity-row { align-items: flex-start; flex-direction: column; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-back { background: #fff; color: var(--ink); border-color: var(--line); }
  .app-shell { display: block; }
  .sidebar { position: static; width: 100%; min-height: auto; }
  .side-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace-main { margin-left: 0; width: 100%; }
  .workspace-top { align-items: flex-start; flex-direction: column; }
  .workspace-content { padding: 18px; }
  .chat-shell { grid-template-columns: 1fr; }
  .chat-list-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .chat-messages { padding: 18px; }
  .bubble { max-width: 88%; }
  table { white-space: nowrap; }
}
