﻿:root {
  --bg-0: #0a0c10;
  --bg-1: #10141d;
  --bg-2: #121826;
  --accent: #ff3b2f;
  --accent-2: #2f7bff;
  --accent-3: #7db1ff;
  --text: #e7ebf2;
  --muted: #9aa3b2;
  --line: #242a38;
  --card: #161c27;
  --card-2: #1b2230;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 10% 10%, rgba(255, 59, 47, 0.2), transparent 35%),
    radial-gradient(circle at 90% 20%, rgba(47, 123, 255, 0.2), transparent 40%),
    linear-gradient(120deg, var(--bg-0), var(--bg-1) 40%, #0c0f15 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.2;
  pointer-events: none;
}

.no-animations * {
  animation: none !important;
  transition: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
  background: rgba(10, 12, 16, 0.7);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: "Russo One", "Segoe UI", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.nav-links {
  display: flex;
  gap: 26px;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav-links a {
  position: relative;
  padding-bottom: 6px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.profile-actions {
  display: grid;
  grid-template-columns: repeat(3, 140px);
  align-items: center;
  gap: 12px;
  justify-content: end;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: width 0.3s ease, border-radius 0.3s ease, transform 0.15s ease;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.35);
  color: #fff;
  background: #2b3242;
  justify-self: end;
}

.action-btn .action-sign {
  width: 100%;
  transition: width 0.3s ease, padding-left 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.action-btn .action-text {
  position: absolute;
  right: 0%;
  width: 0%;
  opacity: 0;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  transition: opacity 0.3s ease, width 0.3s ease, padding-right 0.3s ease;
  white-space: nowrap;
}

.action-btn:hover {
  width: 140px;
  border-radius: 40px;
}

.action-btn:hover .action-sign {
  width: 30%;
  padding-left: 18px;
}

.action-btn:hover .action-text {
  opacity: 1;
  width: 70%;
  padding-right: 12px;
}

.action-btn:active {
  transform: translate(2px, 2px);
}

.action-btn.profile {
  background: linear-gradient(120deg, #2f4bff, #2fa8ff);
}

.action-btn.settings {
  background: linear-gradient(120deg, #ff3b2f, #ff7a3d);
}

.action-btn.logout {
  background: rgb(255, 65, 65);
}

.pressable {
  transition: transform 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.pressable.is-pressed {
  transform: translateY(1px) scale(0.98);
  box-shadow: none;
}

.hero {
  padding: 80px 0 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.hero-card {
  background: linear-gradient(145deg, rgba(22, 28, 39, 0.9), rgba(12, 16, 22, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 22px;
  padding: 36px;
  box-shadow: var(--shadow);
}

.hero-title {
  font-family: "Russo One", "Segoe UI", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.3rem);
  margin: 0 0 18px;
  letter-spacing: 0.04em;
}

.hero-subtitle {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #090b10;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(255, 59, 47, 0.25);
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.btn:hover {
  transform: translateY(-2px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.stat-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  padding: 16px 18px;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.85rem;
}

.stat-card strong {
  display: block;
  font-size: 1.3rem;
  margin-top: 6px;
}

.section {
  padding: 40px 0 80px;
}

.section-title {
  font-family: "Russo One", "Segoe UI", sans-serif;
  font-size: 1.6rem;
  margin-bottom: 18px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.info-card {
  background: var(--card-2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  padding: 22px;
  min-height: 160px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.info-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 122, 61, 0.4);
}

.info-card h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.info-card p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 59, 47, 0.15);
  border: 1px solid rgba(255, 59, 47, 0.3);
  color: #ffc2b8;
  font-size: 0.8rem;
  width: fit-content;
}

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

.page-intro {
  padding: 48px 0 32px;
}

.page-intro h1 {
  font-family: "Russo One", "Segoe UI", sans-serif;
  margin-bottom: 12px;
}

.page-intro p {
  color: var(--muted);
  line-height: 1.7;
}

.forum-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.panel {
  background: rgba(18, 24, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.panel h2 {
  margin-top: 0;
  font-size: 1.2rem;
}

.list {
  display: grid;
  gap: 12px;
}

.list-item {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(15, 20, 32, 0.9);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.list-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 122, 61, 0.4);
}

.list-item.active {
  border-color: rgba(255, 59, 47, 0.6);
  box-shadow: 0 0 0 1px rgba(255, 59, 47, 0.35);
}

.list-item small {
  color: var(--muted);
  display: block;
  margin-top: 6px;
}

.form-field {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.form-field label {
  font-size: 0.85rem;
  color: var(--muted);
}

.form-field input,
.form-field textarea {
  background: rgba(12, 16, 22, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text);
  font-family: inherit;
}

.editor {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  background: rgba(10, 14, 22, 0.9);
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  background: rgba(16, 20, 30, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.editor-button,
.editor-select,
.editor-color {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
}

.editor-area {
  min-height: 160px;
  padding: 14px;
  color: var(--text);
}

.editor-area:focus {
  outline: none;
}

.editor-upload {
  padding: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.post-list {
  display: grid;
  gap: 14px;
}

.post-card {
  padding: 16px;
  border-radius: 14px;
  background: rgba(14, 18, 28, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.post-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.post-content {
  line-height: 1.6;
}

.post-content img {
  max-width: 100%;
  border-radius: 10px;
  margin-top: 8px;
}

.profile-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  align-items: center;
}

.profile-avatar {
  width: 110px;
  height: 110px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-meta h2 {
  margin: 0 0 8px;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.profile-tags span {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.profile-banner {
  background: linear-gradient(120deg, rgba(255, 59, 47, 0.2), rgba(47, 123, 255, 0.2));
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.data-item {
  background: rgba(12, 16, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px 14px;
}

.data-item span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 6px;
}

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

.ledger-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  background: rgba(12, 16, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px 14px;
}

.ledger-item strong {
  color: var(--text);
}

.ledger-item small {
  color: var(--muted);
}

.shop-balance {
  margin: 12px 0 16px;
  font-size: 0.95rem;
  color: var(--muted);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.shop-card {
  background: rgba(12, 16, 26, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 16px;
  display: grid;
  gap: 10px;
}

.shop-card h3 {
  margin: 0;
  font-size: 1rem;
}

.shop-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.shop-card .price {
  font-weight: 600;
}

.shop-card .owned {
  color: var(--accent-3);
  font-weight: 600;
}

.input-group {
  position: relative;
  margin-bottom: 14px;
}

.input-group .input {
  width: 100%;
  border: solid 1.5px #2c3443;
  border-radius: 1rem;
  background: rgba(10, 14, 22, 0.9);
  padding: 1rem;
  font-size: 1rem;
  color: #f5f5f5;
  transition: border 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.input-group .user-label {
  position: absolute;
  left: 15px;
  color: #e8e8e8;
  pointer-events: none;
  transform: translateY(1rem);
  transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  background-color: transparent;
  padding: 0 0.2em;
}

.input-group .input:focus,
.input-group .input:valid,
.input-group .input:not(:placeholder-shown) {
  outline: none;
  border: 1.5px solid #2f7bff;
}

.input-group .input:focus ~ label,
.input-group .input:valid ~ label,
.input-group .input:not(:placeholder-shown) ~ label {
  transform: translateY(-50%) scale(0.8);
  background-color: rgba(10, 14, 22, 0.9);
  color: #7db1ff;
}

.check {
  cursor: pointer;
  position: relative;
  margin: 0;
  width: 26px;
  height: 26px;
  -webkit-tap-highlight-color: transparent;
  transform: translate3d(0, 0, 0);
}

.check:before {
  content: "";
  position: absolute;
  top: -18px;
  left: -18px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(34, 50, 84, 0.08);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.check svg {
  position: relative;
  z-index: 1;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke: #c8ccd4;
  stroke-width: 1.6;
  transform: translate3d(0, 0, 0);
  transition: all 0.2s ease;
}

.check svg path {
  stroke-dasharray: 60;
  stroke-dashoffset: 0;
}

.check svg polyline {
  stroke-dasharray: 22;
  stroke-dashoffset: 66;
}

.check:hover:before {
  opacity: 1;
}

.check:hover svg {
  stroke: var(--accent-2, #7db1ff);
}

.check-input:checked + .check svg {
  stroke: var(--accent-2, #7db1ff);
}

.check-input:checked + .check svg path {
  stroke-dashoffset: 60;
  transition: all 0.3s linear;
}

.check-input:checked + .check svg polyline {
  stroke-dashoffset: 42;
  transition: all 0.2s linear;
  transition-delay: 0.15s;
}

.action-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 10, 16, 0.55);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 50;
}

.action-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.action-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 92vw);
  height: 100%;
  background: linear-gradient(170deg, rgba(17, 22, 33, 0.98), rgba(10, 12, 18, 0.98));
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 60;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 22px;
  gap: 18px;
}

.action-panel.open {
  transform: translateX(0);
}

.action-panel h3 {
  margin: 0;
  font-family: "Russo One", "Segoe UI", sans-serif;
  letter-spacing: 0.04em;
}

.action-panel .panel-body {
  overflow-y: auto;
  display: grid;
  gap: 14px;
}

.panel-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

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

.settings-list label {
  display: flex;
  gap: 12px;
  align-items: center;
}

.auth-summary {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(15, 20, 32, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-summary strong {
  font-size: 1.05rem;
}

.auth-meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.notice {
  width: min(360px, 100%);
  min-height: 80px;
  border-radius: 12px;
  box-sizing: border-box;
  padding: 12px 16px;
  background: rgba(14, 18, 28, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: rgba(0, 0, 0, 0.3) 0 8px 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.notice .wave {
  position: absolute;
  transform: rotate(90deg);
  left: -31px;
  top: 32px;
  width: 80px;
  fill: var(--notice-wave);
  opacity: 0.7;
}

.notice .icon-container {
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--notice-bg);
  border-radius: 50%;
  margin-left: 8px;
}

.notice .icon {
  width: 18px;
  height: 18px;
  color: var(--notice-icon);
}

.notice .message-text-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  flex-grow: 1;
}

.notice .message-text,
.notice .sub-text {
  margin: 0;
  cursor: default;
}

.notice .message-text {
  color: var(--notice-text);
  font-size: 0.95rem;
  font-weight: 700;
}

.notice .sub-text {
  font-size: 0.85rem;
  color: var(--muted);
}

.notice .notice-dismiss {
  width: 18px;
  height: 18px;
  color: var(--muted);
  cursor: pointer;
}

.notice-success {
  --notice-wave: rgba(4, 228, 0, 0.2);
  --notice-bg: rgba(4, 228, 0, 0.22);
  --notice-icon: #4ffb53;
  --notice-text: #7bff87;
}

.notice-warning {
  --notice-wave: rgba(255, 163, 13, 0.2);
  --notice-bg: rgba(255, 163, 13, 0.22);
  --notice-icon: #ffb236;
  --notice-text: #ffc36b;
}

.notice-error {
  --notice-wave: rgba(252, 12, 12, 0.2);
  --notice-bg: rgba(252, 12, 12, 0.22);
  --notice-icon: #ff5d5d;
  --notice-text: #ff8a8a;
}

.notice-info {
  --notice-wave: rgba(71, 119, 255, 0.2);
  --notice-bg: rgba(71, 119, 255, 0.22);
  --notice-icon: #7ca5ff;
  --notice-text: #9db9ff;
}

.notice-stack {
  display: grid;
  gap: 12px;
}

.footer {
  border-top: 2px solid rgba(255, 59, 47, 0.5);
  margin-top: 80px;
  padding: 36px 0 24px;
  background: rgba(10, 12, 16, 0.85);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer h4 {
  margin: 0 0 16px;
  font-family: "Russo One", "Segoe UI", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: #ff786e;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.footer-nav a:hover {
  transform: translateX(6px);
  color: var(--text);
}

.footer li span {
  color: #ff786e;
  margin-right: 6px;
}

.role-highlight {
  color: var(--accent-3);
  font-weight: 600;
}

.socials {
  display: flex;
  gap: 12px;
}

.social-button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.social-button svg {
  width: 20px;
  height: 20px;
  fill: var(--text);
}

.social-button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 122, 61, 0.5);
}

.footer-bottom {
  padding-top: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 48px;
  }

  .profile-actions {
    grid-template-columns: repeat(3, 46px);
    gap: 8px;
  }

  .action-btn:hover {
    width: 46px;
    border-radius: 50%;
  }

  .action-btn:hover .action-sign {
    width: 100%;
    padding-left: 0;
  }

  .action-btn:hover .action-text {
    opacity: 0;
    width: 0;
    padding-right: 0;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate {
  animation: fadeInUp 0.7s ease forwards;
}
