* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #0a0a0f;
  --surface: #12121a;
  --surface2: #1a1a26;
  --surface3: #22222f;
  --border: #2a2a3a;
  --border-light: #3a3a4a;
  --text: #f0f0f5;
  --text-muted: #8b8fa3;
  --primary: #EC4E02;
  --primary-hover: #ff6a1a;
  --primary-glow: rgba(236, 78, 2, 0.15);
  --success: #2dd4a0;
  --danger: #f87171;
  --warning: #fbbf24;
  --info: #60a5fa;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --radius-xl: 48px;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }

/* Logo */
.logo { font-family: 'Georgia', 'Times New Roman', serif; font-size: 20px; font-weight: 700; letter-spacing: -0.5px; }
.logo span { color: var(--primary); }

/* --- Navbar (new design) --- */
.navbar {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%); z-index: 50;
  width: calc(100% - 32px); max-width: 1200px;
  display: flex; flex-direction: column;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid rgba(51,51,51,0.8);
  background: rgba(31,31,31,0.65);
  backdrop-filter: blur(12px);
  transition: border-radius 0.3s ease-in-out;
}
.navbar.is-mobile-open { border-radius: var(--radius-lg); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; }

/* Logo: 4-dot cross */
.navbar-logo {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; flex-shrink: 0;
}
.navbar-logo .dot {
  position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--text-muted);
  transition: background 0.2s;
}
.navbar-logo:hover .dot { background: var(--text); }
.navbar-logo .top { top: 0; left: 50%; transform: translateX(-50%); }
.navbar-logo .bottom { bottom: 0; left: 50%; transform: translateX(-50%); }
.navbar-logo .left { left: 0; top: 50%; transform: translateY(-50%); }
.navbar-logo .right { right: 0; top: 50%; transform: translateY(-50%); }
.navbar-logo .center { top: 50%; left: 50%; transform: translate(-50%,-50%); background: var(--primary); }

/* Desktop nav */
.navbar-nav { display: flex; align-items: center; gap: 24px; }
.nav-link {
  position: relative; display: inline-block; overflow: hidden; height: 20px;
  font-size: 13px; text-decoration: none; color: var(--text-muted);
}
.nav-link .nav-link-text,
.nav-link .nav-link-hover {
  display: block; transition: transform 0.4s ease-out;
}
.nav-link .nav-link-hover { color: var(--text); }
.nav-link:hover .nav-link-text { transform: translateY(-20px); }
.nav-link:hover .nav-link-hover { transform: translateY(-20px); }
.nav-link.active .nav-link-text { transform: translateY(-20px); }
.nav-link.active .nav-link-hover { transform: translateY(-20px); color: var(--primary); }

/* Right side */
.navbar-right { display: flex; align-items: center; gap: 12px; }
.navbar-user { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.navbar-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px; font-size: 12px; font-weight: 500; border-radius: 999px;
  border: 1px solid rgba(51,51,51,0.8); background: rgba(31,31,31,0.62);
  color: var(--text-muted); cursor: pointer; transition: all 0.2s; text-decoration: none; white-space: nowrap;
}
.navbar-btn:hover { border-color: rgba(255,255,255,0.4); color: var(--text); }
.navbar-btn-ghost { background: transparent; border-color: transparent; }
.navbar-btn-ghost:hover { background: rgba(255,255,255,0.05); }
.navbar-btn-primary {
  position: relative; background: linear-gradient(135deg, #e8e8e8, #c0c0c0); color: #000; font-weight: 600; border: none;
}
.navbar-btn-primary:hover { background: linear-gradient(135deg, #f0f0f0, #d0d0d0); color: #000; border: none; }
/* Glow behind primary button */
.navbar-btn-primary::before {
  content: ''; position: absolute; inset: -4px; border-radius: 999px;
  background: rgba(255,255,255,0.15); filter: blur(8px); opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.navbar-btn-primary:hover::before { opacity: 0.5; }

/* Hamburger */
.navbar-hamburger {
  display: none; width: 32px; height: 32px; align-items: center; justify-content: center;
  background: none; border: 1px solid rgba(51,51,51,0.8); border-radius: 8px;
  color: var(--text-muted); cursor: pointer;
}
.navbar-hamburger:hover { color: var(--text); background: rgba(255,255,255,0.05); }

/* Mobile menu */
.navbar-mobile {
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 0.3s ease-in-out, opacity 0.25s ease-in-out, padding-top 0.25s ease-in-out;
  display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%;
}
.navbar-mobile-nav { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }
.mobile-nav-link {
  font-size: 14px; color: var(--text-muted); text-decoration: none; width: 100%; text-align: center; padding: 8px;
  transition: color 0.2s;
}
.mobile-nav-link:hover { color: var(--text); }
.navbar-mobile-actions { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }

@media (max-width: 768px) {
  .navbar-nav { display: none; }
  .navbar-hamburger { display: flex; }
  .navbar-user { display: none; }
  .navbar-btn-ghost { display: none; }
  .navbar-mobile .navbar-btn-ghost,
  .navbar-mobile .navbar-btn-primary,
  .navbar-mobile .navbar-user { display: flex; }
}

/* Container */
.container { max-width: 1400px; margin: 0 auto; padding: 88px 24px 24px; }
@media (max-width: 768px) { .container { padding: 72px 16px 16px; } }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}
.card-glow {
  position: relative; overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  margin-bottom: 24px;
}
.card-glow::before {
  content: ''; position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 50% 0%, rgba(236, 78, 2, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface2); color: var(--text); font-size: 14px; font-weight: 500; cursor: pointer;
  transition: all 0.2s; text-decoration: none;
}
.btn:hover { background: var(--surface3); color: var(--text); border-color: var(--border-light); }
.btn-primary {
  background: var(--primary); border-color: var(--primary); color: #fff;
  box-shadow: 0 2px 10px rgba(236, 78, 2, 0.2);
}
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; box-shadow: 0 4px 20px rgba(236, 78, 2, 0.3); }
.btn-success { background: var(--success); border-color: var(--success); color: #000; box-shadow: 0 2px 10px rgba(45, 212, 160, 0.2); }
.btn-success:hover { opacity: 0.9; color: #000; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; box-shadow: 0 2px 10px rgba(248, 113, 113, 0.2); }
.btn-danger:hover { opacity: 0.9; color: #fff; }
.btn-warning { background: var(--warning); border-color: var(--warning); color: #000; box-shadow: 0 2px 10px rgba(251, 191, 36, 0.2); }
.btn-warning:hover { opacity: 0.9; color: #000; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-muted); }
.btn-ghost:hover { background: var(--surface2); color: var(--text); }
.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: var(--radius); }
.btn-block { width: 100%; justify-content: center; }
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-pill { border-radius: 50px; }

/* 3D Red button (Restart) */
.btn-3d-danger {
  background: linear-gradient(180deg, #f87171 0%, #dc2626 100%);
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  padding: 10px 22px;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 0 #991b1b, 0 5px 15px rgba(220, 38, 38, 0.3);
  transition: all 0.08s linear;
  transform: translateY(0);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.btn-3d-danger:hover {
  background: linear-gradient(180deg, #fca5a5 0%, #ef4444 100%);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 5px 0 #991b1b, 0 8px 20px rgba(220, 38, 38, 0.4);
}
.btn-3d-danger:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #991b1b, 0 3px 10px rgba(220, 38, 38, 0.2);
}

/* Glow button (like gradient button in the design) */
.btn-glow {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #fff; font-weight: 600;
  border: none; border-radius: 50px;
  padding: 18px 48px;
  transition: all 0.3s;
}
.btn-glow::after {
  content: ''; position: absolute; inset: 4px; border-radius: 46px;
  background: var(--surface); z-index: 1;
  transition: opacity 0.3s;
}
.btn-glow span { position: relative; z-index: 2; }
.btn-glow:hover { transform: scale(1.03); }
.btn-glow:hover::after { opacity: 0.85; }

/* Forms */
.form-group { margin-bottom: 16px; flex: 1; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface2); color: var(--text); font-size: 14px; font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-group small { display: block; font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.form-row { display: flex; gap: 16px; }
.form-actions { display: flex; gap: 10px; margin-top: 16px; }
textarea { resize: vertical; min-height: 80px; }
input::placeholder { color: var(--text-muted); opacity: 0.5; }

/* Tables */
.table-container { overflow-x: auto; margin-bottom: 20px; border-radius: var(--radius); border: 1px solid var(--border); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; padding: 12px 16px; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-muted);
  border-bottom: 1px solid var(--border); white-space: nowrap;
  background: var(--surface2);
}
.table td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.table-sm td, .table-sm th { padding: 8px 12px; font-size: 13px; }
.table tr:hover { background: rgba(236, 78, 2, 0.03); }
.table tr:last-child td { border-bottom: none; }
.row-valid td { border-left: 3px solid var(--success); }
.row-invalid td { border-left: 3px solid var(--danger); }
.row-review td { border-left: 3px solid var(--warning); }
.empty { text-align: center; padding: 48px; color: var(--text-muted); }
.url-cell { max-width: 250px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.actions-col { white-space: nowrap; }
.actions-col .btn { margin-right: 4px; }

/* Badges */
.badge {
  display: inline-block; padding: 4px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 600; text-transform: capitalize;
}
.badge-idle, .badge-pending { background: rgba(139, 143, 163, 0.12); color: var(--text-muted); }
.badge-running { background: rgba(96, 165, 250, 0.12); color: var(--info); }
.badge-completed, .badge-valid, .badge-active { background: rgba(45, 212, 160, 0.12); color: var(--success); }
.badge-error, .badge-invalid, .badge-failed, .badge-disabled { background: rgba(248, 113, 113, 0.12); color: var(--danger); }
.badge-stopped, .badge-review, .badge-slow { background: rgba(251, 191, 36, 0.12); color: var(--warning); }
.badge-limit_reached { background: rgba(248, 113, 113, 0.12); color: var(--danger); }
.badge-banned { background: rgba(248, 113, 113, 0.15); color: var(--danger); }
.badge-activated { background: rgba(45, 212, 160, 0.12); color: var(--success); }
.badge-inactive, .badge-unused { background: rgba(139, 143, 163, 0.12); color: var(--text-muted); }
.badge-used { background: rgba(251, 191, 36, 0.12); color: var(--warning); }

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stats-grid.small { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: border-color 0.2s;
}
.stat-card:hover { border-color: var(--primary); }
.stat-value { font-size: 30px; font-weight: 700; line-height: 1.2; }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.4px; }
.stat-total { border-color: var(--border); }
.stat-valid { border-color: var(--success); }
.stat-invalid { border-color: var(--danger); }
.stat-review { border-color: var(--warning); }
.stat-running { border-color: var(--info); }
.stat-active { border-color: var(--success); }
.stat-failed { border-color: var(--danger); }

/* Meta Grid */
.meta-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; font-size: 14px; }

/* Logs */
.log-container { max-height: 500px; overflow-y: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.log-entry { padding: 8px 12px; border-bottom: 1px solid var(--border); font-size: 13px; font-family: 'SF Mono', 'Fira Code', monospace; display: flex; gap: 12px; }
.log-entry:last-child { border-bottom: none; }
.log-time { color: var(--text-muted); white-space: nowrap; }
.log-action { color: var(--primary); font-weight: 600; white-space: nowrap; }
.log-msg { color: var(--text); }

/* Alerts */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 14px; }
.alert-error { background: rgba(248, 113, 113, 0.08); border: 1px solid rgba(248, 113, 113, 0.2); color: var(--danger); }
.alert-success { background: rgba(45, 212, 160, 0.08); border: 1px solid rgba(45, 212, 160, 0.2); color: var(--success); }
.alert-info { background: rgba(96, 165, 250, 0.08); border: 1px solid rgba(96, 165, 250, 0.2); color: var(--info); }

/* Auth pages */
.auth-page {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
}
.auth-page::before {
  content: ''; position: fixed; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 50% 0%, rgba(236, 78, 2, 0.03) 0%, transparent 50%);
  pointer-events: none;
}
.auth-container { width: 100%; max-width: 420px; padding: 20px; position: relative; z-index: 1; }
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 48px 32px 40px;
}
.auth-card-content { display: flex; flex-direction: column; align-items: center; }
.auth-logo { margin-bottom: 24px; }
.auth-logo svg { width: 40px; height: 48px; color: var(--primary); }
.auth-title { font-size: 28px; font-weight: 600; text-align: center; margin-bottom: 4px; }
.auth-subtitle { font-size: 14px; color: var(--text-muted); text-align: center; margin-bottom: 28px; }
.auth-subtitle a { color: var(--text); font-weight: 500; }
.auth-subtitle a:hover { text-decoration: underline; }
.auth-form { width: 100%; display: flex; flex-direction: column; gap: 14px; }
.auth-input {
  width: 100%; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--border);
  background: var(--surface2); color: var(--text); font-size: 14px; font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.auth-input::placeholder { color: var(--text-muted); opacity: 0.4; }
.auth-btn {
  width: 100%; padding: 12px; border-radius: 14px; border: none;
  background: var(--primary); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: all 0.2s; box-shadow: 0 2px 10px rgba(236, 78, 2, 0.2);
}
.auth-btn:hover { background: var(--primary-hover); box-shadow: 0 4px 20px rgba(236, 78, 2, 0.3); }
.auth-link-btn {
  background: none; border: none; color: var(--text-muted); font-size: 14px; cursor: pointer; padding: 4px;
  text-align: center;
}
.auth-link-btn:hover { color: var(--text); text-decoration: underline; }
.auth-divider { display: flex; align-items: center; gap: 16px; width: 100%; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-divider span { font-size: 13px; color: var(--text-muted); }
.auth-outline-btn {
  width: 100%; padding: 12px; border-radius: 14px;
  border: 1px solid var(--border); background: transparent; color: var(--text); font-size: 14px; font-weight: 500; cursor: pointer;
  transition: all 0.15s; text-align: center; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.auth-outline-btn:hover { background: var(--surface2); }
.auth-terms { font-size: 11px; color: var(--text-muted); text-align: center; max-width: 85%; margin-top: 8px; }
.auth-terms a { text-decoration: underline; color: var(--text-muted); }
.auth-terms a:hover { color: var(--text); }

/* Ping dot */
.ping-dot { position: relative; display: inline-flex; width: 10px; height: 10px; }
.ping-dot .ping { position: absolute; inset: 0; border-radius: 50%; background: var(--primary); animation: ping 1.5s infinite; opacity: 0.75; }
.ping-dot .dot { position: relative; border-radius: 50%; width: 10px; height: 10px; background: var(--primary); }
@keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } }

/* Page header */
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.page-header h1 { font-size: 24px; font-weight: 600; letter-spacing: -0.3px; }
.hidden { display: none !important; }
h3 { font-size: 14px; margin-bottom: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; }
h2 { font-size: 18px; font-weight: 600; }
.section { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-muted { color: var(--text-muted); }
ul { padding-left: 20px; }
ul li { margin-bottom: 6px; font-size: 14px; color: var(--text-muted); }

/* Tag/badge pill */
.tag-pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(236, 78, 2, 0.15); background: rgba(236, 78, 2, 0.05);
  padding: 6px 16px; border-radius: 50px;
  font-size: 13px; font-weight: 500; color: var(--primary);
  backdrop-filter: blur(8px);
}

/* Toggle switch */
.toggle-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.toggle-row label { margin: 0; text-transform: none; letter-spacing: 0; font-size: 14px; cursor: pointer; }
.toggle { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle .slider { position: absolute; inset: 0; background: var(--surface3); border-radius: 24px; cursor: pointer; transition: 0.2s; }
.toggle .slider::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; bottom: 3px; background: var(--text); border-radius: 50%; transition: 0.2s; }
.toggle input:checked + .slider { background: var(--primary); }
.toggle input:checked + .slider::before { transform: translateX(20px); }

/* Section hero */
.hero-section {
  position: relative; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  background: var(--surface);
  min-height: 500px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 24px;
}
.hero-section h2 {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 48px; font-weight: 500; letter-spacing: -1px;
  text-align: center; margin-bottom: 24px; line-height: 1.05;
}
.hero-section p {
  color: var(--text-muted); font-size: 18px;
  max-width: 560px; margin-bottom: 32px; line-height: 1.6;
  text-align: center;
}

/* Copy button */
.copy-btn { cursor: pointer; padding: 2px 8px; font-size: 11px; border-radius: 4px; border: 1px solid var(--border); background: var(--surface2); color: var(--text-muted); }
.copy-btn:hover { color: var(--text); border-color: var(--primary); }
.copy-btn.copied { background: var(--success); color: #000; border-color: var(--success); }

/* Filter bar */
.filter-bar { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.filter-bar input, .filter-bar select { padding: 6px 10px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface2); color: var(--text); font-size: 13px; }

/* Back button */
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 14px; margin-bottom: 16px; }
.back-link:hover { color: var(--text); }

/* Responsive */
/* Table compact helpers */
.table td.actions-col { white-space: nowrap; }
.table td.actions-col .btn-sm { opacity: 0.7; }
.table tr:hover td.actions-col .btn-sm { opacity: 1; }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-muted { color: var(--text-muted); }

/* --- Notification Bell --- */
.notif-bell { position: relative; cursor: pointer; padding: 6px; border-radius: 50%; transition: background 0.2s; color: var(--text-muted); display: flex; align-items: center; }
.notif-bell:hover { background: var(--surface2); color: var(--text); }
.notif-badge { position: absolute; top: 0; right: 0; background: var(--danger); color: #fff; font-size: 9px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; padding: 0 3px; box-shadow: 0 0 0 2px var(--bg); }
.notif-dropdown { position: absolute; top: calc(100% + 8px); right: 0; width: 320px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 8px 32px rgba(0,0,0,0.4); z-index: 100; overflow: hidden; }
@media (max-width: 500px) { .notif-dropdown { right: -40px; width: 280px; } }
.notif-header { padding: 12px 16px; font-size: 13px; font-weight: 600; border-bottom: 1px solid var(--border); }
.notif-list { max-height: 300px; overflow-y: auto; }
.notif-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 16px; font-size: 12px; border-bottom: 1px solid var(--border); transition: background 0.15s; }
.notif-item:hover { background: var(--surface2); }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex-shrink: 0; margin-top: 4px; }
.notif-msg { font-weight: 500; }
.notif-time { font-size: 10px; color: var(--text-muted); margin-top: 2px; }
.notif-footer { display: block; padding: 10px 16px; text-align: center; font-size: 12px; color: var(--primary); border-top: 1px solid var(--border); }
.notif-footer:hover { background: var(--surface2); }

/* --- 3D Counter Card --- */
.stat-card-3d { position: relative; background: linear-gradient(145deg, var(--surface), var(--surface2)); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-align: center; overflow: hidden; transform-style: preserve-3d; perspective: 600px; transition: transform 0.3s, box-shadow 0.3s; }
.stat-card-3d:hover { transform: translateY(-4px) rotateX(2deg); box-shadow: 0 12px 40px rgba(236,78,2,0.15); }
.stat-card-3d .stat-value { font-size: 48px; font-weight: 800; background: linear-gradient(135deg, var(--primary), #ff8c42); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; position: relative; z-index: 1; }
.stat-card-3d .stat-label { font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 6px; position: relative; z-index: 1; }
.stat-card-3d .stat-glow { position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle at 50% 50%, rgba(236,78,2,0.06), transparent 60%); pointer-events: none; animation: pulseGlow 3s ease-in-out infinite; }
@keyframes pulseGlow { 0%, 100% { opacity: 0.4; transform: scale(1); } 50% { opacity: 1; transform: scale(1.1); } }
.stat-card-3d .stat-shine { position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent); animation: shine 4s ease-in-out infinite; pointer-events: none; }
@keyframes shine { 0%, 100% { left: -100%; } 50% { left: 100%; } }

/* --- Notice box --- */
.notice-box { position: relative; }

/* --- CTA Hero Card --- */
.cta-card { position: relative; overflow: hidden; border-radius: 48px; border: 1px solid var(--border); background: var(--surface); box-shadow: 0 4px 24px rgba(0,0,0,0.08); min-height: 500px; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: all 0.5s; }
.cta-card::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.15; background: radial-gradient(ellipse at 50% 50%, var(--primary), transparent 70%); transition: opacity 0.5s; }
.cta-card:hover::before { opacity: 0.3; }
.cta-card::after { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: repeating-linear-gradient(45deg, transparent, transparent 4px, rgba(236,78,2,0.015) 4px, rgba(236,78,2,0.015) 8px); }
.cta-card:hover { border-color: rgba(236,78,2,0.3); }
.cta-card .cta-content { position: relative; z-index: 1; padding: 0 24px; max-width: 720px; text-align: center; display: flex; flex-direction: column; align-items: center; }

/* Stars background for CTA */
.stars-container {
  position: absolute; inset: 0; z-index: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 48px; overflow: hidden;
  background: radial-gradient(ellipse at bottom, #262626 0%, #000 100%);
}
.stars-container canvas { width: 100%; height: 100%; display: block; }
.cta-badge { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; border: 1px solid rgba(236,78,2,0.1); background: rgba(236,78,2,0.05); padding: 6px 16px; font-size: 13px; font-weight: 500; color: var(--primary); backdrop-filter: blur(8px); margin-bottom: 32px; }
.cta-ping { position: relative; display: flex; width: 8px; height: 8px; }
.cta-ping-ring { position: absolute; inset: 0; border-radius: 50%; background: var(--primary); animation: ctaPing 1.5s ease-in-out infinite; opacity: 0.75; }
.cta-ping-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
@keyframes ctaPing { 0%, 100% { transform: scale(1); opacity: 0.75; } 50% { transform: scale(2.5); opacity: 0; } }
.cta-headline { font-size: clamp(32px, 6vw, 72px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; margin-bottom: 32px; }
.cta-headline .muted { color: var(--text-muted); }
.cta-desc { color: var(--text-muted); font-size: clamp(16px, 2vw, 20px); max-width: 560px; margin-bottom: 48px; line-height: 1.6; }
.cta-btn { position: relative; display: inline-flex; height: 56px; align-items: center; gap: 12px; border-radius: 999px; background: var(--primary); padding: 0 48px; font-size: 16px; font-weight: 500; color: #fff; border: none; cursor: pointer; transition: all 0.3s; outline: none; }
.cta-btn:hover { background: var(--primary-hover); transform: scale(1.05); box-shadow: 0 0 0 4px rgba(236,78,2,0.2); }
.cta-btn:active { transform: scale(0.95); }
.cta-btn svg { transition: transform 0.3s; }
.cta-btn:hover svg { transform: translateX(4px); }

/* CTA logo (4-dot cross) */
.cta-logo { position: relative; width: 56px; height: 64px; margin-bottom: 24px; }
.cta-logo .dot { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--text); }
.cta-logo .top { top: 0; left: 50%; transform: translateX(-50%); }
.cta-logo .bottom { bottom: 0; left: 50%; transform: translateX(-50%); }
.cta-logo .left { left: 0; top: 50%; transform: translateY(-50%); }
.cta-logo .right { right: 0; top: 50%; transform: translateY(-50%); }
.cta-logo .center { top: 50%; left: 50%; transform: translate(-50%,-50%); background: var(--primary); width: 18px; height: 18px; }

/* CTA Telegram embed */
.cta-telegram { display: inline-flex; align-items: center; gap: 10px; padding: 12px 24px; border-radius: 14px; border: 1px solid rgba(236,78,2,0.12); background: rgba(236,78,2,0.04); color: var(--text); font-size: 14px; font-weight: 500; text-decoration: none; transition: all 0.25s; margin-top: -16px; }
.cta-telegram svg { color: var(--primary); flex-shrink: 0; }
.cta-telegram:hover { background: rgba(236,78,2,0.1); border-color: rgba(236,78,2,0.25); transform: translateY(-2px); }
.cta-telegram:active { transform: translateY(0); }

/* --- Speeder Success Animation --- */
.speeder-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.65);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.speeder-overlay.active { opacity: 1; }
.speeder {
  position: absolute; top: 50%; left: 50%; margin-left: -50px;
  animation: speeder 0.4s linear infinite;
}
.speeder > span {
  height: 5px; width: 35px;
  background: var(--text);
  position: absolute; top: -19px; left: 60px;
  border-radius: 2px 10px 1px 0;
}
.speeder-base {
  position: absolute; width: 0; height: 0;
  border-top: 6px solid transparent;
  border-right: 100px solid var(--primary);
  border-bottom: 6px solid transparent;
}
.speeder-base:before {
  content: ""; height: 22px; width: 22px; border-radius: 50%;
  background: var(--text-muted);
  position: absolute; right: -110px; top: -16px;
}
.speeder-base:after {
  content: ""; position: absolute;
  width: 0; height: 0;
  border-top: 0 solid transparent;
  border-right: 55px solid var(--primary);
  border-bottom: 16px solid transparent;
  top: -16px; right: -98px;
}
.speeder-face {
  position: absolute; height: 12px; width: 20px;
  background: var(--primary);
  border-radius: 20px 20px 0 0;
  transform: rotate(-40deg);
  right: -125px; top: -15px;
}
.speeder-face:after {
  content: ""; height: 12px; width: 12px;
  background: var(--text);
  right: 4px; top: 7px; position: absolute;
  transform: rotate(40deg);
  transform-origin: 50% 50%;
  border-radius: 0 0 0 2px;
}
.speeder-lines {
  position: absolute; top: -19px; left: 60px;
}
.speeder-lines span {
  display: block; width: 30px; height: 1px;
  background: var(--primary);
  position: absolute;
  animation: fazer1 0.2s linear infinite;
}
.speeder-lines span:nth-child(2) { top: 3px; animation: fazer2 0.4s linear infinite; }
.speeder-lines span:nth-child(3) { top: 1px; animation: fazer3 0.4s linear infinite; animation-delay: -1s; }
.speeder-lines span:nth-child(4) { top: 4px; animation: fazer4 1s linear infinite; animation-delay: -1s; }
@keyframes fazer1 {
  0% { left: 0; }
  100% { left: -80px; opacity: 0; }
}
@keyframes fazer2 {
  0% { left: 0; }
  100% { left: -100px; opacity: 0; }
}
@keyframes fazer3 {
  0% { left: 0; }
  100% { left: -50px; opacity: 0; }
}
@keyframes fazer4 {
  0% { left: 0; }
  100% { left: -150px; opacity: 0; }
}
@keyframes speeder {
  0%   { transform: translate(2px, 1px) rotate(0deg); }
  10%  { transform: translate(-1px, -3px) rotate(-1deg); }
  20%  { transform: translate(-2px, 0px) rotate(1deg); }
  30%  { transform: translate(1px, 2px) rotate(0deg); }
  40%  { transform: translate(1px, -1px) rotate(1deg); }
  50%  { transform: translate(-1px, 3px) rotate(-1deg); }
  60%  { transform: translate(-1px, 1px) rotate(0deg); }
  70%  { transform: translate(3px, 1px) rotate(-1deg); }
  80%  { transform: translate(-2px, -1px) rotate(1deg); }
  90%  { transform: translate(2px, 1px) rotate(0deg); }
  100% { transform: translate(1px, -2px) rotate(-1deg); }
}
.longfazers {
  position: absolute; width: 100%; height: 100%;
  pointer-events: none;
}
.longfazers span {
  position: absolute; height: 2px; width: 20%;
  background: var(--primary);
  opacity: 0.6;
}
.longfazers span:nth-child(1) { top: 20%; animation: lf 0.6s linear infinite; animation-delay: -5s; }
.longfazers span:nth-child(2) { top: 40%; animation: lf2 0.8s linear infinite; animation-delay: -1s; }
.longfazers span:nth-child(3) { top: 60%; animation: lf3 0.6s linear infinite; }
.longfazers span:nth-child(4) { top: 80%; animation: lf4 0.5s linear infinite; animation-delay: -3s; }
@keyframes lf {
  0% { left: 200%; }
  100% { left: -200%; opacity: 0; }
}
@keyframes lf2 {
  0% { left: 200%; }
  100% { left: -200%; opacity: 0; }
}
@keyframes lf3 {
  0% { left: 200%; }
  100% { left: -100%; opacity: 0; }
}
@keyframes lf4 {
  0% { left: 200%; }
  100% { left: -100%; opacity: 0; }
}

/* --- Professional polish pass --- */
html { background: var(--bg); }
body {
  background:
    radial-gradient(circle at 15% -10%, rgba(236, 78, 2, 0.12), transparent 34%),
    radial-gradient(circle at 85% 0%, rgba(96, 165, 250, 0.07), transparent 30%),
    linear-gradient(180deg, #08080d 0%, #0b0b12 42%, #08080d 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.container {
  max-width: 1360px;
  padding: 104px 28px 56px;
}

.navbar {
  top: 16px;
  max-width: 1180px;
  padding: 10px 22px;
  background: rgba(18, 18, 24, 0.82);
  border-color: rgba(255,255,255,0.11);
  box-shadow: 0 18px 60px rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,255,255,0.04);
}
.navbar-nav { gap: 22px; }
.nav-link { font-size: 12px; letter-spacing: 0.01em; }
.navbar-user { color: var(--text); font-weight: 500; }

h1 {
  font-size: clamp(26px, 2.2vw, 34px);
  line-height: 1.1;
  font-weight: 750;
  letter-spacing: -0.04em;
}
h2 { font-size: 18px; letter-spacing: -0.02em; }
.section { margin: 30px 0 14px; }

.card,
.table-container,
.stat-card,
.stat-card-3d,
.log-container,
.auth-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012)), var(--surface);
  border-color: rgba(255,255,255,0.095);
  box-shadow: 0 18px 48px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.035);
}
.card { border-radius: 18px; padding: 22px; }
.card-glow { border-radius: 28px; padding: 34px; }

.btn {
  border-radius: 12px;
  border-color: rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.045);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #ff6a1a);
  border-color: rgba(236,78,2,0.65);
}

.form-group input,
.form-group select,
.form-group textarea,
.filter-bar input,
.filter-bar select {
  background: rgba(255,255,255,0.045);
  border-color: rgba(255,255,255,0.10);
  border-radius: 12px;
}
/* Fix native select dropdown text readability */
select {
  -webkit-appearance: auto;
  appearance: auto;
}
select option {
  color: #000;
  background: #fff;
}

.table-container {
  border-radius: 18px;
  overflow: hidden;
}
.table { font-size: 13px; }
.table th {
  padding: 14px 16px;
  background: rgba(255,255,255,0.035);
  border-bottom-color: rgba(255,255,255,0.08);
}
.table td {
  padding: 14px 16px;
  border-bottom-color: rgba(255,255,255,0.06);
}
.table tr:hover { background: rgba(236, 78, 2, 0.045); }
.empty { padding: 36px; }

.dashboard { margin-top: 8px; }
.dashboard-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 26px 0 18px;
}
.dashboard-eyebrow {
  margin-bottom: 6px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.dashboard .stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}
.stat-card,
.stat-card-3d {
  min-height: 112px;
  padding: 22px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.stat-card:hover,
.stat-card-3d:hover {
  border-color: rgba(236,78,2,0.42);
  transform: translateY(-2px);
  box-shadow: 0 22px 60px rgba(0,0,0,0.28), 0 0 0 1px rgba(236,78,2,0.08);
}
.stat-value {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.stat-label {
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #a5a8ba;
}
.stat-valid,
.stat-active { border-color: rgba(45,212,160,0.32); }
.stat-invalid,
.stat-failed { border-color: rgba(248,113,113,0.32); }
.stat-review { border-color: rgba(251,191,36,0.32); }
.stat-running { border-color: rgba(96,165,250,0.32); }
.stat-card-3d {
  background: linear-gradient(145deg, rgba(236,78,2,0.13), rgba(255,255,255,0.025)), var(--surface);
  perspective: none;
}
.stat-card-3d .stat-value {
  font-size: clamp(30px, 3.2vw, 42px);
}
.stat-card-3d .stat-label { font-size: 11px; letter-spacing: 0.12em; }
.stat-card-3d .stat-glow { opacity: 0.45; animation: none; }
.stat-card-3d .stat-shine { opacity: 0.55; }

#ctaSection { max-width: 1180px; margin: 0 auto 6px; }
.cta-card {
  min-height: 360px;
  border-radius: 32px;
  border-color: rgba(236,78,2,0.22);
  background: rgba(18,18,24,0.82);
  box-shadow: 0 26px 80px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.035);
}
.cta-card::before { opacity: 0.12; }
.cta-card:hover::before { opacity: 0.2; }
.cta-card .cta-content {
  max-width: 780px;
  padding: 54px 28px;
}
.stars-container {
  border-radius: 32px;
  background: radial-gradient(ellipse at 50% 100%, rgba(236,78,2,0.16), transparent 58%), #07070b;
}
.cta-logo { width: 42px; height: 48px; margin-bottom: 18px; }
.cta-logo .dot { width: 10px; height: 10px; background: rgba(240,240,245,0.82); }
.cta-logo .center { width: 14px; height: 14px; background: var(--primary); }
.cta-headline {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
  margin-bottom: 22px;
  font-weight: 720;
}
.cta-desc {
  max-width: 540px;
  margin-bottom: 30px;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.65;
}
.cta-telegram {
  margin-top: 0;
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(236,78,2,0.085);
  border-color: rgba(236,78,2,0.22);
}

@media (max-width: 1100px) {
  .dashboard .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .container { padding: 88px 16px 32px; }
  .navbar { top: 12px; width: calc(100% - 24px); padding: 10px 16px; }
  .dashboard-header { align-items: flex-start; flex-direction: column; }
  .form-row { flex-direction: column; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero-section h2 { font-size: 32px; }
  .card-glow { padding: 24px; border-radius: var(--radius-lg); }
  .auth-card { padding: 32px 20px; border-radius: 24px; }
  .cta-card { min-height: 330px; border-radius: 24px; }
  .stars-container { border-radius: 24px; }
  .cta-card .cta-content { padding: 42px 18px; }
}

@media (max-width: 560px) {
  .dashboard .stats-grid,
  .stats-grid { grid-template-columns: 1fr; }
  .stat-card,
  .stat-card-3d { min-height: 104px; }
  .cta-headline { font-size: 34px; }
  .cta-desc { margin-bottom: 24px; }
  .cta-telegram { width: 100%; justify-content: center; }
}

/* 3D red & black running badge */
.badge-running-3d {
  display: inline-block;
  background: linear-gradient(145deg, #cc0000, #8b0000);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.7);
  box-shadow: 0 3px 0 #4a0000, 0 4px 8px rgba(0,0,0,0.6);
  border: 1px solid #ff3333;
  border-radius: 6px;
  padding: 3px 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  transform: translateY(0);
  transition: transform 0.1s, box-shadow 0.1s;
}
.badge-running-3d:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #4a0000, 0 2px 4px rgba(0,0,0,0.6);
}

/* Timer card for running jobs - 3D card style */
.timer-card {
  margin-top: 20px;
  margin-bottom: 8px;
  padding: 24px 28px;
  background: linear-gradient(160deg, #0f0f0f, #1a0505);
  border: 1px solid #3a0a0a;
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  box-shadow: 0 6px 0 #0a0202, 0 8px 24px rgba(0,0,0,0.7);
  position: relative;
  transform: translateY(0);
  transition: transform 0.15s, box-shadow 0.15s;
}
.timer-card:active {
  transform: translateY(2px);
  box-shadow: 0 4px 0 #0a0202, 0 8px 24px rgba(0,0,0,0.7);
}
.timer-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff4444, #cc0000, transparent);
  border-radius: var(--radius) var(--radius) 0 0;
  pointer-events: none;
}
.timer-elapsed {
  color: #f0f0f5;
  font-size: 15px;
  font-weight: 600;
  padding: 6px 14px;
  background: linear-gradient(145deg, #1a0a0a, #0d0505);
  border: 1px solid #2a0a0a;
  border-radius: var(--radius-sm);
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.03);
}
.timer-elapsed span { color: #ff6666; font-weight: 700; }
.timer-estimated {
  color: #EC4E02;
  font-size: 15px;
  font-weight: 600;
  padding: 6px 14px;
  background: linear-gradient(145deg, #1a0a0a, #0d0505);
  border: 1px solid #2a0a0a;
  border-radius: var(--radius-sm);
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.03);
}
.timer-estimated span { color: #ff8800; font-weight: 700; }
.timer-bar {
  flex: 1;
  min-width: 120px;
  height: 12px;
  background: #0a0a0a;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #2a0a0a;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.6);
}
.timer-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #cc0000, #ff4444, #ff8800);
  border-radius: 6px;
  transition: width 0.5s ease;
  box-shadow: 0 0 8px rgba(255,68,68,0.3);
}
