@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700;800;900&display=swap');

:root {
  /* Colors - Graphite Monochromatic System */
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --bg-tertiary: #121212;
  --glass-bg: #090909;
  --glass-border: #1e1e1e;
  
  --accent-purple: #ffffff;
  --accent-purple-glow: rgba(255, 255, 255, 0.15);
  --accent-cyan: #e5e5e5;
  --accent-cyan-glow: rgba(255, 255, 255, 0.08);
  --accent-pink: #888888;
  
  --text-primary: #ffffff;
  --text-secondary: #888888;
  --text-muted: #444444;
  
  --success: #ffffff;
  --warning: #888888;
  --danger: #444444;
  
  /* Layout & Transitions - Sharp Minimalist Aesthetics */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  --transition-smooth: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: #333333 var(--bg-primary);
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar styles */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 0px;
}
::-webkit-scrollbar-thumb:hover {
  background: #333333;
}

/* Ambient Background Lights - Monochromatic Soft Lighting */
.ambient-glow-1 {
  position: fixed;
  top: -15%;
  left: 20%;
  width: 60vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
  z-index: -2;
  filter: blur(80px);
  pointer-events: none;
}

.ambient-glow-2 {
  position: fixed;
  bottom: -15%;
  right: 10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
  z-index: -2;
  filter: blur(80px);
  pointer-events: none;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.text-gradient-purple-cyan {
  background: linear-gradient(135deg, #ffffff 0%, #888888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-cyan-pink {
  background: linear-gradient(135deg, #ffffff 0%, #555555 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Minimalist Containers */
.glass-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.5);
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: #333333;
}

/* Main Layout Structure */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.9);
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo {
  height: 32px;
  /* Filter logo to be pure white in monochromatic theme */
  filter: brightness(0) invert(1);
}

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

.nav-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-smooth);
  position: relative;
}

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

.nav-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1.25rem;
  left: 0;
  right: 0;
  height: 1px;
  background: #ffffff;
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* User connection badge */
.connection-badge {
  background: transparent;
  border: 1px solid var(--glass-border);
  padding: 0.4rem 0.8rem;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.connection-badge:hover {
  background: var(--bg-tertiary);
  border-color: #333333;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #333333;
}

.status-dot.online {
  background-color: #ffffff;
  box-shadow: 0 0 6px #ffffff;
  animation: pulse-white 2s infinite;
}

@keyframes pulse-white {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* Common Container styling */
main {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 2rem;
  min-height: calc(100vh - 200px);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Buttons Styling */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: #ffffff;
  color: #000000;
}

.btn-primary:hover {
  background: #e5e5e5;
}

.btn-secondary {
  background: transparent;
  border: 1px solid #222222;
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--bg-tertiary);
  border-color: #444444;
}

.btn-cyan {
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  color: #ffffff;
}

.btn-cyan:hover {
  background: #1a1a1a;
  border-color: #333333;
}

.btn-danger {
  background: transparent;
  border: 1px solid #444444;
  color: #ff5555;
}

.btn-danger:hover {
  background: rgba(255, 85, 85, 0.05);
  border-color: #ff5555;
}

/* Home / Landing Tab */
.hero {
  text-align: center;
  padding: 5rem 1rem;
  max-width: 700px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.25rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

.hero p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 2.25rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.feature-card {
  text-align: left;
  background: #060606;
}

.feature-icon {
  width: 42px;
  height: 42px;
  background: var(--bg-tertiary);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border: 1px solid var(--glass-border);
}

.feature-icon svg {
  width: 18px;
  height: 18px;
  stroke: #ffffff;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* Storefront Grid & Card styling */
.store-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 1.5rem;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #060606;
}

.product-glow {
  display: none; /* Removed coloring glows */
}

.product-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: 1px solid #333333;
  padding: 0.2rem 0.6rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

.product-badge.success {
  border-color: #ffffff;
  color: #ffffff;
}

.product-title {
  font-size: 1.35rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.product-type {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 1px;
}

.product-desc {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.product-price-section {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.robux-icon {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  filter: brightness(0) invert(1); /* Monochromatic robux icon */
}

.product-price {
  font-size: 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--glass-border);
  padding-top: 1rem;
  margin-top: auto;
}

/* Roblox Login and Bio Verification UI */
.link-account-box {
  max-width: 500px;
  margin: 2rem auto;
  background: #060606;
}

.tabs-header-mini {
  display: flex;
  background: #121212;
  padding: 0.2rem;
  border-radius: var(--border-radius-sm);
  margin-bottom: 1.5rem;
  border: 1px solid var(--glass-border);
}

.tab-btn-mini {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.4rem;
  cursor: pointer;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-smooth);
}

.tab-btn-mini.active {
  background: #222222;
  color: var(--text-primary);
}

.form-group {
  margin-bottom: 1.25rem;
  text-align: left;
}

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

.input-control {
  width: 100%;
  background: #000000;
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 0.7rem 0.9rem;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.input-control:focus {
  outline: none;
  border-color: #666666;
}

.code-display {
  background: #121212;
  border: 1px dashed #444444;
  padding: 0.8rem;
  border-radius: var(--border-radius-sm);
  font-family: monospace;
  font-size: 1.15rem;
  letter-spacing: 2px;
  color: #ffffff;
  margin: 1rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.copy-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
}

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

/* Modals & Wizards */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  width: 95%;
  max-width: 480px;
  background: #0a0a0a;
  transform: scale(0.95);
  transition: transform 0.2s ease;
}

.modal-backdrop.open .modal-container {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.5rem;
}

.wizard-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  position: relative;
}

.wizard-steps::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--glass-border);
  z-index: 0;
}

.wizard-step-progress {
  position: absolute;
  top: 15px;
  left: 0;
  height: 1px;
  background: #ffffff;
  z-index: 0;
  width: 0%;
  transition: var(--transition-smooth);
}

.wizard-step {
  position: relative;
  z-index: 1;
  background: #000000;
  border: 1px solid var(--glass-border);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.wizard-step.active {
  border-color: #ffffff;
  color: #ffffff;
}

.wizard-step.completed {
  border-color: #ffffff;
  background: #ffffff;
  color: #000000;
}

.wizard-body {
  margin-bottom: 2rem;
  min-height: 200px;
}

.wizard-view {
  display: none;
}

.wizard-view.active {
  display: block;
}

/* Spinner / Loaders */
.loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.8s linear infinite;
  margin-bottom: 1.5rem;
}

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

.success-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  color: #ffffff;
  animation: scaleUp 0.2s ease-out;
}

@keyframes scaleUp {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Owner / Admin Dashboard CSS */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  padding: 1.5rem;
  background: #060606;
}

.stat-title {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 1.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.stat-change {
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-secondary);
}

.stat-change.up { color: #ffffff; }
.stat-change.down { color: var(--text-muted); }

/* Dashboard Charts / Graphs */
.dashboard-middle {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.chart-panel {
  min-height: 350px;
  display: flex;
  flex-direction: column;
  background: #060606;
}

.chart-container {
  flex-grow: 1;
  position: relative;
  margin-top: 1rem;
}

/* Simple CSS SVG Chart representations */
.svg-chart {
  width: 100%;
  height: 100%;
  min-height: 220px;
}

/* Bot config and Logs Panels */
.logs-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #060606;
}

.logs-container {
  flex-grow: 1;
  background: #000000;
  border-radius: var(--border-radius-sm);
  padding: 1rem;
  font-family: monospace;
  font-size: 0.8rem;
  overflow-y: auto;
  max-height: 250px;
  border: 1px solid var(--glass-border);
}

.log-entry {
  margin-bottom: 0.4rem;
  line-height: 1.4;
  border-left: 1px solid var(--text-muted);
  padding-left: 0.5rem;
}

.log-entry.info { border-color: #333333; color: var(--text-secondary); }
.log-entry.success { border-color: #ffffff; color: #ffffff; }
.log-entry.warning { border-color: #555555; color: #888888; }
.log-entry.danger { border-color: #888888; color: #aaaaaa; }

.log-time {
  color: var(--text-muted);
  margin-right: 0.5rem;
}

/* Bot Config Settings View */
.settings-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.settings-layout .glass-panel {
  background: #060606;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 2000;
}

.toast {
  background: #0a0a0a;
  border: 1px solid #222222;
  border-left: 3px solid #ffffff;
  padding: 0.8rem 1.25rem;
  border-radius: var(--border-radius-sm);
  box-shadow: 0 4px 20px rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateX(120%);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 320px;
}

.toast.show {
  transform: translateX(0);
}

.toast.success { border-left-color: #ffffff; }
.toast.warning { border-left-color: #888888; }
.toast.danger { border-left-color: #444444; }

/* Responsive adjustments */
@media (max-width: 992px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-middle {
    grid-template-columns: 1fr;
  }
  .settings-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 2.35rem;
  }
  .store-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}
