:root {
  /* Colors */
  --bg-color: #09090b; /* zinc-950 */
  --surface-color: #18181b; /* zinc-900 */
  --surface-hover: #27272a; /* zinc-800 */
  --border-color: #27272a;
  --text-main: #f4f4f5; /* zinc-50 */
  --text-muted: #a1a1aa; /* zinc-400 */
  
  /* Accents - using a neon green like the screenshot */
  --accent-color: #10b981; /* emerald-500 */
  --accent-glow: rgba(16, 185, 129, 0.2);
  --danger-color: #ef4444; /* red-500 */
  --danger-glow: rgba(239, 68, 68, 0.15);

  /* Dimensions */
  --sidebar-width: 260px;
  --topbar-height: 70px;
  
  /* Fonts */
  --font-sans: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ================= UTILITIES ================= */
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-2 { margin-top: 0.5rem; }
.positive { color: var(--accent-color); }
.negative { color: var(--danger-color); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  outline: none;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--accent-color);
  color: #000;
  font-weight: 600;
}
.btn-primary:hover {
  background: #0ea5e9; /* Shift to blue on hover for dynamic feel? Or stay green: #059669 */
  background: #34d399;
  box-shadow: 0 0 15px var(--accent-glow);
}

.btn-discord {
  background: #5865F2;
  color: white;
  width: 100%;
}
.btn-discord:hover {
  background: #4752C4;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover {
  background: var(--surface-hover);
  color: var(--text-main);
}
.btn-danger {
  background: var(--danger-glow);
  color: var(--danger-color);
  border-color: rgba(239, 68, 68, 0.3);
}
.btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
}

.icon-btn {
  padding: 0.5rem;
  border-radius: 50%;
}

/* ================= LANDING PAGE ================= */
.landing-view {
  position: relative;
  min-height: 100vh;
}

.landing-nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  background: rgba(9, 9, 11, 0.8);
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.02em;
}
.logo span { color: var(--accent-color); }
.logo i { color: var(--accent-color); font-size: 1.5rem; }

.badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-muted);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 6rem 1.5rem 3rem;
  position: relative;
  z-index: 10;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-color);
  background: var(--accent-glow);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.hero .line2 { color: var(--accent-color); }

.hero .subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
  line-height: 1.6;
  margin-bottom: 3rem;
}

.checker-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  width: 100%;
  max-width: 450px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.checker-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
  text-align: left;
}

.input-row {
  display: flex;
  gap: 0.5rem;
}

.input-row input {
  flex: 1;
  background: #000;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-family: var(--font-mono);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
}
.input-row input:focus {
  border-color: var(--accent-color);
}

.discord-login-container {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.result {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  display: none;
  text-align: left;
}
.result.valid { background: var(--accent-glow); border: 1px solid rgba(16, 185, 129, 0.3); color: var(--accent-color); }
.result.invalid { background: var(--danger-glow); border: 1px solid rgba(239, 68, 68, 0.3); color: var(--danger-color); }

/* Background Blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}
.blob-1 { width: 40vw; height: 40vw; top: -10vw; left: -10vw; background: #10b981; }
.blob-2 { width: 30vw; height: 30vw; bottom: 10vw; right: -5vw; background: #3b82f6; }


/* ================= DASHBOARD LAYOUT ================= */
.dashboard-view {
  display: flex;
  height: 100vh;
  overflow: hidden;
  background: var(--bg-color);
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  height: 100%;
  background: var(--bg-color);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.sidebar-header {
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.version-badge {
  background: var(--accent-glow);
  color: var(--accent-color);
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.sidebar-menu {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.menu-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  padding: 0 0.5rem;
  font-weight: 600;
}

.menu-section {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.menu-item i {
  font-size: 1.2rem;
}

.menu-item:hover {
  background: var(--surface-color);
  color: var(--text-main);
}

.menu-item.active {
  background: var(--surface-hover);
  color: var(--text-main);
  position: relative;
}
.menu-item.active::before {
  content: '';
  position: absolute;
  left: -1rem;
  top: 50%;
  transform: translateY(-50%);
  height: 60%;
  width: 3px;
  background: var(--accent-color);
  border-radius: 0 4px 4px 0;
}

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid var(--border-color);
}
.sidebar-footer .btn {
  width: 100%;
  justify-content: flex-start;
}

/* Main Content Area */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #000;
}

/* Topbar */
.topbar {
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-color);
}

.tabs {
  display: flex;
  gap: 0.5rem;
  background: var(--surface-color);
  padding: 0.25rem;
  border-radius: 8px;
}
.tab {
  background: transparent;
  border: none;
  padding: 0.4rem 1rem;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.tab:hover { color: var(--text-main); }
.tab.active {
  background: var(--surface-hover);
  color: var(--text-main);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface-color);
  padding: 0.4rem 0.75rem 0.4rem 0.4rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: border-color 0.2s;
}
.user-profile:hover {
  border-color: var(--text-muted);
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.user-info {
  display: flex;
  flex-direction: column;
}
.user-name {
  font-size: 0.8rem;
  font-weight: 600;
}
.user-role {
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* Tab Content Areas */
.tab-content {
  display: none;
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
}
.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-header {
  margin-bottom: 2rem;
}
.page-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.page-header i { color: var(--text-muted); }

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.stat-title {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}
.stat-value {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-mono);
}
.stat-change {
  font-size: 0.75rem;
  font-weight: 500;
}

/* Charts / Tables */
.chart-section {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
}

.chart-header {
  margin-bottom: 1.5rem;
}
.chart-header h3 {
  font-size: 1rem;
  font-weight: 600;
}

.table-container {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.data-table th, .data-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}
.data-table th {
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}
.data-table td {
  font-family: var(--font-mono);
}
.data-table tr:last-child td {
  border-bottom: none;
}
.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.placeholder-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .dashboard-view { flex-direction: column; }
  .sidebar { width: 100%; height: auto; border-right: none; border-bottom: 1px solid var(--border-color); }
  .sidebar-menu { display: none; } /* Add hamburger logic if needed */
  .topbar { padding: 0 1rem; }
  .tab-content { padding: 1rem; }
}

/* ================= ACCOUNT TAB ================= */
.account-profile-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.discord-profile {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.profile-avatar {
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
}
.large-avatar {
  width: 80px;
  height: 80px;
}

.roblox-accounts-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.roblox-account-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: border-color 0.2s;
}
.roblox-account-card:hover {
  border-color: var(--text-muted);
}
.roblox-account-card img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  background: #111;
}

.avatar-skeleton {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(110deg, #1a1a1a 30%, #2a2a2a 50%, #1a1a1a 70%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  flex-shrink: 0;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.text-sm {
  font-size: 0.8rem;
}
.mt-4 {
  margin-top: 1.5rem;
}
.profile-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

/* ================= GAME CARDS ================= */
.game-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.game-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-color);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.1);
}

.game-card-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: #111;
}

.game-card-body {
  padding: 1rem;
}

.game-card-name {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-card-rating {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.game-card-rating .thumbs-up {
  color: var(--accent-color);
}

.game-card-play {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  width: 100%;
  padding: 0.6rem;
  background: #5865F2;
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background 0.2s;
}
.game-card-play:hover {
  background: #4752C4;
}

.game-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.35rem;
  font-size: 0.7rem;
  color: var(--text-muted);
}
.game-card-meta i {
  font-size: 0.8rem;
}
