/* Avatar Community — Aurora UI v2 */

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

:root {
  --bg: #080a12;
  --surface: #0f1219;
  --surface-2: #161b28;
  --surface-3: #1e2436;
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.14);
  --text: #eef0f6;
  --text-muted: #8b93a8;
  --purple: #7c5cfc;
  --pink: #ff6b9d;
  --gold: #ffc857;
  --blue: #4dabf7;
  --green: #51cf66;
  --gradient: linear-gradient(135deg, #7c5cfc 0%, #ff6b9d 50%, #ffc857 100%);
  --gradient-soft: linear-gradient(135deg, rgba(124,92,252,.15), rgba(255,107,157,.1));
  --font: 'Be Vietnam Pro', system-ui, sans-serif;
  --font-display: 'Outfit', 'Be Vietnam Pro', sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --nav-h: 68px;
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  --glow: 0 0 60px rgba(124, 92, 252, 0.25);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Custom cursor (desktop) ── */
@media (hover: hover) and (pointer: fine) {
  body.has-fx-cursor,
  body.has-fx-cursor * {
    cursor: url("/static/assets/cursor-default.png?v=3") 1 1, auto !important;
  }

  body.has-fx-cursor :is(
    a,
    button,
    [role="button"],
    .btn-cta,
    .btn-primary,
    .btn-ghost,
    .btn-danger,
    .btn-download,
    .btn-copy,
    .social-link,
    .guide-card,
    .giftcode-card,
    .feature-card,
    .forum-cat,
    .faq-q,
    .user-trigger,
    .nav-toggle,
    .link-btn,
    .auth-pill__btn,
    .auth-tab,
    .modal-close,
    label.field,
    .admin-tab,
    summary,
    [onclick],
    input[type="submit"],
    input[type="button"],
    input[type="checkbox"],
    input[type="radio"],
    select
  ),
  body.has-fx-cursor :is(
    a,
    button,
    [role="button"],
    .btn-cta,
    .btn-primary,
    .btn-ghost,
    .btn-danger,
    .btn-download,
    .btn-copy,
    .social-link,
    .guide-card,
    .giftcode-card,
    .feature-card,
    .forum-cat,
    .faq-q,
    .user-trigger,
    .nav-toggle,
    .link-btn,
    .auth-pill__btn,
    .auth-tab,
    .modal-close,
    label.field,
    .admin-tab,
    summary,
    [onclick],
    input[type="submit"],
    input[type="button"],
    input[type="checkbox"],
    input[type="radio"],
    select
  ) * {
    cursor: url("/static/assets/cursor-pointer.png?v=3") 10 1, pointer !important;
  }

  body.has-fx-cursor :is(input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]), textarea, [contenteditable="true"]),
  body.has-fx-cursor :is(input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]), textarea, [contenteditable="true"]) * {
    cursor: text !important;
  }
}

.fx-click-burst {
  position: fixed;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 99997;
}

.fx-click-burst .fx-ring {
  position: absolute;
  left: 0;
  top: 0;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  border: 2px solid rgba(34, 211, 238, 0.9);
  box-shadow:
    0 0 12px rgba(34, 211, 238, 0.7),
    0 0 24px rgba(124, 92, 252, 0.5);
  animation: fx-click-ring 0.55s ease-out forwards;
}

.fx-click-burst .fx-spark {
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 14px;
  margin: -7px 0 0 -1.5px;
  border-radius: 2px;
  background: linear-gradient(180deg, #e9f9ff, #22d3ee 40%, #7c5cfc);
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.9);
  transform-origin: center center;
  animation: fx-click-spark 0.5s ease-out forwards;
}

.fx-click-burst .fx-bolt {
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  opacity: 0;
  animation: fx-click-bolt 0.45s ease-out forwards;
}

.fx-click-burst .fx-bolt svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 4px #22d3ee) drop-shadow(0 0 8px #7c5cfc);
}

@keyframes fx-click-ring {
  0% { transform: scale(0.4); opacity: 1; }
  100% { transform: scale(4.2); opacity: 0; }
}

@keyframes fx-click-spark {
  0% { transform: rotate(var(--a, 0deg)) translateY(0) scaleY(0.4); opacity: 1; }
  100% { transform: rotate(var(--a, 0deg)) translateY(-28px) scaleY(1); opacity: 0; }
}

@keyframes fx-click-bolt {
  0% { opacity: 0; transform: scale(0.6) rotate(-8deg); }
  20% { opacity: 1; transform: scale(1.05) rotate(2deg); }
  100% { opacity: 0; transform: scale(1.25) rotate(6deg); }
}

@media (prefers-reduced-motion: reduce) {
  .fx-click-burst { display: none !important; }

  body.has-fx-cursor,
  body.has-fx-cursor * {
    cursor: auto !important;
  }
}

/* ── Ambient ── */
.app { position: relative; min-height: 100vh; display: flex; flex-direction: column; }

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: float 12s ease-in-out infinite;
}

.orb-1 { width: 520px; height: 520px; background: var(--purple); top: -120px; left: -80px; }
.orb-2 { width: 400px; height: 400px; background: var(--pink); top: 30%; right: -100px; animation-delay: -4s; }
.orb-3 { width: 350px; height: 350px; background: var(--gold); bottom: -80px; left: 35%; animation-delay: -8s; opacity: 0.25; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -30px) scale(1.05); }
}

.hero-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--bg);
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  transition: opacity 0.6s;
}

/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  grid-template-areas: "brand nav auth actions";
  align-items: center;
  gap: clamp(12px, 2vw, 20px);
  padding: 0 clamp(16px, 4vw, 40px);
  background: rgba(8, 10, 18, 0.75);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  overflow: visible;
}

.brand { grid-area: brand; }
.nav { grid-area: nav; }
.auth-area { grid-area: auth; }
.nav-actions { grid-area: actions; }

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 0;
}

.brand-img {
  height: clamp(36px, 5vw, 48px);
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
  transition: filter 0.2s;
}

.brand:hover .brand-img {
  filter: drop-shadow(0 4px 14px rgba(124, 92, 252, 0.35));
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  justify-content: center;
  min-width: 0;
  overflow: visible;
  flex-wrap: nowrap;
}

.nav-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  padding: 8px clamp(8px, 1.1vw, 14px);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-link.active { color: #fff; background: rgba(124,92,252,0.2); box-shadow: inset 0 0 0 1px rgba(124,92,252,0.35); }

.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.nav-social { display: flex; gap: 6px; }

/* Progressive nav compaction before hamburger */
@media (max-width: 1200px) {
  .nav-social { display: none !important; }
  .nav-link { font-size: 12px; padding: 7px 10px; }
}

@media (max-width: 1100px) {
  .nav-link[data-page="about"],
  .nav-link[data-page="guides"] { display: none; }
}

@media (max-width: 960px) {
  .nav-link[data-page="giftcode"],
  .nav-link[data-page="rankings"] { display: none; }
}

.social-row { display: flex; gap: 6px; }

.social-link {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s, color 0.2s;
}

.social-link svg { width: 16px; height: 16px; fill: currentColor; }
.social-link:hover { transform: translateY(-2px); border-color: var(--border-hover); color: #fff; }

.btn-cta {
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 9px 20px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(124,92,252,0.35);
}

.btn-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 28px rgba(124,92,252,0.5); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s;
}

/* ── Main ── */
.main {
  position: relative;
  z-index: 1;
  flex: 1;
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(20px, 3.5vw, 40px) clamp(16px, 3.5vw, 32px) clamp(40px, 6vw, 64px);
}

.page {
  display: none;
  opacity: 0;
  transform: translateX(28px);
  pointer-events: none;
}

.page.active {
  display: block;
  pointer-events: auto;
  animation: pageSlideIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.page.slide-back.active {
  animation-name: pageSlideInBack;
}

@keyframes pageSlideIn {
  from { opacity: 0; transform: translateX(36px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pageSlideInBack {
  from { opacity: 0; transform: translateX(-36px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ── Hero ── */
.hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 3vw, 28px);
  padding: clamp(12px, 2.5vw, 24px) 0 clamp(28px, 4vw, 40px);
}

.hero-stage {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hero-badge {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e9e0ff;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(124, 92, 252, 0.22) 55%, rgba(167, 139, 250, 0.14));
  border: 1px solid rgba(167, 139, 250, 0.45);
  padding: 8px 18px;
  border-radius: 999px;
  margin: 0;
  overflow: visible;
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.12),
    0 0 18px rgba(124, 92, 252, 0.35),
    0 0 32px rgba(34, 211, 238, 0.12);
  animation: badge-aura 2.8s ease-in-out infinite;
}

.hero-badge::before,
.hero-badge::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
}

.hero-badge::before {
  background: conic-gradient(
    from var(--badge-angle, 0deg),
    transparent 0deg,
    #22d3ee 40deg,
    #a78bfa 90deg,
    transparent 140deg,
    transparent 180deg,
    #7c5cfc 220deg,
    #22d3ee 280deg,
    transparent 320deg
  );
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  padding: 1.5px;
  opacity: 0.85;
  animation: badge-spin 3.2s linear infinite;
  filter: blur(0.2px) drop-shadow(0 0 6px rgba(34, 211, 238, 0.55));
}

.hero-badge::after {
  inset: -10px;
  background:
    radial-gradient(ellipse 70% 90% at 15% 40%, rgba(34, 211, 238, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 90% at 85% 60%, rgba(124, 92, 252, 0.4), transparent 55%);
  opacity: 0.55;
  animation: badge-flare 1.8s ease-in-out infinite alternate;
  z-index: -2;
  filter: blur(6px);
}

.hero-badge-text {
  position: relative;
  z-index: 2;
  text-shadow: 0 0 12px rgba(167, 139, 250, 0.55);
}

.hero-badge-bolt {
  position: absolute;
  inset: -10px -14px;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}

.hero-badge-bolt-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.bolt-path {
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  opacity: 0;
  stroke-dasharray: 18 120;
  filter: drop-shadow(0 0 3px #22d3ee) drop-shadow(0 0 6px #7c5cfc);
}

.bolt-path--a {
  animation: bolt-crack 2.4s steps(2, end) infinite;
}

.bolt-path--b {
  stroke-width: 1.1;
  animation: bolt-crack 2.4s steps(2, end) infinite 0.55s;
}

.bolt-path--c {
  stroke-width: 0.9;
  opacity: 0;
  animation: bolt-crack 2.4s steps(2, end) infinite 1.15s;
}

@property --badge-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

@keyframes badge-spin {
  to { --badge-angle: 360deg; }
}

@keyframes badge-aura {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(34, 211, 238, 0.12),
      0 0 16px rgba(124, 92, 252, 0.3),
      0 0 28px rgba(34, 211, 238, 0.1);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(167, 139, 250, 0.35),
      0 0 22px rgba(124, 92, 252, 0.55),
      0 0 40px rgba(34, 211, 238, 0.28);
  }
}

@keyframes badge-flare {
  from { opacity: 0.35; transform: scale(0.96); }
  to { opacity: 0.7; transform: scale(1.05); }
}

@keyframes bolt-crack {
  0%, 8%, 100% {
    opacity: 0;
    stroke-dashoffset: 0;
  }
  10% {
    opacity: 1;
    stroke-dashoffset: -8;
  }
  14% {
    opacity: 0.35;
  }
  18% {
    opacity: 1;
    stroke-dashoffset: -22;
  }
  28% {
    opacity: 0;
    stroke-dashoffset: -40;
  }
  55% {
    opacity: 0;
  }
  58% {
    opacity: 0.9;
    stroke-dashoffset: -12;
  }
  62% {
    opacity: 0.25;
  }
  66% {
    opacity: 1;
  }
  74% {
    opacity: 0;
  }
}

.hero-title {
  margin: 0;
  width: 100%;
  max-width: 880px;
  line-height: 0;
}

.hero-banner {
  width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow), 0 0 64px rgba(124, 92, 252, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.1);
  object-fit: contain;
  background: rgba(8, 10, 18, 0.35);
}

.gradient-text {
  background: var(--gradient);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  color: var(--text-muted);
  font-size: clamp(14px, 2vw, 16px);
  max-width: 520px;
  margin: 0 auto 28px;
}

.hero-datetime {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 14px 24px 16px;
  min-width: min(100%, 300px);
  text-align: center;
  border-radius: 18px;
  background: rgba(15, 18, 25, 0.72);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.hero-datetime-time {
  font-family: var(--font-display, var(--font));
  font-size: clamp(26px, 4.2vw, 36px);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.25;
  padding-bottom: 2px;
  background: var(--gradient);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-variant-numeric: tabular-nums;
}

.hero-datetime-date {
  font-size: clamp(12px, 1.8vw, 14px);
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  text-transform: capitalize;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(124,92,252,0.3);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(124,92,252,0.45); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-hover);
  border-radius: 999px;
  padding: 10px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.btn-outline:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.25); }

.btn-lg { padding: 13px 28px; font-size: 14px; }

.btn-ghost {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 20px;
  font-family: var(--font);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-ghost:hover { background: var(--surface-3); }

.btn-block { width: 100%; }

.stats {
  width: 100%;
  max-width: 880px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  background: rgba(15, 18, 25, 0.78);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 12px;
  min-width: 0;
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.home-content {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3.5vw, 36px);
  margin-top: clamp(8px, 1.5vw, 16px);
}

/* ── Sections ── */
.section { margin-top: 0; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.link-btn {
  background: none;
  border: none;
  color: var(--purple);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
}

.link-btn:hover { color: var(--pink); }

.page-head { margin-bottom: 32px; }
.page-head h1 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 36px); font-weight: 800; margin-bottom: 8px; }
.page-head p { color: var(--text-muted); font-size: 15px; }
.page-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ── Feature grid ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.feature-grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.feature-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  cursor: pointer;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-soft);
  opacity: 0;
  transition: opacity 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow);
}

.feature-card:hover::before { opacity: 1; }

.feature-card > * { position: relative; z-index: 1; }

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: #fff;
}

.feature-icon-svg {
  width: 24px;
  height: 24px;
  display: block;
}

.feature-icon--purple { background: rgba(124,92,252,0.18); color: #c4b5fd; }
.feature-icon--pink { background: rgba(255,107,157,0.18); color: #fda4c5; }
.feature-icon--gold { background: rgba(255,200,87,0.18); color: #ffd78a; }
.feature-icon--blue { background: rgba(77,171,247,0.18); color: #8ecfff; }

.feature-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--text-muted); line-height: 1.55; }

/* ── Post preview / forum posts ── */
.post-preview, .forum-posts { display: flex; flex-direction: column; gap: 10px; }

.post-card, .forum-post {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.post-card:hover, .forum-post:hover { border-color: var(--border-hover); background: var(--surface-3); }

.forum-post--compact {
  align-items: center;
  padding: 14px 18px;
}

.forum-post--compact .post-body h4 {
  margin-bottom: 6px;
  font-size: 15px;
}

.forum-post--compact .post-meta {
  margin-top: 0;
}

.forum-post--compact .post-author {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
}

.post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}

.post-pin {
  font-size: 10px;
  font-weight: 700;
  background: rgba(255,200,87,0.15);
  color: var(--gold);
  border: 1px solid rgba(255,200,87,0.3);
  padding: 3px 8px;
  border-radius: 6px;
  flex-shrink: 0;
  align-self: flex-start;
}

.post-body { flex: 1; min-width: 0; }
.post-body h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; line-height: 1.4; }
.post-body p { font-size: 13px; color: var(--text-muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.post-thumb {
  margin-top: 10px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  max-width: 100%;
  width: min(100%, 280px);
  background: rgba(0,0,0,0.25);
}

.post-thumb img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.post-images {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  width: 100%;
}

.post-images--single {
  grid-template-columns: 1fr;
}

.post-images--duo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-images--grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
}

.post-image {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.28);
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.post-image:hover {
  border-color: rgba(124,92,252,0.45);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
}

.post-images--single .post-image {
  width: 100%;
  max-width: 100%;
}

.post-images--single .post-image img {
  width: 100%;
  height: auto;
  max-height: min(52vh, 420px);
  object-fit: contain;
  background: rgba(0,0,0,0.35);
}

.post-images--duo .post-image img,
.post-images--grid .post-image img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
}

@media (max-width: 640px) {
  .post-images--duo {
    grid-template-columns: 1fr;
  }

  .post-images--duo .post-image img,
  .post-images--grid .post-image img {
    height: 180px;
  }

  .post-images--single .post-image img {
    max-height: min(42vh, 320px);
  }
}

.admin-image-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-image-preview[hidden] { display: none !important; }

.admin-image-thumb {
  position: relative;
  width: 96px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.25);
}

.admin-image-thumb img {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: cover;
}

.admin-image-name {
  display: block;
  padding: 4px 6px;
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-image-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 6px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  cursor: pointer;
  font-size: 11px;
  line-height: 1;
}

.admin-image-remove:hover { background: rgba(248,113,113,0.85); }

.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-muted);
  min-width: 0;
}

.post-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(124,92,252,0.12);
  color: var(--purple);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Forum categories ── */
.forum-categories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.forum-cat {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
}

.forum-cat h4 { font-size: 13px; font-weight: 600; display: inline; }
.forum-cat p { display: none; }

.forum-cat:hover { border-color: var(--border-hover); }
.forum-cat.active {
  background: rgba(124,92,252,0.15);
  border-color: rgba(124,92,252,0.4);
  color: #fff;
}

/* ── Server card ── */
.server-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.server-card-title {
  grid-column: 1 / -1;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.server-item label { display: block; font-size: 11px; color: var(--text-muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.04em; }
.server-item strong { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--gold); }

/* ── Download ── */
.download-grid { display: grid; gap: 14px; }

.download-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: border-color 0.2s, transform 0.2s;
}

.download-card:hover { border-color: var(--border-hover); transform: translateX(4px); }

.download-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text);
}

.download-icon-svg {
  width: 28px;
  height: 28px;
  display: block;
}

.download-icon--android {
  background: rgba(61, 220, 132, 0.12);
  border-color: rgba(61, 220, 132, 0.28);
}

.download-icon--pc {
  background: rgba(96, 165, 250, 0.12);
  border-color: rgba(96, 165, 250, 0.28);
}

.download-icon--ios {
  background: rgba(161, 161, 170, 0.12);
  border-color: rgba(161, 161, 170, 0.28);
}

.download-info { flex: 1; }
.download-info h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.download-info .ver { font-size: 12px; color: var(--text-muted); }
.download-info .note { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

.btn-download {
  background: #fff;
  color: #111;
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-download:hover { transform: scale(1.04); box-shadow: 0 4px 16px rgba(255,255,255,0.15); }

.steps-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-top: 24px;
}

.steps-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.steps-card ol { padding-left: 20px; color: var(--text-muted); font-size: 14px; }
.steps-card li { margin-bottom: 8px; }
.steps-card li::marker { color: var(--purple); }

/* ── Footer ── */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 20px clamp(16px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-social { display: flex; gap: 8px; }

.footer-social a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.2s;
}

.footer-social a:hover { color: var(--text); }

/* ── Modal ── */
.modal {
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
  overflow: visible;
}

.modal[open] {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  padding: 16px;
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.modal-box {
  width: min(480px, 92vw);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  color: var(--text);
  animation: modalIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.94) translateY(18px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-head h3 { font-size: 17px; font-weight: 700; }

.modal-close {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.modal-close:hover { background: var(--surface-3); color: var(--text); }

.field {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.field-label {
  display: block;
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  transition: border-color 0.2s;
}

.field input[type="file"] {
  padding: 8px 10px;
  cursor: pointer;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(124,92,252,0.5);
}

.admin-dropzone {
  position: relative;
  margin-top: 6px;
  border: 1px dashed rgba(255,255,255,0.18);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03);
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  overflow: hidden;
}

.admin-dropzone:hover,
.admin-dropzone.is-dragover {
  border-color: rgba(124,92,252,0.55);
  background: rgba(124,92,252,0.08);
}

.admin-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  margin: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
  z-index: 2;
}

.admin-dropzone-ui {
  pointer-events: none;
  text-align: center;
  padding: 18px 16px;
  display: grid;
  gap: 4px;
}

.admin-dropzone-ui strong {
  color: var(--text);
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
}

.admin-dropzone-ui span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.confirm-modal-box {
  width: min(400px, 92vw);
}

.confirm-message {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 4px 0 0;
}

.confirm-modal-box .btn-danger {
  min-width: 88px;
}

.empty-msg {
  text-align: center;
  padding: 32px;
  color: var(--text-muted);
  font-size: 14px;
  background: var(--surface-2);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.loading { color: var(--text-muted); font-size: 14px; padding: 20px; text-align: center; }
.hidden { display: none !important; }

/* ── Auth ── */
.auth-area {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  z-index: 110;
  flex-shrink: 0;
  min-width: 0;
}

.auth-pill {
  display: inline-flex;
  align-items: stretch;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 3px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.auth-pill__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.auth-pill__btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  flex-shrink: 0;
}

.auth-pill__btn--ghost {
  background: transparent;
  color: var(--text-muted);
}

.auth-pill__btn--ghost:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

.auth-pill__btn--accent {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 16px rgba(124,92,252,0.35);
}

.auth-pill__btn--accent:hover {
  box-shadow: 0 6px 22px rgba(124,92,252,0.5);
  transform: translateY(-1px);
}

/* Logged-in dropdown */
.auth-user-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.user-dropdown {
  position: relative;
  overflow: visible;
  z-index: 120;
}

.user-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px 5px 5px;
  color: var(--text);
  font-family: var(--font);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.user-trigger:hover,
.user-trigger[aria-expanded="true"] {
  border-color: rgba(124,92,252,0.45);
  background: var(--surface-3);
}

.user-trigger-avatar {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  flex-shrink: 0;
}

.user-trigger-text { text-align: left; line-height: 1.2; min-width: 0; }
.user-trigger-text strong {
  display: block;
  font-size: 13px;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-trigger-text small {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
}

.user-trigger-chevron {
  width: 14px;
  height: 14px;
  fill: var(--text-muted);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.user-trigger[aria-expanded="true"] .user-trigger-chevron {
  transform: rotate(180deg);
}

.user-dropdown-panel {
  display: block;
  position: fixed;
  top: 0;
  left: 12px;
  right: auto;
  min-width: 240px;
  max-width: calc(100vw - 24px);
  box-sizing: border-box;
  background: #12161f;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  padding: 12px;
  box-shadow: 0 18px 48px rgba(0,0,0,0.55);
  z-index: 10000;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.22s;
}

.user-dropdown-panel.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}

.user-dropdown-panel[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .user-dropdown-panel {
    transition: none;
  }
}

.user-dropdown-meta {
  padding: 4px 6px 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

.user-dropdown-meta strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.user-dropdown-meta span {
  font-size: 12px;
  color: var(--text-muted);
}

.user-dropdown-logout {
  width: 100%;
  background: rgba(248,113,113,0.08);
  border: 1px solid rgba(248,113,113,0.2);
  color: #f87171;
  border-radius: 8px;
  padding: 10px 12px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.user-dropdown-logout:hover {
  background: rgba(248,113,113,0.16);
}

.user-dropdown-item {
  width: 100%;
  background: rgba(245,197,24,0.1);
  border: 1px solid rgba(245,197,24,0.25);
  color: #f5c518;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
}

.user-dropdown-item:hover {
  background: rgba(245,197,24,0.18);
}

.admin-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  background: linear-gradient(135deg, #f5c518, #e8a317);
  color: #1a1200;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

.nav-link--admin {
  color: #f5c518 !important;
}

.admin-gate {
  text-align: center;
  padding: 48px 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
}

.admin-gate p { color: var(--text-muted); margin-bottom: 20px; }

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.admin-stat {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.admin-stat strong {
  display: block;
  font-size: 22px;
  font-family: var(--font-display, var(--font));
  color: #f5c518;
}

.admin-stat span {
  font-size: 12px;
  color: var(--text-muted);
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.admin-tab {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 8px 16px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-tab.active,
.admin-tab:hover {
  background: rgba(245,197,24,0.12);
  border-color: rgba(245,197,24,0.35);
  color: #f5c518;
}

.admin-section { display: none; }
.admin-section.active { display: block; }

.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.admin-form-grid .field--full { grid-column: 1 / -1; }

.admin-form-grid .field--check {
  display: flex;
  align-items: center;
  gap: 10px;
  grid-column: 1 / -1;
  font-size: 14px;
  color: var(--text);
}

.admin-form-grid .field--check input {
  width: auto;
  margin: 0;
}

.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.admin-panel-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.admin-filter-row input,
.admin-filter-row select {
  flex: 1;
  min-width: 160px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: var(--text);
  padding: 10px 12px;
  font-family: var(--font);
  font-size: 13px;
}

.admin-upload-progress {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(245,197,24,0.1);
  border: 1px solid rgba(245,197,24,0.25);
  color: #f5c518;
  font-size: 13px;
}

.admin-advanced {
  padding: 14px 16px;
}

.admin-advanced summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-muted);
}

.gc-status {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}

.gc-status--active {
  background: rgba(74,222,128,0.15);
  color: #4ade80;
}

.gc-status--scheduled {
  background: rgba(96,165,250,0.15);
  color: #60a5fa;
}

.gc-status--expired {
  background: rgba(161,161,170,0.18);
  color: #a1a1aa;
}

.gc-status--exhausted {
  background: rgba(248,113,113,0.15);
  color: #f87171;
}

.event-status {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}

.event-status--active {
  background: rgba(74,222,128,0.15);
  color: #4ade80;
}

.event-status--upcoming {
  background: rgba(96,165,250,0.15);
  color: #60a5fa;
}

.event-status--ended {
  background: rgba(161,161,170,0.18);
  color: #a1a1aa;
}

.field-inline {
  display: flex;
  gap: 8px;
  align-items: center;
}

.field-inline input { flex: 1; min-width: 0; }

.admin-list { display: flex; flex-direction: column; gap: 10px; }

.admin-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
}

.admin-row-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.admin-row-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
  align-items: center;
}

.admin-row--off {
  opacity: 0.55;
}

.admin-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  margin-right: 4px;
}

.admin-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.admin-switch-ui {
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.14);
  position: relative;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.admin-switch-ui::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}

.admin-switch input:checked + .admin-switch-ui {
  background: rgba(81,207,102,0.35);
  border-color: rgba(81,207,102,0.55);
}

.admin-switch input:checked + .admin-switch-ui::after {
  transform: translateX(18px);
}

.admin-switch-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 28px;
}

.admin-switch input:checked ~ .admin-switch-label {
  color: #51cf66;
}

.admin-social-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.admin-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-social-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.field input[type="color"] {
  padding: 4px;
  height: 44px;
  cursor: pointer;
}

.admin-post-actions {
  display: flex;
  gap: 8px;
  margin: 12px 0 16px;
}

.btn-sm {
  padding: 6px 12px !important;
  font-size: 12px !important;
}

.btn-xs {
  padding: 2px 8px !important;
  font-size: 11px !important;
  margin-left: auto;
}

.btn-danger {
  background: rgba(248,113,113,0.12);
  border: 1px solid rgba(248,113,113,0.3);
  color: #f87171;
  border-radius: 8px;
  padding: 8px 14px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-danger:hover { background: rgba(248,113,113,0.22); }

.comment-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .admin-form-grid { grid-template-columns: 1fr; }
  .admin-row { flex-direction: column; align-items: flex-start; }
}

/* Auth modal */
.modal-auth .modal-box,
.modal-auth.auth-modal-box,
.auth-modal-box {
  width: min(440px, 92vw);
}

.auth-modal-box {
  position: relative;
  padding: 28px 28px 24px;
}

.auth-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
}

.auth-modal-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding-right: 36px;
}

.auth-modal-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  flex-shrink: 0;
}

.auth-modal-brand strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.auth-modal-brand p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 22px;
}

.auth-tab {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 12px;
  cursor: pointer;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}

.auth-tab.active {
  color: #fff;
  background: rgba(124,92,252,0.22);
  box-shadow: inset 0 0 0 1px rgba(124,92,252,0.35);
}

.auth-panel { display: none; }
.auth-panel.active { display: block; }

.auth-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

.auth-form-grid .field:nth-child(odd):last-child {
  grid-column: 1 / -1;
}

.field-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin: -4px 0 16px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

.btn-auth-submit { margin-top: 4px; padding: 12px 20px; }

.auth-msg {
  font-size: 13px;
  text-align: center;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 8px;
}

.auth-msg.error { background: rgba(248,113,113,0.12); color: #f87171; }
.auth-msg.success { background: rgba(81,207,102,0.12); color: var(--green); }

/* ── Panel ── */
.panel {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.panel-head h2 { font-size: 16px; font-weight: 700; }

.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 0;
}

/* ── Forum layout ── */
.forum-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 20px;
  position: relative;
}

.forum-sidebar h3 { font-size: 13px; font-weight: 700; margin-bottom: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

.cat-list { list-style: none; }
.cat-list li {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
}
.cat-list li:hover, .cat-list li.active { background: rgba(124,92,252,0.12); color: #fff; }

.mini-stats { font-size: 13px; color: var(--text-muted); line-height: 1.8; }
.mini-stats strong { color: var(--gold); }

/* ── Post detail ── */
.post-detail { animation: slideUpIn 0.45s cubic-bezier(0.22, 1, 0.36, 1); }

@keyframes slideUpIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.back-btn {
  background: none;
  border: none;
  color: var(--purple);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 16px;
  padding: 0;
}
.back-btn:hover { color: var(--pink); }

.detail-article {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 24px;
}

.detail-hero {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.detail-avatar {
  width: 56px;
  height: 74px;
  object-fit: contain;
  flex-shrink: 0;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
  background: transparent;
}

.detail-avatar.is-fallback,
.comment-avatar.is-fallback {
  image-rendering: auto;
  filter: none;
  border-radius: 8px;
}

.detail-hero-text { min-width: 0; flex: 1; }
.detail-article h2 { font-size: 22px; font-weight: 700; margin-bottom: 12px; line-height: 1.3; }
.detail-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 0; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.detail-author { font-weight: 600; }
.author-name { color: var(--text); font-weight: 600; }
.author-name--admin {
  color: #f5c518;
  text-shadow: 0 0 12px rgba(245, 197, 24, 0.35);
}
.detail-body { font-size: 15px; line-height: 1.75; color: var(--text); white-space: pre-wrap; }

.comments-section h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }

.comment {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 8px;
}

.comment-head {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.comment-avatar {
  width: 36px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.3));
  background: transparent;
}
.comment-head-text { min-width: 0; flex: 1; padding-top: 2px; }
.comment-head strong { color: var(--text); }
.comment-body { font-size: 14px; line-height: 1.5; padding-left: 46px; }

@media (max-width: 640px) {
  .detail-hero { gap: 12px; }
  .detail-avatar { width: 48px; height: 64px; }
  .comment-body { padding-left: 0; }
}

.comment-form { margin-top: 16px; }
.comment-form textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  margin-bottom: 10px;
  resize: vertical;
}
.comment-form textarea:focus { outline: none; border-color: rgba(124,92,252,0.5); }

/* ── Tabs & Rankings ── */
.tabs {
  position: relative;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  width: fit-content;
}

.tab-indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  border-radius: 999px;
  background: rgba(124,92,252,0.22);
  box-shadow: inset 0 0 0 1px rgba(124,92,252,0.35);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 0;
}

.tab {
  position: relative;
  z-index: 1;
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.25s;
}

.tab:hover { color: var(--text); }
.tab.active { color: #fff; }

.ranking-table-wrap {
  transition: opacity 0.3s, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.ranking-table-wrap.is-loading {
  opacity: 0.45;
  transform: translateY(8px);
}

.ranking-table-wrap.fx-swap {
  animation: contentSwap 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes contentSwap {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}

.ranking-table { width: 100%; border-collapse: collapse; }
.ranking-table th, .ranking-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
.ranking-table th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); font-weight: 600; }
.ranking-table tr:hover td { background: rgba(255,255,255,0.02); }
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 13px;
  background: var(--surface-3);
}
.rank-badge.top1 { background: linear-gradient(135deg, #ffd700, #ffaa00); color: #000; }
.rank-badge.top2 { background: linear-gradient(135deg, #c0c0c0, #a0a0a0); color: #000; }
.rank-badge.top3 { background: linear-gradient(135deg, #cd7f32, #a0522d); color: #fff; }

.rank-player {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.rank-avatar {
  width: 44px;
  height: 58px;
  object-fit: contain;
  flex-shrink: 0;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
  background: transparent;
  border-radius: 0;
  border: none;
}

.rank-avatar.is-fallback {
  image-rendering: auto;
  filter: none;
  object-fit: cover;
  padding: 0;
}

.rank-player strong {
  font-size: 14px;
  font-weight: 600;
}

/* ── Giftcode ── */
.giftcode-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }

.giftcode-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  position: relative;
  overflow: hidden;
}

.giftcode-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
}

.giftcode-code {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 8px;
}

.giftcode-reward { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.giftcode-meta { font-size: 11px; color: var(--text-muted); margin-bottom: 14px; }

.btn-copy {
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
}

.btn-copy:hover { transform: scale(1.04); }

/* ── Guides & FAQ ── */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.guide-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(165deg, rgba(255,255,255,0.04), transparent 42%),
    var(--surface-2);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  padding: 0;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.guide-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, #ff8a4c, #f5c518 55%, #7c5cfc);
  opacity: 0.9;
}

.guide-card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 22px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.guide-card-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(245, 197, 24, 0.12);
  color: #f5c518;
  border: 1px solid rgba(245, 197, 24, 0.28);
}

.guide-card-icon svg {
  width: 22px;
  height: 22px;
}

.guide-card--start .guide-card-icon {
  background: rgba(255, 138, 76, 0.14);
  color: #ff9b63;
  border-color: rgba(255, 138, 76, 0.3);
}

.guide-card--farm .guide-card-icon {
  background: rgba(74, 222, 128, 0.12);
  color: #86efac;
  border-color: rgba(74, 222, 128, 0.28);
}

.guide-card--gift .guide-card-icon {
  background: rgba(244, 114, 182, 0.12);
  color: #f9a8d4;
  border-color: rgba(244, 114, 182, 0.28);
}

.guide-card--game .guide-card-icon {
  background: rgba(124, 92, 252, 0.14);
  color: #c4b5fd;
  border-color: rgba(124, 92, 252, 0.3);
}

.guide-card-titles { min-width: 0; }
.guide-card-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.guide-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

.guide-steps {
  list-style: none;
  margin: 0;
  padding: 10px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guide-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255,255,255,0.04);
}

.guide-step-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: #1a1200;
  background: linear-gradient(135deg, #f5c518, #e8a317);
}

.guide-step-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted);
  padding-top: 2px;
}

.faq-list { display: flex; flex-direction: column; gap: 8px; }

.faq-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-q::after { content: '+'; color: var(--purple); font-size: 18px; transition: transform 0.25s; }
.faq-item.open .faq-q::after { content: '−'; }

.events-grid { display: grid; gap: 12px; }

.event-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}

.event-date {
  font-size: 11px;
  font-weight: 700;
  color: var(--purple);
  background: rgba(124,92,252,0.12);
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.event-card h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.event-card p { font-size: 13px; color: var(--text-muted); }

.event-home {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.event-home:last-child { border-bottom: none; }

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-3);
  border: 1px solid var(--border-hover);
  color: var(--text);
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  z-index: 999;
  box-shadow: var(--shadow);
  animation: toastIn 0.3s ease;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── Motion & Sliders ── */
.fx-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--fx-delay, 0s);
}

.fx-reveal.fx-visible {
  opacity: 1;
  transform: translateY(0);
}

.fx-hero {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--fx-delay, 0s);
}

.fx-hero.fx-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-title .gradient-text {
  background-size: 200% auto;
  animation: shimmer 6s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.giftcode-grid.fx-swap,
.giftcode-grid.is-loading,
#guidesGrid.fx-swap {
  animation: contentSwap 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.giftcode-grid.is-loading {
  opacity: 0.5;
  animation: none;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), padding 0.35s;
  padding: 0 20px;
}

.faq-item.open .faq-a {
  max-height: 240px;
  padding: 0 20px 16px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .fx-reveal, .fx-hero { opacity: 1; transform: none; }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .navbar {
    grid-template-columns: 1fr auto auto;
    grid-template-areas: "brand auth actions";
    height: auto;
    min-height: var(--nav-h);
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .brand { grid-area: brand; }
  .auth-area { grid-area: auth; justify-self: end; }
  .nav-actions {
    grid-area: actions;
    gap: 8px;
  }
  .nav-social { display: none !important; }
  .nav {
    grid-area: unset;
    display: flex;
    position: fixed;
    top: calc(var(--nav-h) + 8px);
    left: 12px;
    right: 12px;
    background: rgba(8,10,18,0.96);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    gap: 4px;
    box-shadow: var(--shadow);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 0.22s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0.22s;
  }

  .nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-link,
  .nav-link[data-page="about"],
  .nav-link[data-page="guides"],
  .nav-link[data-page="giftcode"],
  .nav-link[data-page="rankings"] {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    font-size: 14px;
  }

  .nav-toggle { display: flex; }
  .nav-actions .btn-cta {
    display: inline-flex;
    padding: 8px 12px;
    font-size: 12px;
  }

  .auth-pill__btn { padding: 8px 12px; font-size: 12px; }
  .auth-pill__btn--ghost span { display: none; }
  .user-trigger-text { display: none; }
  .user-trigger { padding: 4px; border-radius: 12px; }
  .user-trigger-chevron { display: none; }

  .auth-form-grid { grid-template-columns: 1fr; }

  .hero {
    gap: 18px;
    padding-top: 8px;
  }

  .hero-stage { gap: 12px; }

  .hero-datetime {
    width: 100%;
    max-width: 320px;
    padding: 12px 16px;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .download-card { flex-direction: column; text-align: center; }
  .download-card .btn-download { width: 100%; text-align: center; }

  .page-head--row { flex-direction: column; align-items: flex-start; }
  .forum-layout { grid-template-columns: 1fr; }
  .forum-sidebar { display: none; }
  .home-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stats { gap: 10px; }
  .stat { padding: 12px 10px; }
}
