:root {
  --primary: #ff00ff;
  --primary-glow: rgba(255, 0, 255, 0.5);
  --secondary: #00ffff;
  --secondary-glow: rgba(0, 255, 255, 0.5);
  --accent: #ff6600;
  --success: #00ff88;
  --warning: #ffcc00;
  --danger: #ff3300;
  --dark: #0a0a0f;
  --darker: #050508;
  --card-bg: rgba(10, 10, 20, 0.7);
  --glass-border: rgba(255, 0, 255, 0.2);
  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.6);
}

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

body {
  font-family: 'Orbitron', monospace;
  background: var(--darker);
  color: var(--text);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Grid Overlay */
.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(var(--primary-glow) 1px, transparent 1px),
    linear-gradient(90deg, var(--primary-glow) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.05;
  z-index: -1;
  pointer-events: none;
}

/* Scan Line */
.scan-line {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 255, 255, 0.05) 50%, transparent 100%);
  animation: scan 8s linear infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes scan {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* Matrix Canvas */
#matrixCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.08;
  pointer-events: none;
  z-index: -1;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: linear-gradient(135deg, rgba(10, 10, 20, 0.95), rgba(0, 0, 0, 0.95));
  border: 2px solid var(--primary);
  border-radius: 20px;
  max-width: 350px;
  width: 100%;
  padding: 25px;
  box-shadow: 0 0 30px var(--primary-glow);
  animation: modalGlow 2s ease-in-out infinite;
}

@keyframes modalGlow {
  0%, 100% { box-shadow: 0 0 20px var(--primary-glow); }
  50% { box-shadow: 0 0 40px var(--primary-glow); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-header h2 {
  font-size: 1rem;
  color: var(--primary);
  letter-spacing: 2px;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-icon {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 15px;
}

.modal-message {
  text-align: center;
  color: var(--text-dim);
  margin-bottom: 20px;
  font-size: 0.8rem;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.channel-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.7rem;
  font-weight: bold;
  transition: all 0.3s;
}

.channel-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.channel-card.wa i { color: #25D366; }
.channel-card.tg i { color: #0088cc; }
.channel-card.ig i { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.channel-card.web i { color: var(--primary); }

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(5, 5, 8, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--primary);
  z-index: 100;
}

.nav-container {
  max-width: 500px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo-glow {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 10px var(--primary-glow); }
  50% { box-shadow: 0 0 20px var(--primary-glow); }
}

.logo {
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--dark);
}

.brand-name {
  font-weight: 700;
  font-size: 1.3rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cursor-blink {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.nav-toggle {
  background: none;
  border: 1px solid var(--primary);
  border-radius: 10px;
  color: var(--primary);
  font-size: 1.2rem;
  padding: 10px 15px;
  cursor: pointer;
}

.nav-links {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(5, 5, 8, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--primary);
  flex-direction: column;
  gap: 5px;
  padding: 10px;
}

.nav-links.active {
  display: flex;
}

.nav-link {
  padding: 12px 20px;
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 2px;
  transition: all 0.3s;
}

.nav-link:hover {
  color: var(--primary);
  background: rgba(255, 0, 255, 0.1);
}

/* Main Content */
.main-content {
  max-width: 500px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Hero */
.hero {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 24px;
  backdrop-filter: blur(10px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 0, 255, 0.1);
  border: 1px solid var(--primary);
  border-radius: 50px;
  padding: 5px 15px;
  margin-bottom: 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7); }
  50% { box-shadow: 0 0 0 8px rgba(0, 255, 136, 0); }
}

.badge-text {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.badge-status {
  font-size: 0.7rem;
  color: var(--success);
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 5px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.engine-sub {
  font-size: 0.7rem;
  display: block;
  color: var(--text-dim);
  letter-spacing: 3px;
}

.hero-subtitle {
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-bottom: 20px;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.stat-card {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-icon {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.stat-value {
  font-size: 1.3rem;
  font-weight: 700;
  font-family: 'Share Tech Mono', monospace;
}

.stat-label {
  font-size: 0.6rem;
  color: var(--text-dim);
  letter-spacing: 1px;
}

.capacity-card {
  grid-column: span 2;
  flex-direction: column;
  align-items: stretch;
}

.capacity-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 10px;
}

.capacity-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 10px;
  transition: width 0.3s ease;
}

/* Cores Grid */
.cores-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 20px;
}

.core-card {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  font-size: 0.7rem;
  font-family: 'Share Tech Mono', monospace;
}

.core-card span {
  color: var(--success);
  font-size: 0.8rem;
}

/* Section Cards */
.section-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 20px;
  backdrop-filter: blur(10px);
}

.section-title {
  font-size: 1rem;
  margin-bottom: 15px;
  color: var(--primary);
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.feature-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.feature-item i {
  font-size: 1.2rem;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 5px;
}

.feature-item span {
  font-size: 0.6rem;
}

/* Status Grid */
.status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.status-item {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.status-label {
  display: block;
  font-size: 0.6rem;
  color: var(--text-dim);
  margin-bottom: 5px;
}

.status-value {
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Share Tech Mono', monospace;
}

/* Steps */
.steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.step {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 12px;
}

.step-num {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}

/* Pairing Box */
.pairing-box {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 20px;
}

.input-group {
  position: relative;
  margin-bottom: 15px;
}

.input-group i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
}

input {
  width: 100%;
  padding: 14px 14px 14px 45px;
  background: var(--dark);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text);
  font-family: 'Share Tech Mono', monospace;
  font-size: 1rem;
}

input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--dark);
}

.btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 0 20px var(--primary-glow);
}

/* Code Container */
.code-container {
  margin-top: 20px;
  animation: fadeIn 0.3s ease;
}

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

.code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--dark);
  border: 1px solid var(--primary);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 10px;
}

.code {
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 3px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-copy {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 8px 12px;
  color: var(--text);
  cursor: pointer;
}

.code-hint {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-align: center;
}

/* Status Messages */
.status-message {
  margin-top: 15px;
  padding: 12px;
  border-radius: 12px;
  text-align: center;
  font-size: 0.8rem;
  display: none;
}

.status-message.success {
  display: block;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid var(--success);
  color: var(--success);
}

.status-message.error {
  display: block;
  background: rgba(255, 51, 0, 0.1);
  border: 1px solid var(--danger);
  color: var(--danger);
}

.status-message.warning {
  display: block;
  background: rgba(255, 204, 0, 0.1);
  border: 1px solid var(--warning);
  color: var(--warning);
}

/* Links */
.links-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s;
}

.link-item:hover {
  border-color: var(--primary);
  transform: translateX(5px);
}

.link-item span {
  flex: 1;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.link-item.wa i:first-child { color: #25D366; }
.link-item.tg i:first-child { color: #0088cc; }
.link-item.yt i:first-child { color: #FF0000; }
.link-item.ig i:first-child { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.link-item.web i:first-child { color: var(--primary); }

/* Footer */
.footer {
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.7rem;
  border-top: 1px solid var(--glass-border);
}

.footer-heart .fa-heart {
  color: var(--danger);
  animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Loading Spinner */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: var(--primary);
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}