
/* ==================================
   ADVANCED PLAYER DASHBOARD
================================== */

.dashboard {
  width: 100%;
  max-width: 1450px;
  min-height: 750px;
  display: grid;
  grid-template-columns: 265px minmax(0, 1fr);
  margin: auto;
  background: #0d1427;
  border: 1px solid #293957;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 70px rgba(0,0,0,.4);
}

/* SIDEBAR */

.sidebar {
  background: #0d1729;
  border-right: 1px solid #293d5d;
  padding: 25px 16px;
  display: flex;
  flex-direction: column;
}

.side-brand {
  font-size: 25px;
  font-weight: 900;
  padding: 5px 12px 30px;
  letter-spacing: 2px;
}

.side-brand span {
  color: #a58aff;
  font-size: 12px;
  display: block;
  margin-top: 5px;
  letter-spacing: 3px;
}

.side-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 10px;
  background: #1a2540;
  border-radius: 12px;
  margin-bottom: 30px;
  overflow: hidden;
}

.side-user strong {
  display: block;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.side-user small {
  display: block;
  color: #9ba8c1;
  font-size: 10px;
  margin-top: 6px;
}

.avatar {
  width: 43px;
  height: 43px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #7957f6, #bd70ff);
  color: white;
  font-size: 20px;
  font-weight: 900;
}

.avatar.large {
  width: 80px;
  height: 80px;
  font-size: 32px;
}

.side-label {
  color: #8392af;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 2px;
  padding: 0 12px;
  margin-bottom: 12px;
}

.nav-item {
  width: 100%;
  min-height: 49px;
  margin: 4px 0;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 13px;
  background: transparent;
  color: #aab5cb;
  border: 1px solid transparent;
  border-radius: 9px;
  text-align: left;
  font-size: 14px;
  letter-spacing: 0;
}

.nav-item span {
  font-size: 20px;
  color: #a58aff;
}

.nav-item:hover,
.nav-item.active {
  background: #252449;
  color: white;
  border-color: #49417b;
  transform: none;
}

.side-bottom {
  margin-top: auto;
  padding-top: 30px;
}

.logout-button {
  background: #39202e;
  border: 1px solid #74364f;
  color: #ff8da8;
}

/* MAIN AREA */

.dashboard-main {
  min-width: 0;
  padding: 30px;
  background:
    radial-gradient(ellipse at top right, #20204a, transparent 55%),
    #0d1427;
}

.dashboard-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.dashboard-top .tag {
  margin-bottom: 8px;
}

.dashboard-top h2 {
  font-size: 29px;
}

.online-tag {
  color: #36dc91;
  background: #13342c;
  padding: 10px 15px;
  border-radius: 20px;
  font-size: 12px;
  white-space: nowrap;
}

.dashboard-section {
  width: 100%;
}

/* WELCOME */

.welcome-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 32px;
  min-height: 195px;
  background: linear-gradient(115deg, #30245f, #172748);
  border: 1px solid #55488e;
  border-radius: 16px;
  overflow: hidden;
}

.welcome-card .tag {
  margin-bottom: 12px;
}

.welcome-card .welcome-greeting {
  font-size: clamp(27px, 4vw, 44px);
  overflow-wrap: anywhere;
}

.welcome-card p:not(.tag, .welcome-greeting) {
  color: #c1c9dc;
  margin-top: 10px;
}

.welcome-symbol {
  font-size: clamp(35px, 6vw, 65px);
  font-weight: 900;
  color: rgba(255,255,255,.13);
  flex-shrink: 0;
}

/* STAT CARDS */

.section-heading {
  margin: 30px 0 16px;
  font-size: 16px;
  letter-spacing: 1px;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.dashboard-stat {
  min-width: 0;
  padding: 23px;
  background: #17223a;
  border: 1px solid #30415f;
  border-radius: 13px;
}

.dashboard-stat span {
  display: block;
  color: #9eacc7;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1px;
}

.dashboard-stat strong {
  display: block;
  color: #a58aff;
  font-size: 32px;
  margin: 12px 0;
  overflow-wrap: anywhere;
}

.dashboard-stat small {
  color: #8795b0;
  font-size: 12px;
}

/* CONTENT GRID */

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.content-card {
  min-width: 0;
  padding: 27px;
  background: #151f35;
  border: 1px solid #30415f;
  border-radius: 14px;
  overflow-wrap: anywhere;
}

.content-card h2,
.content-card h3 {
  margin-bottom: 15px;
}

.content-card > p {
  color: #aab5cb;
  margin: 12px 0;
  line-height: 1.6;
}

.content-card button {
  margin-top: 15px;
}

.content-card .secondary {
  background: #27334e;
}

/* PROFILE */

.profile-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 30px;
}

.profile-header h2 {
  margin: 0;
}

.profile-header p {
  color: #aab5cb;
  margin-top: 7px;
}

.profile-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 17px 0;
  border-bottom: 1px solid #293957;
}

.profile-row span {
  color: #9ba8c1;
}

.profile-row strong {
  text-align: right;
  overflow-wrap: anywhere;
}

/* COMING SOON */

.coming-card {
  margin-top: 25px;
  padding: 35px 20px;
  background: linear-gradient(130deg, #29224e, #17233c);
  border: 1px solid #5c4b91;
  border-radius: 13px;
  text-align: center;
}

.coming-card h2 {
  font-size: 25px;
}

.coming-card span,
.coming-label {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 17px;
  color: #d0b9ff;
  background: #35265b;
  border: 1px solid #66519b;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1px;
}

/* FOOTER */

.dashboard-footer {
  padding-top: 35px;
  margin-top: 35px;
  border-top: 1px solid #293957;
  text-align: center;
  color: #8190aa;
  font-size: 12px;
}

/* RESPONSIVE */

@media(max-width: 900px) {
  .dashboard {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .dashboard-main {
    padding: 22px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media(max-width: 650px) {
  .container {
    padding: 15px 8px;
  }

  .dashboard {
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-radius: 12px;
  }

  .sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 15px;
    border-right: none;
    border-bottom: 1px solid #293957;
  }

  .sidebar > .side-brand,
  .sidebar > .side-user,
  .sidebar > .side-label,
  .sidebar > .side-bottom {
    grid-column: 1 / -1;
  }

  .side-brand {
    padding-bottom: 8px;
  }

  .side-user {
    margin-bottom: 0;
  }

  .side-label {
    margin: 0;
  }

  .sidebar .nav-item {
    display: inline-flex;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    margin: 0;
    vertical-align: top;
    font-size: 12px;
    padding: 10px 8px;
    gap: 8px;
  }

  .sidebar > .nav-item:last-of-type {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, calc((100% - 8px) / 2));
  }

  .side-bottom {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 0;
    padding-top: 8px;
  }

  .side-bottom > .nav-item,
  .side-bottom > .logout-button {
    width: 100%;
    min-height: 48px;
    margin: 0;
  }

  .dashboard-main {
    padding: 18px 13px;
  }

  .dashboard-stats {
    grid-template-columns: 1fr;
  }

  .dashboard-stat {
    padding: 18px;
  }

  .welcome-card {
    padding: 23px 17px;
  }

  .welcome-symbol {
    display: none;
  }

  .dashboard-top h2 {
    font-size: 23px;
  }

  .content-card {
    padding: 20px;
  }

  .profile-row {
    flex-direction: column;
    gap: 7px;
  }

  .profile-row strong {
    text-align: left;
  }
}

/* GLOBAL VISIBILITY FIX */

.hidden {
  display: none !important;
}

/* GLOBAL TEXT FIX */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #080d19;
  color: #f1f5ff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  color: #ffffff;
  font-family: inherit;
}

p, span, label, small {
  color: inherit;
}

input {
  width: 100%;
  padding: 15px;
  margin: 0;
  font-family: inherit;
  border: 1px solid #394969;
  border-radius: 9px;
  background: #101a30;
  color: white;
  font-size: 15px;
}

input::placeholder {
  color: #aab6cd;
}

button {
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 14px 18px;
  border-radius: 9px;
  border: 1px solid #7463d8;
  background: linear-gradient(120deg, #6554d9, #397bdc);
  color: white;
}

button:hover {
  filter: brightness(1.15);
}

button.secondary {
  background: #202d49;
  border-color: #465779;
  color: white;
}

a {
  color: #a995ff;
}

.text-link {
  display: inline;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #a995ff;
  font: inherit;
  text-align: inherit;
  text-decoration: underline;
  vertical-align: baseline;
}

.text-link:hover {
  transform: none;
  filter: none;
}

.panel {
  color: white;
}

.panel.hidden,
.dashboard.hidden,
.dashboard-section.hidden {
  display: none !important;
}
