/* ============================================================
   MAIN.CSS — Tech på landet (adamhalvars.se)
   Ersätter: index.css, blogg.css, skynode.css
   ============================================================ */

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

/* ── BASE ── */
body {
  font-family: 'Courier New', Courier, monospace;
  background-color: #f4f4f4;
  font-size: 14px;
  color: #111;
  transition: background-color 0.3s ease, color 0.3s ease;
}
a { color: #000; text-decoration: none; }
a:visited { color: #000; }
a:hover { text-decoration: underline; }
a::before { color: #000; }

/* ── TICKER ── */
.ticker-wrap {
  width: 100%; overflow: hidden;
  background: #f6c123; border-bottom: 2px solid #000;
  height: 32px; display: flex; align-items: center;
  position: sticky; top: 0; z-index: 999;
}
.ticker-track {
  display: flex; white-space: nowrap;
  animation: ticker-scroll 250s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  font-size: 0.78rem; color: #1a1a1a;
  letter-spacing: 0.05em;
  font-family: 'Courier New', Courier;
  padding: 0 2.5rem;
}
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── MODE BAR (Privat / Business toggle) ── */
.mode-bar {
  background: #111318; border-bottom: 2px solid #1c2128;
  padding: 8px 20px; display: flex;
  align-items: center; justify-content: space-between;
}
.site-logo-text {
  font-size: 12px; color: #ffcc00;
  font-weight: 700; letter-spacing: 0.1em;
}
.mode-toggle-wrap {
  display: flex; align-items: center; gap: 10px;
  font-size: 10px; letter-spacing: 0.08em;
}
.mode-label {
  font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 3px 8px;
  border: 1px solid #30363d; color: #8b949e;
}
.mode-label.active {
  background: #f6c123; color: #000;
  border-color: #000; font-weight: 700;
}
.mode-toggle { position: relative; width: 54px; height: 26px; cursor: pointer; }
.mode-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.mode-slider {
  position: absolute; inset: 0;
  background: #1c2128; border: 2px solid #30363d;
  border-radius: 0; transition: 0.3s;
}
.mode-slider::before {
  content: ''; position: absolute;
  width: 16px; height: 16px; top: 3px; left: 3px;
  background: #8b949e; transition: 0.3s;
}
.mode-toggle input:checked + .mode-slider { background: #0a1628; border-color: #3b82f6; }
.mode-toggle input:checked + .mode-slider::before {
  transform: translateX(28px); background: #3b82f6;
}

/* ── LAYOUT ── */
.container {
  display: flex; min-height: 100vh;
  flex-direction: row; align-items: stretch;
}

/* ── LEFT COLUMN ── */
.left-column {
  width: 280px; min-width: 260px;
  background-color: #323232; color: darkgrey;
  padding: 20px; display: flex;
  flex-direction: column; justify-content: space-between;
}
.left-top h2 {
  color: #ffcc00; font-size: 1.1rem;
  letter-spacing: 0.05em; margin-bottom: 4px;
}
.left-top p {
  font-size: 0.75rem; color: #888;
  margin-bottom: 20px; line-height: 1.5;
}
.left-bottom {
  font-size: 0.7rem; color: #555;
  line-height: 1.6; border-top: 1px solid #444;
  padding-top: 14px;
}

/* ── LINKS ── */
.links { list-style: none; padding: 0; margin-top: 16px; }
.links li { margin: 10px 0; }
.links a { color: #ffcc00; text-decoration: none; font-size: 0.85rem; }
.links a:hover { text-decoration: underline; }

/* ── RIGHT COLUMN ── */
.right-column {
  flex: 1; min-width: 0;
  background-color: #f4f4f4;
  padding: 40px; display: flex;
  flex-direction: column; align-items: center;
}
.right-column > *, .right-column .article-body {
  width: 100%; max-width: 680px; text-align: left;
}

/* ── PROJECT GRID (index) ── */
.right-projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px; padding: 20px;
  width: 100%; max-width: none; text-align: center;
}
.project-item {
  background: #fff; border: 2px solid #000;
  padding: 20px; box-shadow: 4px 4px 0 #000;
  transition: all 0.2s ease; text-align: center;
}
.project-item:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 #000; }
.project-item h2 { font-size: 1rem; margin-bottom: 8px; }

/* ── HERO SECTION ── */
.hero-section {
  text-align: center; padding: 60px 20px 40px;
  color: #111;
}
.hero-text h1 { border-left: none; padding-left: 0; text-align: center; }

/* ── TERMINAL PROFILE ── */
.terminal-profile {
  width: 100%; min-height: 300px;
  background-color: #111318;
  border: 2px solid #000; border-radius: 8px;
  box-shadow: 4px 4px 0px #000;
  margin: 20px 0; display: flex;
  flex-direction: column; overflow: hidden;
  font-family: 'Courier New', Courier, monospace;
}
.terminal-header {
  background-color: #323232; border-bottom: 2px solid #000;
  padding: 8px 12px; display: flex;
  align-items: center; gap: 8px;
}
.term-btn {
  width: 12px; height: 12px;
  border-radius: 50%; border: 1px solid #000;
}
.term-btn.close { background-color: #ff5f56; }
.term-btn.min   { background-color: #ffbd2e; }
.term-btn.max   { background-color: #27c93f; }
.term-title {
  color: darkgrey; font-size: 0.75rem;
  margin-left: 10px; letter-spacing: 0.05em;
}
.terminal-body {
  padding: 16px; font-size: 0.85rem;
  line-height: 1.6; flex: 1;
}
.terminal-body p { margin: 0 0 12px 0; color: #e6edf3; }
.term-prompt { color: #27c93f; font-weight: bold; margin-right: 8px; }
.term-output { color: #ffcc00; margin-bottom: 16px !important; }
.term-cursor {
  display: inline-block; width: 8px; height: 14px;
  background-color: #ffcc00; vertical-align: middle;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* ── BUTTONS ── */
.back-button {
  display: inline-block; margin-top: 20px; margin-bottom: 30px;
  padding: 8px 20px; background-color: #ffcc00;
  color: #000; text-decoration: none; font-weight: 700;
  font-size: 0.8rem; border: 2px solid #000; border-radius: 0;
  cursor: pointer; box-shadow: 4px 4px 0px #000;
  transition: all 0.2s ease; font-family: 'Courier New', Courier, monospace;
  align-self: flex-start;
}
.back-button:hover { background-color: #ffdb4d; transform: translate(-2px,-2px); box-shadow: 6px 6px 0px #000; text-decoration: none; }
.back-button:active { transform: translate(2px,2px); box-shadow: 0 0 0 #000; }

/* ── TYPOGRAPHY ── */
h1 {
  font-family: 'Courier New', monospace;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700; line-height: 1.2; margin-bottom: 12px;
  border-left: 5px solid #ffcc00; padding-left: 14px;
}
h2 { font-size: 1.2rem; margin-bottom: 8px; }
h3 { font-size: 1.05rem; margin-bottom: 8px; }
h4 { font-size: 0.95rem; margin-bottom: 6px; }

.category-tag {
  display: inline-block; background: #111; color: #ffcc00;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; padding: 4px 10px;
  margin-bottom: 16px; border: 2px solid #000; align-self: flex-start;
}
.intro-text {
  font-size: 1rem; color: #444; border-left: 3px solid #ccc;
  padding-left: 14px; margin-bottom: 16px;
  line-height: 1.7; font-style: italic;
}
.meta {
  display: flex; gap: 20px; font-size: 0.75rem; color: #888;
  border-top: 2px solid #000; border-bottom: 2px solid #000;
  padding: 8px 0; margin-bottom: 28px;
}
.article-body p {
  font-size: 0.95rem; line-height: 1.8;
  margin-bottom: 18px; max-width: 680px;
}

/* ── CARDS ── */
.info-card, .tool-card {
  background: #fff; border: 2px solid #000;
  border-left: 6px solid #ffcc00; padding: 20px 22px;
  margin: 24px 0; box-shadow: 5px 5px 0 #000;
  transition: all 0.2s ease; max-width: 680px;
}
.info-card:hover, .tool-card:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 #000; }
.info-card-title, .tool-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.info-card-sub, .tool-tagline {
  font-size: 0.72rem; color: #888;
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px;
}
.info-card p, .tool-card p { font-size: 0.9rem !important; margin-bottom: 8px !important; line-height: 1.7; }
.tool-number {
  display: inline-block; background: #ffcc00; color: #000;
  font-weight: 700; font-size: 0.75rem; padding: 2px 8px;
  border: 2px solid #000; margin-bottom: 10px; letter-spacing: 0.05em;
}
.tip-box {
  background: #fffbea; border: 2px solid #000;
  border-left: 4px solid #ffcc00; padding: 8px 12px;
  font-size: 0.82rem; margin-top: 10px; box-shadow: 3px 3px 0 #000;
}
.warning-box {
  background: #fff3cd; border: 2px solid #ff9800;
  border-left: 6px solid #ff9800; padding: 14px 16px;
  margin: 20px 0; box-shadow: 4px 4px 0 #000; font-size: 0.88rem;
}

/* ── CODE ── */
.code-block {
  background: #1e1e1e; color: #d4d4d4; border: 2px solid #000;
  border-left: 6px solid #00d7ff; padding: 14px 16px;
  margin: 20px 0; font-family: 'Courier New', monospace;
  font-size: 0.85rem; overflow-x: auto;
  box-shadow: 5px 5px 0 #000; line-height: 1.5;
}
.code-block pre { margin: 0; white-space: pre-wrap; }
.code-label {
  background: #111; color: #ffcc00; font-size: 0.7rem;
  font-weight: 700; padding: 2px 8px; display: inline-block;
  margin-bottom: 10px; border: 1px solid #ffcc00; letter-spacing: 0.05em;
}
.c-green  { color: #4ec9b0; }
.c-yellow { color: #ffcc00; }
.c-blue   { color: #9cdcfe; }
.c-string { color: #ce9178; }
.c-num    { color: #b5cea8; }
.c-gray   { color: #6a9955; }

/* ── CODE EDITOR (bashrc) ── */
.code-editor {
  font-family: 'Courier New', Courier, monospace;
  background: linear-gradient(180deg,#0f1720,#111318);
  color: #e6edf3; border-radius: 10px;
  box-shadow: 0 6px 18px rgba(2,6,23,0.6);
  overflow: hidden; border: 1px solid rgba(255,255,255,0.04);
  margin: 1rem 0;
}
.code-editor .editor-header {
  display: flex; justify-content: space-between;
  align-items: center; gap: 8px; padding: 8px 12px;
  background: linear-gradient(90deg,rgba(255,255,255,0.03),transparent);
  border-bottom: 1px solid rgba(255,255,255,0.02);
}
.code-editor .filename { font-size: 0.95rem; color: #cbd5e1; }
.code-editor .editor-actions button {
  background: transparent; border: 1px solid rgba(255,255,255,0.06);
  color: #cbd5e1; padding: 6px 8px; border-radius: 6px;
  cursor: pointer; font-size: 0.9rem;
}
.code-editor .editor-actions button:hover { background: rgba(255,255,255,0.02); }
.code-editor textarea {
  width: 100%; min-height: 280px; max-height: 60vh;
  resize: vertical; border: none; outline: none; padding: 14px;
  background: transparent; color: inherit;
  font-size: 0.95rem; line-height: 1.5;
  box-sizing: border-box; caret-color: #9be7ff;
  white-space: pre; font-family: 'Courier New', Courier, monospace;
}
.code-editor .status {
  padding: 8px 12px; font-size: 0.85rem; color: #9aa6b2;
  border-top: 1px solid rgba(255,255,255,0.02);
}

/* ── CONTENT COMPONENTS ── */
.pullquote {
  font-size: 1.2rem; font-weight: 700; text-align: center;
  padding: 24px 20px; margin: 32px 0;
  border-top: 3px solid #000; border-bottom: 3px solid #000;
  background: #ffcc00; color: #000; box-shadow: 5px 5px 0 #000;
  max-width: 680px;
}
.summary-box {
  background: #323232; color: #f4f4f4;
  padding: 20px 24px; margin: 28px 0;
  border: 2px solid #000; box-shadow: 5px 5px 0 #000; max-width: 680px;
}
.summary-box h3 {
  font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: #ffcc00; margin-bottom: 14px;
  border-bottom: 1px solid #555; padding-bottom: 8px;
}
.summary-box ul { list-style: none; padding: 0; }
.summary-box li { padding: 6px 0; font-size: 0.88rem; border-bottom: 1px solid #444; color: #ccc; }
.summary-box li:last-child { border-bottom: none; }
.summary-box li::before { content: "→ "; color: #ffcc00; font-weight: 700; }

.cta-section {
  text-align: center; padding: 32px 20px;
  border-top: 2px solid #000; margin-top: 32px; max-width: 680px;
}
.cta-section h3 { font-size: 1.1rem; margin-bottom: 8px; }
.cta-section p { color: #666; margin-bottom: 16px; font-size: 0.9rem; }
.cta-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ── FLOW DIAGRAM ── */
.flow-diagram { display: flex; align-items: center; gap: 0; margin: 24px 0; flex-wrap: wrap; }
.flow-box {
  background: #fff; border: 2px solid #000; padding: 12px 16px;
  font-size: 0.82rem; font-weight: 700; box-shadow: 3px 3px 0 #000;
  text-align: center; min-width: 110px;
}
.flow-box.yellow { background: #ffcc00; }
.flow-box.dark   { background: #323232; color: #ffcc00; }
.flow-box.green  { background: #e8f5e9; border-left: 4px solid #4caf50; }
.flow-box.blue   { background: #e3f2fd; border-left: 4px solid #2196f3; }
.flow-arrow { font-size: 1.4rem; padding: 0 8px; color: #888; font-weight: 700; }

/* ── ARCH GRID ── */
.arch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.arch-card { border: 2px solid #000; padding: 16px; box-shadow: 4px 4px 0 #000; }
.arch-card.windows { background: #e3f2fd; border-left: 6px solid #2196f3; }
.arch-card.linux   { background: #e8f5e9; border-left: 6px solid #4caf50; }
.arch-card h4 { margin-bottom: 10px; font-size: 0.95rem; }
.arch-card ul { list-style: none; padding: 0; }
.arch-card li { padding: 5px 0; font-size: 0.85rem; border-bottom: 1px solid #ddd; }
.arch-card li:last-child { border-bottom: none; }
.arch-card li::before { content: "→ "; font-weight: 700; }

/* ── ENDPOINT ── */
.endpoint-row {
  display: flex; align-items: flex-start; gap: 14px; margin: 14px 0;
  border: 2px solid #000; padding: 14px;
  background: #fff; box-shadow: 4px 4px 0 #000;
}
.endpoint-badge {
  background: #111; color: #00d7ff; font-size: 0.7rem; font-weight: 700;
  padding: 3px 9px; border: 1px solid #00d7ff; white-space: nowrap;
  letter-spacing: 0.08em; flex-shrink: 0; margin-top: 2px;
}
.endpoint-info { flex: 1; }
.endpoint-path { font-weight: 700; font-size: 0.9rem; margin-bottom: 4px; }
.endpoint-desc { font-size: 0.82rem; color: #555; line-height: 1.6; }

/* ── TIMELINE ── */
.timeline { border-left: 3px solid #ffcc00; margin: 24px 0; padding-left: 20px; }
.tl-item { margin-bottom: 24px; position: relative; }
.tl-item::before {
  content: ''; width: 14px; height: 14px;
  background: #ffcc00; border: 2px solid #000; border-radius: 50%;
  position: absolute; left: -28px; top: 3px;
}
.tl-date { font-size: 0.72rem; color: #888; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }
.tl-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 4px; }
.tl-desc { font-size: 0.85rem; color: #555; line-height: 1.6; }

/* ── STAT ROW ── */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0; }
.stat-card {
  background: #fff; border: 2px solid #000;
  padding: 16px; box-shadow: 4px 4px 0 #000; text-align: center;
}
.stat-num { font-size: 2rem; font-weight: 700; color: #111; line-height: 1; }
.stat-label { font-size: 0.7rem; color: #888; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 6px; }

/* ── SCREENSHOT MOCK ── */
.screenshot-mock { background: #1a1a1a; border: 2px solid #000; box-shadow: 5px 5px 0 #000; margin: 24px 0; overflow: hidden; }
.mock-titlebar {
  background: #323232; padding: 8px 14px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 2px solid #ffcc00;
}
.mock-dot { width: 10px; height: 10px; border-radius: 50%; border: 1px solid #000; }
.mock-dot.red    { background: #f44336; }
.mock-dot.yellow { background: #ffcc00; }
.mock-dot.green  { background: #4caf50; }
.mock-url { margin-left: 10px; font-size: 0.72rem; color: #888; }
.mock-body { padding: 16px; font-size: 0.8rem; line-height: 1.6; color: #d4d4d4; }

/* ── IMAGES ── */
.profile-pic { width: 100%; border-radius: 10px; margin: 10px 0; }
.logo-pic    { width: 50%; border-radius: 10px; margin: 10px 0; }
.image-link  { text-decoration: none; color: inherit; }
.image-link img { width: 80%; max-width: 600px; border-radius: 10px; transition: transform 0.3s ease; }
.image-link img:hover { transform: scale(1.05); }

/* ── INPUT ── */
.input-field {
  padding: 12px; border: 2px solid #000; border-radius: 0;
  box-shadow: 4px 4px 0px #000; outline: none; transition: all 0.2s;
}
.input-field:focus { transform: translate(-2px,-2px); box-shadow: 6px 6px 0px #000; }

/* ── AFFILIATE SIDEBAR ── */
.affiliate-sidebar {
  width: 180px; min-width: 180px; background-color: #323232;
  display: flex; flex-direction: column;
  border-left: 2px solid #000; position: sticky; top: 0;
  align-self: flex-start; height: 100vh; overflow: hidden;
}
.sidebar-label {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: #ffcc00;
  padding: 10px 12px 8px; border-bottom: 2px solid #000;
  background-color: #1a1a1a;
}
.progress-bar { height: 4px; background: #1a1a1a; border-bottom: 1px solid #000; }
.progress-fill { height: 100%; width: 0%; background: #ffcc00; transition: none; }
.progress-fill.animating { transition: width 10s linear; width: 100%; }
.cards-viewport { flex: 1; position: relative; overflow: hidden; }
.ad-card {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; padding: 18px 12px; gap: 10px; text-align: center;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease; pointer-events: none;
}
.ad-card.active { opacity: 1; transform: translateY(0); pointer-events: all; }
.ad-card.exit   { opacity: 0; transform: translateY(-20px); }
.card-badge {
  display: inline-block; background: #111; color: #ffcc00;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; padding: 3px 8px; border: 2px solid #000;
}
.card-icon {
  width: 56px; height: 56px; background: #1a1a1a;
  border: 2px solid #000; box-shadow: 3px 3px 0 #000;
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
}
.card-title { font-family: 'Courier New', Courier, monospace; font-size: 0.82rem; font-weight: 700; color: #f4f4f4; line-height: 1.3; }
.card-desc  { font-family: 'Courier New', Courier, monospace; font-size: 0.68rem; color: darkgrey; line-height: 1.5; }
.card-cta {
  display: inline-block; margin-top: 4px; padding: 7px 12px;
  background-color: #ffcc00; color: #000; text-decoration: none;
  font-family: 'Courier New', Courier, monospace; font-weight: 700;
  font-size: 0.65rem; border: 2px solid #000; border-radius: 0;
  box-shadow: 3px 3px 0 #000; transition: all 0.2s ease; white-space: nowrap;
}
.card-cta:hover { background-color: #ffdb4d; transform: translate(-2px,-2px); box-shadow: 5px 5px 0 #000; }
.card-cta:active { transform: translate(2px,2px); box-shadow: 0 0 0 #000; }
.dots { display: flex; justify-content: center; gap: 6px; padding: 10px 0; border-top: 2px solid #000; background-color: #1a1a1a; }
.dot { width: 8px; height: 8px; background: #444; border: 1px solid #000; cursor: pointer; transition: background 0.2s, transform 0.2s; }
.dot.active { background: #ffcc00; transform: scale(1.2); }
.dot:hover  { background: #ffdb4d; }

/* ── GALLERY ── */
.gallery-section { margin: 32px 0; }
.gallery-title   { font-size: 1.05rem; font-weight: 700; margin-bottom: 14px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.gallery-card { border: 2px solid #000; box-shadow: 4px 4px 0 #000; overflow: hidden; background: #fff; transition: transform 0.2s ease; }
.gallery-card:hover { transform: translate(-2px,-2px); }
.gallery-card img   { width: 100%; height: 100%; display: block; object-fit: cover; }
.gallery-card span  { display: block; padding: 10px; font-size: 0.8rem; background: #111; color: #ffcc00; text-align: center; }
.lightbox-overlay {
  position: fixed; inset: 0; display: none;
  align-items: center; justify-content: center;
  padding: 20px; background: rgba(0,0,0,0.85); z-index: 999;
}
.lightbox-overlay:target { display: flex; }
.lightbox-overlay img { max-width: 100%; max-height: 100%; border: 4px solid #ffcc00; box-shadow: 0 0 0 4px #000; }
.lightbox-close {
  position: absolute; top: 18px; right: 18px;
  width: 42px; height: 42px; background: #ffcc00; color: #000;
  border: 2px solid #000; display: flex; align-items: center;
  justify-content: center; text-decoration: none; font-weight: 700;
}

/* ── MODAL ── */
.modal {
  display: none; position: fixed; z-index: 9999;
  left: 0; top: 0; width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.7);
  align-items: center; justify-content: center;
}
.modal-content {
  background-color: #fff; border: 2px solid #000;
  width: 90%; max-width: 500px; position: relative;
  box-shadow: 6px 6px 0px #000;
  font-family: 'Courier New', Courier, monospace;
}
.modal-header {
  background-color: #1a1a1a; color: #ffcc00;
  padding: 10px 14px; border-bottom: 2px solid #000;
  display: flex; justify-content: space-between; align-items: center;
}
.modal-title { font-weight: 700; font-size: 0.8rem; letter-spacing: 0.1em; }
.close-btn { font-size: 1.5rem; cursor: pointer; color: #fff; line-height: 1; }
.close-btn:hover { color: #ffcc00; }
.modal-body { padding: 24px; text-align: left; }
.modal-body p { font-size: 0.85rem; color: #111; line-height: 1.6; margin-bottom: 14px; }
.ok-btn {
  display: inline-block; margin-top: 10px; padding: 8px 20px;
  background-color: #ffcc00; color: #000;
  font-family: 'Courier New', Courier, monospace;
  font-weight: 700; font-size: 0.8rem; border: 2px solid #000;
  border-radius: 0; box-shadow: 4px 4px 0px #000; cursor: pointer; transition: all 0.2s ease;
}
.ok-btn:hover  { background-color: #ffdb4d; transform: translate(-2px,-2px); box-shadow: 6px 6px 0px #000; }
.ok-btn:active { transform: translate(2px,2px); box-shadow: 0 0 0 #000; }

/* ── TERM MODAL ── */
.term-modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background-color: rgba(0,0,0,0.75);
  align-items: center; justify-content: center;
}
.term-modal-overlay.open { display: flex; }
.term-modal {
  width: 90%; max-width: 560px; max-height: 80vh;
  background-color: #111318; border: 2px solid #000; border-radius: 8px;
  box-shadow: 6px 6px 0px #000; display: flex; flex-direction: column;
  overflow: hidden; font-family: 'Courier New', Courier, monospace;
  animation: modal-drop 0.18s ease;
}
@keyframes modal-drop { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: translateY(0); } }
.term-modal-header {
  background-color: #323232; border-bottom: 2px solid #000;
  padding: 8px 12px; display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.term-modal-btns { display: flex; gap: 6px; align-items: center; }
.term-modal-title { color: darkgrey; font-size: 0.75rem; margin-left: 6px; letter-spacing: 0.05em; flex: 1; }
.term-modal-body {
  padding: 20px; overflow-y: auto; flex: 1;
  line-height: 1.6; font-size: 0.85rem; color: #e6edf3;
  scrollbar-width: thin; scrollbar-color: #ffcc00 #1a1a1a;
}
.term-modal-body::-webkit-scrollbar       { width: 6px; }
.term-modal-body::-webkit-scrollbar-track { background: #1a1a1a; }
.term-modal-body::-webkit-scrollbar-thumb { background: #ffcc00; }
.term-modal-body p  { margin: 0 0 14px 0; color: #e6edf3; }
.term-modal-output  { color: #ffcc00; padding-left: 16px; margin: 0 0 16px 0; }
.term-modal-output a { color: #27c93f; text-decoration: none; }
.term-modal-output a:hover { text-decoration: underline; }
.term-modal-divider { border: none; border-top: 1px solid #2a2a2a; margin: 16px 0; }
.term-modal-footer {
  background-color: #1a1a1a; border-top: 2px solid #000;
  padding: 8px 14px; display: flex; justify-content: space-between;
  align-items: center; flex-shrink: 0;
}
.term-modal-status { font-size: 0.72rem; color: #555; letter-spacing: 0.05em; }
.term-modal-close-btn {
  padding: 6px 16px; background-color: #ffcc00; color: #000;
  font-family: 'Courier New', Courier, monospace; font-weight: 700;
  font-size: 0.75rem; border: 2px solid #000; border-radius: 0;
  box-shadow: 3px 3px 0px #000; cursor: pointer; transition: all 0.15s ease;
}
.term-modal-close-btn:hover  { background-color: #ffdb4d; transform: translate(-1px,-1px); box-shadow: 5px 5px 0 #000; }
.term-modal-close-btn:active { transform: translate(2px,2px); box-shadow: 0 0 0 #000; }

/* ── FOOTER ── */
.site-footer {
  width: 100%; background-color: #1a1a1a;
  border-top: 3px solid #f6c123; padding: 16px 40px;
  display: flex; align-items: center; gap: 14px;
  font-size: 0.72rem; color: black; line-height: 1.7;
  box-sizing: border-box;
}
.site-footer .footer-label {
  background: #f6c123; color: #000; font-weight: 700;
  font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 3px 8px; border: 2px solid #000; white-space: nowrap; flex-shrink: 0;
}
.site-footer p { margin: 0; color: #888; }
footer {
  text-align: center; padding: 20px; font-size: 0.75rem;
  color: #888; border-top: 2px solid #000;
}

/* ── DARK MODE TOGGLE BUTTON ── */
#darkModeToggle {
  position: fixed; bottom: 24px; right: 24px; z-index: 9998;
  margin: 0; font-size: 0.75rem; padding: 8px 16px;
  font-family: 'Courier New', Courier, monospace; cursor: pointer;
}

/* ============================================================
   DARK MODE
   ============================================================ */
body.dark-mode {
  background-color: #0d1117;
  color: #e6edf3;
}
body.dark-mode a { color: #e6edf3; }
body.dark-mode a:visited { color: #c9d1d9; }
body.dark-mode .right-column { background-color: #161b22; color: #e6edf3; }
body.dark-mode .project-item { background-color: #1c2128; border-color: #30363d; }
body.dark-mode .project-item h2 { color: #e6edf3; }
body.dark-mode .hero-section   { color: #e6edf3; }
body.dark-mode .intro-text     { color: #8b949e; border-left-color: #30363d; }
body.dark-mode .modal-content  { background-color: #161b22; }
body.dark-mode .modal-body p   { color: #e6edf3; }
body.dark-mode .tool-card,
body.dark-mode .info-card      { background: #1c2128; color: #e6edf3; }
body.dark-mode .tip-box        { background: #1c2128; color: #e6edf3; }
body.dark-mode .input-field    { background-color: #1c2128; color: #e6edf3; border-color: #30363d; }
body.dark-mode .stat-card      { background: #1c2128; border-color: #30363d; color: #e6edf3; }
body.dark-mode .stat-num       { color: #e6edf3; }
body.dark-mode .arch-card      { background: #1c2128; border-color: #30363d; }
body.dark-mode .arch-card.windows { background: #0d2137; }
body.dark-mode .arch-card.linux   { background: #0d2118; }
body.dark-mode .endpoint-row      { background: #1c2128; border-color: #30363d; }
body.dark-mode .gallery-card      { background: #1c2128; border-color: #30363d; }
body.dark-mode .pullquote         { background: #1a1a00; color: #ffcc00; }
body.dark-mode .summary-box       { background: #1c2128; }

/* ============================================================
   BUSINESS MODE
   ============================================================ */
.biz-mode-hidden  { display: none !important; }
.biz-mode-visible { display: none; }
body.biz-mode .biz-mode-visible { display: block; }
body.biz-mode .biz-mode-hidden  { display: none !important; }

/* Business panel styles */
.biz-services-grid {
  display: grid; grid-template-columns: repeat(2,1fr);
  gap: 14px; margin: 20px 0;
}
.biz-svc-card {
  background: #111318; border: 1px solid #1c2128;
  border-left: 3px solid #3b82f6; padding: 16px;
  transition: 0.2s;
}
.biz-svc-card:hover { border-left-color: #ffcc00; transform: translate(-1px,-1px); }
.biz-svc-card h4 { font-size: 12px; color: #e6edf3; margin-bottom: 6px; }
.biz-svc-card p  { font-size: 10px; color: #8b949e; line-height: 1.6; }
.biz-svc-card .biz-price { font-size: 11px; color: #27c93f; margin-top: 8px; }

.biz-skills-wrap { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; }
.biz-skill {
  font-size: 10px; padding: 4px 10px;
  background: #1c2128; border: 1px solid #30363d;
  color: #8b949e; letter-spacing: 0.04em;
}

.biz-contact-form { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.biz-cf-label { font-size: 9px; letter-spacing: 0.1em; color: #555; text-transform: uppercase; display: block; margin-bottom: 4px; }
.biz-cf-input {
  background: #0d1117; border: 1px solid #1c2128;
  color: #e6edf3; font-family: 'Courier New', monospace;
  font-size: 11px; padding: 8px 10px; outline: none; width: 100%;
}
.biz-cf-input:focus { border-color: #f6c123; }
.biz-cf-ta { min-height: 80px; resize: vertical; }
.biz-badge-avail {
  display: inline-block; font-size: 9px; padding: 3px 10px;
  letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700;
  background: #0a1f10; color: #27c93f; border: 1px solid #1a3a20;
  margin-bottom: 12px;
}
.biz-section-head {
  font-size: 10px; letter-spacing: 0.15em; color: #555;
  text-transform: uppercase; padding-bottom: 8px;
  border-bottom: 1px solid #1c2128; margin-bottom: 14px; margin-top: 24px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .right-projects { grid-template-columns: repeat(2,1fr); }
  .biz-services-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .container { flex-direction: column; }
  .left-column { width: 100%; min-width: unset; }
  .right-column { padding: 24px 18px; }
  .arch-grid { grid-template-columns: 1fr; }
  .stat-row  { grid-template-columns: 1fr 1fr; }
  .flow-diagram { flex-direction: column; }
  .flow-arrow   { transform: rotate(90deg); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .right-projects { grid-template-columns: 1fr 1fr; }
  .biz-services-grid { grid-template-columns: 1fr; }
  .mode-bar { flex-direction: column; gap: 8px; }
}
