/* ==========================================================================
   CARNIVAL_SOFT — يېشىل شامال ئۇسلۇبى
   RTL · Uyghur · dark forest / mint
   ========================================================================== */

:root {
  --bg: #040f09;
  --bg-2: #071a11;
  --panel: rgba(10, 27, 18, 0.72);
  --panel-solid: #0a1b12;
  --panel-2: rgba(15, 38, 26, 0.55);
  --line: rgba(146, 255, 183, 0.11);
  --line-2: rgba(146, 255, 183, 0.22);
  --line-3: rgba(146, 255, 183, 0.36);
  --text: #e9f8ee;
  --text-2: #bdd9c7;
  --muted: #86a994;
  --dim: #5d7d69;
  --green: #5ef2a0;
  --green-soft: #a8ff9e;
  --teal: #3ee0c0;
  --lime: #c6ff7a;
  --danger: #ff8f7a;
  --amber: #ffd479;
  --accent: #5ef2a0;
  --r-xl: 26px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --mono: "Cascadia Code", "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: "Segoe UI", "Noto Naskh Arabic", "Noto Sans Arabic", "Microsoft Uyghur",
          "UKIJ Tuz", "Alkatip Basma", "Scheherazade New", Tahoma, Arial, sans-serif;
  --shadow-card: 0 24px 60px -34px rgba(0, 0, 0, 0.95);
  --ease: cubic-bezier(0.16, 0.84, 0.3, 1);
  color-scheme: dark;
}

* , *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background:
    radial-gradient(900px 620px at 88% -12%, rgba(62, 224, 192, 0.10), transparent 62%),
    radial-gradient(1000px 720px at 6% -6%, rgba(94, 242, 160, 0.09), transparent 58%),
    radial-gradient(1300px 900px at 50% 118%, rgba(22, 92, 58, 0.30), transparent 62%),
    var(--bg);
  background-attachment: fixed;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::selection, ::selection { background: rgba(94, 242, 160, 0.28); color: #fff; }

h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; }
button { font-family: inherit; }

:focus-visible {
  outline: 2px solid rgba(94, 242, 160, 0.75);
  outline-offset: 2px;
  border-radius: 6px;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #06110a; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(#1d5c3c, #0f3a26);
  border-radius: 8px;
  border: 2px solid #06110a;
}
::-webkit-scrollbar-thumb:hover { background: #2a7a50; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------ фон қатламلىرى ------------------------------ */
#wind-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='0.6'/></svg>");
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(560px 380px at 78% 18%, rgba(94, 242, 160, 0.07), transparent 70%),
    radial-gradient(620px 420px at 18% 72%, rgba(62, 224, 192, 0.05), transparent 70%);
  animation: glowDrift 26s ease-in-out infinite alternate;
}

#app { position: relative; z-index: 2; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ic {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* ---------------------------------- تىپو ---------------------------------- */
.mono { font-family: var(--mono); direction: ltr; unicode-bidi: isolate; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.strong { color: var(--text); font-weight: 700; }
.nowrap { white-space: nowrap; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--green);
  padding: 6px 11px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(94, 242, 160, 0.05);
  text-transform: uppercase;
}

/* ---------------------------------- كۇنۇپكا ---------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: rgba(126, 231, 151, 0.06);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s,
    box-shadow 0.25s, color 0.25s;
  -webkit-appearance: none;
  appearance: none;
}
.btn:hover {
  background: rgba(126, 231, 151, 0.11);
  border-color: var(--line-3);
  transform: translateY(-1px);
}
.btn:active { transform: translateY(0); }
.btn .ic { width: 18px; height: 18px; }

.btn-primary {
  background: linear-gradient(120deg, #a8ff9e 0%, #5ef2a0 46%, #3ee0c0 100%);
  border-color: transparent;
  color: #03160c;
  box-shadow: 0 12px 32px -14px rgba(94, 242, 160, 0.65);
}
.btn-primary:hover {
  background: linear-gradient(120deg, #b8ffb0 0%, #6fffb0 46%, #4ff0cf 100%);
  box-shadow: 0 18px 44px -14px rgba(94, 242, 160, 0.8);
}
.btn-primary .ic { stroke-width: 2; }

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.btn-ghost:hover { background: rgba(126, 231, 151, 0.07); color: var(--text); }

.btn-danger {
  color: var(--danger);
  border-color: rgba(255, 143, 122, 0.28);
  background: rgba(255, 143, 122, 0.07);
}
.btn-danger:hover { background: rgba(255, 143, 122, 0.13); border-color: rgba(255, 143, 122, 0.5); }

.btn-sm { padding: 8px 13px; font-size: 0.83rem; border-radius: 10px; }
.btn-sm .ic { width: 15px; height: 15px; }
.btn-lg { padding: 14px 22px; font-size: 1rem; border-radius: 14px; }
.btn-block { width: 100%; }

.btn[disabled], .btn.is-busy { opacity: 0.6; pointer-events: none; }

.btn.is-busy::after {
  content: "";
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.25);
  border-top-color: rgba(0, 0, 0, 0.75);
  animation: spin 0.8s linear infinite;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(10, 26, 17, 0.6);
  color: var(--muted);
  cursor: pointer;
  transition: 0.25s;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-2); background: rgba(126, 231, 151, 0.08); }
.icon-btn .ic { width: 18px; height: 18px; }

/* ---------------------------------- كىرگۈزۈش ---------------------------------- */
.field { display: grid; gap: 7px; }
.field-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
}
.field-label .idx {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: var(--green);
  opacity: 0.75;
}
.field-label .req { color: var(--danger); }
.field-hint { font-size: 0.73rem; color: var(--dim); }

.input, .textarea, .select {
  width: 100%;
  padding: 12px 15px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: rgba(3, 11, 7, 0.72);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.6;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  -webkit-appearance: none;
  appearance: none;
}
.input::placeholder, .textarea::placeholder { color: #4e6e59; }
.input:hover, .textarea:hover, .select:hover { border-color: var(--line-3); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: rgba(94, 242, 160, 0.6);
  background: rgba(4, 14, 9, 0.9);
  box-shadow: 0 0 0 3px rgba(94, 242, 160, 0.10), 0 0 26px -12px rgba(94, 242, 160, 0.55);
}
.textarea { resize: vertical; min-height: 140px; line-height: 1.9; }
.select {
  cursor: pointer;
  padding-inline-end: 38px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2386a994' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='m4 6 4 4 4-4'/></svg>");
  background-repeat: no-repeat;
  background-position: left 14px center;
  background-size: 14px;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px #07170f inset;
  caret-color: var(--text);
  transition: background-color 9999s ease-in-out 0s;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid--3 { grid-template-columns: repeat(3, 1fr); }
.form-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.form-actions .spacer { flex: 1; }

/* ---------------------------------- بەلگىلەر ---------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(9, 24, 16, 0.6);
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}
.chip .ic { width: 13px; height: 13px; }
.chip--green { color: var(--green); border-color: rgba(94, 242, 160, 0.3); background: rgba(94, 242, 160, 0.08); }
.chip--solid { background: rgba(94, 242, 160, 0.9); color: #04150c; border-color: transparent; font-weight: 800; }
.chip--amber { color: var(--amber); border-color: rgba(255, 212, 121, 0.3); background: rgba(255, 212, 121, 0.08); }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 7px;
  background: rgba(94, 242, 160, 0.06);
  border: 1px solid rgba(94, 242, 160, 0.16);
  color: #9fd8b3;
  font-size: 0.71rem;
  line-height: 1.6;
  white-space: nowrap;
}

.badge-admin {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  background: linear-gradient(120deg, rgba(255, 212, 121, 0.18), rgba(255, 143, 122, 0.12));
  border: 1px solid rgba(255, 212, 121, 0.35);
  color: var(--amber);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
}

.avatar {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 32% 24%, rgba(94, 242, 160, 0.28), rgba(5, 18, 11, 0.95));
  box-shadow: inset 0 0 0 1px rgba(146, 255, 183, 0.28), 0 4px 16px -6px rgba(0, 0, 0, 0.8);
  color: var(--green);
  font-weight: 800;
  user-select: none;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar .av-letter { color: var(--c, var(--green)); text-shadow: 0 0 18px currentColor; }
.avatar-24 { width: 24px; height: 24px; font-size: 0.68rem; }
.avatar-28 { width: 28px; height: 28px; font-size: 0.76rem; }
.avatar-34 { width: 34px; height: 34px; font-size: 0.86rem; }
.avatar-44 { width: 44px; height: 44px; font-size: 1rem; }
.avatar-56 { width: 56px; height: 56px; font-size: 1.2rem; }
.avatar-72 { width: 72px; height: 72px; font-size: 1.5rem; }
.avatar-120 { width: 120px; height: 120px; font-size: 2.6rem; }

/* ==========================================================================
   يۇقىرى مېنىيۇ
   ========================================================================== */
.topbar {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 60;
  height: 76px;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(4, 15, 9, 0.94), rgba(4, 15, 9, 0.66));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
}
.topbar-inner {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding-inline: clamp(16px, 3vw, 34px);
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text);
  flex: none;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--green);
  border: 1px solid var(--line-2);
  background: linear-gradient(145deg, rgba(94, 242, 160, 0.18), rgba(62, 224, 192, 0.04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 0 28px -12px rgba(94, 242, 160, 0.55);
}
.brand-mark .ic { width: 23px; height: 23px; }
.brand-text b {
  display: block;
  font-family: var(--mono);
  font-size: 0.93rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.3;
}
.brand-text b span { color: var(--green); }
.brand-text small {
  display: block;
  font-size: 0.64rem;
  color: var(--dim);
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.mainnav { display: flex; align-items: center; gap: 4px; margin-inline-start: 10px; }
.mainnav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s;
}
.mainnav a .ic { width: 17px; height: 17px; opacity: 0.8; }
.mainnav a:hover { color: var(--text); background: rgba(126, 231, 151, 0.06); }
.mainnav a.is-active { color: var(--text); background: rgba(94, 242, 160, 0.08); }
.mainnav a.is-active::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline-start: 50%;
  translate: -50% 0;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}
@media (min-width: 761px) and (max-width: 900px) {
  .mainnav a span { display: none; }
}

.topbar-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 9px; }

.user-menu { position: relative; }
.user-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 8px 5px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(10, 26, 17, 0.55);
  color: var(--text);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}
.user-btn:hover { border-color: var(--line-2); background: rgba(126, 231, 151, 0.07); }
.user-btn .ic { width: 14px; height: 14px; color: var(--dim); transition: transform 0.2s; }
.user-btn[aria-expanded="true"] .ic { transform: rotate(180deg); }
.user-btn .u-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-end: 0;
  min-width: 226px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background: rgba(7, 20, 13, 0.98);
  box-shadow: 0 30px 70px -20px #000, 0 0 0 1px rgba(0, 0, 0, 0.4);
  z-index: 100;
  animation: dropIn 0.18s var(--ease);
}
.dropdown[hidden] { display: none; }
.dropdown-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px 11px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.dropdown-head b { display: block; font-size: 0.86rem; line-height: 1.4; }
.dropdown-head small { color: var(--dim); font-size: 0.7rem; }
.dropdown a, .dropdown button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 11px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--text-2);
  font: inherit;
  font-size: 0.86rem;
  text-align: start;
  text-decoration: none;
  cursor: pointer;
  transition: 0.18s;
}
.dropdown a .ic, .dropdown button .ic { width: 16px; height: 16px; color: var(--dim); }
.dropdown a:hover, .dropdown button:hover { background: rgba(126, 231, 151, 0.08); color: var(--text); }
.dropdown .sep { height: 1px; background: var(--line); margin: 6px 4px; }
.dropdown .danger { color: var(--danger); }
.dropdown .danger .ic { color: var(--danger); }

/* موبىل ئاستى تاختىسى */
.dock { display: none; }

/* ==========================================================================
   ئالدىنقى بەت (Landing)
   ========================================================================== */
.landing {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 22px clamp(18px, 4vw, 56px) 16px;
}
.landing::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(126, 231, 151, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 231, 151, 0.045) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 38%, #000 10%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 38%, #000 10%, transparent 78%);
  pointer-events: none;
}

.landing-nav {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}
.landing-nav .brand { margin-inline-end: auto; }
.nav-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--dim);
  white-space: nowrap;
}
.nav-status .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse 2.6s ease-in-out infinite;
}
.landing-links { display: flex; align-items: center; gap: 4px; }

.landing-main {
  flex: 1;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(370px, 0.78fr);
  gap: clamp(28px, 4.6vw, 76px);
  align-items: center;
  padding: clamp(30px, 6vh, 76px) 0;
}

.hero { position: relative; padding: 8px 0; }

.hero-orb {
  position: absolute;
  z-index: -1;
  inset-inline-start: -12%;
  top: -18%;
  width: min(50vw, 600px);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle at 34% 30%, rgba(168, 255, 158, 0.20), transparent 46%),
    radial-gradient(circle at 64% 70%, rgba(62, 224, 192, 0.18), transparent 52%),
    radial-gradient(circle at 50% 50%, rgba(94, 242, 160, 0.07), transparent 72%);
  filter: blur(34px);
  animation: orbFloat 18s ease-in-out infinite;
}
.hero-orb::before, .hero-orb::after {
  content: "";
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  border: 1px solid rgba(94, 242, 160, 0.10);
}
.hero-orb::after {
  inset: 26%;
  border-color: rgba(62, 224, 192, 0.10);
  animation: spin 42s linear infinite;
  border-style: dashed;
}

.hero-title {
  position: relative;
  margin: 16px 0 0;
  font-family: var(--mono);
  font-size: clamp(42px, 6.3vw, 90px);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.025em;
  color: #eafff1;
  text-shadow: 0 0 44px rgba(94, 242, 160, 0.22);
  direction: ltr;
  text-align: right;
  unicode-bidi: isolate;
}
.hero-title .grad {
  background: linear-gradient(100deg, #ddffe6 0%, #5ef2a0 42%, #3ee0c0 72%, #c6ff7a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-title::before,
.hero-title::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
}
.hero-title::before { color: #3ee0c0; animation: glitchA 7.5s infinite steps(1); }
.hero-title::after { color: #c6ff7a; animation: glitchB 7.5s infinite steps(1); }

.hero-sub {
  margin: 16px 0 0;
  font-size: clamp(20px, 2.3vw, 30px);
  font-weight: 800;
  line-height: 1.55;
  color: var(--text);
}
.hero-sub em { font-style: normal; color: var(--green); }
.hero-lead {
  max-width: 52ch;
  margin: 12px 0 0;
  color: var(--text-2);
  font-size: 1rem;
  line-height: 2;
}
.hero-lead b { color: var(--text); font-weight: 700; }

.hero-points { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(9, 24, 16, 0.52);
  color: var(--text-2);
  font-size: 0.8rem;
}
.hero-points .ic { width: 15px; height: 15px; color: var(--green); }

.hero-stats {
  display: flex;
  gap: clamp(18px, 3vw, 44px);
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.hero-stat b {
  display: block;
  font-family: var(--mono);
  font-size: clamp(22px, 2.6vw, 31px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--green);
  letter-spacing: -0.01em;
}
.hero-stat span { font-size: 0.76rem; color: var(--muted); }

.hero-term {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 27px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--dim);
  direction: ltr;
  unicode-bidi: isolate;
  justify-content: flex-start;
}
.hero-term .user { color: var(--green); }
.hero-term .path { color: var(--teal); }
.hero-term .cmd { color: var(--text-2); }
.hero-term .caret {
  width: 8px;
  height: 14px;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: blink 1.15s steps(1) infinite;
}

/* ------------------------------- كىرىش كارتى ------------------------------- */
.auth-wrap { position: relative; display: flex; flex-direction: column; gap: 13px; width: 100%; }

.auth-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(11, 29, 19, 0.93), rgba(5, 16, 10, 0.97));
  box-shadow:
    0 55px 130px -55px #000,
    0 0 90px -48px rgba(94, 242, 160, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.16) 0 1px, transparent 1px 3px);
  opacity: 0.3;
  mix-blend-mode: multiply;
}
.auth-card::after {
  content: "";
  position: absolute;
  inset-inline: 12%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(94, 242, 160, 0.7), transparent);
}

.auth-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 17px;
  border-bottom: 1px solid var(--line);
  background: rgba(4, 14, 9, 0.5);
  font-family: var(--mono);
  font-size: 0.67rem;
  letter-spacing: 0.06em;
  color: var(--dim);
}
.dots { display: flex; gap: 5px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(146, 255, 183, 0.2); }
.dots i:nth-child(1) { background: rgba(255, 143, 122, 0.55); }
.dots i:nth-child(2) { background: rgba(255, 212, 121, 0.5); }
.dots i:nth-child(3) { background: rgba(94, 242, 160, 0.55); }
.auth-top .addr { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 6px; }
.auth-top .addr .ic { width: 13px; height: 13px; color: var(--green); }

.auth-boot {
  position: relative;
  z-index: 2;
  padding: 13px 18px 0;
  font-family: var(--mono);
  font-size: 0.67rem;
  line-height: 1.95;
  color: #4f705c;
  direction: ltr;
  text-align: left;
}
.auth-boot p { opacity: 0; animation: bootIn 0.3s var(--ease) forwards; }
.auth-boot p .ok { color: var(--green); }
.auth-boot p .warn { color: var(--amber); }

.auth-tabs {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 4px;
  padding: 16px 18px 0;
}
.auth-tabs button {
  flex: 1;
  padding: 9px 6px 11px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}
.auth-tabs button:hover { color: var(--text-2); }
.auth-tabs button.is-active {
  color: var(--text);
  border-bottom-color: var(--green);
  box-shadow: 0 1px 0 0 var(--green);
}
.auth-tabs button .t-en {
  display: block;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  color: var(--dim);
  font-weight: 500;
  margin-top: 2px;
}

.auth-form {
  position: relative;
  z-index: 2;
  padding: 17px 18px 18px;
  display: grid;
  gap: 13px;
}
.auth-form .field-label { justify-content: space-between; }
.auth-form .field-label > span:first-child { display: inline-flex; align-items: center; gap: 8px; }

.auth-error {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 143, 122, 0.35);
  background: rgba(255, 143, 122, 0.08);
  color: var(--danger);
  font-size: 0.8rem;
  line-height: 1.6;
}
.auth-error.is-on { display: flex; }
.auth-error .ic { width: 16px; height: 16px; flex: none; }

.auth-card.shake { animation: shake 0.42s; }

.auth-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.7rem;
  color: var(--dim);
  padding: 0 4px;
  flex-wrap: wrap;
}
.auth-foot .demo {
  border: 0;
  background: none;
  padding: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  cursor: pointer;
  text-decoration: underline dotted rgba(94, 242, 160, 0.5);
  text-underline-offset: 4px;
}
.auth-foot .demo:hover { color: var(--green); }

.auth-secure {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--dim);
  padding-inline: 4px;
}
.auth-secure .ic { width: 13px; height: 13px; color: rgba(94, 242, 160, 0.7); }

/* ACCESS GRANTED */
.granted {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: none;
  place-items: center;
  text-align: center;
  padding: 30px;
  background: rgba(3, 13, 8, 0.96);
  backdrop-filter: blur(10px);
}
.granted.is-on { display: grid; animation: fadeIn 0.3s; }
.granted .ok-ring {
  width: 66px;
  height: 66px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--green);
  border: 1px solid rgba(94, 242, 160, 0.6);
  box-shadow: 0 0 44px rgba(94, 242, 160, 0.3), inset 0 0 32px rgba(94, 242, 160, 0.12);
  animation: bootPulse 2s infinite;
}
.granted .ok-ring .ic { width: 30px; height: 30px; stroke-width: 2; }
.granted h3 {
  font-family: var(--mono);
  font-size: 1.02rem;
  letter-spacing: 0.34em;
  color: var(--green);
  text-shadow: 0 0 26px rgba(94, 242, 160, 0.65);
  margin: 0 0 7px;
  direction: ltr;
}
.granted p { color: var(--muted); font-size: 0.8rem; }
.granted .bar {
  width: 190px;
  height: 2px;
  margin: 18px auto 0;
  border-radius: 2px;
  background: rgba(94, 242, 160, 0.14);
  overflow: hidden;
}
.granted .bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  animation: grantedBar 1.15s var(--ease) forwards;
}

.landing-footer {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.71rem;
  flex-wrap: wrap;
}
.landing-footer .mono { font-size: 0.66rem; letter-spacing: 0.06em; }
.landing-footer .leaf { display: inline-flex; align-items: center; gap: 6px; }
.landing-footer .leaf .ic { width: 13px; height: 13px; color: var(--green); opacity: 0.75; }

/* ==========================================================================
   ئاساسىي قاپ (Shell)
   ========================================================================== */
.view { position: relative; z-index: 2; padding-top: 76px; min-height: 100vh; }
.shell {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 32px clamp(16px, 3vw, 34px) 96px;
  animation: fadeUp 0.45s var(--ease);
}

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.4; font-weight: 800; }
.page-head .sub { color: var(--muted); font-size: 0.88rem; margin-top: 5px; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: none;
  margin-bottom: 14px;
  transition: 0.2s;
}
.back-link:hover { color: var(--green); }
.back-link .ic { width: 16px; height: 16px; }

/* ------------------------------ سالاملاش كارتى ------------------------------ */
.welcome {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid var(--line-2);
  padding: clamp(22px, 3vw, 34px);
  display: flex;
  align-items: center;
  gap: 28px;
  justify-content: space-between;
  background:
    radial-gradient(600px 260px at 88% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    linear-gradient(115deg, rgba(13, 35, 23, 0.9), rgba(7, 21, 14, 0.94) 55%, rgba(5, 16, 10, 0.96));
  box-shadow: var(--shadow-card);
  flex-wrap: wrap;
}
.welcome::before {
  content: "";
  position: absolute;
  inset-inline-start: -40px;
  top: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  opacity: 0.7;
  pointer-events: none;
}
.welcome::after {
  content: "";
  position: absolute;
  inset-inline-start: 10px;
  top: 10px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--accent) 18%, transparent);
  pointer-events: none;
}
.welcome-left { position: relative; z-index: 1; min-width: 260px; flex: 1 1 380px; }
.welcome .eyebrow { margin-bottom: 14px; border-color: color-mix(in srgb, var(--accent) 30%, transparent); color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.welcome h1 { font-size: clamp(22px, 2.7vw, 32px); line-height: 1.5; font-weight: 800; }
.welcome h1 .accent { color: var(--accent); }
.welcome p { color: var(--text-2); font-size: 0.9rem; margin-top: 8px; max-width: 56ch; line-height: 1.9; }
.welcome-actions { display: flex; gap: 9px; margin-top: 18px; flex-wrap: wrap; }

.welcome-stats {
  position: relative;
  z-index: 1;
  display: flex;
  gap: clamp(14px, 2.2vw, 30px);
  flex-wrap: wrap;
}
.welcome-stat {
  min-width: 78px;
  padding-inline-start: clamp(14px, 2vw, 26px);
  border-inline-start: 1px solid var(--line);
}
.welcome-stat:first-child { padding-inline-start: 0; border-inline-start: 0; }
.welcome-stat b {
  display: block;
  font-family: var(--mono);
  font-size: clamp(18px, 2vw, 24px);
  color: var(--accent);
  line-height: 1.2;
}
.welcome-stat span { font-size: 0.72rem; color: var(--muted); }

/* -------------------------------- قورال بالدى -------------------------------- */
.toolbar {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-wrap: wrap;
  margin: 26px 0 20px;
}
.searchbar { position: relative; flex: 1 1 300px; min-width: 220px; }
.searchbar .ic {
  position: absolute;
  inset-inline-start: 14px;
  top: 50%;
  translate: 0 -50%;
  width: 18px;
  height: 18px;
  color: var(--dim);
  pointer-events: none;
}
.searchbar input {
  width: 100%;
  padding-block: 12px;
  padding-inline: 43px 48px;
  border-radius: 13px;
  border: 1px solid var(--line-2);
  background: rgba(6, 18, 11, 0.75);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  transition: 0.25s;
}
.searchbar input::placeholder { color: #4d6c58; }
.searchbar input:focus {
  outline: none;
  border-color: rgba(94, 242, 160, 0.55);
  box-shadow: 0 0 0 3px rgba(94, 242, 160, 0.09), 0 0 30px -14px rgba(94, 242, 160, 0.6);
}
.searchbar kbd {
  position: absolute;
  inset-inline-end: 11px;
  top: 50%;
  translate: 0 -50%;
  font-family: var(--mono);
  font-size: 0.64rem;
  color: var(--dim);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 2px 6px;
  background: rgba(3, 11, 7, 0.7);
}

.segmented {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(6, 18, 11, 0.55);
  flex-wrap: wrap;
}
.segmented button {
  padding: 8px 13px;
  border-radius: 9px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.2s;
}
.segmented button:hover { color: var(--text); }
.segmented button.is-active {
  background: rgba(94, 242, 160, 0.12);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(94, 242, 160, 0.26);
}
.segmented .count { font-family: var(--mono); font-size: 0.66rem; opacity: 0.6; margin-inline-start: 4px; }

.sort-wrap { display: flex; align-items: center; gap: 7px; }
.sort-wrap .select { width: auto; min-width: 150px; padding-block: 10px; font-size: 0.83rem; }
.sort-wrap .ic { width: 16px; height: 16px; color: var(--dim); }

/* -------------------------------- مۇنبەر تورى -------------------------------- */
.forum-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)); gap: 17px; }

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(12, 30, 20, 0.72), rgba(7, 19, 13, 0.86));
  overflow: hidden;
  box-shadow: 0 16px 44px -32px #000;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.post-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-3);
  box-shadow: 0 32px 60px -34px #000, 0 0 46px -26px rgba(94, 242, 160, 0.55);
}
.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: radial-gradient(circle at 30% 25%, #123c27, #06150d 75%);
}
.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s var(--ease), opacity 0.3s;
}
.post-card:hover .card-cover img { transform: scale(1.055); }
.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 10, 6, 0.02) 34%, rgba(3, 10, 6, 0.72) 100%);
  pointer-events: none;
}
.cover-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 28% 22%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 55%),
    linear-gradient(140deg, #0d2a1b, #06150d 70%);
  font-family: var(--mono);
  font-size: 3.6rem;
  font-weight: 800;
  color: rgba(233, 248, 238, 0.14);
  letter-spacing: 0.05em;
  user-select: none;
}
.cover-fallback::before {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(146, 255, 183, 0.09);
  border-radius: 50%;
}
.cover-fallback::after {
  content: "";
  position: absolute;
  inset: 24%;
  border: 1px dashed rgba(146, 255, 183, 0.08);
  border-radius: 50%;
}

.cat-badge {
  position: absolute;
  top: 11px;
  inset-inline-start: 11px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #dfffe9;
  background: rgba(4, 15, 9, 0.72);
  border: 1px solid rgba(146, 255, 183, 0.22);
  backdrop-filter: blur(6px);
}
.cat-badge .ic { width: 12px; height: 12px; color: var(--green); }

.platform-chip {
  position: absolute;
  top: 11px;
  inset-inline-end: 11px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 7px;
  font-family: var(--mono);
  font-size: 0.62rem;
  color: #cfe9d9;
  background: rgba(4, 15, 9, 0.66);
  border: 1px solid rgba(146, 255, 183, 0.16);
  backdrop-filter: blur(6px);
  max-width: 46%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-body { display: flex; flex-direction: column; gap: 8px; padding: 15px 16px 14px; flex: 1; }
.card-title { font-size: 1rem; line-height: 1.65; font-weight: 700; margin: 0; }
.card-title a { text-decoration: none; color: var(--text); transition: color 0.2s; }
.post-card:hover .card-title a { color: var(--green-soft); }
.card-summary {
  color: var(--muted);
  font-size: 0.81rem;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.9em;
}
.card-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(146, 255, 183, 0.075);
}
.mini-author {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-2);
  font-size: 0.76rem;
  text-decoration: none;
  min-width: 0;
}
.mini-author span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-author:hover { color: var(--green); }
.card-stats { display: flex; gap: 10px; color: var(--dim); font-family: var(--mono); font-size: 0.7rem; flex: none; }
.card-stats span { display: inline-flex; align-items: center; gap: 3px; }
.card-stats .ic { width: 13px; height: 13px; }

/* -------------------------------- يان تاختى -------------------------------- */
.rail { display: flex; flex-direction: column; gap: 15px; position: sticky; top: 96px; }
.rail-card {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 27, 18, 0.62), rgba(6, 18, 11, 0.55));
  padding: 17px;
  backdrop-filter: blur(8px);
}
.rail-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 13px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
}
.rail-title .ic { width: 15px; height: 15px; color: var(--green); }

.rail-profile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 9px; }
.rail-profile .name { font-weight: 700; font-size: 0.95rem; }
.rail-profile .site { color: var(--dim); font-size: 0.72rem; }
.rail-profile .stats { display: flex; gap: 16px; margin-top: 3px; }
.rail-profile .stats b { display: block; font-family: var(--mono); font-size: 0.95rem; color: var(--green); }
.rail-profile .stats span { font-size: 0.65rem; color: var(--dim); }
.rail-profile .btn { margin-top: 6px; }

.cat-list { display: flex; flex-direction: column; gap: 4px; }
.cat-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  border-radius: 9px;
  color: var(--text-2);
  font-size: 0.82rem;
  text-decoration: none;
  transition: 0.2s;
}
.cat-row .ic { width: 16px; height: 16px; color: var(--dim); }
.cat-row:hover, .cat-row.is-active { background: rgba(94, 242, 160, 0.08); color: var(--text); }
.cat-row .n { margin-inline-start: auto; font-family: var(--mono); font-size: 0.68rem; color: var(--dim); }
.cat-row.is-active .ic { color: var(--green); }

.member-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 4px;
  text-decoration: none;
  color: var(--text-2);
  font-size: 0.8rem;
  border-radius: 8px;
}
.member-row:hover { color: var(--green); background: rgba(94, 242, 160, 0.05); }
.member-row small { margin-inline-start: auto; font-size: 0.65rem; color: var(--dim); }

.tip-card { position: relative; overflow: hidden; }
.tip-card .quote { color: var(--text-2); font-size: 0.82rem; line-height: 1.95; }
.tip-card .quote em { color: var(--green); font-style: normal; }
.tip-card .sig { margin-top: 10px; font-family: var(--mono); font-size: 0.64rem; color: var(--dim); }
.tip-card .ic-big {
  position: absolute;
  inset-inline-end: -12px;
  bottom: -18px;
  width: 90px;
  height: 90px;
  color: rgba(94, 242, 160, 0.07);
  stroke-width: 1;
}

/* -------------------------------- بوش ھالەت -------------------------------- */
.empty {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 58px 24px;
  text-align: center;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-lg);
  background: rgba(7, 20, 13, 0.4);
  color: var(--muted);
}
.empty .ic { width: 34px; height: 34px; color: var(--dim); stroke-width: 1.4; }
.empty b { font-size: 1rem; color: var(--text-2); }
.empty p { font-size: 0.82rem; max-width: 40ch; line-height: 1.8; }

.load-more { display: flex; justify-content: center; margin-top: 24px; }

.skeleton {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(100deg, rgba(126, 231, 151, 0.045) 20%, rgba(126, 231, 151, 0.10) 40%, rgba(126, 231, 151, 0.045) 60%);
  background-size: 220% 100%;
  animation: shimmer 1.6s linear infinite;
  min-height: 320px;
}

/* ==========================================================================
   يوللانما تەپسىلاتى
   ========================================================================== */
.crumbs { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 0.76rem; color: var(--dim); margin-bottom: 15px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--green); }
.crumbs .sep { opacity: 0.45; }

.post-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid var(--line-2);
  min-height: 330px;
  display: flex;
  align-items: flex-end;
  background: #07180f;
  box-shadow: var(--shadow-card);
}
.post-hero > img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}
.post-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(3, 11, 7, 0.97) 2%, rgba(3, 11, 7, 0.52) 48%, rgba(3, 11, 7, 0.42) 100%);
}
.post-hero-inner { position: relative; z-index: 2; width: 100%; padding: clamp(22px, 3.4vw, 40px); }
.post-kicker { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 13px; }
.post-title { font-size: clamp(25px, 3.1vw, 41px); line-height: 1.4; font-weight: 800; max-width: 26ch; margin: 0; }
.post-sub { margin: 10px 0 0; color: var(--text-2); font-size: 0.96rem; line-height: 1.9; max-width: 66ch; }
.post-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.8rem;
}
.post-meta-row .mini-author { font-size: 0.84rem; }
.post-meta-row .mini-author .name { color: var(--text); font-weight: 600; }
.post-meta-row .mstat { display: inline-flex; align-items: center; gap: 5px; }
.post-meta-row .ic { width: 15px; height: 15px; color: var(--dim); }

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}
.post-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.post-aside { display: flex; flex-direction: column; gap: 15px; position: sticky; top: 96px; }

.panel {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 27, 18, 0.62), rgba(6, 18, 11, 0.58));
  padding: clamp(18px, 2.4vw, 26px);
}
.panel-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 15px;
  font-size: 0.98rem;
  font-weight: 800;
}
.panel-title .ic { width: 18px; height: 18px; color: var(--green); }
.panel-title .count { font-family: var(--mono); font-size: 0.72rem; color: var(--dim); font-weight: 500; }

.download-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(94, 242, 160, 0.28);
  background:
    radial-gradient(320px 180px at 100% 0%, rgba(94, 242, 160, 0.13), transparent 70%),
    linear-gradient(160deg, rgba(12, 38, 24, 0.92), rgba(6, 19, 12, 0.96));
  box-shadow: 0 30px 70px -46px rgba(94, 242, 160, 0.4);
}
.dl-head { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.dl-head .ic { width: 18px; height: 18px; color: var(--green); }
.dl-head b { font-size: 0.92rem; }
.dl-head .chip { margin-inline-start: auto; }

.dl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 16px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(120deg, #a8ff9e, #5ef2a0 48%, #3ee0c0);
  color: #03160c;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 16px 40px -16px rgba(94, 242, 160, 0.7);
  transition: 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}
.dl-btn:hover { transform: translateY(-2px); box-shadow: 0 22px 50px -16px rgba(94, 242, 160, 0.85); }
.dl-btn .ic { width: 20px; height: 20px; stroke-width: 2; }
.dl-btn .meta { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.dl-btn .meta b { font-size: 0.98rem; line-height: 1.3; }
.dl-btn .meta small { font-size: 0.68rem; font-weight: 600; opacity: 0.68; }

.dl-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  margin-top: 15px;
  font-size: 0.76rem;
}
.dl-meta div { display: flex; flex-direction: column; gap: 1px; }
.dl-meta span { color: var(--dim); font-size: 0.68rem; }
.dl-meta b { color: var(--text-2); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.dl-actions { display: flex; gap: 8px; margin-top: 14px; }
.dl-actions .btn { flex: 1; }
.like-btn.is-on { color: var(--green); border-color: rgba(94, 242, 160, 0.45); background: rgba(94, 242, 160, 0.1); }
.like-btn.is-on .ic { fill: rgba(94, 242, 160, 0.28); color: var(--green); }

.dl-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid rgba(94, 242, 160, 0.12);
  color: var(--dim);
  font-size: 0.7rem;
  line-height: 1.7;
}
.dl-note .ic { width: 14px; height: 14px; color: rgba(94, 242, 160, 0.6); margin-top: 2px; }

.author-card { display: flex; flex-direction: column; gap: 10px; }
.author-card .top { display: flex; align-items: center; gap: 11px; }
.author-card .who b { display: block; font-size: 0.92rem; line-height: 1.4; }
.author-card .who small { color: var(--dim); font-family: var(--mono); font-size: 0.68rem; }
.author-card .bio { color: var(--muted); font-size: 0.78rem; line-height: 1.85; }
.author-card .btn { margin-top: 2px; }

.info-list { display: flex; flex-direction: column; gap: 2px; }
.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(146, 255, 183, 0.06);
  font-size: 0.78rem;
}
.info-row:last-child { border-bottom: 0; }
.info-row span { color: var(--dim); }
.info-row b { color: var(--text-2); font-weight: 600; text-align: end; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gallery button {
  border: 1px solid var(--line);
  padding: 0;
  border-radius: 11px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0a1e13;
  cursor: zoom-in;
  transition: 0.3s;
}
.gallery button:hover { border-color: var(--line-3); box-shadow: 0 0 30px -12px rgba(94, 242, 160, 0.5); }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.45s var(--ease); }
.gallery button:hover img { transform: scale(1.05); }

/* -------------------------------- with commentary -------------------------------- */
.prose { color: var(--text-2); font-size: 0.94rem; line-height: 2.05; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--text); line-height: 1.55; margin: 1.5em 0 0.55em; font-weight: 800; }
.prose h1 { font-size: 1.3rem; }
.prose h2 { font-size: 1.16rem; position: relative; padding-inline-start: 13px; }
.prose h2::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.4em;
  bottom: 0.4em;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(var(--green), var(--teal));
}
.prose h3 { font-size: 1.03rem; color: var(--green-soft); }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { margin: 0 0 1em; padding-inline-start: 1.35em; }
.prose li { margin: 0.32em 0; }
.prose li::marker { color: var(--green); }
.prose strong { color: var(--text); font-weight: 700; }
.prose em { color: var(--green-soft); }
.prose code {
  font-family: var(--mono);
  font-size: 0.84em;
  padding: 0.1em 0.4em;
  border-radius: 6px;
  background: rgba(94, 242, 160, 0.08);
  border: 1px solid var(--line);
  color: var(--green-soft);
  direction: ltr;
  unicode-bidi: isolate;
}
.prose a { color: var(--green); text-decoration: none; border-bottom: 1px dashed rgba(94, 242, 160, 0.38); }
.prose a:hover { border-bottom-style: solid; }
.prose blockquote {
  margin: 1em 0;
  padding: 11px 16px;
  border-inline-start: 3px solid var(--green);
  border-radius: 9px;
  background: rgba(94, 242, 160, 0.05);
  color: var(--muted);
}
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 1.6em 0; }

/* -------------------------------- باھالار -------------------------------- */
.comments { display: flex; flex-direction: column; gap: 4px; }
.comment {
  display: flex;
  gap: 11px;
  padding: 13px 2px;
  border-bottom: 1px solid rgba(146, 255, 183, 0.06);
}
.comment:last-child { border-bottom: 0; }
.comment-body { flex: 1; min-width: 0; }
.comment-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.8rem; }
.comment-head b { color: var(--text); font-weight: 700; }
.comment-head time { color: var(--dim); font-size: 0.69rem; }
.comment-head .del {
  margin-inline-start: auto;
  border: 0;
  background: none;
  color: var(--dim);
  font-size: 0.7rem;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 6px;
}
.comment-head .del:hover { color: var(--danger); background: rgba(255, 143, 122, 0.08); }
.comment-text { color: var(--text-2); font-size: 0.86rem; line-height: 1.9; margin-top: 3px; white-space: pre-wrap; overflow-wrap: anywhere; }

.comment-form { display: grid; gap: 9px; margin-top: 16px; }
.comment-form .textarea { min-height: 92px; }
.comment-form .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.comment-form .hint { font-size: 0.72rem; color: var(--dim); }
.login-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px dashed var(--line-2);
  background: rgba(94, 242, 160, 0.04);
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 14px;
  flex-wrap: wrap;
}

/* ==========================================================================
   تەھرىرلىگۈچ
   ========================================================================== */
.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}
.editor-form { display: flex; flex-direction: column; gap: 16px; }
.form-card {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 27, 18, 0.64), rgba(6, 18, 11, 0.58));
  padding: clamp(18px, 2.4vw, 26px);
}
.form-card .sec-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.form-card .sec-num {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  background: rgba(94, 242, 160, 0.06);
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--green);
  flex: none;
}
.form-card .sec-head b { font-size: 0.95rem; }
.form-card .sec-head small { color: var(--dim); font-size: 0.72rem; margin-inline-start: auto; }

.editor-aside { display: flex; flex-direction: column; gap: 15px; position: sticky; top: 96px; }
.preview-card { overflow: hidden; }
.preview-cover { position: relative; aspect-ratio: 16 / 9; background: radial-gradient(circle at 30% 25%, #123c27, #06150d 75%); }
.preview-cover img { width: 100%; height: 100%; object-fit: cover; }
.preview-cover .cover-fallback { font-size: 2.4rem; }
.preview-body { padding: 14px; }
.preview-body h3 { font-size: 0.95rem; margin: 0 0 5px; line-height: 1.5; }
.preview-body p { color: var(--muted); font-size: 0.77rem; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.preview-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 9px; }

.cat-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cat-choice {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 13px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(4, 14, 9, 0.55);
  color: var(--muted);
  cursor: pointer;
  text-align: start;
  font: inherit;
  transition: 0.2s;
}
.cat-choice .ic { width: 19px; height: 19px; color: var(--dim); }
.cat-choice b { font-size: 0.82rem; color: var(--text-2); font-weight: 700; }
.cat-choice small { font-size: 0.66rem; color: var(--dim); }
.cat-choice:hover { border-color: var(--line-2); }
.cat-choice.is-active {
  border-color: rgba(94, 242, 160, 0.45);
  background: rgba(94, 242, 160, 0.08);
  box-shadow: 0 0 26px -14px rgba(94, 242, 160, 0.6);
}
.cat-choice.is-active .ic, .cat-choice.is-active b { color: var(--green); }

.dropzone {
  position: relative;
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 150px;
  padding: 20px;
  border: 1.5px dashed var(--line-2);
  border-radius: 14px;
  background: rgba(4, 14, 9, 0.42);
  color: var(--muted);
  text-align: center;
  cursor: pointer;
  transition: 0.25s;
  overflow: hidden;
}
.dropzone:hover, .dropzone.is-drag { border-color: rgba(94, 242, 160, 0.5); background: rgba(94, 242, 160, 0.05); }
.dropzone .ic { width: 26px; height: 26px; color: var(--green); opacity: 0.8; }
.dropzone b { font-size: 0.86rem; color: var(--text-2); }
.dropzone small { font-size: 0.7rem; color: var(--dim); }
.dropzone input[type="file"] { display: none; }
.dropzone.has-image { padding: 0; border-style: solid; min-height: 0; aspect-ratio: 16 / 9; }
.dropzone.has-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dropzone.has-image .dz-overlay {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  background: linear-gradient(0deg, rgba(3, 11, 7, 0.85), transparent);
  color: var(--text-2);
  font-size: 0.72rem;
  opacity: 0;
  transition: 0.25s;
}
.dropzone.has-image:hover .dz-overlay { opacity: 1; }

.progress {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 3px;
  background: rgba(94, 242, 160, 0.14);
  overflow: hidden;
}
.progress i { display: block; height: 100%; width: 0; background: var(--green); box-shadow: 0 0 10px var(--green); transition: width 0.2s; }

.gallery-edit { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 9px; }
.gallery-item { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 10; border: 1px solid var(--line); background: #0a1e13; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-item .rm {
  position: absolute;
  top: 5px;
  inset-inline-end: 5px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  border: 1px solid rgba(255, 143, 122, 0.4);
  background: rgba(4, 12, 7, 0.85);
  color: var(--danger);
  cursor: pointer;
  padding: 0;
}
.gallery-item .rm .ic { width: 13px; height: 13px; }
.gallery-add {
  display: grid;
  place-items: center;
  gap: 4px;
  aspect-ratio: 16 / 10;
  border: 1.5px dashed var(--line-2);
  border-radius: 10px;
  background: rgba(4, 14, 9, 0.4);
  color: var(--dim);
  cursor: pointer;
  font-size: 0.68rem;
  transition: 0.2s;
}
.gallery-add:hover { border-color: rgba(94, 242, 160, 0.45); color: var(--green); }
.gallery-add .ic { width: 18px; height: 18px; }

.tag-input { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(3, 11, 7, 0.72); }
.tag-input input { flex: 1; min-width: 120px; border: 0; background: none; color: var(--text); font: inherit; font-size: 0.85rem; padding: 3px; outline: none; }
.tag-input .tag button { border: 0; background: none; color: var(--dim); cursor: pointer; padding: 0; display: inline-grid; place-items: center; }
.tag-input .tag button:hover { color: var(--danger); }
.tag-input .tag .ic { width: 11px; height: 11px; }

.download-modes { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: rgba(4, 14, 9, 0.5); width: fit-content; }
.download-modes button { padding: 7px 13px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: inherit; font-size: 0.78rem; font-weight: 600; cursor: pointer; }
.download-modes button.is-active { background: rgba(94, 242, 160, 0.12); color: var(--text); }

.file-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid rgba(94, 242, 160, 0.25);
  background: rgba(94, 242, 160, 0.05);
}
.file-pill .ic { width: 20px; height: 20px; color: var(--green); }
.file-pill .meta { min-width: 0; }
.file-pill b { display: block; font-size: 0.8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-pill small { font-size: 0.68rem; color: var(--dim); }
.file-pill .rm { margin-inline-start: auto; border: 0; background: none; color: var(--dim); cursor: pointer; padding: 4px; border-radius: 6px; }
.file-pill .rm:hover { color: var(--danger); }

.editor-preview .preview-body h3 { color: var(--text); }
.preview-note { color: var(--dim); font-size: 0.7rem; line-height: 1.7; padding: 0 4px; }

/* ==========================================================================
   شەخسىي بەت
   ========================================================================== */
.profile { --accent: #5ef2a0; }
.profile-cover {
  position: relative;
  height: clamp(190px, 26vw, 300px);
  border-radius: var(--r-xl);
  border: 1px solid var(--line-2);
  overflow: hidden;
  background:
    radial-gradient(500px 260px at 82% 10%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 70%),
    linear-gradient(120deg, #0d2c1c, #06150d 72%);
  box-shadow: var(--shadow-card);
}
.profile-cover > img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; display: block; }
.profile-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(4, 13, 8, 0.92) 2%, rgba(4, 13, 8, 0.12) 60%),
    radial-gradient(circle at 18% 22%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 55%);
}
.cover-deco { position: absolute; inset: 0; pointer-events: none; opacity: 0.6; }
.cover-deco span {
  position: absolute;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}
.cover-deco span:nth-child(1) { width: 220px; height: 220px; inset-inline-start: 6%; top: -60px; }
.cover-deco span:nth-child(2) { width: 320px; height: 320px; inset-inline-end: 12%; bottom: -160px; border-style: dashed; opacity: 0.7; }
.cover-deco span:nth-child(3) { width: 120px; height: 120px; inset-inline-end: 30%; top: 20px; opacity: 0.5; }

.profile-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 20px;
  padding-inline: clamp(18px, 3vw, 34px);
  margin-top: -62px;
  flex-wrap: wrap;
}
.profile-avatar {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  border: 4px solid #06140c;
  box-shadow: 0 0 0 1px var(--line-2), 0 18px 40px -18px #000, 0 0 44px -18px var(--accent);
  flex: none;
}
.profile-id { flex: 1; min-width: 240px; padding-bottom: 6px; }
.profile-site-title { font-size: clamp(22px, 2.8vw, 34px); line-height: 1.4; font-weight: 800; margin: 0; }
.profile-site-title .accent { color: var(--accent); }
.profile-tagline { color: var(--text-2); font-size: 0.9rem; margin-top: 4px; }
.profile-person { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; font-size: 0.8rem; color: var(--muted); }
.profile-person b { color: var(--text); }
.profile-person .handle { font-family: var(--mono); color: var(--dim); direction: ltr; }
.profile-actions { display: flex; gap: 8px; padding-bottom: 8px; flex-wrap: wrap; }

.profile-stats {
  display: flex;
  gap: clamp(16px, 2.6vw, 36px);
  margin-top: 22px;
  padding: 16px clamp(18px, 3vw, 34px);
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(8, 22, 14, 0.5);
  flex-wrap: wrap;
}
.profile-stat { min-width: 72px; }
.profile-stat b { display: block; font-family: var(--mono); font-size: 1.18rem; color: var(--accent); line-height: 1.2; }
.profile-stat span { font-size: 0.7rem; color: var(--dim); }

.owner-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px dashed color-mix(in srgb, var(--accent) 35%, transparent);
  background: color-mix(in srgb, var(--accent) 5%, transparent);
  color: var(--muted);
  font-size: 0.84rem;
  flex-wrap: wrap;
}
.owner-banner .ic { width: 18px; height: 18px; color: var(--accent); }
.owner-banner .spacer { flex: 1; }

.tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 26px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  position: relative;
  padding: 12px 16px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.2s;
}
.tabs button:hover { color: var(--text-2); }
.tabs button.is-active { color: var(--text); border-bottom-color: var(--accent, var(--green)); }
.tabs .count { font-family: var(--mono); font-size: 0.68rem; opacity: 0.55; margin-inline-start: 5px; }

.tab-panel { padding-top: 22px; }
.tab-panel[hidden] { display: none; }

.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.about-card { border-radius: var(--r-lg); border: 1px solid var(--line); background: rgba(9, 23, 15, 0.5); padding: 22px; }
.about-card h3 { font-size: 0.95rem; margin-bottom: 10px; }
.about-card p { color: var(--text-2); font-size: 0.88rem; line-height: 2; white-space: pre-wrap; }
.about-facts { display: flex; flex-direction: column; gap: 2px; }

/* ==========================================================================
   تەڭشەك
   ========================================================================== */
.settings-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }
.settings-form { display: flex; flex-direction: column; gap: 16px; }
.settings-aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 15px; }

.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--c);
  cursor: pointer;
  padding: 0;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.35), 0 4px 14px -6px var(--c);
  transition: 0.2s;
}
.swatch:hover { transform: translateY(-2px); }
.swatch.is-active { border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.14), 0 0 24px -4px var(--c); }

.avatar-upload { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.avatar-upload .avatar { box-shadow: 0 0 0 3px #06140c, 0 0 0 4px var(--line-2), 0 12px 30px -14px #000; }
.upload-row { display: flex; gap: 8px; flex-wrap: wrap; }

.pw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ==========================================================================
   ياردەمچى ئېلېمېنتلار
   ========================================================================== */
.toast-root {
  position: fixed;
  bottom: 26px;
  inset-inline: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  padding-inline: 16px;
}
.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: min(92vw, 480px);
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: rgba(7, 20, 13, 0.97);
  color: var(--text);
  font-size: 0.85rem;
  line-height: 1.6;
  box-shadow: 0 24px 60px -24px #000;
  pointer-events: auto;
  animation: toastIn 0.28s var(--ease);
}
.toast .ic { width: 17px; height: 17px; color: var(--green); flex: none; }
.toast--err { border-color: rgba(255, 143, 122, 0.4); }
.toast--err .ic { color: var(--danger); }
.toast.is-out { animation: toastOut 0.25s forwards; }

.modal-root { position: fixed; inset: 0; z-index: 250; display: none; }
.modal-root.is-open { display: block; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 5, 0.76);
  backdrop-filter: blur(7px);
  animation: fadeIn 0.2s;
}
.modal-panel {
  position: relative;
  width: min(92vw, 520px);
  margin: min(12vh, 100px) auto;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(10, 27, 18, 0.99), rgba(6, 16, 10, 0.99));
  box-shadow: 0 45px 110px -32px #000;
  animation: modalIn 0.24s var(--ease);
  max-height: 76vh;
  overflow: auto;
}
.modal-panel--wide { width: min(94vw, 1100px); padding: 0; background: transparent; border: 0; box-shadow: none; overflow: visible; }
.modal-close {
  position: absolute;
  top: 13px;
  inset-inline-end: 13px;
  z-index: 3;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  background: rgba(4, 12, 7, 0.8);
  color: var(--muted);
  cursor: pointer;
}
.modal-close:hover { color: var(--text); border-color: var(--line-3); }
.modal-close .ic { width: 17px; height: 17px; }
.modal-panel h3 { font-size: 1.05rem; margin-bottom: 8px; padding-inline-end: 30px; }
.modal-panel p { color: var(--muted); font-size: 0.87rem; line-height: 1.9; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }

.lightbox-img { width: 100%; border-radius: 14px; display: block; background: #06140c; }

/* -------------------------------- بوت -------------------------------- */
.boot {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 17px;
  background: #040f09;
  transition: opacity 0.5s, visibility 0.5s;
}
.boot.is-done { opacity: 0; visibility: hidden; }
.boot-mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  border: 1px solid var(--line-2);
  color: var(--green);
  background: rgba(94, 242, 160, 0.05);
  box-shadow: 0 0 60px -12px rgba(94, 242, 160, 0.5);
  animation: bootPulse 2.2s infinite;
}
.boot-mark .ic { width: 30px; height: 30px; }
.boot-title { font-family: var(--mono); font-size: 0.98rem; letter-spacing: 0.32em; color: var(--text); }
.boot-title span { color: var(--green); }
.boot-bar { width: 180px; height: 2px; border-radius: 2px; background: rgba(126, 231, 151, 0.12); overflow: hidden; }
.boot-bar i {
  display: block;
  width: 40%;
  height: 100%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  animation: bootLoad 1.3s var(--ease) infinite;
}
.boot-text { color: var(--dim); font-size: 0.76rem; }

/* -------------------------------- خاتالىق بېتى -------------------------------- */
.error-page {
  min-height: 60vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  text-align: center;
  padding: 40px 20px;
}
.error-page .code { font-family: var(--mono); font-size: 4rem; color: var(--green); opacity: 0.35; line-height: 1; }
.error-page h1 { font-size: 1.4rem; }
.error-page p { color: var(--muted); font-size: 0.88rem; max-width: 46ch; }

/* -------------------------------- ھەرىكەتلەر -------------------------------- */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes dropIn { from { opacity: 0; transform: translateY(-6px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }
@keyframes shimmer { to { background-position: -220% 0; } }
@keyframes shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}
@keyframes bootIn { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@keyframes bootPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(94, 242, 160, 0.18), 0 0 50px -14px rgba(94, 242, 160, 0.5); }
  50% { box-shadow: 0 0 0 12px rgba(94, 242, 160, 0), 0 0 70px -10px rgba(94, 242, 160, 0.7); }
}
@keyframes bootLoad {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(320%); }
}
@keyframes grantedBar { from { width: 0; } to { width: 100%; } }
@keyframes orbFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(3%, 4%, 0) scale(1.05); }
}
@keyframes glowDrift {
  from { opacity: 0.7; transform: translateY(0); }
  to { opacity: 1; transform: translateY(-14px); }
}
@keyframes glitchA {
  0%, 92%, 100% { opacity: 0; transform: none; clip-path: inset(0 0 100% 0); }
  93% { opacity: 0.55; transform: translate(2px, -2px); clip-path: inset(0 0 62% 0); }
  94% { opacity: 0; }
  95% { opacity: 0.5; transform: translate(-3px, 1px); clip-path: inset(38% 0 20% 0); }
  96% { opacity: 0; }
}
@keyframes glitchB {
  0%, 92%, 100% { opacity: 0; transform: none; clip-path: inset(100% 0 0 0); }
  93% { opacity: 0.45; transform: translate(-2px, 2px); clip-path: inset(55% 0 0 0); }
  94% { opacity: 0; }
  95% { opacity: 0.4; transform: translate(3px, -1px); clip-path: inset(15% 0 55% 0); }
  96% { opacity: 0; }
}

/* ==========================================================================
   ماسلىشىش
   ========================================================================== */
@media (max-width: 1120px) {
  .forum-layout, .post-layout, .editor-layout, .settings-layout { grid-template-columns: minmax(0, 1fr); }
  .rail, .post-aside, .editor-aside, .settings-aside { position: static; }
  .rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .post-aside { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .post-aside .download-card { grid-row: span 2; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .landing-main { grid-template-columns: minmax(0, 1fr); gap: 34px; padding-top: 26px; }
  .auth-wrap { max-width: 520px; width: 100%; margin: 0 auto; }
  .hero-orb { width: 70vw; opacity: 0.55; inset-inline-start: 12%; top: -30%; }
  .hero-title { text-align: right; }
}

@media (max-width: 760px) {
  .topbar { height: 66px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-text small { display: none; }
  .mainnav { display: none; }
  .view { padding-top: 66px; }
  .shell { padding-top: 22px; padding-bottom: 96px; }
  .dock {
    display: flex;
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 70;
    height: 62px;
    padding-bottom: env(safe-area-inset-bottom, 0);
    background: rgba(4, 14, 9, 0.96);
    border-top: 1px solid var(--line-2);
    backdrop-filter: blur(16px);
  }
  .dock a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--dim);
    font-size: 0.64rem;
    text-decoration: none;
    transition: 0.2s;
  }
  .dock a .ic { width: 20px; height: 20px; }
  .dock a.is-active { color: var(--green); }
  .dock a.is-active .ic { filter: drop-shadow(0 0 8px rgba(94, 242, 160, 0.6)); }
  .rail { grid-template-columns: 1fr; }
  .post-aside { grid-template-columns: 1fr; }
  .welcome { padding: 20px; }
  .welcome-stats { width: 100%; justify-content: space-between; }
  .welcome-stat { padding-inline-start: 0; border-inline-start: 0; }
  .profile-head { margin-top: -46px; gap: 14px; }
  .profile-avatar { width: 92px; height: 92px; }
  .profile-actions { width: 100%; padding-bottom: 0; }
  .landing { padding-bottom: 10px; }
  .landing-footer { justify-content: center; text-align: center; }
  .nav-status { display: none; }
  .form-grid, .form-grid--3, .pw-grid { grid-template-columns: 1fr; }
  .cat-choices { grid-template-columns: 1fr; }
  .toast-root { bottom: 76px; }
}

@media (max-width: 560px) {
  .post-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(38px, 12vw, 56px); }
  .hero-stats { gap: 18px; }
  .auth-boot { display: none; }
  .auth-form { padding-top: 15px; }
  .dl-meta { grid-template-columns: 1fr; }
  .welcome-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .welcome-stat b { font-size: 1rem; }
  .toolbar { gap: 8px; }
  .segmented { width: 100%; justify-content: space-between; }
  .sort-wrap { width: 100%; }
  .sort-wrap .select { flex: 1; }
  .profile-cover { height: 170px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  #wind-canvas { display: none; }
}
