/* ==========================================================================
   PXL TOOLS — Official Web Design System v3.1
   100% faithful mirror of desktop glass.css — sourced from actual app code
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Russo+One&family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700;800&display=swap');

:root {
  /* === Exact glass.css :root tokens (line 5-32 of app source) === */
  --bg-base: #060d09;
  --bg-titlebar: #040806;
  --bg-sidebar: rgba(8, 18, 13, 0.96);
  --bg-card: rgba(10, 24, 18, 0.88);
  --bg-card-hover: rgba(14, 34, 25, 0.96);
  --bg-input: #07150e;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(16, 185, 129, 0.6);
  --border-gold: rgba(245, 158, 11, 0.5);

  --accent: #10b981;
  --accent-bright: #34d399;
  --accent-glow: rgba(16, 185, 129, 0.3);

  --gold: #f59e0b;
  --gold-glow: rgba(245, 158, 11, 0.25);
  --emerald: #10b981;
  --purple: #a855f7;

  --card-glow-grad: linear-gradient(145deg, rgba(6, 68, 42, 0.26), rgba(8, 22, 16, 0.95));
  --brand-grad: linear-gradient(135deg, #059669, #10b981);
  --btn-primary-grad: linear-gradient(135deg, #059669, #10b981);
  --btn-primary-hover-grad: linear-gradient(135deg, #10b981, #34d399);

  /* App uses Russo One for ALL three font vars */
  --font-display: 'Russo One', sans-serif;
  --font-body: 'Russo One', sans-serif;
  --font-mono: 'Russo One', sans-serif;

  --sidebar-w: 265px;
  --radius: 5px;
  --radius-lg: 7px;
  --radius-sm: 3px;

  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-base);
  color: var(--text-main);
  color-scheme: dark;
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* =====================================================================
   APP WINDOW FRAME — ENFORCED Russo One for everything (glass.css L591)
   ===================================================================== */
.app-window-frame,
.app-window-frame *,
.app-window-frame *::before,
.app-window-frame *::after {
  font-family: 'Russo One', sans-serif !important;
}

/* Restore FA icons inside app frame */
.app-window-frame i.fa,
.app-window-frame i.fas,
.app-window-frame i.fa-solid,
.app-window-frame i.far,
.app-window-frame i.fa-regular,
.app-window-frame i.fab,
.app-window-frame i.fa-brands,
.app-window-frame [class*="fa-"]::before {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
}

/* === AMBIENT GLOWS === */
.ambient-glow-top {
  position: absolute;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

.ambient-glow-bottom {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.2;
}

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* === WEB PAGE TYPOGRAPHY (Inter for the landing page outside the app frame) === */
h1, h2, h3, h4, h5, h6,
.hero-title,
.brand-title,
.stat-number,
.section-title,
.section-subtitle,
.feature-title {
  font-family: 'Russo One', sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 25%, var(--accent-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glow icons — glass.css uses white with drop-shadow */
.glow-accent {
  color: #ffffff !important;
  filter: drop-shadow(0 0 2.5px var(--accent-glow)) !important;
}

.glow-gold {
  color: #ffffff !important;
  filter: drop-shadow(0 0 2.5px rgba(234, 179, 8, 0.45)) !important;
}

/* Gradient text classes from glass.css */
.gradient-gold {
  background: linear-gradient(135deg, #fef3c7, #f59e0b, #d97706);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-accent-app {
  background: linear-gradient(135deg, #ffffff, var(--accent-bright), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-emerald {
  background: linear-gradient(135deg, #d1fae5, #10b981, #059669);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-purple {
  background: linear-gradient(135deg, #f3e8ff, #a855f7, #7e22ce);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* === BUTTONS (web page) === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Russo One', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 11px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  white-space: nowrap;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--btn-primary-grad);
  color: #fff;
  font-weight: 700;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 3px 16px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--btn-primary-hover-grad);
  box-shadow: 0 4px 22px var(--accent-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-active);
  color: #fff;
  transform: translateY(-2px);
}

.btn-discord {
  background: rgba(88, 101, 242, 0.15);
  color: #7289da;
  border: 1px solid rgba(88, 101, 242, 0.35);
}

.btn-discord:hover {
  background: rgba(88, 101, 242, 0.25);
  color: #fff;
  box-shadow: 0 0 16px rgba(88, 101, 242, 0.35);
  transform: translateY(-2px);
}

/* === NAVIGATION BAR (web page) === */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(4, 8, 6, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  gap: 20px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
}

.brand-logo {
  width: 40px;
  height: 40px;
  max-width: 40px;
  max-height: 40px;
  border-radius: 8px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px var(--accent-glow));
}

.brand-title {
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: #ffffff;
}

.brand-title span { color: var(--accent-bright); }

.brand-sub {
  font-family: 'Russo One', sans-serif;
  font-size: 0.62rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-family: 'Russo One', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--accent-bright); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  font-family: 'Russo One', sans-serif;
  font-size: 0.7rem;
  color: var(--accent-bright);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { box-shadow: 0 0 0 6px rgba(0, 0, 0, 0); }
}

/* Language Switcher */
.lang-switch-group {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 2px;
  gap: 2px;
}

.lang-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: 'Russo One', sans-serif;
  font-size: 10px;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  user-select: none;
}

.lang-btn:hover { color: #ffffff; }

.lang-btn.active {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--border-active);
  color: var(--accent-bright);
  font-weight: 700;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.35);
}

/* === HERO SECTION === */
.hero-section {
  padding: 50px 0 30px 0;
  text-align: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: var(--radius);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid var(--border-active);
  font-family: 'Russo One', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--accent-bright);
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  color: #ffffff;
}

.hero-subtitle {
  max-width: 780px;
  margin: 0 auto 24px auto;
  font-size: 0.98rem;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.download-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.73rem;
  color: var(--text-dim);
}

.download-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* === STATS COUNTER BANNER === */
.stats-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 36px 0 44px 0;
}

.stat-box {
  background: var(--card-glow-grad);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 14px;
  text-align: center;
  transition: all 0.25s ease;
}

.stat-box:hover {
  border-color: var(--border-active);
  transform: translateY(-2px);
}

.stat-number {
  font-size: 1.85rem;
  line-height: 1;
  color: #ffffff;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   APP WINDOW SHOWCASE — PIXEL-PERFECT glass.css REPLICA
   Sources: glass.css L646-L1000+ from /home/debian/pxltools/gui/css/glass.css
   ========================================================================== */
.showcase-container {
  margin: 10px 0 60px 0;
}

.app-window-frame {
  background: var(--bg-base);
  border: 1px solid var(--border-active);
  border-radius: 8px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 25px rgba(16, 185, 129, 0.15);
  overflow: hidden;
  text-align: left;
}

/* Custom scrollbars matching glass.css L619-L644 */
.app-window-frame * {
  scrollbar-width: thin;
  scrollbar-color: var(--border-active) rgba(0, 0, 0, 0.35);
}

.app-window-frame ::-webkit-scrollbar { width: 6px; height: 6px; }
.app-window-frame ::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.25); border-radius: 4px; }
.app-window-frame ::-webkit-scrollbar-thumb { background: var(--border-active); border-radius: 4px; border: 1px solid rgba(255, 255, 255, 0.05); }
.app-window-frame ::-webkit-scrollbar-thumb:hover { background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }

/* --- Titlebar (glass.css L646-L741) --- */
.app-titlebar {
  background: var(--bg-titlebar);
  height: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 0 14px;
  border-bottom: 1px solid var(--border-subtle);
  user-select: none;
}

.tb-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tb-icon-box {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tb-icon-box img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* glass.css L676 */
.tb-title {
  font-size: 11px;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

/* glass.css L683-L691 */
.tb-version {
  font-size: 10px;
  color: #64748b;
  margin-left: 2px;
}

.tb-badge-pro {
  font-size: 9px;
  color: var(--accent-bright);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-active);
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 6px;
}

/* glass.css L711-L741 - Window controls */
.tb-controls {
  display: flex;
  align-items: center;
  height: 100%;
}

.tb-controls .win-btn {
  width: 44px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: default;
  font-size: 11px;
}

/* --- App Body (glass.css L744-L763) --- */
.app-body-shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 580px;
  background: var(--bg-base);
}

/* --- Sidebar (glass.css L751-L763) --- */
.app-real-sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  padding: 16px 12px 14px;
  gap: 4px;
  overflow-y: auto;
}

/* Sidebar Brand (glass.css L765-L797) */
.sidebar-header-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 2px 14px 2px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 4px;
}

.sidebar-app-crest {
  width: 68px;
  height: 68px;
  border-radius: 12px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px var(--accent-glow));
  flex-shrink: 0;
}

/* Nav Categories (glass.css L835-L899) */
.sidebar-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease;
}

.sidebar-cat-header:hover {
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-cat-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 700;
}

.sidebar-cat-title i {
  font-size: 12px;
  color: var(--accent-bright);
}

.sidebar-cat-chevron {
  font-size: 8px;
  color: #64748b;
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Nav Subgroup */
.sidebar-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 2px;
}

/* Nav Items (glass.css L901-L971) — with icon boxes */
.sb-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  text-decoration: none;
  color: #94a3b8;
}

.sb-menu-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* Active state (glass.css L919-L925) — GLASS EFFECT */
.sb-menu-item.active {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-active);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45), inset 0 0 12px var(--accent-glow), 0 0 14px var(--accent-glow);
  color: #e2e8f0;
}

/* Nav Icon Box (glass.css L927-L953) */
.nav-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--accent-bright);
  flex-shrink: 0;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.sb-menu-item:hover .nav-icon-box {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: var(--border-active);
}

.sb-menu-item.active .nav-icon-box {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, var(--accent-glow) 100%);
  backdrop-filter: blur(8px);
  color: var(--accent-bright);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.3), 0 0 12px var(--accent-glow);
  border: 1px solid var(--border-active);
  text-shadow: 0 0 8px var(--accent-glow);
}

/* glass.css L955-L971 */
.sb-text-title {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.15;
  text-transform: uppercase;
}

.sb-menu-item.active .sb-text-title { color: #e2e8f0; }
.sb-menu-item:hover .sb-text-title { color: #cbd5e1; }

.sb-text-sub {
  font-size: 10.5px;
  color: #64748b;
  font-weight: 500;
  margin-top: 1px;
}

/* Sidebar Footer (glass.css L973-L1030) */
.sidebar-footer-marketing {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.marketing-user-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 7px 9px;
  gap: 8px;
}

.user-info-col {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-avatar-mini {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #5865F2;
}

.status-mini-group {
  display: flex;
  gap: 5px;
}

.status-mini-item {
  flex: 1;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: 5px;
  padding: 4px 5px;
  text-align: center;
}

.status-mini-lbl {
  font-size: 8px;
  color: #64748b;
}

.status-mini-val {
  font-size: 9px;
  color: var(--accent-bright);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

/* --- Right Main Dashboard (glass.css L1032-L1082) --- */
.app-real-main {
  flex: 1;
  padding: 0;
  background: var(--bg-base);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Page Header (glass.css L1048-L1081) */
.main-header-strip {
  padding: 14px 24px 10px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  background: var(--bg-base);
  position: sticky;
  top: 0;
  z-index: 10;
  flex-shrink: 0;
}

.ph-title {
  font-size: 18px;
  color: #fff;
  margin-top: 1px;
}

.ph-subtitle {
  font-size: 11px;
  color: #64748b;
}

.top-app-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* App buttons (glass.css L1256-L1357) */
.app-btn-top {
  font-size: 11px;
  padding: 7px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.app-btn-top.btn-accent {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-active);
  color: var(--accent-bright);
}

.app-btn-top:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* Main panel content area */
.app-panel-content {
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Farming Config Bar (g-card-glow from glass.css L1096-L1104) */
.farming-config-bar {
  background: var(--card-glow-grad);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 24px var(--accent-glow);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.cfg-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cfg-label {
  font-size: 9px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cfg-control {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 4px 8px;
  font-size: 11.5px;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.badge-auto-spot {
  font-size: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent-bright);
  border: 1px solid var(--border-active);
  padding: 1px 5px;
  border-radius: 3px;
}

.badge {
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.toggle-pill {
  width: 30px;
  height: 16px;
  background: var(--accent);
  border-radius: 8px;
  position: relative;
  box-shadow: 0 0 8px var(--accent-glow);
  cursor: pointer;
  transition: background 0.2s ease;
}

.toggle-pill::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 2px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
}

/* Timer Action Row */
.timer-action-row {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.timer-digits-main {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.06em;
  line-height: 1;
}

.timer-sub-lbl {
  font-size: 8.5px;
  color: #64748b;
  letter-spacing: 0.05em;
  margin-top: 2px;
  text-transform: uppercase;
}

.session-btn-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-app-action {
  font-size: 11px;
  padding: 7px 14px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  transition: all 0.15s ease;
}

.btn-app-start {
  background: var(--btn-primary-grad);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  box-shadow: 0 3px 16px var(--accent-glow);
}

.btn-app-save {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--accent-bright);
}

/* 2-Column Dashboard Grid */
.dash-content-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 12px;
}

/* KPI Cards (glass.css L1208-L1224) */
.kpi-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.15s ease;
}

.kpi-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.12);
}

/* glass.css L1218-L1224 */
.kpi-head {
  font-size: 11px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* glass.css L1208-L1216 — KPI values are 22px */
.kpi-number {
  font-weight: 800;
  font-size: 22px;
  line-height: 1.1;
  margin: 4px 0;
}

.kpi-number.gold { background: linear-gradient(135deg, #fef3c7, #f59e0b, #d97706); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.kpi-number.cyan { background: linear-gradient(135deg, #ffffff, var(--accent-bright), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.kpi-number.emerald { background: linear-gradient(135deg, #d1fae5, #10b981, #059669); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.kpi-number.purple { background: linear-gradient(135deg, #f3e8ff, #a855f7, #7e22ce); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.kpi-footer {
  font-size: 9px;
  color: #64748b;
}

/* Manual Trash Strip */
.manual-trash-strip {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}

.trash-btn-grid {
  display: flex;
  gap: 4px;
}

.btn-trash-adj {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: #cbd5e1;
  font-size: 11px;
  padding: 3px 6px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-trash-adj:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Rare Drops (glass.css L1111-L1125) */
.rare-drops-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 12px;
}

.rare-drops-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.rare-items-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

/* glass.css L1111-L1121 */
.rare-item-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 6px 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  transition: all 0.15s ease;
  color: #e2e8f0;
}

.rare-item-box:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.rare-item-img-box {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 4px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.rare-item-img-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}

.rare-item-info {
  flex: 1;
  min-width: 0;
  line-height: 1.15;
}

.rare-item-name {
  font-size: 9px;
  font-weight: 700;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rare-item-price {
  font-size: 8px;
  color: #fbbf24;
  font-weight: 700;
  margin-top: 1px;
}

.rare-item-stepper {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.btn-step-mini {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.btn-step-mini:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-step-mini.step-plus {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.5);
  color: var(--accent-bright);
}

.btn-step-mini.step-plus:hover {
  background: rgba(16, 185, 129, 0.35);
  color: #fff;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.step-val {
  font-size: 10px;
  font-weight: 700;
  color: #fbbf24;
  min-width: 12px;
  text-align: center;
}

/* --- Live Console Panel --- */
.live-console-panel {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 10px;
  display: flex;
  flex-direction: column;
}

.console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 6px;
}

.console-terminal-body {
  font-size: 9px;
  line-height: 1.6;
  color: #64748b;
  flex: 1;
  min-height: 140px;
  max-height: 230px;
  overflow-y: auto;
}

.log-placeholder {
  color: #475569;
  font-style: italic;
}

.loot-line {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 1.5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  animation: fadeInTab 0.15s ease-out;
}

/* === Tab System Inside App === */
.app-tab-view {
  display: none;
  flex-direction: column;
  width: 100%;
  animation: fadeInTab 0.15s ease-out;
}

.app-tab-view.active { display: flex; }

@keyframes fadeInTab {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === History Tab === */
.hist-summary-strip {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 7px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9.5px;
  color: #94a3b8;
  flex-wrap: wrap;
  gap: 8px;
}

.hist-session-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.15s ease;
}

.hist-session-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.12);
}

.hist-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 5px;
}

.hist-card-body {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  font-size: 9.5px;
}

/* === Analytics Tab === */
.ana-kpis-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.ana-rank-container {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ana-bar-item { display: flex; flex-direction: column; gap: 3px; }
.ana-bar-meta { display: flex; justify-content: space-between; font-size: 9.5px; }
.ana-bar-track { width: 100%; height: 7px; background: rgba(255, 255, 255, 0.05); border-radius: 4px; overflow: hidden; }
.ana-bar-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #059669, var(--accent)); }

/* === Spots Catalog Tab === */
.spots-grid-demo { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }

.spot-demo-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.15s ease;
}

.spot-demo-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.12);
}

/* === Hardware Telemetry Tab === */
.hw-grid-demo { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }

.hw-card-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hw-meter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
}

/* ==========================================================================
   FEATURES SECTION (web page)
   ========================================================================== */
.features-section { padding: 60px 0; }

.section-header { text-align: center; max-width: 760px; margin: 0 auto 40px auto; }

.section-subtitle {
  font-family: 'Russo One', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--accent-bright);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-desc { color: var(--text-muted); font-size: 0.95rem; }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 44px; }

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-active);
  background: var(--bg-card-hover);
}

.feature-icon-box {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-active);
  color: var(--accent-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 16px;
}

.feature-title { font-size: 1rem; color: #fff; margin-bottom: 8px; }

.feature-desc { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; }
.feature-desc code { background: rgba(16, 185, 129, 0.1); color: var(--accent-bright); padding: 1px 4px; border-radius: 3px; font-family: 'JetBrains Mono', monospace; font-size: 0.82rem; }

/* === Security Banner === */
.safety-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.06), rgba(0, 0, 0, 0.6));
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.06);
}

.safety-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-active);
  color: var(--accent-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  flex-shrink: 0;
}

.safety-title { font-size: 1.1rem; color: #ffffff; margin-bottom: 6px; }
.safety-desc { color: var(--text-muted); font-size: 0.88rem; line-height: 1.65; }
.safety-desc code { background: rgba(16, 185, 129, 0.1); color: var(--accent-bright); padding: 1px 4px; border-radius: 3px; font-family: 'JetBrains Mono', monospace; font-size: 0.82rem; }

/* === FOOTER === */
.footer {
  background: var(--bg-titlebar);
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0 22px 0;
  position: relative;
  z-index: 1;
}

.footer-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border-subtle); margin-bottom: 18px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 32px; height: 32px; border-radius: 6px; }
.footer-links { display: flex; align-items: center; gap: 20px; list-style: none; }
.footer-links a { font-family: 'Russo One', sans-serif; font-size: 0.72rem; color: var(--text-muted); text-decoration: none; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--accent-bright); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: 0.75rem; color: var(--text-dim); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .app-body-shell { grid-template-columns: 1fr; }
  .app-real-sidebar { display: none; }
  .dash-content-grid { grid-template-columns: 1fr; }
  .rare-items-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-banner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .nav-links { display: none; }
  .kpi-2x2 { grid-template-columns: 1fr; }
  .rare-items-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-banner { grid-template-columns: 1fr; }
  .safety-banner { flex-direction: column; text-align: center; padding: 20px; }
  .ana-kpis-grid { grid-template-columns: repeat(2, 1fr); }
  .hist-card-body { grid-template-columns: repeat(2, 1fr); }
}
