﻿/* Awas Forum - dark neon gaming dashboard */
:root {
  --bg: #060910;
  --bg-2: #090d16;
  --panel: rgba(12, 17, 27, 0.82);
  --panel-2: rgba(16, 22, 34, 0.86);
  --border: rgba(136, 113, 220, 0.18);
  --border-hot: rgba(202, 67, 255, 0.42);
  --text: #f4f6fb;
  --muted: #a5adbd;
  --dim: #69748a;
  --purple: #c944ff;
  --purple-2: #7c24df;
  --purple-3: #44105f;
  --green: #18d57c;
  --radius: 10px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.36);
  --glow: 0 0 34px rgba(201, 68, 255, 0.22);
  --game-bg-blur: 0.7px;
  --speed: 180ms ease;
}

* { box-sizing: border-box; }
html { background: var(--bg); min-height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 72% 6%, rgba(132, 38, 218, .24), transparent 31%),
    radial-gradient(circle at 92% 42%, rgba(69, 19, 125, .24), transparent 32%),
    linear-gradient(180deg, #070a12 0%, #05080e 100%);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 70px 0 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.014) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 70px;
  display: grid;
  grid-template-columns: 260px minmax(420px, 650px) 1fr;
  align-items: center;
  gap: 30px;
  padding: 0 30px;
  border-bottom: 1px solid rgba(153, 123, 255, .14);
  background: rgba(6, 9, 16, .88);
  backdrop-filter: blur(18px) saturate(150%);
}
.brand { display: inline-flex; align-items: center; gap: 12px; width: max-content; }
.brand-logo, .top-avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(210, 85, 255, .55);
  background: rgba(17, 22, 33, .82);
  box-shadow: none;
}
.brand-logo.small { width: 30px; height: 30px; }
.brand-logo img, .top-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none !important;
  transform: none !important;
  image-rendering: auto;
  backface-visibility: hidden;
}
.brand-name { font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.brand-name span, .hero h1 span, .community-card h2 span {
  color: transparent;
  background: linear-gradient(135deg, #ff7bff 0%, var(--purple) 43%, #8e36ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 26px rgba(201,68,255,.36);
}
.searchbar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1px solid rgba(130, 151, 197, .15);
  background: rgba(9, 13, 22, .78);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.searchbar:focus-within { border-color: var(--border-hot); box-shadow: var(--glow); }
.searchbar input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 17px; }
.searchbar input::placeholder { color: #737d90; }
.search-icon { color: var(--purple); font-size: 18px; }
.top-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.ghost-btn, .primary-btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border-radius: 9px;
  color: var(--text);
  border: 1px solid rgba(130, 151, 197, .16);
  background: rgba(10, 14, 23, .78);
  transition: transform var(--speed), border-color var(--speed), box-shadow var(--speed), filter var(--speed);
}
.primary-btn { border-color: rgba(205,75,255,.62); background: linear-gradient(135deg, #9331e8, #631ab7); box-shadow: var(--glow); }
.ghost-btn:hover, .primary-btn:hover { transform: translateY(-1px); border-color: var(--border-hot); filter: brightness(1.08); }
.primary-btn:disabled,
.ghost-btn:disabled {
  cursor: wait;
  opacity: .62;
  transform: none;
  filter: none;
}

.page-shell {
  width: calc(100vw - 60px);
  margin: 20px auto 0;
  display: grid;
  grid-template-columns: 278px minmax(0, 1fr);
  gap: 20px;
}
.glass-panel {
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(15, 20, 31, .88), rgba(8, 12, 20, .80));
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), var(--shadow);
}
.sidebar { align-self: start; padding: 10px; border-radius: var(--radius); }
.side-active, .side-list a {
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 7px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  transition: background var(--speed), transform var(--speed), color var(--speed);
}
.side-active { width: 100%; color: #e46cff; background: linear-gradient(135deg, rgba(194,69,255,.22), rgba(86,27,143,.24)); text-transform: uppercase; font-size: 13px; font-weight: 800; }
.side-list a:hover { background: rgba(255,255,255,.035); transform: translateX(2px); }
.side-list b { margin-left: auto; color: #6f7b91; font-size: 24px; font-weight: 400; }
.side-label { margin: 20px 10px 8px; color: #6f7a90; text-transform: uppercase; letter-spacing: .04em; font-size: 12px; }
.side-icon, .mini-icon, .card-icon, .topic-game, .stat-icon {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 7px;
  border: 1px solid rgba(139, 160, 205, .19);
  background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.side-icon, .mini-icon { width: 30px; height: 30px; flex: 0 0 30px; color: #f3cf61; font-size: 12px; }
.game-avatar {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 7px;
  border: 1px solid rgba(139, 160, 205, .36);
  background: #151b27;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  contain: paint;
}
.game-avatar svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: none !important;
  transform: none !important;
}
.game-avatar span { position: relative; z-index: 2; font-size: 10px; font-weight: 800; line-height: 1; color: #ffd86a; text-shadow: none; }
.game-icon-minecraft { background: linear-gradient(180deg, #6fe05a 0 34%, #9b7042 34% 64%, #5b3e2d 64% 100%); }
.game-icon-minecraft::before { content: ""; position: absolute; left: 23%; top: 48%; width: 16%; height: 16%; background: #31241d; box-shadow: 38px 0 0 #31241d, 19px 24px 0 4px #31241d; }
.game-icon-minecraft span { opacity: 0; }
.game-icon-cs2 { background: linear-gradient(145deg, #111722, #182131); }
.game-icon-gta { background: linear-gradient(145deg, #d95fad, #8831c9); }
.game-icon-rust { background: #ef5136; }
.game-icon-rust::before { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #12151d; box-shadow: 0 -10px 0 #12151d, 0 10px 0 #12151d, -10px 0 0 #12151d, 10px 0 0 #12151d; }
.game-icon-rust span { opacity: 0; }
.purple { color: #eb6bff; background: rgba(201,68,255,.16); }
.muted { color: #c99c4e; background: rgba(20,26,38,.86); }
.minecraft { background: linear-gradient(180deg, #66ce52 0 32%, #9a7646 32% 62%, #5d4330 62%); }
.cs2 { color: #ffd569; }
.gta { color: #efc477; }
.rust { background: #ef5136; color: #12151d; }
.community-card {
  margin-top: 28px;
  min-height: 208px;
  padding: 18px 20px;
  border-radius: 9px;
  border: 1px solid rgba(201,68,255,.22);
  background: linear-gradient(135deg, rgba(99,26,160,.82), rgba(31,12,55,.82)), url("assets/hero-awas.svg") center/cover;
  box-shadow: 0 14px 44px rgba(0,0,0,.32), 0 0 30px rgba(201,68,255,.13);
}
.community-card p { margin: 0 0 6px; color: #ccb5dd; }
.community-card h2 { margin: 0 0 12px; font-size: 25px; letter-spacing: -.02em; }
.community-card small { display: block; color: #d0c2de; line-height: 1.45; }
.community-card button { margin-top: 22px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 6px; color: #fff; background: linear-gradient(135deg, #9c35e9, #671ab7); box-shadow: var(--glow); }

.content { display: grid; gap: 18px; min-width: 0; }
.hero {
  position: relative;
  min-height: 274px;
  overflow: hidden;
  border-radius: var(--radius);
  border-color: rgba(201,68,255,.34);
  background:
    linear-gradient(90deg, rgba(11,13,22,.96) 0%, rgba(22,9,39,.82) 53%, rgba(42,12,67,.58) 100%),
    url("assets/hero-awas.svg") right center / 52% 115% no-repeat,
    linear-gradient(135deg, #101622, #2a113c);
}
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 72% 46%, rgba(201,68,255,.22), transparent 36%); }
.hero-copy { position: relative; z-index: 1; padding: 30px 32px 0; max-width: 660px; }
.eyebrow { display: inline-flex; padding: 7px 14px; border-radius: 6px; color: #e875ff; background: rgba(201,68,255,.17); text-transform: uppercase; font-size: 12px; letter-spacing: .035em; }
.hero h1 { margin: 16px 0 10px; font-size: 56px; line-height: 1; letter-spacing: -.045em; }
.hero p { max-width: 560px; margin: 0; color: #cbd2df; line-height: 1.45; font-size: 17px; }
.stats-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 730px; margin: 31px 0 0 32px; }
.stat-card { min-height: 80px; display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; align-items: center; padding: 13px 14px; border-radius: 8px; border: 1px solid rgba(135,160,210,.17); background: rgba(8,12,20,.74); backdrop-filter: blur(12px); }
.stat-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: auto;
  bottom: 0;
  width: var(--stat-fill, 42%);
  height: 2px;
  background: linear-gradient(90deg, var(--purple), transparent);
  box-shadow: 0 0 18px rgba(201,68,255,.48);
}
.stat-card .stat-icon { grid-row: span 2; width: 40px; height: 40px; color: var(--purple); background: rgba(201,68,255,.18); }
.stat-card .green { color: var(--green); }
.stat-card b { font-size: 25px; line-height: 1; }
.stat-card small { color: #a5adbd; }

.popular, .latest { padding: 12px; border-radius: var(--radius); }
.section-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 13px; }
.section-head h2, .latest h2 { margin: 0; font-size: 23px; letter-spacing: -.02em; }
.section-head a { color: #e267ff; }
.game-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.game-card {
  position: relative;
  min-height: 248px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(135,160,210,.20);
  background: #101622;
  isolation: isolate;
  transition: transform var(--speed), border-color var(--speed), box-shadow var(--speed);
}
.game-card::before { content: ""; position: absolute; inset: -8px; z-index: -2; background: linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.28)), var(--game-bg, var(--art)); background-size: cover; background-position: center; filter: blur(var(--game-bg-blur)); transform: scale(1.03); transition: transform 260ms ease, filter 220ms ease; }
.game-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6,9,16,.05) 20%, rgba(7,10,16,.94) 100%); }
.game-card:hover { transform: translateY(-4px) scale(1.01); border-color: rgba(201,68,255,.55); box-shadow: 0 18px 46px rgba(0,0,0,.38), 0 0 30px rgba(201,68,255,.17); }
.game-card:hover::before { transform: scale(1.07); }
.minecraft-card { --art: radial-gradient(circle at 47% 21%, rgba(106,232,79,.9), transparent 25%), linear-gradient(135deg, #456f41, #141b2b); }
.cs-card { --art: radial-gradient(circle at 62% 25%, rgba(100,78,238,.88), transparent 30%), linear-gradient(135deg, #1f2448, #151020); }
.gta-card { --art: radial-gradient(circle at 68% 26%, rgba(225,80,99,.84), transparent 31%), linear-gradient(135deg, #251723, #68323a); }
.rust-card { --art: radial-gradient(circle at 66% 24%, rgba(221,75,46,.72), transparent 30%), linear-gradient(135deg, #361f18, #17131a); }
.card-icon { position: absolute; left: 14px; top: 14px; width: 40px; height: 40px; color: #ffd569; font-size: 12px; font-weight: 800; }
.game-card h3 { margin: 0 0 10px; font-size: 17px; }
.game-card p { margin: 0; color: #cbd2df; line-height: 1.42; }
.game-card .card-button { width: 100%; min-height: 39px; margin-top: 17px; display: grid; place-items: center; text-decoration: none; border: 0; border-radius: 6px; color: #fff; font-weight: 700; background: linear-gradient(135deg, #9630e4, #611ab4); box-shadow: 0 12px 26px rgba(113,34,200,.24); transition: transform var(--speed), filter var(--speed); }
.game-card .card-button:hover { transform: translateY(-1px); filter: brightness(1.1); }

.latest h2 { padding: 2px 4px 13px; }
.topic-list { overflow: hidden; border-radius: 8px; border: 1px solid rgba(135,160,210,.16); }
.topic-row { min-height: 58px; display: grid; grid-template-columns: 42px minmax(0, 1fr) 150px 86px 170px; gap: 12px; align-items: center; padding: 9px 14px; border-bottom: 1px solid rgba(135,160,210,.12); background: rgba(17,22,33,.86); transition: background var(--speed), transform var(--speed); }
.topic-row:last-child { border-bottom: 0; }
.topic-row:hover { background: rgba(24,31,45,.96); }
.topic-game { width: 36px; height: 36px; color: #ffd569; font-size: 11px; font-weight: 800; }
.topic-title { min-width: 0; }
.topic-title b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.topic-title small, .answers small, .author small { color: #8e99ad; }
.tag { justify-self: start; padding: 4px 8px; border-radius: 5px; color: #e676ff; background: rgba(201,68,255,.17); font-size: 12px; white-space: nowrap; }
.tag.gray { color: #b9c2d3; background: rgba(255,255,255,.07); }
.tag.orange { color: #ff986b; background: rgba(255,91,56,.13); }
.answers { text-align: center; color: #cbd2df; font-size: 13px; }
.answers b { display: block; font-weight: 700; }
.author { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 10px; align-items: center; min-width: 0; }
.author b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.avatar { grid-row: span 2; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; font-style: normal; font-weight: 800; }
.pink { background: linear-gradient(135deg, #ff70ad, #8931ff); }
.dark { background: #262d3a; }
.blue { background: linear-gradient(135deg, #5bb8ff, #293fa8); }
.orange { background: linear-gradient(135deg, #ff8d50, #6e2a1b); }

.footer { width: calc(100vw - 60px); height: 60px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; color: #7f8a9f; font-size: 12px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand small { display: block; }
.footer nav { display: flex; gap: 34px; }
.socials { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.socials a { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 50%; color: #fff; background: #6137e5; transition: transform var(--speed), filter var(--speed); }
.socials a:hover { transform: translateY(-1px); filter: brightness(1.12); }
.socials svg { width: 16px; height: 16px; fill: currentColor; }
.modal { position: fixed; inset: 0; z-index: 50; display: none; place-items: center; background: rgba(0,0,0,.64); backdrop-filter: blur(8px); }
.modal.open { display: grid; }
.modal-card { width: 360px; display: grid; gap: 12px; padding: 22px; border-radius: 10px; border: 1px solid var(--border-hot); background: rgba(14,19,30,.96); box-shadow: var(--shadow), var(--glow); }
.modal-card button:first-child { justify-self: end; border: 0; border-radius: 6px; background: #1a2231; color: #fff; }
.modal-card input { height: 40px; border: 1px solid rgba(135,160,210,.18); border-radius: 7px; background: #0b1018; color: #fff; padding: 0 12px; }
.modal-card a.primary-btn { text-decoration: none; }
.modal-card .wide { width: 100%; justify-content: center; }
.profile-stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0; }
.profile-stats span { min-width: 116px; padding: 14px; border: 1px solid rgba(201,68,255,.28); border-radius: 8px; background: rgba(12,17,27,.72); }
.profile-stats b { display: block; font-size: 24px; }
.profile-stats small { color: var(--muted); }

@media (max-width: 980px) {
  .topbar { height: auto; grid-template-columns: 1fr; padding: 14px; gap: 14px; }
  .top-actions { justify-content: flex-start; flex-wrap: wrap; }
  .page-shell, .footer { width: calc(100vw - 24px); grid-template-columns: 1fr; margin-left: 12px; margin-right: 12px; }
  .game-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { margin-right: 32px; }
  .topic-row { grid-template-columns: 40px minmax(0,1fr) 76px; }
  .tag, .author { display: none; }
}
@media (max-width: 620px) {
  .game-grid, .stats-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 42px; }
  .hero { min-height: auto; padding-bottom: 24px; }
  .footer { height: auto; gap: 12px; }
  .footer nav { display: none; }
}



/* Liquid glass highlights */
.liquid-frame {
  position: relative;
  isolation: isolate;
}
.liquid-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,.18), rgba(201,68,255,.12) 34%, rgba(255,255,255,.035) 68%, rgba(201,68,255,.2)),
    radial-gradient(circle at 12% 0%, rgba(255,255,255,.18), transparent 28%);
  padding: 1px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .95;
}
.clickable-icon {
  transition: transform var(--speed), box-shadow var(--speed), border-color var(--speed);
}
.clickable-icon:hover {
  transform: translateY(-1px) scale(1.06);
  border-color: rgba(225, 112, 255, .72);
  box-shadow: 0 0 24px rgba(201,68,255,.32), inset 0 1px 0 rgba(255,255,255,.16);
}
.brand-logo.clickable-icon:hover,
.top-avatar.clickable-icon:hover,
.game-avatar.clickable-icon:hover {
  transform: none !important;
  box-shadow: none !important;
  filter: none !important;
}
.icon-action {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  color: var(--purple);
  background: transparent;
}
.image-icon img,
.card-icon img,
.topic-game img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
}
.game-card {
  background-image: var(--game-bg);
}
.game-card .card-button {
  width: 100%;
  min-height: 39px;
  margin-top: 17px;
  background: linear-gradient(135deg, #9630e4, #611ab4);
  box-shadow: 0 12px 26px rgba(113,34,200,.24);
  transition: transform var(--speed), filter var(--speed);
}
.game-card .card-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

/* Routes, search and auth */
.hidden { display: none !important; }
.searchbar { position: relative; }
.search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  z-index: 60;
  display: none;
  max-height: 360px;
  overflow: auto;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(201,68,255,.28);
  background: rgba(8, 12, 20, .94);
  box-shadow: var(--shadow), var(--glow);
  backdrop-filter: blur(18px) saturate(150%);
}
.search-results.show { display: grid; gap: 6px; }
.search-results a {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 9px;
  border-radius: 9px;
  background: rgba(255,255,255,.035);
  transition: background var(--speed), transform var(--speed);
}
.search-results a:hover { background: rgba(201,68,255,.14); transform: translateX(2px); }
.search-results b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-results small { display: block; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.route-page {
  padding: 12px;
  border-radius: var(--radius);
  min-height: 520px;
}
.route-page h1 { margin: 10px 0; font-size: 42px; letter-spacing: -.04em; }
.route-page h2 { margin: 18px 0 12px; }
.route-page p { color: #cbd2df; line-height: 1.55; }
.route-hero {
  position: relative;
  min-height: 240px;
  display: grid;
  align-content: end;
  overflow: hidden;
  padding: 28px;
  border-radius: 12px;
  border: 1px solid rgba(201,68,255,.28);
  background: rgba(8,12,20,.72);
  isolation: isolate;
}
.route-hero > * {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.route-hero .eyebrow {
  width: max-content;
  max-width: max-content;
  justify-self: start;
}
.route-hero .card-icon {
  position: relative;
  left: auto;
  top: auto;
  margin-bottom: 14px;
}
.route-hero.compact { min-height: 210px; }
.route-hero::before {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: -2;
  background: linear-gradient(90deg, rgba(6,9,16,.92), rgba(6,9,16,.44)), var(--game-bg);
  background-size: cover;
  background-position: center;
  filter: blur(var(--game-bg-blur));
  transform: scale(1.04);
}
.route-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(6,9,16,.88));
}
.route-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}
.info-page,
.discussion-card {
  padding: 24px;
  border-radius: 12px;
  border: 1px solid rgba(136,113,220,.18);
  background: rgba(17,22,34,.70);
}
.comment-box,
.rating-box {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(136,113,220,.18);
  background: rgba(8,12,20,.70);
}
.rating-box b { color: #e46cff; letter-spacing: .08em; }
.empty-state { padding: 14px; color: var(--muted); }
.social-login {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.social-btn.google {
  grid-column: 1 / -1;
}
.social-btn.discord {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  justify-self: stretch;
}
.social-btn.telegram {
  grid-column: 1;
  grid-row: 1;
}
.social-btn.google {
  grid-row: 2;
}
.social-btn {
  min-height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(136,113,220,.18);
  border-radius: 8px;
  color: var(--text);
  background: rgba(17,22,34,.78);
  transition: transform var(--speed), border-color var(--speed), background var(--speed);
}
.social-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}
.social-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(201,68,255,.45);
  background: rgba(201,68,255,.14);
}
.social-btn.discord { color: #cfd6ff; }
.social-btn.telegram { color: #6fcfff; }
.social-btn.vk { color: #79a9ff; }
.social-btn.google { color: #f3f6ff; }
.social-btn.google svg path:nth-child(1) { fill: #4285f4; }
.social-btn.google svg path:nth-child(2) { fill: #34a853; }
.social-btn.google svg path:nth-child(3) { fill: #fbbc05; }
.social-btn.google svg path:nth-child(4) { fill: #ea4335; }
@media (max-width: 720px) {
  .route-page h1 { font-size: 32px; }
  .social-login { grid-template-columns: 1fr; }
  .comment-box,
  .rating-box { display: grid; }
}

.auth-view {
  display: grid;
  gap: 12px;
}
.auth-view.hidden { display: none !important; }
.auth-note {
  margin: 0;
  color: var(--muted);
}
.google-auth-page,
.provider-auth-page {
  display: grid;
  gap: 12px;
}
.google-auth-head {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 12px;
  background: #f8fbff;
  color: #202124;
}
.google-auth-head b {
  font-size: 22px;
  color: #4285f4;
}
.google-account {
  min-height: 62px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #dadce0;
  background: #fff;
  color: #202124;
  text-align: left;
  transition: transform var(--speed), box-shadow var(--speed);
}
.google-account:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
.google-account i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e8f0fe;
  color: #1a73e8;
  font-style: normal;
  font-weight: 800;
}
.google-account small {
  display: block;
  color: #5f6368;
}
.provider-auth-page {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(136,113,220,.18);
  background: rgba(17,22,34,.72);
}
.provider-auth-page b {
  font-size: 24px;
}
.provider-auth-page p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.finance-link {
  min-width: 116px;
}

.section-grid {
  display: grid;
  gap: 10px;
}

.section-card {
  min-height: 72px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(136,113,220,.18);
  background: rgba(17,22,34,.68);
  transition: transform var(--speed), border-color var(--speed), background var(--speed);
}

.section-card:hover {
  transform: translateY(-1px);
  border-color: rgba(201,68,255,.44);
  background: rgba(201,68,255,.10);
}

.section-card b,
.section-card small {
  display: block;
}

.section-card small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
}

.section-card em {
  padding: 7px 10px;
  border-radius: 999px;
  color: #e6c7ff;
  background: rgba(201,68,255,.13);
  font-style: normal;
  font-size: 12px;
}

.verify-badge {
  justify-self: start;
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.topic-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.price-tag {
  padding: 5px 9px;
  border-radius: 6px;
  color: #93ffb8;
  background: rgba(27, 212, 120, .14);
  border: 1px solid rgba(27, 212, 120, .26);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.verify-badge.ok {
  color: #9cffc5;
  background: rgba(27, 212, 120, .14);
  border: 1px solid rgba(27, 212, 120, .25);
}

.verify-badge.bad {
  color: #ff9caa;
  background: rgba(255, 67, 98, .13);
  border: 1px solid rgba(255, 67, 98, .24);
}

.topic-create,
.comments-panel,
.chat-panel,
.profile-page,
.finance-page,
.download-page {
  margin: 14px 0;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid rgba(136,113,220,.18);
  background: rgba(12, 17, 27, .76);
  backdrop-filter: blur(18px) saturate(140%);
}

.topic-create {
  display: grid;
  gap: 12px;
}

.topic-create h3,
.comments-panel h2,
.chat-panel h2,
.finance-page h2,
.profile-discussion h2 {
  margin: 0;
}

.topic-create input,
.topic-create textarea,
.comment-form textarea,
.chat-form input,
.finance-topup input {
  width: 100%;
  border: 1px solid rgba(135,160,210,.18);
  border-radius: 8px;
  background: rgba(8,12,20,.86);
  color: var(--text);
  padding: 12px;
  outline: 0;
}

.topic-create textarea,
.comment-form textarea {
  resize: vertical;
  min-height: 94px;
}

.topic-create-grid,
.finance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-note {
  color: var(--muted);
}

.login-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 10px;
  color: var(--muted);
  background: rgba(8,12,20,.74);
  border: 1px solid rgba(136,113,220,.18);
}

.stars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(8,12,20,.72);
  border: 1px solid rgba(136,113,220,.18);
}

.stars button {
  border: 0;
  background: transparent;
  color: #535d70;
  font-size: 18px;
  line-height: 1;
  padding: 0 1px;
}

.stars button.active,
.stars button:hover {
  color: #f6d46d;
  text-shadow: 0 0 14px rgba(246,212,109,.42);
}

.stars small {
  margin-left: 8px;
  color: var(--muted);
}

.file-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(201,68,255,.25);
  background: rgba(201,68,255,.08);
}

.file-box b,
.file-box small,
.finance-row b,
.finance-row span {
  display: block;
}

.file-box small,
.finance-row span {
  color: var(--muted);
}

.comment-list {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.comment-box {
  align-items: start;
}

.comment-box small {
  color: var(--dim);
  white-space: nowrap;
}

.comment-form {
  display: grid;
  gap: 10px;
}

.chat-panel {
  margin-top: 16px;
}

.chat-panel .section-head span {
  color: var(--muted);
  font-size: 13px;
}

.chat-list {
  display: grid;
  gap: 8px;
  max-height: 280px;
  overflow: auto;
  padding-right: 4px;
}

.chat-message {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(17,22,34,.66);
  border: 1px solid rgba(136,113,220,.12);
}

.chat-message b,
.chat-message small {
  display: inline-block;
}

.chat-message small {
  margin-left: 8px;
  color: var(--dim);
}

.chat-message p {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.chat-form,
.finance-topup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 12px;
}

.profile-page {
  display: grid;
  gap: 16px;
}

.profile-hero,
.profile-discussion {
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(136,113,220,.18);
  background: rgba(8,12,20,.62);
}

.avatar.large {
  width: 58px;
  height: 58px;
  font-size: 24px;
  margin-bottom: 12px;
}

.avatar.large img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.profile-avatar-upload {
  position: relative;
  width: 58px;
  height: 58px;
  display: block;
  margin-bottom: 12px;
  border-radius: 50%;
}

.profile-avatar-upload .avatar.large {
  margin: 0;
}

.profile-avatar-upload input {
  display: none;
}

.profile-avatar-upload.can-upload {
  cursor: pointer;
}

.avatar-upload-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(5, 8, 14, .62);
  opacity: 0;
  backdrop-filter: blur(5px);
  transition: opacity var(--speed), transform var(--speed);
}

.avatar-upload-overlay span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(201,68,255,.82);
  box-shadow: var(--glow);
}

.profile-avatar-upload.can-upload:hover .avatar-upload-overlay {
  opacity: 1;
}

.finance-grid section,
.finance-row {
  border: 1px solid rgba(136,113,220,.18);
  border-radius: 10px;
  background: rgba(8,12,20,.62);
}

.finance-grid section {
  padding: 14px;
}

.finance-row {
  margin-top: 10px;
  padding: 12px;
}

.download-page,
.offer-page,
.chat-board {
  max-width: 720px;
}

.download-page .wide,
.order-side-card .wide {
  width: 100%;
}

.offer-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid rgba(27, 212, 120, .24);
  border-radius: 12px;
  color: #dfffea;
  background: rgba(27, 212, 120, .08);
}

.offer-total b {
  color: #93ffb8;
  font-size: 28px;
}

.chat-board {
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(136,113,220,.18);
  background: rgba(12,17,27,.76);
}

.chat-board-wide {
  max-width: none;
  width: 100%;
  min-height: calc(100vh - 190px);
}

.chat-thread-list {
  display: grid;
  gap: 10px;
}

.chat-thread-card {
  min-height: 74px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(136,113,220,.18);
  color: var(--text);
  text-decoration: none;
  background: rgba(8,12,20,.62);
  transition: transform var(--speed), border-color var(--speed), background var(--speed);
}

.chat-thread-card:hover {
  transform: translateY(-2px);
  border-color: rgba(201,68,255,.42);
  background: rgba(201,68,255,.08);
}

.chat-thread-card b,
.chat-thread-card small {
  display: block;
}

.chat-thread-card small,
.chat-thread-card em {
  color: var(--muted);
}

.private-chat-list {
  max-height: calc(100vh - 330px);
}

.messenger-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 300px;
  gap: 14px;
  min-height: calc(100vh - 230px);
}

.messenger-sidebar,
.messenger-main,
.order-side-card {
  min-width: 0;
  border-radius: 12px;
  border: 1px solid rgba(136,113,220,.16);
  background: rgba(8,12,20,.54);
}

.messenger-sidebar,
.order-side-card {
  padding: 16px;
  align-self: stretch;
}

.messenger-sidebar h1,
.order-side-card h2 {
  margin: 14px 0;
  overflow-wrap: anywhere;
}

.messenger-sidebar h1 {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.06;
}

.chat-order-mini,
.order-meta {
  display: grid;
  gap: 8px;
  margin: 12px 0 16px;
  color: var(--muted);
}

.chat-order-mini span,
.order-meta span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(136,113,220,.12);
}

.chat-order-mini b,
.order-meta b {
  min-width: 0;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.messenger-main {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  padding: 12px;
}

.order-side-card {
  display: grid;
  align-content: start;
  gap: 10px;
}

.order-side-card .offer-total {
  margin: 4px 0 8px;
  display: grid;
}

.chat-message.system {
  border-color: rgba(201,68,255,.28);
  background: rgba(201,68,255,.08);
}

@media (max-width: 720px) {
  .section-card,
  .topic-create-grid,
  .finance-grid,
  .chat-form,
  .finance-topup {
    grid-template-columns: 1fr;
  }
  .section-card em {
    justify-self: start;
  }
  .file-box,
  .login-callout {
    display: grid;
  }
  .messenger-layout {
    grid-template-columns: 1fr;
  }
  .chat-board-wide {
    min-height: auto;
  }
  .private-chat-list {
    max-height: 520px;
  }
}



/* Crisp game avatars */
.image-icon,
.card-icon,
.topic-game {
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transform: none;
  overflow: hidden;
  contain: paint;
}
.image-icon img,
.card-icon img,
.topic-game img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
  image-rendering: auto;
  backface-visibility: hidden;
}
.mini-icon.image-icon,
.topic-game {
  padding: 0;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
}
.card-icon.image-icon,
.card-icon {
  z-index: 3;
  padding: 0;
  width: 40px;
  height: 40px;
}
.side-list .clickable-icon:hover,
.game-card .clickable-icon:hover,
.topic-row .clickable-icon:hover {
  filter: none !important;
}

/* Mobile avatar/layout lock */
@media (max-width: 620px) {
  .topbar {
    display: grid;
    grid-template-columns: 1fr;
    padding: 12px 14px;
    gap: 12px;
  }
  .brand-logo,
  .top-avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
  }
  .brand-logo.small {
    width: 34px;
    height: 34px;
  }
  .top-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 42px;
    gap: 8px;
    align-items: center;
    width: 100%;
  }
  .top-actions .ghost-btn,
  .top-actions .primary-btn {
    min-width: 0;
    width: 100%;
    padding: 0 10px;
    white-space: nowrap;
    font-size: 15px;
  }
  .top-actions .top-avatar {
    justify-self: end;
  }
  .side-list a {
    min-height: 48px;
  }
  .side-list .mini-icon.game-avatar,
  .side-list .mini-icon.image-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
  }
  .game-card .card-icon.game-avatar,
  .game-card .card-icon.image-icon {
    width: 46px;
    height: 46px;
  }
  .topic-row .topic-game {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
  }
  .brand-logo img,
  .top-avatar img,
  .game-avatar img,
  .image-icon img,
  .card-icon img,
  .topic-game img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
  }
}
