/* Veltrix Reward System - VeltrixCheats Theme Stylesheet */

:root {
  --bg-color: #050308;
  --card-bg: rgba(10, 8, 18, 0.7);
  --card-border: rgba(161, 92, 255, 0.08);
  --card-border-focus: rgba(161, 92, 255, 0.4);
  
  --text-primary: #ffffff;
  --text-secondary: #908ea0;
  --text-muted: #575568;
  
  --primary: #a15cff;
  --primary-hover: #b478ff;
  --primary-glow: rgba(161, 92, 255, 0.35);
  
  --success: #2ec4b6;
  --success-glow: rgba(46, 196, 182, 0.3);
  --warning: #ff9f1c;
  --danger: #e71d36;
  --neutral: #4a4a4a;
  
  --font-family: 'Outfit', sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-family);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* Grid Pattern Background */
.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center;
  z-index: -2;
  pointer-events: none;
}

/* Ambient glow spheres */
.glow-sphere {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.25;
}

.glow-left {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--primary) 0%, rgba(0, 0, 0, 0) 70%);
  top: 10%;
  left: -100px;
}

.glow-right {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--primary) 0%, rgba(0, 0, 0, 0) 75%);
  bottom: 10%;
  right: -150px;
}

/* Container */
.container {
  width: 100%;
  max-width: 1160px;
  padding: 30px 20px 60px 20px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  min-height: 100vh;
}

/* 1. Header (Restored layout) */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
}

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

.logo-icon {
  background: linear-gradient(135deg, var(--primary) 0%, #7d3cff 100%);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 15px var(--primary-glow);
  color: #fff;
}

.logo-text {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #fff;
}

.system-badge {
  background: rgba(161, 92, 255, 0.08);
  border: 1px solid rgba(161, 92, 255, 0.2);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  border-radius: 30px;
  text-transform: uppercase;
  box-shadow: 0 0 10px rgba(161, 92, 255, 0.05);
}

/* 2. Restored Dashboard Grid Layout */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 28px;
}

@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.sidebar-column {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Card Styling */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 30px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.5px;
}

.icon-purple {
  color: var(--primary);
}

.card-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 3px;
}

/* Form inputs */
.track-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

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

.input-icon {
  position: absolute;
  left: 14px;
  font-size: 16px;
  color: var(--text-muted);
}

.input-wrapper input {
  width: 100%;
  padding: 14px 14px 14px 44px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.input-wrapper input:focus {
  border-color: var(--primary);
  background: rgba(161, 92, 255, 0.04);
  box-shadow: 0 0 12px rgba(161, 92, 255, 0.12);
}

.input-help {
  font-size: 12px;
  color: var(--text-muted);
}

.input-help a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.input-help a:hover {
  text-decoration: underline;
}

/* Buttons */
.btn {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #8537ff 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(161, 92, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 16px rgba(161, 92, 255, 0.4);
  background: linear-gradient(135deg, var(--primary-hover) 0%, #8c46ff 100%);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 12px;
  border-radius: 6px;
}

/* Dashboard profiles */
.user-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  margin-bottom: 6px;
}

.user-avatar-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #7d3cff 100%);
  padding: 1.5px;
}

.avatar-fallback {
  width: 100%;
  height: 100%;
  background: #090711;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
}

.user-meta {
  flex-grow: 1;
}

.user-meta h3 {
  font-size: 14px;
  font-weight: 700;
}

.user-meta p {
  font-size: 11px;
  color: var(--text-muted);
  font-family: monospace;
  margin-top: 1px;
}

.btn-disconnect {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(231, 29, 54, 0.06);
  border: 1px solid rgba(231, 29, 54, 0.15);
  color: var(--danger);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-disconnect:hover {
  background: var(--danger);
  color: #fff;
  box-shadow: 0 0 10px rgba(231, 29, 54, 0.2);
}

/* Status Grids */
.status-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 12px;
}

@media (max-width: 480px) {
  .status-grid {
    grid-template-columns: 1fr;
  }
}

.status-subcard {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.subcard-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.subcard-value {
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.font-mono {
  font-family: monospace;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.02);
  word-break: break-all;
}

/* Status Indicator Dots */
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
}

.pulse-dot.green {
  background-color: var(--success);
  box-shadow: 0 0 6px var(--success);
}
.pulse-dot.green::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2.2px solid var(--success);
  animation: pulse-ring 1.6s infinite;
  opacity: 0.7;
}

.pulse-dot.amber {
  background-color: var(--warning);
  box-shadow: 0 0 6px var(--warning);
}
.pulse-dot.amber::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2.2px solid var(--warning);
  animation: pulse-ring 1.6s infinite;
  opacity: 0.7;
}

.pulse-dot.red {
  background-color: var(--danger);
  box-shadow: 0 0 6px var(--danger);
}

.pulse-dot.gray {
  background-color: var(--neutral);
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  70% { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Progress bar */
.progress-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.progress-title {
  font-size: 13px;
  font-weight: 600;
}

.progress-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

.progress-bar-container {
  height: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, #8537ff 100%);
  border-radius: 8px;
  box-shadow: 0 0 8px var(--primary-glow);
  width: 0%;
  transition: width 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.progress-note {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
}

.progress-note i {
  color: var(--primary);
}

.dashboard-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

/* Setup guide steps */
.setup-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.setup-steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.step-num {
  background: rgba(161, 92, 255, 0.08);
  border: 1px solid rgba(161, 92, 255, 0.15);
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 1px;
}

.step-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-grow: 1;
}

.step-content p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.step-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  transition: var(--transition);
}

.step-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Code box */
.code-box {
  background: #09070f;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2px;
}

.code-box code {
  font-family: monospace;
  font-weight: 700;
  color: var(--primary);
  font-size: 13px;
  letter-spacing: 0.5px;
}

.copy-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  padding: 2px;
  transition: var(--transition);
}

.copy-btn:hover {
  color: var(--text-primary);
  transform: scale(1.1);
}

/* 3. Emblem section removed */

/* Rewards Card */
.rewards-card {
  width: 100%;
}

.empty-rewards {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  text-align: center;
  color: var(--text-muted);
  gap: 10px;
  background: rgba(255, 255, 255, 0.005);
  border: 1px dashed rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.empty-rewards i {
  font-size: 26px;
  opacity: 0.4;
}

.empty-rewards p {
  font-size: 12px;
  line-height: 1.5;
  max-width: 220px;
}

.rewards-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 2px;
}

.reward-item {
  background: rgba(161, 92, 255, 0.02);
  border: 1px solid rgba(161, 92, 255, 0.08);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.reward-item:hover {
  border-color: rgba(161, 92, 255, 0.2);
  background: rgba(161, 92, 255, 0.04);
}

.reward-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.reward-key {
  font-family: monospace;
  font-weight: 700;
  color: var(--text-primary);
  font-size: 13px;
}

.reward-date {
  font-size: 10px;
  color: var(--text-muted);
}

.claim-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.claim-badge.sent {
  background: rgba(46, 196, 182, 0.08);
  color: var(--success);
  border: 1px solid rgba(46, 196, 182, 0.15);
}

.claim-badge.claimed {
  background: rgba(161, 92, 255, 0.08);
  color: var(--primary);
  border: 1px solid rgba(161, 92, 255, 0.15);
}

/* Modals */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(3, 2, 6, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: var(--transition);
}

.modal {
  width: 90%;
  max-width: 440px;
  padding: 24px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.modal-header h3 {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-header h3 i {
  color: var(--primary);
}

.close-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1;
}

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

.modal-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-steps li {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  position: relative;
  padding-left: 24px;
}

.modal-steps li::before {
  content: counter(item) "";
  counter-increment: item;
  position: absolute;
  left: 0;
  top: 2px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-steps {
  counter-reset: item;
}

/* Toasts */
#notification-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2000;
}

.notification {
  background: #0b0914;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 12px 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 260px;
  max-width: 380px;
  animation: slide-in 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  transition: var(--transition);
}

.notification.success { border-left: 3px solid var(--success); }
.notification.error { border-left: 3px solid var(--danger); }
.notification.info { border-left: 3px solid var(--primary); }

.notification i { font-size: 16px; }
.notification.success i { color: var(--success); }
.notification.error i { color: var(--danger); }
.notification.info i { color: var(--primary); }

.notification-message {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

@keyframes slide-in {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Footer */
.footer {
  text-align: center;
  padding-top: 10px;
}

.footer p {
  font-size: 12px;
  color: var(--text-muted);
}

/* Helpers */
.hidden {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.15);
}
::-webkit-scrollbar-thumb {
  background: rgba(161, 92, 255, 0.15);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(161, 92, 255, 0.3);
}
