:root {
  --bg-main: #05060f;
  --bg-card: rgba(18, 22, 55, 0.95);
  --bg-card-soft: rgba(22, 27, 75, 0.9);
  --border-soft: rgba(255, 255, 255, 0.08);
  --text-main: #f9fafb;
  --text-muted: #c7d2fe;
  --text-soft: #9ca3af;
  --primary: #1f6fff;
}

body {
  background: radial-gradient(900px at 50% -400px, #25306a, transparent), var(--bg-main);
  color: var(--text-main);
  font-family: "Lexend", sans-serif;
}

a {
  color: #8ab4ff;
  text-decoration: none;
}

a:hover {
  color: #a5c7ff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  letter-spacing: -0.01em;
}

.page-header h1 {
  font-weight: 600;
}

.featured h2 {
  font-weight: 600;
  line-height: 1.35;
}

.post h5 {
  font-weight: 500;
}

p {
  line-height: 1.6;
}

.navbar-brand {
  font-weight: 600;
}

.navbar {
  padding-right: 14px;
}

.navbar-toggler {
  margin-right: 4px;
}

.nav-glass {
  background: rgba(8, 10, 30, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}

.navbar-brand,
.nav-link {
  color: #e5e7eb !important;
}

.nav-link.active {
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  color: #e5e7eb !important;
  padding: 6px 14px;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.page-header {
  padding: 130px 0 45px;
}

.page-header .header-slides ~ * {
  position: relative;
  z-index: 2;
}
.page-header h1 {
  font-size: 32px;
  font-weight: 600;
}

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 25px 50px rgba(0, 0, 0, 0.6);
}

.card-body {
  padding: 22px;
}

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

.featured img {
  height: 300px;
  object-fit: cover;
}

.featured h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-main);
}

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

.post img {
  height: 170px;
  object-fit: cover;
}

.post h5 {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-main);
}

.post p {
  font-size: 14px;
  color: var(--text-muted);
}

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 12px;
  color: #fff;
  margin-bottom: 8px;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

.badge-featured {
  background: #3b82f6 !important;
}

.badge-news {
  background: #3b82f6 !important;
}

.badge-event {
  background: #10b981 !important;
}

.badge-patch {
  background: #f59e0b !important;
}

.badge-announcement {
  background: #ef4444 !important;
}

.btn-read {
  display: inline-block;
  margin-top: 12px;
  color: #93c5fd;
}

.post,
.featured {
  overflow: hidden;
}

.post img {
  height: 250px;
}

.post h5 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

.post p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.post a {
  font-size: 14px;
  color: #93c5fd;
}

.sidebar {
  background: linear-gradient(180deg, #1c2358, #0c102b);
}

.sidebar h5,
.sidebar h6 {
  color: var(--text-main);
  font-weight: 600;
}

.sidebar p {
  color: var(--text-muted);
  opacity: 0.95;
}

.sidebar .btn-primary {
  background: linear-gradient(180deg, #1f6fff, #1557d6);
  border: none;
  color: #fff;
  box-shadow: 0 8px 30px rgba(31, 111, 255, 0.45);
}

.sidebar .btn-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: #fff;
}

.sidebar .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
}

.server {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.server span:first-child {
  color: #e5e7eb;
  font-weight: 500;
  font-size: 14px;
}

.server span:first-child {
  text-shadow: 0 0 6px rgba(138, 180, 255, 0.25);
}

.footer {
  margin-top: 80px;
  padding: 40px 0;
  background: rgba(8, 10, 30, 0.75);
  border-top: 1px solid var(--border-soft);
}

.footer strong {
  color: var(--text-main);
}

.footer p,
.footer div {
  color: var(--text-soft);
  font-size: 14px;
}

@media (max-width: 991px) {
  .content .col-lg-4 {
    margin-top: 32px;
  }
}

@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(8, 10, 30, 0.95);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    padding: 16px;
    margin-top: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
    padding-left: 0;
    padding-right: 0;
  }

  .navbar-nav {
    padding-left: 18px;
    padding-right: 18px;
  }

  .navbar-nav .nav-link {
    padding: 10px 6px;
  }
}

.dropdown-glass {
  background: rgba(14, 18, 45, 0.95);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.dropdown-glass .dropdown-item {
  color: #e5e7eb;
  border-radius: 10px;
  padding: 8px 12px;
}

.cart-table {
  background: transparent;
  color: var(--text-main);
}

.cart-table th {
  background: transparent;
  vertical-align: middle;
}

.cart-table td {
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.cart-product {
  padding: 6px 8px;
  gap: 8px;
  align-items: center;
  display: flex;
}

.cart-product img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.dropdown-glass .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

#cart-total {
  color: var(--text-main) !important;
}

.card .text-end > .small.text-mute {
  color: var(--text-main) !important;
  font-weight: 600;
}

.cart-footer {
  min-height: 48px;
}

.cart-total-box {
  background: var(--bg-card-soft);
  padding: 8px 12px;
  border-radius: 10px;
  min-width: 140px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.cart-total-box .h5 {
  color: var(--text-main) !important;
}

.cart-total-box .text-mute {
  color: var(--text-muted) !important;
}

@media (max-width: 575.98px) {
  .cart-footer {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px;
  }

  .cart-footer a.btn,
  .cart-footer button.btn {
    width: 100% !important;
  }

  .cart-footer-right {
    align-items: stretch !important;
    flex-direction: column !important;
  }

  .cart-total-box {
    width: 100%;
    text-align: left;
    margin-bottom: 6px;
  }
}

[data-cart-dropdown] {
  min-width: 280px !important;
  max-width: 350px;
}

[data-cart-dropdown] .cart-dropdown-item {
  background: var(--bg-card-soft);
  border-radius: 8px;
  margin: 6px 12px;
  list-style: none;
}

[data-cart-dropdown] .cart-dropdown-item:hover {
  background: var(--bg-card);
}

[data-cart-dropdown] .cart-dropdown-item img {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
  padding: 5px;
}

[data-cart-dropdown] .cart-dropdown-item .text-truncate {
  color: var(--text-main) !important;
  font-weight: 600;
}

[data-cart-dropdown] .cart-dropdown-item .small {
  color: var(--text-muted) !important;
}

[data-cart-dropdown] .cart-dropdown-item strong {
  color: var(--text-main) !important;
}

[data-cart-dropdown] .btn {
  font-size: 12px;
}

.cart-table th,
.cart-table td,
.cart-table .price,
.cart-table .subtotal,
.cart-table .wallet-label {
  color: var(--text-main) !important;
}

.cart-table .text-mute {
  color: var(--text-muted) !important;
}

.cart-table input.form-control {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-main) !important;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.cart-table .btn-outline-danger {
  color: #ffb4b4;
  border-color: rgba(255, 255, 255, 0.06);
}

.server-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 12px;
  border-radius: 12px;
}

.server-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.server-name {
  font-weight: 600;
  color: #e5e7eb;
  font-size: 14px;
}

.status {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  text-align: center;
}

.status.online {
  background: linear-gradient(180deg, #22c55e, #16a34a);
  color: #fff;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.6);
}

.status.offline {
  background: linear-gradient(180deg, #e11d48, #b91c1c);
  color: #fff;
  box-shadow: 0 0 12px rgba(225, 29, 72, 0.6);
}

.server-details {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #c7d2fe;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 8px;
  border-radius: 8px;
}

.server-details strong {
  color: #fff;
}

.server-switcher {
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.server-btn {
  background: var(--bg-card-soft);
  color: var(--text-main);
  border: 1px solid var(--border-soft);
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.server-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.server-btn.active {
  background: var(--primary);
  color: #fff !important;
  border-color: var(--primary);
  box-shadow: 0 0 6px rgba(31, 111, 255, 0.5);
}

.castle-owner {
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guild-logo {
  width: 60px !important;
  height: 60px !important;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
  margin-right: 10px;
}

.castle-owner span.text-muted {
  font-size: 12px;
  color: #c7d2fe !important;
  font-weight: 500;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
  display: block;
  text-align: left;
}

.castle-owner h6 {
  margin: 0;
  color: #f9fafb;
  font-weight: 600;
}

.castle-countdown {
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 14px;
  color: #f9fafb;
  text-align: center;
  letter-spacing: 0.5px;
}

#cs-countdown {
  font-size: 16px;
  color: #22c55e;
  margin-top: 4px;
}

.event-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.event-name {
  font-weight: 600;
  color: #e5e7eb;
  font-size: 14px;
}

.timer {
  font-weight: 600;
  color: #facc15;
  font-size: 13px;
}

.ranking-table {
  font-size: 13px;
  color: var(--text-main);
}

.ranking-header {
  font-weight: 600;
  color: #facc15;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 6px;
  margin-bottom: 6px;
}

.ranking-row {
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ranking-row:last-child {
  border-bottom: none;
}

.ranking-row span {
  flex: 1;
  text-align: center;
}

.ranking-header span {
  flex: 1;
  text-align: center;
}

.download-card,
.shopping-cart {
  background: var(--bg-card-soft);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 12px 16px;
  transition: transform 0.2s ease;
}

.download-card:hover,
.shopping-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(31, 111, 255, 0.3);
}

.file-name {
  font-weight: 600;
  color: #f9fafb;
  margin-bottom: 4px;
}

.file-info {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 6px;
}

.badge.file-type {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 2px 6px;
  border-radius: 10px;
  color: #fff;
  margin-right: 6px;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
}

.badge.client {
  background: #3b82f6;
}

.badge.patch {
  background: #f59e0b;
}

.badge.hotfix {
  background: #ef4444;
}

.badge.tools {
  background: #10b981;
}

.card .form-control,
.card .form-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f9fafb;
}

.card .form-control::placeholder {
  color: var(--text-muted);
}

#player-search {
  background: rgba(31, 35, 75, 0.95);
  color: #f9fafb;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 6px 12px;
}

#player-search::placeholder {
  color: #c7d2fe;
}

#player-search:focus {
  outline: none;
  box-shadow: 0 0 10px rgba(31, 111, 255, 0.5);
}

label[for="ranking-select"] {
  color: #f9fafb !important;
  font-weight: 600;
  font-size: 14px;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}

.main-rankings .ranking-table .ranking-row-main {
  background: var(--bg-card-soft);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  margin-bottom: 8px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.main-rankings .ranking-table .ranking-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(31, 111, 255, 0.25);
}

.main-rankings .ranking-row-main .rank-number {
  font-weight: 600;
  width: 28px;
  text-align: center;
  color: #f59e0b;
}

.main-rankings .ranking-row-main .guild-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  object-fit: cover;
}

.main-rankings .ranking-row-main .player-name {
  color: #f9fafb;
  font-weight: 500;
}

.main-rankings .ranking-row-main small {
  color: #c7d2fe !important;
}

.main-rankings .ranking-row-main .player-stats {
  display: flex;
  gap: 10px;
  align-items: center;
}

.main-rankings .ranking-row-main .player-stats .stat {
  flex: 1;
  text-align: center;
  font-weight: 600;
  font-size: 13px;
  color: #c7d2fe;
  min-width: 82px;
}

.main-rankings .ranking-row-main .status.online {
  background: linear-gradient(180deg, #22c55e, #16a34a);
  color: #052e16;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.main-rankings .ranking-row-main .status.offline {
  background: linear-gradient(180deg, #ef4444, #b91c1c);
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.ranking-filters {
  background: var(--bg-card-soft);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 12px;
}

#player-search {
  background: rgba(10, 14, 40, 0.7);
  border: 1px solid rgba(138, 180, 255, 0.2);
  color: #f9fafb;
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 14px;
  min-width: 150px;
}

.filter-select {
  background: rgba(10, 14, 40, 0.7);
  border: 1px solid rgba(138, 180, 255, 0.2);
  color: #f9fafb;
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 14px;
  min-width: 150px;
}

.filter-select option {
  background: #161b4b;
  color: #f9fafb;
}

.filter-select:focus {
  outline: none;
  box-shadow: 0 0 10px rgba(31, 111, 255, 0.5);
}

@media (max-width: 576px) {
  .main-rankings .ranking-row-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .main-rankings .ranking-row-main .player-stats {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
  }

  .main-rankings .ranking-row-main .player-stats .stat {
    flex: 0 0 auto;
    min-width: auto;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-size: 12px;
  }

  .main-rankings .ranking-row-main .status {
    margin-left: auto;
    font-size: 11px;
    padding: 4px 10px;
  }

  .main-rankings .ranking-row-main .player-name {
    font-size: 14px;
  }

  .main-rankings .ranking-row-main .rank-number {
    font-size: 14px;
  }
}

.badge.vip {
  background: linear-gradient(180deg, #facc15, #eab308);
  color: #05060f;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 0 6px rgba(250, 204, 21, 0.5);
}

.bg-darkglass {
  background: rgba(18, 22, 55, 0.95);
  backdrop-filter: blur(14px);
  border-radius: 14px;
  color: #f9fafb;
  border: 1px solid rgba(138, 180, 255, 0.25);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.modal-title {
  width: 100%;
  text-align: center;
  font-weight: 600;
  font-size: 20px;
}

.modal-content .form-control {
  background: rgba(31, 35, 75, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f9fafb;
  border-radius: 8px;
}

.modal-content .form-control::placeholder {
  color: #c7d2fe;
}

.modal-content .form-control:focus {
  outline: none;
  box-shadow: 0 0 8px rgba(31, 111, 255, 0.5);
}

.modal-content .btn-primary {
  background: linear-gradient(180deg, #1f6fff, #1557d6);
  border: none;
}

.modal-content a {
  color: #93c5fd;
}

.modal-content a:hover {
  color: #a5c7ff;
}

.account-card {
  background: var(--bg-card-soft);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(31, 111, 255, 0.2);
  color: #f9fafb;
}

.icon-circle {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-right: 0.75rem;
}

.badge-status {
  font-size: 0.6rem;
  padding: 0.35em 0.6em;
}

.btn-clean {
  border-radius: 0.375rem;
  box-shadow: none !important;
  text-shadow: none;
}

.char-icon {
  border-radius: 8px;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.character-card {
  display: flex;
  flex-direction: row;
  align-items: start;
  padding: 12px;
  background: var(--bg-card-soft);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  margin-bottom: 10px;
}

.character-card .char-info {
  margin-left: 10px;
  flex: 1;
}

.character-card h6 {
  margin-bottom: 4px;
}

.character-card .stats {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
}

.character-card .stats span {
  font-size: 12px;
  color: #c7d2fe;
}

.btn-outline-primary {
  border-color: #1f6fff;
  color: #1f6fff;
  background-color: transparent;
}

.btn-outline-primary:hover {
  background-color: #1f6fff;
  color: white;
}

.btn-outline-danger {
  border-color: #dc3545;
  color: #dc3545;
  background-color: transparent;
}

.btn-outline-danger:hover {
  background-color: #dc3545;
  color: white;
}

.btn-outline-success {
  border-color: #28a745;
  color: #28a745;
  background-color: transparent;
}

.btn-outline-success:hover {
  background-color: #28a745;
  color: white;
}

.wallet-label {
  color: #c7d2fe;
  font-size: 0.85rem;
}

.wallet-value {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
}

.sys-card {
  background: var(--bg-card-soft);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  overflow: hidden;
}

.sys-card .list-group-item {
  background: transparent;
  color: #f9fafb;
  padding: 20px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.sys-card .list-group-item:last-child {
  border-bottom: none;
}

.sys-card .header-min,
.sys-card .header-rec {
  font-weight: 600;
  background: rgba(31, 111, 255, 0.1);
  text-align: center;
  font-size: 1.1rem;
}

.title {
  font-weight: 600;
  margin-bottom: 20px;
  color: #f9fafb !important;
}

.register-card h5 {
  color: #f9fafb;
  font-weight: 600;
}

.register-card .form-label {
  color: #cfd8ff;
  font-size: 0.9rem;
  font-weight: 500;
}

.register-card .form-control,
.register-card .form-select {
  background: rgba(10, 14, 40, 0.7);
  border: 1px solid rgba(138, 180, 255, 0.2);
  color: #f9fafb;
}

.register-card .form-control::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.register-card .form-control:focus,
.register-card .form-select:focus {
  background: rgba(10, 14, 40, 0.9);
  border-color: #8ab4ff;
  box-shadow: none;
  color: #fff;
}

.register-card .form-check-label {
  color: #cfd8ff;
  font-size: 0.85rem;
  cursor: pointer;
}

.register-card .form-check-input {
  background-color: rgba(10, 14, 40, 0.8);
  border: 1px solid rgba(138, 180, 255, 0.35);
}

.register-card .form-check-input:checked {
  background-color: #8ab4ff;
  border-color: #8ab4ff;
}

.register-card .form-check-input:focus {
  box-shadow: none;
  border-color: #8ab4ff;
}

.register-card .form-check-label a {
  color: #8ab4ff;
  text-decoration: none;
  font-weight: 500;
}

.register-card .form-check-label a:hover {
  text-decoration: underline;
}

.register-card .cf-turnstile-wrapper {
  display: flex;
  justify-content: center;
}

.register-card .cf-turnstile {
  padding: 12px;
}

.page-header .container-xl {
  gap: 20px;
}

.server-countdown {
  display: inline-block;
  background: rgba(18, 22, 55, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px 24px;
  backdrop-filter: blur(12px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  min-width: 220px;
}

.countdown-title {
  font-size: 11px;
  font-weight: 600;
  color: #8ab4ff;
  margin-bottom: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
}

.countdown-timer {
  display: flex;
  gap: 0;
  justify-content: center;
  align-items: center;
}

.time-box {
  flex: 1;
  background: transparent;
  border-radius: 0;
  padding: 0 10px;
  text-align: center;
  position: relative;
}

.time-box + .time-box::before {
  content: ':';
  position: absolute;
  left: -4px;
  top: 50%;
  transform: translateY(-60%);
  font-size: 22px;
  font-weight: 700;
  color: #4b5563;
}
.time-box span {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: #f9fafb;
  line-height: 1;
}

.time-box small {
  font-size: 11px;
  color: #c7d2fe;
  margin-top: 6px;
  display: block;
  letter-spacing: 1px;
  text-transform: uppercase;
}

@media (max-width: 991px) {
  .page-header .container-xl {
    flex-direction: column;
    align-items: center;
  }

  .server-countdown {
    margin-left: 0;
    margin-top: 15px;
  }
}

.payment-option {
  border: 2px solid var(--border-soft);
  border-radius: 0.75rem;
  padding: 1rem 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.payment-option:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(31, 111, 255, 0.2);
}

.payment-option.selected {
  border-color: var(--primary);
  background: rgba(31, 111, 255, 0.15);
  box-shadow: 0 0 20px rgba(31, 111, 255, 0.3);
}

.payment-option .payment-logo {
  max-width: 100%;
  width: auto;
  height: 50px;
  object-fit: contain;
  filter: brightness(1.1) contrast(1.1);
}

.payment-option p {
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

#order-items .small {
  color: var(--text-main) !important;
}

#order-items strong {
  color: var(--text-main) !important;
}

#order-items .text-muted {
  color: var(--text-muted) !important;
}

.d-flex .text-mute {
  color: var(--text-muted) !important;
}

#subtotal,
#shipping,
#tax,
#order-total {
  color: var(--text-main) !important;
}

.form-check-label {
  color: var(--text-main) !important;
}

.form-check-label a {
  color: #8ab4ff;
}

.form-check-label a:hover {
  color: #a5c7ff;
}

.card.sidebar h5 {
  color: var(--text-main);
}

.card h5 {
  color: var(--text-main) !important;
}

.card p {
  color: var(--text-main);
}

#payment-methods {
  color: var(--text-main);
}

.currency-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.currency-selector .form-select {
  background-color: var(--bg-card-soft);
  border-color: var(--border-soft);
  color: var(--text-main);
}

.currency-selector .form-select option {
  background-color: #0a0d1a;
  color: var(--text-main);
}

.currency-selector .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(31, 111, 255, 0.25);
}

.product-card {
  background: var(--bg-card-soft);
  border: 1px solid var(--border-soft);
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 12px 24px rgba(31, 111, 255, 0.15);
}

.product-card img {
  max-height: 180px;
  object-fit: contain;
  background: rgba(31, 111, 255, 0.05);
}

.product-card .card-title {
  color: var(--text-main);
  font-weight: 600;
  font-size: 1rem;
}

.product-card .card-text {
  color: var(--text-muted) !important;
  font-size: 0.85rem;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-display {
  font-size: 1.25rem;
  color: var(--primary);
}

.product-card .btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.product-card .btn-primary:hover {
  background-color: #1557cc;
  border-color: #1557cc;
}

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

.category-list .form-check {
  display: flex;
  align-items: center;
}

.category-list .form-check-input {
  background-color: var(--bg-main);
  border-color: var(--border-soft);
  cursor: pointer;
}

.category-list .form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.category-list .form-check-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(31, 111, 255, 0.25);
}

.category-list .form-check-label {
  cursor: pointer;
  margin-bottom: 0;
  color: var(--text-main);
  font-size: 0.95rem;
  user-select: none;
  padding-left: 5px;
}

.mystery-box-card {
  background: radial-gradient(circle at top, #1f2a6d, #070a1e);
  border-radius: 22px;
  padding: 40px 30px;
}

.mystery-title {
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.mystery-keys-display {
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.keys-info {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card-soft);
  padding: 12px 24px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
}

.key-icon {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 8px rgba(250, 204, 21, 0.6));
}

.keys-amount {
  font-size: 24px;
  font-weight: 700;
  color: #facc15;
  text-shadow: 0 0 10px rgba(250, 204, 21, 0.5);
}

.keys-label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.btn-purchase-keys {
  padding: 10px 20px;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(31, 111, 255, 0.4);
}

.btn-purchase-keys:hover {
  box-shadow: 0 0 30px rgba(31, 111, 255, 0.6);
  transform: translateY(-2px);
}

.mystery-chest-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mystery-chest {
  max-width: 260px;
  filter: drop-shadow(0 0 30px rgba(138, 180, 255, 0.4));
  transition: transform 0.3s ease;
}

.mystery-chest:hover {
  transform: scale(1.05);
}

.mystery-open-btn {
  padding: 10px 28px;
  font-weight: 600;
  box-shadow: 0 0 25px rgba(31, 111, 255, 0.5);
}

.mystery-spinner {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  background: rgba(10, 14, 40, 0.8);
  width: 100%;
}

.spinner-track,
.spinner-track-last {
  display: flex;
  gap: 16px;
  padding: 22px 8px;
  will-change: transform;
}

.spinner-track.running {
  animation: spinInfinite linear infinite;
}

@keyframes spinInfinite {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.spinner-item,
.reward-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  min-height: 120px;
  background: var(--bg-card-soft);
  border-radius: 12px;
  padding: 16px;
  font-weight: 600;
  text-align: center;
  color: var(--text-main);
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.05);
}

.spinner-item.win {
  box-shadow: 0 0 30px rgba(250, 204, 21, 0.9);
  transform: scale(1.06);
  z-index: 5;
}

.spinner-item.gold {
  color: #facc15;
}

.spinner-item.vip {
  color: #22c55e;
}

.spinner-item.danger {
  color: #ef4444;
}

.spinner-pointer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: #facc15;
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.9);
  z-index: 10;
}

.spinner-item img.spinner-img,
.reward-item img.reward-img {
  width: 50px;
  height: 50px;

  margin-bottom: 8px;
}

.spinner-item span,
.reward-item span {
  display: block;
}

.spinner-item span,
.reward-item span {
  display: block;
  font-weight: 600;
  text-align: center;
  color: var(--text-main);
}

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

.reward-chance {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-soft);
  opacity: 0.8;
}

.reward-item.gold {
  color: #facc15;
}

.reward-item.vip {
  color: #22c55e;
}

.reward-item.danger {
  color: #ef4444;
}

.possible-rewards h6 {
  color: #f9fafb;
  font-weight: 600;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
  font-size: 16px;
}

.guides-menu li {
  margin-bottom: 6px;
}

.guides-menu .dropdown-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--bg-card-soft);
  border-radius: 6px;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.guides-menu .dropdown-toggle:hover {
  background: var(--primary);
  color: #fff;
}

.guides-menu .dropdown-toggle::after {
  content: "\f282";
  font-family: "bootstrap-icons";
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

.guides-menu .dropdown-toggle.active::after {
  transform: rotate(90deg);
}

.gdropdown {
  display: none;
  padding-left: 12px;
  margin-top: 6px;
}

.gdropdown a {
  display: block;
  padding: 6px 10px;
  border-radius: 4px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.gdropdown a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--primary);
}

.news-carousel-section {
  padding: 40px 0 40px;
  position: relative;
}
.carousel-heading {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 20px;
}
.news-carousel-wrap {
  position: relative;
}
.news-carousel-track-outer {
  overflow: hidden;
  border-radius: 16px;
}
.news-carousel-track {
  display: flex;
  gap: 16px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.news-card {
  flex: 0 0 calc(33.333% - 11px);
  min-width: calc(33.333% - 11px);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  height: 320px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}
.news-card-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 7s ease;
}
.news-card:hover .news-card-img {
  transform: scale(1.06);
}
.news-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.88) 0%,
    rgba(0,0,0,0.45) 50%,
    rgba(0,0,0,0.15) 100%
  );
}
.news-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
}
.news-card-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 3px 9px;
  border-radius: 10px;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.news-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.3;
}
.news-card-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin: 0;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card.featured {
  flex: 0 0 calc(50% - 8px);
  min-width: calc(50% - 8px);
  height: 360px;
}
.news-card.featured .news-card-title {
  font-size: 22px;
}
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
}
.carousel-dots {
  display: flex;
  gap: 7px;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}
.carousel-dot.active {
  background: #1f6fff;
  width: 24px;
  border-radius: 4px;
}
.carousel-arrows {
  display: flex;
  gap: 8px;
}
.carousel-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 15px;
}
.carousel-arrow:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.25);
}
.carousel-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}
@media (max-width: 991px) {
  .news-card {
    flex: 0 0 calc(50% - 8px);
    min-width: calc(50% - 8px);
  }
  .news-card.featured {
    flex: 0 0 calc(80% - 8px);
    min-width: calc(80% - 8px);
  }
}
@media (max-width: 576px) {
  .news-card,
  .news-card.featured {
    flex: 0 0 calc(90% - 8px);
    min-width: calc(90% - 8px);
    height: 260px;
  }
}