/* ═══════════════════════════════════════════════════════════════
   AutoApply AI - Dashboard CSS
   Dark Glassmorphism Design System
═══════════════════════════════════════════════════════════════ */

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-tertiary: #1a1a28;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-hover: rgba(255, 255, 255, 0.07);

  --accent-blue: #4f8ef7;
  --accent-green: #22d3a3;
  --accent-purple: #a855f7;
  --accent-orange: #fb923c;
  --accent-red: #f87171;

  --text-primary: #f0f0ff;
  --text-secondary: #8888aa;
  --text-muted: #555577;

  --sidebar-w: 250px;
  --topbar-h: 64px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-glow-blue: 0 0 40px rgba(79, 142, 247, 0.15);
  --shadow-glow-purple: 0 0 40px rgba(168, 85, 247, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ═══════ GLASS CARD ═══════ */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}

/* ═══════ AUTH SCREENS ═══════ */
.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 20px;
  background: radial-gradient(ellipse at 20% 50%, rgba(79, 142, 247, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(168, 85, 247, 0.08) 0%, transparent 60%),
    var(--bg-primary);
}

.auth-bg-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: floatOrb 8s ease-in-out infinite;
}

.orb1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(79, 142, 247, 0.4), transparent);
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.orb2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.4), transparent);
  bottom: -80px;
  right: -80px;
  animation-delay: 3s;
}

.orb3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(34, 211, 163, 0.3), transparent);
  top: 50%;
  right: 30%;
  animation-delay: 5s;
}

@keyframes floatOrb {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 40px;
  position: relative;
  z-index: 10;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5), var(--shadow-glow-blue);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}

.brand-ai {
  color: var(--accent-blue);
}

.auth-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 6px;
}

.auth-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 28px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

select option {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

input:focus,
textarea:focus {
  border-color: var(--accent-blue);
  background: rgba(79, 142, 247, 0.08);
  box-shadow: 0 0 0 3px rgba(79, 142, 247, 0.12);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

.auth-switch {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-secondary);
}

.auth-switch a {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 600;
}

.auth-switch a:hover {
  text-decoration: underline;
}

/* ═══════ BUTTONS ═══════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: var(--transition);
}

.btn:hover::after {
  background: rgba(255, 255, 255, 0.06);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue), #6c3de0);
  color: white;
  box-shadow: 0 4px 20px rgba(79, 142, 247, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 30px rgba(79, 142, 247, 0.45);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: rgba(79, 142, 247, 0.08);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--glass-hover);
}

.btn-danger {
  background: rgba(248, 113, 113, 0.15);
  color: var(--accent-red);
  border: 1px solid rgba(248, 113, 113, 0.3);
}

.btn-danger:hover {
  background: rgba(248, 113, 113, 0.25);
}

.btn-full {
  width: 100%;
}

.btn-large {
  padding: 14px 28px;
  font-size: 15px;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 12px;
}

.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* ═══════ SIDEBAR ═══════ */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: rgba(10, 10, 20, 0.85);
  backdrop-filter: blur(30px);
  border-right: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform var(--transition);
}

.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid var(--glass-border);
}

.sidebar-nav {
  padding: 16px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.nav-item:hover {
  color: var(--text-primary);
  background: var(--glass-hover);
}

.nav-item.active {
  color: var(--accent-blue);
  background: rgba(79, 142, 247, 0.12);
  border: 1px solid rgba(79, 142, 247, 0.2);
}

.nav-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--glass-border);
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--glass-hover);
  border-radius: var(--radius-sm);
}

.user-avatar {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.user-info {
  flex: 1;
  overflow: hidden;
}

.user-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
}

.user-role {
  font-size: 11px;
  color: var(--text-muted);
}

.logout-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 16px;
  padding: 4px;
  border-radius: 4px;
  transition: var(--transition);
}

.logout-btn:hover {
  color: var(--accent-red);
}

/* ═══════ MAIN CONTENT ═══════ */
.main-content {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--topbar-h);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
}

.status-dot.pulse {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(34, 211, 163, 0.4);
  }

  50% {
    opacity: 0.8;
    box-shadow: 0 0 0 6px rgba(34, 211, 163, 0);
  }
}

.topbar-username {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 22px;
  cursor: pointer;
}

/* ═══════ CONTENT SECTIONS ═══════ */
.content-section {
  padding: 32px 28px;
  display: none;
}

.content-section.active {
  display: block;
}

.section-header {
  margin-bottom: 28px;
}

.section-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ═══════ STATS GRID ═══════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-2px);
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-color, var(--accent-blue)) 0%, transparent 60%);
  opacity: 0.05;
}

.accent-blue {
  --accent-color: var(--accent-blue);
  border-color: rgba(79, 142, 247, 0.2);
}

.accent-green {
  --accent-color: var(--accent-green);
  border-color: rgba(34, 211, 163, 0.2);
}

.accent-purple {
  --accent-color: var(--accent-purple);
  border-color: rgba(168, 85, 247, 0.2);
}

.accent-orange {
  --accent-color: var(--accent-orange);
  border-color: rgba(251, 146, 60, 0.2);
}

.stat-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.stat-value {
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ═══════ CARDS ═══════ */
.card {
  overflow: hidden;
}

.card-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--glass-border);
}

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

.mt-4 {
  margin-top: 24px;
}

/* ═══════ WIZARD STEPS ═══════ */
.wizard-step {
  padding: 28px;
  margin-bottom: 20px;
  position: relative;
}

.step-badge {
  display: inline-block;
  padding: 4px 10px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}

/* ═══════ TAB BAR ═══════ */
.tab-bar {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  width: fit-content;
}

.tab-btn {
  padding: 8px 18px;
  border: none;
  border-radius: 6px;
  background: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn.active {
  background: var(--accent-blue);
  color: white;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ═══════ UPLOAD ZONE ═══════ */
.upload-zone {
  border: 2px dashed var(--glass-border);
  border-radius: var(--radius-md);
  padding: 40px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--accent-blue);
  background: rgba(79, 142, 247, 0.05);
}

.upload-zone.compact {
  padding: 24px;
}

.upload-icon {
  font-size: 40px;
  margin-bottom: 10px;
}

.upload-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.upload-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.file-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(34, 211, 163, 0.1);
  border: 1px solid rgba(34, 211, 163, 0.3);
  border-radius: var(--radius-sm);
  margin-top: 12px;
  font-size: 14px;
  color: var(--accent-green);
}

/* ═══════ EXTRACTED EMAILS ═══════ */
.extracted-box {
  margin-top: 20px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
}

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

.extracted-count {
  font-weight: 700;
  font-size: 15px;
  color: var(--accent-green);
}

.email-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
}

.email-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(79, 142, 247, 0.12);
  border: 1px solid rgba(79, 142, 247, 0.25);
  border-radius: 100px;
  font-size: 12px;
  color: var(--accent-blue);
}

.chip-remove {
  cursor: pointer;
  opacity: 0.6;
}

.chip-remove:hover {
  opacity: 1;
}

/* ═══════ RICH EDITOR ═══════ */
.editor-toolbar {
  display: flex;
  gap: 4px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.editor-toolbar button {
  padding: 4px 10px;
  background: none;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  border-radius: 4px;
  transition: var(--transition);
}

.editor-toolbar button:hover {
  border-color: var(--glass-border);
  color: var(--text-primary);
  background: var(--glass-hover);
}

.toolbar-sep {
  color: var(--glass-border);
  margin: 0 6px;
  display: flex;
  align-items: center;
}

.rich-editor {
  min-height: 180px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  outline: none;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.rich-editor:empty::before {
  content: attr(placeholder);
  color: var(--text-muted);
  pointer-events: none;
  white-space: pre-wrap;
}

.rich-editor:focus {
  border-color: var(--accent-blue);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

/* ═══════ SMTP ═══════ */
.smtp-notice {
  padding: 12px 16px;
  background: rgba(79, 142, 247, 0.08);
  border: 1px solid rgba(79, 142, 247, 0.2);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.smtp-notice a {
  color: var(--accent-blue);
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 44px;
}

.toggle-pw {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-muted);
}

/* ═══════ LAUNCH CARD ═══════ */
.launch-card {
  text-align: center;
}

.launch-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
}

.launch-stat {
  text-align: center;
}

.launch-stat-val {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--accent-blue);
}

.launch-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.launch-arrow {
  font-size: 20px;
  color: var(--text-muted);
}

.launch-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* ═══════ CAMPAIGNS TABLE ═══════ */
.campaigns-table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th {
  padding: 14px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--glass-border);
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.data-table tr:hover td {
  background: var(--glass-hover);
}

/* ═══════ STATUS BADGES ═══════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-running {
  background: rgba(79, 142, 247, 0.15);
  color: var(--accent-blue);
}

.badge-completed {
  background: rgba(34, 211, 163, 0.15);
  color: var(--accent-green);
}

.badge-failed {
  background: rgba(248, 113, 113, 0.15);
  color: var(--accent-red);
}

.badge-draft {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-secondary);
}

.badge-paused {
  background: rgba(251, 146, 60, 0.15);
  color: var(--accent-orange);
}

/* Progress bar */
.progress-bar-wrap {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  height: 6px;
  min-width: 80px;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
  transition: width 0.5s ease;
}

/* ═══════ CAMPAIGN LIST (Dashboard) ═══════ */
.campaign-list {
  padding: 8px 0;
}

.campaign-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: var(--transition);
  cursor: pointer;
}

.campaign-row:hover {
  background: var(--glass-hover);
}

.campaign-row:last-child {
  border-bottom: none;
}

.campaign-name {
  font-weight: 600;
  font-size: 14px;
  flex: 1;
}

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

/* ═══════ EMPTY STATE ═══════ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.empty-state p {
  font-size: 15px;
}

/* ═══════ MODAL ═══════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal {
  width: 100%;
  max-width: 560px;
  padding: 0;
  overflow: hidden;
}

.modal-header {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--glass-border);
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
}

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

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  border-top: 1px solid var(--glass-border);
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 14px;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  color: var(--text-muted);
}

.detail-value {
  font-weight: 600;
}

/* ═══════ LOGS TABLE ═══════ */
.logs-table-wrap {
  overflow-x: auto;
}

.logs-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

.input-sm {
  width: 130px;
}

/* ═══════ TOAST ═══════ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(20, 20, 32, 0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  font-size: 14px;
  font-weight: 500;
  animation: slideInToast 0.3s ease;
  pointer-events: auto;
  min-width: 280px;
  transform-origin: bottom right;
}

.toast.toast-success {
  border-color: rgba(34, 211, 163, 0.4);
}

.toast.toast-error {
  border-color: rgba(248, 113, 113, 0.4);
}

.toast.toast-info {
  border-color: rgba(79, 142, 247, 0.4);
}

.toast-icon {
  font-size: 20px;
}

.toast-remove {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
}

@keyframes slideInToast {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutToast {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(120%);
    opacity: 0;
  }
}

/* ═══════ STEP ACTIONS ═══════ */
.step-actions {
  margin-top: 20px;
}

/* ═══════ MESSAGES ═══════ */
.error-msg {
  padding: 12px 16px;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--accent-red);
  margin-bottom: 12px;
}

.success-msg {
  padding: 12px 16px;
  background: rgba(34, 211, 163, 0.1);
  border: 1px solid rgba(34, 211, 163, 0.3);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--accent-green);
  margin-bottom: 12px;
}

.hidden {
  display: none !important;
}

/* ═══════ SCROLLBAR ═══════ */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-toggle {
    display: block;
  }

  .main-content {
    margin-left: 0;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .launch-info {
    flex-direction: column;
    gap: 10px;
  }
}

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

  .content-section {
    padding: 20px 16px;
  }

  .auth-card {
    padding: 28px 20px;
  }
}

/* ═══════ AI SEARCH ═══════ */
.ai-badge {
  background: linear-gradient(135deg, #22d3a3, #4f8ef7) !important;
}

.search-loading {
  padding: 60px 20px;
  text-align: center;
  margin-bottom: 20px;
}

.search-loading p {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.search-loading .loading-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.loading-pulse {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
  animation: aiPulse 1.5s ease-in-out infinite;
}

@keyframes aiPulse {
  0% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(79, 142, 247, 0.4);
  }

  50% {
    transform: scale(1.15);
    opacity: 0.8;
    box-shadow: 0 0 0 20px rgba(79, 142, 247, 0);
  }

  100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(79, 142, 247, 0);
  }
}

.search-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.search-result-header h3 {
  font-size: 18px;
  font-weight: 700;
}

.ai-stats-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding: 16px 0 0;
  border-top: 1px solid var(--glass-border);
}

.ai-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.ai-stat-val {
  font-size: 26px;
  font-weight: 800;
  color: var(--accent-blue);
}

.ai-stat span:last-child {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238888aa' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
/* ═══════════════════════════ LANDING PAGE ═══════════════════════════ */
.landing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}
.landing-nav {
    display: flex;
    gap: 20px;
    align-items: center;
}
.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}
.nav-link:hover {
    color: var(--text-primary);
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(144, 97, 249, 0.15) 0%, rgba(144, 97, 249, 0) 70%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 1;
    position: relative;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(144, 97, 249, 0.1);
    border: 1px solid rgba(144, 97, 249, 0.3);
    border-radius: 100px;
    color: var(--accent-blue);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

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

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid var(--glass-border);
    padding-top: 30px;
}

.hero-stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-num {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}
.stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    z-index: 1;
    perspective: 1000px;
}

.hero-mockup {
    width: 450px;
    height: 320px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: rotateY(-15deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.hero-mockup:hover {
    transform: rotateY(-5deg) rotateX(2deg);
}

.mockup-header {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 12px;
}

.mockup-dots {
    display: flex;
    gap: 6px;
}
.mockup-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #475569;
}
.mockup-dots span:nth-child(1) { background: #ef4444; }
.mockup-dots span:nth-child(2) { background: #f59e0b; }
.mockup-dots span:nth-child(3) { background: #10b981; }

.mockup-title {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    margin-left: auto;
    margin-right: auto;
}

.mockup-body {
    padding: 24px;
}

.mockup-stat-row {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}
.m-stat {
    flex: 1;
    height: 60px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
}

.m-line {
    height: 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
    margin-bottom: 12px;
}
.m-line.short { width: 40%; }
.m-line.long { width: 100%; }
.m-line.med { width: 70%; margin-bottom: 30px; }

.m-action-btn {
    width: 120px;
    height: 36px;
    background: var(--accent-blue);
    border-radius: 6px;
    opacity: 0.8;
}

.floating-element {
    position: absolute;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 12px 20px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    animation: float 6s ease-in-out infinite;
}

.float-1 {
    top: 20%;
    right: 350px;
    animation-delay: 0s;
}

.float-2 {
    bottom: 25%;
    right: -20px;
    animation-delay: 2s;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@media (max-width: 992px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }
    .hero-cta, .hero-stats {
        justify-content: center;
    }
    .hero-visual {
        margin-top: 60px;
        width: 100%;
        justify-content: center;
    }
    .float-1 { right: auto; left: 10%; }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
    .hero-subtitle {
        font-size: 16px;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }
    .hero-stats {
        flex-direction: column;
        gap: 24px;
        border-top: none;
        padding-top: 10px;
    }
    .hero-mockup {
        width: 90%;
        height: auto;
        min-height: 220px;
    }
    .floating-element {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 30px;
    }
    .landing-header {
        flex-direction: column;
        gap: 16px;
        padding: 16px 5%;
    }
    .hero-section {
        padding-top: 160px;
    }
    .hero-mockup {
        min-height: 180px;
    }
}
