/* ============================================================
   AKKOL 2026 — neon dusk redesign v2
   Orange / obsidian / amber glow · mobile-first · living UI
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Syne:wght@700;800&display=swap');

:root {
  --bg: #05040a;
  --bg-2: #0c0a12;
  --bg-glass: rgba(255, 255, 255, 0.055);
  --bg-glass-2: rgba(12, 10, 18, 0.82);
  --border-glass: rgba(255, 150, 60, 0.2);
  --text-primary: #faf3eb;
  --text-secondary: #cbb9a8;
  --text-muted: #7a6d62;
  --accent: #ff7a18;
  --accent-2: #ffb347;
  --accent-3: #ff4d12;
  --accent-glow: rgba(255, 122, 24, 0.55);
  --red: #ff5a4a;
  --green: #3ee08a;
  --yellow: #ffd166;
  --blue: #5aa8ff;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 20px 56px rgba(0, 0, 0, 0.55);
  --font: 'Manrope', system-ui, -apple-system, sans-serif;
  --display: 'Syne', 'Manrope', sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font) !important;
  background: var(--bg) !important;
  color: var(--text-primary) !important;
  overflow-x: hidden;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

/* ---------- living background ---------- */
.fx-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 8% -12%, rgba(255, 122, 24, 0.22), transparent 55%),
    radial-gradient(900px 600px at 108% 0%, rgba(255, 50, 20, 0.14), transparent 50%),
    radial-gradient(900px 520px at 50% 118%, rgba(255, 170, 60, 0.12), transparent 55%),
    linear-gradient(180deg, #05040a 0%, #0b0912 50%, #07060c 100%);
}
.fx-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(56px);
  opacity: 0.65;
  mix-blend-mode: screen;
  animation: orbFloat 18s ease-in-out infinite;
  will-change: transform;
}
.fx-orb-1 {
  width: 48vw; height: 48vw; max-width: 580px; max-height: 580px;
  left: -12%; top: -14%;
  background: radial-gradient(circle, rgba(255,122,24,0.7), transparent 70%);
}
.fx-orb-2 {
  width: 40vw; height: 40vw; max-width: 460px; max-height: 460px;
  right: -14%; top: 14%;
  background: radial-gradient(circle, rgba(255,70,40,0.45), transparent 70%);
  animation-delay: -6s;
  animation-duration: 22s;
}
.fx-orb-3 {
  width: 56vw; height: 56vw; max-width: 700px; max-height: 700px;
  left: 16%; bottom: -28%;
  background: radial-gradient(circle, rgba(255,180,70,0.28), transparent 70%);
  animation-delay: -11s;
  animation-duration: 26s;
}
.fx-grid {
  position: absolute; inset: -25%;
  background-image:
    linear-gradient(rgba(255,122,24,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,122,24,0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 28%, #000 18%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 28%, #000 18%, transparent 72%);
  animation: gridDrift 40s linear infinite;
  opacity: 0.65;
}
#fx-stars {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0.95;
}
@keyframes orbFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(6%, 8%, 0) scale(1.12); }
}
@keyframes gridDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-48px, -48px, 0); }
}

.hdr, .bnav, .main, .ftr { position: relative; z-index: 2; }

/* ---------- glass ---------- */
.glass {
  background: linear-gradient(165deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)) !important;
  border: 1px solid var(--border-glass) !important;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.08) !important;
  backdrop-filter: blur(22px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(160%) !important;
  border-radius: var(--radius) !important;
}

/* ---------- type ---------- */
.h1, .hero .h1, .guides-hero h1, .pb-hero h1, .helper-hero h1 {
  font-family: var(--display) !important;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff8f0 8%, #ffb347 48%, #ff7a18 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}
.orange { color: var(--accent) !important; -webkit-text-fill-color: var(--accent) !important; }
.p { color: var(--text-secondary) !important; }

/* ---------- header ---------- */
.hdr {
  height: 64px !important;
  background: rgba(5, 4, 10, 0.82) !important;
  border-bottom: 1px solid rgba(255, 122, 24, 0.18) !important;
  backdrop-filter: blur(26px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(26px) saturate(180%) !important;
  box-shadow: 0 10px 36px rgba(0,0,0,0.28);
}
.hdr-in { gap: 8px !important; max-width: 960px !important; }
.logo i {
  font-size: 22px !important;
  color: var(--accent) !important;
  filter: drop-shadow(0 0 12px var(--accent-glow)) !important;
  animation: logoPulse 3.5s ease-in-out infinite;
}
@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 8px var(--accent-glow)); }
  50% { filter: drop-shadow(0 0 20px var(--accent-glow)); }
}
.logo-t {
  font-family: var(--display) !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
}
.logo-s { color: var(--accent-2) !important; opacity: 0.85; font-size: 11px; }

.sound-toggle {
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
  background: rgba(255,122,24,0.12);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: 0.22s var(--ease);
  flex-shrink: 0;
  margin-left: auto;
}
.sound-toggle:hover {
  box-shadow: 0 0 24px var(--accent-glow);
  transform: translateY(-1px);
}
.sound-toggle.off { opacity: 0.45; color: var(--text-muted); box-shadow: none; }

.btn-login {
  border-radius: 999px !important;
  padding: 8px 16px !important;
  background: linear-gradient(135deg, rgba(255,122,24,0.28), rgba(255,122,24,0.1)) !important;
  box-shadow: 0 0 0 1px rgba(255,122,24,0.35), 0 8px 24px rgba(255,122,24,0.16) !important;
  color: var(--accent-2) !important;
  font-weight: 700 !important;
  transition: 0.2s var(--ease) !important;
}
.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(255,122,24,0.55), 0 14px 30px rgba(255,122,24,0.25) !important;
}

.usr { margin-left: 0 !important; gap: 8px !important; }
.ava {
  box-shadow: 0 0 0 2px rgba(255,122,24,0.4), 0 0 18px rgba(255,122,24,0.18) !important;
}
.un { font-weight: 700; }
.ur { color: var(--accent-2) !important; opacity: 0.85; font-size: 11px; border: none !important; outline: none !important; box-shadow: none !important; background: transparent !important; }
.ur.ur-r7 {
  color: #ff1515 !important;
  opacity: 1 !important;
  font-weight: 900 !important;
  border: none !important;
  background: none !important;
  text-shadow: 0 0 8px rgba(255,0,0,0.9), 0 0 20px rgba(180,0,0,0.55) !important;
  animation: rolePulse7 1.25s ease-in-out infinite !important;
}
.ur.ur-r1 { color: #4da3ff !important; animation: rolePulse1 1.8s ease-in-out infinite !important; }
.ur.ur-r2 { color: #ffd84d !important; animation: rolePulse2 1.8s ease-in-out infinite !important; }
.ur.ur-r3 { color: #3dff8a !important; animation: rolePulse3 1.8s ease-in-out infinite !important; }
.ur.ur-r4 { color: #ff79c0 !important; animation: rolePulse4 1.8s ease-in-out infinite !important; }
.ur.ur-r5 { color: #ff3b3b !important; animation: rolePulse5 1.6s ease-in-out infinite !important; }
.ur.ur-r6 { color: #ff6b5a !important; animation: rolePulse6 1.6s ease-in-out infinite !important; }


/* ---------- buttons ---------- */
.btn, button.btn {
  border-radius: 14px !important;
  font-family: var(--font) !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  transition: transform 0.18s var(--ease), box-shadow 0.18s, background 0.18s, filter 0.18s !important;
  position: relative;
  overflow: hidden;
}
.btn.primary {
  background: linear-gradient(135deg, #ff9a3c 0%, #ff6a00 100%) !important;
  color: #1a0e04 !important;
  border: 0 !important;
  box-shadow: 0 10px 28px rgba(255,122,24,0.4), inset 0 1px 0 rgba(255,255,255,0.35) !important;
}
.btn.primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 16px 42px rgba(255,122,24,0.55) !important;
  background: linear-gradient(135deg, #ffb347, #ff7a18) !important;
}
.btn.outline {
  color: var(--accent-2) !important;
  border: 1px solid rgba(255,122,24,0.5) !important;
  background: rgba(255,122,24,0.09) !important;
}
.btn.outline:hover {
  background: rgba(255,122,24,0.16) !important;
  box-shadow: 0 0 22px rgba(255,122,24,0.22);
}
.btn:active, .btn.primary:active { transform: scale(0.97) !important; }
.btn.sm { border-radius: 12px !important; padding: 8px 12px !important; font-size: 13px !important; }

/* ---------- mobile bottom nav: 4 primary + «Ещё» ---------- */
.bnav {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  top: auto !important;
  z-index: 300 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  display: flex !important;
  /* row first in DOM stays at bottom; panel expands above */
  flex-direction: column-reverse !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  justify-content: flex-end !important;
  gap: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  background: rgba(5, 4, 10, 0.94) !important;
  border-top: 1px solid rgba(255,122,24,0.28) !important;
  border-bottom: none !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  box-shadow:
    0 -12px 40px rgba(0,0,0,0.55),
    0 -1px 0 rgba(255,122,24,0.12),
    inset 0 1px 0 rgba(255,255,255,0.04) !important;
}
.bnav-row {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  justify-content: space-around !important;
  gap: 2px !important;
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
  width: 100%;
  box-sizing: border-box;
}
.bnav-i {
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 56px !important;
  min-height: 56px !important;
  padding: 4px 2px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 14px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  color: var(--text-muted) !important;
  font-size: 10px !important;
  font-weight: 650 !important;
  font-family: var(--font) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  background: transparent !important;
  cursor: pointer;
  box-sizing: border-box !important;
  transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s !important;
  position: relative;
  overflow: hidden;
}
.bnav-i:active { transform: scale(0.96); }
.bnav-i.active {
  color: var(--accent) !important;
  background: linear-gradient(165deg, rgba(255,122,24,0.22), rgba(255,122,24,0.08)) !important;
  box-shadow: 0 0 0 1px rgba(255,122,24,0.35), 0 6px 18px rgba(255,122,24,0.18) !important;
}
.bnav-i.active .bnav-ico {
  background: linear-gradient(135deg, rgba(255,122,24,0.45), rgba(255,80,30,0.22)) !important;
  box-shadow: 0 0 16px rgba(255,122,24,0.35), inset 0 1px 0 rgba(255,255,255,0.15);
  border-color: rgba(255,122,24,0.45);
}
.bnav-i.active i {
  filter: drop-shadow(0 0 10px var(--accent-glow)) !important;
  color: #ffe0b8 !important;
}
.bnav-i i {
  font-size: 15px !important;
  line-height: 1 !important;
  transition: filter 0.2s, color 0.2s;
  color: inherit;
}

/* Кнопка — только стрелка */
.bnav-more-btn {
  flex: 0 0 48px !important;
  width: 48px !important;
  min-width: 48px !important;
  max-width: 48px !important;
  height: 56px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
}
.bnav-more-arrow {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255,122,24,0.3), rgba(255,80,30,0.12));
  border: 1px solid rgba(255,122,24,0.45);
  color: #ffe0b8;
  box-shadow: 0 4px 14px rgba(255,122,24,0.2);
  transition: transform 0.28s var(--ease), background 0.2s, box-shadow 0.2s, color 0.2s;
}
.bnav-more-arrow i {
  font-size: 14px !important;
  transition: transform 0.28s var(--ease);
}
.bnav-more-btn:active .bnav-more-arrow { transform: scale(0.94); }
.bnav-more-btn.active .bnav-more-arrow,
.bnav-open .bnav-more-arrow {
  background: linear-gradient(135deg, #ff9a3c, #ff6a00);
  color: #1a0e04;
  box-shadow: 0 6px 18px rgba(255,122,24,0.4);
}
.bnav-open .bnav-more-arrow i { transform: rotate(180deg); }

/* нижний ряд с основными всегда виден */
.bnav-row {
  position: relative !important;
  z-index: 3 !important;
  flex-shrink: 0 !important;
  background: rgba(5, 4, 10, 0.98) !important;
}
.bnav-label {
  font-size: 9.5px !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 100% !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.bnav-ico-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bnav-ico {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  transition: background 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.bnav-badge {
  position: absolute;
  top: -5px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  font-size: 9px !important;
  line-height: 16px;
  text-align: center;
  background: linear-gradient(135deg, #ff7a18, #ff3d00) !important;
  box-shadow: 0 0 12px rgba(255,80,30,0.55);
  font-weight: 800 !important;
  color: #fff !important;
  z-index: 2;
}

/* доп. ряд НАД основными — основные не пропадают */
.bnav-more-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 8px;
  margin: 0;
  border: 0;
  background: rgba(8, 6, 12, 0.98);
  box-sizing: border-box;
  flex-shrink: 0;
  transition:
    max-height 0.36s var(--ease),
    opacity 0.26s ease,
    padding 0.3s var(--ease);
  pointer-events: none;
}
.bnav-open .bnav-more-panel {
  max-height: 200px;
  opacity: 1;
  padding: 10px 8px 8px;
  border-bottom: 1px solid rgba(255,122,24,0.16);
  pointer-events: auto;
}
.bnav-more-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.bnav-more-i {
  height: 56px !important;
  min-height: 56px !important;
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,122,24,0.14) !important;
  border-radius: 14px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  color: var(--text-secondary) !important;
  text-decoration: none !important;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.26s ease,
    transform 0.3s var(--ease),
    background 0.2s,
    border-color 0.2s;
  transition-delay: calc(var(--i, 0) * 0.03s + 0.05s);
}
.bnav-open .bnav-more-i {
  opacity: 1;
  transform: none;
}
.bnav-more-i:active { transform: scale(0.96); }
.bnav-more-i.active {
  color: var(--accent) !important;
  background: linear-gradient(165deg, rgba(255,122,24,0.2), rgba(255,122,24,0.07)) !important;
  border-color: rgba(255,122,24,0.4) !important;
}
.bnav-more-i .bnav-label {
  font-size: 9.5px !important;
  font-weight: 650;
}

/* отступ под нижний ряд (основные всегда на месте) */
body {
  padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)) !important;
}
.main {
  padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)) !important;
}

@media (max-width: 380px) {
  .bnav-i {
    height: 52px !important;
    min-height: 52px !important;
  }
  .bnav-more-btn {
    height: 52px !important;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
  }
  .bnav-more-arrow { width: 32px; height: 32px; border-radius: 10px; }
  .bnav-label { font-size: 9px !important; }
  .bnav-more-grid { grid-template-columns: repeat(3, 1fr); gap: 5px; }
  .bnav-open .bnav-more-panel { max-height: 240px; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important; }
  .main { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important; }
}

/* tablet / desktop — меню тоже внизу */
@media (min-width: 700px) {
  body {
    padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .main {
    padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .bnav {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    flex-direction: column-reverse !important;
    border-top: 1px solid rgba(255,122,24,0.28) !important;
    border-bottom: none !important;
    box-shadow:
      0 -12px 40px rgba(0,0,0,0.45),
      0 -1px 0 rgba(255,122,24,0.12) !important;
  }
  .bnav-row {
    flex-wrap: nowrap !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 10px 20px !important;
    max-width: 920px;
    margin: 0 auto;
  }
  .bnav-i {
    flex: 0 1 120px !important;
    width: auto !important;
    max-width: 140px !important;
    height: 56px !important;
    min-height: 56px !important;
    flex-direction: column !important;
    padding: 6px 10px !important;
    gap: 4px !important;
  }
  .bnav-more-btn {
    flex: 0 0 52px !important;
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    height: 56px !important;
    padding: 0 !important;
  }
  .bnav-label {
    font-size: 11px !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }
  .bnav-i i { font-size: 15px !important; }
  .bnav-ico {
    width: 28px;
    height: 28px;
    border-radius: 10px;
  }
  .bnav-open .bnav-more-panel {
    max-height: 240px;
    padding: 12px 20px 10px;
    border-bottom: 1px solid rgba(255,122,24,0.16);
    border-top: none;
  }
  .bnav-more-grid {
    grid-template-columns: repeat(4, minmax(100px, 1fr));
    max-width: 720px;
    margin: 0 auto;
    gap: 8px;
  }
  .bnav-more-i {
    height: 58px !important;
    min-height: 58px !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding: 6px 8px !important;
    gap: 4px !important;
  }
  .bnav-more-i .bnav-label { font-size: 11px !important; }
}

/* ---------- home ---------- */
.hero {
  position: relative;
  padding: 42px 24px 34px !important;
  border-radius: 28px !important;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(255,122,24,0.16), rgba(255,255,255,0.025) 55%),
    rgba(255,255,255,0.025) !important;
  border: 1px solid var(--border-glass) !important;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.07) !important;
  margin-bottom: 22px !important;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle, rgba(255,122,24,0.22), transparent 65%);
  animation: heroGlow 8s ease-in-out infinite alternate;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto auto -30% -10%;
  width: 50%;
  height: 60%;
  background: radial-gradient(circle, rgba(255,80,40,0.12), transparent 70%);
  animation: heroGlow 10s ease-in-out infinite alternate-reverse;
  pointer-events: none;
}
@keyframes heroGlow {
  from { opacity: 0.5; transform: translate(0,0); }
  to { opacity: 1; transform: translate(-8%, 6%); }
}
.hero .h1 {
  font-size: clamp(28px, 6.5vw, 44px) !important;
  line-height: 1.12 !important;
  margin-bottom: 12px !important;
  position: relative;
}
.hero .p {
  font-size: 15px !important;
  max-width: 44ch;
  margin-inline: auto;
  position: relative;
}
.cta { gap: 10px !important; margin-top: 18px !important; position: relative; }

.stats {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 !important;
  margin-bottom: 20px !important;
}
.stat {
  padding: 18px 10px;
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
  border: 1px solid var(--border-glass);
  transition: transform 0.22s var(--ease), box-shadow 0.22s;
  animation: riseIn 0.6s var(--ease) both;
}
.stat:nth-child(2) { animation-delay: 0.06s; }
.stat:nth-child(3) { animation-delay: 0.12s; }
@keyframes riseIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(255,122,24,0.14);
}
.sn {
  font-family: var(--display) !important;
  font-size: 28px !important;
  font-weight: 800 !important;
  text-shadow: 0 0 26px var(--accent-glow) !important;
  color: var(--accent-2) !important;
  display: block;
}

.cards { gap: 12px !important; }
.card {
  padding: 20px 16px !important;
  border-radius: 22px !important;
  background: linear-gradient(165deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)) !important;
  border: 1px solid var(--border-glass) !important;
  box-shadow: none !important;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s !important;
  animation: riseIn 0.65s var(--ease) both;
}
.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.15s; }
.card:nth-child(4) { animation-delay: 0.2s; }
.card i {
  display: inline-flex !important;
  width: 48px; height: 48px;
  align-items: center; justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,122,24,0.35), rgba(255,80,40,0.16));
  color: #ffe0b8 !important;
  font-size: 20px !important;
  margin-bottom: 12px !important;
  box-shadow: 0 0 24px rgba(255,122,24,0.3);
}
.card h3 {
  font-size: 15px !important;
  font-weight: 750 !important;
  margin-bottom: 6px !important;
}
.card p { font-size: 12.5px !important; color: var(--text-secondary) !important; line-height: 1.45; }
.card:hover {
  transform: translateY(-6px) !important;
  border-color: rgba(255,122,24,0.55) !important;
  box-shadow: 0 20px 44px rgba(255,122,24,0.16) !important;
}

.about {
  border-radius: 22px !important;
  background: linear-gradient(165deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02)) !important;
  border: 1px solid var(--border-glass) !important;
  padding: 20px !important;
}
.about h2 { font-family: var(--display) !important; }

.social-btn {
  border-radius: 16px !important;
  border: 1px solid var(--border-glass) !important;
  background: rgba(255,255,255,0.05) !important;
  transition: 0.22s var(--ease) !important;
  position: relative;
  overflow: hidden;
}
.social-btn:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 14px 30px rgba(255,122,24,0.22) !important;
  border-color: rgba(255,122,24,0.45) !important;
}

/* ---------- forms ---------- */
input, textarea, select, .inp {
  background: rgba(0,0,0,0.4) !important;
  border: 1px solid var(--border-glass) !important;
  color: var(--text-primary) !important;
  border-radius: 14px !important;
  font-family: var(--font) !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}
input:focus, textarea:focus, select:focus, .inp:focus {
  outline: none !important;
  border-color: rgba(255,122,24,0.75) !important;
  box-shadow: 0 0 0 3px rgba(255,122,24,0.22), 0 0 28px rgba(255,122,24,0.12) !important;
}

/* ---------- notifications ---------- */
.notify-btn {
  background: rgba(255,122,24,0.12) !important;
  border: 1px solid var(--border-glass) !important;
  border-radius: 12px !important;
  color: var(--accent-2) !important;
}
.notify-panel {
  background: rgba(10, 8, 14, 0.98) !important;
  border: 1px solid rgba(255,122,24,0.32) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  box-shadow: 0 28px 70px rgba(0,0,0,0.65) !important;
  border-radius: 18px !important;
  min-width: min(340px, calc(100vw - 24px)) !important;
  color: #f5efe8 !important;
}
.notify-panel-h {
  background: rgba(255,122,24,0.1) !important;
  border-bottom: 1px solid rgba(255,122,24,0.18) !important;
  font-weight: 750 !important;
}
.notify-item {
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
  transition: background 0.15s;
}
.notify-item.unread {
  background: rgba(255,122,24,0.16) !important;
  border-left: 3px solid var(--accent) !important;
}
.notify-item:active { background: rgba(255,122,24,0.12) !important; }
.notify-empty { color: rgba(255,255,255,0.55) !important; }
.notify-dot.show {
  background: linear-gradient(135deg, #ff7a18, #ff3d00) !important;
  box-shadow: 0 0 14px rgba(255,80,30,0.65);
}

/* ---------- content cards ---------- */
.msg, .m, .hist .item, .guide-card, .adm-user, .news-card, .pb-card,
.helper-btn, .stats-card, .stats-block {
  border-color: var(--border-glass) !important;
}
.guide-card, .news-card, .stats-card, .helper-btn, .hist .item, .msg {
  transition: transform 0.22s var(--ease), box-shadow 0.22s, border-color 0.22s !important;
}
.guide-card:hover, .news-card:hover, .stats-card:hover, .helper-btn:hover {
  transform: translateY(-3px);
  border-color: rgba(255,122,24,0.45) !important;
  box-shadow: 0 16px 36px rgba(255,122,24,0.14) !important;
}

/* history / messages */
.hist .item, .msg {
  border-radius: 18px !important;
  background: linear-gradient(165deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015)) !important;
  border: 1px solid var(--border-glass) !important;
  margin-bottom: 12px;
}
.pub-badge {
  background: rgba(62, 224, 138, 0.12) !important;
  border: 1px solid rgba(62, 224, 138, 0.28) !important;
  color: #7dffb5 !important;
  border-radius: 999px !important;
}

/* chat */
.chat-bubble, .bubble, .cmsg {
  border-radius: 16px !important;
  border: 1px solid rgba(255,122,24,0.12) !important;
  background: rgba(255,255,255,0.04) !important;
}
.role, .badge {
  border-radius: 8px !important;
  font-weight: 700 !important;
}

/* ---------- badges / roles ---------- */
.badge-dev {
  background: linear-gradient(135deg, rgba(70,0,0,0.9), rgba(110,0,0,0.55), rgba(40,0,0,0.95)) !important;
  color: #ff1515 !important;
  border-color: rgba(220, 0, 0, 0.95) !important;
  box-shadow: 0 0 22px rgba(140, 0, 0, 0.65), 0 0 8px rgba(255, 0, 0, 0.5) !important;
  text-shadow: 0 0 10px rgba(255, 0, 0, 0.55);
  animation: devBadgeGlow 2.4s ease-in-out infinite;
}
.badge-founder, .badge-deputy {
  box-shadow: 0 0 14px rgba(231,76,60,0.32) !important;
}
.badge-angel {
  box-shadow: 0 0 14px rgba(255,105,180,0.32) !important;
}
.badge-admin {
  box-shadow: 0 0 12px rgba(52,152,219,0.28) !important;
}
.badge-chief {
  box-shadow: 0 0 12px rgba(46,204,113,0.28) !important;
}

/* ---------- footer ---------- */
.ftr {
  text-align: center;
  padding: 22px 14px 32px;
  color: var(--text-muted);
  font-size: 12px;
}
.ftr a {
  color: var(--accent-2);
  transition: color 0.2s;
}
.ftr a:hover { color: #fff; }

/* ---------- page enter ---------- */
.page {
  animation: pageIn 0.55s var(--ease);
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

/* ---------- ripple ---------- */
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: rippleAnim 0.55s ease-out forwards;
  background: rgba(255, 180, 80, 0.35);
  pointer-events: none;
  z-index: 5;
}
@keyframes rippleAnim {
  to { transform: scale(14); opacity: 0; }
}

/* ---------- flash ---------- */
.flash {
  border-radius: 14px !important;
  border: 1px solid rgba(255,122,24,0.28) !important;
  background: rgba(255,122,24,0.12) !important;
  animation: flashIn 0.4s ease;
}
@keyframes flashIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
.flash.ok, .flash.err {
  backdrop-filter: blur(12px);
}

/* ---------- scrollbar ---------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--accent-3));
  border-radius: 10px;
}

/* ---------- mobile polish ---------- */
@media (max-width: 560px) {
  .hero { padding: 28px 16px 24px !important; border-radius: 22px !important; }
  .cards { grid-template-columns: 1fr 1fr !important; }
  .stat { padding: 14px 6px; }
  .sn { font-size: 22px !important; }
  .bnav-i { font-size: 9px; }
  .bnav-label { font-size: 9px !important; }
  .sound-toggle { width: 36px; height: 36px; }
  .usr-meta { display: none; }
  .logo-s { display: none; }
  .card { padding: 16px 12px !important; }
  .card i { width: 42px; height: 42px; font-size: 18px !important; }
  .main { padding-left: 12px; padding-right: 12px; }
  .notify-panel {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    top: 70px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }
}

@media (max-width: 380px) {
  .cards { grid-template-columns: 1fr !important; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .fx-orb, .fx-grid, .page, .card, .btn, .ripple, .logo i, .hero::before, .hero::after, .stat {
    animation: none !important;
    transition: none !important;
  }
}


/* published cards in history */
.mcard.mcard-published {
  border: 1.5px solid rgba(62, 224, 138, 0.55) !important;
  box-shadow: 0 0 18px rgba(62, 224, 138, 0.22) !important;
}
.mcard.mcard-published:hover {
  border-color: rgba(62, 224, 138, 0.85) !important;
}


/* akkol-hdr-mobile-fix */
@media (max-width: 640px) {
  .hdr-in { padding: 0 10px !important; gap: 6px !important; }
  .usr { gap: 5px !important; min-width: 0 !important; }
  .usr-meta { display: none !important; }
  .logo-s { display: none !important; }
  .sound-toggle { width: 34px !important; height: 34px !important; flex-shrink: 0 !important; }
}


/* mobile: backdrop-filter breaks taps on iOS/Android */
@media (hover: none), (max-width: 900px) {
  .page.anon .glass, .page.anon .aform, .mcard.glass {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}


/* v72-anon */
.page.anon .aform.glass,
.page.history .mcard.glass {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
