/* Local Offline Institutional Fonts (100% Offline Independent & Zero CDN Latency) */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('../fonts/JetBrainsMono-Variable.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/Inter-Variable.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================

   UZ RESEARCH TERMINAL - INSTITUTIONAL CYBER-QUANT STYLING

   Palet: Dark Slate (#090c10), Obsidian (#0d1117), Gold (#f59e0b), 

          Emerald (#10b981), Rose (#f43f5e), Cyan (#06b6d4)

   ========================================================================== */

:root {

  --bg-primary: #090c10;

  --bg-secondary: #0d1117;

  --bg-card: #131923;

  --bg-card-hover: #17202d;

  --border-color: #212936;

  --border-accent: #303d50;

  

  --text-main: #f0f6fc;

  --text-muted: #8b949e;

  --text-dim: #545d68;

  

  --accent-gold: #f59e0b;

  --accent-gold-glow: rgba(245, 158, 11, 0.25);

  

  --color-win: #10b981;

  --color-win-glow: rgba(16, 185, 129, 0.25);

  --color-loss: #f43f5e;

  --color-loss-glow: rgba(244, 63, 94, 0.25);

  --color-cyan: #06b6d4;

  --color-cyan-glow: rgba(6, 182, 212, 0.25);

  --color-purple: #a855f7;

  

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

  --titlebar-height: 38px;

  --statusbar-height: 28px;

}

* {

  box-sizing: border-box;

  margin: 0;

  padding: 0;

  user-select: none;

}

body {

  background-color: var(--bg-primary);

  color: var(--text-main);

  font-family: var(--font-mono);

  font-size: 13px;

  line-height: 1.5;

  overflow: hidden;

  -webkit-font-smoothing: antialiased;

  -moz-osx-font-smoothing: grayscale;

  text-rendering: optimizeLegibility;

  font-feature-settings: "zero" 1, "calt" 1;

  height: 100vh;

  width: 100vw;

  display: flex;

  flex-direction: column;

}

/* Custom Scrollbar */

::-webkit-scrollbar {

  width: 6px;

  height: 6px;

}

::-webkit-scrollbar-track {

  background: var(--bg-secondary);

}

::-webkit-scrollbar-thumb {

  background: var(--border-accent);

  border-radius: 3px;

}

::-webkit-scrollbar-thumb:hover {

  background: var(--accent-gold);

}

/* Frameless Title Bar (pywebview drag region) */

.titlebar {

  height: var(--titlebar-height);

  background-color: var(--bg-secondary);

  border-bottom: 1px solid var(--border-color);

  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 0 10px;

  z-index: 10001;

}

.titlebar-drag {

  display: flex;

  align-items: center;

  gap: 14px;

  flex: 1;

  height: 100%;

  -webkit-app-region: drag;

}

.brand-icon {

  font-size: 15px;

  color: var(--accent-gold);

  filter: drop-shadow(0 0 6px var(--accent-gold-glow));

}

.brand-title {

  font-weight: 700;

  font-size: 12px;

  letter-spacing: 1.5px;

  color: #fff;

  display: flex;

  align-items: center;

  gap: 8px;

}

.brand-badge {

  font-size: 9px;

  font-weight: 700;

  padding: 1px 6px;

  border-radius: 3px;

  background: rgba(245, 158, 11, 0.15);

  color: var(--accent-gold);

  border: 1px solid var(--accent-gold);

  letter-spacing: 0.5px;

}

.server-pulse {

  display: flex;

  align-items: center;

  gap: 6px;

  font-size: 11px;

  color: var(--color-win);

  padding: 2px 8px;

  background: rgba(16, 185, 129, 0.08);

  border-radius: 12px;

  border: 1px solid rgba(16, 185, 129, 0.3);

}

.pulse-dot {

  width: 7px;

  height: 7px;

  border-radius: 50%;

  background-color: var(--color-win);

  box-shadow: 0 0 8px var(--color-win);

  animation: pulse-glow 2s infinite ease-in-out;

}

@keyframes pulse-glow {

  0% { transform: scale(0.9); opacity: 0.7; }

  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px var(--color-win); }

  100% { transform: scale(0.9); opacity: 0.7; }

}

.clocks-container {

  display: flex;

  align-items: center;

  gap: 16px;

  font-size: 11px;

  color: var(--text-muted);

}

.clock-item span {

  color: var(--color-cyan);

  font-weight: 600;

}

.window-controls {

  display: flex;

  align-items: center;

  -webkit-app-region: no-drag;

}

.win-btn {

  background: transparent;

  border: none;

  color: var(--text-muted);

  width: 34px;

  height: var(--titlebar-height);

  display: flex;

  align-items: center;

  justify-content: center;

  cursor: pointer;

  font-size: 13px;

  transition: all 0.15s ease;

}

.win-btn:hover {

  background: var(--bg-card);

  color: #fff;

}

.win-btn.close:hover {

  background: var(--color-loss);

  color: #fff;

}

/* Ticker Tape */

.ticker-tape-container {

  height: 28px;

  background-color: #05070a;

  border-bottom: 1px solid var(--border-color);

  display: flex;

  align-items: center;

  overflow: hidden;

  position: relative;

}

.ticker-tape-content {

  display: flex;

  gap: 28px;

  white-space: nowrap;

  animation: scroll-ticker 35s linear infinite;

}

.ticker-tape-content:hover {

  animation-play-state: paused;

}

@keyframes scroll-ticker {

  0% { transform: translateX(0%); }

  100% { transform: translateX(-50%); }

}

.ticker-item {

  display: flex;

  align-items: center;

  gap: 8px;

  font-size: 11px;

}

.ticker-symbol {

  font-weight: 700;

  color: #fff;

}

.ticker-price {

  color: var(--color-cyan);

}

.ticker-tag-win {

  color: var(--color-win);

  font-size: 10px;

  background: rgba(16, 185, 129, 0.1);

  padding: 1px 4px;

  border-radius: 2px;

}

.ticker-tag-loss {

  color: var(--color-loss);

  font-size: 10px;

  background: rgba(244, 63, 94, 0.1);

  padding: 1px 4px;

  border-radius: 2px;

}

.ticker-tag-gold {

  color: var(--accent-gold);

  font-size: 10px;

  background: rgba(245, 158, 11, 0.1);

  padding: 1px 4px;

  border-radius: 2px;

}

/* App Body Layout */

.app-body {

  display: flex;

  flex: 1;

  height: calc(100vh - var(--titlebar-height) - 28px - var(--statusbar-height));

  overflow: hidden;

}

/* Sidebar Navigation */

.sidebar {

  width: 360px;

  background-color: var(--bg-secondary);

  border-right: 1px solid var(--border-color);

  display: flex;

  flex-direction: column;

  justify-content: space-between;

}

/* Category Switcher Tabs */

.category-switch-bar {

  display: flex;

  gap: 6px;

  padding: 12px 10px 8px 10px;

  background: #0a0d13;

  border-bottom: 1px solid var(--border-color);

}

.cat-btn {

  flex: 1;

  padding: 8px 6px;

  background: #111620;

  border: 1px solid var(--border-color);

  border-radius: 6px;

  color: var(--text-muted);

  font-family: var(--font-mono);

  font-size: 12px;

  font-weight: 700;

  cursor: pointer;

  transition: all 0.15s ease;

}

.cat-btn:hover {

  background: var(--bg-card);

  color: #fff;

}

.cat-btn {
  flex: 1;
  padding: 8px 6px;
  background: #111620;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.cat-btn:hover {
  background: var(--bg-card);
  border-color: rgba(6, 182, 212, 0.45);
  color: #fff;
}

.cat-btn.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.22), rgba(2, 132, 199, 0.12)) !important;
  color: #ffffff !important;
  border-color: var(--color-cyan, #06b6d4) !important;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.4) !important;
}

/* Scrollable Menu Items */

.nav-scrollable-container {

  flex: 1;

  overflow-y: auto;

  padding: 10px;

  display: flex;

  flex-direction: column;

  gap: 12px;

}

.menu-group {

  display: flex;

  flex-direction: column;

  gap: 3px;

}

.menu-group-header {

  font-size: 11.5px;

  text-transform: uppercase;

  color: #38bdf8; /* Warna terang & tajam (Cyber Sky Blue) */

  font-weight: 800;

  letter-spacing: 1.2px;

  padding: 12px 8px 6px 8px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  border-bottom: 1px solid rgba(56, 189, 248, 0.25);

  margin-top: 4px;

  margin-bottom: 6px;

  text-shadow: 0 0 10px rgba(56, 189, 248, 0.35);

}

.menu-item {

  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 9px 12px;

  border-radius: 6px;

  background: transparent;

  color: var(--text-muted);

  font-size: 13px;

  cursor: pointer;

  border: 1px solid transparent;

  transition: all 0.15s ease;

}

.menu-item:hover {

  background: var(--bg-card);

  color: #fff;

}

.menu-item.active {

  background: #151d2a;

  color: #fff;

  border: 1px solid var(--accent-gold);

  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);

  font-weight: 600;

}

/* Badge Penomoran Angka Tajam & Jelas */

.menu-num-badge {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  font-size: 12px;

  font-weight: 800;

  color: #facc15; /* Emas terang */

  background: rgba(245, 158, 11, 0.15);

  border: 1px solid rgba(245, 158, 11, 0.45);

  border-radius: 4px;

  min-width: 32px;

  height: 24px;

  padding: 0 4px;

  margin-right: 10px;

  flex-shrink: 0;

  letter-spacing: 0.5px;

}

.menu-item.active .menu-num-badge {

  background: #f59e0b;

  color: #000;

  border-color: #f59e0b;

  font-weight: 900;

  box-shadow: 0 0 10px rgba(245, 158, 11, 0.7);

}

.menu-title-text {

  color: #cbd5e1;

  font-size: 13px;

  font-weight: 500;

  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;

}

.menu-item:hover .menu-title-text {

  color: #ffffff;

}

.menu-item.active .menu-title-text {

  color: #ffffff;

  font-weight: 700;

}

/* Badge Keterangan Kanan - 100% Uniform Platinum Ice White (Monochrome Institusional ala Bloomberg & FactSet) */

.menu-badge,

.badge-realtime,

.badge-signal,

.badge-screener,

.badge-trades,

.badge-scanner,

.badge-alpha,

.badge-futures,

.badge-blueprint,

.badge-master {

  font-size: 10px;

  padding: 3px 8px;

  border-radius: 4px;

  font-weight: 700;

  letter-spacing: 0.6px;

  flex-shrink: 0;

  color: #f1f5f9;

  background: rgba(241, 245, 249, 0.08);

  border: 1px solid rgba(241, 245, 249, 0.25);

  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);

  transition: all 0.15s ease;

}

.menu-item:hover .menu-badge {

  background: rgba(241, 245, 249, 0.14);

  border-color: rgba(241, 245, 249, 0.45);

  color: #ffffff;

}

.menu-item.active .menu-badge {

  background: rgba(255, 255, 255, 0.16);

  border-color: rgba(255, 255, 255, 0.60);

  color: #ffffff;

  box-shadow: 0 0 6px rgba(255, 255, 255, 0.20);

}

/* Sidebar Footer */

.sidebar-footer {

  padding: 10px;

  border-top: 1px solid var(--border-color);

  background-color: #07090d;

}

/* ==========================================================================
   SIDEBAR FOOTER USER CARD (ACCOUNT INFO BADGE)
   ========================================================================== */
.system-badge-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 10px 12px;
}

.system-badge-card .header,
.system-badge-card .account-info-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 6px;
}

.system-badge-card #sidebar-user-name {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.system-badge-card .status,
.system-badge-card .account-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  margin-bottom: 6px;
}

.system-badge-card .status-left {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-win, #10b981);
  font-weight: 600;
  font-size: 11px;
}

.system-badge-card #sidebar-tier-badge,
.system-badge-card .tier-blue {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: var(--color-cyan, #06b6d4) !important;
  letter-spacing: 0.5px;
  line-height: 1.2;
  text-shadow: 0 0 8px rgba(6, 182, 212, 0.4);
}

.system-badge-card .account-license-row,
.system-badge-card .account-hwid-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  padding-top: 5px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.system-badge-card .account-license-row span,
.system-badge-card .account-license-row .license-label,
.system-badge-card .account-license-row #client-license,
.system-badge-card .account-hwid-row span,
.system-badge-card .account-hwid-row .hwid-label,
.system-badge-card .account-hwid-row #client-hwid {
  color: #64748b !important;
  font-size: 10px !important;
  font-weight: 400 !important;
  letter-spacing: 0.3px;
}

.system-badge-card .account-license-row #sidebar-days-text,
.system-badge-card .account-hwid-row #sidebar-days-text {
  color: #64748b !important;
  font-size: 10px !important;
  font-weight: 400 !important;
  letter-spacing: 0.3px;
  margin-left: auto;
  padding-right: 2px;
}

/* Workspace (Main View) */

.workspace {

  flex: 1;

  background-color: var(--bg-primary);

  display: flex;

  flex-direction: column;

  overflow: hidden;

  padding: 14px 18px;

  gap: 12px;

}

/* Workspace Control Header */

.workspace-header {

  display: flex;

  justify-content: space-between;

  align-items: center;

  background: var(--bg-secondary);

  border: 1px solid var(--border-color);

  border-radius: 8px;

  padding: 10px 14px;

}

.active-category-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--color-cyan, #06b6d4) !important;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.active-menu-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--accent-gold, #f59e0b) !important;
  margin-top: 2px;
}

.workspace-actions {

  display: flex;

  align-items: center;

  gap: 8px;

}

.action-btn {
  background: #151d2a;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.action-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--color-cyan, #06b6d4) !important;
  color: #fff;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.35) !important;
}

.action-btn:disabled {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  color: var(--text-muted) !important;
  box-shadow: none !important;
  pointer-events: none !important;
}

.action-btn.history {
  background: linear-gradient(135deg, #06b6d4, #0284c7) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.4) !important;
  animation: pulse-history-cyan 2s infinite ease-in-out !important;
  transition: all 0.2s ease;
}

.action-btn.history * {
  color: #ffffff !important;
}

.action-btn.history:hover {
  background: linear-gradient(135deg, #0891b2, #0369a1) !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(6, 182, 212, 0.7) !important;
  transform: translateY(-1px);
}

@keyframes pulse-history-cyan {
  0% {
    transform: scale(0.97);
    box-shadow: 0 0 4px rgba(6, 182, 212, 0.4);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.8), 0 0 20px rgba(6, 182, 212, 0.35);
  }
  100% {
    transform: scale(0.97);
    box-shadow: 0 0 4px rgba(6, 182, 212, 0.4);
  }
}

.action-btn.copy:hover {
  border-color: var(--color-cyan, #06b6d4) !important;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.35) !important;
  color: #fff;
}

.action-btn.refresh:hover {
  border-color: var(--color-cyan, #06b6d4) !important;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.35) !important;
  color: #fff;
}

/* Checker Input Panel */

.checker-input-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 14px;
}

.checker-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checker-icon {
  font-size: 14px;
  color: var(--color-cyan, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
}

#checker-input-box {
  flex: 1;
  background: #090c10;
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: 6px;
  padding: 8px 12px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  outline: none;
  transition: all 0.2s ease;
}

#checker-input-box:focus {
  border-color: var(--color-cyan, #06b6d4) !important;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.45) !important;
}

#btn-execute-check {
  background: linear-gradient(135deg, #06b6d4, #0284c7) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11.5px;
  padding: 8px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.35);
  white-space: nowrap;
}

#btn-execute-check:hover {
  background: linear-gradient(135deg, #0891b2, #0369a1) !important;
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.6) !important;
  transform: translateY(-1px);
}

/* Report Viewer Card */

.report-viewer-card {

  flex: 1;

  background: #0b0f16;

  border: 1px solid var(--border-color);

  border-radius: 8px;

  position: relative;

  overflow: hidden;

  display: flex;

  flex-direction: column;

}

.report-loading-overlay {

  position: absolute;

  top: 0;

  left: 0;

  width: 100%;

  height: 100%;

  background: #090c10 !important;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  gap: 12px;

  z-index: 100;

}

.spinner {

  width: 32px;

  height: 32px;

  border: 3px solid rgba(245, 158, 11, 0.2);

  border-top-color: var(--accent-gold);

  border-radius: 50%;

  animation: spin 0.8s linear infinite;

}

@keyframes spin {

  to { transform: rotate(360deg); }

}

/* Text Wrapping & Horizontal Scrollbar Elimination (Zero Horizontal Overflow) */
.report-body {
  flex: 1;
  padding: 22px 26px;
  overflow-y: auto;
  overflow-x: hidden !important;
  user-select: text;
  font-size: 13.5px;
  line-height: 1.7;
  white-space: pre-wrap !important;
  word-wrap: break-word !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  color: #e6edf3;
}

.report-content-pre {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
  white-space: pre-wrap !important;
  word-wrap: break-word !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  overflow-x: hidden !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Styled Action Buttons for Document Links */

.link-btn-wrapper {

  margin: 8px 0 12px 0;

  display: block;

}

.report-link-btn {

  display: inline-flex;

  align-items: center;

  gap: 8px;

  padding: 7px 14px;

  background: rgba(6, 182, 212, 0.12);

  border: 1px solid var(--color-cyan);

  border-radius: 6px;

  color: #fff;

  font-family: 'JetBrains Mono', monospace;

  font-size: 11.5px;

  font-weight: 600;

  letter-spacing: 0.3px;

  cursor: pointer;

  transition: all 0.18s ease;

  box-shadow: 0 0 10px rgba(6, 182, 212, 0.15);

  user-select: none;

  text-decoration: none;

}

.report-link-btn:hover {

  background: var(--color-cyan);

  color: #050a12;

  border-color: #a5f3fc;

  box-shadow: 0 0 16px rgba(6, 182, 212, 0.45);

  transform: translateY(-1px);

}

.report-link-btn:active {

  transform: translateY(0);

}

.report-link-btn .link-icon {

  font-size: 13px;

}

.report-link-btn .link-arrow {

  font-size: 12px;

  opacity: 0.8;

  transition: transform 0.18s ease;

}

.report-link-btn:hover .link-arrow {

  transform: translate(2px, -2px);

  opacity: 1;

}

.report-link-pill {

  display: inline-block;

  margin: 4px 0;

  padding: 4px 10px;

  background: rgba(6, 182, 212, 0.12);

  color: var(--color-cyan);

  border: 1px solid var(--color-cyan);

  border-radius: 4px;

  text-decoration: none;

  font-weight: 600;

  font-size: 11px;

  cursor: pointer;

  transition: all 0.15s ease;

  user-select: none;

}

.report-link-pill:hover {

  background: var(--color-cyan);

  color: #000;

  box-shadow: 0 0 10px var(--color-cyan-glow);

}

/* Bottom Status Bar */

.statusbar {

  height: var(--statusbar-height);

  background-color: var(--bg-secondary);

  border-top: 1px solid var(--border-color);

  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 0 12px;

  font-size: 11px;

  color: var(--text-dim);

}

.status-left, .status-right {

  display: flex;

  align-items: center;

  gap: 14px;

}

.status-item span {

  color: var(--text-muted);

}

/* ==============================================================================

   MODAL DIALOG & AUTHENTICATION STYLING (TAHAP 3)

   ============================================================================== */

/* Interactive System Badge Card */

.system-badge-card.clickable {

  cursor: pointer;

  transition: all 0.2s ease;

}

.system-badge-card.clickable:hover {
  background: var(--bg-card-hover);
  border-color: var(--color-cyan, #06b6d4) !important;
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.35) !important;
}

/* Modal Overlay Backdrop - Dedicated Full Zero-Delay Landing Screen */

.auth-modal-overlay {

  position: fixed;

  top: var(--titlebar-height);

  left: 0;

  width: 100vw;

  height: calc(100vh - var(--titlebar-height));

  background: var(--bg-primary); /* #090c10 - Solid Dark, Zero-Flicker Landing */

  display: flex;

  align-items: center;

  justify-content: center;

  z-index: 10000;

  transition: opacity 0.2s ease, visibility 0.2s ease;

}

.profile-modal-overlay {

  position: fixed;

  top: 0;

  left: 0;

  width: 100vw;

  height: 100vh;

  background: rgba(5, 8, 12, 0.88);

  backdrop-filter: blur(8px);

  -webkit-backdrop-filter: blur(8px);

  display: flex;

  align-items: center;

  justify-content: center;

  z-index: 10002;

  animation: fadeIn 0.2s ease-out;

}

@keyframes fadeIn {

  from { opacity: 0; }

  to { opacity: 1; }

}

@keyframes slideUp {

  from { transform: translateY(20px); opacity: 0; }

  to { transform: translateY(0); opacity: 1; }

}

/* Auth Card Box */

.auth-card {

  width: 480px;

  max-width: 90vw;

  background: var(--bg-card);

  border: 1px solid var(--border-accent);

  border-radius: 8px;

  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(6, 182, 212, 0.15);

  padding: 28px;

  display: flex;

  flex-direction: column;

  gap: 18px;

  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);

}

/* Auth Header */

.auth-header {

  text-align: center;

  position: relative;

}

.auth-brand-badge {

  display: inline-block;

  background: rgba(245, 158, 11, 0.15);

  color: var(--accent-gold);

  border: 1px solid var(--accent-gold);

  font-size: 10px;

  font-weight: 700;

  padding: 2px 8px;

  border-radius: 4px;

  letter-spacing: 1px;

  margin-bottom: 8px;

}

.brand-logo-img {

  height: 18px;

  width: auto;

  object-fit: contain;

  vertical-align: middle;

  margin-right: 6px;

}

.auth-crest {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
}

.auth-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.7);
  background-color: #080808;
}

.profile-logo-img {

  height: 20px;

  width: auto;

  object-fit: contain;

  vertical-align: middle;

  margin-right: 8px;

}

.auth-title {

  font-size: 18px;

  font-weight: 800;

  color: var(--text-main);

  letter-spacing: 0.8px;

}

.auth-subtitle {

  font-size: 13px;

  font-weight: 600;

  color: #94a3b8;

  letter-spacing: 0.6px;

  margin-top: 4px;

}

/* Tab Switcher */

.auth-tab-bar {

  display: grid;

  grid-template-columns: 1fr 1fr;

  background: var(--bg-secondary);

  border: 1px solid var(--border-color);

  border-radius: 6px;

  padding: 3px;

  gap: 4px;

}

.auth-tab-btn {

  background: transparent;

  border: none;

  color: var(--text-muted);

  font-family: var(--font-mono);

  font-size: 11px;

  font-weight: 700;

  padding: 8px;

  border-radius: 4px;

  cursor: pointer;

  transition: all 0.2s ease;

}

.auth-tab-btn:hover {

  color: var(--text-main);

}

.auth-tab-btn.active {

  background: rgba(6, 182, 212, 0.15);

  color: var(--color-cyan);

  border: 1px solid var(--color-cyan);

  box-shadow: 0 0 10px var(--color-cyan-glow);

}

#tab-btn-register.active {

  background: rgba(245, 158, 11, 0.15);

  color: var(--accent-gold);

  border: 1px solid var(--accent-gold);

  box-shadow: 0 0 10px var(--accent-gold-glow);

}

#tab-btn-login:hover {

  color: var(--color-cyan);

  border: 1px solid rgba(6, 182, 212, 0.35);

}

#tab-btn-register:hover {

  color: var(--accent-gold);

  border: 1px solid rgba(245, 158, 11, 0.35);

}

#form-register .input-field-wrapper input:focus {

  border-color: var(--accent-gold);

  box-shadow: 0 0 10px var(--accent-gold-glow);

}

#form-register .input-field-wrapper:focus-within .field-icon {

  color: var(--accent-gold);

}

/* Alert Notification */

.auth-alert {

  padding: 10px 14px;

  border-radius: 6px;

  font-size: 12px;

  line-height: 1.4;

}

.auth-alert.error {

  background: rgba(244, 63, 94, 0.12);

  border: 1px solid var(--color-loss);

  color: #fca5a5;

}

.auth-alert.success {

  background: rgba(16, 185, 129, 0.12);

  border: 1px solid var(--color-win);

  color: #86efac;

}

/* Forms & Inputs */

.auth-form {

  display: flex;

  flex-direction: column;

  gap: 14px;

}

.input-group {

  display: flex;

  flex-direction: column;

  gap: 5px;

}

.input-group label {

  font-size: 11px;

  font-weight: 600;

  color: var(--text-muted);

  text-transform: uppercase;

  letter-spacing: 0.5px;

}

.input-field-wrapper {

  position: relative;

  display: flex;

  align-items: center;

}

.input-field-wrapper .field-icon {

  position: absolute;

  left: 11px;

  width: 15px;

  height: 15px;

  display: flex;

  align-items: center;

  justify-content: center;

  color: var(--text-muted, #8b949e);

  pointer-events: none;

  transition: color 0.2s ease;

}

.input-field-wrapper:focus-within .field-icon {

  color: var(--text-main, #f0f6fc);

}

.input-field-wrapper .field-svg {

  width: 15px;

  height: 15px;

  stroke: currentColor;

}

.input-field-wrapper input {

  width: 100%;

  padding: 10px 36px 10px 34px;

  background: #080c12;

  border: 1px solid var(--border-color);

  border-radius: 5px;

  color: var(--text-main);

  font-family: var(--font-mono);

  font-size: 12px;

  transition: all 0.2s ease;

}

.input-field-wrapper input:focus {

  outline: none;

  border-color: var(--color-cyan);

  box-shadow: 0 0 10px var(--color-cyan-glow);

  background: #0b111a;

}

.eye-toggle-btn {

  position: absolute;

  right: 8px;

  width: 26px;

  height: 26px;

  background: transparent;

  border: none;

  cursor: pointer;

  display: flex;

  align-items: center;

  justify-content: center;

  color: var(--text-muted, #8b949e);

  padding: 4px;

  border-radius: 4px;

  transition: color 0.2s ease, background 0.2s ease;

}

.eye-toggle-btn:hover {

  color: var(--text-main, #f0f6fc);

  background: rgba(255, 255, 255, 0.06);

}

.eye-toggle-btn .eye-svg {

  width: 15px;

  height: 15px;

  stroke: currentColor;

}

/* Form Options */

.form-options {

  display: flex;

  align-items: center;

  justify-content: space-between;

  font-size: 11px;

}

.remember-me-label {

  display: flex;

  align-items: center;

  gap: 6px;

  color: var(--text-muted);

  cursor: pointer;

}

.remember-me-label input[type="checkbox"] {

  cursor: pointer;

  accent-color: var(--color-cyan);

}

/* Submit Buttons */

.auth-submit-btn {

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 8px;

  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(6, 182, 212, 0.4));

  color: #fff;

  border: 1px solid var(--color-cyan);

  padding: 11px;

  border-radius: 5px;

  font-family: var(--font-mono);

  font-size: 12px;

  font-weight: 700;

  letter-spacing: 0.5px;

  cursor: pointer;

  transition: all 0.2s ease;

  margin-top: 4px;

}

.auth-submit-btn:hover {

  background: var(--color-cyan);

  color: #000;

  box-shadow: 0 0 15px var(--color-cyan-glow);

  transform: translateY(-1px);

}

.auth-submit-btn.register {

  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.4));

  border-color: var(--accent-gold);

}

.auth-submit-btn.register:hover {

  background: var(--accent-gold);

  color: #000;

  box-shadow: 0 0 15px var(--accent-gold-glow);

}

.auth-submit-btn:disabled {

  opacity: 0.5;

  cursor: not-allowed;

  transform: none;

}

/* Auth Card Footer */

.auth-footer {

  border-top: 1px solid var(--border-color);

  padding-top: 12px;

  display: flex;

  flex-direction: column;

  gap: 6px;

  font-size: 11px;

  text-align: center;

  color: var(--text-dim);

}

.auth-footer .hwid-note span {

  color: var(--text-muted);

  font-family: var(--font-mono);

}

.auth-footer .contact-admin {

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  gap: 3px;

  margin-top: 4px;

}

.auth-footer .contact-prompt {

  color: var(--text-muted, #8b949e);

  font-size: 11px;

  text-align: center;

}

.auth-footer .contact-link {

  font-size: 11.5px;

  font-weight: 600;

  text-decoration: none;

  text-align: center;

  transition: color 0.15s ease, text-shadow 0.15s ease;

}

/* Login Theme: Cyan */

.auth-card.theme-login .contact-link {

  color: var(--color-cyan);

}

.auth-card.theme-login .contact-link:hover {

  text-decoration: underline;

  color: #a5f3fc;

  text-shadow: 0 0 8px rgba(6, 182, 212, 0.4);

}

/* Register Theme: Gold */

.auth-card.theme-register .contact-link {

  color: var(--accent-gold);

}

.auth-card.theme-register .contact-link:hover {

  text-decoration: underline;

  color: #fde047;

  text-shadow: 0 0 8px rgba(245, 158, 11, 0.4);

}

/* ==============================================================================

   PROFILE & RENEWAL MODAL STYLING

   ============================================================================== */

.profile-card {

  width: 520px;

  max-width: 90vw;

  background: var(--bg-card);

  border: 1px solid var(--border-accent);

  border-radius: 8px;

  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(245, 158, 11, 0.15);

  padding: 24px;

  display: flex;

  flex-direction: column;

  gap: 16px;

  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);

}

.profile-header {

  display: flex;

  align-items: center;

  justify-content: space-between;

  border-bottom: 1px solid var(--border-color);

  padding-bottom: 12px;

}

.profile-title {

  display: flex;

  align-items: center;

  gap: 8px;

  font-size: 13px;

  font-weight: 800;

  color: var(--text-main);

  letter-spacing: 0.5px;

}

.profile-close-btn {

  background: transparent;

  border: none;

  color: var(--text-muted);

  font-size: 16px;

  cursor: pointer;

  padding: 4px 8px;

  border-radius: 4px;

  transition: all 0.15s ease;

}

.profile-close-btn:hover {

  background: rgba(244, 63, 94, 0.15);

  color: var(--color-loss);

}

.profile-content {

  display: flex;

  flex-direction: column;

  gap: 16px;

}

.profile-info-grid {

  display: flex;

  flex-direction: column;

  background: var(--bg-secondary);

  border: 1px solid var(--border-color);

  border-radius: 6px;

  overflow: hidden;

}

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 500;
}

.info-value {
  font-weight: 600;
  color: #ffffff;
  font-size: 13px;
}

.info-value.mono {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}

.info-value.win {
  color: var(--color-win, #10b981);
  font-weight: 700;
  font-size: 13px;
}

.info-value.gold,
.info-value.blue,
.info-value.cyan {
  color: var(--color-cyan, #06b6d4) !important;
  text-shadow: 0 0 8px rgba(6, 182, 212, 0.35);
  font-size: 13px;
}

#prof-days {
  color: #ffffff !important;
  text-shadow: none !important;
  font-weight: 600 !important;
  font-size: 13px !important;
}

.info-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.info-badge.basic {
  background: rgba(6, 182, 212, 0.15);
  color: var(--color-cyan);
  border: 1px solid var(--color-cyan);
}

.info-badge.premium {
  background: rgba(6, 182, 212, 0.15) !important;
  color: var(--color-cyan, #06b6d4) !important;
  border: 1px solid var(--color-cyan, #06b6d4) !important;
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.3) !important;
}

/* Renew Section */

.profile-renew-section {
  background: rgba(6, 182, 212, 0.05) !important;
  border: 1px dashed rgba(6, 182, 212, 0.4) !important;
  border-radius: 6px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.renew-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-cyan, #06b6d4) !important;
  letter-spacing: 0.5px;
}

.renew-input-wrapper {
  display: flex;
  gap: 8px;
}

.renew-input-wrapper input {
  flex: 1;
  padding: 8px 12px;
  background: #080c12;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 12px;
}

.renew-input-wrapper input:focus {
  outline: none;
  border-color: var(--color-cyan, #06b6d4) !important;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.35) !important;
}

.renew-input-wrapper button {
  background: linear-gradient(135deg, #06b6d4, #0284c7) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 0 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.35);
}

.renew-input-wrapper button:hover {
  background: linear-gradient(135deg, #0891b2, #0369a1) !important;
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.6) !important;
}

.renew-msg {

  padding: 8px 12px;

  border-radius: 4px;

  font-size: 11px;

}

/* Logout Button */

.profile-actions {

  display: flex;

  justify-content: flex-end;

}

.btn-logout {
  background: transparent;
  border: 1px solid var(--border-color);
  color: #94a3b8;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-logout:hover {
  background: rgba(244, 63, 94, 0.12);
  color: var(--color-loss, #f43f5e);
  border-color: var(--color-loss, #f43f5e);
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.25);
}


/* ==========================================================================
   INLINE HYPERLINKS & ONE-CLICK ECOSYSTEM SYNC CARD (OWNER EXCLUSIVE)
   ========================================================================== */
.terminal-inline-link {
  color: var(--color-cyan, #06b6d4) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  cursor: pointer;
  padding: 1px 4px;
  border-radius: 3px;
  transition: all 0.15s ease;
  display: inline;
}

.terminal-inline-link:hover {
  color: #38bdf8 !important;
  background: rgba(6, 182, 212, 0.15);
  text-shadow: 0 0 6px rgba(6, 182, 212, 0.4);
}

.sync-action-card {
  white-space: normal !important;
  margin-top: 18px;
  margin-bottom: 8px;
  padding: 14px 18px;
  background: #0d1424;
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  max-width: 860px;
  width: 100%;
  box-sizing: border-box;
}

.sync-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.sync-card-info {
  flex: 1;
  min-width: 260px;
}

.sync-card-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--color-cyan, #06b6d4);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sync-card-subtitle {
  font-size: 11px;
  color: var(--text-muted, #94a3b8);
  margin-top: 4px;
  font-family: var(--font-mono);
  letter-spacing: 0.2px;
}

.btn-sync-action {
  background: linear-gradient(135deg, #06b6d4, #0284c7) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  font-weight: 700 !important;
  font-family: var(--font-mono);
  padding: 8px 16px !important;
  border-radius: 6px !important;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11.5px !important;
  white-space: nowrap;
  width: auto !important;
  width: fit-content !important;
  max-width: fit-content !important;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.35);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-sync-action:hover {
  background: linear-gradient(135deg, #0891b2, #0369a1) !important;
  box-shadow: 0 4px 18px rgba(6, 182, 212, 0.55);
  border-color: #38bdf8 !important;
  transform: translateY(-1px);
}

.btn-sync-action:disabled {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

.sync-progress-box {
  margin-top: 14px;
  padding: 14px 18px;
  background: #07090e;
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  color: #cbd5e1;
}

.sync-progress-status {
  color: #38bdf8;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 12px;
}


/* Red Notification Badge for Unsynced Updates */
.sync-badge-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  min-width: 8px;
  background-color: #ef4444;
  border-radius: 50%;
  margin-left: 6px;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.9), 0 0 14px rgba(239, 68, 68, 0.4);
  animation: pulse-sync-red 2s infinite ease-in-out;
  vertical-align: middle;
}

@keyframes pulse-sync-red {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 4px rgba(239, 68, 68, 0.8);
  }
  50% {
    transform: scale(1.25);
    box-shadow: 0 0 10px rgba(239, 68, 68, 1), 0 0 16px rgba(239, 68, 68, 0.6);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 4px rgba(239, 68, 68, 0.8);
  }
}

.badge-sync-needed {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #ef4444 !important;
  border-color: rgba(239, 68, 68, 0.6) !important;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.3) !important;
  animation: pulse-sync-red 2s infinite ease-in-out;
}

.sync-item-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background-color: #ef4444;
  border-radius: 50%;
  margin-right: 6px;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.9);
  animation: pulse-sync-red 2s infinite ease-in-out;
}

.sync-status-clickable {
  transition: opacity 0.2s;
}

.sync-status-clickable:hover {
  opacity: 0.8;
}

.sync-alert-banner {
  margin-bottom: 14px;
  padding: 10px 14px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 6px;
  color: #fca5a5;
  font-family: var(--font-mono);
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sync-alert-banner.synced {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}


/* Minimalist Empty State Placeholder - Perfectly Centered */
.report-body:has(.empty-placeholder-card) {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px !important;
}

.empty-placeholder-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: auto;
  width: 100%;
  max-width: 540px;
  text-align: center;
  padding: 20px 16px;
  user-select: none;
  white-space: normal !important;
  animation: fadeInPlaceholder 0.25s ease-out;
  box-sizing: border-box;
}

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

.placeholder-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  box-shadow: 0 0 24px rgba(6, 182, 212, 0.12);
  transition: all 0.3s ease;
}

.placeholder-icon-wrapper:hover {
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 0 28px rgba(6, 182, 212, 0.25);
  transform: scale(1.04);
}

.placeholder-title {
  font-family: var(--font-mono);
  font-size: 14.5px;
  font-weight: 600;
  color: #e2e8f0;
  max-width: 480px;
  line-height: 1.6;
  letter-spacing: 0.25px;
  text-align: center;
  white-space: normal !important;
  margin: 0 auto;
}

.placeholder-subtitle {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #64748b;
  margin-top: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
  text-align: center;
  white-space: normal !important;
}

/* Error State Centering & Modern Styling */
.terminal-error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 380px;
  height: 100%;
  padding: 32px 20px;
  margin: 0 auto;
}

.terminal-error-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.terminal-error-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--color-loss, #f85149);
  margin-bottom: 12px;
}

.terminal-error-desc {
  font-size: 11.5px;
  color: var(--text-muted, #94a3b8);
  max-width: 480px;
  line-height: 1.6;
  margin: 0 auto 20px auto;
  text-align: center;
}

.terminal-error-action {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto;
}

.error-retry-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto !important;
  padding: 8px 18px !important;
  font-weight: 600 !important;
}

/* ==========================================================================
   WEB TERMINAL EXTENSIONS (RESPONSIVE, FULLSCREEN & WEB PWA HEADER)
   ========================================================================== */
.web-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding-right: 12px;
}

.header-action-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: all 0.18s ease;
  user-select: none;
}

.header-action-btn:hover {
  background: rgba(6, 182, 212, 0.18);
  border-color: rgba(6, 182, 212, 0.5);
  color: #38bdf8;
  transform: translateY(-1px);
}

.header-action-btn:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .sidebar {
    width: 240px;
  }
  .clocks-container {
    display: none;
  }
  .titlebar {
    padding: 0 8px;
  }
}

