@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg-dark: #090B10;
  --bg-card: #121822;
  --bg-card-hover: #1A2230;
  --border-color: rgba(255, 255, 255, 0.05);
  --border-hover: rgba(0, 225, 255, 0.3);
  --text-main: #E2E8F0;
  --text-muted: #94A3B8;
  --accent-cyan: #00E1FF;
  --accent-purple: #8B5CF6;
  --accent-danger: #EF4444;
  --accent-success: #10B981;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Background Gradients */
.glow-bg {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(0, 225, 255, 0.03) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.03) 0%, transparent 40%);
  z-index: -1;
  pointer-events: none;
}

/* Typography Gradients */
.text-gradient {
  background: linear-gradient(to right, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  width: 100%;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: opacity 0.3s;
  opacity: 0;
}

.card:hover {
  transform: translateY(-5px);
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  box-shadow: 0 10px 30px -10px rgba(0, 225, 255, 0.1);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 40px;
  height: 40px;
  background: rgba(0, 225, 255, 0.1);
  color: var(--accent-cyan);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* UI Elements */
input.form-input {
  width: 100%;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 1rem;
  transition: all 0.2s ease;
  outline: none;
}

input.form-input:focus {
  border-color: var(--accent-cyan);
  background: rgba(0, 225, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(0, 225, 255, 0.1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-size: 1rem;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, #00a2ff 100%);
  color: #000;
}

.btn-primary:hover {
  filter: brightness(1.2);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 225, 255, 0.3);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--accent-danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: var(--accent-danger);
  color: white;
  box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Login Page Specifics */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.login-box {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  text-align: center;
}

.login-logo {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.login-subtitle {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.cf-turnstile-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.error-text {
  color: var(--accent-danger);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: none;
}

/* Dashboard Specifics */
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.badge {
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.badge-pro {
  background: rgba(139, 92, 246, 0.2);
  color: var(--accent-purple);
  border: 1px solid var(--accent-purple);
}

.badge-basic {
  background: rgba(148, 163, 184, 0.2);
  color: var(--text-muted);
  border: 1px solid var(--text-muted);
}

/* Release List */
.release-item {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.release-item:last-child {
  border-bottom: none;
}

.release-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.release-version {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-main);
}

.release-date {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.tag {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 0.8rem;
}

.tag-feature { background: rgba(0, 225, 255, 0.2); color: var(--accent-cyan); }
.tag-fix { background: rgba(16, 185, 129, 0.2); color: var(--accent-success); }
.tag-major { background: rgba(139, 92, 246, 0.2); color: var(--accent-purple); }

.release-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

/* Skeleton Loaders */
.skeleton {
  background: linear-gradient(90deg, #1A2230 25%, #232c3d 50%, #1A2230 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 6px;
}

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

.status-indicator {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
}

.status-active { background: var(--accent-success); box-shadow: 0 0 10px var(--accent-success); }
.status-inactive { background: var(--text-muted); }
