/* ============================================
   CONTAINER & LAYOUT FIXES
   ============================================ */

/* Widen the container for platform pages (original was 1000px, too narrow) */
.platform-main .container,
.store-subnav .container,
.game-title-bar .container,
.about-hero .container,
.about-hero > .container {
  max-width: 1200px;
  width: 92%;
  margin: 0 auto;
}

/* Reset the auth-page forced flex centering for platform pages */
.platform-main.platform-main {
  display: block;
}

/* Ensure platform main containers are block, not flex */
.platform-main > .container {
  display: block;
  padding-top: 0;
  padding-bottom: 0;
}

/* ============================================
   platform.css — Aeria Games Platform Styles
   ============================================ */

/* ── Flash Messages ── */
.flash-message {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding: .75rem 1.5rem;
  border-radius: .5rem;
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 300px;
  max-width: 600px;
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
  animation: slideDown .3s ease;
}
@keyframes slideDown {
  from { opacity:0; transform: translateX(-50%) translateY(-10px); }
  to   { opacity:1; transform: translateX(-50%) translateY(0); }
}
.flash-success { background: #1a3a1a; border: 1px solid #02b802; color: #7dff7d; }
.flash-error   { background: #3a1a1a; border: 1px solid #f50101; color: #ff7d7d; }
.flash-close   { margin-left: auto; background: none; border: none; color: inherit; cursor: pointer; font-size: 1.2rem; line-height: 1; padding: 0 .25rem; }

/* ── Nav User Menu ── */
.nav-user-menu {
  display: flex;
  align-items: center;
  gap: .75rem;
  position: relative;
}
.nav-avatar-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  cursor: pointer;
  position: relative;
}
.nav-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #2076da;
}
.nav-username {
  color: #dfe3e6;
  font-size: .85rem;
  font-weight: 500;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-icon-btn {
  color: #96989a;
  font-size: 1rem;
  text-decoration: none;
  position: relative;
  padding: .25rem;
  transition: color .15s;
}
.nav-icon-btn:hover { color: #dfe3e6; }
.badge-count {
  position: absolute;
  top: -6px; right: -6px;
  background: #f50101;
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  border-radius: 50%;
  width: 16px; height: 16px;
  display: flex; align-items: center; justify-content: center;
}
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #1b2838;
  border: 1px solid #2a475e;
  border-radius: .5rem;
  min-width: 200px;
  z-index: 200;
  padding: .5rem 0;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
.nav-user-menu:hover .nav-dropdown { display: block; }
.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem 1rem;
  color: #c6d4df;
  text-decoration: none;
  font-size: .85rem;
  transition: background .1s;
}
.nav-dropdown a:hover { background: #2a475e; color: #fff; }
.nav-dropdown hr { border-color: #2a475e; margin: .25rem 0; }

/* ── Platform Main ── */
.platform-main {
  padding: 2rem 0 4rem;
  min-height: calc(100vh - 60px);
}
.page-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #dfe3e6;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.page-title i { color: #2076da; }

/* ── Cards ── */
.platform-card {
  background: #1b2838;
  border: 1px solid #2a3f5f;
  border-radius: .75rem;
  padding: 1.5rem;
  margin-bottom: 0;
}
.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #c6d4df;
  margin: 0 0 1rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid #2a3f5f;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.card-title i { color: #2076da; }

/* ── Buttons ── */
.btn-platform {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1.25rem;
  border-radius: .4rem;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: filter .15s, transform .1s;
  line-height: 1.4;
}
.btn-platform:hover { filter: brightness(1.15); }
.btn-platform:active { transform: scale(.97); }
.btn-primary   { background: linear-gradient(135deg, #1a6fb5, #2076da); color: #fff; }
.btn-secondary { background: #2a3f5f; color: #c6d4df; }
.btn-danger    { background: #7a1a1a; color: #ff9d9d; }

/* ── Profile ── */
.profile-header-card {
  background: #1b2838;
  border: 1px solid #2a3f5f;
  border-radius: .75rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.profile-cover {
  height: 160px;
  background: linear-gradient(135deg, #0d1b2a 0%, #1a3a5c 50%, #0d1b2a 100%);
}
.profile-header-body {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1rem 1.5rem 1.5rem;
  position: relative;
}
.profile-avatar-wrap {
  position: relative;
  margin-top: -60px;
}
.profile-avatar-lg {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #1b2838;
  display: block;
}
.avatar-edit-btn {
  position: absolute;
  bottom: 0; right: 0;
  background: #2076da;
  color: #fff;
  border-radius: 50%;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem;
  text-decoration: none;
}
.profile-meta { flex: 1; }
.profile-display-name { font-size: 1.5rem; font-weight: 700; color: #fff; margin: 0 0 .2rem; }
.profile-username { color: #96989a; font-size: .85rem; margin: 0 0 .6rem; }
.profile-stats-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: .75rem; }
.profile-stats-row span { color: #96989a; font-size: .85rem; display: flex; align-items: center; gap: .3rem; }
.profile-stats-row i { color: #2076da; }
.profile-bio { color: #c6d4df; font-size: .9rem; line-height: 1.5; margin: 0; }
.profile-actions { display: flex; flex-direction: column; gap: .5rem; }

.profile-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1.5rem;
  align-items: start;
}
.profile-col-left, .profile-col-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Badges */
.badges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}
.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  background: #12202e;
  border-radius: .5rem;
  padding: .6rem .4rem;
  text-align: center;
  cursor: default;
  transition: background .15s;
}
.badge-item:hover { background: #1e3250; }
.badge-icon { font-size: 1.4rem; }
.badge-name { font-size: .7rem; color: #96989a; line-height: 1.2; }

/* Level / XP */
.level-badge {
  background: linear-gradient(135deg, #2076da, #1a3a6e);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.xp-bar {
  height: 8px;
  background: #12202e;
  border-radius: 4px;
  overflow: hidden;
}
.xp-fill {
  height: 100%;
  background: linear-gradient(90deg, #2076da, #02b802);
  border-radius: 4px;
  transition: width .5s ease;
}

/* Activity */
.activity-list { list-style: none; padding: 0; margin: 0; }
.activity-list li {
  padding: .5rem 0;
  border-bottom: 1px solid #12202e;
  font-size: .85rem;
  color: #96989a;
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.activity-action { color: #c6d4df; font-weight: 600; }
.activity-time { margin-left: auto; font-size: .75rem; color: #686868; }

/* Library mini */
.library-mini-grid { display: flex; flex-direction: column; gap: .5rem; }
.library-mini-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .4rem 0;
  border-bottom: 1px solid #12202e;
}
.library-mini-cover {
  width: 40px; height: 40px;
  background: #12202e;
  border-radius: .3rem;
  display: flex; align-items: center; justify-content: center;
  color: #2076da;
}
.library-mini-info { display: flex; flex-direction: column; }
.library-mini-info strong { font-size: .85rem; color: #dfe3e6; }
.library-mini-info small { font-size: .75rem; color: #96989a; }

/* ── Settings ── */
.settings-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  align-items: start;
}
.settings-sidebar {
  background: #1b2838;
  border: 1px solid #2a3f5f;
  border-radius: .75rem;
  overflow: hidden;
  position: sticky;
  top: 80px;
}
.settings-tab {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .75rem 1.2rem;
  color: #96989a;
  text-decoration: none;
  font-size: .88rem;
  transition: background .1s, color .1s;
  border-left: 3px solid transparent;
}
.settings-tab:hover { background: #12202e; color: #c6d4df; }
.settings-tab.active { background: #12202e; color: #fff; border-left-color: #2076da; }
.settings-tab i { width: 16px; text-align: center; }

.settings-form { display: flex; flex-direction: column; gap: 1.1rem; }
.settings-content .platform-card { margin-bottom: 0; }
.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-group label { font-size: .85rem; color: #96989a; font-weight: 500; }
.form-group .input {
  background: #12202e;
  border: 1px solid #2a3f5f;
  border-radius: .4rem;
  color: #dfe3e6;
  padding: .6rem .85rem;
  font-size: .9rem;
  width: 100%;
  box-sizing: border-box;
  transition: border-color .15s;
}
.form-group .input:focus { outline: none; border-color: #2076da; }
.form-group textarea.input { font-family: inherit; }

/* ── Payment Methods ── */
.payment-method-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .85rem 1rem;
  background: #12202e;
  border: 1px solid #2a3f5f;
  border-radius: .5rem;
  transition: border-color .15s;
}
.pm-default { border-color: #2076da; }
.pm-icon { flex-shrink: 0; }
.pm-info { flex: 1; }
.pm-info strong { display: block; color: #dfe3e6; font-size: .9rem; }
.pm-info small { color: #96989a; font-size: .8rem; }
.pm-badge {
  display: inline-block;
  background: #1a3a6e;
  color: #79b4f5;
  font-size: .7rem;
  padding: .1rem .4rem;
  border-radius: .25rem;
  margin-left: .5rem;
}
.pm-actions { display: flex; gap: .4rem; }

/* ── Platform Table ── */
.platform-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}
.platform-table th {
  text-align: left;
  padding: .6rem .75rem;
  color: #96989a;
  border-bottom: 1px solid #2a3f5f;
  font-weight: 600;
}
.platform-table td {
  padding: .6rem .75rem;
  color: #c6d4df;
  border-bottom: 1px solid #12202e;
}
.platform-table tr:last-child td { border-bottom: none; }
.tag {
  display: inline-block;
  background: #1e3250;
  color: #79b4f5;
  font-size: .75rem;
  padding: .1rem .45rem;
  border-radius: .25rem;
  text-transform: capitalize;
}
.status-badge {
  display: inline-block;
  font-size: .75rem;
  padding: .1rem .45rem;
  border-radius: .25rem;
  text-transform: capitalize;
}
.status-completed { background: #1a3a1a; color: #7dff7d; }
.status-pending   { background: #3a3000; color: #ffd700; }
.status-failed    { background: #3a1a1a; color: #ff7d7d; }
.status-refunded  { background: #1e1e3a; color: #9d9dff; }

/* ── Wallet ── */
.wallet-balance-card {
  background: linear-gradient(135deg, #0d1b2a, #1a3a5c);
  border-color: #2076da;
}

/* ── Friends ── */
.friend-card {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: #12202e;
  border-radius: .5rem;
  padding: .75rem;
}
.friend-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.friend-info { flex: 1; min-width: 0; }
.friend-info a { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Notifications ── */
.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid #12202e;
  transition: background .1s;
}
.notification-item.unread { background: rgba(32, 118, 218, .07); border-radius: .4rem; padding: .85rem .75rem; margin: 0 -.75rem; }
.notif-icon {
  width: 36px; height: 36px;
  background: #12202e;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #2076da;
  flex-shrink: 0;
}
.notif-body { flex: 1; }
.notif-body p { margin: 0 0 .2rem; color: #c6d4df; font-size: .9rem; }
.notif-body small { color: #686868; font-size: .78rem; }

/* ── Game Library Grid ── */
.game-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}
.game-library-card {
  background: #12202e;
  border: 1px solid #2a3f5f;
  border-radius: .5rem;
  overflow: hidden;
  transition: border-color .15s;
}
.game-library-card:hover { border-color: #2076da; }
.game-library-card.owned { border-color: #1a5c1a; }
.game-cover-placeholder {
  height: 90px;
  background: linear-gradient(135deg, #0d1b2a, #1a3a5c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #2076da;
}
.game-lib-info {
  padding: .65rem .75rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.game-lib-info strong { font-size: .85rem; color: #dfe3e6; }
.game-lib-info small { font-size: .75rem; color: #96989a; }

/* ── Admin ── */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stat-card {
  background: #1b2838;
  border: 1px solid #2a3f5f;
  border-radius: .6rem;
  padding: 1.2rem;
  text-align: center;
}
.stat-card .stat-num { font-size: 2rem; font-weight: 700; color: #2076da; }
.stat-card .stat-label { font-size: .8rem; color: #96989a; margin-top: .2rem; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .profile-grid { grid-template-columns: 1fr; }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-sidebar { position: static; display: flex; flex-wrap: wrap; border-radius: .5rem; }
  .settings-tab { flex: 1; justify-content: center; min-width: 120px; border-left: none; border-bottom: 3px solid transparent; }
  .settings-tab.active { border-left: none; border-bottom-color: #2076da; }
  .admin-stats-grid { grid-template-columns: 1fr 1fr; }
  .profile-header-body { flex-direction: column; }
  .nav-username { display: none; }
}
@media (max-width: 600px) {
  .admin-stats-grid { grid-template-columns: 1fr; }
  .game-library-grid { grid-template-columns: repeat(2, 1fr); }
  .badges-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-stats-row { gap: .5rem; }
}

/* ── Store ── */
.store-subnav {
  background: #131a22;
  border-bottom: 1px solid #2a3f5f;
  position: sticky;
  top: 60px;
  z-index: 50;
}
.store-subnav-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: .6rem 0;
  flex-wrap: wrap;
}
.store-subnav-inner a {
  color: #96989a;
  text-decoration: none;
  font-size: .85rem;
  transition: color .15s;
}
.store-subnav-inner a:hover, .store-subnav-inner a.active { color: #c6d4df; }
.store-search-form { display: flex; margin-left: auto; }
.store-search-input {
  background: #12202e;
  border: 1px solid #2a3f5f;
  color: #dfe3e6;
  padding: .4rem .75rem;
  border-radius: .35rem 0 0 .35rem;
  font-size: .85rem;
  width: 200px;
  outline: none;
}
.store-search-form button {
  background: #2076da;
  border: none;
  color: #fff;
  padding: .4rem .75rem;
  border-radius: 0 .35rem .35rem 0;
  cursor: pointer;
}
.store-section-title { font-size: 1.1rem; font-weight: 700; color: #c6d4df; margin-bottom: 1rem; }
.store-featured-section { margin-bottom: 2rem; }
.store-featured-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1rem;
  height: 220px;
}
.featured-game-card {
  border-radius: .6rem;
  overflow: hidden;
  text-decoration: none;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid #2a3f5f;
  transition: border-color .15s;
}
.featured-game-card:hover { border-color: #2076da; }
.featured-game-bg {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.featured-game-icon { font-size: 4rem; color: #2076da; opacity: .3; }
.featured-game-info {
  position: relative;
  background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, transparent 100%);
  padding: .75rem;
}
.featured-game-title { display: block; color: #fff; font-weight: 700; font-size: .95rem; }
.featured-game-genre { display: block; color: #96989a; font-size: .78rem; margin-bottom: .3rem; }
.featured-game-price { display: flex; align-items: center; gap: .4rem; }
.store-layout { display: grid; grid-template-columns: 200px 1fr; gap: 1.5rem; align-items: start; }
.store-sidebar { position: sticky; top: 100px; }
.filter-group { margin-bottom: 1rem; }
.filter-group h4 { color: #96989a; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .4rem; }
.filter-tag {
  display: inline-block;
  background: #12202e;
  color: #96989a;
  font-size: .78rem;
  padding: .2rem .5rem;
  border-radius: .25rem;
  text-decoration: none;
  margin: .15rem .1rem;
  border: 1px solid transparent;
  transition: all .1s;
}
.filter-tag:hover { color: #c6d4df; border-color: #2a3f5f; }
.filter-tag.active { background: #1a3a6e; color: #79b4f5; border-color: #2076da; }
.store-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  color: #96989a;
  font-size: .85rem;
}
.store-sort-select {
  background: #12202e;
  border: 1px solid #2a3f5f;
  color: #c6d4df;
  padding: .3rem .5rem;
  border-radius: .3rem;
  font-size: .82rem;
}
.store-game-list { display: flex; flex-direction: column; gap: .5rem; }
.store-game-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #1b2838;
  border: 1px solid #2a3f5f;
  border-radius: .5rem;
  padding: .6rem .75rem;
  text-decoration: none;
  transition: border-color .1s, background .1s;
}
.store-game-row:hover { border-color: #2076da; background: #1e3250; }
.store-game-cover { flex-shrink: 0; }
.store-game-cover-placeholder {
  width: 90px; height: 34px;
  border-radius: .3rem;
  display: flex; align-items: center; justify-content: center;
  color: #2076da;
  font-size: 1rem;
}
.store-game-info { flex: 1; min-width: 0; }
.store-game-title { display: block; color: #c6d4df; font-size: .9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.store-game-genre { display: block; color: #686868; font-size: .75rem; }
.store-game-tags { display: flex; flex-wrap: wrap; gap: .2rem; margin-top: .2rem; }
.store-tag {
  background: #12202e;
  color: #96989a;
  font-size: .7rem;
  padding: .1rem .35rem;
  border-radius: .2rem;
  text-decoration: none;
  border: 1px solid #2a3f5f;
}
.store-game-review { width: 100px; text-align: right; }
.review-score { font-size: .78rem; padding: .15rem .4rem; border-radius: .25rem; }
.review-score.positive     { color: #66c0f4; }
.review-score.very-positive{ color: #66c0f4; }
.review-score.mixed        { color: #a0a0a0; }
.review-score.negative     { color: #c6102e; }
.store-game-price-block {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-shrink: 0;
  min-width: 90px;
  justify-content: flex-end;
}
.price-free    { color: #4c6b22; font-weight: 700; font-size: .85rem; background: #a4d007; padding: .2rem .5rem; border-radius: .25rem; }
.price-final   { color: #fff; font-weight: 700; font-size: .9rem; }
.price-original{ color: #96989a; font-size: .78rem; text-decoration: line-through; }
.price-discount-badge { background: #4c6b22; color: #a4d007; font-weight: 700; font-size: .82rem; padding: .2rem .4rem; border-radius: .25rem; }
.price-owned   { color: #5ba32b; font-size: .82rem; font-weight: 600; }
.price-stack   { display: flex; flex-direction: column; align-items: flex-end; }

/* ── Game Detail Page ── */
.game-title-bar { background: #131a22; padding: .75rem 0; border-bottom: 1px solid #2a3f5f; }
.game-title-bar-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.game-page-title { font-size: 1.5rem; font-weight: 700; color: #fff; margin: 0; }
.game-top-section { display: grid; grid-template-columns: 1fr 320px; gap: 1rem; margin-bottom: 1.5rem; }
.game-main-screenshot {
  background: #12202e;
  border-radius: .5rem;
  height: 340px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.game-screenshot-placeholder { text-align: center; }
.game-thumbs-row { display: flex; gap: .3rem; margin-top: .3rem; }
.game-thumb-placeholder {
  flex: 1; height: 60px;
  background: #12202e;
  border-radius: .3rem;
  display: flex; align-items: center; justify-content: center;
  color: #2a3f5f; font-size: .9rem;
  border: 1px solid #2a3f5f;
  cursor: pointer;
}
.game-summary-banner {
  background: linear-gradient(135deg, #0d1b2a, #1a3a5c);
  border-radius: .5rem .5rem 0 0;
  height: 160px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.game-summary-banner-inner { text-align: center; }
.game-summary-body { background: #1b2838; border: 1px solid #2a3f5f; border-top: none; border-radius: 0 0 .5rem .5rem; padding: .75rem; }
.game-short-desc { color: #96989a; font-size: .82rem; line-height: 1.5; margin-bottom: .75rem; }
.game-summary-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: .4rem; gap: .5rem; font-size: .8rem; }
.summary-label { color: #96989a; flex-shrink: 0; }
.review-label { font-weight: 600; }
.review-label.very-positive, .review-label.positive { color: #66c0f4; }
.review-label.mixed { color: #a0a0a0; }
.review-label.negative { color: #c6102e; }
.game-popular-tags { margin-top: .6rem; }
.game-login-bar {
  background: #1e3250;
  border: 1px solid #2076da;
  border-radius: .5rem;
  padding: .75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  color: #c6d4df;
  font-size: .88rem;
  gap: 1rem;
}
.game-detail-columns { display: grid; grid-template-columns: 1fr 250px; gap: 1.5rem; align-items: start; }
.game-left-col, .game-right-col { display: flex; flex-direction: column; gap: 1rem; }
.game-purchase-block {
  background: #1b2838;
  border: 1px solid #2a3f5f;
  border-radius: .5rem;
  padding: 1rem;
}
.game-purchase-title { display: flex; justify-content: space-between; align-items: center; color: #c6d4df; font-size: .9rem; font-weight: 600; margin-bottom: .5rem; }
.game-purchase-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.game-section-title { font-size: 1rem; font-weight: 700; color: #c6d4df; margin-bottom: .75rem; display: flex; align-items: center; gap: .5rem; }
.game-description-block { background: #1b2838; border: 1px solid #2a3f5f; border-radius: .5rem; padding: 1rem; }
.game-description-text { color: #96989a; font-size: .88rem; line-height: 1.7; }
.sysreq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.sysreq-col { font-size: .82rem; color: #96989a; }
.sysreq-col h4 { color: #c6d4df; margin-bottom: .5rem; font-size: .88rem; }
.game-features-card { display: flex; flex-direction: column; gap: .5rem; }
.game-feature-row { display: flex; align-items: center; gap: .6rem; font-size: .82rem; color: #96989a; }
.game-details-card .details-row { display: flex; justify-content: space-between; padding: .35rem 0; border-bottom: 1px solid #12202e; font-size: .82rem; }
.game-details-card .details-row span:first-child { color: #96989a; }
.write-review-block { background: #12202e; border-radius: .5rem; padding: 1rem; margin-bottom: 1rem; }
.reviews-list { display: flex; flex-direction: column; gap: .75rem; margin-top: 1rem; }
.review-card { background: #12202e; border-radius: .5rem; padding: 1rem; }
.review-header { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .5rem; }
.review-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.review-verdict { font-size: .8rem; font-weight: 600; padding: .2rem .5rem; border-radius: .25rem; }
.review-verdict.recommended     { background: #1a3a1a; color: #7dff7d; }
.review-verdict.not-recommended { background: #3a1a1a; color: #ff7d7d; }
.review-stars { margin-left: auto; }
.review-title { color: #c6d4df; font-weight: 600; font-size: .88rem; margin-bottom: .3rem; }
.review-body { color: #96989a; font-size: .85rem; line-height: 1.6; }

/* ── Community / Forum ── */
.community-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; gap: 1rem; flex-wrap: wrap; }
.community-stats { display: flex; gap: 1.5rem; margin-bottom: 1.5rem; background: #1b2838; border: 1px solid #2a3f5f; border-radius: .5rem; padding: .75rem 1.25rem; }
.community-stat { display: flex; flex-direction: column; align-items: center; }
.community-stat strong { font-size: 1.3rem; color: #2076da; font-weight: 700; }
.community-stat span { font-size: .75rem; color: #96989a; }
.community-layout { display: grid; grid-template-columns: 1fr 300px; gap: 1.5rem; align-items: start; }
.community-sidebar { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 100px; }
.forum-category-list { display: flex; flex-direction: column; }
.forum-category-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .85rem .5rem;
  border-bottom: 1px solid #12202e;
  text-decoration: none;
  transition: background .1s;
  border-radius: .3rem;
}
.forum-category-row:hover { background: #12202e; }
.forum-cat-icon { width: 44px; height: 44px; border-radius: .5rem; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: #2076da; flex-shrink: 0; }
.forum-cat-info { flex: 1; }
.forum-cat-name { display: block; color: #c6d4df; font-weight: 600; font-size: .92rem; }
.forum-cat-desc { display: block; color: #686868; font-size: .78rem; margin-top: .1rem; }
.forum-cat-stats { text-align: right; font-size: .78rem; color: #96989a; display: flex; flex-direction: column; align-items: flex-end; gap: .15rem; }
.recent-thread-item { display: flex; align-items: flex-start; gap: .6rem; padding: .5rem 0; border-bottom: 1px solid #12202e; }
.thread-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; margin-top: .1rem; }
.recent-thread-info { flex: 1; min-width: 0; }
.thread-link-title { display: block; color: #c6d4df; font-size: .85rem; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-link-title:hover { color: #67c1f5; }
.thread-meta { display: block; color: #686868; font-size: .72rem; margin-top: .1rem; }
.thread-reply-count { font-size: .75rem; color: #96989a; flex-shrink: 0; background: #12202e; padding: .1rem .35rem; border-radius: .25rem; }
.thread-list-header { display: flex; align-items: center; padding: .5rem .5rem; color: #96989a; font-size: .78rem; font-weight: 600; text-transform: uppercase; border-bottom: 2px solid #2a3f5f; }
.thread-list-row { display: flex; align-items: center; padding: .6rem .5rem; border-bottom: 1px solid #12202e; gap: .5rem; transition: background .1s; }
.thread-list-row:hover { background: #12202e; }
.thread-list-row.pinned { background: rgba(255,185,20,.04); }
.thread-list-main { flex: 1; display: flex; align-items: center; gap: .6rem; min-width: 0; }
.forum-post {
  display: flex;
  gap: 0;
  background: #1b2838;
  border: 1px solid #2a3f5f;
  border-radius: .6rem;
  overflow: hidden;
  margin-bottom: .75rem;
}
.forum-post-user {
  width: 130px;
  flex-shrink: 0;
  background: #12202e;
  padding: 1rem .75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  text-align: center;
  border-right: 1px solid #2a3f5f;
}
.forum-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid #2076da; }
.forum-user-level { background: #1a3a6e; color: #79b4f5; font-size: .7rem; padding: .1rem .4rem; border-radius: .25rem; }
.solution-badge { background: #1a3a1a; color: #7dff7d; font-size: .72rem; padding: .15rem .4rem; border-radius: .25rem; }
.forum-post-body { flex: 1; padding: 1rem; display: flex; flex-direction: column; }
.forum-post-content { color: #c6d4df; font-size: .9rem; line-height: 1.7; flex: 1; white-space: pre-wrap; word-break: break-word; }
.forum-post-footer { display: flex; align-items: center; gap: 1rem; margin-top: .75rem; padding-top: .5rem; border-top: 1px solid #2a3f5f; }
.forum-like-btn { color: #96989a; text-decoration: none; font-size: .82rem; display: flex; align-items: center; gap: .3rem; transition: color .1s; }
.forum-like-btn:hover, .forum-like-btn.liked { color: #2076da; }

/* ── Support ── */
.support-message { border-radius: .5rem; padding: .85rem; }
.user-message  { background: #12202e; border-left: 3px solid #2a3f5f; }
.staff-message { background: #1a2f4a; border-left: 3px solid #2076da; }
.support-msg-header { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.support-msg-header strong { color: #c6d4df; font-size: .88rem; }
.support-msg-body { color: #96989a; font-size: .88rem; line-height: 1.6; white-space: pre-wrap; }
.faq-item { border-bottom: 1px solid #2a3f5f; }
.faq-item summary { padding: .75rem 0; color: #c6d4df; font-size: .9rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::after { content: '+'; color: #2076da; font-size: 1.1rem; }
.faq-item[open] summary::after { content: '-'; }
.faq-item p { color: #96989a; font-size: .85rem; padding: 0 0 .75rem; line-height: 1.6; }

/* ── About ── */
.about-hero { background: linear-gradient(135deg, #0d1b2a 0%, #1a3a5c 50%, #0d1b2a 100%); border-bottom: 1px solid #2a3f5f; }
/* about styles consolidated below */
.about-stat-card { background: #1b2838; border: 1px solid #2a3f5f; border-radius: .6rem; padding: 1.2rem; text-align: center; }
.about-stat-num { font-size: 2rem; font-weight: 700; color: #2076da; }
.about-stat-label { font-size: .8rem; color: #96989a; margin-top: .2rem; }
.about-features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.about-feature-card { background: #1b2838; border: 1px solid #2a3f5f; border-radius: .6rem; padding: 1.2rem; }
.about-feature-icon { font-size: 1.5rem; color: #2076da; margin-bottom: .6rem; }
.about-feature-card h3 { color: #c6d4df; font-size: .95rem; margin-bottom: .4rem; }
.about-feature-card p { color: #96989a; font-size: .82rem; line-height: 1.5; }

/* ── Legal Content ── */
.legal-content { color: #96989a; font-size: .9rem; line-height: 1.8; }
.legal-content h2 { color: #c6d4df; font-size: 1.3rem; margin-bottom: 1rem; }
.legal-content h3 { color: #c6d4df; font-size: 1rem; margin: 1.5rem 0 .5rem; }
.legal-content p  { margin-bottom: .75rem; }
.legal-content ul { padding-left: 1.5rem; margin-bottom: .75rem; }
.legal-content li { margin-bottom: .25rem; }
.legal-content a  { color: #67c1f5; }

/* ── Responsive extras ── */
@media (max-width: 900px) {
  .store-layout { grid-template-columns: 1fr; }
  .store-sidebar { position: static; }
  .store-featured-grid { grid-template-columns: 1fr 1fr; height: auto; }
  .featured-main { grid-column: span 2; height: 180px; }
  .game-top-section { grid-template-columns: 1fr; }
  .game-detail-columns { grid-template-columns: 1fr; }
  .community-layout { grid-template-columns: 1fr; }
  .community-sidebar { position: static; }
  .about-stats-grid { grid-template-columns: 1fr 1fr; }
  .about-features-grid { grid-template-columns: 1fr 1fr; }
  .forum-post-user { width: 80px; }
}
@media (max-width: 600px) {
  .store-featured-grid { grid-template-columns: 1fr; height: auto; }
  .featured-main { grid-column: span 1; }
  .about-stats-grid, .about-features-grid { grid-template-columns: 1fr; }
  .forum-post { flex-direction: column; }
  .forum-post-user { width: 100%; flex-direction: row; padding: .6rem; border-right: none; border-bottom: 1px solid #2a3f5f; }
  .store-game-cover-placeholder { width: 50px; }
}

/* ============================================
   STORE
   ============================================ */
.store-subnav {
  background: #171d25;
  border-bottom: 1px solid #2a3f5f;
  position: sticky;
  top: 60px;
  z-index: 50;
}
.store-subnav-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: .6rem 0;
  flex-wrap: wrap;
}
.store-subnav-inner a {
  color: #96989a;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 500;
  padding: .3rem 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.store-subnav-inner a:hover, .store-subnav-inner a.active { color: #c6d4df; border-bottom-color: #2076da; }
.store-search-form { display: flex; margin-left: auto; gap: 0; }
.store-search-input {
  background: #12202e;
  border: 1px solid #2a3f5f;
  border-right: none;
  color: #dfe3e6;
  padding: .4rem .75rem;
  font-size: .85rem;
  border-radius: .4rem 0 0 .4rem;
  width: 200px;
  outline: none;
}
.store-search-input:focus { border-color: #2076da; }
.store-search-form button {
  background: #2076da;
  border: none;
  color: #fff;
  padding: .4rem .7rem;
  border-radius: 0 .4rem .4rem 0;
  cursor: pointer;
}

/* Featured section */
.store-featured-section { margin-bottom: 2rem; }
.store-section-title { font-size: 1rem; font-weight: 700; color: #c6d4df; margin-bottom: .75rem; }
.store-featured-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: .5rem;
  height: 240px;
}
.featured-game-card {
  position: relative;
  border-radius: .5rem;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: filter .15s;
}
.featured-game-card:hover { filter: brightness(1.1); }
.featured-main { grid-row: 1 / -1; }
.featured-side { height: 115px; }
.featured-game-bg {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.featured-game-icon { font-size: 5rem; color: rgba(255,255,255,.15); }
.featured-game-info {
  position: relative;
  padding: .75rem 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.featured-game-title { color: #fff; font-weight: 700; font-size: .95rem; }
.featured-game-genre { color: #96989a; font-size: .78rem; }
.featured-game-price { display: flex; align-items: center; gap: .4rem; margin-top: .2rem; }

/* Store layout */
.store-layout { display: grid; grid-template-columns: 200px 1fr; gap: 1.5rem; align-items: start; }
.store-sidebar { position: sticky; top: 110px; }
.filter-group { margin-bottom: 1rem; }
.filter-group h4 { font-size: .78rem; color: #686868; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .4rem; }
.filter-tag {
  display: inline-block;
  background: #12202e;
  color: #96989a;
  font-size: .78rem;
  padding: .2rem .55rem;
  border-radius: .3rem;
  margin: .15rem .15rem 0 0;
  text-decoration: none;
  transition: background .1s, color .1s;
}
.filter-tag:hover { background: #1e3250; color: #c6d4df; }
.filter-tag.active { background: #2076da; color: #fff; }

/* Store results */
.store-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .75rem;
  color: #96989a;
  font-size: .85rem;
}
.store-sort-select {
  background: #12202e;
  border: 1px solid #2a3f5f;
  color: #c6d4df;
  padding: .35rem .6rem;
  font-size: .82rem;
  border-radius: .3rem;
  cursor: pointer;
}
.store-game-list { display: flex; flex-direction: column; }
.store-game-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .6rem .75rem;
  text-decoration: none;
  border-radius: .4rem;
  transition: background .1s;
  border-bottom: 1px solid #12202e;
}
.store-game-row:hover { background: #1e2d3d; }
.store-game-cover { flex-shrink: 0; }
.store-game-cover-placeholder {
  width: 100px;
  height: 48px;
  border-radius: .3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2076da;
  font-size: 1.4rem;
}
.store-game-info { flex: 1; min-width: 0; }
.store-game-title { display: block; color: #c6d4df; font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.store-game-genre { display: block; font-size: .75rem; color: #686868; }
.store-game-tags { margin-top: .2rem; display: flex; flex-wrap: wrap; gap: .2rem; }
.store-tag {
  display: inline-block;
  background: #12202e;
  color: #96989a;
  font-size: .72rem;
  padding: .1rem .4rem;
  border-radius: .25rem;
  text-decoration: none;
  transition: background .1s;
}
.store-tag:hover { background: #1e3250; color: #c6d4df; }
.store-game-review { width: 110px; text-align: right; }
.store-game-price-block { display: flex; align-items: center; gap: .4rem; flex-shrink: 0; min-width: 100px; justify-content: flex-end; }
.review-score { font-size: .78rem; padding: .15rem .4rem; border-radius: .25rem; }
.review-score.positive, .review-score.very-positive { background: #1a3a1a; color: #7dff7d; }
.review-score.mixed   { background: #3a3000; color: #ffd700; }
.review-score.negative{ background: #3a1a1a; color: #ff7d7d; }

/* Price elements */
.price-free     { color: #7dff7d; font-weight: 700; font-size: .88rem; }
.price-owned    { color: #7dff7d; font-size: .85rem; }
.price-final    { color: #c6d4df; font-weight: 700; }
.price-original { color: #686868; text-decoration: line-through; font-size: .8rem; }
.price-discount-badge {
  background: #4c7a1e;
  color: #d2e885;
  font-size: .78rem;
  font-weight: 700;
  padding: .15rem .45rem;
  border-radius: .25rem;
}
.price-stack { display: flex; flex-direction: column; align-items: flex-end; }

/* ============================================
   GAME DETAIL PAGE
   ============================================ */
.game-title-bar {
  background: rgba(0,0,0,.3);
  border-bottom: 1px solid #2a3f5f;
  padding: .6rem 0;
}
.game-title-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.game-page-title { font-size: 1.3rem; font-weight: 700; color: #c6d4df; margin: 0; }

.game-top-section {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.game-main-screenshot {
  background: #12202e;
  border-radius: .5rem;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .5rem;
}
.game-screenshot-placeholder { text-align: center; }
.game-thumbs-row { display: flex; gap: .4rem; }
.game-thumb-placeholder {
  flex: 1;
  height: 56px;
  background: #12202e;
  border-radius: .3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2a3f5f;
  cursor: pointer;
  transition: background .1s;
}
.game-thumb-placeholder:hover { background: #1e3250; }
.game-summary-col { display: flex; flex-direction: column; }
.game-summary-banner {
  background: #12202e;
  border-radius: .5rem .5rem 0 0;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.game-summary-banner-inner { text-align: center; }
.game-summary-body {
  background: #1b2838;
  border: 1px solid #2a3f5f;
  border-top: none;
  border-radius: 0 0 .5rem .5rem;
  padding: .85rem;
  flex: 1;
}
.game-short-desc { color: #96989a; font-size: .82rem; line-height: 1.5; margin-bottom: .75rem; }
.game-summary-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: .5rem; font-size: .82rem; gap: .5rem; }
.summary-label { color: #686868; white-space: nowrap; flex-shrink: 0; }
.review-label { font-size: .82rem; padding: .1rem .4rem; border-radius: .25rem; }
.review-label.very-positive, .review-label.positive { background: #1a3a1a; color: #7dff7d; }
.review-label.mixed   { background: #3a3000; color: #ffd700; }
.review-label.negative{ background: #3a1a1a; color: #ff7d7d; }
.game-popular-tags { margin-top: .75rem; }
.game-login-bar {
  background: #1a3a5c;
  border: 1px solid #2076da;
  border-radius: .5rem;
  padding: .85rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: .88rem;
  color: #c6d4df;
}

.game-detail-columns {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 1.5rem;
  align-items: start;
}
.game-left-col, .game-right-col { display: flex; flex-direction: column; gap: 1.5rem; }

.game-purchase-block {
  background: #1b2838;
  border: 1px solid #2a3f5f;
  border-radius: .75rem;
  padding: 1.25rem;
}
.game-purchase-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: #c6d4df;
  margin-bottom: .5rem;
}
.game-purchase-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.game-description-block {
  background: #1b2838;
  border: 1px solid #2a3f5f;
  border-radius: .75rem;
  padding: 1.25rem;
}
.game-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #c6d4df;
  margin: 0 0 1rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid #2a3f5f;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.game-description-text { color: #96989a; font-size: .88rem; line-height: 1.7; }
.sysreq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.sysreq-col { font-size: .82rem; color: #96989a; }
.sysreq-col h4 { color: #c6d4df; margin-bottom: .5rem; }

/* Reviews */
.write-review-block {
  background: #12202e;
  border-radius: .5rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
}
.reviews-list { display: flex; flex-direction: column; gap: 1rem; }
.review-card {
  background: #12202e;
  border-radius: .5rem;
  padding: 1rem;
}
.review-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .6rem;
  flex-wrap: wrap;
}
.review-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.review-verdict { font-size: .8rem; margin-left: auto; }
.review-verdict.recommended    { color: #7dff7d; }
.review-verdict.not-recommended{ color: #ff7d7d; }
.review-stars { display: flex; gap: .1rem; }
.review-title { font-weight: 700; color: #c6d4df; margin-bottom: .3rem; font-size: .9rem; }
.review-body  { color: #96989a; font-size: .85rem; line-height: 1.6; }

/* Right column cards */
.game-features-card { display: flex; flex-direction: column; gap: .6rem; }
.game-feature-row { display: flex; align-items: center; gap: .6rem; font-size: .85rem; color: #c6d4df; }
.game-details-card { display: flex; flex-direction: column; gap: .5rem; }
.details-row { display: flex; justify-content: space-between; font-size: .82rem; gap: .5rem; }
.details-row span:first-child { color: #686868; flex-shrink: 0; }
.details-row strong, .details-row span:last-child { color: #c6d4df; text-align: right; }

/* ============================================
   COMMUNITY / FORUM
   ============================================ */
.community-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.community-stats {
  display: flex;
  gap: 2rem;
  background: #1b2838;
  border: 1px solid #2a3f5f;
  border-radius: .6rem;
  padding: .85rem 1.5rem;
  margin-bottom: 1.5rem;
}
.community-stat { text-align: center; }
.community-stat strong { display: block; font-size: 1.4rem; font-weight: 700; color: #2076da; }
.community-stat span  { font-size: .78rem; color: #686868; }
.community-layout { display: grid; grid-template-columns: 1fr 280px; gap: 1.5rem; align-items: start; }
.community-main, .community-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

/* Forum category list */
.forum-category-list { display: flex; flex-direction: column; }
.forum-category-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .9rem .5rem;
  text-decoration: none;
  border-bottom: 1px solid #12202e;
  transition: background .1s;
  border-radius: .3rem;
}
.forum-category-row:hover { background: #12202e; }
.forum-cat-icon {
  width: 44px; height: 44px;
  border-radius: .5rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: #2076da;
  flex-shrink: 0;
}
.forum-cat-info { flex: 1; min-width: 0; }
.forum-cat-name { display: block; color: #c6d4df; font-weight: 600; font-size: .92rem; }
.forum-cat-desc { display: block; color: #686868; font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.forum-cat-stats { text-align: right; }
.forum-cat-stats span { display: block; font-size: .78rem; color: #96989a; }

/* Recent thread sidebar */
.recent-thread-item {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .6rem 0;
  border-bottom: 1px solid #12202e;
}
.thread-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0; margin-top: .1rem; }
.recent-thread-info { flex: 1; min-width: 0; }
.thread-link-title {
  display: block;
  color: #c6d4df;
  font-size: .85rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.thread-link-title:hover { color: #67c1f5; }
.thread-meta { font-size: .72rem; color: #686868; }
.thread-reply-count {
  background: #12202e;
  color: #96989a;
  font-size: .72rem;
  border-radius: .25rem;
  padding: .1rem .35rem;
  flex-shrink: 0;
}

/* Thread list */
.thread-list-header {
  display: flex;
  align-items: center;
  padding: .5rem .5rem;
  font-size: .75rem;
  color: #686868;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 1px solid #2a3f5f;
  margin-bottom: .25rem;
}
.thread-list-row {
  display: flex;
  align-items: center;
  padding: .65rem .5rem;
  border-bottom: 1px solid #12202e;
  transition: background .1s;
}
.thread-list-row:hover { background: #12202e; }
.thread-list-row.pinned { background: rgba(32,118,218,.06); }
.thread-list-main { display: flex; align-items: center; gap: .6rem; flex: 1; min-width: 0; }

/* Forum post */
.forum-post {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: #1b2838;
  border: 1px solid #2a3f5f;
  border-radius: .6rem;
  margin-bottom: 1rem;
}
.forum-post-user {
  width: 110px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  text-align: center;
}
.forum-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid #2a3f5f; }
.forum-user-level {
  background: #2076da;
  color: #fff;
  font-size: .7rem;
  padding: .1rem .35rem;
  border-radius: .25rem;
}
.solution-badge { background: #1a3a1a; color: #7dff7d; font-size: .72rem; padding: .15rem .4rem; border-radius: .25rem; }
.forum-post-body { flex: 1; min-width: 0; }
.forum-post-content { color: #c6d4df; font-size: .9rem; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.forum-post-footer { display: flex; align-items: center; gap: 1rem; margin-top: .75rem; }
.forum-like-btn {
  color: #96989a;
  font-size: .82rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .5rem;
  border-radius: .25rem;
  background: #12202e;
  transition: background .1s, color .1s;
}
.forum-like-btn:hover, .forum-like-btn.liked { background: #1e3250; color: #67c1f5; }

/* ============================================
   SUPPORT
   ============================================ */
.support-message {
  border-radius: .5rem;
  padding: 1rem;
}
.user-message  { background: #12202e; }
.staff-message { background: #1a2e1a; border: 1px solid #2a5c2a; }
.support-msg-header { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; font-size: .85rem; color: #c6d4df; }
.support-msg-body { color: #96989a; font-size: .88rem; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }

/* FAQ */
.faq-item {
  border-bottom: 1px solid #2a3f5f;
  padding: .75rem 0;
}
.faq-item summary {
  cursor: pointer;
  color: #c6d4df;
  font-weight: 500;
  font-size: .9rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::after { content: '+'; color: #2076da; font-size: 1.1rem; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { color: #96989a; font-size: .85rem; line-height: 1.6; margin-top: .6rem; padding-left: .5rem; }

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-hero { background: linear-gradient(135deg, #0d1b2a 0%, #1a3a5c 50%, #0d1b2a 100%); }
.about-section { margin-bottom: 2.5rem; }
.about-text-card {
  background: #1b2838;
  border: 1px solid #2a3f5f;
  border-radius: .75rem;
  padding: 2rem;
}
.about-text-card h2 { color: #c6d4df; font-size: 1.3rem; margin-bottom: 1rem; display: flex; align-items: center; gap: .6rem; }
.about-text-card p { color: #96989a; line-height: 1.8; margin-bottom: .75rem; font-size: .95rem; }
.about-stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; margin-bottom: 2.5rem; }
.about-stat-card { background: #1b2838; border: 1px solid #2a3f5f; border-radius: .6rem; padding: 1.5rem; text-align: center; }
.about-stat-num   { font-size: 2.2rem; font-weight: 800; color: #2076da; }
.about-stat-label { font-size: .82rem; color: #686868; margin-top: .2rem; }
.about-features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.about-feature-card {
  background: #1b2838;
  border: 1px solid #2a3f5f;
  border-radius: .6rem;
  padding: 1.5rem;
  text-align: center;
}
.about-feature-icon { font-size: 2rem; color: #2076da; margin-bottom: .75rem; }
.about-feature-card h3 { color: #c6d4df; font-size: .95rem; margin-bottom: .4rem; }
.about-feature-card p  { color: #686868; font-size: .82rem; line-height: 1.5; }

/* ============================================
   LEGAL PAGE
   ============================================ */
.legal-content h2 { color: #c6d4df; font-size: 1.3rem; margin: 0 0 1rem; }
.legal-content h3 { color: #c6d4df; font-size: 1rem; margin: 1.5rem 0 .5rem; }
.legal-content p  { color: #96989a; line-height: 1.8; margin-bottom: .75rem; font-size: .9rem; }
.legal-content ul { color: #96989a; padding-left: 1.5rem; margin-bottom: .75rem; }
.legal-content ul li { margin-bottom: .3rem; line-height: 1.7; font-size: .9rem; }
.legal-content a  { color: #67c1f5; }
.legal-content strong { color: #c6d4df; }

/* ============================================
   RESPONSIVE ADDITIONS
   ============================================ */
@media (max-width: 900px) {
  .store-layout       { grid-template-columns: 1fr; }
  .store-sidebar      { position: static; }
  .game-top-section   { grid-template-columns: 1fr; }
  .game-detail-columns{ grid-template-columns: 1fr; }
  .community-layout   { grid-template-columns: 1fr; }
  .about-stats-grid   { grid-template-columns: 1fr 1fr; }
  .about-features-grid{ grid-template-columns: 1fr 1fr; }
  .forum-post         { flex-direction: column; }
  .forum-post-user    { width: 100%; flex-direction: row; text-align: left; }
  .store-featured-grid{ grid-template-columns: 1fr; height: auto; }
  .featured-side      { height: 100px; }
}
@media (max-width: 600px) {
  .community-stats      { gap: 1rem; flex-wrap: wrap; }
  .about-stats-grid     { grid-template-columns: 1fr 1fr; }
  .about-features-grid  { grid-template-columns: 1fr; }
  .sysreq-grid          { grid-template-columns: 1fr; }
  .store-search-input   { width: 130px; }
  .store-subnav-inner   { gap: .75rem; }
}

/* ============================================
   CRITICAL LAYOUT FIX - overrides style.css
   main .container padding which was squishing
   all platform pages into a narrow column
   ============================================ */

.platform-main > .container,
body:not([auth-mode]) main > .container {
  display: block !important;
  padding: 1.5rem 1rem !important;
  max-width: 1200px !important;
  width: 92% !important;
  margin: 0 auto !important;
}

/* Store subnav and game title bar also need full width */
.store-subnav > .container,
.game-title-bar > .container,
.about-hero > .container {
  max-width: 1200px !important;
  width: 92% !important;
  margin: 0 auto !important;
}

/* Preserve auth page (index.php) behavior */
body[auth-mode] main > .container {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: calc(var(--size-3rem) + var(--size-3rem)) var(--size-3rem) !important;
  max-width: var(--containr-max-width) !important;
  width: var(--containr-width) !important;
}

/* ============================================
   DASHBOARD
   ============================================ */
.dashboard-welcome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, #0d1b2a, #1a3a5c);
  border: 1px solid #2a3f5f;
  border-radius: .75rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.dash-stat-card {
  background: #1b2838;
  border: 1px solid #2a3f5f;
  border-radius: .6rem;
  padding: 1rem .75rem;
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  transition: border-color .15s, background .15s;
}
.dash-stat-card:hover { background: #1e3250; border-color: #2076da; }
.dash-stat-card i      { font-size: 1.3rem; color: #2076da; }
.dash-stat-card strong { font-size: 1.2rem; font-weight: 700; color: #c6d4df; }
.dash-stat-card span   { font-size: .72rem; color: #686868; }
.dash-badge {
  display: inline-block;
  background: #f59e0b;
  color: #000;
  font-size: .65rem;
  font-weight: 700;
  padding: .1rem .35rem;
  border-radius: .25rem;
  margin-top: .1rem;
}

@media (max-width: 900px) {
  .dashboard-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
  .dashboard-welcome { flex-direction: column; align-items: flex-start; }
}

/* Active nav item */
.nav-item.nav-active {
  color: #fff !important;
  border-bottom: 2px solid #2076da;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  display: flex;
  align-items: center;
  gap: .3rem;
  flex-wrap: wrap;
  margin: 1.25rem 0 .5rem;
  justify-content: center;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 .5rem;
  background: #1b2838;
  border: 1px solid #2a3f5f;
  border-radius: .3rem;
  color: #96989a;
  text-decoration: none;
  font-size: .82rem;
  transition: background .12s, color .12s, border-color .12s;
}
.page-btn:hover   { background:#2a3f5f; color:#fff; }
.page-btn.active  { background:#2076da; border-color:#2076da; color:#fff; font-weight:700; }
.page-ellipsis    { color:#686868; font-size:.82rem; padding:0 .2rem; }
.page-info        { color:#686868; font-size:.75rem; margin-left:.5rem; }

/* ============================================
   REAL-TIME BADGE PULSE
   ============================================ */
.badge-count.pulse {
  animation: badgePulse .4s ease;
}
@keyframes badgePulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.5); }
  100% { transform: scale(1); }
}

/* ============================================
   2FA SETUP PAGE
   ============================================ */
.totp-qr-wrap {
  text-align: center;
  padding: 1.5rem;
  background: #12202e;
  border-radius: .6rem;
  margin-bottom: 1.25rem;
}
.totp-qr-wrap img { border-radius: .3rem; }
.totp-manual-key {
  background: #0d1520;
  border: 1px solid #2a3f5f;
  border-radius: .4rem;
  padding: .6rem 1rem;
  font-family: monospace;
  font-size: .95rem;
  color: #67c1f5;
  letter-spacing: .1em;
  word-break: break-all;
  text-align: center;
  margin: .75rem 0;
}
.totp-verify-form {
  display: flex;
  gap: .5rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.totp-code-input {
  width: 140px;
  text-align: center;
  font-size: 1.4rem;
  letter-spacing: .25em;
  font-family: monospace;
  padding: .6rem;
  background: #12202e;
  border: 2px solid #2a3f5f;
  border-radius: .4rem;
  color: #fff;
  outline: none;
}
.totp-code-input:focus { border-color: #2076da; }

/* ============================================
   SEARCH PAGE
   ============================================ */
.search-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: flex-end;
  margin-bottom: 1.5rem;
}
.search-filters .form-group { margin: 0; flex: 1; min-width: 140px; }
.search-result-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .85rem;
  background: #1b2838;
  border: 1px solid #2a3f5f;
  border-radius: .5rem;
  margin-bottom: .6rem;
  transition: border-color .12s;
}
.search-result-row:hover { border-color: #2076da; }
.search-result-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.search-result-info { flex: 1; min-width: 0; }
.search-result-name { font-size: 1rem; font-weight: 700; color: #fff; }
.search-result-meta { font-size: .78rem; color: #96989a; margin-top: .15rem; }
.search-result-actions { display: flex; gap: .4rem; flex-shrink: 0; }

/* ============================================
   POINTS SHOP
   ============================================ */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.shop-item-card {
  background: #1b2838;
  border: 1px solid #2a3f5f;
  border-radius: .6rem;
  overflow: hidden;
  transition: border-color .15s, transform .15s;
}
.shop-item-card:hover { border-color: #6f5bd4; transform: translateY(-2px); }
.shop-item-card.owned { border-color: #02b802; }
.shop-item-preview {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, #12202e, #1b2838);
}
.shop-item-body { padding: .85rem; }
.shop-item-name  { font-weight: 700; color: #c6d4df; margin-bottom: .2rem; }
.shop-item-desc  { font-size: .78rem; color: #686868; margin-bottom: .6rem; }
.shop-item-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.shop-item-cost { font-weight: 700; color: #c4b5fd; font-size: .9rem; }
.shop-item-owned-badge { font-size: .75rem; color: #02b802; font-weight: 600; }

@media (max-width: 600px) {
  .search-filters { flex-direction: column; }
  .search-result-row { flex-wrap: wrap; }
}

/* ── Community header alignment fix ── */
.community-header {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.community-header .page-title {
  margin-bottom: .2rem !important;
}
.community-header > a.btn-platform,
.community-header > div + a {
  flex-shrink: 0;
  align-self: center;
}
