@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@300;400;600;700&display=swap');

:root {
  --theme-primary: #008cba;
  --theme-primary-hover: #00a8df;
  --theme-bg-base: #0f1417;
  --theme-bg-surface: #182025;
  --theme-text-main: #e2e8f0;
  --theme-text-muted: #94a3b8;
  --bs-body-bg: var(--theme-bg-base);
  --bs-body-color: var(--theme-text-main);
  --bs-primary: var(--theme-primary);
  --bs-primary-rgb: 0, 140, 186;
  --bs-border-radius: 0.15rem;
  --bs-border-radius-sm: 0.1rem;
  --bs-border-radius-lg: 0.2rem;
  --bs-font-sans-serif: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --bs-body-font-family: var(--bs-font-sans-serif);
}

body {
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
  font-family: var(--bs-body-font-family);
}

.navbar-custom {
  background-color: var(--theme-bg-surface);
  border-bottom: 1px solid rgba(0, 140, 186, 0.2);
}

.navbar-custom .navbar-brand,
.navbar-custom .nav-link {
  color: var(--theme-text-main);
}

.navbar-custom .nav-link:hover {
  color: var(--theme-primary-hover);
}

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

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--theme-primary-hover);
  border-color: var(--theme-primary-hover);
}

.btn-outline-primary {
  color: var(--theme-primary-hover);
  border-color: var(--theme-primary);
}

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

.card {
  background-color: var(--theme-bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.card-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.text-primary {
  color: var(--theme-primary-hover) !important;
}

.text-muted {
  color: var(--theme-text-muted) !important;
}

.navbar-custom .nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.navbar-custom .nav-link::before {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: #00d2ff;
  transition: width 0.3s ease-in-out;
  transform: translateX(-50%);
}

.navbar-custom .nav-link:hover::before {
  width: 100%;
}

.navbar-custom .nav-link:hover {
  color: #00d2ff !important;
}

.custom-search-input {
  width: 275px;
  padding: 0.25rem 0.5rem;
  font-size: 0.9rem;
}

.btn-sm {
  padding: 0.25rem 0.75rem;
  font-size: 0.9rem;
}

.search-wrapper {
  position: relative;
  overflow: visible !important;
}

#search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  z-index: 9999 !important;
  display: none;
  background-color: #212529;
  border: 1px solid #444;
  margin-top: 5px;
  padding: 0;
  list-style: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

#search-dropdown .dropdown-item {
  display: block;
  padding: 8px 12px;
  cursor: pointer;
  color: #fff;
}

#search-dropdown .dropdown-item:hover {
  background-color: #008cba;
}

.navbar-custom-2 {
  background-color: #1e262b;
  border-bottom: 1px solid rgba(0, 140, 186, 0.25);
  padding: 0.2rem 0;
  font-size: 0.85rem;
}

.navbar-custom-2 .nav-link {
  color: #c0c6cc;
  padding: 0.3rem 0.6rem;
  transition: color 0.2s ease;
}

.navbar-custom-2 .nav-link:hover {
  color: #00d2ff;
}

.welcome-banner {
  text-align: left;
  margin-bottom: 2rem;
}

.welcome-banner h1 {
  font-weight: 700;
  letter-spacing: -0.5px;
}

.welcome-banner .lead {
  font-size: 1.25rem;
  max-width: 600px;
}

.bottom-bar-floating {
  background-color: var(--theme-bg-surface);
  border: 1px solid rgba(0, 140, 186, 0.2);
  border-radius: 2px;
  padding: 0.75rem 1.5rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
}

.bottom-bar-floating .brand-content {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--theme-text-main);
  text-decoration: none;
}

.social-link {
  transition: color 0.3s ease;
  color: var(--theme-text-muted);
}

.social-link:hover,
.social-link:hover .text-muted {
  color: #00d2ff !important;
}

.btn {
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1);
  will-change: transform;
}

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

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

.btn-primary:active {
  background-color: #006f94 !important;
  border-color: #006f94 !important;
}

/* ABOVE WAS MADE BY TheBigW below are additions by fone aka mr solar :) */

.vote-button {
  background: none;
  border: none;
  color: var(--theme-text-muted);
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s;
  line-height: 1;
}
.vote-button:hover { color: var(--theme-text-main); }
.vote-button.active { color: var(--theme-primary); }
.vote-button.dislike.active { color: #f87171; }

.game-wrapper {
  position: relative;
}

.game-card {
  border-radius: 0 !important;
  overflow: hidden;
  transition: transform 0.15s ease;
  background-color: #212529 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.game-card img {
  display: block;
}

.game-hover-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;

  margin: 0;
  padding: 8px;

  opacity: 100 !important;

  background: #1a1d20;
  border-left: 1px solid #2d3139;
  border-right: 1px solid #2d3139;
  border-bottom: 1px solid #2d3139;
  border-top: none;

  border-radius: 0 !important;

  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;

  transition: transform 0.08s ease, visibility 0s linear 0.08s;

  z-index: 5;
}

.game-wrapper:hover .game-hover-panel {
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition: transform 0.08s ease, visibility 0s linear 0s;
}

.game-wrapper:hover .game-card {
  transform: translateY(-0.5px);
}

.game-hover-panel span {
  color: #ffffff;
}

.carousel-outer {
  display: flex;
  align-items: stretch;
}

.games-carousel-wrapper {
  position: relative;
  flex: 1;
  min-width: 0;
  clip-path: inset(0 0 -100px 0);
}

.games-carousel {
  display: flex;
  gap: 10px;
  will-change: transform;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.games-carousel-item {
  flex: 0 0 210px;
  min-width: 0;
  position: relative;
}

.carousel-arrow {
  flex-shrink: 0;
  width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  color: #fff;
  background: rgba(10, 14, 18, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0 !important;
  padding: 0;
  transition: background 0.15s;
}

.carousel-arrow:hover {
  background: rgba(0, 140, 186, 0.85);
}

.carousel-arrow.hidden {
  opacity: 0;
  pointer-events: none;
}

.icon-center {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 1.25rem;
  line-height: 1;

  width: 1.5rem;
  height: 1.5rem;

  vertical-align: middle;
}

.price-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  line-height: 1;
}

.price-tag .material-symbols-outlined {
  font-size: 1rem;
  line-height: 1;
}

body {
  overflow-x: hidden;
}

.vote-button {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--theme-text-muted);
  cursor: pointer;
}
.vote-button:focus-visible {
  outline: 2px solid rgba(0, 210, 255, 0.6);
  outline-offset: 2px;
}
.vote-button .material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400;
  transition: font-variation-settings 0.2s ease, color 0.2s ease;
}
.vote-button.active {
  color: var(--theme-primary-hover);
}
.vote-button.dislike.active {
  color: #f87171;
}
.favorite-button.active {
  color: #facc15;
}
.vote-button.active .material-symbols-outlined,
.favorite-button.active .material-symbols-outlined {
  font-variation-settings: 'FILL' 1, 'wght' 500;
}

.page-item {
  color: white;
}

.active {
  color: var(--theme-primary) !important;
}
.notif-row { transition: background .12s; }
.notif-row:hover { background: rgba(255,255,255,.05) !important; }

.grp-slide {
    display: flex;
    align-items: stretch;
    min-height: 130px;
    color: inherit;
}
.grp-slide-icon {
    flex-shrink: 0;
    width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border-right: 1px solid rgba(255,255,255,.07);
}
.grp-slide-info {
    flex: 1;
    padding: 16px 52px 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}
.grp-slide-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.grp-slide-desc {
    font-size: .8rem;
    color: #f59e0b;
    margin-bottom: 8px;
    line-height: 1.4;
}
.grp-slide-divider {
    height: 1px;
    background: rgba(255,255,255,.08);
    margin-bottom: 10px;
}
.grp-slide-stats {
    display: flex;
    gap: 24px;
}
.grp-stat-label {
    font-size: .68rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 2px;
}
.grp-stat-val {
    font-size: .88rem;
    font-weight: 600;
    color: #e5e7eb;
}
.grp-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.15);
    background: rgba(30,33,40,.85);
    color: #fff;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}
.grp-nav-btn:hover { background: rgba(60,65,80,.95); }
.grp-nav-prev { left: 8px; }
.grp-nav-next { right: 8px; }

.av-spin {
    width:40px; height:40px; display:inline-block;
    border:4px solid rgba(255,255,255,.25);
    border-top-color:#008cba;
    border-radius:50%;
    animation:av-spin-kf 0.8s linear infinite;
}
@keyframes av-spin-kf { to { transform:rotate(360deg); } }
.avatar-container { display:flex; flex-direction:column; align-items:center; gap:4px; }
.part { border:2px solid #2d3139; cursor:pointer; transition:transform 0.1s ease, border-color 0.2s; }
.part:hover { transform:scale(1.04); border-color:#008cba; }
.part:active { transform:scale(0.97); }
.head  { width:48px; height:48px; }
.torso { width:96px; height:96px; }
.arm   { width:44px; height:96px; }
.leg   { width:44px; height:96px; }
.middle-section { display:flex; gap:8px; align-items:flex-start; }
.legs-section   { display:flex; gap:6px; }

.wardrobe-item { position:relative; cursor:pointer; }
.wardrobe-item img { width:100%; aspect-ratio:1; object-fit:contain; background:#1a1d20; display:block; border:1px solid #2d3139; }
.wardrobe-item .item-action {
    position:absolute; top:4px; right:4px;
    width:24px; height:24px;
    border-radius:2px; border:none;
    display:flex; align-items:center; justify-content:center;
    font-size:.85rem; line-height:1; cursor:pointer;
    opacity:0; transition:opacity 0.15s;
}
.wardrobe-item:hover .item-action { opacity:1; }
.item-action.wear   { background:#008cba; color:#fff; }
.item-action.unwear { background:#dc3545; color:#fff; }

.cat-link {
    display: block;
    padding: .3rem .5rem;
    font-size: .85rem;
    color: var(--theme-text-muted);
    text-decoration: none;
    border-radius: var(--bs-border-radius);
    transition: background .15s, color .15s;
}

.cat-link:hover {
    background: rgba(0, 140, 186, .12);
    color: #e2e8f0;
}

.cat-link.active {
    background: rgba(0, 140, 186, .18);
    color: #00d2ff;
    font-weight: 600;
}

.cat-group-label {
    font-size: .7rem;
    font-weight: 700;
    color: var(--theme-text-muted);
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .5rem .5rem .2rem;
}

.limited-badge {
    position: absolute;
    bottom: 4px;
    left: 4px;
    height: 24px;
}

.item-field {
    display: flex;
    gap: 1rem;
    padding: .55rem 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
    font-size: .9rem;
}
.item-field:last-child { border-bottom: none; }
.item-field-label {
    width: 100px;
    flex-shrink: 0;
    color: var(--bs-secondary-color);
    padding-top: .1rem;
}
.item-field-value { color: #e2e8f0; flex: 1; }

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.ap {
    font-size: .78rem !important;
    padding: .24rem .6rem !important;
    line-height: 1.5 !important;
    min-width: 4.5rem;
    text-align: center;
    white-space: nowrap !important;
}
.ap:hover, .ap:active { transform: none !important; }
form.ap-form { display: contents; }

.dev-sidebar { width:180px; flex-shrink:0; border-right:1px solid rgba(255,255,255,.07); padding:1rem 0; }
.dev-sidebar-link {
    display:block; padding:.35rem 1.25rem; font-size:.85rem;
    color:var(--bs-secondary-color); text-decoration:none;
    transition:background .12s, color .12s;
    border-left:3px solid transparent;
}
.dev-sidebar-link:hover { background:rgba(255,255,255,.05); color:#e2e8f0; }
.dev-sidebar-link.active { background:rgba(0,140,186,.12); color:#00d2ff; border-left-color:#00d2ff; font-weight:600; }
.limited-badge { position:absolute; bottom:0; left:0; height:16px; }

.inv-grid { display:flex; flex-wrap:wrap; gap:6px; }
.inv-item {
    width:76px; cursor:pointer; border:2px solid transparent;
    border-radius:6px; background:#1b1f23; padding:4px;
    text-align:center; transition:border-color .15s;
    user-select:none;
}
.inv-item:hover { border-color:#4b5563; }
.inv-item.selected { border-color:#3b82f6; background:rgba(59,130,246,.12); }
.inv-item img { width:64px; height:64px; object-fit:contain; display:block; }
.inv-item .serial { font-size:.6rem; color:#6b7280; }
.offer-slot {
    width:80px; height:80px; border:2px dashed #374151; border-radius:6px;
    background:#111418; display:flex; align-items:center; justify-content:center;
    position:relative; flex-shrink:0;
}
.offer-slot.filled { border-style:solid; border-color:#3b82f6; cursor:pointer; }
.offer-slot img { width:100%; height:100%; object-fit:contain; border-radius:4px; }
.offer-slot .rm { position:absolute; top:-7px; right:-7px; width:18px; height:18px;
    background:#ef4444; border-radius:50%; font-size:.7rem; color:#fff;
    display:flex; align-items:center; justify-content:center; line-height:1; }
.inv-scroll { max-height:340px; overflow-y:auto; }

.group-tab-link { color: #adb5bd; text-decoration: none; padding: .45rem .9rem; border-bottom: 2px solid transparent; font-size: .9rem; display: inline-block; }
.group-tab-link:hover { color: #fff; }
.group-tab-link.active { color: #fff; border-bottom-color: var(--bs-primary); font-weight: 600; }
.shout-box { background: #1a1d20; border: 1px solid #2d3139; border-radius: 2px; }
.group-icon { border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; }
.member-row:not(:last-child) { border-bottom: 1px solid #2d3139; }

.manage-sidebar { border-right: 1px solid rgba(255,255,255,.07); padding: .5rem 0; }
.manage-sidebar-link {
    display: flex; align-items: center; gap: .6rem;
    padding: .5rem 1rem; color: #9ca3af; text-decoration: none;
    font-size: .88rem; border-left: 2px solid transparent;
    transition: background .12s, color .12s;
}
.manage-sidebar-link:hover { background: rgba(255,255,255,.05); color: #e2e8f0; }
.manage-sidebar-link.active { background: rgba(0,140,186,.12); color: #00d2ff !important; border-left-color: #00d2ff; font-weight: 600; }
.manage-sidebar-link .material-symbols-outlined { font-size: 1.05rem; line-height: 1; }
