:root {
  --bg: #020503;
  --panel: #07100b;
  --panel-2: #040b07;
  --border: #18452f;
  --text: #f6fbff;
  --muted: #9aa8bc;
  --accent: #29ea83;
  --accent-2: #18b363;
  --accent-3: #8cffbe;
  --btn-start: #169a56;
  --btn-end: #0f6a3a;
  --btn-glow: rgba(22, 154, 86, 0.28);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1400px 760px at -8% -18%, rgba(30, 207, 115, 0.18), transparent 58%),
    radial-gradient(1200px 620px at 112% 118%, rgba(21, 140, 80, 0.16), transparent 62%),
    radial-gradient(980px 520px at 48% -20%, rgba(116, 231, 169, 0.1), transparent 69%),
    linear-gradient(160deg, rgba(255,255,255,.02), transparent 30%),
    var(--bg);
}
body::before {
  content: "";
  position: fixed;
  inset: -20% -10% auto;
  height: 70vh;
  pointer-events: none;
  background: radial-gradient(circle at 35% 10%, rgba(52,171,111,.14), transparent 46%);
  filter: blur(24px);
  animation: floatGlow 9s ease-in-out infinite alternate;
  z-index: 0;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(34,120,76,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(34,120,76,.08) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(circle at 50% 30%, rgba(0,0,0,.35), transparent 70%);
  opacity: .16;
  z-index: 0;
}
body::selection { background: rgba(38, 153, 90, .35); color: #e9ffef; }
body::before, body::after { mix-blend-mode: normal; }
body {
  position: relative;
}
body .scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 120;
  background: repeating-linear-gradient(to bottom, rgba(102, 255, 165, .035) 0 1px, transparent 1px 4px);
  opacity: .4;
  animation: scanShift 10s linear infinite;
}
main, .site-header, .site-footer, .floating-cta, .messenger-fab-wrap, .pay-modal, .auth-overlay { position: relative; z-index: 1; }
a { color: inherit; }

.hidden { display: none !important; }

.site-header {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 22px;
  background: rgba(6, 17, 12, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(11, 8, 24, .45);
}

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 46px; height: 46px; border-radius: 12px; border: 1px solid #2a7d52; }
.brand span { display: grid; line-height: 1.1; }
.brand strong { font-size: 2rem; font-weight: 800; }
.brand small { color: #9fb0c7; font-size: .82rem; font-weight: 600; }

.top-nav { display: flex; gap: 14px; }
.top-nav a {
  text-decoration: none;
  color: #e3ebfa;
  font-size: .92rem;
  font-weight: 700;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 6px 10px;
  transition: .2s ease;
}
.top-nav a:hover { border-color: #246d4a; background: rgba(30, 207, 115, .12); color: #ffffff; }
.top-user { display: flex; align-items: center; gap: 8px; color: #d9e5f7; font-weight: 600; }

main { width: min(1280px, 100% - 30px); margin: 16px auto 36px; display: grid; gap: 14px; }

.hero, .block, .cta {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  box-shadow: 0 30px 64px rgba(0, 0, 0, .68), inset 0 1px 0 rgba(116,231,169,.06);
  position: relative;
  overflow: hidden;
}
.hero::before, .block::before, .cta::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from 90deg, rgba(30,207,115,.5), rgba(21,140,80,.38), rgba(116,231,169,.44), rgba(30,207,115,.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .45;
  pointer-events: none;
  animation: borderSpin 9s linear infinite;
}

.hero { padding: 28px; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; width: 520px; height: 520px; right: -170px; top: -230px;
  border-radius: 50%; background: radial-gradient(circle, rgba(30,207,115,.16), transparent 68%);
}
.hero .kicker, .hero h1, .hero .hero-lead, .hero .ai-line, .hero .hero-actions, .hero .hero-stats, .hero .ai-mascot { position: relative; z-index: 1; }

.kicker { margin: 0 0 10px; color: #aac1df; font-size: .82rem; text-transform: uppercase; letter-spacing: .8px; }
h1 { margin: 0; font-size: clamp(1.8rem, 4.4vw, 3.4rem); line-height: 1.04; max-width: 980px; position: relative; z-index: 1; }
.hero h1, .block h2, .cta h2 {
  text-shadow: 0 0 14px rgba(38, 153, 90, .46), 0 0 26px rgba(21, 140, 80, .35);
  animation: terminalFlicker 5.6s infinite steps(1, end);
}
.hero h1 { color: #f3fff8; }
.hero-lead, .order-meta, .muted { color: #aab8c9; }
.hero-lead { margin: 12px 0 0; max-width: 920px; color: var(--muted); line-height: 1.6; position: relative; z-index: 1; }
.hero-actions { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.ai-line {
  margin-top: 14px;
  border: 1px solid #6d61bd;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(122, 107, 255, .15);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.ai-line small { color: #cbc2f0; font-size: .78rem; }
.ai-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 0 0 rgba(111,255,228,.8);
  animation: pulseDot 1.4s infinite;
}
.ai-mascot {
  margin-top: 12px;
  width: 118px;
  border: 1px solid #7d70d8;
  border-radius: 16px;
  padding: 10px 8px;
  background: linear-gradient(160deg, rgba(122,107,255,.24), rgba(255,123,213,.18));
  display: grid;
  justify-items: center;
  gap: 6px;
}
.ai-mascot strong { font-size: .82rem; }
.mascot-core {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #d2c8ff 70%);
  position: relative;
  border: 2px solid #8c7df4;
  box-shadow: 0 10px 20px rgba(122,107,255,.35);
}
.ear {
  position: absolute;
  top: -8px;
  width: 15px;
  height: 15px;
  border-radius: 5px;
  background: #9a89ff;
}
.ear-left { left: 6px; transform: rotate(-20deg); }
.ear-right { right: 6px; transform: rotate(20deg); }
.eye {
  position: absolute;
  top: 24px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #342f56;
}
.eye-left { left: 17px; }
.eye-right { right: 17px; }
.mouth {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 14px;
  width: 12px;
  height: 6px;
  border-bottom: 2px solid #615a8c;
  border-radius: 0 0 10px 10px;
}

.btn {
  border: 0;
  border-radius: 14px;
  padding: 11px 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  color: #fff;
  background: linear-gradient(135deg, var(--btn-start), var(--btn-end));
  box-shadow: 0 8px 18px var(--btn-glow);
  transition: transform .18s ease, box-shadow .2s ease, filter .2s ease;
  position: relative;
  overflow: hidden;
}
.btn:not(.ghost)::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,0));
  pointer-events: none;
}
.btn:hover { transform: translateY(-1px); filter: saturate(1.02); box-shadow: 0 10px 22px var(--btn-glow); }
.btn.ghost { border: 1px solid #1c583a; background: rgba(20, 120, 70, .12); box-shadow: none; color: #dbe7ef; }

.hero-stats {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  position: relative;
  z-index: 1;
}
.hero-stats div {
  border: 1px solid #235f40;
  border-radius: 12px;
  padding: 10px;
  background: rgba(7, 20, 14, .72);
  display: grid;
  gap: 3px;
}
.hero-stats strong { font-size: 1.06rem; }
.hero-stats span { font-size: .84rem; color: var(--muted); }

.block { padding: 18px; }
h2 { margin: 0 0 12px; font-size: clamp(1.2rem, 2.1vw, 1.85rem); }
h3 { margin: 0 0 8px; font-size: 1rem; }
p { margin: 0; color: var(--muted); line-height: 1.5; }

.cards, .grid4, .list-grid {
  display: grid;
  gap: 12px;
}
.cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.list-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.cards article, .grid4 article, .list-grid div {
  border: 1px solid #4f4488;
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.service-card {
  position: relative;
  padding-top: 44px !important;
}
.clean-icon {
  position: absolute;
  top: 11px;
  left: 12px;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  border: 1px solid #2e8d5b;
  background: linear-gradient(145deg, rgba(55,255,139,.2), rgba(31,207,111,.12));
  display: inline-grid;
  place-items: center;
  box-shadow: inset 0 1px 0 rgba(137,255,184,.2), 0 8px 16px rgba(46,255,130,.2);
}
.clean-icon svg,
.tab-clean-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #eaf1ff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(255,255,255,.35));
}
.service-card:nth-child(2) .clean-icon { background: linear-gradient(145deg, rgba(137,255,184,.22), rgba(55,255,139,.18)); }
.service-card:nth-child(3) .clean-icon { background: linear-gradient(145deg, rgba(31,207,111,.24), rgba(137,255,184,.16)); }
.service-card:nth-child(4) .clean-icon { background: linear-gradient(145deg, rgba(55,255,139,.22), rgba(31,207,111,.16)); }
.service-card:nth-child(5) .clean-icon { background: linear-gradient(145deg, rgba(137,255,184,.23), rgba(55,255,139,.18)); }
.service-card:nth-child(6) .clean-icon { background: linear-gradient(145deg, rgba(31,207,111,.24), rgba(55,255,139,.14)); }
.cards article:hover, .grid4 article:hover, .list-grid div:hover {
  transform: translateY(-3px);
  border-color: #2c8f5e;
  box-shadow: 0 14px 30px rgba(11, 62, 38, .42);
}

.portal-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.portal-tab {
  border: 1px solid #2a7a4d;
  border-radius: 10px;
  background: rgba(30, 207, 115, .08);
  color: #e1e9f8;
  padding: 8px 12px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.portal-tab.active {
  background: linear-gradient(135deg, rgba(30,207,115,.24), rgba(21,140,80,.16));
  box-shadow: 0 8px 18px rgba(16,92,54,.34);
}
.tab-clean-icon {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid #2f8f5d;
  background: linear-gradient(145deg, rgba(55,255,139,.22), rgba(31,207,111,.14));
  display: inline-grid;
  place-items: center;
}
.portal-pane { display: none; }
.portal-pane.active { display: block; }

.portal-quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.quick-card {
  border: 1px solid #256d46;
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(55,255,139,.08), rgba(31,207,111,.03));
  display: grid;
  gap: 9px;
}
.quick-card strong { font-size: 1.02rem; }
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .2s ease, box-shadow .2s ease;
}

.form { display: grid; gap: 10px; margin-bottom: 12px; }
input, textarea, select {
  width: 100%;
  border: 1px solid #265f40;
  border-radius: 10px;
  padding: 10px;
  font: inherit;
  background: #09150f;
  color: var(--text);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #4df39a;
  box-shadow: 0 0 0 3px rgba(55,255,139,.18);
}
textarea { resize: vertical; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.muted { color: var(--muted); font-size: .9rem; min-height: 18px; }
.error { color: #ff8f8f; min-height: 18px; font-size: .9rem; }

.list {
  display: grid;
  gap: 8px;
}
.order-item {
  border: 1px solid #265f40;
  border-radius: 12px;
  padding: 10px;
  background: rgba(255,255,255,.03);
  cursor: pointer;
}
.order-item.active { border-color: #2e9d67; background: rgba(30, 207, 115, .1); }
.order-meta { color: var(--muted); font-size: .85rem; }

.messages {
  border: 1px solid #245b3d;
  border-radius: 12px;
  padding: 10px;
  min-height: 240px;
  max-height: 420px;
  overflow: auto;
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}
.msg {
  border: 1px solid #245b3d;
  border-radius: 10px;
  padding: 8px;
  max-width: min(86%, 720px);
  background: rgba(255,255,255,.03);
}
.msg.me { margin-left: auto; background: rgba(30, 207, 115, .12); border-color: #2a8859; }
.msg .who { font-size: .76rem; color: #b7c9eb; margin-bottom: 3px; font-weight: 600; }
.msg .time { font-size: .74rem; color: #89a0c8; text-align: right; margin-top: 4px; }
.msg-file {
  margin-top: 6px;
  border: 1px solid #2d8f5c;
  border-radius: 8px;
  padding: 6px 8px;
  display: inline-block;
  text-decoration: none;
  color: #deebff;
}

.pay-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 14, .8);
  display: grid;
  place-items: center;
  z-index: 60;
  padding: 12px;
  animation: modalFadeIn .2s ease;
}
.pay-card {
  width: min(560px, 100%);
  border: 1px solid #2a7a4d;
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(180deg, #0d1d15, #09140f);
  display: grid;
  gap: 10px;
  animation: modalCardIn .24s ease;
  transform-origin: center;
  position: relative;
  overflow: hidden;
}
.chat-card { width: min(980px, 100%); }
.chat-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 12px;
  min-height: 520px;
}
.chat-sidebar {
  border: 1px solid #245b3d;
  border-radius: 12px;
  background: rgba(7, 20, 14, .62);
  padding: 10px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 10px;
}
.chat-sidebar-title { font-weight: 700; font-size: .9rem; color: #cfe0ff; }
.chat-orders-list {
  display: grid;
  gap: 8px;
  overflow: auto;
  max-height: 430px;
  scrollbar-width: thin;
  scrollbar-color: #2db66e #0b1510;
}
.chat-order-item {
  border: 1px solid #245b3d;
  border-radius: 10px;
  padding: 8px;
  background: rgba(255,255,255,.02);
  cursor: pointer;
  color: var(--text);
  text-align: left;
}
.chat-order-item.active {
  border-color: #2e9a65;
  background: rgba(30, 207, 115, .1);
}
.chat-order-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-bottom: 4px;
}
.chat-order-top strong { color: #e9fff2; }
.chat-order-item .order-meta { color: var(--muted); }
.chat-order-unread {
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2ad47b, #157b45);
  color: #fff;
  font-size: .74rem;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
}
.chat-orders-list::-webkit-scrollbar,
.messages::-webkit-scrollbar {
  width: 10px;
}
.chat-orders-list::-webkit-scrollbar-track,
.messages::-webkit-scrollbar-track {
  background: #0b1510;
  border-radius: 10px;
}
.chat-orders-list::-webkit-scrollbar-thumb,
.messages::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2dd074, #1a7d49);
  border-radius: 10px;
  border: 2px solid #0b1510;
}
.hl {
  background: linear-gradient(135deg, rgba(255,123,213,.46), rgba(111,255,228,.38));
  color: #ffffff;
  border-radius: 6px;
  padding: 0 3px;
}
.chat-main {
  border: 1px solid #245b3d;
  border-radius: 12px;
  background: rgba(7, 20, 14, .54);
  padding: 10px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.chat-main::before, .pay-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(130deg, rgba(30,207,115,.62), rgba(21,140,80,.5), rgba(116,231,169,.36));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .46;
  pointer-events: none;
}
.chat-send-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.chat-file-btn { width: auto; }
.pay-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
#walletDepositQr { width: min(220px, 100%); border-radius: 10px; border: 1px solid #3c588f; }

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modalCardIn {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.cta { padding: 24px; text-align: center; display: grid; gap: 10px; }
.cta .btn { margin: 4px auto 0; background: linear-gradient(135deg, #15824a, #0d5a31); color: #e4eff8; }

.site-footer {
  border-top: 1px solid var(--border);
  color: #89a0c8;
  font-size: .88rem;
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 16px;
}

.cases-grid, .reviews-grid {
  display: grid;
  gap: 12px;
}
.cases-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.reviews-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.case-card, .reviews-grid article {
  border: 1px solid #334e7c;
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(79,134,255,.12), rgba(79,134,255,.03));
}

.case-card strong {
  display: block;
  font-size: 1.02rem;
  margin-bottom: 4px;
}
.case-card span {
  display: inline-flex;
  border: 1px solid #567bc0;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: .78rem;
  margin-bottom: 8px;
  color: #c9dcff;
}

.reviews-grid article p { margin-bottom: 10px; }
.reviews-grid article strong { color: #d4e2ff; font-size: .9rem; }

.floating-cta {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  text-decoration: none;
  border: 1px solid #2a7a4d;
  border-radius: 999px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #157d47, #0d5930);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(9, 52, 30, .42);
}

.messenger-fab-wrap {
  position: fixed;
  right: 16px;
  bottom: 76px;
  z-index: 45;
}
.messenger-fab {
  width: 58px;
  height: 58px;
  border: 1px solid #35aa70;
  border-radius: 999px;
  background: linear-gradient(135deg, #188d53, #0e5f35);
  color: #fff;
  font-weight: 800;
  font-size: .72rem;
  letter-spacing: .4px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(8, 48, 27, .45);
  animation: fabPulse 1.2s ease-in-out infinite;
}
.messenger-widget {
  position: absolute;
  right: 0;
  bottom: 68px;
  width: min(300px, calc(100vw - 26px));
  border: 1px solid #3d6098;
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(180deg, #12203a, #0e192d);
  box-shadow: 0 16px 36px rgba(0,0,0,.36);
  display: grid;
  gap: 8px;
}
@keyframes fabPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 10px 24px rgba(39,74,162,.48); }
  50% { transform: scale(1.06); box-shadow: 0 12px 28px rgba(67,132,255,.62); }
}
@keyframes borderSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(111,255,228,.75); }
  80% { box-shadow: 0 0 0 10px rgba(111,255,228,0); }
  100% { box-shadow: 0 0 0 0 rgba(111,255,228,0); }
}
@keyframes floatGlow {
  from { transform: translateY(-8px) translateX(-6px); opacity: .72; }
  to { transform: translateY(8px) translateX(12px); opacity: 1; }
}
@keyframes terminalFlicker {
  0%, 17%, 19%, 63%, 65%, 100% { opacity: 1; }
  18% { opacity: .94; }
  64% { opacity: .97; }
}
@keyframes scanShift {
  from { transform: translateY(0); }
  to { transform: translateY(8px); }
}

.auth-overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(2, 5, 3, .9);
  display: grid; place-items: center; padding: 10px;
}
.auth-card {
  width: min(420px, 100%);
  border: 1px solid #1d4f35;
  border-radius: 14px;
  background: linear-gradient(180deg, #0b1410, #07100c);
  padding: 18px;
  box-shadow: 0 16px 36px rgba(0,0,0,.55);
}
.auth-card-wide { width: min(560px, 100%); }
.auth-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.auth-switch-minimal .auth-tab {
  border: 1px solid #1f5f40;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 700;
  color: #d3e8dc;
  background: #0d1c15;
  cursor: pointer;
}
.auth-switch-minimal .auth-tab.active {
  background: linear-gradient(180deg, #168e50, #0f6a3a);
  color: #effff5;
}
.auth-form { display: none; gap: 10px; }
.auth-form.active { display: grid; }
.auth-form h3 { margin: 0 0 8px; font-size: 1.4rem; color: #f4fff8; }
.auth-field { display: grid; gap: 6px; }
.auth-label {
  color: #95b8a3;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
}
.auth-card .auth-input {
  border: none;
  border-bottom: 1px solid #2e6e4d;
  border-radius: 0;
  padding: 10px 2px;
  background: transparent;
  color: #f3fff8;
}
.auth-card .auth-input:focus {
  border-bottom-color: #2ad47b;
  box-shadow: none;
}
.auth-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.auth-btn {
  border: 1px solid #2f6d4c;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}
.auth-btn.primary {
  color: #ecfff4;
  background: linear-gradient(180deg, #1aa260, #0f6a3a);
}
.auth-btn.secondary {
  color: #d6e6dc;
  background: #15231c;
}
.auth-btn.secondary:hover { background: #1b2b22; }
.auth-form .error {
  min-height: 18px;
  font-size: .9rem;
  color: #ff8f8f;
}

@media (max-width: 1100px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .grid4, .list-grid { grid-template-columns: 1fr 1fr; }
  .cases-grid, .reviews-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 850px) {
  .top-nav { display: none; }
  .brand strong { font-size: 1.45rem; }
  .hero-stats, .row, .cards, .grid4, .list-grid, .cases-grid, .reviews-grid, .portal-quick { grid-template-columns: 1fr; }
  .floating-cta { left: 12px; right: 12px; text-align: center; }
  .messenger-fab-wrap { right: 12px; bottom: 72px; }
  .messenger-widget { right: 0; }
  .chat-layout { grid-template-columns: 1fr; min-height: 0; }
  .chat-orders-list { max-height: 180px; }
  .ai-mascot { width: 100%; max-width: 170px; }
  .auth-actions { grid-template-columns: 1fr; }
}
