/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.18);
}

:root {
  --bg: #030206;
  --surface: rgba(10, 8, 16, 0.45);
  --border: rgba(255, 255, 255, 0.04);
  --border-glow: rgba(168, 85, 247, 0.15);
  --line: rgba(255, 255, 255, 0.05);
  --text: #f4f4f6;
  --text-muted: #8c899d;
  --primary: #c084fc;
  --primary-glow: rgba(168, 85, 247, 0.5);
  --secondary: #6366f1;
  --cyan: #06b6d4;
  --success: #10b981;
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Background canvas and glow orbs */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  z-index: 2;
  pointer-events: none;
  opacity: 0.18;
}

.orb-1 {
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--primary) 0%, rgba(0,0,0,0) 70%);
  top: -10vw;
  right: -10vw;
  animation: float-slow 20s infinite alternate;
}

.orb-2 {
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--secondary) 0%, rgba(0,0,0,0) 70%);
  bottom: -20vw;
  left: -20vw;
  animation: float-slow 28s infinite alternate-reverse;
}

.orb-3 {
  width: 35vw;
  height: 35vw;
  background: radial-gradient(circle, var(--cyan) 0%, rgba(0,0,0,0) 70%);
  top: 30%;
  left: 25%;
  opacity: 0.08;
}

@keyframes float-slow {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(4vw, -5vw) scale(1.1); }
  100% { transform: translate(-2vw, 3vw) scale(0.9); }
}

/* Container */
.container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 900px;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-height: 100vh;
  justify-content: center;
}

/* Header */
.header {
  display: flex;
  justify-content: center;
  align-items: center;
}

.brand {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.5px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 0 10px var(--primary-glow);
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; transform: scale(0.9); box-shadow: 0 0 6px var(--primary-glow); }
  50% { opacity: 1; transform: scale(1.1); box-shadow: 0 0 14px var(--primary-glow); }
}

.brand-tld {
  font-weight: 300;
  color: var(--text-muted);
}

.system-status {
  font-family: 'Space Grotesk', monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  padding: 6px 14px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 1px;
}

.status-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse 1.6s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* Main Card */
.main-card {
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-radius: 28px;
  padding: 40px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 32px;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}

.main-card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 30px 70px rgba(168, 85, 247, 0.04), 
              0 30px 60px rgba(0, 0, 0, 0.5), 
              inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Profile Section */
.profile-section {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.avatar-wrapper {
  position: relative;
  width: 90px;
  height: 90px;
  margin-bottom: 8px;
}

.avatar-ring {
  position: absolute;
  top: -6px;
  left: -6px;
  width: 102px;
  height: 102px;
  border-radius: 50%;
  border: 2px dashed rgba(168, 85, 247, 0.25);
  animation: rotate-clockwise 24s linear infinite;
}

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

.avatar {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.cyber-icon {
  width: 54px;
  height: 54px;
}

.glitch-title {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -1.5px;
  background: linear-gradient(135deg, #ffffff 30%, #e2e8f0 70%, rgba(255,255,255,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.subtitle {
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 400;
  max-width: 320px;
  line-height: 1.5;
}

/* Hub Grid */
.hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.hub-item {
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
  border-radius: 20px;
  padding: 24px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.hub-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.015) 0%, rgba(255, 255, 255, 0.005) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hub-item:hover {
  transform: translateY(-2px);
  border-color: var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25),
              inset 0 1px 0 rgba(255,255,255,0.05);
}

.hub-item:hover::before {
  opacity: 1;
}

.hub-item-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 12px;
}

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.icon-box {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.02);
  transition: all 0.3s ease;
}

.hub-item:hover .icon-box {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.badge {
  font-family: 'Space Grotesk', monospace;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  letter-spacing: 0.5px;
}

.badge.online {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.badge.secure {
  background: rgba(6, 182, 212, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(6, 182, 212, 0.15);
}

.hub-item h3 {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
}

.hub-item p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
  flex: 1;
}

.item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Space Grotesk', monospace;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
  transition: color 0.3s ease;
}

.arrow {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.hub-item:hover .item-footer {
  color: #ffffff;
}

.hub-item:hover .arrow {
  transform: translateX(4px);
}

/* Console Box */
.console-box {
  background: rgba(5, 5, 8, 0.6);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  font-family: 'Space Grotesk', monospace;
  font-size: 12px;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.5);
}

.console-header {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--line);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  position: relative;
}

.console-buttons {
  display: flex;
  gap: 6px;
}

.console-buttons span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.console-title {
  position: absolute;
  width: 100%;
  left: 0;
  text-align: center;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 11px;
  pointer-events: none;
}

.console-body {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--text);
  line-height: 1.6;
}

.console-line {
  opacity: 0.85;
}

.text-muted {
  color: var(--text-muted) !important;
}

.text-success {
  color: var(--success) !important;
  font-weight: 600;
}

/* Footer */
.footer {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 650px) {
  .main-card {
    padding: 32px 24px;
    gap: 32px;
  }
  .hub-grid {
    grid-template-columns: 1fr;
  }
  .glitch-title {
    font-size: 32px;
  }
}
