/* ==========================================================
   ⚡ CYBERWEB PREMIUM THEME (CSS)
   ========================================================== */

:root {
  --bg-main: #07090e;
  --bg-card: rgba(18, 24, 38, 0.75);
  --bg-card-hover: rgba(26, 35, 54, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(14, 165, 233, 0.35);
  
  --primary-cyan: #0ea5e9;
  --primary-blue: #2563eb;
  --primary-gradient: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
  --accent-glow: 0 0 25px rgba(14, 165, 233, 0.3);
  
  --emerald: #10b981;
  --rose: #f43f5e;
  --amber: #f59e0b;
  
  --text-white: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
}

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

body {
  background: var(--bg-main);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(14, 165, 233, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(37, 99, 235, 0.07) 0%, transparent 40%);
  color: var(--text-white);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* NAVBAR */
.navbar {
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 24px;
  position: sticky;
  top: 0;
  z-index: 50;
}

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

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

.brand-icon {
  width: 38px;
  height: 38px;
  background: var(--primary-gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
}

.brand-icon svg {
  width: 22px;
  height: 22px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 40%, #7dd3fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-sub {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-cyan);
  font-weight: 700;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 14px;
}

.user-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--emerald);
}

.btn-logout {
  background: none;
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #fb7185;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-logout:hover {
  background: rgba(244, 63, 94, 0.12);
  border-color: var(--rose);
}

/* AUTH SCREEN */
.auth-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 75px);
  padding: 24px;
}

.auth-card {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border-color);
  padding: 38px 32px;
  border-radius: 20px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  position: relative;
}

.auth-badge-top {
  display: inline-block;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.25);
  color: var(--primary-cyan);
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.auth-header h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.auth-header p {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 16px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 7px;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--text-subtle);
  pointer-events: none;
}

.input-wrap input {
  padding-left: 42px;
}

input {
  width: 100%;
  padding: 13px 14px;
  background: rgba(7, 9, 14, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: white;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s;
}

input:focus {
  outline: none;
  border-color: var(--primary-cyan);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
}

.code-input {
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 8px;
  text-align: center;
  color: var(--primary-cyan);
  padding: 14px;
}

.code-sent-info {
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.info-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  color: var(--text-muted);
}

.info-row strong {
  color: var(--text-white);
  font-size: 13px;
}

.btn-gradient {
  width: 100%;
  background: var(--primary-gradient);
  border: none;
  color: white;
  padding: 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
  transition: all 0.2s;
}

.btn-gradient:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(14, 165, 233, 0.4);
}

.btn-gradient:disabled {
  opacity: 0.5;
  transform: none;
  cursor: not-allowed;
}

.btn-link {
  background: none;
  border: none;
  color: var(--primary-cyan);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  font-weight: 600;
}

.btn-link-subtle {
  background: none;
  border: none;
  color: var(--text-subtle);
  font-size: 12px;
  cursor: pointer;
  transition: color 0.2s;
}

.btn-link-subtle:hover {
  color: var(--text-muted);
  text-decoration: underline;
}

.resend-box {
  margin-top: 14px;
  text-align: center;
}

.alert-error {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.25);
  color: #fda4af;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  margin-top: 10px;
  text-align: left;
}

.auth-footer {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
  font-size: 12.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.auth-footer strong {
  color: var(--primary-cyan);
}

/* DASHBOARD */
.dashboard-wrapper {
  max-width: 1060px;
  margin: 0 auto;
  padding: 36px 24px 60px;
}

/* HERO BANNER */
.hero-banner {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12) 0%, rgba(37, 99, 235, 0.06) 100%);
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  padding: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 540px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.status-pill.active {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.status-pill.expired {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #fb7185;
}

.status-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.hero-content h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.hero-content p {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.hero-stats {
  display: flex;
  gap: 16px;
}

.stat-box {
  background: rgba(7, 9, 14, 0.6);
  border: 1px solid var(--border-color);
  padding: 16px 20px;
  border-radius: 14px;
  min-width: 140px;
}

.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-subtle);
  font-weight: 700;
}

.stat-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--emerald);
  margin: 4px 0 2px;
}

.stat-val.node-val {
  color: var(--primary-cyan);
  font-size: 16px;
}

.stat-sub {
  font-size: 11px;
  color: var(--text-subtle);
}

/* MAIN GRID */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

@media (max-width: 820px) {
  .main-grid {
    grid-template-columns: 1fr;
  }
  .hero-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 26px;
}

.card-header {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 20px;
}

.card-icon-badge {
  width: 42px;
  height: 42px;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.card-header h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
}

.card-header p {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* KEY CONTAINER */
.key-container {
  background: rgba(7, 9, 14, 0.7);
  border: 1px dashed rgba(14, 165, 233, 0.35);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 20px;
}

.key-field {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--primary-cyan);
  word-break: break-all;
  margin-bottom: 12px;
  text-align: center;
}

.btn-copy-big {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-white);
  padding: 11px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-copy-big:hover {
  background: rgba(14, 165, 233, 0.15);
  border-color: var(--primary-cyan);
  color: var(--primary-cyan);
}

/* HOW TO STEPS */
.how-to-steps {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
}

.how-to-steps h4 {
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--text-white);
}

.how-to-steps ol {
  padding-left: 18px;
  font-size: 12.5px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* PLANS LIST */
.plans-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-card {
  background: rgba(7, 9, 14, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  transition: all 0.2s;
}

.plan-card:hover {
  border-color: rgba(14, 165, 233, 0.4);
  background: rgba(14, 165, 233, 0.04);
}

.plan-card.featured {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
  border: 1px solid rgba(14, 165, 233, 0.4);
}

.plan-discount-badge {
  position: absolute;
  top: -8px;
  right: 18px;
  background: var(--amber);
  color: #000;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
}

.plan-featured-badge {
  position: absolute;
  top: -9px;
  right: 18px;
  background: var(--primary-gradient);
  color: white;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.4);
}

.plan-info {
  display: flex;
  flex-direction: column;
}

.plan-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-white);
}

.plan-desc {
  font-size: 11.5px;
  color: var(--text-subtle);
}

.plan-price {
  text-align: right;
  display: flex;
  flex-direction: column;
}

.plan-price strong {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-white);
}

.plan-price small {
  font-size: 10.5px;
  color: var(--text-muted);
}

.btn-plan-select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-white);
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-plan-select:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-plan-select.primary {
  background: var(--primary-gradient);
  border: none;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.btn-plan-select.primary:hover {
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.4);
}

/* FEATURE BANNER */
.feature-banner {
  background: rgba(18, 24, 38, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  font-size: 26px;
  line-height: 1;
}

.feature-text h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--primary-cyan);
  margin-bottom: 4px;
}

.feature-text p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}
