:root {
  --bg-color: #0b0f19;
  --card-bg: #161e2e;
  --accent-color: #00d2ff;
  --accent-hover: #3a7bd5;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --border-color: #1e293b;
  --radius: 12px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header & Navbar */
header {
  background: rgba(22, 30, 46, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-container img {
  width: 40px;
  height: 40px;
}

.logo-container h1 {
  font-size: 1.4rem;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* User Auth Section */
.user-panel {
  display: flex;
  align-items: center;
  gap: 15px;
}

.btn-discord {
  background-color: #5865F2;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-discord:hover {
  opacity: 0.9;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--accent-color);
}

/* Main Grid & Cards */
main {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.catalog-title {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.grid-apps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.app-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.2rem;
  transition: transform 0.2s, border-color 0.2s;
}

.app-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-color);
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.badge-apk { background: rgba(0, 210, 255, 0.15); color: #00d2ff; }
.badge-exe { background: rgba(58, 123, 213, 0.15); color: #3a7bd5; }

.btn-download {
  display: block;
  width: 100%;
  text-align: center;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-hover));
  color: #fff;
  text-decoration: none;
  padding: 10px;
  border-radius: 8px;
  font-weight: 600;
  margin-top: 1rem;
}
