/* =============================================
   SPIDER OPS TOOLKIT — styles.css
   ============================================= */

:root {
  --bg-deep:      #060a12;
  --bg-main:      #0b0f1a;
  --bg-panel:     rgba(15, 22, 40, 0.85);
  --bg-card:      rgba(18, 28, 52, 0.7);
  --bg-input:     rgba(10, 16, 32, 0.9);

  --red:          #e11d48;
  --red-glow:     rgba(225, 29, 72, 0.4);
  --red-dim:      rgba(225, 29, 72, 0.15);
  --blue:         #2563eb;
  --blue-glow:    rgba(37, 99, 235, 0.4);
  --blue-dim:     rgba(37, 99, 235, 0.15);
  --cyan:         #06b6d4;
  --cyan-glow:    rgba(6, 182, 212, 0.3);
  --green:        #10b981;
  --green-glow:   rgba(16, 185, 129, 0.3);
  --yellow:       #f59e0b;
  --orange:       #f97316;

  --text-primary:   #e2e8f0;
  --text-secondary: #94a3b8;
  --text-dim:       #475569;
  --text-accent:    #06b6d4;

  --border:       rgba(37, 99, 235, 0.2);
  --border-hover: rgba(225, 29, 72, 0.5);

  --sidebar-w:    260px;
  --radius:       8px;
  --radius-lg:    14px;

  --font-display: 'Orbitron', monospace;
  --font-mono:    'Share Tech Mono', monospace;
  --font-body:    'Rajdhani', sans-serif;
}

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

html, body {
  width: 100%; height: 100%;
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  overflow: hidden;
}

#webCanvas {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

.scanlines {
  position: fixed; inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0,0,0,0.08) 3px,
    rgba(0,0,0,0.08) 4px
  );
  pointer-events: none;
  z-index: 1;
}

.app-layout {
  display: flex;
  width: 100vw; height: 100vh;
  position: relative; z-index: 2;
}

/* SIDEBAR */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-panel);
  border-right: 1px solid var(--border);
  backdrop-filter: blur(20px);
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  z-index: 10;
}

.sidebar::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, var(--red-dim) 0%, transparent 30%);
  pointer-events: none;
}

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

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

.logo-icon svg {
  width: 40px; height: 40px;
  filter: drop-shadow(0 0 8px var(--red-glow));
  animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { filter: drop-shadow(0 0 8px var(--red-glow)); }
  50%       { filter: drop-shadow(0 0 16px var(--red)) drop-shadow(0 0 24px var(--blue-glow)); }
}

.logo-text { display: flex; flex-direction: column; }
.logo-title {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 900;
  color: #fff;
  letter-spacing: 1px;
  text-shadow: 0 0 10px var(--red-glow);
}
.logo-sub {
  font-family: var(--font-mono);
  font-size: 9px; color: var(--text-dim);
  letter-spacing: 2px;
}

.sidebar-status {
  display: flex; align-items: center; gap: 6px;
}
.status-dot {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green-glow);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(1.3); }
}
.status-text {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--green); letter-spacing: 2px;
}

.sidebar-nav { flex: 1; padding: 12px 0; }

.nav-label {
  font-family: var(--font-mono);
  font-size: 9px; color: var(--text-dim);
  letter-spacing: 3px;
  padding: 4px 16px 8px;
}

.sidebar-nav ul { list-style: none; }

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  border-left: 2px solid transparent;
}

.nav-item::after {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0;
  background: linear-gradient(90deg, var(--red-dim), transparent);
  transition: width 0.3s ease;
}

.nav-item:hover { background: rgba(37,99,235,0.05); }
.nav-item:hover::after { width: 100%; }
.nav-item:hover .nav-icon { transform: scale(1.2); }
.nav-item:hover { border-left-color: var(--blue); }

.nav-item.active {
  background: linear-gradient(90deg, var(--red-dim), transparent);
  border-left-color: var(--red);
}
.nav-item.active .nav-name { color: var(--red); }
.nav-item.active .nav-icon {
  filter: drop-shadow(0 0 6px var(--red));
  transform: scale(1.1);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  right: 8px; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px var(--red), 0 0 20px var(--red-glow);
  animation: senseGlow 1.5s ease-in-out infinite;
}
@keyframes senseGlow {
  0%,100% { box-shadow: 0 0 6px var(--red), 0 0 12px var(--red-glow); opacity: 1; }
  50%      { box-shadow: 0 0 14px var(--red), 0 0 28px var(--red-glow); opacity: 0.7; }
}

.nav-icon {
  font-size: 18px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.nav-text { flex: 1; min-width: 0; }
.nav-name {
  display: block;
  font-family: var(--font-display);
  font-size: 11px; font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-desc {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px; color: var(--text-dim);
  letter-spacing: 1px;
}
.nav-arrow {
  color: var(--text-dim); font-size: 14px;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}
.nav-item:hover .nav-arrow, .nav-item.active .nav-arrow {
  opacity: 1; color: var(--red);
  transform: translateX(3px);
}

.sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}
.footer-line {
  font-family: var(--font-mono);
  font-size: 9px; color: var(--text-dim);
  line-height: 1.6;
  letter-spacing: 0.5px;
  font-style: italic;
}

/* MAIN CONTENT */
.content {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
  background: linear-gradient(135deg, var(--bg-main) 0%, var(--bg-deep) 100%);
}

.tool-section {
  display: none;
  animation: sectionIn 0.3s ease;
}
.tool-section.active { display: block; }

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

.section-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.section-header::after {
  content: '';
  position: absolute; bottom: -1px; left: 0;
  width: 60px; height: 2px;
  background: linear-gradient(90deg, var(--red), transparent);
}

.section-header h1 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 900;
  color: #fff;
  letter-spacing: 2px;
  display: flex; align-items: center; gap: 10px;
}
.section-header .icon { font-size: 24px; }
.badge {
  font-size: 10px; font-weight: 400;
  letter-spacing: 3px;
  padding: 2px 8px;
  border: 1px solid var(--red);
  color: var(--red);
  border-radius: 2px;
  vertical-align: middle;
  font-family: var(--font-mono);
}
.section-desc {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 12px; color: var(--text-secondary);
  letter-spacing: 0.5px;
}

/* CARDS */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
  position: relative;
}

.tool-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.tool-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 20px var(--red-dim), 0 8px 32px rgba(0,0,0,0.4);
  transform: translateY(-2px);
}
.tool-card:hover::before { opacity: 1; }
.tool-card.wide { grid-column: 1 / -1; }

.card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.2);
}
.card-header h3 {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 1px;
}
.card-tag {
  font-family: var(--font-mono);
  font-size: 8px; letter-spacing: 2px;
  color: var(--blue);
  border: 1px solid var(--blue-dim);
  padding: 1px 6px; border-radius: 2px;
}
.card-body { padding: 14px 16px; }

/* INPUTS */
input[type="text"],
input[type="number"],
input[type="datetime-local"],
select,
.input-full,
.input-small {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 7px 10px;
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 8px var(--blue-glow);
}

.input-full { width: 100%; }
.input-small { width: 80px; }

select {
  cursor: pointer;
  appearance: none;
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

input[type="range"] {
  width: 100%; height: 4px;
  background: var(--border);
  border: none;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  accent-color: var(--red);
}

.select-row {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px; flex-wrap: wrap;
}
.select-row label {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--text-secondary);
  white-space: nowrap;
}

/* BUTTONS */
.btn-row {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin: 12px 0;
}

.btn-primary, .btn-secondary, .btn-copy {
  font-family: var(--font-display);
  font-size: 10px; font-weight: 700;
  letter-spacing: 1px;
  padding: 8px 16px;
  border: none; border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--red), #c01638);
  color: #fff;
  box-shadow: 0 0 12px var(--red-glow);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #f43f63, var(--red));
  box-shadow: 0 0 20px var(--red), 0 0 40px var(--red-glow);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--blue-dim);
  color: var(--blue);
  border: 1px solid var(--blue);
}
.btn-secondary:hover {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 0 16px var(--blue-glow);
  transform: translateY(-1px);
}

.btn-copy {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  margin-top: 4px;
}
.btn-copy:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 8px var(--cyan-glow);
}

/* OUTPUT BOXES */
.output-box {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 12px; line-height: 1.6;
  color: var(--text-secondary);
  min-height: 60px;
  white-space: pre-wrap;
  word-break: break-all;
  overflow-y: auto;
  max-height: 200px;
  transition: border-color 0.2s;
}
.output-box.tall { min-height: 200px; max-height: 350px; }
.output-box.success { border-color: var(--green); color: var(--green); }
.output-box.error   { border-color: var(--red); color: var(--red); }

/* CODE EDITOR */
.code-editor {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 12px; line-height: 1.6;
  padding: 10px 12px;
  border-radius: var(--radius);
  resize: vertical;
  outline: none;
  min-height: 180px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.code-editor.short { min-height: 80px; }
.code-editor:focus {
  border-color: var(--blue);
  box-shadow: 0 0 10px var(--blue-glow);
}

/* SPLIT EDITOR */
.split-editor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.split-editor.three-pane { grid-template-columns: 1fr 1fr 1fr; }
.editor-pane { display: flex; flex-direction: column; gap: 6px; }
.editor-pane.full-width { grid-column: 1 / -1; }

.pane-header {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 2px;
  color: var(--text-dim);
  text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}

/* TABS */
.tab-bar {
  display: flex; gap: 4px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}
.tab {
  font-family: var(--font-display);
  font-size: 10px; font-weight: 700;
  letter-spacing: 1px;
  padding: 8px 16px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  top: 1px;
}
.tab:hover { color: var(--text-secondary); }
.tab.active {
  color: var(--red);
  border-bottom-color: var(--red);
}
.tab-content { display: none; }
.tab-content.active { display: block; animation: sectionIn 0.2s ease; }

/* STATUS BADGES */
.status-badge {
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 2px;
  padding: 2px 8px;
  border-radius: 2px;
}
.status-badge.ok   { background: var(--green-glow); color: var(--green); border: 1px solid var(--green); }
.status-badge.fail { background: var(--red-dim); color: var(--red); border: 1px solid var(--red); }

.count-badge {
  font-family: var(--font-mono);
  font-size: 10px; color: var(--cyan);
  background: var(--cyan-glow);
  padding: 1px 8px; border-radius: 10px;
  border: 1px solid var(--cyan);
}

/* PASSWORD */
.password-controls { margin-bottom: 12px; }
.slider-row { margin-bottom: 12px; }
.slider-row label {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--text-secondary);
  display: block; margin-bottom: 6px;
}
.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.cb-label {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px; color: var(--text-secondary);
  cursor: pointer;
}
.cb-label input[type="checkbox"] {
  accent-color: var(--red);
  width: 14px; height: 14px;
  cursor: pointer;
}

.strength-bar {
  height: 4px;
  border-radius: 2px;
  margin: 4px 0;
  transition: width 0.3s, background 0.3s;
  width: 0%;
}

/* DIFF */
.diff-controls {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.diff-stats {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 8px 0;
  display: flex; gap: 20px;
}
.diff-stats.hidden { display: none; }
.diff-stat-added   { color: var(--green); }
.diff-stat-removed { color: var(--red); }
.diff-stat-total   { color: var(--text-secondary); }

.diff-output {
  font-family: var(--font-mono);
  font-size: 12px; line-height: 1.8;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  min-height: 200px;
  max-height: 500px;
  overflow-y: auto;
}
.diff-line { display: flex; gap: 8px; padding: 1px 4px; border-radius: 2px; }
.diff-line-num { color: var(--text-dim); min-width: 30px; user-select: none; }
.diff-added   { background: rgba(16,185,129,0.1); color: var(--green); }
.diff-removed { background: rgba(225,29,72,0.1);  color: var(--red); }
.diff-same    { color: var(--text-dim); }

/* REGEX */
.regex-controls {
  margin-bottom: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}
.regex-input-row {
  display: flex; align-items: center; gap: 0;
}
.regex-slash {
  font-family: var(--font-mono);
  font-size: 20px; color: var(--red);
  padding: 0 6px;
  font-weight: bold;
}
.input-regex {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-right: none; border-left: none;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 16px;
  padding: 8px 12px;
  outline: none;
}
.input-flags {
  width: 60px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 8px;
  outline: none;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.regex-info {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--text-dim);
  margin-top: 6px; min-height: 16px;
}
.regex-info.error { color: var(--red); }

.regex-highlight-box {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 13px; line-height: 1.7;
  color: var(--text-primary);
  min-height: 120px;
  max-height: 300px;
  overflow-y: auto;
  outline: none;
  white-space: pre-wrap;
  word-break: break-word;
}

.regex-highlight-box mark {
  background: rgba(245,158,11,0.35);
  color: var(--yellow);
  border: 1px solid rgba(245,158,11,0.4);
  border-radius: 2px;
  padding: 0 1px;
}

.regex-matches {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--text-secondary);
  margin-top: 8px;
  max-height: 120px; overflow-y: auto;
}
.match-item {
  padding: 3px 8px;
  border-left: 2px solid var(--yellow);
  margin: 2px 0;
  color: var(--yellow);
}

/* JWT */
.jwt-parts { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }

.jwt-part {
  border-radius: var(--radius);
  overflow: hidden;
}
.jwt-part-header {
  font-family: var(--font-display);
  font-size: 10px; letter-spacing: 2px;
  padding: 6px 12px;
  display: flex; justify-content: space-between;
}
.jwt-part.header .jwt-part-header { background: rgba(37,99,235,0.2); color: var(--blue); border-left: 3px solid var(--blue); }
.jwt-part.payload .jwt-part-header { background: rgba(16,185,129,0.2); color: var(--green); border-left: 3px solid var(--green); }
.jwt-part.signature .jwt-part-header { background: rgba(225,29,72,0.2); color: var(--red); border-left: 3px solid var(--red); }
.jwt-part-body {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 10px 12px;
  background: var(--bg-input);
  white-space: pre-wrap;
  word-break: break-all;
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-top: none;
}
.jwt-exp-warning {
  background: var(--red-dim);
  border: 1px solid var(--red);
  color: var(--red);
  padding: 6px 12px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 11px;
  margin-top: 6px;
}
.jwt-exp-ok {
  background: var(--green-glow);
  border: 1px solid var(--green);
  color: var(--green);
  padding: 6px 12px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 11px;
  margin-top: 6px;
}

.jwt-gen-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.jwt-gen-grid label {
  font-family: var(--font-mono);
  font-size: 10px; color: var(--text-dim);
  display: block; margin-bottom: 4px;
  letter-spacing: 1px;
}

/* SPIDER SENSE */
.ip-display {
  margin-bottom: 12px;
  min-height: 80px;
  display: flex; flex-direction: column; justify-content: center;
}
.ip-loading {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-dim);
  font-family: var(--font-mono); font-size: 12px;
}
.spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.ip-value {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 900;
  color: var(--cyan);
  text-shadow: 0 0 20px var(--cyan-glow);
  letter-spacing: 2px;
  word-break: break-all;
}
.ip-meta {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--text-dim);
  margin-top: 4px;
}

.info-grid {
  display: grid; gap: 8px;
}
.info-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 11px;
}
.info-row:last-child { border-bottom: none; }
.info-key { color: var(--text-dim); flex-shrink: 0; margin-right: 8px; }
.info-val { color: var(--cyan); text-align: right; word-break: break-word; }

.time-display {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.time-block {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  text-align: center;
}
.time-label {
  font-family: var(--font-mono);
  font-size: 9px; color: var(--text-dim);
  letter-spacing: 2px; margin-bottom: 4px;
}
.time-value {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700;
  color: var(--text-primary);
}
.time-value.big {
  font-size: 22px;
  color: var(--cyan);
  text-shadow: 0 0 10px var(--cyan-glow);
}

/* PUNYCODE */
.examples-list { display: flex; flex-direction: column; gap: 4px; }
.example-item {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--blue);
  padding: 6px 10px;
  background: var(--blue-dim);
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
}
.example-item:hover {
  border-color: var(--blue);
  color: var(--cyan);
  box-shadow: 0 0 8px var(--blue-glow);
}

/* TOAST */
.toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 1000;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.toast {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 10px 16px;
  border-radius: var(--radius);
  border-left: 3px solid;
  backdrop-filter: blur(20px);
  animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
  pointer-events: all;
  max-width: 300px;
}
.toast.success { background: rgba(16,185,129,0.15); border-color: var(--green); color: var(--green); }
.toast.error   { background: var(--red-dim); border-color: var(--red); color: var(--red); }
.toast.info    { background: var(--blue-dim); border-color: var(--blue); color: var(--cyan); }

@keyframes toastIn {
  from { transform: translateX(120px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
@keyframes toastOut {
  from { transform: translateX(0); opacity: 1; }
  to   { transform: translateX(120px); opacity: 0; }
}

/* LOADING */
.loading-overlay {
  position: fixed; inset: 0;
  background: rgba(6,10,18,0.85);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: flex; align-items: center; justify-content: center;
}
.loading-overlay.hidden { display: none; }
.loading-content { text-align: center; }

.web-spinner {
  width: 60px; height: 60px;
  border: 2px solid var(--border);
  border-top-color: var(--red);
  border-right-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin: 0 auto 12px;
  box-shadow: 0 0 20px var(--red-glow);
}
.loading-text {
  font-family: var(--font-display);
  font-size: 12px; letter-spacing: 4px;
  color: var(--text-dim);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* RESPONSIVE */
@media (max-width: 900px) {
  :root { --sidebar-w: 60px; }
  .logo-text, .nav-text, .nav-arrow,
  .sidebar-footer, .sidebar-status, .nav-label { display: none; }
  .nav-icon { font-size: 22px; }
  .nav-item { justify-content: center; padding: 14px 0; }
  .split-editor { grid-template-columns: 1fr; }
  .split-editor.three-pane { grid-template-columns: 1fr; }
  .content { padding: 16px; }
}

@media (max-width: 600px) {
  .tools-grid { grid-template-columns: 1fr; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .time-display { grid-template-columns: 1fr; }
  .jwt-gen-grid { grid-template-columns: 1fr; }
  .section-header h1 { font-size: 16px; }
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(37,99,235,0.3);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--red); }
::selection { background: var(--red-dim); color: #fff; }

