
/* --- /data/data/com.termux/files/home/dashboard/static/style.css --- */
:root {
  --bg-black: #000000;
  --bg-deep: #080808;
  --bg-card: #0e0e11;
  --bg-card-raised: #141418;
  --bg-card-hover: #1a1a22;
  
  --border-subtle: #202026;
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow-green: rgba(34, 197, 94, 0.4);
  
  --text-main: #ffffff;
  --text-sub: #a1a1aa;
  --text-muted: #71717a;
  
  --neon-green: #00ff00;
  --neon-green-glow: #22c55e;
  --neon-cyan: #06b6d4;
  --neon-blue: #2784d5;
  --neon-amber: #f59e0b;
  --neon-red: #de3c37;
  --neon-purple: #a855f7;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.6);
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.hidden {
  display: none !important;
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-black);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.5;
  min-height: 100vh;
  padding: 16px;
  -webkit-font-smoothing: antialiased;
}

.app-container {
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  box-sizing: border-box;
}

/* Lucide Icon Helpers */
svg.lucide {
  stroke-width: 2px;
  vertical-align: middle;
}
.icon-brand-green { width: 20px; height: 20px; color: var(--neon-green); }
.icon-xs { width: 14px; height: 14px; }
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 20px; height: 20px; }
.icon-lg { width: 24px; height: 24px; }
.icon-inline { width: 13px; height: 13px; margin-right: 2px; display: inline-block; }
.icon-neon-green { color: var(--neon-green); }

/* ==========================================================================
   DEVCOREX GLASS HEADER
   ========================================================================== */
.devcorex-header {
  background: rgba(14, 14, 17, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  box-shadow: var(--shadow-card);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.header-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 12px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  cursor: pointer;
}

.brand-logo-box {
  width: 36px;
  height: 36px;
  background: #000;
  border: 1px solid var(--neon-green-glow);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.25);
  flex-shrink: 0;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-title {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: #fff;
}

.brand-version-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  background: rgba(34, 197, 94, 0.15);
  color: var(--neon-green);
  border: 1px solid rgba(34, 197, 94, 0.35);
  flex-shrink: 0;
}

.brand-subtitle {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.header-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Cloudflare Logo Button (Compact) */
.header-cf-icon-btn {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: var(--neon-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.15);
}

.header-cf-icon-btn:hover {
  background: rgba(34, 197, 94, 0.2);
  border-color: var(--neon-green);
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.35);
  color: #fff;
}

.cf-globe-icon {
  width: 16px;
  height: 16px;
}

/* Expand / Collapse Button */
.header-expand-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-sub);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.header-expand-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.header-chevron-icon {
  width: 15px;
  height: 15px;
}

.header-collapsible-content {
  width: 100%;
}

.meta-pills-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.meta-glass-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  padding: 5px 10px;
  border-radius: var(--radius-xs);
  color: var(--text-sub);
}

.btn-refresh-pill {
  cursor: pointer;
  transition: var(--transition);
}

.btn-refresh-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

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

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.devcorex-icon-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-sub);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.devcorex-icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   DEVCOREX SEGMENTED NAVIGATION TAB BAR
   ========================================================================== */
.devcorex-nav-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 5px;
  overflow-x: auto;
  white-space: nowrap;
}

.devcorex-nav-bar::-webkit-scrollbar {
  height: 3px;
}
.devcorex-nav-bar::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
}

.devcorex-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.devcorex-tab-btn:hover {
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
}

.devcorex-tab-btn.active {
  background: var(--bg-card-raised);
  border-color: rgba(34, 197, 94, 0.4);
  color: var(--neon-green);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.15);
}

.devcorex-tab-btn .tab-icon {
  width: 17px;
  height: 17px;
}

/* Panes */
.devcorex-tab-pane {
  display: none;
  flex-direction: column;
  gap: 16px;
  animation: fadeIn 0.25s ease;
}

.devcorex-tab-pane.active {
  display: flex;
}

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

/* ==========================================================================
   DEVCOREX HARDWARE TELEMETRY CARDS
   ========================================================================== */
.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.devcorex-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.devcorex-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.card-window-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-subtle);
}

.window-dots {
  display: flex;
  gap: 5px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #eab308; }
.dot-green { background: #22c55e; }

.window-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.window-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-sub);
}

.window-tag.tag-green {
  background: rgba(34, 197, 94, 0.15);
  color: var(--neon-green);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.window-tag.tag-cyan {
  background: rgba(6, 182, 212, 0.15);
  color: var(--neon-cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.window-tag.tag-amber {
  background: rgba(245, 158, 11, 0.15);
  color: var(--neon-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.card-content-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.metric-display-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.metric-big-num {
  font-size: 1.9rem;
  font-weight: 800;
  font-family: var(--font-mono);
  line-height: 1;
  color: #fff;
}

.metric-unit-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

.devcorex-progress-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.devcorex-progress-bar {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.bar-green { background: linear-gradient(90deg, #10b981, #00ff00); box-shadow: 0 0 8px rgba(0, 255, 0, 0.4); }
.bar-cyan { background: linear-gradient(90deg, #06b6d4, #3b82f6); box-shadow: 0 0 8px rgba(6, 182, 212, 0.4); }
.bar-emerald { background: #10b981; }
.bar-amber { background: linear-gradient(90deg, #f59e0b, #eab308); }

.card-foot-text {
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* 8-CORE CPU BREAKDOWN GRID */
.cpu-card-breakdown .card-content-body {
  gap: 12px;
}

.cpu-cores-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px 8px;
  width: 100%;
}

@media (max-width: 540px) {
  .cpu-cores-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cpu-core-item {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xs);
  padding: 5px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.2s ease;
}

.cpu-core-item:hover {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.3);
  transform: translateY(-1px);
}

.cpu-core-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1;
}

.cpu-core-name {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.65rem;
}

.cpu-core-pct {
  color: #4ade80;
  font-weight: 700;
  font-size: 0.68rem;
}

.cpu-core-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.cpu-core-bar {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #38bdf8);
  border-radius: 2px;
  transition: width 0.35s ease-in-out;
}

/* High load core color */
.cpu-core-bar.core-hot {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.cpu-core-bar.core-offline {
  background: #52525b;
}

/* MULTI-SEGMENT PROGRESS TRACKS (RAM & STORAGE) */
.segmented-progress-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  gap: 1px;
}

.seg-bar {
  height: 100%;
  transition: width 0.35s ease-in-out;
}

.seg-bar.seg-used {
  background: linear-gradient(90deg, #06b6d4, #3b82f6);
}

.seg-bar.seg-cached {
  background: linear-gradient(90deg, #f59e0b, #eab308);
}

/* TACTICAL CARD MINI CHIPS GRID */
.card-mini-chips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 8px;
  margin-top: 4px;
}

.mini-chip-item {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xs);
  padding: 5px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: all 0.2s ease;
}

.mini-chip-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.mini-chip-lbl {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.mini-chip-val {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

.mini-chip-val.val-green {
  color: #4ade80;
}

.mini-chip-val.val-cyan {
  color: #38bdf8;
}

.mini-chip-val.val-amber {
  color: #fbbf24;
}

.mini-chip-val.val-muted {
  color: var(--text-muted);
}

.bar-emerald {
  background: linear-gradient(90deg, #10b981, #059669);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.bar-amber {
  background: linear-gradient(90deg, #f59e0b, #d97706);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.35);
}

/* ==========================================================================
   DEVCOREX PANELS & MODULAR ACTION TILES
   ========================================================================== */
.devcorex-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.panel-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-icon {
  width: 22px;
  height: 22px;
}

.panel-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.panel-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Modular Action Cards Grid */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.module-card {
  background: var(--bg-card-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.module-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.border-green-glow:hover { border-color: rgba(34, 197, 94, 0.5); box-shadow: 0 0 14px rgba(34, 197, 94, 0.15); }
.border-red-glow:hover { border-color: rgba(239, 68, 68, 0.5); box-shadow: 0 0 14px rgba(239, 68, 68, 0.15); }
.border-cyan-glow:hover { border-color: rgba(6, 182, 212, 0.5); box-shadow: 0 0 14px rgba(6, 182, 212, 0.15); }
.border-amber-glow:hover { border-color: rgba(245, 158, 11, 0.5); box-shadow: 0 0 14px rgba(245, 158, 11, 0.15); }

.module-icon-box {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bg-green-subtle { background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.25); }
.bg-red-subtle { background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.25); }
.bg-cyan-subtle { background: rgba(6, 182, 212, 0.12); border: 1px solid rgba(6, 182, 212, 0.25); }
.bg-amber-subtle { background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.25); }

.icon-module {
  width: 20px;
  height: 20px;
}
.icon-module.green { color: var(--neon-green); }
.icon-module.red { color: #ef4444; }
.icon-module.cyan { color: var(--neon-cyan); }
.icon-module.amber { color: var(--neon-amber); }

.module-content {
  flex: 1;
  min-width: 0;
}

.module-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.module-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
}

.module-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: var(--radius-xs);
}

.badge-green { background: rgba(34, 197, 94, 0.15); color: var(--neon-green); border: 1px solid rgba(34, 197, 94, 0.3); }
.badge-red { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-cyan { background: rgba(6, 182, 212, 0.15); color: var(--neon-cyan); border: 1px solid rgba(6, 182, 212, 0.3); }
.badge-amber { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }

.module-desc {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.module-arrow {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: var(--transition);
}

.module-card:hover .module-arrow {
  color: #fff;
  transform: translateX(4px);
}

/* Services Chips Grid */
.services-chips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.service-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-card-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: var(--transition);
}

.service-chip:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
}

.service-chip-icon {
  width: 20px;
  height: 20px;
  color: var(--text-sub);
}

.service-chip-meta {
  flex: 1;
  min-width: 0;
}

.service-chip-name {
  font-size: 0.82rem;
  font-weight: 600;
  display: block;
}

.service-chip-sub {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.status-badge-neon {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.status-badge-neon.green {
  background: rgba(34, 197, 94, 0.12);
  color: var(--neon-green);
  border: 1px solid rgba(34, 197, 94, 0.35);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.2);
}

/* ==========================================================================
   DEVCOREX CLOUD DRIVE & TACTICAL FTP COCKPIT (ZERO-OVERFLOW)
   ========================================================================== */
.cloud-drive-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  min-width: 0;
}

/* 1. TACTICAL FTP SERVER COCKPIT BANNER */
.ftp-cockpit-banner {
  background: var(--bg-card);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4), 0 0 25px rgba(245, 158, 11, 0.05);
  position: relative;
  overflow: hidden;
  width: 100%;
  min-width: 0;
}

.ftp-cockpit-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #f59e0b, #eab308);
}

.ftp-banner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  width: 100%;
  min-width: 0;
}

.ftp-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.ftp-icon-badge {
  width: 40px;
  height: 40px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fbbf24;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}

.ftp-pulse-icon {
  width: 22px;
  height: 22px;
  animation: pulse-dot 2.5s infinite ease-in-out;
}

.ftp-header-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ftp-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ftp-main-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.ftp-sub-title {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.ftp-collapsible-content {
  display: block;
  width: 100%;
  min-width: 0;
}

.btn-toggle-ftp-mobile {
  display: none;
}

.ftp-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-copy-ftp {
  padding: 8px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* Tactical FTP Chips Grid */
.ftp-chips-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
  min-width: 0;
}

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

@media (max-width: 500px) {
  .ftp-chips-grid {
    grid-template-columns: 1fr;
  }
}

.ftp-chip-item {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xs);
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  overflow: hidden;
}

.ftp-chip-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.ftp-chip-val {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 2. HORIZONTAL QUICK PLACES CAROUSEL BAR */
.cloud-places-carousel {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  width: 100%;
  min-width: 0;
}

.cloud-places-carousel::-webkit-scrollbar {
  display: none;
}

.place-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 6px 12px;
  cursor: pointer;
  color: var(--text-sub);
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.place-chip-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.place-chip-btn.active {
  background: rgba(34, 197, 94, 0.1);
  border-color: var(--neon-green);
  color: #fff;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.15);
}

.place-badge {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.badge-storage { background: rgba(6, 182, 212, 0.15); color: #06b6d4; }
.badge-download { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.badge-photo { background: rgba(236, 72, 153, 0.15); color: #ec4899; }
.badge-audio { background: rgba(168, 85, 247, 0.15); color: #a855f7; }
.badge-video { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.badge-doc { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.badge-terminal { background: rgba(34, 197, 94, 0.2); color: var(--neon-green); }

/* 3. TACTICAL CUSTOM FILE & FOLDER BADGES (NO DEFAULT ICONS) */
.tactical-thumb-badge {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-xs);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  position: relative;
  transition: transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.cloud-card:hover .tactical-thumb-badge {
  transform: scale(1.08);
}

.tactical-badge-icon {
  width: 22px;
  height: 22px;
}

.tactical-badge-tag {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1;
  padding: 1px 3px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.5);
}

/* Tactical Color Themes */
.badge-cyber-folder {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.1));
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
}

.badge-cyber-image {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.1));
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34d399;
}

.badge-cyber-video {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(220, 38, 38, 0.1));
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #f87171;
}

.badge-cyber-audio {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(147, 51, 234, 0.1));
  border: 1px solid rgba(168, 85, 247, 0.45);
  color: #c084fc;
}

.badge-cyber-code {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(8, 145, 178, 0.1));
  border: 1px solid rgba(6, 182, 212, 0.45);
  color: #38bdf8;
}

.badge-cyber-pdf {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.25), rgba(225, 29, 72, 0.1));
  border: 1px solid rgba(244, 63, 94, 0.45);
  color: #fb7185;
}

.badge-cyber-doc {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(37, 99, 235, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.45);
  color: #60a5fa;
}

.badge-cyber-archive {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.25), rgba(234, 88, 12, 0.1));
  border: 1px solid rgba(249, 115, 22, 0.45);
  color: #fb923c;
}

.badge-cyber-apk {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(22, 163, 74, 0.1));
  border: 1px solid rgba(34, 197, 94, 0.45);
  color: #4ade80;
}

.badge-cyber-file {
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.2), rgba(100, 116, 139, 0.1));
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #cbd5e1;
}

.tactical-thumb-image-wrap {
  width: 48px;
  height: 48px;
  position: relative;
  border-radius: var(--radius-xs);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tactical-badge-img-tag {
  position: absolute;
  bottom: 2px;
  right: 2px;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.75);
  color: #4ade80;
  padding: 1px 3px;
  border-radius: 2px;
}

/* Cloud Main Content */
.cloud-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.cloud-top-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cloud-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 7px 12px;
  flex: 1;
  min-width: 200px;
}

.cloud-search-box:focus-within {
  border-color: var(--neon-green);
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

.search-icon {
  width: 15px;
  height: 15px;
  color: var(--text-muted);
}

#file-search-input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.82rem;
  width: 100%;
}

.btn-clear-search {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
}

.cloud-actions-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.view-switcher-group {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 2px;
}

.view-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.view-btn.active {
  background: var(--bg-card-raised);
  color: var(--neon-green);
}

.btn-devcorex-primary {
  background: #000;
  border: 1px solid var(--neon-green-glow);
  color: var(--neon-green);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.15);
}

.btn-text-label {
  display: inline;
}

.btn-devcorex-primary:hover {
  background: var(--neon-green);
  color: #000;
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
}

.btn-devcorex-dark {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-sub);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-devcorex-dark:hover {
  background: var(--bg-card-raised);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-devcorex-icon {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-sub);
  padding: 7px 10px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-devcorex-icon:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Breadcrumbs */
.cloud-breadcrumb-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 12px;
  background: #000;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
}

.cloud-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  overflow-x: auto;
  white-space: nowrap;
}

.crumb {
  color: var(--neon-cyan);
  cursor: pointer;
}
.crumb:hover { text-decoration: underline; }
.crumb-sep { color: var(--text-muted); }
.crumb.active { color: #fff; font-weight: 700; cursor: default; }

.items-count-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.cloud-dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.01);
  color: var(--text-muted);
  font-size: 0.74rem;
  transition: var(--transition);
}

.cloud-dropzone.dragover {
  border-color: var(--neon-green);
  background: rgba(34, 197, 94, 0.08);
  color: var(--neon-green);
}

.drop-icon {
  width: 18px;
  height: 18px;
}

.cloud-viewport {
  height: calc(100vh - 280px);
  min-height: 520px;
  max-height: 80vh;
  overflow-y: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  background: #000;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cloud-section-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Grid Cards */
.view-grid .cloud-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
}

.cloud-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.cloud-card:hover {
  background: var(--bg-card-raised);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.cloud-card.is-folder {
  border-color: rgba(245, 158, 11, 0.2);
}

.cloud-card.is-folder:hover {
  border-color: var(--neon-amber);
}

.card-thumb-wrap {
  height: 85px;
  background: #060608;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-thumb-icon {
  width: 38px;
  height: 38px;
  color: var(--text-sub);
}
.card-thumb-icon.folder { color: #fbbf24; }
.card-thumb-icon.image { color: #38bdf8; }
.card-thumb-icon.video { color: #f43f5e; }
.card-thumb-icon.audio { color: #a855f7; }
.card-thumb-icon.archive { color: #f59e0b; }
.card-thumb-icon.code { color: #4ade80; }

.card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.card-name {
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
}

.card-actions-bar {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 6px;
}

.card-action-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-sub);
  font-size: 0.68rem;
  padding: 3px 6px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
  text-decoration: none;
}

.card-action-btn:hover {
  background: var(--bg-card-raised);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.card-action-btn.btn-delete:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #ef4444;
}

/* List View */
.view-list .cloud-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.view-list .cloud-card {
  flex-direction: row;
  align-items: center;
  padding: 8px 10px;
  gap: 10px;
}

.view-list .card-thumb-wrap {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.view-list .card-thumb-icon { width: 16px; height: 16px; }

.view-list .card-info {
  flex: 1;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.view-list .card-name { max-width: 300px; }
.view-list .card-actions-bar { border-top: none; padding-top: 0; }

.cloud-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 35px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.devcorex-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--neon-green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.spinning { animation: spin 0.8s linear infinite; }

/* ==========================================================================
   DEVCOREX FULL-STACK STUDIO V3
   ========================================================================== */
.extractor-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.extractor-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  background: #000;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 9px 12px;
}

.extractor-input-wrap:focus-within {
  border-color: var(--neon-green);
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

.input-icon { width: 16px; height: 16px; color: var(--text-muted); }

#extract-url-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.85rem;
  font-family: var(--font-sans);
}

.extract-btn {
  padding: 10px 18px;
  white-space: nowrap;
}

.sample-links-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.sample-title {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
}

.sample-chip {
  background: #000;
  border: 1px solid var(--border-subtle);
  color: var(--text-sub);
  font-size: 0.7rem;
  font-family: var(--font-mono);
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: var(--transition);
}

.sample-chip:hover {
  border-color: var(--neon-green);
  color: var(--neon-green);
}

.extractor-result-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #000;
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-xs);
  padding: 14px;
}

.result-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.result-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.result-url-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #fff;
}

.result-time-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.res-stats-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
}

.stat-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-sub);
}

.extractor-meta-dual-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.res-fonts-wrapper,
.res-colors-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background: var(--bg-card);
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
  flex: 1;
  min-width: 250px;
}

.colors-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

.fonts-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.font-chip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  color: var(--neon-cyan);
}

.colors-list {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.color-swatch {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

/* Studio Sub-Toolbar with Device Switcher */
.studio-sub-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
  gap: 10px;
  flex-wrap: wrap;
}

.extractor-tabs-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
}

.ext-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
  white-space: nowrap;
}

.ext-tab-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.03); }

.ext-tab-btn.active {
  background: var(--bg-card);
  color: var(--neon-green);
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.15);
}

/* Device Resolution Switcher */
.preview-device-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 2px 4px;
}

.device-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
  text-decoration: none;
}

.device-btn:hover { color: #fff; }
.device-btn.active {
  background: var(--bg-card-raised);
  color: var(--neon-green);
}

.ext-tab-copy {
  margin-left: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-sub);
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ext-tab-copy:hover {
  color: var(--neon-green);
  border-color: var(--neon-green);
}

.extractor-viewport-container {
  min-height: 600px;
  background: #040406;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  overflow: hidden;
  position: relative;
}

.tab-content {
  display: none;
  width: 100%;
  height: 100%;
  overflow: auto;
}

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

/* Responsive Device Frame Stage */
.preview-stage-wrapper {
  background: #08080a;
  padding: 16px;
  min-height: 600px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: auto;
}

.preview-device-frame {
  margin: 0 auto;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #fff;
}

.preview-device-frame.desktop {
  width: 100%;
  height: 620px;
  border-radius: var(--radius-xs);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.preview-device-frame.tablet {
  width: 768px;
  height: 640px;
  padding: 10px;
  background: #18181b;
  border: 2px solid #27272a;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.preview-device-frame.mobile {
  width: 390px;
  height: 640px;
  padding: 12px 8px;
  background: #18181b;
  border: 3px solid #27272a;
  border-radius: 28px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.9);
}

.extractor-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #fff;
  border-radius: 4px;
  display: block;
}

.code-block {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.45;
  color: #86efac;
  padding: 14px;
  display: block;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Endpoints Inspector List */
.endpoints-list-container {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.endpoint-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  overflow: hidden;
  transition: var(--transition);
}

.endpoint-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.endpoint-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  cursor: pointer;
  background: var(--bg-card-raised);
}

.endpoint-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
}

.method-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  letter-spacing: 0.05em;
}

.method-badge.GET { background: rgba(34, 197, 94, 0.15); color: var(--neon-green); border: 1px solid rgba(34, 197, 94, 0.35); }
.method-badge.POST { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.35); }
.method-badge.PUT { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.35); }
.method-badge.DELETE { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.35); }
.method-badge.WS { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.35); }

.endpoint-path {
  font-size: 0.82rem;
  color: #fff;
  font-weight: 600;
}

.endpoint-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-toggle-json {
  background: #000;
  border: 1px solid var(--border-subtle);
  color: var(--text-sub);
  font-size: 0.68rem;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  cursor: pointer;
}

.btn-toggle-json:hover { color: #fff; border-color: rgba(255, 255, 255, 0.25); }

.endpoint-body-json {
  display: none;
  padding: 10px 14px;
  background: #000;
  border-top: 1px solid var(--border-subtle);
}

.endpoint-body-json.open { display: block; }

.endpoint-json-pre {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #93c5fd;
  margin: 0;
  white-space: pre-wrap;
}

.backend-banner {
  background: rgba(34, 197, 94, 0.08);
  border-bottom: 1px solid rgba(34, 197, 94, 0.25);
  padding: 10px 14px;
}

.backend-banner-text strong {
  color: var(--neon-green);
  font-size: 0.82rem;
  display: block;
}

.backend-banner-text p {
  color: var(--text-sub);
  font-size: 0.72rem;
  margin-top: 2px;
}

.backend-banner-text code {
  background: #000;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  color: #fff;
  font-family: var(--font-mono);
}

/* ==========================================================================
   DEVCOREX RADAR DE RED & WI-FI
   ========================================================================== */
.radar-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.radar-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.radar-glass-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 8px;
  background: #000;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 5px;
}

.radar-glass-pill .pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 5px var(--neon-green);
}

.radar-glass-pill.offline .pill-dot {
  background: var(--neon-red);
  box-shadow: none;
}

.radar-glass-pill.pill-cyan {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.3);
  color: var(--neon-cyan);
}

.wifi-radio-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wifi-radio-banner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  background: #000;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 12px;
}

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

.wifi-meta-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.wifi-meta-val {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
}

.wifi-switch-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 8px 12px;
  flex-wrap: wrap;
}

.switch-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-sub);
}

.btn-wifi-band {
  background: #000;
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.btn-wifi-band:hover {
  border-color: var(--neon-green);
  color: var(--neon-green);
}

.btn-wifi-band.active {
  background: rgba(34, 197, 94, 0.15);
  border-color: var(--neon-green);
  color: var(--neon-green);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.3);
}

/* Speedtest */
.speedtest-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 12px 16px;
  gap: 12px;
  flex-wrap: wrap;
}

.speedtest-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.speedtest-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
}

.speed-time-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

.speed-metrics-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.speed-meter {
  display: flex;
  flex-direction: column;
}

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

.meter-val {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--neon-green);
}

.meter-val small { font-size: 0.7rem; color: var(--text-muted); }

/* Radar Grid */
.radar-sub-header h3 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.radar-devices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.radar-device-card {
  background: var(--bg-card-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.radar-device-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--neon-green);
  transform: translateY(-2px);
}

.radar-device-card.self-device {
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.04);
}

.dev-avatar {
  width: 36px;
  height: 36px;
  background: #000;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.dev-avatar-icon {
  width: 18px;
  height: 18px;
  color: var(--text-sub);
}

.dev-status-indicator {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dev-status-indicator.online { background: var(--neon-green); box-shadow: 0 0 6px var(--neon-green); }
.dev-status-indicator.offline { background: var(--text-muted); }

.dev-meta {
  flex: 1;
  min-width: 0;
}

.dev-name {
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dev-sub {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-sub);
}

.dev-port-badge {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--neon-cyan);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
}

/* ==========================================================================
   DEVCOREX TERMINAL
   ========================================================================== */
.terminal-wrapper {
  padding: 0;
  overflow: hidden;
}

.terminal-ctrl-btns {
  display: flex;
  gap: 4px;
}

.btn-micro {
  background: #000;
  border: 1px solid var(--border-subtle);
  color: var(--text-sub);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: var(--transition);
}

.btn-micro:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.term-shortcuts {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: #060608;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  overflow-x: auto;
  white-space: nowrap;
}

.shortcut-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.btn-shortcut {
  background: #000;
  border: 1px solid var(--border-subtle);
  color: var(--neon-green);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  cursor: pointer;
}

.btn-shortcut:hover {
  background: var(--neon-green);
  color: #000;
}

.terminal-viewport {
  height: 520px;
  background: #000;
  padding: 10px;
  border-radius: var(--radius-xs);
  transition: all 0.2s ease-in-out;
}

/* TERMINAL FULLSCREEN MODE */
.terminal-fullscreen-body {
  overflow: hidden !important;
}

#tab-terminal.terminal-fullscreen-active {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #000000 !important;
  border-radius: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

#tab-terminal.terminal-fullscreen-active .terminal-wrapper {
  height: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 0 !important;
}

#tab-terminal.terminal-fullscreen-active .card-window-head {
  padding: 8px 16px !important;
  background: #090d16 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 0 !important;
}

#tab-terminal.terminal-fullscreen-active .term-shortcuts {
  padding: 6px 14px !important;
  background: #030712 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

#tab-terminal.terminal-fullscreen-active .terminal-viewport {
  flex: 1 1 0 !important;
  height: auto !important;
  min-height: 0 !important;
  width: 100% !important;
  padding: 12px !important;
  border-radius: 0 !important;
  box-sizing: border-box !important;
}

.btn-term-expand {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(34, 197, 94, 0.15) !important;
  color: #4ade80 !important;
  border: 1px solid rgba(34, 197, 94, 0.3) !important;
}

.btn-term-expand:hover {
  background: rgba(34, 197, 94, 0.3) !important;
  color: #fff !important;
}

/* ==========================================================================
   PREVIEW MODAL & PORT MODAL
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 14px;
}

.preview-modal-card, .modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  width: 90%;
  max-width: 720px;
  max-height: 85vh;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: var(--bg-card-raised);
  border-bottom: 1px solid var(--border-subtle);
}

.modal-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
}

.modal-header p {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-sub);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0 4px;
}

.preview-modal-body {
  padding: 14px;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  min-height: 240px;
}

.modal-body {
  padding: 18px 20px;
  overflow-y: auto;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.preview-image-view {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: var(--radius-xs);
}

.preview-media-player {
  width: 100%;
  max-height: 60vh;
  outline: none;
}

.preview-text-view {
  width: 100%;
  max-height: 60vh;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.45;
  color: #86efac;
  background: #040406;
  padding: 12px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
  overflow: auto;
  white-space: pre-wrap;
}

.btn-sm { padding: 4px 10px; font-size: 0.72rem; }

/* Toast */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--bg-card-raised);
  color: #fff;
  padding: 9px 16px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--neon-green-glow);
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.25);
  font-size: 0.82rem;
  font-weight: 600;
  z-index: 9999;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.hidden {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 768px) {
  body { padding: 10px; }
  .app-container { gap: 10px; }
  .devcorex-header { padding: 10px 14px; }
  .header-actions { width: 100%; justify-content: space-between; }
  .devcorex-nav-bar { gap: 4px; padding: 4px; }
  .devcorex-tab-btn { padding: 6px 10px; font-size: 0.75rem; }
  .telemetry-grid { grid-template-columns: 1fr 1fr; }
  .modules-grid { grid-template-columns: 1fr; }
  
  .cloud-drive-layout { grid-template-columns: 1fr; }
  .sidebar-places { flex-direction: row; overflow-x: auto; white-space: nowrap; padding-bottom: 4px; }
  .place-btn { flex-shrink: 0; }
  .sidebar-storage-widget { display: none; }
  .sidebar-ftp-card { display: none; }
  .cloud-top-toolbar { flex-direction: column; align-items: stretch; }
  .cloud-actions-row { width: 100%; justify-content: space-between; }

  .extractor-input-row { flex-direction: column; }
  .extract-btn { width: 100%; justify-content: center; }
  .result-header-bar { flex-direction: column; align-items: flex-start; }
  .studio-sub-toolbar { flex-direction: column; align-items: stretch; }
  .preview-device-switcher { justify-content: center; width: 100%; }
  .preview-stage-wrapper { padding: 6px; }
}

/* ==========================================================================
   GLOBAL CLOUDFLARE TUNNEL HEADER PILL
   ========================================================================== */
.meta-glass-pill.tunnel-pill {
  cursor: pointer;
  border-color: rgba(34, 197, 94, 0.3);
  transition: var(--transition);
}

.meta-glass-pill.tunnel-pill:hover {
  border-color: var(--neon-green);
  background: rgba(34, 197, 94, 0.08);
}

.status-pulse-dot.inactive {
  background: #64748b;
  box-shadow: none;
  animation: none;
}

.status-pulse-dot.starting {
  background: #f59e0b;
  box-shadow: 0 0 10px #f59e0b;
}

/* ==========================================================================
   GLOBAL CLOUDFLARE TUNNEL MODAL (SPACIOUS 2-COLUMN COCKPIT)
   ========================================================================== */
.tunnel-modal-card-spacious {
  max-width: 680px;
  width: 94%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(34, 197, 94, 0.06);
  overflow: hidden;
  position: relative;
  margin: auto;
  display: flex;
  flex-direction: column;
  animation: modalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-close-btn-abs {
  position: absolute;
  top: 14px;
  right: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-sub);
  font-size: 1.3rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.modal-close-btn-abs:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transform: scale(1.05);
}

.tunnel-spacious-header {
  padding: 20px 24px 16px 24px;
  background: var(--bg-card-raised);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tunnel-header-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tunnel-header-title-wrap h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: -0.01em;
}

.tunnel-spacious-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.tunnel-spacious-body {
  padding: 22px 24px;
  width: 100%;
}

/* Inactive / Starting Screen */
.tunnel-inactive-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 15px 0;
  width: 100%;
}

.tunnel-info-box-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: var(--bg-card-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
  width: 100%;
  max-width: 480px;
}

.tunnel-info-box-centered p {
  font-size: 0.85rem;
  color: var(--text-sub);
  line-height: 1.5;
  margin: 0;
}

.btn-tunnel-start {
  width: 100%;
  max-width: 280px;
  padding: 12px 20px;
  justify-content: center;
  font-weight: 700;
}

/* Two-Column Cockpit Grid */
.tunnel-active-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  align-items: center;
  width: 100%;
}

@media (max-width: 580px) {
  .tunnel-active-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.tunnel-qr-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.tunnel-qr-frame {
  background: #ffffff;
  padding: 8px;
  border-radius: var(--radius-xs);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(34, 197, 94, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.tunnel-qr-frame:hover {
  transform: scale(1.02);
}

.tunnel-qr-frame img {
  width: 136px;
  height: 136px;
  display: block;
}

.tunnel-qr-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.tunnel-links-stage {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.tunnel-link-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
}

.tunnel-link-card.card-short-featured {
  background: rgba(34, 197, 94, 0.04);
  border-color: rgba(34, 197, 94, 0.25);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tunnel-link-card.card-short-featured:hover {
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.07);
}

.tunnel-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tunnel-card-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tunnel-badge-ssl {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--neon-green);
  font-weight: 600;
}

.tunnel-input-group {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.tunnel-clean-input {
  flex: 1;
  background: #000;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 8px 11px;
  color: #4ade80;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  outline: none;
  min-width: 0;
  transition: all 0.2s ease;
}

.tunnel-clean-input.input-muted {
  color: #cbd5e1;
  font-weight: 500;
  font-size: 0.75rem;
}

.tunnel-clean-input:focus {
  border-color: var(--neon-green);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.25);
}

.btn-chip-copy, .btn-chip-open {
  padding: 8px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  text-decoration: none;
  cursor: pointer;
}

.tunnel-bottom-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-top: 4px;
}

.btn-renew-action {
  font-size: 0.75rem;
  padding: 8px 14px;
  font-weight: 600;
  width: 100%;
  justify-content: center;
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-sub);
}

.btn-renew-action:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   UNIVERSAL MEDIA EXTRACTOR (DEVCOREX UNIFIED DESIGN)
   ========================================================================== */

/* --- Preview Card --- */
.media-card-preview {
  margin-top: 10px;
  padding: 16px;
  background: #000;
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-xs);
  animation: fadeIn 0.25s ease;
}

.media-preview-container {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.media-thumb-wrap {
  position: relative;
  width: 220px;
  height: 124px;
  flex-shrink: 0;
  border-radius: var(--radius-xs);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border-subtle);
}

.media-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-duration-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  font-weight: 600;
}

.media-details-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.media-title-row {
  display: flex;
  align-items: flex-start;
}

.media-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
}

.media-meta-sub {
  display: flex;
  align-items: center;
  gap: 10px;
}

.media-uploader {
  font-size: 0.78rem;
  color: var(--neon-cyan);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.media-format-selector-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.format-choice-group,
.quality-choice-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.format-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
}

.format-pills {
  display: flex;
  gap: 6px;
}

.format-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #000;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  color: var(--text-sub);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.format-pill:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.format-pill.active {
  background: rgba(34, 197, 94, 0.1);
  border-color: var(--neon-green);
  color: var(--neon-green);
}

.media-tasks-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  margin-bottom: 10px;
}

.media-tasks-header h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
}

.media-tasks-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.media-task-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #000;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  gap: 12px;
  transition: var(--transition);
}

.media-task-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.media-task-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.media-task-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.media-task-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-task-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.media-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.media-task-progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.media-task-progress-fill {
  height: 100%;
  background: var(--neon-green);
  transition: width 0.3s ease;
}

.media-task-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.task-badge-format {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  flex-shrink: 0;
}

.task-badge-format.video {
  background: rgba(39, 132, 213, 0.15);
  border: 1px solid rgba(39, 132, 213, 0.4);
  color: var(--neon-blue);
}

.task-badge-format.audio {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: var(--neon-purple);
}

.text-red { color: #ef4444 !important; }
.text-cyan { color: #06b6d4 !important; }
.text-purple { color: #a855f7 !important; }
.text-blue { color: #3b82f6 !important; }
.text-amber { color: #f59e0b !important; }

@media (max-width: 768px) {
  .media-omnibar {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    border-radius: 10px;
  }
  .media-omnibar-input {
    width: 100%;
    order: 2;
    padding: 6px 0;
  }
  .media-omnibar-left {
    order: 1;
  }
  .media-omnibar-actions {
    order: 3;
    width: 100%;
    justify-content: flex-end;
  }
  .btn-omnibar-analyze {
    flex: 1;
  }
  .media-preview-container { flex-direction: column; }
  .media-thumb-wrap { width: 100%; height: 180px; }
  .media-format-selector-row { flex-direction: column; align-items: stretch; }
  .media-task-card { flex-direction: column; align-items: stretch; }
  .media-task-actions { justify-content: flex-end; }
}

/* ==========================================================================
   CYBERSECURITY & SECOPS SUITE STYLES (HIGH-TECH BESPOKE UI)
   ========================================================================== */
.cyber-sub-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px;
  background: rgba(10, 15, 29, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.cyber-sub-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-xs);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cyber-sub-icon {
  width: 15px;
  height: 15px;
  opacity: 0.75;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.cyber-sub-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.cyber-sub-btn:hover .cyber-sub-icon {
  opacity: 1;
  transform: translateY(-1px);
}

.cyber-sub-btn.active {
  background: rgba(34, 197, 94, 0.12);
  color: var(--neon-green);
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.15), inset 0 0 10px rgba(34, 197, 94, 0.05);
}

.cyber-sub-btn.active .cyber-sub-icon {
  opacity: 1;
  color: var(--neon-green);
}

/* Pane Header & Badges */
.cyber-pane-head {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.cyber-title-group {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.cyber-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-xs);
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.12);
}

.icon-brand-green {
  width: 20px;
  height: 20px;
  color: var(--neon-green);
}

.cyber-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cyber-tag-chip {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--neon-cyan);
  border: 1px solid rgba(56, 189, 248, 0.25);
  letter-spacing: 0.5px;
}

/* Cyber Console Input Bar */
.cyber-input-bar {
  display: flex;
  gap: 12px;
  align-items: center;
}

.cyber-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #030712;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xs);
  padding: 10px 14px;
  transition: all 0.2s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.cyber-input-wrap:focus-within {
  border-color: var(--neon-green);
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.25), inset 0 1px 3px rgba(0, 0, 0, 0.6);
}

.cyber-prompt-tag {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--neon-green);
  user-select: none;
}

.cyber-input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.85rem;
  font-family: var(--font-mono);
}

.cyber-input-wrap input::placeholder {
  color: #4b5563;
  font-family: var(--font-sans);
}

.cyber-kbd-hint {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  color: #6b7280;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 3px;
  user-select: none;
}

.btn-cyber-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-weight: 700;
  white-space: nowrap;
}

/* Dots & Small Status Indicators */
.badge-dot-green {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 6px var(--neon-green);
}

.badge-dot-red {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 6px #ef4444;
}

.badge-dot-cyan {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 6px var(--neon-cyan);
}

/* Results Section & Summary */
.cyber-results-box {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cyber-results-summary {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.cyber-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: var(--neon-green);
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.cyber-stat-pill.secondary {
  background: rgba(148, 163, 184, 0.06);
  border-color: rgba(148, 163, 184, 0.2);
  color: #94a3b8;
}

/* OSINT Cards Grid */
.osint-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}

.osint-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(13, 18, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-xs);
  transition: all 0.2s ease;
  text-decoration: none;
}

.osint-card.found {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.04);
}

.osint-card.found:hover {
  border-color: var(--neon-green);
  background: rgba(34, 197, 94, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), 0 0 10px rgba(34, 197, 94, 0.15);
}

.osint-card-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.osint-platform-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-green);
}

.osint-card-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
}

.osint-card-title.muted {
  color: #6b7280;
}

.osint-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.osint-badge.found {
  background: rgba(34, 197, 94, 0.15);
  color: var(--neon-green);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.osint-badge.not-found {
  background: rgba(100, 116, 139, 0.12);
  color: #64748b;
  border: 1px solid rgba(100, 116, 139, 0.2);
}

/* Web Audit Score Card */
.audit-score-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px;
  background: rgba(13, 18, 30, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(12px);
}

.score-circle-wrap {
  flex-shrink: 0;
}

.score-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #000;
  border: 3px solid var(--neon-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--neon-green);
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.3);
}

.score-circle.grade-b {
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.3);
}

.score-circle.grade-c {
  border-color: #f59e0b;
  color: #f59e0b;
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.3);
}

.score-circle.grade-f {
  border-color: #ef4444;
  color: #ef4444;
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.3);
}

.score-meta-wrap h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.score-meta-wrap p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 10px;
}

.score-meta-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.audit-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.audit-section-box {
  background: rgba(13, 18, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xs);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.audit-box-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.icon-neon-green { color: var(--neon-green); }
.icon-neon-cyan { color: var(--neon-cyan); }

.audit-box-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.audit-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.audit-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-xs);
}

.audit-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.audit-item-name {
  font-size: 0.76rem;
  font-weight: 700;
  color: #fff;
}

.audit-item-name small {
  color: var(--text-muted);
  font-weight: 400;
}

.audit-item-pill {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.audit-item-pill.pass { background: rgba(34, 197, 94, 0.12); color: var(--neon-green); border: 1px solid rgba(34, 197, 94, 0.25); }
.audit-item-pill.fail { background: rgba(239, 68, 68, 0.12); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.25); }
.audit-item-pill.info { background: rgba(56, 189, 248, 0.12); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.25); }

.audit-item-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.audit-item-rec {
  font-size: 0.68rem;
  color: #fbbf24;
  font-family: var(--font-mono);
  margin-top: 2px;
}

/* SSL Grid */
.audit-ssl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.ssl-stat-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-xs);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.ssl-lbl {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ssl-val {
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  word-break: break-all;
}

.ssl-val.muted {
  color: var(--text-muted);
}

/* Port Results Table */
.port-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xs);
  background: rgba(13, 18, 30, 0.6);
}

.port-results-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.78rem;
}

.port-results-table th {
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 14px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.port-results-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #fff;
}

.port-num-tag {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--neon-green);
}

.port-proto-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-left: 2px;
}

.port-badge-open {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--neon-green);
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.25);
  padding: 2px 8px;
  border-radius: 10px;
}

.port-service-name {
  font-weight: 600;
  color: #f3f4f6;
}

.port-banner-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--neon-cyan);
  background: #000;
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.port-no-banner {
  color: #4b5563;
  font-size: 0.72rem;
}

/* Domain Recon Grid */
.domain-recon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.recon-card {
  background: rgba(13, 18, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xs);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.recon-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.recon-card-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.recon-data-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recon-data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-xs);
  font-size: 0.78rem;
}

.recon-lbl {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.recon-val {
  font-weight: 600;
  color: #fff;
}

.recon-val code {
  color: var(--neon-cyan);
}

/* Crypto Tools */
.crypto-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.crypto-card {
  background: rgba(13, 18, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xs);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.crypto-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.crypto-card-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.crypto-textarea {
  width: 100%;
  height: 84px;
  background: #030712;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xs);
  padding: 10px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  outline: none;
  resize: vertical;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
  transition: border-color 0.2s ease;
}

.crypto-textarea:focus {
  border-color: var(--neon-green);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.2), inset 0 1px 3px rgba(0, 0, 0, 0.6);
}

.hash-results-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hash-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-xs);
  padding: 6px 10px;
}

.hash-type {
  width: 64px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--neon-green);
  flex-shrink: 0;
}

.hash-val {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-hash-copy {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  width: 26px;
  height: 26px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-hash-copy:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.jwt-output-box {
  background: #030712;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xs);
  padding: 12px;
  min-height: 140px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #fff;
  overflow-x: auto;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.jwt-placeholder {
  color: #6b7280;
  font-size: 0.74rem;
  line-height: 1.4;
}

.jwt-header-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.jwt-json-block {
  margin: 0 0 10px 0;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  font-size: 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.jwt-json-block.cyan { color: #38bdf8; }
.jwt-json-block.green { color: var(--neon-green); }

.jwt-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.jwt-meta-item {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 8px;
  border-radius: 4px;
}

.jwt-error-box {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ef4444;
  font-weight: 600;
  font-size: 0.75rem;
}

/* ==========================================================================
   COMPREHENSIVE MULTI-DEVICE RESPONSIVE OPTIMIZATION (PC, TABLET, MOBILE)
   ========================================================================== */

/* 1. DESKTOP & WIDESCREEN DISPLAYS (>= 1200px) */
@media (min-width: 1200px) {
  .app-container {
    max-width: 1360px;
    padding: 24px 32px;
    gap: 20px;
  }

  .telemetry-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .quick-actions-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .dashboard-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .terminal-box {
    height: 520px;
  }

  .media-preview-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    align-items: center;
  }

  .audit-details-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .crypto-dual-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 2. TABLETS & MEDIUM DISPLAYS (768px to 1199px) */
@media (max-width: 1199px) and (min-width: 768px) {
  .app-container {
    max-width: 100%;
    padding: 18px 22px;
    gap: 16px;
  }

  .telemetry-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .quick-actions-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .cpu-cores-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .dashboard-split-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .terminal-box {
    height: 440px;
  }

  .devcorex-tab-btn {
    padding: 8px 14px;
    font-size: 0.8rem;
  }
}

/* 3. MOBILE SMARTPHONES (<= 767px) */
@media (max-width: 767px) {
  body {
    padding: 6px;
  }

  .app-container {
    max-width: 100%;
    padding: 2px;
    gap: 8px;
  }

  /* Ultra-Compressed & Expandable Header Card on Mobile (Guaranteed Zero Overflow) */
  .devcorex-header {
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 100%;
    overflow: hidden;
  }

  .header-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .header-top-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 8px;
  }

  .brand-group {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
    cursor: pointer;
  }

  .brand-logo-box {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.2);
    flex-shrink: 0;
  }

  .brand-logo-box svg {
    width: 14px;
    height: 14px;
  }

  .brand-text-wrap {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
    overflow: hidden;
  }

  .brand-title-row {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    overflow: hidden;
  }

  .brand-title {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-version-badge {
    font-size: 0.52rem;
    padding: 1px 3px;
    flex-shrink: 0;
  }

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

  .header-cf-icon-btn {
    padding: 5px 8px;
    border-radius: 4px;
    height: 30px;
    gap: 5px;
  }

  .cf-globe-icon {
    width: 15px;
    height: 15px;
  }

  .header-expand-btn {
    width: 30px;
    height: 30px;
    border-radius: 4px;
  }

  .header-chevron-icon {
    width: 15px;
    height: 15px;
  }

  /* COLLAPSED STATE (DEFAULT ON MOBILE) */
  .devcorex-header.header-collapsed-mobile .brand-subtitle {
    display: none !important;
  }

  .devcorex-header.header-collapsed-mobile .header-collapsible-content {
    display: none !important;
  }

  /* EXPANDED STATE (ON TOUCH EXPANSION) */
  .devcorex-header:not(.header-collapsed-mobile) {
    padding: 12px 14px;
  }

  .devcorex-header:not(.header-collapsed-mobile) .brand-subtitle {
    display: block !important;
    font-size: 0.68rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    margin-top: 3px;
  }

  .devcorex-header:not(.header-collapsed-mobile) .header-collapsible-content {
    display: block !important;
    width: 100%;
    margin-top: 4px;
  }

  .devcorex-header:not(.header-collapsed-mobile) .meta-pills-row {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    width: 100%;
  }

  .devcorex-header:not(.header-collapsed-mobile) .meta-glass-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    font-size: 0.72rem;
    width: 100%;
  }

  .devcorex-header:not(.header-collapsed-mobile) .devcorex-icon-btn {
    width: 100%;
    height: 34px;
    border-radius: var(--radius-xs);
    font-size: 0.76rem;
    gap: 6px;
  }

  /* Horizontal Touch Tab Navigation */
  .devcorex-nav-bar {
    padding: 4px;
    gap: 4px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
  }

  .devcorex-nav-bar::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }

  .devcorex-tab-btn {
    padding: 8px 13px;
    font-size: 0.76rem;
    gap: 6px;
    flex-shrink: 0;
  }

  /* Telemetry Cards Mobile Horizontal Carousel */
  .telemetry-grid {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    gap: 10px !important;
    padding: 2px 2px 8px 2px !important;
    width: 100% !important;
    min-width: 0 !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(34, 197, 94, 0.3) transparent;
  }

  .telemetry-grid::-webkit-scrollbar {
    height: 4px;
  }

  .telemetry-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
  }

  .telemetry-grid::-webkit-scrollbar-thumb {
    background: rgba(34, 197, 94, 0.35);
    border-radius: 4px;
  }

  .telemetry-grid .devcorex-card {
    flex: 0 0 86% !important;
    max-width: 320px !important;
    min-width: 275px !important;
    scroll-snap-align: center !important;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    margin: 0;
  }

  .card-content-body {
    padding: 10px 12px;
    gap: 6px;
  }

  .metric-big-num {
    font-size: 1.55rem;
  }

  /* 8-Core CPU Breakdown on Mobile */
  .cpu-cores-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
  }

  .cpu-core-item {
    padding: 4px 6px;
  }

  .cpu-core-name {
    font-size: 0.6rem;
  }

  .cpu-core-pct {
    font-size: 0.64rem;
  }

  /* Mini-Chips Grid */
  .card-mini-chips-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
  }

  .mini-chip-item {
    padding: 4px 6px;
  }

  .mini-chip-label {
    font-size: 0.58rem;
  }

  .mini-chip-val {
    font-size: 0.68rem;
  }

  /* Quick Actions Stack */
  .quick-actions-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .action-card-body {
    padding: 12px 14px;
  }

  .btn-action-trigger {
    min-height: 44px;
    font-size: 0.82rem;
  }

  /* Terminal Termux Mobile */
  .terminal-box {
    height: 360px;
  }

  .terminal-quick-bar {
    overflow-x: auto;
    white-space: nowrap;
    padding: 6px 8px;
    gap: 6px;
    scrollbar-width: none;
  }

  .terminal-quick-bar::-webkit-scrollbar {
    display: none;
  }

  .btn-term-quick {
    padding: 5px 10px;
    font-size: 0.72rem;
    flex-shrink: 0;
  }

  /* CyberSec Hub Mobile */
  .cyber-subnav-bar {
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    padding: 4px;
    gap: 4px;
  }

  .cyber-subnav-bar::-webkit-scrollbar {
    display: none;
  }

  .cyber-subnav-btn {
    padding: 7px 12px;
    font-size: 0.74rem;
    flex-shrink: 0;
  }

  .cyber-input-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .cyber-input-field {
    width: 100%;
  }

  .btn-cyber-primary {
    width: 100%;
    min-height: 42px;
    justify-content: center;
  }

  .audit-details-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .domain-recon-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .crypto-dual-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .audit-score-card {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    padding: 16px;
  }

  /* Media Extractor Mobile */
  .media-input-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .media-preview-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .media-thumb-box img {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
  }

  .media-format-selector {
    flex-direction: column;
    gap: 8px;
  }

  .btn-media-format {
    width: 100%;
    justify-content: center;
    padding: 10px;
  }

  /* File Explorer & Tactical FTP Mobile */
  .btn-toggle-ftp-mobile {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fbbf24;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
  }

  .btn-toggle-ftp-mobile:hover {
    background: rgba(245, 158, 11, 0.15);
    color: #fff;
  }

  .ftp-banner-header {
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  .ftp-cockpit-banner {
    padding: 10px 12px;
    gap: 10px;
    transition: padding 0.25s ease, gap 0.25s ease;
  }

  .ftp-collapsible-content {
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, margin 0.25s ease;
    overflow: hidden;
    max-height: 360px;
    opacity: 1;
    display: block;
  }

  .ftp-cockpit-banner.ftp-collapsed-mobile {
    padding: 8px 12px;
    gap: 0;
  }

  .ftp-cockpit-banner.ftp-collapsed-mobile .ftp-collapsible-content {
    max-height: 0 !important;
    opacity: 0 !important;
    margin-top: 0;
    pointer-events: none;
  }

  .ftp-cockpit-banner.ftp-collapsed-mobile .ftp-sub-title {
    display: none; /* Keep collapsed header super clean & compact on phone */
  }

  .btn-copy-ftp {
    padding: 6px 10px;
    font-size: 0.72rem;
  }

  .btn-copy-ftp-text {
    font-size: 0.72rem;
  }

  /* Hide places carousel on mobile per user request */
  .cloud-places-carousel {
    display: none !important;
  }

  /* Hide text labels on toolbar buttons on mobile (Icon-Only Mode for Subir, Nueva Carpeta, ZIP) */
  .btn-text-label {
    display: none !important;
  }

  .cloud-top-toolbar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    min-width: 0;
  }

  .cloud-search-box {
    flex: 1;
    min-width: 0;
    padding: 6px 10px;
  }

  .cloud-actions-row {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    width: auto;
  }

  .cloud-actions-row .btn-devcorex-primary,
  .cloud-actions-row .btn-devcorex-dark,
  .cloud-actions-row .btn-devcorex-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: var(--radius-xs);
  }

  .cloud-actions-row .btn-devcorex-primary svg,
  .cloud-actions-row .btn-devcorex-dark svg,
  .cloud-actions-row .btn-devcorex-icon svg {
    margin: 0;
  }

  .cloud-breadcrumb-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
  }

  .cloud-breadcrumbs {
    max-width: 70%;
    overflow-x: auto;
    white-space: nowrap;
  }

  /* Full-Height Vertical Space for Folder Viewport on Mobile (Fills 100% of Remaining Screen) */
  .cloud-viewport {
    height: calc(100dvh - 195px) !important;
    min-height: calc(100dvh - 195px) !important;
    max-height: calc(100dvh - 195px) !important;
    padding: 10px 8px;
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: var(--radius-xs);
  }

  .cloud-cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important;
    gap: 8px !important;
    width: 100%;
    min-width: 0;
  }

  .cloud-card {
    padding: 8px !important;
    min-width: 0 !important;
  }

  .files-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .files-actions-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .file-row-item {
    padding: 10px 12px;
    gap: 8px;
  }

  .file-meta-col {
    display: none; /* Hide date on very small mobile for clean view */
  }

  /* Modals Mobile Adaptive */
  .modal-card, .preview-modal-card {
    width: 95% !important;
    max-height: 82vh !important;
    min-height: auto;
    overflow-y: auto;
    margin: auto;
  }

  .tunnel-active-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tunnel-qr-frame img {
    width: 120px;
    height: 120px;
  }

  .tunnel-clean-input {
    font-size: 0.74rem;
  }
}

/* 4. EXTRA SMALL PHONES (<= 480px) */
@media (max-width: 480px) {
  .brand-title {
    font-size: 0.95rem;
  }

  .brand-version-badge {
    font-size: 0.58rem;
    padding: 1px 4px;
  }

  .cpu-cores-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric-big-num {
    font-size: 1.45rem;
  }

  .card-window-head {
    padding: 6px 10px;
  }

  .window-dots {
    gap: 3px;
  }

  .dot {
    width: 7px;
    height: 7px;
  }

  .window-label {
    font-size: 0.62rem;
  }

  .meta-glass-pill span {
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .files-actions-group {
    grid-template-columns: 1fr;
  }
}




/* --- /data/data/com.termux/files/home/.gemini/antigravity-cli/brain/f56ab1d5-ce48-47d6-8685-2e10a27db4bb/scratch/gdrive_suite_style.css --- */
/* ==========================================================================
   GOOGLE DRIVE CYBER DARK SUITE (3-COLUMN LAYOUT)
   ========================================================================== */
.gdrive-layout-container {
  display: grid;
  grid-template-columns: 240px 1fr 280px;
  gap: 12px;
  min-height: calc(100vh - 170px);
  position: relative;
  align-items: start;
}

@media (max-width: 1100px) {
  .gdrive-layout-container {
    grid-template-columns: 220px 1fr;
  }
  .gdrive-details-sidebar {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .gdrive-layout-container {
    grid-template-columns: 1fr;
  }
  .gdrive-left-sidebar {
    display: none !important;
  }
}

/* 1. LEFT SIDEBAR (GOOGLE DRIVE STYLE) */
.gdrive-left-sidebar {
  background: rgba(10, 16, 26, 0.65);
  border: 1px solid rgba(6, 182, 212, 0.18);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  backdrop-filter: blur(14px);
  position: sticky;
  top: 80px;
}

.gdrive-btn-new {
  background: linear-gradient(135deg, #06b6d4, #0284c7) !important;
  border: 1px solid #06b6d4 !important;
  color: #fff !important;
  font-family: var(--font-mono) !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  padding: 10px 18px !important;
  border-radius: 24px !important;
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.35) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  width: 100%;
}

.gdrive-btn-new:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(6, 182, 212, 0.5) !important;
}

.gdrive-nav-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.gdrive-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 20px;
  color: var(--hud-text-dim);
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-mono);
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  transition: all 0.15s ease;
}

.gdrive-nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.gdrive-nav-item.active {
  background: rgba(6, 182, 212, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.gdrive-nav-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 6px 0;
}

.gdrive-storage-meter {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* 2. MAIN DRIVE CONTENT AREA */
.gdrive-main-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.gdrive-top-bar {
  background: rgba(10, 16, 26, 0.65);
  border: 1px solid rgba(6, 182, 212, 0.18);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  backdrop-filter: blur(14px);
}

.gdrive-search-input-wrap {
  flex: 1;
  min-width: 240px;
  position: relative;
}

.gdrive-search-input-wrap i {
  position: absolute;
  left: 12px;
  top: 10px;
  color: var(--hud-cyan);
}

.gdrive-search-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 8px 14px 8px 36px;
  color: #fff;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  outline: none;
  transition: all 0.2s ease;
}

.gdrive-search-input:focus {
  border-color: #06b6d4;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.25);
  background: rgba(0, 0, 0, 0.55);
}

.gdrive-breadcrumbs-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: #94a3b8;
  padding: 4px 6px;
  overflow-x: auto;
}

.gdrive-crumb-item {
  color: #38bdf8;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}
.gdrive-crumb-item:hover {
  background: rgba(6, 182, 212, 0.1);
}

/* SECTION TITLES */
.gdrive-section-title {
  font-size: 0.75rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 10px 0 6px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* FOLDERS GRID */
.gdrive-folders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.gdrive-folder-card {
  background: rgba(12, 20, 32, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  backdrop-filter: blur(10px);
}

.gdrive-folder-card:hover {
  background: rgba(16, 28, 46, 0.8);
  border-color: rgba(6, 182, 212, 0.4);
  transform: translateY(-1px);
}

.gdrive-folder-card.selected {
  border-color: #06b6d4;
  background: rgba(6, 182, 212, 0.15);
}

.gdrive-folder-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* FILES VIEW MODES (GRID / LIST) */
.gdrive-files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.gdrive-file-card {
  background: rgba(12, 20, 32, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  backdrop-filter: blur(10px);
  position: relative;
}

.gdrive-file-card:hover {
  background: rgba(16, 28, 46, 0.8);
  border-color: rgba(6, 182, 212, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.gdrive-file-card.selected {
  border-color: #06b6d4;
  background: rgba(6, 182, 212, 0.15);
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.3);
}

.gdrive-file-preview-box {
  width: 100%;
  height: 90px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--hud-cyan);
}

.gdrive-file-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gdrive-file-name {
  font-size: 0.74rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gdrive-file-meta {
  font-size: 0.62rem;
  color: var(--hud-text-muted);
  font-family: var(--font-mono);
  display: flex;
  justify-content: space-between;
}

/* LIST VIEW MODE */
.gdrive-files-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gdrive-list-row {
  display: grid;
  grid-template-columns: 32px 1fr 120px 100px 80px;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(12, 20, 32, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.gdrive-list-row:hover {
  background: rgba(16, 28, 46, 0.75);
  border-color: rgba(6, 182, 212, 0.3);
}

.gdrive-list-row.selected {
  background: rgba(6, 182, 212, 0.15);
  border-color: #06b6d4;
}

/* 3. RIGHT DETAILS SIDEBAR */
.gdrive-details-sidebar {
  background: rgba(10, 16, 26, 0.65);
  border: 1px solid rgba(6, 182, 212, 0.18);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  backdrop-filter: blur(14px);
  position: sticky;
  top: 80px;
}

.gdrive-details-preview {
  width: 100%;
  height: 140px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gdrive-details-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-family: var(--font-mono);
}

/* --- /data/data/com.termux/files/home/.gemini/antigravity-cli/brain/f56ab1d5-ce48-47d6-8685-2e10a27db4bb/scratch/gdrive_viewer_context.css --- */
/* ==========================================================================
   GOOGLE DRIVE CONTEXT MENU & UNIVERSAL MEDIA / OFFICE VIEWER
   ========================================================================== */

/* 1. FLOATING CONTEXT MENU (GOOGLE DRIVE STYLE) */
.gdrive-context-menu {
  position: fixed;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: 12px;
  padding: 6px;
  min-width: 210px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 15px rgba(6, 182, 212, 0.2);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 2px;
  transform: scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.gdrive-context-menu.active {
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
}

.gdrive-context-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 0.76rem;
  font-family: var(--font-mono);
  font-weight: 600;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all 0.12s ease;
}

.gdrive-context-item:hover {
  background: rgba(6, 182, 212, 0.2);
  color: #38bdf8;
  transform: translateX(2px);
}

.gdrive-context-item.danger {
  color: #f87171;
}

.gdrive-context-item.danger:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.gdrive-context-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 4px 0;
}

/* 2. UNIVERSAL MEDIA & DOCUMENT VIEWER MODAL */
.gdrive-viewer-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100000;
  background: rgba(5, 10, 18, 0.94);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.gdrive-viewer-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.gdrive-viewer-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: rgba(15, 23, 42, 0.8);
  border-bottom: 1px solid rgba(6, 182, 212, 0.2);
  color: #fff;
  z-index: 10;
}

.gdrive-viewer-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.gdrive-viewer-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gdrive-viewer-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  padding: 16px;
}

/* Image Zoom Viewport */
.gdrive-image-viewport {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  cursor: grab;
}

.gdrive-image-viewport:active {
  cursor: grabbing;
}

.gdrive-image-preview {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: transform 0.15s ease-out;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  border-radius: 8px;
}

/* Video & Audio Players */
.gdrive-video-player {
  max-width: 92%;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(6, 182, 212, 0.2);
  outline: none;
  background: #000;
}

.gdrive-audio-card {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  min-width: 340px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.7);
}

.gdrive-audio-player {
  width: 100%;
  outline: none;
  border-radius: 8px;
}

/* Document & PDF Frame */
.gdrive-doc-frame {
  width: 92%;
  height: 90%;
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 10px;
  background: #fff;
}

/* Code & Text Viewer */
.gdrive-text-editor-box {
  width: 90%;
  height: 88%;
  background: #090d16;
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 10px;
  padding: 16px;
  color: #38bdf8;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  overflow: auto;
  white-space: pre-wrap;
}

/* --- /data/data/com.termux/files/home/.gemini/antigravity-cli/brain/f56ab1d5-ce48-47d6-8685-2e10a27db4bb/scratch/gdrive_new_menu.css --- */
/* ==========================================================================
   GOOGLE DRIVE '+ NUEVO' DROPDOWN MENU & FOLDER UPLOAD
   ========================================================================== */
.gdrive-new-dropdown-wrap {
  position: relative;
  width: 100%;
}

.gdrive-new-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 220px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 16px rgba(6, 182, 212, 0.25);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 1000;
  opacity: 0;
  transform: translateY(-6px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.gdrive-new-menu.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.gdrive-new-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 700;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all 0.12s ease;
}

.gdrive-new-item:hover {
  background: rgba(6, 182, 212, 0.2);
  color: #38bdf8;
  transform: translateX(2px);
}

.gdrive-new-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 4px 0;
}

/* --- /data/data/com.termux/files/home/.gemini/antigravity-cli/brain/f56ab1d5-ce48-47d6-8685-2e10a27db4bb/scratch/store_style.css --- */

/* ==========================================================================
   ALPINE UNIVERSAL APP STORE & SOFTWARE HUB STYLING
   ========================================================================== */
.store-header-banner {
  background: var(--hud-card-bg);
  border: 1px solid var(--hud-card-border);
  box-shadow: var(--hud-card-shadow);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(14px);
}

.store-header-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, #06b6d4, #38bdf8, #eab308, #06b6d4);
}

.store-subnav-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
}

.store-subtab-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--hud-text-muted);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.store-subtab-btn:hover {
  background: rgba(6, 182, 212, 0.08);
  color: #fff;
  border-color: rgba(6, 182, 212, 0.3);
}

.store-subtab-btn.active {
  background: rgba(6, 182, 212, 0.15);
  border-color: #06b6d4;
  color: #38bdf8;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.25);
}

/* Category Filter Carousel */
.store-categories-carousel {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 14px;
}

.store-categories-carousel::-webkit-scrollbar {
  height: 3px;
}
.store-categories-carousel::-webkit-scrollbar-thumb {
  background: rgba(6, 182, 212, 0.3);
}

.store-cat-chip {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--hud-text-dim);
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.store-cat-chip:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(6, 182, 212, 0.3);
}

.store-cat-chip.active {
  background: rgba(6, 182, 212, 0.15);
  border-color: #06b6d4;
  color: #38bdf8;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

/* Package Grid & Cards */
.store-packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 12px;
}

.store-pkg-card {
  background: rgba(10, 16, 26, 0.65);
  border: 1px solid rgba(6, 182, 212, 0.18);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transition: all 0.2s ease;
  backdrop-filter: blur(12px);
}

.store-pkg-card:hover {
  border-color: rgba(6, 182, 212, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 16px rgba(6, 182, 212, 0.15);
}

.store-pkg-card.installed-card {
  border-color: rgba(34, 197, 94, 0.3);
}

.store-pkg-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.store-pkg-title {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.store-pkg-ver {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--hud-text-muted);
  display: block;
  margin-top: 2px;
}

.store-pkg-desc {
  font-size: 0.74rem;
  color: #94a3b8;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.store-pkg-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.store-action-btn {
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 5px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.store-action-btn.btn-install {
  background: linear-gradient(135deg, #06b6d4, #0284c7);
  border: 1px solid #06b6d4;
  color: #fff;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}
.store-action-btn.btn-install:hover {
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.5);
  transform: scale(1.03);
}

.store-action-btn.btn-installed {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ade80;
}
.store-action-btn.btn-installed:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #f87171;
}

.store-action-btn.btn-uninstall {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
}
.store-action-btn.btn-uninstall:hover {
  background: #ef4444;
  color: #fff;
}

.store-link {
  font-size: 0.68rem;
  color: var(--hud-cyan);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.store-link:hover {
  text-decoration: underline;
}

/* --- /data/data/com.termux/files/home/.gemini/antigravity-cli/brain/f56ab1d5-ce48-47d6-8685-2e10a27db4bb/scratch/store_list_row.css --- */

/* ==========================================================================
   APP STORE HORIZONTAL LIST ROW LAYOUT (CLEAN & SPACIOUS)
   ========================================================================== */
.store-packages-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.store-pkg-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: rgba(10, 16, 26, 0.65) !important;
  border: 1px solid rgba(6, 182, 212, 0.18) !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  gap: 14px !important;
  transition: all 0.2s ease !important;
  backdrop-filter: blur(12px) !important;
}

.store-pkg-card:hover {
  background: rgba(14, 23, 38, 0.8) !important;
  border-color: rgba(6, 182, 212, 0.4) !important;
  transform: translateX(3px) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 12px rgba(6, 182, 212, 0.15) !important;
}

.store-pkg-card.installed-card {
  border-left: 3px solid rgba(6, 182, 212, 0.8) !important;
}

/* Left Section: Icon + Info */
.store-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.store-row-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--hud-cyan);
}

.store-row-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.store-row-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.store-pkg-title {
  font-family: var(--font-mono) !important;
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  color: #fff !important;
}

.store-pkg-ver {
  font-family: var(--font-mono) !important;
  font-size: 0.62rem !important;
  color: #71717a !important;
}

.store-pkg-desc {
  font-size: 0.73rem !important;
  color: #94a3b8 !important;
  line-height: 1.35 !important;
  margin: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 90% !important;
}

/* Right Section: Actions & Tags */
.store-row-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.store-row-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

@media (max-width: 768px) {
  .store-pkg-card {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }
  .store-pkg-desc {
    white-space: normal !important;
    max-width: 100% !important;
    -webkit-line-clamp: 2 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
  }
  .store-row-right {
    width: 100% !important;
    justify-content: space-between !important;
    border-top: 1px solid rgba(255, 255, 255, 0.04) !important;
    padding-top: 6px !important;
  }
}

/* --- /data/data/com.termux/files/home/.gemini/antigravity-cli/brain/f56ab1d5-ce48-47d6-8685-2e10a27db4bb/scratch/store_compact_buttons.css --- */

/* ==========================================================================
   COMPACT & ELEGANT APP STORE BUTTONS & CARDS
   ========================================================================== */
.store-packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}

.store-pkg-card {
  background: rgba(10, 16, 26, 0.62) !important;
  border: 1px solid rgba(6, 182, 212, 0.18) !important;
  border-radius: 10px !important;
  padding: 11px 13px !important;
  gap: 7px !important;
  backdrop-filter: blur(12px) !important;
}

.store-pkg-title {
  font-size: 0.84rem !important;
  font-weight: 800 !important;
}

.store-pkg-ver {
  font-size: 0.60rem !important;
  margin-top: 1px !important;
}

.store-pkg-desc {
  font-size: 0.70rem !important;
  line-height: 1.35 !important;
  -webkit-line-clamp: 2 !important;
}

/* Compact, proportional action buttons */
.store-action-btn {
  border-radius: 5px !important;
  font-family: var(--font-mono) !important;
  font-size: 0.62rem !important;
  font-weight: 700 !important;
  padding: 3px 7px !important;
  gap: 4px !important;
  line-height: 1.1 !important;
}

.store-action-btn svg,
.store-action-btn i {
  width: 11px !important;
  height: 11px !important;
}

.store-action-btn.btn-install {
  background: linear-gradient(135deg, #06b6d4, #0284c7) !important;
  border: 1px solid #06b6d4 !important;
  color: #fff !important;
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.25) !important;
}

.store-action-btn.btn-installed {
  background: rgba(34, 197, 94, 0.12) !important;
  border: 1px solid rgba(34, 197, 94, 0.35) !important;
  color: #4ade80 !important;
  padding: 3px 6px !important;
}

.store-action-btn.btn-uninstall {
  background: rgba(239, 68, 68, 0.12) !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
  color: #f87171 !important;
  padding: 3px 6px !important;
}

.status-badge-neon {
  font-size: 0.58rem !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
}


/* ==========================================================================
   GLOBAL THEME OVERRIDE: ELECTRIC BLUE & HIGH-TECH CYAN HUD (DEFAULT THEME)
   ========================================================================== */
:root {
  --neon-green: #06b6d4 !important;
  --neon-green-glow: #0ea5e9 !important;
  --border-glow-green: rgba(6, 182, 212, 0.4) !important;
}

/* Header & Brand in Electric Blue */
.brand-logo-box {
  border-color: #06b6d4 !important;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.35) !important;
}

.icon-brand-green, .icon-neon-green {
  color: #06b6d4 !important;
}

.status-pulse-dot {
  background: #06b6d4 !important;
  box-shadow: 0 0 10px #06b6d4 !important;
}

.header-cf-icon-btn {
  background: rgba(6, 182, 212, 0.1) !important;
  border-color: rgba(6, 182, 212, 0.35) !important;
  color: #06b6d4 !important;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.2) !important;
}
.header-cf-icon-btn:hover {
  background: rgba(6, 182, 212, 0.25) !important;
  border-color: #06b6d4 !important;
  color: #fff !important;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.4) !important;
}

/* Primary Buttons in Electric Blue */
.btn-devcorex-primary {
  background: #000 !important;
  border: 1px solid #06b6d4 !important;
  color: #06b6d4 !important;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.2) !important;
}
.btn-devcorex-primary:hover {
  background: linear-gradient(135deg, #06b6d4, #0284c7) !important;
  color: #fff !important;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.5) !important;
}

/* Active Tabs in Electric Blue */
.devcorex-tab-btn.active {
  border-color: rgba(6, 182, 212, 0.5) !important;
  color: #38bdf8 !important;
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.2) !important;
}

/* Quick Action Tiles Hover & Badges */
.border-green-glow:hover {
  border-color: rgba(6, 182, 212, 0.4) !important;
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.15) !important;
}
.bg-green-subtle {
  background: rgba(6, 182, 212, 0.1) !important;
}
.icon-module.green {
  color: #06b6d4 !important;
}
.badge-green {
  background: rgba(6, 182, 212, 0.15) !important;
  color: #38bdf8 !important;
  border-color: rgba(6, 182, 212, 0.3) !important;
}
.tag-green {
  background: rgba(6, 182, 212, 0.15) !important;
  color: #38bdf8 !important;
  border-color: rgba(6, 182, 212, 0.3) !important;
}
.bar-green {
  background: linear-gradient(90deg, #06b6d4, #0284c7) !important;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.4) !important;
}
.cpu-core-bar {
  background: linear-gradient(90deg, #06b6d4, #38bdf8) !important;
}
.cpu-core-pct {
  color: #38bdf8 !important;
}
.val-green {
  color: #38bdf8 !important;
}
.text-neon-green {
  color: #06b6d4 !important;
}
.status-badge-neon.green {
  background: rgba(6, 182, 212, 0.12) !important;
  color: #38bdf8 !important;
  border-color: rgba(6, 182, 212, 0.35) !important;
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.2) !important;
}


/* ==========================================================================
   ULTRA-TRANSLUCENT GLASSMORPHISM & HIGH-VISIBILITY BACKGROUND STYLING
   ========================================================================== */
#hud-bg-wave-canvas {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 0 !important;
  pointer-events: none !important;
  opacity: 1 !important;
}

body {
  position: relative !important;
  background: radial-gradient(circle at 50% 30%, #08111d 0%, #03060a 100%) !important;
}

.app-container {
  position: relative !important;
  z-index: 1 !important;
}

/* CARDS GLASSMORPHISM (ULTRA TRANSLUCENT) */
.devcorex-header,
.devcorex-panel,
.devcorex-card,
.hud-hero-deck,
.hud-gauge-card,
.hud-tactical-card,
.ftp-banner-card,
.module-card,
.devcorex-nav-bar {
  background: rgba(10, 16, 26, 0.62) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-color: rgba(6, 182, 212, 0.22) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.devcorex-header:hover,
.devcorex-panel:hover,
.devcorex-card:hover,
.hud-gauge-card:hover,
.hud-tactical-card:hover,
.module-card:hover {
  background: rgba(12, 20, 34, 0.72) !important;
  border-color: rgba(6, 182, 212, 0.45) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7), 0 0 20px rgba(6, 182, 212, 0.2) !important;
}

.hud-gauge-card.featured {
  background: rgba(14, 25, 42, 0.70) !important;
  border-color: rgba(6, 182, 212, 0.6) !important;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.75), 0 0 30px rgba(6, 182, 212, 0.25) !important;
}








/* ==========================================================================
   NATURAL FLUID VERTICAL SCROLL ARCHITECTURE (100% UNLOCKED & COMFORTABLE)
   ========================================================================== */
html, body {
  min-height: 100vh !important;
  height: auto !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 6px 12px 10px 12px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.app-container {
  min-height: 100vh !important;
  height: auto !important;
  max-width: 1440px !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  overflow: visible !important;
  padding-bottom: 0px !important;
}

/* Barra de Navegación Sticky Fija Arriba */
.devcorex-nav-bar {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  position: sticky !important;
  top: 8px !important;
  z-index: 1000 !important;
  flex-shrink: 0 !important;
  margin-bottom: 8px !important;
  padding: 6px 12px !important;
  gap: 8px !important;
  background: rgba(10, 16, 26, 0.88) !important;
  backdrop-filter: blur(24px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
  border: 1px solid rgba(6, 182, 212, 0.35) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(6, 182, 212, 0.15) !important;
  overflow-x: auto !important;
  white-space: nowrap !important;
}

.devcorex-tab-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 7px 14px !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  color: #94a3b8 !important;
  border-radius: 8px !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.devcorex-tab-btn:hover {
  background: rgba(6, 182, 212, 0.12) !important;
  color: #ffffff !important;
  border-color: rgba(6, 182, 212, 0.3) !important;
}

.devcorex-tab-btn.active {
  background: rgba(6, 182, 212, 0.22) !important;
  color: #38bdf8 !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35) !important;
}

/* Pestañas Activas: Fluyen con Scroll Vertical Natural Libre */
.devcorex-tab-pane {
  display: none;
  animation: organicFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.devcorex-tab-pane.active {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  padding-bottom: 8px !important;
}

/* 1. Overview, HP, Radar, Cybersec: Scroll Natural */
#tab-overview,
#tab-hp,
#tab-radar,
#tab-cybersec {
  height: auto !important;
  overflow: visible !important;
}

/* 2. Cloud Drive: Layout de 2 Columnas con Scroll Natural */
.gdrive-layout-container {
  display: grid !important;
  grid-template-columns: 240px 1fr !important;
  gap: 14px !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}

@media (max-width: 1023px) {
  .gdrive-layout-container {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
  }
}

.gdrive-left-sidebar {
  height: auto !important;
  overflow: visible !important;
}

.gdrive-main-content {
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}

/* Panel Lateral Derecho: Flotante Slide-Over */
.gdrive-details-sidebar {
  position: fixed !important;
  top: 70px !important;
  right: 16px !important;
  width: 310px !important;
  max-height: calc(100vh - 90px) !important;
  z-index: 1050 !important;
  overflow-y: auto !important;
  background: rgba(10, 18, 30, 0.94) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: 1px solid rgba(6, 182, 212, 0.4) !important;
  border-radius: 16px !important;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.85), 0 0 30px rgba(6, 182, 212, 0.25) !important;
  padding: 16px !important;
}

@media (max-width: 768px) {
  .gdrive-details-sidebar {
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-height: 75vh !important;
    border-radius: 20px 20px 0 0 !important;
  }
}

/* 3. Alpine Store: Scroll Natural */
.store-layout-container {
  height: auto !important;
  overflow: visible !important;
}

#store-view-catalog,
#store-view-installed {
  height: auto !important;
  overflow: visible !important;
}

/* 4. Terminal Termux: Altura Fija de 75vh para no deformar PTY */
#tab-terminal {
  height: 75vh !important;
  min-height: 480px !important;
  overflow: hidden !important;
}

.terminal-container,
#terminal-box {
  height: 100% !important;
  width: 100% !important;
}

/* Scrollbars Tácticas Suaves */
::-webkit-scrollbar {
  width: 6px !important;
  height: 6px !important;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.15) !important;
  border-radius: 4px !important;
}

::-webkit-scrollbar-thumb {
  background: rgba(6, 182, 212, 0.35) !important;
  border-radius: 4px !important;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.7) !important;
}
