*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

:root {  
  --bg-gradient: linear-gradient(135deg, #121d09 0%, #1c2b0e 40%, #263813 100%);  
  --bg-surface: rgba(28, 43, 14, 0.75);  
  --bg-surface-light: rgba(45, 69, 23, 0.4);  
  --border-color: rgba(127, 169, 28, 0.25);  
  --border-glow: #7FA91C;  
  --accent-blue: #7FA91C;  
  --accent-light: #96c922;
  --purple-gradient: linear-gradient(135deg, #7FA91C 0%, #638A12 100%);  
  --success-neon: #00ffcc;  
  --text-main: #f5f5f7;  
  --text-muted: #b8cc9a;  
  --text-dark: #6e8a4a;  
  --font-display: 'Oxanium', sans-serif;  
  --font-sans: 'Inter', sans-serif;
}

body {  
  font-family: var(--font-sans);  
  background: var(--bg-gradient);  
  background-attachment: fixed;  
  color: var(--text-main);  
  min-height: 100vh;  
  padding: 0;  
  position: relative;
}

body::before {  
  content: '';  
  position: fixed; 
  inset: 0;  
  background: linear-gradient(rgba(127, 169, 28, 0.02) 1px, transparent 1px),    
              linear-gradient(90deg, rgba(127, 169, 28, 0.02) 1px, transparent 1px),    
              radial-gradient(circle at 0% 100%, rgba(127, 169, 28, 0.2) 0%, transparent 50%),    
              radial-gradient(circle at 100% 0%, rgba(99, 138, 18, 0.25) 0%, transparent 40%);  
  background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%;  
  pointer-events: none; 
  z-index: 0;
}

.wrap { 
  position: relative; 
  z-index: 1; 
  max-width: 1020px; 
  margin: 0 auto; 
  padding: 40px 20px; 
}

/* Header & Logo */
.header {  
  display: flex; 
  align-items: center; 
  justify-content: space-between;  
  margin-bottom: 30px; 
  padding: 15px 26px;  
  background: var(--bg-surface);   
  border: 1px solid var(--border-color);  
  border-top: 2px solid var(--accent-light);  
  border-radius: 12px;  
  backdrop-filter: blur(10px);  
  box-shadow: 0 15px 35px rgba(10, 18, 5, 0.7);
}

.logo-container {   
  display: flex;   
  align-items: center;   
  gap: 16px;   
  position: relative;  
  overflow: hidden;  
  padding: 4px 8px;  
  border-radius: 8px;
}

.logo-container::after {  
  content: '';  
  position: absolute;  
  top: 0; 
  left: -150%;  
  width: 30%; 
  height: 100%;  
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);  
  transform: skewX(-25deg);  
  animation: shine-logo 4s infinite ease-in-out;  
  pointer-events: none;
}

.logo-img { 
  height: 60px; 
  width: auto; 
  object-fit: contain; 
  filter: drop-shadow(0 0 10px rgba(127, 169, 28, 0.6)); 
}

.logo-text-side { 
  display: flex; 
  flex-direction: column; 
}

.logo-title { 
  font-family: var(--font-display); 
  font-size: 22px; 
  font-weight: 800; 
  color: #fff; 
  letter-spacing: 0.05em; 
  line-height: 1.2; 
}

.logo-title span { 
  color: var(--accent-light); 
  text-shadow: 0 0 10px rgba(150, 201, 34, 0.6); 
}

.logo-sub { 
  font-size: 10px; 
  color: var(--text-muted); 
  font-weight: 600; 
  margin-top: 2px; 
  letter-spacing: 0.15em; 
}

/* Status Indicator */
.status { 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  font-family: var(--font-display); 
  font-size: 11px; 
  font-weight: 700; 
  color: #fff; 
  background: rgba(18, 29, 9, 0.6); 
  padding: 6px 12px; 
  border-radius: 20px; 
  border: 1px solid var(--border-color); 
}

.dot { 
  width: 8px; 
  height: 8px; 
  border-radius: 50%; 
  background: var(--success-neon); 
  box-shadow: 0 0 12px var(--success-neon); 
  animation: blink 1.8s infinite; 
}

@keyframes blink { 
  0%, 100% { opacity: 1; } 
  50% { opacity: 0.3; } 
}

/* Navigation Tabs */
.tabs {  
  display: flex; 
  gap: 8px; 
  margin-bottom: 25px;  
  background: rgba(18, 29, 9, 0.6); 
  padding: 5px; 
  border-radius: 12px; 
  border: 1px solid var(--border-color);
}

.tab-btn {  
  flex: 1; 
  padding: 14px 10px;  
  font-family: var(--font-display); 
  font-size: 11px; 
  font-weight: 700;  
  text-transform: uppercase; 
  background: transparent; 
  border: none; 
  color: var(--text-muted);  
  cursor: pointer; 
  border-radius: 8px; 
  transition: all 0.2s ease; 
  letter-spacing: 0.03em;  
  position: relative; 
  overflow: hidden; 
  text-align: center;
}

.tab-btn:hover:not(.active) { 
  color: #fff; 
  background: rgba(127, 169, 28, 0.1); 
}

.tab-btn.active {   
  background: var(--purple-gradient);   
  color: #fff;   
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 4px 15px rgba(18, 29, 9, 0.5);   
  border: 1px solid rgba(150, 201, 34, 0.4); 
}

.tab-btn.active::after {  
  content: '';  
  position: absolute;  
  top: 0; 
  left: -150%;  
  width: 50%; 
  height: 100%;  
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);  
  transform: skewX(-30deg);  
  animation: shine-tab 3.5s infinite ease-in-out;
}

@keyframes shine-tab {  0% { left: -150%; }  30%, 100% { left: 150%; } }
@keyframes shine-logo {  0% { left: -150%; }  25%, 100% { left: 150%; } }

/* Panels & Form Elements */
.panel { display: none; }
.panel.active { 
  display: block; 
  animation: panelIn 0.3s cubic-bezier(0.25, 1, 0.5, 1); 
}

@keyframes panelIn { 
  from { opacity: 0; transform: translateY(8px); } 
  to { opacity: 1; transform: none; } 
}

.field-label {  
  font-family: var(--font-display); 
  font-size: 11px; 
  color: #fff;  
  text-transform: uppercase; 
  margin-bottom: 8px; 
  letter-spacing: 0.05em; 
  display: flex; 
  align-items: center; 
  gap: 10px;
}

.field-label::after { 
  content: ''; 
  flex: 1; 
  height: 1px; 
  background: linear-gradient(90deg, var(--border-color), transparent); 
}

.row { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 16px; 
  margin-bottom: 20px; 
}

textarea {  
  width: 100%; 
  height: 180px;  
  background: rgba(14, 23, 7, 0.75); 
  color: #fff;  
  border: 1px solid var(--border-color); 
  border-radius: 10px;  
  padding: 14px; 
  font-family: var(--font-sans); 
  font-size: 13px;  
  line-height: 1.5; 
  resize: vertical; 
  transition: all 0.2s;  
  backdrop-filter: blur(5px);
}

textarea:focus { 
  outline: none; 
  border-color: var(--border-glow); 
  box-shadow: 0 0 12px rgba(127, 169, 28, 0.35); 
  background: rgba(22, 35, 11, 0.85); 
}

textarea::placeholder { color: var(--text-dark); }

select {
  width: 100%;
  padding: 10px 14px;
  background: rgba(14, 23, 7, 0.75);
  color: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  outline: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

select:hover {
  border-color: var(--accent-light);
}

select:focus {
  border-color: var(--border-glow);
  box-shadow: 0 0 12px rgba(127, 169, 28, 0.35);
  background: rgba(22, 35, 11, 0.85);
}

select option {
  background: #121d09;
  color: var(--text-main);
}

/* Action Controls */
.btn-row { 
  display: flex; 
  align-items: center; 
  gap: 16px; 
  margin-bottom: 25px; 
}

.run-btn {  
  padding: 14px 35px; 
  background: #fff; 
  color: #1c2b0e;  
  border: none; 
  border-radius: 8px; 
  font-family: var(--font-display);  
  font-size: 13px; 
  font-weight: 800; 
  cursor: pointer; 
  transition: all 0.2s;  
  letter-spacing: 0.05em; 
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);  
  position: relative; 
  overflow: hidden;
}

.run-btn::after {  
  content: '';  
  position: absolute;  
  top: 0; 
  left: -150%;  
  width: 40%; 
  height: 100%;  
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);  
  transform: skewX(-30deg);  
  animation: shine-tab 4s infinite ease-in-out;  
  animation-delay: 1s;
}

.run-btn:hover { 
  background: var(--accent-light); 
  color: #fff; 
  box-shadow: 0 5px 20px rgba(150, 201, 34, 0.5); 
  transform: translateY(-1px); 
}

.run-btn:active { transform: translateY(1px); }

.hint { 
  font-size: 11px; 
  color: var(--text-muted); 
  font-style: italic; 
}

/* Summary Stats Bar */
.summary-bar { 
  display: flex; 
  gap: 14px; 
  margin-bottom: 25px; 
}

.stat {  
  flex: 1; 
  background: var(--bg-surface); 
  border: 1px solid var(--border-color);  
  border-radius: 10px; 
  padding: 16px 20px; 
  backdrop-filter: blur(10px);  
  box-shadow: 0 8px 25px rgba(10, 18, 5, 0.4);
}

.stat-label { 
  font-size: 10px; 
  color: var(--text-muted); 
  font-weight: 600; 
  text-transform: uppercase; 
  margin-bottom: 6px; 
  letter-spacing: 0.05em; 
}

.stat-val { 
  font-family: var(--font-display); 
  font-size: 32px; 
  font-weight: 700; 
  color: #fff; 
  line-height: 1; 
}

.stat-val.danger { 
  color: #ff5e9c; 
  text-shadow: 0 0 10px rgba(255,94,156,0.3); 
}

.stat-val.success { 
  color: var(--success-neon); 
  text-shadow: 0 0 10px rgba(0,255,204,0.3); 
}

.stat-bar { 
  height: 3px; 
  background: rgba(0,0,0,0.4); 
  margin-top: 10px; 
  overflow: hidden; 
  border-radius: 2px; 
}

.stat-bar-fill { 
  height: 100%; 
  width: 0%; 
  background: var(--text-muted); 
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1); 
}

.stat-bar-fill.danger { background: linear-gradient(90deg, #ff5e9c, #ff8eb9); }
.stat-bar-fill.success { background: linear-gradient(90deg, #00ffcc, #66ffd9); }

/* Data Tables & Results */
.result-wrap { 
  background: var(--bg-surface); 
  border: 1px solid var(--border-color); 
  border-radius: 12px; 
  overflow: hidden; 
  backdrop-filter: blur(10px); 
  box-shadow: 0 15px 30px rgba(10, 18, 5, 0.5); 
}

.table-head-bar {  
  background: rgba(18, 29, 9, 0.6); 
  padding: 14px 20px;  
  border-bottom: 1px solid var(--border-color);  
  display: flex; 
  align-items: center; 
  justify-content: space-between;
}

.table-head-bar span { 
  font-family: var(--font-display); 
  font-size: 11px; 
  color: #fff; 
  font-weight: 700; 
  letter-spacing: 0.05em; 
}

.table-scroll { 
  max-height: 350px; 
  overflow-y: auto; 
}

.table-scroll::-webkit-scrollbar { width: 6px; }
.table-scroll::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); }
.table-scroll::-webkit-scrollbar-thumb { background: rgba(127, 169, 28, 0.4); border-radius: 3px; }
.table-scroll::-webkit-scrollbar-thumb:hover { background: var(--accent-light); }

.result-table { 
  width: 100%; 
  border-collapse: collapse; 
  font-size: 13px; 
}

.result-table th {  
  text-align: left; 
  padding: 14px 20px;  
  font-family: var(--font-display); 
  font-size: 11px; 
  text-transform: uppercase;  
  color: var(--text-muted); 
  background: rgba(14, 23, 7, 0.7); 
  font-weight: 700;  
  border-bottom: 1px solid var(--border-color); 
  position: sticky; 
  top: 0; 
  z-index: 2; 
  letter-spacing: 0.05em;
}

.result-table td { 
  padding: 13px 20px; 
  border-bottom: 1px solid rgba(127, 169, 28, 0.12); 
  color: var(--text-main); 
}

.result-table tr:last-child td { border-bottom: none; }
.result-table tbody tr:hover td { background: rgba(127, 169, 28, 0.1); }

.id-cell { 
  font-family: var(--font-display); 
  font-weight: 700; 
  color: #fff; 
  letter-spacing: 0.02em; 
}

.num-cell { 
  color: var(--text-dark); 
  font-family: var(--font-display); 
  font-size: 12px; 
}

/* Badges & Empty States */
.badge {  
  display: inline-flex; 
  align-items: center; 
  gap: 6px;  
  font-size: 10px; 
  font-weight: 700; 
  padding: 4px 12px;  
  border-radius: 20px; 
  text-transform: uppercase; 
  font-family: var(--font-display); 
  letter-spacing: 0.05em;
}

.badge-dot { 
  width: 6px; 
  height: 6px; 
  border-radius: 50%; 
}

.badge.bad { 
  background: rgba(255, 94, 156, 0.15); 
  color: #ff8eb9; 
  border: 1px solid rgba(255, 94, 156, 0.3); 
}

.badge.bad .badge-dot { 
  background: #ff5e9c; 
  box-shadow: 0 0 8px #ff5e9c; 
}

.badge.ok { 
  background: rgba(0, 255, 204, 0.1); 
  color: #5effda; 
  border: 1px solid rgba(0, 255, 204, 0.25); 
}

.badge.ok .badge-dot { 
  background: var(--success-neon); 
  box-shadow: 0 0 8px var(--success-neon); 
}

.badge-site {
  display: inline-block;
  padding: 3px 8px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(127, 169, 28, 0.15);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.no-data { 
  padding: 50px; 
  text-align: center; 
  color: var(--text-muted); 
  font-family: var(--font-display); 
  font-size: 12px; 
  background: var(--bg-surface); 
  border: 1px dashed var(--border-color); 
  border-radius: 12px; 
}

.center-msg { 
  text-align: center; 
  padding: 30px; 
  font-family: var(--font-display); 
  font-size: 13px; 
}