:root {
  --bg-main:#0b0d10;
  --card-bg:rgba(20,23,30,.95);
  --accent:#e53935;
  --text-main:#fff;
  --text-muted:#a0a6b1;
  --border-soft:rgba(255,255,255,.08);
  --radius-lg:22px;
  --radius-md:16px;
  --radius-sm:12px;
  --shadow-soft:0 20px 60px rgba(0,0,0,.55);
}

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

body{
  font-family:Inter,system-ui,sans-serif;
  background:radial-gradient(circle at top,#161922,#0b0d10 55%);
  color:var(--text-main);
}

/* HEADER */
.topbar{
  position:sticky;top:0;
  background:rgba(11,13,16,.8);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--border-soft);
}
.topbar-inner{
  max-width:1200px;margin:auto;
  padding:18px 24px;
  display:flex;justify-content:space-between
}
.brand{font-size:22px;font-weight:900;color:var(--accent)}
.menu{display:flex;gap:26px}
.menu a{color:var(--text-muted);text-decoration:none}
.menu a:hover,.menu a.active{color:#fff}

/* HERO */
.hero{position:relative}
.hero-bg{
  position:absolute;inset:0;
  background:radial-gradient(circle at top left,rgba(229,57,53,.25),transparent 40%),
             radial-gradient(circle at bottom right,rgba(255,255,255,.06),transparent 45%);
  filter:blur(80px)
}
.hero-inner{
  position:relative;
  max-width:1200px;margin:auto;
  padding:90px 24px;
  display:grid;grid-template-columns:1.3fr .7fr;
  gap:60px
}
.hero-text h1{font-size:48px;font-weight:900}
.hero-text p{color:var(--text-muted);margin:20px 0}
.hero-actions{display:flex;gap:16px;align-items:center}
.btn-primary {
  padding: 16px 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #b71c1c);
  color: #fff;
  font-weight: 800;
  border: none;
  cursor: pointer;
}

.hero-ip{
  padding:14px 22px;border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid var(--border-soft)
}
.hero-stats{display:grid;gap:22px}
.stat{
  padding:26px;background:var(--card-bg);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-soft)
}
.stat span{font-size:34px;font-weight:900}

/* LAYOUT */
.container{max-width:1200px;margin:auto;padding:40px 24px}
.grid{display:grid;grid-template-columns:2.2fr .8fr;gap:34px}
.main-content{display:grid;gap:30px}

/* CARDS */
.card{
  background:var(--card-bg);
  border-radius:var(--radius-lg);
  padding:28px;
  box-shadow:var(--shadow-soft);
  border:1px solid var(--border-soft)
}
.card p{color:var(--text-muted)}

/* NEWS */
.news-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:26px
}
.news-card p{color:var(--text-muted);margin:12px 0}
.btn-read{color:var(--accent);font-weight:700;text-decoration:none}

/* SIDEBAR STATS */
.stats-list{display:grid;gap:12px}
.stat-row{
  display:flex;justify-content:space-between;
  padding:12px 14px;border-radius:var(--radius-md);
  background:rgba(255,255,255,.04)
}
.stat-row span{color:var(--text-muted)}

/* TOP PLAYERS */
.toplist{list-style:none;display:grid;gap:12px}
.toplist li{
  display:flex;justify-content:space-between;
  padding:14px;border-radius:var(--radius-md);
  background:rgba(255,255,255,.04)
}
.gold{border-left:4px solid #f5c542}
.silver{border-left:4px solid #cfd3d6}
.bronze{border-left:4px solid #cd7f32}

/* FOOTER */
.footer{
  margin-top:100px;
  background:#0c0f13;
  border-top:1px solid rgba(255,255,255,.08)
}
.footer-widgets{
  max-width:1200px;margin:auto;
  padding:70px 24px 50px;
  display:grid;grid-template-columns:2fr 1fr 1fr;
  gap:50px
}
.footer-widget h4{color:var(--accent);font-size:22px}
.footer-widget h5{font-size:13px;text-transform:uppercase;margin-bottom:18px}
.footer-widget a{color:var(--text-muted);text-decoration:none;display:block;margin-bottom:12px}
.footer-copy{
  text-align:center;padding:22px;
  font-size:13px;color:#777;
  border-top:1px solid rgba(255,255,255,.06)
}

/* RESPONSIVE */
@media(max-width:900px){
  .hero-inner,.grid,.footer-widgets{grid-template-columns:1fr}
  .menu{flex-wrap:wrap}
}

/* ================= FIX: NEWS ================= */
.news-section {
  margin-top: 40px;
}

.news-header h2 {
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 6px;
}

.news-header p {
  color: var(--text-muted);
  margin-bottom: 28px;
}

.news-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 26px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 70px rgba(0,0,0,.6);
}

.news-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.news-card p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.btn-read {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  position: relative;
}

.btn-read::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width .2s ease;
}

.btn-read:hover::after {
  width: 100%;
}

/* ================= FIX: LOGIN FORM ================= */
.login-form {
  display: grid;
  gap: 14px;
  margin-top: 10px;
}

.login-form input {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: #0f1218;
  color: #fff;
  font-size: 14px;
}

.login-form input::placeholder {
  color: var(--text-muted);
}

.login-form button {
  margin-top: 6px;
  padding: 14px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--accent), #b71c1c);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.login-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(229,57,53,.5);
}

/* ================= PLAYER PROFILE ================= */
.profile-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.profile-head img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  border: 2px solid rgba(255,255,255,.08);
}

.profile-user strong {
  display: block;
  font-size: 17px;
  font-weight: 800;
}

.status {
  font-size: 13px;
  font-weight: 600;
  margin-top: 4px;
}

.status.online {
  color: #4cff7a;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.profile-stat {
  background: rgba(255,255,255,.05);
  border-radius: var(--radius-md);
  padding: 10px;
  text-align: center;
}

.profile-stat small {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.profile-stat b {
  font-size: 14px;
  font-weight: 800;
}

.btn-outline.full {
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease;
}

.btn-outline.full:hover {
  background: var(--accent);
}

/* ================= TOAST / SNACKBAR ================= */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(20,23,30,.95);
  color: #fff;
  padding: 16px 22px;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,.6);
  border: 1px solid rgba(255,255,255,.08);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
  z-index: 9999;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast::before {
  display: inline-block;
  font-size: 18px;
  font-weight: 900;
}

.toast.success::before {
  content: "✓";
  color: #4cff7a;
}

.toast.error::before {
  content: "✕";
  color: #ff5c5c;
}

.toast.info::before {
  content: "ℹ";
  color: #5cc8ff;
}

/* responsive */
@media (max-width: 600px) {
  .toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
    text-align: center;
  }
}

/* ================= TOAST SHAKE (ERROR) ================= */
@keyframes toast-shake {
  0%   { transform: translateX(0); }
  20%  { transform: translateX(-6px); }
  40%  { transform: translateX(6px); }
  60%  { transform: translateX(-4px); }
  80%  { transform: translateX(4px); }
  100% { transform: translateX(0); }
}

.toast.error #toast-text {
  animation: toast-shake 0.45s ease;
}

/* ================= LOGOUT BUTTON – SOFT STYLE ================= */
.profile .logout-btn,
#logout-form button {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all .25s ease;
  width: 100%;
}

.profile .logout-btn:hover,
#logout-form button:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}

.profile .logout-btn:active,
#logout-form button:active {
  transform: translateY(0);
}

/* ================= FORUM ================= */
.forum-grid {
  grid-template-columns: 2.5fr 1fr;
}

.forum-category {
  margin-bottom: 32px;
}

.forum-category h2 {
  margin-bottom: 16px;
}

.forum-row {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 16px;
  margin-bottom: 12px;
}

.forum-info h3 {
  margin: 0 0 4px;
}

.forum-info p {
  opacity: .7;
  font-size: 14px;
}

.forum-stats span {
  display: block;
  font-size: 13px;
  opacity: .8;
}

.forum-last strong {
  display: block;
}

.forum-last small {
  opacity: .6;
  font-size: 13px;
}

.forum-stats-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.forum-stats-list li:last-child {
  border-bottom: none;
}

/* responsive */
@media (max-width: 900px) {
  .forum-grid {
    grid-template-columns: 1fr;
  }

  .forum-row {
    grid-template-columns: 1fr;
  }
}

.rank {
  text-transform: capitalize;
}

/* ================= NAVBAR 2026 ================= */
.menu {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav-link {
  position: relative;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: all .25s ease;
}

/* hover */
.nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}

/* active */
.nav-link.active {
  color: #fff;
  background: linear-gradient(
    135deg,
    rgba(229,57,53,0.25),
    rgba(229,57,53,0.05)
  );
  box-shadow: inset 0 0 0 1px rgba(229,57,53,0.4);
}

/* underline glow effect */
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 4px;
  transform: translateX(-50%);
  transition: width .25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 40%;
}

/* ================= MOBILE ================= */
@media (max-width: 900px) {
  .menu {
    gap: 6px;
  }

  .nav-link {
    padding: 8px 14px;
    font-size: 13px;
  }
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status.online::before {
  background: #3cff7a;
  box-shadow: 0 0 8px #3cff7a;
}

.status.offline::before {
  background: #666;
}

/* ================= ADMIN BUTTON ================= */
.admin-btn {
  position: relative;
  display: block;
  margin-bottom: 14px;
  padding: 14px 18px;
  border-radius: 16px;
  font-weight: 800;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
  color: #2b1c00;

  background: linear-gradient(
    135deg,
    #ffdf8a,
    #ffb300,
    #ffd54f
  );

  box-shadow:
    0 0 0 1px rgba(255,215,64,.8),
    0 10px 40px rgba(255,193,7,.45);

  overflow: hidden;
}

/* hover */
.admin-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(255,215,64,1),
    0 14px 50px rgba(255,193,7,.65);
}

/* ================= PARTICLES ================= */
.admin-particles {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.6) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 40%, rgba(255,255,255,.4) 0 1.5px, transparent 3px),
    radial-gradient(circle at 40% 70%, rgba(255,255,255,.5) 0 2px, transparent 3px);
  animation: adminParticles 3s linear infinite;
}

@keyframes adminParticles {
  0% {
    transform: translateY(0);
    opacity: .8;
  }
  100% {
    transform: translateY(-12px);
    opacity: 0;
  }
}

/* ===== PROFILE PAGE ===== */
.profile-page {
  background: radial-gradient(1200px at 20% 0%, #220c0c, #07090d);
  min-height: 100vh;
}

/* HERO */
.profile-hero {
  position: relative;
  padding: 120px 20px 60px;
}

.profile-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200,30,30,.2), transparent);
  filter: blur(120px);
}

.profile-card {
  max-width: 1100px;
  margin: auto;
  background: rgba(18,20,26,.9);
  border-radius: 24px;
  padding: 40px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  box-shadow: 0 40px 120px rgba(0,0,0,.6);
}

/* SKIN */
.profile-skin img {
  width: 100%;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,.6));
}

/* INFO */
.profile-info h1 {
  font-size: 48px;
  margin: 0;
}

.rank-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 800;
  background: #333;
}

.rank-majitel { background: linear-gradient(135deg, gold, orange); color:#000 }
.rank-admin { background:#e53935 }
.rank-vip { background:#fbc02d;color:#000 }
.rank-default { background:#555 }

/* META */
.profile-meta {
  margin-top: 24px;
  display: flex;
  gap: 24px;
}

.profile-meta small {
  color: #aaa;
  display: block;
}

/* CONTENT */
.profile-content {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.profile-panel {
  background: rgba(18,20,26,.9);
  border-radius: 20px;
  padding: 28px;
}

.profile-panel h3 {
  margin-bottom: 16px;
}

.profile-panel ul {
  list-style: none;
  padding: 0;
}

.profile-panel li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}

/* STATUS */
.online { color:#4cff7a }
.offline { color:#ff5c5c }

/* RESPONSIVE */
@media (max-width: 900px) {
  .profile-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .profile-meta {
    justify-content: center;
  }

  .profile-content {
    grid-template-columns: 1fr;
  }
}
