.app-shell {
  min-height: 100vh;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 80% 0%, rgba(139,92,246,0.25), transparent 18%),
    radial-gradient(circle at 10% 10%, rgba(201,255,87,0.08), transparent 18%),
    #0d0f14;
  color: #f5f7fb;
  font-family: 'DM Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea {
  font: inherit;
}
button {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
a { color: inherit; text-decoration: none; }
input, select, textarea {
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  color: #f5f7fb;
  outline: none;
}
input::placeholder, textarea::placeholder { color: rgba(255,255,255,0.4); }
input:focus, select:focus, textarea:focus {
  border-color: rgba(167,139,250,0.9);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.14);
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 8;
  width: 248px;
  padding: 24px 16px 18px;
  background: rgba(11,13,19,0.88);
  backdrop-filter: blur(18px);
  border-right: 1px solid rgba(255,255,255,0.06);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 28px;
  font: 700 20px 'Space Grotesk', sans-serif;
  letter-spacing: -0.6px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #c9ff57, #e5ff98);
  color: #141812;
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(201,255,87,0.22);
}
.nav-label {
  margin: 0 0 12px;
  padding: 0 10px;
  color: #a2a8b8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
}
.side-nav {
  display: grid;
  gap: 6px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #c7ccd9;
  text-align: left;
  font-size: 12px;
  transition: 0.2s ease;
}
.nav-item > span { opacity: 0.9; }
.nav-item:hover {
  background: rgba(255,255,255,0.02);
  border-color: rgba(255,255,255,0.03);
}
.nav-item.active {
  border-color: rgba(201,255,87,0.18);
  background: linear-gradient(90deg, rgba(201,255,87,0.12), rgba(139,92,246,0.08));
  color: #f5f7fb;
  box-shadow: inset 2px 0 0 #c9ff57;
}
.nav-item.active > span { color: #c9ff57; }
.sidebar-bottom {
  margin-top: auto;
  padding-top: 12px;
}
.pilot-note {
  padding: 14px 12px;
  margin-bottom: 16px;
  border: 1px solid rgba(201,255,87,0.18);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(201,255,87,0.06), rgba(139,92,246,0.06));
}
.pilot-icon { color: #c9ff57; font-size: 18px; }
.pilot-note strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 11px;
}
.pilot-note p {
  margin: 0;
  color: #a2a8b8;
  font-size: 10px;
  line-height: 1.5;
}
.user-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(139,92,246,0.9), rgba(91,65,150,0.95));
  color: #f5ebff;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(139,92,246,0.26);
}
.user-mini strong,
.user-mini small {
  display: block;
}
.user-mini strong {
  font-size: 11px;
}
.user-mini small {
  margin-top: 3px;
  color: #a2a8b8;
  font-size: 9px;
}
.more {
  margin-left: auto;
  color: #a2a8b8;
}

.main-area {
  margin-left: 248px;
  min-height: 100vh;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 4.2%;
  background: rgba(13,15,20,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.breadcrumb {
  color: rgba(255,255,255,0.78);
  font-size: 11px;
}
.breadcrumb span {
  margin: 0 8px;
  color: rgba(255,255,255,0.4);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.demo-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(201,255,87,0.08);
  border: 1px solid rgba(201,255,87,0.18);
  color: #dcecc0;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.8px;
}
.demo-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c9ff57;
  box-shadow: 0 0 12px rgba(201,255,87,0.7);
}
.secondary-button,
.primary-button,
.hero-button,
.join-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 39px;
  padding: 0 15px;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.primary-button,
.hero-button {
  background: linear-gradient(135deg, #c9ff57, #e8ff9d);
  color: #171b14;
  box-shadow: 0 10px 24px rgba(201,255,87,0.2);
}
.secondary-button {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  color: #f5f7fb;
}
.primary-button:hover,
.hero-button:hover,
.join-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}
.icon-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  color: #d9def1;
  font-size: 16px;
}
.icon-button b {
  position: absolute;
  top: 4px;
  right: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c9ff57;
  box-shadow: 0 0 10px rgba(201,255,87,0.7);
}
.avatar-top {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(135deg, rgba(139,92,246,0.9), rgba(91,65,150,0.95));
}
.mobile-brand { display: none; }

.view {
  display: none;
  max-width: 1500px;
  margin: 0 auto;
  padding: 38px 4.2% 60px;
  animation: fadeIn 0.28s ease;
}
.view.active { display: block; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.welcome-row,
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 26px;
}
.eyebrow {
  margin: 0 0 8px;
  color: #c9ff57;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
}
.welcome-row h1,
.page-heading h1 {
  margin: 0;
  font: 600 clamp(27px, 3vw, 36px)/1.1 'Space Grotesk', sans-serif;
  letter-spacing: -1.4px;
}
.welcome-name { color: #d7c4ff; }
.wave { color: #c9ff57; }
.subheading {
  margin: 10px 0 0;
  color: #a2a8b8;
  font-size: 12px;
}

.dashboard-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  min-height: 280px;
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid rgba(167,139,250,0.26);
  border-radius: 18px;
  background: linear-gradient(115deg, rgba(27,24,40,0.95), rgba(20,24,34,0.95));
  box-shadow: 0 18px 34px rgba(0,0,0,0.2), inset 0 0 0 1px rgba(255,255,255,0.03);
}
.dashboard-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 72% 45%, rgba(139,92,246,0.28), transparent 28%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 34px 36px;
  align-self: center;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d7c4ff;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.5px;
}
.hero-kicker i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a78bfa;
  box-shadow: 0 0 12px rgba(167,139,250,0.8);
}
.hero-content h2 {
  margin: 18px 0 10px;
  color: #f5f7fb;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.04;
  letter-spacing: -2px;
}
.hero-content h2 span { color: #c9ff57; }
.hero-content p {
  max-width: 390px;
  margin: 0 0 20px;
  color: rgba(255,255,255,0.72);
  font-size: 11px;
  line-height: 1.8;
}
.hero-button {
  gap: 16px;
  min-height: 38px;
  padding: 0 16px;
}
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 280px;
}
.hero-orbit {
  position: absolute;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(201,255,87,0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(201,255,87,0.04), 0 0 0 34px rgba(167,139,250,0.04);
}
.orbit-b {
  width: 160px;
  height: 160px;
  border-color: rgba(167,139,250,0.38);
}
.hero-cross {
  position: absolute;
  top: 15%;
  right: 18%;
  color: #c9ff57;
  font-size: 28px;
}
.hero-emblem {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 130px;
  height: 150px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(75,55,100,0.9), rgba(22,25,34,0.85));
  box-shadow: 0 18px 30px rgba(0,0,0,0.35);
  transform: rotate(8deg);
}
.hero-emblem small,
.hero-emblem span {
  color: rgba(255,255,255,0.7);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 1.4px;
}
.hero-emblem strong {
  margin: 8px 0;
  color: #d7c4ff;
  font: 700 58px/1 'Space Grotesk', sans-serif;
  letter-spacing: -6px;
}
.hero-coordinate {
  position: absolute;
  right: 10%;
  bottom: 15%;
  color: rgba(255,255,255,0.66);
  font: 600 8px/1.7 'Space Grotesk', sans-serif;
  letter-spacing: 1px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 22px;
}
.stat-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 16px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(24,26,34,0.98), rgba(17,18,24,0.98));
  overflow: hidden;
}
.stat-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -42px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 50%;
  box-shadow: 0 0 0 12px rgba(255,255,255,0.02), 0 0 0 24px rgba(255,255,255,0.01);
}
.stat-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 18px;
}
.stat-icon.purple { background: rgba(139,92,246,0.12); color: #a78bfa; }
.stat-icon.green { background: rgba(201,255,87,0.1); color: #c9ff57; }
.stat-icon.orange { background: rgba(255,184,112,0.1); color: #ffb870; }
.stat-card p {
  margin: 0 0 6px;
  color: #a2a8b8;
  font-size: 10px;
}
.stat-card strong {
  font: 600 24px 'Space Grotesk', sans-serif;
}
.stat-card small {
  margin-left: 6px;
  color: rgba(255,255,255,0.5);
  font-size: 9px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0,1.7fr) minmax(240px,0.8fr);
  gap: 15px;
}
.panel {
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  background: linear-gradient(145deg, #171b26, #121820);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}
.featured-panel,
.quick-panel {
  padding: 18px 18px 16px;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.panel-heading h2 {
  margin: 0;
  font: 600 18px 'Space Grotesk', sans-serif;
  letter-spacing: -0.6px;
}

.tournament-list {
  display: grid;
  gap: 12px;
}
.compact-list { grid-template-columns: repeat(3, minmax(0,1fr)); }
.tournament-card {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  background: rgba(255,255,255,0.01);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.tournament-card:hover {
  transform: translateY(-2px);
  border-color: rgba(201,255,87,0.14);
  box-shadow: 0 16px 32px rgba(0,0,0,0.18);
}
.card-cover {
  position: relative;
  height: 106px;
  padding: 11px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(120,85,197,0.28), rgba(30,31,39,0.96));
}
.card-cover.cover-other {
  background: linear-gradient(135deg, rgba(33,123,87,0.22), rgba(25,31,39,0.96));
}
.card-cover::after {
  content: "";
  position: absolute;
  top: -28px;
  right: -16px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 0 0 16px rgba(255,255,255,0.02);
}
.game-label {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 5px 7px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  background: rgba(17,17,22,0.25);
  font-size: 8px;
  font-weight: 700;
}
.event-status {
  position: relative;
  z-index: 1;
  float: right;
  padding: 5px 7px;
  border-radius: 999px;
  border: 1px solid rgba(201,255,87,0.22);
  background: rgba(17,17,22,0.35);
  color: #c9ff57;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.7px;
}
.cover-symbol {
  position: absolute;
  right: 18px;
  bottom: -4px;
  z-index: 0;
  color: rgba(255,255,255,0.12);
  font: 700 60px 'Space Grotesk', sans-serif;
  letter-spacing: -6px;
}
.card-body { padding: 13px; }
.card-organizer {
  margin-bottom: 6px;
  color: #a2a8b8;
  font-size: 8px;
}
.card-organizer strong {
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}
.card-body h3 {
  margin: 0 0 10px;
  font: 600 15px 'Space Grotesk', sans-serif;
}
.card-meta {
  display: grid;
  gap: 7px;
  color: rgba(255,255,255,0.7);
  font-size: 9px;
}
.card-footer {
  display: flex;
  gap: 8px;
  margin-top: 15px;
}
.card-footer button {
  flex: 1;
  min-height: 32px;
  font-size: 9px;
}
.join-button {
  background: linear-gradient(135deg, #c9ff57, #e8ff9d);
  color: #171b14;
}
.join-button.joined {
  background: rgba(201,255,87,0.08);
  color: #c9ff57;
  border: 1px solid rgba(201,255,87,0.18);
}

.quick-action {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-align: left;
}
.quick-action:last-child { border-bottom: 0; }
.quick-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(139,92,246,0.12);
  color: #a78bfa;
  font-size: 18px;
}
.quick-icon.green-bg {
  background: rgba(201,255,87,0.08);
  color: #c9ff57;
}
.quick-action > span:nth-child(2) { flex: 1; }
.quick-action strong,
.quick-action small { display: block; }
.quick-action strong {
  font-size: 10px;
}
.quick-action small {
  margin-top: 4px;
  color: #a2a8b8;
  font-size: 8px;
}
.quick-action > b {
  color: rgba(255,255,255,0.5);
  transition: transform 0.2s ease;
}
.quick-action:hover > b { transform: translateX(3px); color: #c9ff57; }
.help-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
}
.help-card > span {
  color: #c9ff57;
  font-size: 18px;
}
.help-card p {
  margin: 0;
  color: #a2a8b8;
  font-size: 9px;
  line-height: 1.7;
}
.help-card strong { color: rgba(255,255,255,0.92); }

.filters {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 420px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  color: #a2a8b8;
}
.search-box span { font-size: 19px; }
.search-box input {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  color: #f5f7fb;
  font-size: 10px;
}
.filters select {
  min-width: 135px;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  color: #f5f7fb;
  font-size: 10px;
}

.tournament-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.empty-state {
  padding: 56px 20px;
  color: #a2a8b8;
  text-align: center;
}
.empty-state.hidden { display: none; }
.empty-state > span {
  color: #c9ff57;
  font-size: 28px;
}
.empty-state h3 {
  margin: 12px 0 6px;
  color: #f5f7fb;
  font: 600 17px 'Space Grotesk', sans-serif;
}
.empty-state p { font-size: 11px; }

.form-layout {
  display: grid;
  grid-template-columns: minmax(0,1.7fr) minmax(220px,0.7fr);
  gap: 16px;
  align-items: start;
}
.create-form {
  padding: 22px;
}
.form-section-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.form-section-title > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(201,255,87,0.08);
  color: #c9ff57;
  font: 600 12px 'Space Grotesk', sans-serif;
}
.form-section-title h2 {
  margin: 0;
  font: 600 16px 'Space Grotesk', sans-serif;
}
.form-section-title p {
  margin: 5px 0 0;
  color: #a2a8b8;
  font-size: 9px;
}
.field-label {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.86);
  font-size: 10px;
  font-weight: 600;
}
.field-label input,
.field-label select,
.field-label textarea {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  color: #f5f7fb;
}
.field-label textarea {
  min-height: 110px;
  padding: 12px;
  resize: vertical;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.demo-warning {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(255,184,112,0.22);
  border-radius: 10px;
  background: rgba(255,184,112,0.05);
  color: #ffd2a7;
}
.demo-warning strong {
  font-size: 9px;
}
.demo-warning span {
  color: rgba(255,255,255,0.7);
  font-size: 9px;
  line-height: 1.6;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}
.tips-panel {
  padding: 18px;
}
.tips-icon {
  color: #c9ff57;
  font-size: 24px;
}
.tips-panel h3 {
  margin: 14px 0 8px;
  font: 600 16px 'Space Grotesk', sans-serif;
}
.tips-panel p {
  margin: 0;
  color: #a2a8b8;
  font-size: 10px;
  line-height: 1.7;
}
.tips-separator {
  height: 1px;
  margin: 16px 0;
  background: rgba(255,255,255,0.06);
}
.small-muted { color: rgba(255,255,255,0.5); font-size: 9px; }

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0,1.35fr) minmax(220px,0.7fr);
  gap: 14px;
  align-items: start;
}
.profile-card { overflow: hidden; }
.profile-cover {
  position: relative;
  height: 110px;
  padding: 15px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  background:
    radial-gradient(circle at 70% 20%, rgba(201,255,87,0.25), transparent 28%),
    radial-gradient(circle at 30% 100%, rgba(139,92,246,0.22), transparent 26%),
    linear-gradient(120deg, #2a2d39, #1b1d28);
}
.profile-cover-tag {
  color: rgba(255,255,255,0.62);
  font: 700 8px 'Space Grotesk', sans-serif;
  letter-spacing: 1.4px;
}
.profile-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  margin-top: -22px;
}
.profile-avatar {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border: 3px solid rgba(17,18,24,0.95);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(139,92,246,0.9), rgba(91,65,150,0.95));
  color: #f5ebff;
  font: 700 28px 'Space Grotesk', sans-serif;
  box-shadow: 0 12px 20px rgba(139,92,246,0.2);
}
.profile-info > div {
  flex: 1;
  padding-top: 24px;
}
.profile-name {
  margin: 0;
  font: 600 18px 'Space Grotesk', sans-serif;
}
.profile-role {
  margin: 4px 0 0;
  color: #a2a8b8;
  font-size: 9px;
}
.profile-rank { padding: 18px 20px 14px; }
.profile-rank > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rank-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(201,255,87,0.2);
  border-radius: 12px;
  background: rgba(201,255,87,0.08);
  color: #c9ff57;
  font-size: 20px;
}
.profile-rank small {
  display: block;
  color: #a2a8b8;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
}
.profile-rank strong {
  display: block;
  margin-top: 3px;
  font: 600 15px 'Space Grotesk', sans-serif;
}
.rank-progress-label { margin-left: auto; color: #a2a8b8; font-size: 8px; }
.rank-progress {
  height: 6px;
  overflow: hidden;
  margin: 14px 0 7px;
  border-radius: 99px;
  background: rgba(255,255,255,0.08);
}
.rank-progress i {
  display: block;
  width: 12%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg,#8b5cf6,#c9ff57);
}
.rank-note { color: #a2a8b8; font-size: 8px; }
.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
  padding: 18px 18px 0;
  margin: 18px 18px 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.profile-stats div {
  display: grid;
  gap: 5px;
}
.profile-stats strong {
  font: 600 20px 'Space Grotesk', sans-serif;
}
.profile-stats span {
  color: #a2a8b8;
  font-size: 9px;
}
.profile-notice {
  display: flex;
  gap: 12px;
  padding: 18px;
}
.profile-notice > span {
  color: #c9ff57;
  font-size: 20px;
}
.profile-notice h3 {
  margin: 0 0 8px;
  font: 600 14px 'Space Grotesk', sans-serif;
}
.profile-notice p {
  margin: 0;
  color: #a2a8b8;
  font-size: 10px;
  line-height: 1.7;
}
.achievement-panel, .history-panel {
  padding: 18px;
  margin-top: 15px;
}
.achievement-count {
  color: #a2a8b8;
  font-size: 9px;
}
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
}
.achievement-card {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 11px;
  background: rgba(255,255,255,0.02);
}
.achievement-card.locked { opacity: .58; }
.achievement-card.unlocked {
  border-color: rgba(201,255,87,0.2);
  background: linear-gradient(110deg,rgba(201,255,87,0.06),rgba(139,92,246,0.04));
}
.achievement-icon {
  display: grid;
  flex: none;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: rgba(139,92,246,0.12);
  color: #c4aaff;
  font-size: 18px;
}
.achievement-card.unlocked .achievement-icon {
  background: rgba(201,255,87,0.12);
  color: #c9ff57;
}
.achievement-card > div { flex: 1; min-width: 0; }
.achievement-card strong, .achievement-card small { display: block; }
.achievement-card strong { font-size: 10px; }
.achievement-card small {
  margin-top: 4px;
  color: #a2a8b8;
  font-size: 8px;
  line-height: 1.4;
}
.achievement-state { color: #a2a8b8; font-size: 7px; text-align: right; }
.profile-history { display: grid; }
.history-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.history-mark {
  display: grid;
  flex: none;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  background: rgba(139,92,246,0.12);
  color: #c4aaff;
}
.history-info { flex: 1; min-width: 0; }
.history-info strong, .history-info small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-info strong { font-size: 9px; }
.history-info small, .history-date {
  margin-top: 3px;
  color: #a2a8b8;
  font-size: 8px;
}
.history-empty {
  padding: 18px 4px;
  color: #a2a8b8;
  font-size: 10px;
  line-height: 1.7;
}

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: rgba(7,8,12,0.68);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.auth-overlay.show {
  opacity: 1;
  visibility: visible;
}
.auth-card {
  position: relative;
  width: min(420px, calc(100vw - 28px));
  padding: 22px 22px 18px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(22,25,32,0.96), rgba(12,15,21,0.98));
  box-shadow: 0 30px 80px rgba(0,0,0,0.42);
}
.auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 20px;
}
.auth-badge, .detail-tag {
  display: inline-block;
  padding: 6px 9px;
  border: 1px solid rgba(201,255,87,0.2);
  border-radius: 999px;
  background: rgba(201,255,87,0.06);
  color: #c9ff57;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.2px;
}
.auth-card h2 {
  margin: 18px 0 8px;
  font: 600 28px 'Space Grotesk', sans-serif;
  letter-spacing: -1px;
}
.auth-card p {
  margin: 0 0 18px;
  color: #a2a8b8;
  font-size: 10px;
  line-height: 1.7;
}
.auth-card .field-label {
  margin-bottom: 12px;
}
.auth-card .field-label span {
  color: rgba(255,255,255,0.82);
}
.auth-card input {
  height: 42px;
}
.auth-submit {
  width: 100%;
  margin-top: 6px;
}

.details-dialog {
  width: min(520px, calc(100vw - 28px));
  padding: 25px 22px 18px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(20,24,30,1), rgba(13,16,22,1));
  color: #f5f7fb;
  box-shadow: 0 32px 80px rgba(0,0,0,0.38);
}
.details-dialog::backdrop {
  background: rgba(5,6,10,0.66);
  backdrop-filter: blur(5px);
}
.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  color: rgba(255,255,255,0.7);
  font-size: 20px;
}
.details-dialog h2 {
  margin: 0;
  font: 600 26px 'Space Grotesk', sans-serif;
  letter-spacing: -1px;
}
.dialog-organizer {
  margin: 5px 0 18px;
  color: #a2a8b8;
  font-size: 10px;
}
.dialog-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
}
.dialog-facts div {
  display: grid;
  gap: 4px;
}
.dialog-facts small {
  color: #a2a8b8;
  font-size: 8px;
}
.dialog-facts strong {
  font-size: 10px;
}
.dialog-rules {
  margin: 18px 0 0;
}
.dialog-rules strong {
  font-size: 10px;
}
.dialog-rules p {
  margin: 7px 0 0;
  color: rgba(255,255,255,0.72);
  font-size: 10px;
  line-height: 1.7;
}
.dialog-join {
  width: 100%;
  margin-top: 16px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 25;
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 16px;
  border: 1px solid rgba(201,255,87,0.2);
  border-radius: 10px;
  background: rgba(20,23,20,0.96);
  color: #edf9d3;
  font-size: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: all 0.2s ease;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .compact-list, .tournament-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .content-grid { grid-template-columns: 1fr; }
  .quick-panel { display: none; }
  .form-layout { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .sidebar { display: none; }
  .main-area { margin-left: 0; }
  .topbar { height: 58px; padding: 0 5%; }
  .mobile-brand { display: flex; align-items: center; gap: 8px; font: 700 16px 'Space Grotesk', sans-serif; }
  .mobile-brand .brand-mark { width: 28px; height: 28px; font-size: 14px; }
  .breadcrumb { display: none; }
  .top-actions { gap: 8px; }
  .demo-pill { display: none; }
  .secondary-button { display: none; }
  .view { padding: 26px 5% 38px; }
  .welcome-row, .page-heading { align-items: flex-start; }
  .welcome-row h1, .page-heading h1 { font-size: 26px; }
  .subheading { font-size: 10px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-card { padding: 14px 12px; }
  .compact-list, .tournament-grid { grid-template-columns: 1fr; }
  .filters { flex-wrap: wrap; }
  .search-box { max-width: none; flex-basis: 100%; }
  .filters select { flex: 1; min-width: 0; }
  .dashboard-hero { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-content { padding: 22px 18px; }
  .hero-content h2 { font-size: clamp(24px,7vw,32px); }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-stats { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .mobile-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 9;
    display: flex;
    justify-content: space-around;
    padding: 7px 5% calc(7px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255,255,255,0.08);
    background: rgba(11,13,17,0.92);
    backdrop-filter: blur(16px);
  }
  .mobile-nav button {
    display: grid;
    justify-items: center;
    gap: 4px;
    min-width: 52px;
    border: 0;
    color: rgba(255,255,255,0.65);
    font-size: 8px;
  }
  .mobile-nav button > span { font-size: 17px; }
  .mobile-nav button.active { color: #c9ff57; }
  .nav-plus { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: #c9ff57; color: #141812; font-size: 18px; }
  .auth-card { padding: 20px 18px 16px; }
  .toast { right: 10px; bottom: 74px; }
}

.mobile-nav { display: none; }
@media (max-width: 700px) {
  .mobile-nav { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
