/* ============================================
   FONTS
   ============================================ */
@font-face {
  font-family: 'Myriad Pro';
  src: url('../css/font/MyriadPro-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Myriad Pro';
  src: url('../css/font/MYRIADPRO-REGULAR.OTF') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Myriad Pro';
  src: url('../css/font/MYRIADPRO-SEMIBOLD.OTF') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Myriad Pro';
  src: url('../css/font/MYRIADPRO-BOLD.OTF') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Myriad Pro';
  src: url('../css/font/MYRIADPRO-BOLDIT.OTF') format('opentype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Myriad Pro Condensed';
  src: url('../css/font/MYRIADPRO-COND.OTF') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Myriad Pro Condensed';
  src: url('../css/font/MYRIADPRO-BOLDCOND.OTF') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ============================================
   CSS VARIABLES — LIGHT THEME (default)
   ============================================ */
:root {
  --bg-body: #f2f2f2;
  --bg-card: #ffffff;
  --bg-card-hover: #fafafa;
  --bg-input: #ffffff;
  --bg-secondary: #fafafa;
  --bg-muted: #f5f5f5;
  --bg-purple-soft: #f5f0ff;
  --bg-header-scrolled: rgba(255, 255, 255, 0.95);
  --bg-modal-overlay: rgba(0, 0, 0, 0.5);
  --bg-placeholder: #000000b8;
  --bg-footer: rgba(22, 33, 62, 0.85);
  --bg-footer-legal: rgba(0, 0, 0, 0.3);
  --bg-social: rgba(255, 255, 255, 0.08);

  --text-primary: #000000;
  --text-heading: #28242a;
  --text-secondary: #444444;
  --text-muted: #666666;
  --text-dim: #999999;
  --text-light: #e0e0e0;
  --text-white: #ffffff;
  --text-link: #884ae6;
  --text-link-hover: #5202cb;
  --text-menu: #545454;
  --text-menu-hover: #9a68e9;
  --text-footer: rgba(255, 255, 255, 0.6);
  --text-footer-dim: rgba(255, 255, 255, 0.4);
  --text-footer-copy: rgb(255 255 255 / 74%);

  --border-color: #dbdbdb;
  --border-light: #f0f0f0;
  --border-lighter: #f5f5f5;
  --border-hover: #d3b2e5;
  --border-menu: #c9c9c9;

  --accent: #884ae7;
  --accent-hover: #5202cb;
  --accent-soft: rgba(136, 74, 231, 0.1);
  --accent-glow: rgba(136, 74, 231, 0.3);
  --accent-border: rgba(136, 74, 231, 0.08);

  --success: #00b894;
  --success-soft: rgba(0, 184, 148, 0.1);
  --success-border: rgba(0, 184, 148, 0.3);
  --warning: #d4a017;
  --warning-soft: rgba(253, 203, 110, 0.15);
  --warning-alt: #f0ad4e;
  --danger: #e94560;
  --danger-soft: rgba(233, 69, 96, 0.1);
  --danger-hover: #d63031;
  --info: #4a9eff;
  --info-soft: rgba(116, 185, 255, 0.1);

  --shadow-sm: 0 2px 20px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 5px 15px rgba(136, 74, 231, 0.08);
  --shadow-lg: 0 8px 25px rgba(136, 74, 231, 0.08);
  --shadow-card: 0 5px 15px rgba(0, 0, 0, 0.1);
  --shadow-dropdown: 0 10px 30px rgba(0, 0, 0, 0.15);
  --shadow-modal: 0 20px 40px rgba(0, 0, 0, 0.15);

  --switch-off: #ddd;
  --slider-bg: #ffffff;
  --code-bg: #f5f0ff;
  --scrollbar: #c9c9c9;
}

/* ============================================
   CSS VARIABLES — DARK THEME
   ============================================ */
body.dark-theme,
html.dark-theme body {
  --bg-body: #0f0e17;
  --bg-card: #1a1825;
  --bg-card-hover: #221f30;
  --bg-input: #1e1b2e;
  --bg-secondary: #1e1b2e;
  --bg-muted: #252235;
  --bg-purple-soft: #2a1f3d;
  --bg-header-scrolled: rgba(26, 24, 37, 0.95);
  --bg-modal-overlay: rgba(0, 0, 0, 0.75);
  --bg-placeholder: #000000cc;
  --bg-footer: rgba(15, 14, 23, 0.95);
  --bg-footer-legal: rgba(0, 0, 0, 0.4);
  --bg-social: rgba(255, 255, 255, 0.06);

  --text-primary: #e8e6f0;
  --text-heading: #f0eef8;
  --text-secondary: #c8c4d8;
  --text-muted: #a09ab8;
  --text-dim: #7a7490;
  --text-light: #c8c4d8;
  --text-white: #ffffff;
  --text-link: #a78bfa;
  --text-link-hover: #c4b5fd;
  --text-menu: #a09ab8;
  --text-menu-hover: #c4b5fd;
  --text-footer: rgba(232, 230, 240, 0.65);
  --text-footer-dim: rgba(232, 230, 240, 0.4);
  --text-footer-copy: rgba(232, 230, 240, 0.7);

  --border-color: #2e2a40;
  --border-light: #2a2640;
  --border-lighter: #252235;
  --border-hover: #6d4aad;
  --border-menu: #3a3550;

  --accent: #a78bfa;
  --accent-hover: #c4b5fd;
  --accent-soft: rgba(167, 139, 250, 0.15);
  --accent-glow: rgba(167, 139, 250, 0.25);
  --accent-border: rgba(167, 139, 250, 0.12);

  --success: #34d399;
  --success-soft: rgba(52, 211, 153, 0.15);
  --success-border: rgba(52, 211, 153, 0.3);
  --warning: #fbbf24;
  --warning-soft: rgba(251, 191, 36, 0.15);
  --warning-alt: #f59e0b;
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.15);
  --danger-hover: #ef4444;
  --info: #60a5fa;
  --info-soft: rgba(96, 165, 250, 0.15);

  --shadow-sm: 0 2px 20px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 5px 15px rgba(0, 0, 0, 0.3);
  --shadow-dropdown: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-modal: 0 20px 40px rgba(0, 0, 0, 0.5);

  --switch-off: #3a3550;
  --slider-bg: #e8e6f0;
  --code-bg: #2a1f3d;
  --scrollbar: #3a3550;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-body);
  font-size: 16px;
  color: var(--text-primary);
  font-family: 'Myriad Pro', Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

li, a {
  color: var(--text-link);
  transition: .2s;
  text-decoration: none;
  list-style: none;
}

a:hover {
  color: var(--text-link-hover);
}

img {
  max-width: 100%;
  height: auto;
}

/* ============================================
   LAYOUT
   ============================================ */
.main-body {
  width: 100%;
  min-height: 100vh;
  position: relative;
  padding-top: 130px;
}

.main {
  display: flex;
  justify-content: center;
  padding: 0 15px;
}

.main .content {
  width: 100%;
  max-width: 1000px;
  display: flex;
  gap: 30px;
  margin-top: 30px;
}

.main .content .left-column {
  width: 331px;
  flex-shrink: 0;
  position: relative;
}

.main .content .right-column {
  width: 100%;
  max-width: 639px;
  flex: 1;
  min-width: 0;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  height: auto;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  background: transparent;
  padding: 30px 15px;
  display: flex;
  justify-content: center;
}

.header .content-wrap {
  width: 100%;
  max-width: 1000px;
  display: flex;
  position: relative;
  align-items: center;
  gap: 20px;
}

.header .content-wrap .logo-wrap {
  width: 240px;
  height: 70px;
  flex-shrink: 0;
}

.header .content-wrap .logo-wrap a {
  display: flex;
  align-items: center;
}

.header .content-wrap .logo-wrap .logo-icon {
  width: 70px;
  height: 70px;
  border-radius: 70px;
  background-image: url("../img/logo.png");
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.header .content-wrap .logo-wrap .logo-text {
  text-transform: uppercase;
  height: 38px;
  display: flex;
  position: relative;
  width: 50px;
  margin-left: 10px;
}

.header .content-wrap .logo-wrap .logo-text span {
  position: absolute;
  font-weight: bold;
  font-size: 20px;
  height: 14px;
  line-height: 14px;
}

.header .content-wrap .logo-wrap .logo-text span:nth-child(2) {
  top: 25px;
}

.header .content-wrap .logo-wrap .logo-text span:nth-child(3) {
  top: 25px;
  color: var(--text-dim);
  font-size: 14px;
  left: 58px;
}

.header .content-wrap ul.menu-wrap {
  height: 38px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.header .content-wrap ul.menu-wrap li a {
  height: 38px;
  font-size: 18px;
  color: var(--text-primary);
  padding: 0 20px;
  font-weight: bold;
  display: flex;
  align-items: center;
  border-radius: 40px;
  white-space: nowrap;
}

.header .content-wrap ul.menu-wrap li a:hover,
.header .content-wrap ul.menu-wrap li a.active-menu-b,
.active-menu-b {
  box-shadow: 0px 5px 7px 0px var(--accent-soft);
  color: var(--text-link);
  background: var(--bg-card);
}

/* Header scrolled state */
.header.scrolled {
  background: var(--bg-header-scrolled);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 15px;
}

.header.scrolled .content-wrap ul.menu-wrap li a {
  color: var(--text-primary);
}

.header.scrolled .content-wrap .logo-wrap .logo-text span {
  color: var(--text-primary);
}

.header.scrolled .content-wrap .logo-wrap .logo-text span:nth-child(3) {
  color: var(--text-dim);
}

.header.scrolled .content-wrap ul.menu-wrap li a:hover {
  box-shadow: 0px 5px 7px 0px var(--accent-soft);
  color: var(--text-link);
  background: var(--bg-purple-soft);
}

.header.scrolled .content-wrap ul.menu-wrap li a.active {
  background: var(--accent);
  color: #fff !important;
}

.header.scrolled .dropdown-menu {
  background: var(--bg-card);
  box-shadow: var(--shadow-dropdown);
}

.header.scrolled .dropdown-menu::before {
  border-bottom-color: #fff;
}

.header.scrolled .dropdown-menu li a {
  color: var(--text-secondary);
}

.header.scrolled .dropdown-menu li a:hover {
  background: var(--bg-muted);
  color: var(--text-link);
}

/* ============================================
   PREVIEW BLOCK
   ============================================ */
.preview-wrap {
  display: flex;
  justify-content: center;
  padding: 0 15px;
}

.preview-content {
  width: 100%;
  max-width: 1000px;
  height: 400px;
  position: relative;
}

.preview-content .preview-image {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: url("../img/preview/1.png");
  background-size: cover;
  background-repeat: no-repeat;
  -webkit-mask-image: url("../img/preview/bg.svg");
  mask-image: url("../img/preview/bg.svg");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  transition: background-image 1.5s ease-in-out;
}

.preview-content .preview-button {
  position: absolute;
  width: 285px;
  max-width: calc(100% - 62px);
  height: 50px;
  top: 294px;
  z-index: 101;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  line-height: 50px;
  cursor: pointer;
  left: 31px;
  text-shadow: 0 0 7px #ac48e4, 0 0 10px #fff, 0 0 21px #fff, 0 0 42px #ff00de, 0 0 82px #ac48e4, 0 0 92px #ac48e4;
}

.preview-content .preview-information {
  position: absolute;
  top: 365px;
  width: 285px;
  max-width: calc(100% - 62px);
  font-weight: 700;
  left: 31px;
  padding-left: 26px;
  text-transform: uppercase;
}

.preview-content .preview-information span:first-child {
  color: var(--text-menu);
}

.preview-content .preview-information span:last-child {
  color: #521a8e;
}

.copy-icon {
  font-size: 1.1rem;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.preview-button:hover .copy-icon {
  opacity: 1;
  transform: scale(1.2);
}

/* ============================================
   LEFT MENU
   ============================================ */
.main .content .left-column .menu-wrap-li {
  padding: 0 15px 0 31px;
}

.main .content .left-column .menu-wrap-li ul.menu-main li a {
  text-transform: uppercase;
  padding: 15px 26px;
  height: 14px;
  display: block;
  color: var(--text-menu);
  font-weight: bold;
}

.main .content .left-column .menu-wrap-li ul.menu-main li a:hover,
a.active {
  color: var(--text-menu-hover) !important;
}

.main .content .left-column .menu-wrap-li ul.menu-main .title {
  font-weight: bold;
  font-size: 18px;
  border-top: 1px solid var(--border-menu);
  margin: 13px 60px 0 14px;
  padding: 15px 10px 0;
}

/* ============================================
   DROPDOWN MENU
   ============================================ */
.menu-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: color 0.3s;
}

.dropdown-toggle:hover,
.dropdown-toggle.active {
  height: 38px;
  box-shadow: 0px 5px 7px 0px var(--accent-soft);
  color: var(--text-link);
  background: var(--bg-card);
  padding: 0 30px;
  display: flex;
  align-items: center;
  line-height: 38px;
  font-weight: bold;
  border-radius: 40px;
  font-size: 18px;
}

.dropdown-arrow {
  font-size: 0.7rem;
  transition: transform 0.3s;
}

.dropdown-toggle.active .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--bg-card);
  border-radius: 8px;
  min-width: 200px;
  padding: 0.5rem 0;
  list-style: none;
  z-index: 1000;
  box-shadow: var(--shadow-dropdown);
  margin-top: 0.5rem;
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  right: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid var(--bg-card);
}

.dropdown-menu li a {
  display: block;
  padding: 0.75rem 1.5rem !important;
  color: var(--text-primary) !important;
  text-decoration: none;
  transition: all 0.3s;
  white-space: nowrap;
  font-weight: normal !important;
  font-size: 16px !important;
  height: auto !important;
  line-height: normal !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.dropdown-menu li a:hover {
  background: var(--bg-purple-soft) !important;
  color: var(--text-link) !important;
}

.dropdown-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 0.5rem 0;
}

.logout-link {
  color: var(--danger) !important;
}

.logout-link:hover {
  background: var(--danger-soft) !important;
  color: var(--danger) !important;
}

/* ============================================
   NOTIFICATION BELL
   ============================================ */
.notification-bell {
  position: relative;
  font-size: 1.3rem;
  padding: 0 15px !important;
  display: flex;
  align-items: center;
}

.notification-badge {
  position: absolute;
  top: 2px;
  right: 5px;
  background: var(--danger);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

/* ============================================
   CATEGORY / ITEMS GRID
   ============================================ */
.category-content {
  margin: 0;
}

.category-content h1,
.section-title {
  color: var(--text-primary);
  font-size: 20px;
  margin-bottom: 0.5rem;
}

.category-content .category-description,
.category-description {
  padding-top: 5px;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.category-content .items-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 30px;
}

.category-content .items-grid .item-card {
  transition: .2s;
  overflow: hidden;
  border-radius: 30px;
  width: 193px;
  height: 280px;
  position: relative;
}

.category-content .items-grid .item-card:hover {
  border-color: var(--border-hover);
  transform: scale(1.02);
}

.category-content .items-grid .item-card .item-info {
  margin: 0;
  position: relative;
}

.category-content .items-grid .item-card .item-info .item-desc {
  color: var(--text-primary);
  font-size: 16px;
  padding: 10px 0;
}

.category-content .items-grid .item-card .item-info .item-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
}

.category-content .items-grid .item-card .item-info .item-footer .item-price {
  font-weight: 700;
}

.category-content .items-grid .item-card .item-info .item-footer .item-price span.old-price {
  color: red;
  text-decoration: line-through;
}

.category-content .items-grid .item-card .item-info .item-footer .item-price span.current-price {
  color: var(--text-link);
}

.category-content .items-grid .item-card .item-info .item-footer button.btn-buy {
  border: 0;
  background: transparent;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  color: var(--text-link);
  transition: .2s;
}

.category-content .items-grid .item-card .item-info .item-footer button.btn-buy:hover {
  color: var(--text-link-hover);
}

.category-content .items-grid .item-card .item-placeholder {
  position: absolute;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  color: #fff;
  padding: 20px;
  background: var(--bg-placeholder);
}

.category-content .items-grid .item-card .item-image {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.category-content .items-grid .item-card .item-image img {
  position: absolute;
}

.category-content .items-grid .item-card .item-placeholder .item-price {
  display: flex;
  flex-direction: row;
}

/* ============================================
   PROFILE
   ============================================ */
.profile-page {
  max-width: 100%;
  margin: 0;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.profile-avatar {
  position: relative;
  flex-shrink: 0;
}

.profile-avatar img {
  width: 100px;
  height: 100px;
  border-radius: 20px;
  image-rendering: pixelated;
  box-shadow: var(--shadow-card);
}

.profile-avatar::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  background: var(--success);
  border: 3px solid var(--bg-card);
  border-radius: 50%;
}

.profile-info h1 {
  color: var(--text-heading);
  font-size: 1.8rem;
  margin: 0 0 0.5rem 0;
  font-weight: 800;
}

.profile-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.profile-role {
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
}

.role-admin { background: var(--danger-soft); color: var(--danger); }
.role-st_moderator { background: var(--success-soft); color: var(--success); }
.role-helper { background: var(--warning-soft); color: var(--warning); }
.role-tester { background: var(--info-soft); color: var(--info); }
.role-player, .role-default { background: var(--bg-muted); color: var(--text-muted); }

.profile-regdate {
  color: var(--text-dim);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

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

.stat-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-item:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.stat-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.stat-value { font-size: 1.5rem; font-weight: 800; color: var(--accent); }
.stat-label { color: var(--text-dim); font-size: 0.85rem; margin-top: 0.25rem; }

.profile-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px 20px 0 0;
  overflow: hidden;
}

.tab-btn {
  background: var(--bg-card);
  color: var(--text-dim);
  border: none;
  padding: 1rem 2rem;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  flex: 1;
  text-align: center;
}

.tab-btn:hover { color: var(--accent); background: var(--bg-secondary); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); background: var(--bg-secondary); }

.tab-content { display: none; }
.tab-content.active { display: block; }

.purchases-table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 20px 20px;
  overflow: hidden;
}

.purchases-table {
  width: 100%;
  border-collapse: collapse;
}

.purchases-table th {
  text-align: left;
  background: var(--bg-secondary);
  color: var(--text-muted);
  padding: 1rem 1.5rem;
  border-bottom: 2px solid var(--border-light);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.purchases-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-lighter);
  color: var(--text-secondary);
  background: var(--bg-card);
}

.purchases-table tr:hover td { background: var(--bg-secondary); }
.purchase-name { color: var(--accent); font-weight: 700; }
.purchase-amount { color: var(--success); font-weight: 700; }

.status-badge {
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}

.status-completed { background: var(--success-soft); color: var(--success); }
.status-pending { background: var(--warning-soft); color: var(--warning); }
.status-cancelled { background: var(--danger-soft); color: var(--danger); }
.status-refunded { background: var(--bg-muted); color: var(--text-muted); }

.settings-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0;
  padding: 1.5rem 2rem;
}

.settings-section:last-child {
  border-radius: 0 0 20px 20px;
}

.settings-section h3 {
  color: var(--text-heading);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
  font-weight: 700;
}

.settings-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-lighter);
}

.settings-item:last-child { border-bottom: none; }
.settings-info h4 { color: var(--text-heading); margin-bottom: 0.25rem; font-weight: 600; }
.settings-info p { color: var(--text-dim); font-size: 0.9rem; }

/* ============================================
   BUTTONS & SWITCH
   ============================================ */
.btn {
  padding: 0.6rem 1.5rem;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-sm { padding: 0.4rem 1rem; font-size: 0.85rem; }

.btn-outline {
  background: var(--bg-card);
  border: 2px solid var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: #ffffff;
}

.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--switch-off);
  transition: 0.3s;
  border-radius: 26px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: var(--slider-bg);
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .slider { background-color: var(--accent); }
input:checked + .slider:before { transform: translateX(22px); }

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
  text-align: center;
  padding: 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
}

.empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h3 { color: var(--text-heading); margin-bottom: 0.5rem; font-weight: 700; }
.empty-state p { color: var(--text-dim); }
.empty-state a { color: var(--accent); text-decoration: none; font-weight: 600; }
.empty-state a:hover { color: var(--text-link-hover); }

/* ============================================
   SUPPORT / FAQ / TICKETS
   ============================================ */
.support-page h1,
.faq-page h1,
.check-user-page h1,
.moderation-page h1,
.content-page h1,
.hub-hero h1 {
  color: var(--text-heading);
  font-size: 2rem;
  margin-bottom: 0.5rem;
  font-weight: 800;
}

.support-page h1 { margin-bottom: 2rem; }

.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.support-form-section,
.support-info-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
}

.support-form-section h2,
.faq-block h2,
.contacts-block h2 {
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.ticket-form { margin-top: 1.5rem; }

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-heading);
  font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-heading);
  border-radius: 12px;
  font-size: 1rem;
  font-family: 'Myriad Pro', Arial, sans-serif;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-group label input[type="checkbox"] {
  width: auto;
  margin-right: 0.5rem;
  accent-color: var(--accent);
}

.form-group label a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.form-group label a:hover {
  color: var(--text-link-hover);
  text-decoration: underline;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

button[type="submit"],
.btn-submit {
  width: 100%;
  padding: 0.75rem 0.85rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

button[type="submit"]:hover,
.btn-submit:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--accent-glow);
}

.faq-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.faq-item:last-child { border-bottom: none; }
.faq-item h3 { color: var(--accent); margin-bottom: 0.5rem; }
.faq-item p { color: var(--text-muted); line-height: 1.6; }

.contacts-block {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border-light);
}

.contact-list { margin-top: 1rem; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.contact-icon { font-size: 1.2rem; }

.tickets-section { margin-top: 3rem; }
.tickets-section h2 { color: var(--text-heading); margin-bottom: 1rem; font-weight: 700; }

.ticket-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.ticket-header h3 { color: var(--accent); }

.ticket-status {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
}

.status-open { background: var(--accent-soft); color: var(--accent); }
.status-in_progress { background: var(--warning-soft); color: var(--warning); }
.status-closed { background: var(--bg-muted); color: var(--text-muted); }

.ticket-message { color: var(--text-muted); margin: 0.5rem 0; }
.ticket-date { color: var(--text-dim); font-size: 0.9rem; }

/* FAQ accordion */
.faq-list { display: grid; gap: 0.5rem; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; overflow: hidden; margin-bottom: 0; padding-bottom: 0; }
.faq-question { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem; cursor: pointer; user-select: none; transition: background 0.3s; }
.faq-question:hover { background: var(--bg-secondary); }
.faq-question h3 { color: var(--text-heading); font-size: 1.1rem; margin: 0; font-weight: 700; }
.faq-arrow { color: var(--text-dim); transition: transform 0.3s; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer { display: none; padding: 0 1.5rem 1.5rem; color: var(--text-secondary); line-height: 1.6; }
.faq-item.open .faq-answer { display: block; }
.faq-answer ul { padding-left: 1.5rem; margin: 0.5rem 0; }
.faq-answer li { margin-bottom: 0.25rem; }
.faq-answer code { background: var(--bg-purple-soft); color: var(--accent); padding: 0.2rem 0.5rem; border-radius: 4px; }
.faq-answer a { color: var(--accent); font-weight: 600; }

/* ============================================
   BLOG
   ============================================ */
.blog-page h1 {
  color: var(--text-primary);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.blog-page > p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.blog-grid {
  display: grid;
  gap: 0;
  margin-top: 2rem;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-bottom: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.blog-card:first-child {
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
}

.blog-card:last-child {
  border-bottom: 1px solid #dbdbdb;
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
  margin-bottom: 30px;
}

.blog-card:hover {
  border-color: var(--border-hover);
  border-bottom: 1px solid #d3b2e5 !important;
  box-shadow: var(--shadow-lg);
  transform: translateX(5px);
}

.blog-card-image {
  width: 100%;
  height: 100%;
  min-height: 200px;
  overflow: hidden;
  position: relative;
  background: var(--bg-purple-soft);
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img { transform: scale(1.05); }

.blog-card-image .placeholder-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.3;
}

.blog-card-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-card-meta {
  display: flex;
  gap: 1.5rem;
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.blog-card-meta span { display: flex; align-items: center; gap: 0.3rem; }
.blog-date { color: var(--accent); font-weight: 600; }
.blog-views { color: var(--text-dim); }

.blog-card h2 { margin: 0 0 1rem 0; font-size: 1.4rem; }
.blog-card h2 a { color: var(--text-heading); text-decoration: none; transition: color 0.3s ease; font-weight: 700; line-height: 1.3; }
.blog-card h2 a:hover { color: var(--accent); }

.blog-excerpt {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 1.5rem 0;
  font-size: 0.95rem;
}

.read-more {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.read-more::after { content: '→'; transition: transform 0.3s ease; }
.read-more:hover { color: var(--text-link-hover); gap: 0.8rem; }
.read-more:hover::after { transform: translateX(5px); }

/* Post page */
.back-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.back-link:hover { color: var(--text-link-hover); gap: 0.8rem; }

.post-full {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  overflow: hidden;
}

.post-cover {
  width: 100%;
  height: 350px;
  overflow: hidden;
  position: relative;
  background: var(--bg-purple-soft);
}

.post-cover img { width: 100%; height: 100%; object-fit: cover; }

.post-cover .placeholder-cover {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  color: var(--accent);
  opacity: 0.2;
}

.post-header {
  padding: 2rem 2rem 0;
  margin-bottom: 0;
}

.post-header h1 {
  color: var(--text-heading);
  font-size: 2.2rem;
  margin-top: 0;
  font-weight: 800;
  line-height: 1.3;
}

.post-meta {
  display: flex;
  gap: 1.5rem;
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-top: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  align-items: center;
  flex-wrap: wrap;
}

.post-meta span { display: flex; align-items: center; gap: 0.3rem; }

.post-content {
  padding: 2rem;
  color: var(--text-secondary);
  line-height: 1.9;
  font-size: 1.05rem;
}

.post-content h2 { color: var(--text-heading); margin: 2rem 0 1rem; font-size: 1.6rem; font-weight: 700; }
.post-content h3 { color: var(--accent); margin: 1.5rem 0 0.75rem; font-size: 1.3rem; font-weight: 700; }
.post-content p { margin-bottom: 1.2rem; }
.post-content ul, .post-content ol { margin: 1rem 0; padding-left: 1.5rem; }
.post-content li { margin-bottom: 0.5rem; }
.post-content img { max-width: 100%; border-radius: 15px; margin: 1.5rem 0; }
.post-content a { color: var(--accent); text-decoration: none; font-weight: 600; }
.post-content a:hover { text-decoration: underline; }
.post-content blockquote {
  border-left: 4px solid #884ae7;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--bg-purple-soft);
  border-radius: 0 10px 10px 0;
  color: var(--text-muted);
  font-style: italic;
}

.latest-posts {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border-light);
}

.latest-posts h3 {
  color: var(--text-heading);
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  font-weight: 700;
}

.latest-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.latest-post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.3s ease;
}

.latest-post-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.latest-post-image {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: var(--bg-purple-soft);
}

.latest-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.latest-post-card:hover .latest-post-image img { transform: scale(1.05); }

.latest-post-content { padding: 1.25rem; }
.latest-post-card h4 { color: var(--text-heading); margin: 0 0 0.5rem; font-size: 1.05rem; font-weight: 700; line-height: 1.4; }
.latest-post-card span { color: var(--text-dim); font-size: 0.85rem; }

.post-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }
.post-tag { background: var(--bg-purple-soft); color: var(--accent); padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }

/* ============================================
   MODALS
   ============================================ */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-modal-overlay);
  overflow-y: auto;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  max-width: 500px;
  margin: 5% auto;
  box-shadow: var(--shadow-modal);
  animation: slideUp 0.3s ease;
}

.modal-lg { max-width: 700px; }

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-light);
}

.modal-header h2 {
  color: var(--text-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
}

.close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-muted);
  border: none;
  border-radius: 50%;
  color: var(--text-dim);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.close:hover { background: var(--danger); color: #ffffff; }

.modal-body { padding: 2rem; }

.modal-item-image {
  width: 100%;
  height: 250px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
}

.placeholder-icon {
  font-size: 5rem;
  color: var(--accent);
  opacity: 0.3;
}

.modal-item-description {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.modal-item-price {
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: 12px;
}

.modal-item-price .old-price {
  color: var(--text-dim);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.25rem;
}

.modal-item-price .old-price s { color: var(--danger); }
.modal-item-price .current-price { color: var(--accent); font-size: 2rem; font-weight: 800; }

.modal-body .btn {
  display: block;
  padding: 1rem;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
}

.modal-body .btn-buy,
.modal-body .btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.modal-body .btn-buy:hover,
.modal-body .btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--accent-glow);
}

.buy-item-info {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.buy-item-info p { margin: 0.5rem 0; color: var(--text-secondary); font-size: 1rem; }
.buy-item-info strong { color: var(--text-heading); }

.modal-content .image-upload { position: relative; }
.modal-content .image-upload input[type="file"] { display: none; }

.modal-content .upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem;
  background: var(--bg-secondary);
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.modal-content .upload-label:hover {
  border-color: var(--accent);
  background: var(--bg-purple-soft);
}

.modal-content .upload-icon { font-size: 2rem; }
.modal-content .upload-hint { font-size: 0.8rem; color: var(--text-dim); }

.modal-content .image-preview {
  position: relative;
  margin-top: 1rem;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--border-color);
}

.modal-content .image-preview img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  display: block;
}

.modal-content .remove-image {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 30px;
  height: 30px;
  background: var(--danger);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.modal-content .remove-image:hover { background: var(--danger-hover); }

/* ============================================
   WELCOME / AUTH
   ============================================ */
.welcome-block {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.welcome-icon { font-size: 3rem; margin-bottom: 1rem; }
.welcome-block h2 { color: var(--text-heading); font-size: 1.5rem; margin-bottom: 0.75rem; font-weight: 700; }
.welcome-text {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-secondary);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.feature-icon { font-size: 1.2rem; flex-shrink: 0; }

.auth-buttons { margin-top: 1rem; }

.btn-login {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-login:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--accent-glow);
  color: #ffffff;
}

.auth-hint {
  margin-top: 1rem;
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.6;
}

.auth-hint strong { color: var(--accent); font-weight: 700; }
.auth-hint code {
  background: var(--bg-purple-soft);
  color: var(--accent);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9rem;
}

/* ============================================
   SHOWCASE / FEEDS
   ============================================ */
.banner-block {
  width: 225px;
  position: relative;
  display: flex;
  overflow: hidden;
  padding: 30px;
}

.banner-block img { max-width: 100%; }

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
}

.showcase-card h3 { color: var(--text-heading); margin-bottom: 1rem; font-weight: 700; }

.feed-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-lighter);
}

.feed-nick { color: var(--accent); font-weight: 600; }
.feed-item-name { color: var(--text-secondary); flex: 1; }
.feed-time { color: var(--text-dim); font-size: 0.85rem; }

.donator-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-lighter);
}

.donator-place { width: 30px; font-weight: 700; }
.donator-nick { flex: 1; font-weight: 600; color: var(--text-heading); }
.donator-amount { color: var(--success); font-weight: 700; }

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.page-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg-purple-soft);
}

.page-link.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff !important;
  font-weight: 700;
}

.page-link.active:hover {
  background: var(--accent-hover);
  color: #ffffff;
}

.page-dots { color: var(--text-dim); font-weight: 600; padding: 0 0.25rem; }
.page-prev, .page-next { padding: 0 1.25rem; font-weight: 600; }

/* ============================================
   CHECK USER / PLAYER
   ============================================ */
.check-user-page > p,
.moderation-page > p,
.content-page > p,
.hub-hero p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.search-form { margin-bottom: 2rem; }

.search-input-wrap {
  display: flex;
  gap: 0.5rem;
}

.search-input-wrap input {
  flex: 1;
  padding: 0.85rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.search-input-wrap input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.search-input-wrap button {
  padding: 0.85rem 1.5rem;
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.search-input-wrap button:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.player-result {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.player-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.75rem;
}

.player-card h3 {
  color: var(--text-heading);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
  font-weight: 700;
}

.player-card-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.player-avatar {
  border-radius: 14px;
  image-rendering: pixelated;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.player-name-block h2 {
  color: var(--text-heading);
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  font-weight: 800;
}

.player-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}

.group-admin, .badge-admin { background: var(--danger-soft); color: var(--danger); }
.group-st_moderator, .badge-mod { background: var(--success-soft); color: var(--success); }
.group-helper, .badge-helper { background: var(--warning-soft); color: var(--warning); }
.group-tester { background: var(--info-soft); color: var(--info); }
.group-player, .group-default { background: var(--bg-muted); color: var(--text-muted); }

.player-details { display: flex; flex-direction: column; }

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-lighter);
}

.detail-row:last-child { border-bottom: none; }
.detail-label { color: var(--text-dim); font-weight: 600; font-size: 0.9rem; min-width: 120px; }
.detail-value { color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; }
.detail-value code {
  font-family: monospace;
  font-size: 0.85rem;
  background: var(--bg-purple-soft);
  color: var(--accent);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
}

.social-list { display: flex; flex-direction: column; gap: 0.75rem; }

.social-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border-radius: 12px;
}

.social-icon { font-size: 1.5rem; width: 40px; text-align: center; }
.social-item strong { display: block; color: var(--text-heading); margin-bottom: 0.1rem; }
.social-item p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

.social-status {
  margin-left: auto;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.linked { background: var(--success-soft); color: var(--success); }
.no-data { color: var(--text-dim); text-align: center; padding: 1rem; font-style: italic; }

.external-links { display: flex; gap: 1rem; flex-wrap: wrap; }

.ext-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: var(--bg-purple-soft);
  color: var(--accent);
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.ext-link:hover { background: var(--accent); color: #ffffff; }

.not-found,
.search-empty {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
}

.not-found-icon { font-size: 3rem; margin-bottom: 1rem; }
.not-found h3, .search-empty h3 { color: var(--text-heading); margin-bottom: 0.5rem; }
.not-found p, .search-empty p { color: var(--text-muted); margin-bottom: 1.5rem; }
.not-found strong { color: var(--accent); }

.not-found-hints {
  text-align: left;
  max-width: 400px;
  margin: 0 auto;
  background: var(--bg-secondary);
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
}

.not-found-hints span {
  color: var(--text-dim);
  font-size: 0.85rem;
  display: block;
  margin-bottom: 0.5rem;
}

.not-found-hints ul { padding-left: 1.25rem; color: var(--text-muted); font-size: 0.9rem; }
.not-found-hints li { margin-bottom: 0.25rem; }

/* ============================================
   HUB / MODERATION / CONTENT PAGES
   ============================================ */
.hub-hero { text-align: center; padding: 1rem 0 2rem; }

.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.hub-section-title {
  grid-column: 1 / -1;
  color: var(--accent);
  font-weight: 700;
  padding: 1rem 0 0;
}

.hub-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  text-decoration: none;
  transition: all 0.3s;
  gap: 0.5rem;
}

.hub-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.hub-card-staff {
  border-left: 3px solid #884ae7;
  background: var(--bg-purple-soft);
}

.hub-icon { font-size: 2rem; }
.hub-card h3 { color: var(--text-heading); font-size: 1rem; font-weight: 700; margin: 0; }
.hub-card p { color: var(--text-dim); font-size: 0.85rem; margin: 0; }

.mod-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.mod-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.75rem;
  transition: all 0.3s ease;
}

.mod-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 5px 15px rgba(136, 74, 231, 0.06);
}

.mod-card h3 {
  color: var(--text-heading);
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
  font-weight: 700;
}

.cmd-list { display: flex; flex-direction: column; gap: 0.15rem; }

.cmd-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  transition: background 0.2s;
}

.cmd-item:hover { background: var(--bg-secondary); }
.cmd-item code {
  background: var(--bg-purple-soft);
  color: var(--accent);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-family: monospace;
}
.cmd-item span { color: var(--text-muted); font-size: 0.9rem; }

.penalty-list { display: flex; flex-direction: column; gap: 0.5rem; }

.penalty-item {
  padding: 0.75rem;
  border-radius: 12px;
  background: var(--bg-secondary);
  border: 1px solid #f0f0f0;
}

.penalty-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.penalty-header strong { color: var(--text-heading); font-size: 0.95rem; }
.penalty-severity {
  color: var(--danger);
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--danger-soft);
  padding: 0.2rem 0.6rem;
  border-radius: 8px;
}
.penalty-item p { color: var(--text-muted); font-size: 0.85rem; margin: 0; }

.process-list { display: flex; flex-direction: column; gap: 1rem; }

.process-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.process-num {
  width: 32px;
  height: 32px;
  min-width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
}

.process-item strong { display: block; color: var(--text-heading); margin-bottom: 0.15rem; }
.process-item p { color: var(--text-muted); font-size: 0.85rem; margin: 0; }

.tips-list { display: flex; flex-direction: column; gap: 0.5rem; }

.tip-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.tip-icon { font-size: 1.2rem; width: 24px; text-align: center; }

/* Partnership / Forms */
.partnership-page { max-width: 600px; margin: 0 auto; }
.partnership-page h1 { color: var(--text-heading); font-size: 1.8rem; margin-bottom: 0.5rem; }
.partnership-page > p { color: var(--text-muted); margin-bottom: 2rem; }

.partnership-form,
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  max-width: 600px;
}

/* Guides / Rules */
.guides-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.75rem;
}

.guide-card h3 { color: var(--accent); margin-bottom: 0.75rem; font-weight: 700; }
.guide-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }
.guide-card ul, .guide-card ol { padding-left: 1.25rem; color: var(--text-secondary); line-height: 1.8; }
.guide-card code {
  background: var(--bg-purple-soft);
  color: var(--accent);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

.rule-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.rule-section h3 { color: var(--accent); margin-bottom: 1rem; font-weight: 700; }
.rule-section ul { padding-left: 1.25rem; color: var(--text-secondary); line-height: 1.8; }

/* Vote */
.vote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.vote-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  text-decoration: none;
  transition: all 0.3s;
}

.vote-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.vote-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.vote-card h3 { color: var(--text-heading); margin-bottom: 1rem; }
.vote-btn {
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
}

.vote-info {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
}

.vote-info h3 { color: var(--accent); margin-bottom: 1rem; }
.vote-info ul { padding-left: 1.25rem; color: var(--text-secondary); line-height: 2; }

/* Discord */
.discord-card {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 3rem 2rem;
  margin-bottom: 1.5rem;
}

.discord-card h2 { color: var(--text-heading); margin: 1rem 0 0.5rem; }
.discord-card p { color: var(--text-muted); margin-bottom: 1.5rem; }

.discord-join {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: #5865F2;
  color: #fff;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
  font-size: 1.1rem;
}

.discord-join:hover {
  background: #4752C4;
  transform: translateY(-2px);
  color: #fff;
}

.discord-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  color: var(--text-secondary);
}

.feature span { font-size: 1.3rem; }

/* Tables (unified) */
.table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  background: var(--bg-secondary);
  color: var(--text-dim);
  padding: 0.85rem 1.25rem;
  font-size: 0.85rem;
  text-align: left;
  font-weight: 700;
}

.data-table td {
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--border-lighter);
  color: var(--text-secondary);
}

.data-table tr:hover td { background: var(--bg-secondary); }
.data-table code {
  background: var(--bg-purple-soft);
  color: var(--accent);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.s-new, .status-new { color: var(--accent); font-weight: 600; }
.s-approved, .status-approved, .s-accepted, .status-accepted { color: var(--success); font-weight: 600; }
.s-rejected, .status-rejected { color: var(--danger); font-weight: 600; }
.s-open { color: var(--danger); font-weight: 600; }
.s-in_progress { color: var(--warning-alt); font-weight: 600; }
.s-closed { color: var(--text-muted); }
.s-active { color: var(--success); }
.s-inactive { color: var(--text-dim); }
.s-reviewed, .status-reviewed { color: var(--warning-alt); font-weight: 600; }

.empty { text-align: center; color: var(--text-dim); padding: 2rem; }

/* Detail cards (unified) */
.detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.detail-block {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-lighter);
}

.detail-block:last-child { border-bottom: none; }
.detail-block .detail-label { display: block; margin-bottom: 0.5rem; }
.detail-block p { color: var(--text-secondary); line-height: 1.6; white-space: pre-wrap; }

.action-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
}

.action-card h3 { color: var(--text-heading); margin-bottom: 1rem; }

.action-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-approve {
  flex: 1;
  min-width: 120px;
  padding: 0.75rem;
  background: var(--success);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
}

.btn-approve:hover { background: var(--success); }

.btn-reject {
  flex: 1;
  min-width: 120px;
  padding: 0.75rem;
  background: var(--danger);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
}

.btn-reject:hover { background: var(--danger-hover); }

.btn-review {
  flex: 1;
  min-width: 120px;
  padding: 0.75rem;
  background: var(--warning-alt);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.9rem;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-header h1 { color: var(--text-heading); margin: 0; }

/* ============================================
   NOTIFICATIONS
   ============================================ */
.notifications-page { max-width: 700px; margin: 0 auto; }

.notifications-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.notifications-header h1 {
  color: var(--text-heading);
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0;
}

.btn-read-all {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}

.btn-read-all:hover { color: var(--text-link-hover); }

.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}

.notification-item:hover { border-color: var(--border-hover); }
.notification-item.unread { background: var(--bg-purple-soft); border-color: var(--border-hover); }

.notification-icon {
  font-size: 1.5rem;
  width: 40px;
  text-align: center;
  flex-shrink: 0;
}

.notification-content { flex: 1; min-width: 0; }
.notification-content h4 {
  color: var(--text-heading);
  margin: 0 0 0.25rem;
  font-weight: 600;
  font-size: 1rem;
}
.notification-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 0.5rem;
  line-height: 1.4;
}
.notification-time { color: var(--text-dim); font-size: 0.8rem; }

.notification-delete {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 1rem;
  padding: 0.25rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.notification-item:hover .notification-delete { opacity: 1; }
.notification-delete:hover { color: var(--danger); }

.unread-dot {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.empty-notifications {
  text-align: center;
  padding: 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
}

.empty-notifications span { font-size: 3rem; display: block; margin-bottom: 1rem; }
.empty-notifications h3 { color: var(--text-heading); margin-bottom: 0.5rem; }
.empty-notifications p { color: var(--text-dim); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 3px solid var(--accent);
  margin-top: 3rem;
}

.footer-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.footer-blur-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(20px) brightness(0.3);
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.footer-blur-layer.active { opacity: 1; }

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-footer);
  z-index: 1;
}

.footer-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo { margin-bottom: 1rem; }
.footer-logo .logo-text { font-size: 1.5rem; font-weight: bold; color: var(--text-link); }
.footer-logo .logo-text span { color: var(--text-light); }

.footer-description {
  color: var(--text-footer);
  line-height: 1.6;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.footer-social { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-social);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-footer);
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  background: var(--accent);
  border-color: var(--text-link);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px var(--accent-glow);
}

.footer-column h3 {
  color: var(--text-link);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgb(132 69 233 / 30%);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-column ul { list-style: none; padding: 0; margin: 0; }
.footer-column ul li { margin-bottom: 0.5rem; }

.footer-column ul li a {
  color: var(--text-footer);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s;
  display: inline-block;
  position: relative;
}

.footer-column ul li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #883fb6;
  transition: width 0.3s;
}

.footer-column ul li a:hover { color: var(--text-link); }
.footer-column ul li a:hover::after { width: 100%; }

.footer-contacts li {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.75rem;
}

.contact-label {
  font-size: 0.75rem;
  color: var(--text-footer-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
}

.footer-contacts a {
  color: var(--text-link);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

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

.server-ip {
  color: var(--success);
  font-weight: bold;
  font-family: monospace;
  font-size: 0.9rem;
}

.footer-online {
  margin-top: 1rem;
  padding: 0.5rem 0.75rem;
  background: var(--success-soft);
  border: 1px solid var(--success-border);
  border-radius: 8px;
  color: var(--success);
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.online-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.footer-legal {
  background: var(--bg-footer-legal);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(5px);
}

.legal-info { margin-bottom: 0.75rem; }
.legal-info p { color: var(--text-footer); font-size: 0.85rem; margin: 0.25rem 0; }
.legal-name { color: rgba(255, 255, 255, 0.8) !important; font-weight: bold; }

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.legal-links a {
  color: var(--text-link);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s;
}

.legal-links a:hover { color: var(--text-link-hover); text-decoration: underline; }
.divider { color: rgba(255, 255, 255, 0.2); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  color: var(--text-footer-copy);
  font-size: 0.85rem;
}

.footer-disclaimer {
  text-align: right;
  color: var(--text-footer-copy);
  font-size: 0.8rem;
  line-height: 1.5;
}

.footer-disclaimer p { margin: 0.15rem 0; }

/* ============================================
   COPY NOTIFICATION
   ============================================ */
.copy-notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: var(--bg-card);
  color: var(--text-secondary);
  padding: 12px 24px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: bold;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.copy-notification.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.copy-check {
  font-size: 1.2rem;
  animation: bounceIn 0.5s ease;
}

@keyframes bounceIn {
  0% { transform: scale(0); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

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

/* ============================================
   RESPONSIVE — LARGE TABLETS (≤ 1024px)
   ============================================ */
@media (max-width: 1024px) {
  .main .content {
    max-width: 100%;
  }

  .main .content .left-column {
    width: 280px;
  }

  .main .content .right-column {
    max-width: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .mod-grid {
    grid-template-columns: 1fr;
  }

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

  .vote-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================
   RESPONSIVE — TABLETS (≤ 768px)
   ============================================ */
@media (max-width: 768px) {
  .main-body {
    padding-top: 100px;
  }

  .header {
    padding: 15px;
  }

  .header .content-wrap {
    flex-wrap: wrap;
    gap: 10px;
  }

  .header .content-wrap .logo-wrap {
    width: auto;
  }

  .header .content-wrap ul.menu-wrap {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 5px;
  }

  .header .content-wrap ul.menu-wrap li a {
    font-size: 15px;
    padding: 0 12px;
  }

  .main .content {
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
  }

  .main .content .left-column {
    width: 100%;
  }

  .main .content .left-column .menu-wrap-li {
    padding: 0 10px;
  }

  .main .content .left-column .menu-wrap-li ul.menu-main {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }

  .main .content .left-column .menu-wrap-li ul.menu-main li a {
    padding: 10px 16px;
  }

  .main .content .left-column .menu-wrap-li ul.menu-main .title {
    width: 100%;
    margin: 10px 0 0;
  }

  .main .content .right-column {
    width: 100%;
    max-width: 100%;
  }

  .preview-content {
    height: 300px;
  }

  .preview-content .preview-button {
    width: auto;
    max-width: calc(100% - 40px);
    left: 20px;
    top: 210px;
    font-size: 16px;
    height: 44px;
    line-height: 44px;
  }

  .preview-content .preview-information {
    top: 265px;
    left: 20px;
    width: auto;
    max-width: calc(100% - 40px);
    font-size: 14px;
  }

  .category-content .items-grid {
    gap: 15px;
    justify-content: center;
  }

  .category-content .items-grid .item-card {
    width: calc(50% - 10px);
    max-width: 193px;
  }

  .support-grid {
    grid-template-columns: 1fr;
  }

  .profile-header {
    flex-direction: column;
    text-align: center;
    border-radius: 20px;
    padding: 1.5rem;
  }

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

  .profile-tabs {
    flex-direction: column;
  }

  .purchases-table-wrapper {
    overflow-x: auto;
  }

  .purchases-table th,
  .purchases-table td {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }

  .blog-card {
    grid-template-columns: 1fr;
  }

  .blog-card-image {
    height: 200px;
    min-height: 200px;
  }

  .blog-card:first-child {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
  }

  .blog-card:last-child {
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
  }

  .post-cover {
    height: 200px;
  }

  .post-full {
    border-radius: 20px;
  }

  .post-header h1 {
    font-size: 1.5rem;
  }

  .post-content {
    padding: 1.5rem;
  }

  .latest-posts-grid {
    grid-template-columns: 1fr;
  }

  .modal-content {
    margin: 0;
    border-radius: 20px 20px 0 0;
    max-width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 90vh;
    overflow-y: auto;
  }

  .modal-lg {
    max-width: 100%;
  }

  .modal-header {
    padding: 1.25rem 1.5rem;
  }

  .modal-body {
    padding: 1.5rem;
  }

  .modal-content .form-row {
    grid-template-columns: 1fr;
  }

  .modal-item-image {
    height: 180px;
  }

  .modal-item-price .current-price {
    font-size: 1.5rem;
  }

  .welcome-block {
    padding: 1.5rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .welcome-block h2 {
    font-size: 1.3rem;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .pagination {
    gap: 0.3rem;
  }

  .page-link {
    min-width: 36px;
    height: 36px;
    font-size: 0.85rem;
    padding: 0 0.5rem;
    border-radius: 10px;
  }

  .check-user-page h1,
  .moderation-page h1,
  .content-page h1,
  .support-page h1,
  .faq-page h1 {
    font-size: 1.5rem;
  }

  .player-card-header {
    flex-direction: column;
    text-align: center;
  }

  .player-badges {
    justify-content: center;
  }

  .detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .social-item {
    flex-wrap: wrap;
  }

  .social-status {
    margin-left: 0;
  }

  .hub-grid {
    grid-template-columns: 1fr 1fr;
  }

  .mod-card {
    padding: 1.25rem;
  }

  .cmd-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

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

  .guides-grid {
    grid-template-columns: 1fr;
  }

  .vote-grid {
    grid-template-columns: 1fr;
  }

  .discord-features {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-disclaimer {
    text-align: center;
  }

  .legal-links {
    flex-direction: column;
    align-items: flex-start;
  }

  .divider {
    display: none;
  }

  .dropdown-menu {
    position: static;
    background: transparent;
    border: none;
    box-shadow: none;
    margin-top: 0;
    padding: 0 0 0 1rem;
  }

  .dropdown-menu::before {
    display: none;
  }

  .dropdown-menu li a {
    padding: 0.5rem 1rem !important;
  }

  .action-buttons {
    flex-direction: column;
  }

  .search-input-wrap {
    flex-direction: column;
  }

  .search-input-wrap button {
    width: 100%;
  }
}

/* ============================================
   RESPONSIVE — MOBILE (≤ 480px)
   ============================================ */
@media (max-width: 480px) {
  .main-body {
    padding-top: 90px;
  }

  .header {
    padding: 10px;
  }

  .header .content-wrap .logo-wrap .logo-icon {
    width: 50px;
    height: 50px;
  }

  .header .content-wrap .logo-wrap .logo-text {
    margin-top: 8px;
  }

  .header .content-wrap .logo-wrap .logo-text span {
    font-size: 16px;
  }

  .header .content-wrap .logo-wrap .logo-text span:nth-child(3) {
    font-size: 12px;
    left: 48px;
  }

  .preview-content {
    height: 240px;
  }

  .preview-content .preview-button {
    left: 15px;
    top: 160px;
    font-size: 14px;
    height: 40px;
    line-height: 40px;
  }

  .preview-content .preview-information {
    top: 210px;
    left: 15px;
    font-size: 12px;
    padding-left: 10px;
  }

  .category-content .items-grid .item-card {
    width: 100%;
    max-width: 100%;
  }

  .blog-card-content {
    padding: 1.25rem;
  }

  .blog-card-meta {
    gap: 0.75rem;
  }

  .post-meta {
    gap: 0.75rem;
  }

  .modal-header h2 {
    font-size: 1.2rem;
  }

  .modal-body {
    padding: 1.25rem;
  }

  .modal-item-image {
    height: 150px;
  }

  .footer-content {
    padding: 2rem 1rem 1rem;
  }

  .footer-legal {
    padding: 1rem;
  }

  .hub-grid {
    grid-template-columns: 1fr;
  }

  .profile-info h1 {
    font-size: 1.4rem;
  }

  .stat-value {
    font-size: 1.25rem;
  }

  .blog-page h1 {
    font-size: 1.8rem;
  }

  .post-header {
    padding: 1.25rem 1.25rem 0;
  }

  .post-content {
    padding: 1.25rem;
    font-size: 1rem;
  }
}

/* ============================================
   UTILITY
   ============================================ */
.page-header h1,
.content-page h1 {
  word-break: break-word;
}



/* ============================================
   HOME PAGE
   ============================================ */
.home-page {
  width: 100%;
}

.section {
  margin-bottom: 2rem;
}

.section-title {
  color: var(--text-heading);
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

/* Items grid (home + category shared refinements) */
.items-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.item-card {
  transition: 0.2s;
  overflow: hidden;
  border-radius: 30px;
  width: 191px;
  height: 280px;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  cursor: pointer;
}

.item-card:hover {
  border-color: var(--border-hover);
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.item-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
}

.item-image-placeholder {
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.3;
}

.item-placeholder {
  position: absolute;
  z-index: 10;
  bottom: 0;
  left: 0;
  right: 0;
  color: #fff;
  padding: 15px 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  border-radius: 0 0 30px 30px;
}

.item-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.item-price .current-price,
.current-price {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.item-price .old-price,
.old-price {
  font-size: 13px;
  opacity: 0.7;
  text-decoration: line-through;
  color: #ff6b6b;
}

/* Keep category grid item styles in sync */
.category-content .items-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 30px;
}

.category-content .items-grid .item-card {
  transition: 0.2s;
  overflow: hidden;
  border-radius: 30px;
  width: 191px;
  height: 280px;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  cursor: pointer;
}

.category-content .items-grid .item-card:hover {
  border-color: var(--border-hover);
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.category-content .items-grid .item-card .item-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-content .items-grid .item-card .item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
  position: static;
}

.category-content .items-grid .item-card .item-placeholder {
  position: absolute;
  z-index: 10;
  bottom: 0;
  left: 0;
  right: 0;
  top: auto;
  color: #fff;
  padding: 15px 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  border-radius: 0 0 30px 30px;
}

.category-content .items-grid .item-card .item-placeholder .item-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Welcome */
.welcome-block {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.welcome-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.welcome-block h2 {
  color: var(--text-heading);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.btn-login {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  margin-top: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-login:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--accent-glow);
}

/* Showcase */
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
}

.showcase-card h3 {
  color: var(--text-heading);
  margin-bottom: 1rem;
  font-weight: 700;
}

.feed-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-lighter);
}

.feed-nick {
  color: var(--accent);
  font-weight: 600;
}

.feed-item-name {
  color: var(--text-secondary);
  flex: 1;
  font-size: 0.9rem;
}

.feed-time {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.donator-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-lighter);
}

.donator-place {
  width: 30px;
  font-weight: 700;
  color: var(--accent);
}

.donator-nick {
  flex: 1;
  font-weight: 600;
  color: var(--text-heading);
}

.donator-amount {
  color: var(--success);
  font-weight: 700;
}

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

  .items-grid {
    gap: 15px;
    justify-content: center;
  }

  .item-card,
  .category-content .items-grid .item-card {
    width: calc(50% - 10px);
    max-width: 191px;
  }
}

@media (max-width: 480px) {
  .item-card,
  .category-content .items-grid .item-card {
    width: 100%;
    max-width: 100%;
  }

  .section-title {
    font-size: 1.2rem;
  }
}


/* ============================================
   CLEAN LAYOUT (без превью)
   ============================================ */
.main-body-clean {
  padding-top: 100px;
}

.main-clean {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  padding: 0 15px;
}

.main-clean .content {
  width: 100%;
  max-width: 1000px;
  display: flex;
  gap: 30px;
}

/* Разделитель в меню */
.menu-divider {
  height: 1px;
  background: var(--border-light);
  margin: 10px 26px;
}

/* Заголовок секции меню */
.menu-section-title {
  padding: 10px 26px 5px;
  color: var(--text-dim);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
}

/* Кнопка возврата в магазин */
.menu-back-shop {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 12px 20px !important;
  margin: 5px 15px;
  background: linear-gradient(135deg, var(--bg-purple-soft), var(--bg-purple-soft));
  border: 1px solid var(--border-hover);
  border-radius: 14px !important;
  color: var(--accent) !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  text-transform: none !important;
  transition: all 0.3s ease !important;
  height: auto !important;
  line-height: normal !important;
  box-shadow: none !important;
}

.menu-back-shop:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover)) !important;
  color: #ffffff !important;
  border-color: var(--accent) !important;
  transform: translateX(5px);
  box-shadow: 0 5px 15px var(--accent-glow) !important;
}

.menu-back-shop .back-icon {
  font-size: 1.2rem;
}

.menu-back-shop .back-arrow {
  margin-left: auto;
  transition: transform 0.3s ease;
}

.menu-back-shop:hover .back-arrow {
  transform: translateX(3px);
}

/* Dark theme overrides for back button */
body.dark-theme .menu-back-shop,
html.dark-theme body .menu-back-shop {
  background: linear-gradient(135deg, var(--bg-purple-soft), var(--bg-muted));
  border-color: var(--border-hover);
  color: var(--accent) !important;
}

body.dark-theme .menu-back-shop:hover,
html.dark-theme body .menu-back-shop:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover)) !important;
  color: #ffffff !important;
}

@media (max-width: 768px) {
  .main-body-clean {
    padding-top: 80px;
  }

  .main-clean .content {
    width: 100%;
    max-width: 100%;
    padding: 0;
    flex-direction: column;
    gap: 20px;
  }

  .menu-back-shop {
    margin: 5px 10px;
  }
}


/* ============================================
   STATIC PAGE (аккордеон-секции)
   ============================================ */
.static-page h1 {
  color: var(--text-heading);
  font-size: 2rem;
  margin: 1.5rem 0;
  font-weight: 800;
}

.page-cover {
  width: 100%;
  max-height: 350px;
  overflow: hidden;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-card);
}

.page-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-body {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
}

.page-section {
  border-bottom: 1px solid var(--border-light);
}

.page-section:last-child {
  border-bottom: none;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  cursor: pointer;
  user-select: none;
  transition: background 0.3s ease;
  gap: 1rem;
}

.section-header:hover {
  background: var(--bg-secondary);
}

.section-header h2,
.section-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--text-heading);
  font-weight: 700;
  flex: 1;
}

.section-header h3 {
  font-size: 1.1rem;
  color: var(--accent);
}

.section-arrow {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  color: var(--accent);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.section-header.active .section-arrow {
  transform: rotate(180deg);
}

.section-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1rem;
}

.section-content.open {
  max-height: 2000px;
}

.section-content-inner {
  padding: 0 2rem 1.5rem 2rem;
}

.section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--bg-purple-soft);
  color: var(--accent);
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.section-content p {
  margin-bottom: 1rem;
}

.section-content ul,
.section-content ol {
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.section-content li {
  margin-bottom: 0.5rem;
}

.section-content code {
  background: var(--code-bg);
  color: var(--accent);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9rem;
}

.section-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.section-content th,
.section-content td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-light);
  text-align: left;
}

.section-content th {
  background: var(--bg-purple-soft);
  color: var(--accent);
  font-weight: 600;
}

.section-content td {
  color: var(--text-secondary);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-content.open .section-content-inner {
  animation: fadeInDown 0.3s ease;
}

@media (max-width: 768px) {
  .static-page h1 {
    font-size: 1.5rem;
    margin: 1rem 0;
  }

  .page-cover {
    max-height: 200px;
    border-radius: 16px;
  }

  .page-body {
    border-radius: 16px;
  }

  .section-header {
    padding: 1rem 1.25rem;
  }

  .section-content-inner {
    padding: 0 1.25rem 1.25rem;
  }

  .section-header h2 {
    font-size: 1.1rem;
  }

  .section-header h3 {
    font-size: 1rem;
  }

  .section-number {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .section-header {
    padding: 0.85rem 1rem;
    gap: 0.5rem;
  }

  .section-content-inner {
    padding: 0 1rem 1rem;
  }

  .section-content th,
  .section-content td {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }
}


/* ============================================
   ROULETTE PAGE
   ============================================ */
.roulette-page h1 {
  color: var(--text-heading);
  font-size: 2rem;
  margin-bottom: 0.5rem;
  font-weight: 800;
  text-align: center;
}

.roulette-page > p {
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 2rem;
}

.roulette-container {
  text-align: center;
  margin-bottom: 3rem;
}

.roulette-wheel {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto 2rem;
}

.roulette-spinner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
  border: 8px solid var(--accent);
  overflow: hidden;
  background: var(--bg-card);
}

.roulette-segment {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 50%;
  transform-origin: 0% 0%;
  transform: rotate(calc(var(--i) * (360deg / var(--segments)))) skewY(calc(360deg / var(--segments) / 2));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.roulette-segment:nth-child(odd) {
  background: var(--bg-purple-soft) !important;
}

.roulette-segment:nth-child(even) {
  background: var(--bg-card) !important;
}

.segment-icon {
  font-size: 1.5rem;
}

.segment-name {
  font-size: 0.65rem;
  color: var(--text-heading);
  font-weight: 600;
  text-align: center;
  padding: 0 5px;
}

.roulette-pointer {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  color: var(--danger);
  z-index: 10;
}

.spin-form {
  max-width: 300px;
  margin: 0 auto;
}

.spin-form .form-group {
  margin-bottom: 1rem;
}

.spin-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg-input);
  color: var(--text-primary);
}

.spin-form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.btn-spin {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.3s;
}

.btn-spin:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-spin:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.cooldown {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  max-width: 300px;
  margin: 0 auto;
}

.cooldown p {
  color: var(--text-muted);
}

.cooldown-time {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
}

.rewards-section {
  margin-bottom: 3rem;
}

.rewards-section h2,
.winners-section h2 {
  color: var(--text-heading);
  margin-bottom: 1rem;
  font-weight: 700;
}

.rewards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.reward-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s;
}

.reward-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}

.reward-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.reward-card h4 {
  color: var(--text-heading);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.rarity-badge {
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
}

.rarity-common .rarity-badge {
  background: var(--bg-muted);
  color: var(--text-muted);
}

.rarity-rare .rarity-badge {
  background: rgba(72, 219, 251, 0.15);
  color: #48dbfb;
}

.rarity-epic .rarity-badge {
  background: rgba(162, 155, 254, 0.15);
  color: #a29bfe;
}

.rarity-legendary .rarity-badge {
  background: rgba(253, 203, 110, 0.2);
  color: #fdcb6e;
}

.rarity-mythic .rarity-badge {
  background: var(--danger-soft);
  color: var(--danger);
}

.winners-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.winner-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  flex-wrap: wrap;
}

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

.winner-item span {
  color: var(--text-muted);
}

.winner-time {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.auth-required-block {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 3rem;
  margin-bottom: 2rem;
}

.auth-required-block h2 {
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}

.auth-required-block p {
  color: var(--text-muted);
}

/* Roulette responsive */
@media (max-width: 768px) {
  .roulette-page h1 {
    font-size: 1.5rem;
  }

  .roulette-wheel {
    width: 260px;
    height: 260px;
  }

  .rewards-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }

  .auth-required-block {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .roulette-wheel {
    width: 220px;
    height: 220px;
  }

  .roulette-spinner {
    border-width: 6px;
  }

  .segment-icon {
    font-size: 1.1rem;
  }

  .segment-name {
    font-size: 0.55rem;
  }

  .btn-spin {
    font-size: 1rem;
    padding: 0.85rem;
  }

  .rewards-grid {
    grid-template-columns: 1fr 1fr;
  }

  .winner-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .winner-time {
    margin-left: 0;
  }
}



/* ============================================
   CHECKOUT PAGE
   ============================================ */
.checkout-page {
  max-width: 800px;
  margin: 0 auto;
}

.checkout-page h1 {
  color: var(--text-heading);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.checkout-page h2 {
  color: var(--text-heading);
  font-size: 1.3rem;
  margin: 2rem 0 1rem;
  font-weight: 700;
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.checkout-item-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

.checkout-item-img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border-radius: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  padding: 8px;
  flex-shrink: 0;
}

.checkout-item-placeholder {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  font-size: 2rem;
  flex-shrink: 0;
}

.checkout-item-info h3 {
  color: var(--text-heading);
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.checkout-item-info p {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin: 0;
}

.checkout-item-price {
  text-align: right;
  flex-shrink: 0;
}

.checkout-item .current-price,
.checkout-item-price .current-price {
  color: var(--accent);
  font-size: 1.8rem;
  font-weight: 800;
  display: block;
}

.checkout-item .old-price,
.checkout-item-price .old-price {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.checkout-item-price .old-price s {
  color: var(--danger);
}

/* Промокод */
.promo-section {
  background: var(--bg-purple-soft);
  border: 2px dashed var(--border-hover);
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.promo-input-wrap {
  display: flex;
  gap: 0.5rem;
}

.promo-input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-primary);
}

.promo-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.promo-apply-btn {
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.promo-apply-btn:hover {
  background: var(--accent-hover);
}

.promo-apply-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.promo-result {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  display: none;
}

.promo-result.success {
  display: block;
  color: var(--success);
}

.promo-result.error {
  display: block;
  color: var(--danger);
}

/* Методы оплаты */
.payment-methods {
  display: grid;
  gap: 0.75rem;
}

.payment-method-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  transition: all 0.3s;
}

.payment-method-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateX(5px);
}

.payment-method-icon {
  font-size: 2rem;
  width: 50px;
  text-align: center;
  flex-shrink: 0;
}

.payment-method-info {
  flex: 1;
  min-width: 0;
}

.payment-method-info h3 {
  color: var(--text-heading);
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.payment-method-info p {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin: 0;
}

.btn-pay {
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  font-size: 0.9rem;
}

.btn-pay:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--accent-glow);
}

.btn-pay:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@media (max-width: 768px) {
  .checkout-page h1 {
    font-size: 1.5rem;
  }

  .checkout-item {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .checkout-item-info {
    flex-direction: column;
    width: 100%;
  }

  .checkout-item-price {
    text-align: center;
  }

  .payment-method-card {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .payment-method-card:hover {
    transform: none;
  }

  .btn-pay {
    width: 100%;
  }

  .promo-input-wrap {
    flex-direction: column;
  }

  .promo-apply-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .checkout-item {
    padding: 1.25rem;
  }

  .checkout-item-img,
  .checkout-item-placeholder {
    width: 56px;
    height: 56px;
  }

  .checkout-item-price .current-price {
    font-size: 1.4rem;
  }
}

/* ============================================
   DARK THEME — ADDITIONAL OVERRIDES
   ============================================ */
body.dark-theme .header.scrolled,
html.dark-theme body .header.scrolled {
  background: var(--bg-header-scrolled);
  box-shadow: var(--shadow-sm);
}

body.dark-theme .header .content-wrap ul.menu-wrap li a,
html.dark-theme body .header .content-wrap ul.menu-wrap li a {
  color: var(--text-primary);
}

body.dark-theme .header .content-wrap .logo-wrap .logo-text span,
html.dark-theme body .header .content-wrap .logo-wrap .logo-text span {
  color: var(--text-primary);
}

body.dark-theme .header .content-wrap .logo-wrap .logo-text span:nth-child(3),
html.dark-theme body .header .content-wrap .logo-wrap .logo-text span:nth-child(3) {
  color: var(--text-dim);
}

body.dark-theme .header.scrolled .content-wrap ul.menu-wrap li a:hover,
html.dark-theme body .header.scrolled .content-wrap ul.menu-wrap li a:hover {
  background: var(--bg-purple-soft);
  color: var(--accent);
}

body.dark-theme .header.scrolled .content-wrap ul.menu-wrap li a.active,
html.dark-theme body .header.scrolled .content-wrap ul.menu-wrap li a.active {
  background: var(--accent);
  color: #fff !important;
}

body.dark-theme .dropdown-toggle:hover,
body.dark-theme .dropdown-toggle.active,
body.dark-theme .active-menu-b,
html.dark-theme body .dropdown-toggle:hover,
html.dark-theme body .dropdown-toggle.active,
html.dark-theme body .active-menu-b {
  background: var(--bg-card);
  color: var(--accent);
  box-shadow: 0px 5px 7px 0px var(--accent-soft);
}

body.dark-theme .dropdown-menu,
html.dark-theme body .dropdown-menu {
  background: var(--bg-card);
  box-shadow: var(--shadow-dropdown);
  border: 1px solid var(--border-color);
}

body.dark-theme .dropdown-menu::before,
html.dark-theme body .dropdown-menu::before {
  border-bottom-color: var(--bg-card);
}

body.dark-theme .dropdown-menu li a,
html.dark-theme body .dropdown-menu li a {
  color: var(--text-primary) !important;
}

body.dark-theme .dropdown-menu li a:hover,
html.dark-theme body .dropdown-menu li a:hover {
  background: var(--bg-purple-soft) !important;
  color: var(--accent) !important;
}

body.dark-theme .dropdown-divider,
html.dark-theme body .dropdown-divider {
  background: var(--border-light);
}

body.dark-theme .copy-notification,
html.dark-theme body .copy-notification {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-modal);
}

body.dark-theme .slider,
html.dark-theme body .slider {
  background-color: var(--switch-off);
}

body.dark-theme input:checked + .slider,
html.dark-theme body input:checked + .slider {
  background-color: var(--accent);
}

body.dark-theme .slider:before,
html.dark-theme body .slider:before {
  background-color: var(--slider-bg);
}

body.dark-theme .close,
html.dark-theme body .close {
  background: var(--bg-muted);
  color: var(--text-dim);
}

body.dark-theme .close:hover,
html.dark-theme body .close:hover {
  background: var(--danger);
  color: #fff;
}

body.dark-theme .modal-content,
html.dark-theme body .modal-content {
  background: var(--bg-card);
  border-color: var(--border-color);
}

body.dark-theme .form-group input,
body.dark-theme .form-group textarea,
body.dark-theme .form-group select,
body.dark-theme .search-input-wrap input,
html.dark-theme body .form-group input,
html.dark-theme body .form-group textarea,
html.dark-theme body .form-group select,
html.dark-theme body .search-input-wrap input {
  background: var(--bg-input);
  border-color: var(--border-color);
  color: var(--text-primary);
}

body.dark-theme .form-group input:focus,
body.dark-theme .form-group textarea:focus,
body.dark-theme .form-group select:focus,
body.dark-theme .search-input-wrap input:focus,
html.dark-theme body .form-group input:focus,
html.dark-theme body .form-group textarea:focus,
html.dark-theme body .form-group select:focus,
html.dark-theme body .search-input-wrap input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

body.dark-theme .page-link,
html.dark-theme body .page-link {
  background: var(--bg-card);
  border-color: var(--border-color);
  color: var(--text-muted);
}

body.dark-theme .page-link:hover,
html.dark-theme body .page-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg-purple-soft);
}

body.dark-theme .page-link.active,
html.dark-theme body .page-link.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff !important;
}

body.dark-theme .purchases-table th,
body.dark-theme .data-table th,
html.dark-theme body .purchases-table th,
html.dark-theme body .data-table th {
  background: var(--bg-secondary);
  color: var(--text-dim);
  border-bottom-color: var(--border-light);
}

body.dark-theme .purchases-table td,
body.dark-theme .data-table td,
html.dark-theme body .purchases-table td,
html.dark-theme body .data-table td {
  background: var(--bg-card);
  color: var(--text-secondary);
  border-bottom-color: var(--border-lighter);
}

body.dark-theme .purchases-table tr:hover td,
body.dark-theme .data-table tr:hover td,
html.dark-theme body .purchases-table tr:hover td,
html.dark-theme body .data-table tr:hover td {
  background: var(--bg-card-hover);
}

body.dark-theme .tab-btn,
html.dark-theme body .tab-btn {
  background: var(--bg-card);
  color: var(--text-dim);
}

body.dark-theme .tab-btn:hover,
html.dark-theme body .tab-btn:hover {
  color: var(--accent);
  background: var(--bg-secondary);
}

body.dark-theme .tab-btn.active,
html.dark-theme body .tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: var(--bg-secondary);
}

body.dark-theme .profile-tabs,
html.dark-theme body .profile-tabs {
  background: var(--bg-card);
  border-color: var(--border-color);
}

body.dark-theme .site-footer::before,
html.dark-theme body .site-footer::before {
  background: var(--bg-footer);
}

body.dark-theme .footer-blur-layer,
html.dark-theme body .footer-blur-layer {
  filter: blur(20px) brightness(0.2);
}

body.dark-theme code,
body.dark-theme .detail-value code,
body.dark-theme .cmd-item code,
body.dark-theme .data-table code,
body.dark-theme .auth-hint code,
body.dark-theme .faq-answer code,
body.dark-theme .guide-card code,
html.dark-theme body code,
html.dark-theme body .detail-value code,
html.dark-theme body .cmd-item code,
html.dark-theme body .data-table code,
html.dark-theme body .auth-hint code,
html.dark-theme body .faq-answer code,
html.dark-theme body .guide-card code {
  background: var(--code-bg);
  color: var(--accent);
}

body.dark-theme .blog-card:hover,
html.dark-theme body .blog-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
}

body.dark-theme .stat-item:hover,
body.dark-theme .hub-card:hover,
body.dark-theme .mod-card:hover,
body.dark-theme .latest-post-card:hover,
body.dark-theme .vote-card:hover,
html.dark-theme body .stat-item:hover,
html.dark-theme body .hub-card:hover,
html.dark-theme body .mod-card:hover,
html.dark-theme body .latest-post-card:hover,
html.dark-theme body .vote-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

body.dark-theme .notification-item.unread,
html.dark-theme body .notification-item.unread {
  background: var(--bg-purple-soft);
  border-color: var(--border-hover);
}

body.dark-theme .hub-card-staff,
html.dark-theme body .hub-card-staff {
  border-left-color: var(--accent);
  background: var(--bg-purple-soft);
}

body.dark-theme .post-content blockquote,
html.dark-theme body .post-content blockquote {
  background: var(--bg-purple-soft);
  border-left-color: var(--accent);
  color: var(--text-muted);
}

body.dark-theme .preview-content .preview-information span:first-child,
html.dark-theme body .preview-content .preview-information span:first-child {
  color: var(--text-menu);
}

body.dark-theme .preview-content .preview-information span:last-child,
html.dark-theme body .preview-content .preview-information span:last-child {
  color: var(--accent);
}

body.dark-theme .logout-link,
html.dark-theme body .logout-link {
  color: var(--danger) !important;
}

body.dark-theme .logout-link:hover,
html.dark-theme body .logout-link:hover {
  background: var(--danger-soft) !important;
  color: var(--danger) !important;
}

/* Theme toggle button (optional helper) */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  padding: 0;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg-purple-soft);
  transform: rotate(15deg);
}

/* Smooth transitions for theme switch */
body,
body * {
  transition-property: background-color, border-color, color, box-shadow;
  transition-duration: 0.25s;
  transition-timing-function: ease;
}

/* Avoid transition on images and transforms that should stay snappy */
img, .item-card, .blog-card, .hub-card, .stat-item,
.latest-post-card, .vote-card, .preview-image {
  transition-property: transform, opacity, border-color, box-shadow, background-image;
}
