:root {
  --bg-page: #030712;
  --bg-term: #050c1d;
  --bg-titlebar: #0a1633;
  --bg-chip: #0d1d42;
  /* Dinamo Zagreb Blue Palette */
  --dinamo-dark: #002b6b;
  --dinamo-blue: #0044a9;
  --dinamo-royal: #0f62fe;
  --dinamo-light: #3b82f6;
  --dinamo-bright: #60a5fa;
  /* Contrast Yellow */
  --yellow: #facc15;
  /* Borders & Text */
  --border-term: rgba(30, 117, 255, 0.48);
  --border-subtle: rgba(96, 165, 250, 0.24);
  --text-white: #ffffff;
  --text-dim: #cbd5e1;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --font-display: 'Space Grotesk', sans-serif;
}

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

html,
body {
  height: 100%;
  background-color: var(--bg-page);
  color: var(--text-white);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body {
  background-image:
    radial-gradient(circle at 50% 0%, rgba(0, 68, 169, 0.34), transparent 65%),
    linear-gradient(to bottom, #050c1e, #030712);
}

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

.page-wrapper {
  max-width: 1120px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 16px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Top Company Header */
.company-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 20px;
  background: rgba(10, 22, 51, 0.9);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--dinamo-royal);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 20, 60, 0.45);
}

.brand-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff;
}

.brand-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--dinamo-blue), var(--dinamo-dark));
  border: 1px solid var(--dinamo-bright);
  color: var(--yellow);
  font-family: var(--font-mono);
  font-weight: 700;
}

.accent {
  color: var(--yellow);
}

.brand-sub {
  font-size: 0.78rem;
  color: var(--dinamo-bright);
}

.company-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
}

.legal-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legal-label {
  color: var(--dinamo-bright);
}

.legal-value {
  color: #ffffff;
  font-weight: 600;
}

.legal-mail {
  color: var(--yellow);
  text-decoration: none;
}

.legal-mail:hover {
  text-decoration: underline;
}

.legal-sep {
  color: var(--border-subtle);
}

.lang-toggle {
  display: inline-flex;
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 2px;
  margin-left: 4px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.lang-btn.active {
  background: var(--dinamo-blue);
  color: var(--yellow);
}

/* Terminal Window */
.terminal-window {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-term);
  border: 1px solid var(--border-term);
  border-radius: 10px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.82),
    0 0 36px rgba(0, 68, 169, 0.25);
  overflow: hidden;
  min-height: 580px;
  max-height: calc(100vh - 110px);
}

.terminal-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 16px;
  background: var(--bg-titlebar);
  border-bottom: 1px solid var(--border-subtle);
  user-select: none;
}

.window-controls {
  display: flex;
  gap: 7px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-close { background: #ef4444; }
.dot-min { background: var(--yellow); }
.dot-max { background: var(--dinamo-light); }

.terminal-title {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.terminal-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--yellow);
  font-weight: 600;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 8px var(--yellow);
}

/* Pure Terminal Body */
.terminal-body {
  flex: 1;
  padding: 20px 26px;
  overflow-y: auto;
  cursor: text;
}

.terminal-body:focus {
  outline: none;
}

/* Terminal Text Output Styles (No Cards — Pure SSH Printout) */
@keyframes termLineFade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.term-reveal {
  opacity: 0;
  animation: termLineFade 0.25s ease forwards;
}

.ascii-banner {
  color: var(--dinamo-bright);
  text-shadow: 0 0 16px rgba(59, 130, 246, 0.35);
  font-weight: 700;
  line-height: 1.18;
  font-size: 0.78rem;
  white-space: pre;
  overflow-x: auto;
  margin: 8px 0;
}

.term-divider {
  color: var(--dinamo-light);
  opacity: 0.65;
  margin: 8px 0;
  white-space: nowrap;
  overflow: hidden;
}

.term-section {
  margin-bottom: 16px;
}

.term-line {
  color: #ffffff;
  margin-bottom: 4px;
}

.term-yellow {
  color: var(--yellow);
  font-weight: 700;
}

.term-blue {
  color: var(--dinamo-bright);
  font-weight: 600;
}

.term-dim {
  color: var(--text-dim);
}

.term-menu-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 2px 6px;
  margin: 2px -6px;
  border-radius: 4px;
  cursor: pointer;
  color: #ffffff;
  transition: background 0.12s ease;
}

.term-menu-row:hover {
  background: rgba(0, 68, 169, 0.45);
}

.term-bullet {
  position: relative;
  padding-left: 20px;
  margin-bottom: 5px;
  color: #ffffff;
}

.term-bullet::before {
  content: "*";
  position: absolute;
  left: 4px;
  color: var(--yellow);
  font-weight: 700;
}

.term-link {
  color: var(--yellow);
  text-decoration: underline;
  font-weight: 600;
}

.cmd-echo {
  margin: 14px 0 8px;
  font-weight: 600;
  color: #ffffff;
}

/* 99 Clean Large Company Info Screen */
.info-99-screen {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 48px 20px 32px;
  gap: 16px;
}

.info-99-company {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.05em;
  line-height: 1.15;
}

.info-99-oib {
  font-family: var(--font-mono);
  font-size: clamp(1.35rem, 2.8vw, 2.1rem);
  font-weight: 700;
  color: var(--yellow);
  letter-spacing: 0.04em;
}

.info-99-address {
  font-family: var(--font-mono);
  font-size: clamp(1.2rem, 2.4vw, 1.85rem);
  font-weight: 500;
  color: #ffffff;
}

.info-99-hint {
  margin-top: 28px;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* Active Prompt Line */
.prompt-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
  transition: opacity 0.25s ease;
}

.prompt-line.hidden-prompt {
  opacity: 0;
  pointer-events: none;
}

.prompt-label {
  flex-shrink: 0;
  font-weight: 600;
  user-select: none;
}

.prompt-user { color: var(--dinamo-bright); }
.prompt-colon { color: #ffffff; }
.prompt-dir { color: var(--yellow); }
.prompt-hash { color: #ffffff; margin-left: 4px; }

.cmd-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  caret-color: var(--yellow);
}

.cmd-input:focus {
  outline: none;
}

.cmd-input::placeholder {
  color: rgba(203, 213, 225, 0.42);
}

/* Shortcut Bar */
.terminal-ShortcutBar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: var(--bg-titlebar);
  border-top: 1px solid var(--border-subtle);
}

.shortcut-hint {
  font-size: 0.74rem;
  color: var(--text-dim);
  margin-right: 4px;
}

.shortcut-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.term-chip {
  background: var(--bg-chip);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 3px 9px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.term-chip:hover {
  border-color: var(--yellow);
  color: var(--yellow);
  background: var(--dinamo-blue);
}

.chip-alt {
  color: var(--yellow);
  border-color: rgba(250, 204, 21, 0.4);
}

@media (max-width: 768px) {
  .terminal-window {
    max-height: none;
  }

  .ascii-banner {
    font-size: 0.55rem;
  }
}
