:root {
  --bg-color: #202124;
  --text-primary: #f0f4f8;
  --text-secondary: #94a3b8;
  --accent-color: #FF0000;
  --accent-hover: #B50101;
  --accent-glow: rgba(255, 0, 0, 0.3);
  
  --glass-bg: rgba(32, 33, 36, 0.65);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  
  --modal-bg: rgba(32, 33, 36, 0.85);
  --modal-backdrop: rgba(0, 0, 0, 0.6);
  --panel-radius: 16px;
  
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Dynamic Animated Background */
#dynamic-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  background: radial-gradient(circle at bottom, #202124 0%, #151618 100%);
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  animation: float 20s infinite ease-in-out alternate;
}

.glow-1 {
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(255,0,0,0.15) 0%, rgba(0,0,0,0) 70%);
  top: -10%;
  left: -10%;
}

.glow-2 {
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(181,1,1,0.15) 0%, rgba(0,0,0,0) 70%);
  bottom: -10%;
  right: -10%;
  animation-delay: -5s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(10%, 15%) scale(1.2); }
}

/* Layout */
#app {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.app-layout {
  display: flex;
  flex: 1;
  width: 100%;
}

.sidebar {
  width: 250px;
  background: rgba(21, 22, 24, 0.85);
  backdrop-filter: blur(12px);
  border-right: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 110;
}

.sidebar-header .logo {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.05em;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav li {
  margin-bottom: 0.25rem;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
  font-size: 1rem;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border-right: 3px solid var(--accent-color);
}

.main-content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  background: rgba(32, 33, 36, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text-primary);
}

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

/* Glass Panels */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--panel-radius);
  padding: 2rem;
  box-shadow: var(--glass-shadow);
  transition: var(--transition);
}

/* Typography elements */
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px var(--accent-glow);
  background: rgba(0, 0, 0, 0.4);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--accent-color);
  color: white;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--accent-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

/* Grid */
.grid {
  display: grid;
  gap: 1.5rem;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* Service Cards */
.service-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
}

.service-card .badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.service-card .badge.pending {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.service-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.service-icon.nova { color: #FF0000; }
.service-icon.dedicated { color: #B50101; }

.service-content {
  flex: 1;
}

.service-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Auth View */
.auth-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
}

.auth-panel {
  max-width: 400px;
  width: 100%;
}

.auth-panel h1 {
  text-align: center;
  margin-bottom: 0.5rem;
}
.auth-panel p.subtitle {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-switch {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.875rem;
}
.auth-switch a {
  color: var(--accent-color);
  text-decoration: none;
  cursor: pointer;
}
.auth-switch a:hover {
  text-decoration: underline;
}

/* Modals / Floating Windows */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--modal-backdrop);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-window {
  background: var(--modal-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--panel-radius);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  width: 90%;
  max-width: 500px;
  transform: translateY(20px) scale(0.95);
  transition: var(--transition);
  overflow: hidden;
}

.modal-overlay.active .modal-window {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
}

.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  transition: var(--transition);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.02);
}

/* Utilities */
.text-success { color: #34d399; }
.text-danger { color: #ef4444; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }

/* Dashboard specific */
.stat-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.stat-value {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 0.5rem;
}

/* Landing Page Specifics */
.landing-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.landing-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 5%;
  z-index: 10;
}

.landing-nav-links {
  display: flex;
  gap: 2rem;
}

.landing-nav-links a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 1.05rem;
  transition: var(--transition);
}

.landing-nav-links a:hover {
  color: var(--accent-color);
}

.btn-text {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
}

.btn-text:hover {
  color: var(--accent-color);
}

.landing-hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0 5%;
  gap: 4rem;
  z-index: 1;
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 90%;
}

/* Orbit Animations */
.hero-visual {
  position: relative;
  width: 100%;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.orbit-system {
  position: relative;
  width: 400px;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.ring-1 { width: 250px; height: 250px; }
.ring-2 { width: 360px; height: 360px; }
.ring-3 { width: 480px; height: 480px; border-color: rgba(255, 255, 255, 0.02); }

.orbit-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
  background: rgba(32, 33, 36, 0.5);
  box-shadow: 0 0 50px rgba(0,0,0,0.5);
  width: 140px;
  height: 140px;
  border-radius: 50%;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
}

.orbit-metric {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
}

.orbit-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: -5px;
}

.node-container {
  position: absolute;
  width: 100%;
  height: 100%;
  animation: orbit-spin 15s linear infinite;
}

@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.node {
  position: absolute;
  top: -15px;
  left: 50%;
  margin-left: -15px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-size: cover;
  animation: orbit-counter-spin 15s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

.node-icon {
  width: 40px;
  height: 40px;
  margin-left: -20px;
  border-radius: 12px;
}

@keyframes orbit-counter-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

.node-orbit-1 { width: 250px; height: 250px; }
.node-orbit-2 { width: 360px; height: 360px; animation-duration: 25s; }
.node-orbit-2 .node { animation-duration: 25s; }
.node-orbit-3 { width: 360px; height: 360px; animation-direction: reverse; animation-duration: 20s;}
.node-orbit-3 .node { animation-duration: 20s; animation-direction: reverse; left: auto; right: 50%; margin-right: -15px;}
.node-orbit-4 { width: 480px; height: 480px; animation-duration: 35s; }
.node-orbit-4 .node { animation-duration: 35s; top: auto; bottom: -15px; }

/* Partners */
.landing-partners {
  display: flex;
  justify-content: center;
  gap: 4rem;
  padding: 2rem 5%;
  color: rgba(255,255,255,0.4);
  font-weight: 600;
  font-size: 1.1rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: auto;
}

@media (max-width: 900px) {
  .landing-hero { grid-template-columns: 1fr; text-align: center; gap: 2rem; padding: 2rem; }
  .hero-title { font-size: 3rem; }
  .hero-subtitle { margin: 0 auto; }
  .landing-nav-links { display: none; }
  .hero-content { display: flex; flex-direction: column; align-items: center; }
  .landing-partners { flex-wrap: wrap; gap: 2rem; }
  .fake-cursor { display: none; }
}
