/* ============================================================
   TECHLY® — Tech Dashboard Template (moban13)
   Dark blue tech dashboard theme with glassmorphism panels.
   ============================================================ */

:root {
  --bg: #0E1626;
  --panel: #16213A;
  --panel-2: #1E2A45;
  --text: #E5EAF4;
  --muted: #8B9BB4;
  --accent: #22D3EE;
  --success: #34D399;
  --warn: #F59E0B;
  --danger: #F87171;
  --glass-bg: rgba(30, 42, 69, 0.55);
  --glass-bg-strong: rgba(22, 33, 58, 0.82);
  --glass-border: rgba(139, 155, 180, 0.16);
  --sidebar-w: 240px;
  --topbar-h: 64px;
  --radius: 14px;
  --radius-sm: 10px;
  --font-sans: "Inter", Arial, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: Consolas, "Courier New", "SFMono-Regular", monospace;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #7fe6f7;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input,
textarea {
  font-family: inherit;
}

::selection {
  background: rgba(34, 211, 238, 0.3);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--panel-2);
  border-radius: 8px;
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: #2b3a5e;
}

/* ============================================================
   Layout shell: fixed sidebar + sticky topbar + main
   ============================================================ */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  z-index: 60;
  display: flex;
  flex-direction: column;
  padding: 22px 16px;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-right: 1px solid var(--glass-border);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

/* Brand block */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 6px 20px;
  border-bottom: 1px solid var(--glass-border);
}

.brand-logo {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
}

.brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text);
}

.brand-name em {
  font-style: normal;
  color: var(--accent);
}

.brand-tagline {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  line-height: 1.35;
  color: var(--muted);
}

/* Sidebar nav */
.sidebar-nav {
  flex: 1;
  padding: 18px 0;
}

.nav-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  padding: 0 10px;
  margin-bottom: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  margin-bottom: 4px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.nav-item svg {
  flex-shrink: 0;
  opacity: 0.85;
}

.nav-item:hover {
  color: var(--text);
  background: rgba(34, 211, 238, 0.08);
}

.nav-item.active {
  color: var(--text);
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.16), rgba(34, 211, 238, 0.04));
  border-color: rgba(34, 211, 238, 0.35);
}

.nav-item.active svg {
  color: var(--accent);
}

/* Sidebar status card */
.sidebar-status {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.sidebar-status-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 6px;
}

.sidebar-status-text {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* ============================================================
   Topbar
   ============================================================ */

.topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: var(--sidebar-w);
  height: var(--topbar-h);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 26px;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  transition: left 0.3s ease;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text);
}

.menu-toggle:hover {
  border-color: rgba(34, 211, 238, 0.5);
}

.search-box {
  flex: 1;
  max-width: 460px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: border-color 0.2s ease;
}

.search-box:focus-within {
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

.search-box svg {
  flex-shrink: 0;
  color: var(--muted);
}

.search-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 13.5px;
}

.search-box input::placeholder {
  color: var(--muted);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--success);
  white-space: nowrap;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
}

.notify-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--muted);
  transition: all 0.2s ease;
}

.notify-btn:hover {
  color: var(--text);
  border-color: rgba(34, 211, 238, 0.5);
}

.notify-badge {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warn);
  border: 2px solid var(--panel);
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  color: var(--panel);
  background: linear-gradient(135deg, var(--accent), #7ee8fa);
  border: 2px solid rgba(34, 211, 238, 0.5);
}

/* ============================================================
   Main content
   ============================================================ */

.main {
  margin-left: var(--sidebar-w);
  padding: calc(var(--topbar-h) + 30px) 30px 60px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.page-header h1 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.h1-sub {
  display: inline-block;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.page-sub {
  margin-top: 6px;
  max-width: 720px;
  color: var(--muted);
  font-size: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #0891b2);
  color: #062033;
  box-shadow: 0 6px 18px rgba(34, 211, 238, 0.28);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(34, 211, 238, 0.38);
  color: #062033;
}

.btn-outline {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: rgba(34, 211, 238, 0.5);
}

/* Glass panel */
.panel {
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.panel-title {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-title::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 3px;
  background: var(--accent);
}

.panel-meta {
  font-size: 12px;
  color: var(--muted);
}

/* ============================================================
   KPI cards
   ============================================================ */

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}

.kpi-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.kpi-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.4);
}

.kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kpi-title {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.kpi-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kpi-icon.cyan {
  background: rgba(34, 211, 238, 0.14);
  color: var(--accent);
  border: 1px solid rgba(34, 211, 238, 0.3);
}

.kpi-icon.green {
  background: rgba(52, 211, 153, 0.14);
  color: var(--success);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.kpi-icon.orange {
  background: rgba(245, 158, 11, 0.14);
  color: var(--warn);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.kpi-value {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

.kpi-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
}

.kpi-delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 700;
  font-family: var(--font-mono);
}

.kpi-delta.up {
  color: var(--success);
  background: rgba(52, 211, 153, 0.12);
}

.kpi-delta.down {
  color: var(--danger);
  background: rgba(248, 113, 113, 0.12);
}

.kpi-compare {
  color: var(--muted);
}

/* ============================================================
   Two-column chart area
   ============================================================ */

.grid-2col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
  margin-bottom: 22px;
}

.trend-chart {
  width: 100%;
  height: auto;
  display: block;
}

.chart-grid-line {
  stroke: rgba(139, 155, 180, 0.18);
  stroke-width: 1;
}

.chart-axis-label {
  fill: var(--muted);
  font-size: 10px;
  font-family: var(--font-mono);
}

.chart-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-line.alt {
  stroke: var(--success);
  stroke-width: 2;
  stroke-dasharray: 5 5;
}

.chart-area {
  fill: url(#trendGradient);
  opacity: 0.28;
}

.legend {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--muted);
}

.legend-swatch {
  width: 18px;
  height: 4px;
  border-radius: 3px;
}

/* Ring / circular progress */
.ring-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ring-wrap {
  position: relative;
  width: 172px;
  height: 172px;
  margin: 8px 0 16px;
}

.ring-svg {
  transform: rotate(-90deg);
}

.ring-track {
  fill: none;
  stroke: rgba(139, 155, 180, 0.18);
  stroke-width: 12;
}

.ring-progress {
  fill: none;
  stroke: url(#ringGradient);
  stroke-width: 12;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.4s ease;
}

.ring-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 700;
}

.ring-note {
  font-size: 13px;
  color: var(--muted);
  max-width: 240px;
}

.ring-stats {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

.ring-stat {
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(22, 33, 58, 0.6);
  border: 1px solid var(--glass-border);
}

.ring-stat-label {
  font-size: 11.5px;
  color: var(--muted);
}

.ring-stat-value {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  color: var(--success);
}

/* ============================================================
   Data table
   ============================================================ */

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
}

table.dash-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.dash-table th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 12px 14px;
  border-bottom: 1px solid var(--glass-border);
  white-space: nowrap;
}

.dash-table td {
  padding: 13px 14px;
  font-size: 13.5px;
  border-bottom: 1px solid rgba(139, 155, 180, 0.1);
  vertical-align: middle;
}

.dash-table tbody tr {
  transition: background 0.2s ease;
  cursor: default;
}

.dash-table tbody tr:hover,
.dash-table tbody tr.row-active {
  background: rgba(34, 211, 238, 0.08);
}

.dash-table tbody tr:hover td:first-child,
.dash-table tbody tr.row-active td:first-child {
  box-shadow: inset 3px 0 0 var(--accent);
}

.draw-no {
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 600;
}

.draw-time {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
}

.balls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.ball {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: #071019;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.ball[data-n="0"] { background: #8B9BB4; }
.ball[data-n="1"] { background: #22D3EE; }
.ball[data-n="2"] { background: #34D399; }
.ball[data-n="3"] { background: #F59E0B; }
.ball[data-n="4"] { background: #F87171; }
.ball[data-n="5"] { background: #A78BFA; }
.ball[data-n="6"] { background: #60A5FA; }
.ball[data-n="7"] { background: #F472B6; }
.ball[data-n="8"] { background: #FACC15; }
.ball[data-n="9"] { background: #2DD4BF; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-verified {
  color: var(--success);
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.badge-syncing {
  color: var(--warn);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* ============================================================
   Data sources list
   ============================================================ */

.source-list {
  display: flex;
  flex-direction: column;
}

.source-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(139, 155, 180, 0.1);
  transition: background 0.2s ease;
}

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

.source-row:hover {
  background: rgba(34, 211, 238, 0.05);
}

.source-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.25);
  color: var(--accent);
}

.source-info {
  flex: 1;
  min-width: 0;
}

.source-name {
  font-size: 14px;
  font-weight: 600;
}

.source-freq {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.online {
  background: var(--success);
  animation: status-blink 1.8s ease-in-out infinite;
}

.status-dot.standby {
  background: var(--warn);
  animation: status-blink 2.6s ease-in-out infinite;
}

.status-dot.offline {
  background: var(--danger);
}

@keyframes status-blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.4); }
  50% { opacity: 0.45; box-shadow: 0 0 0 5px rgba(52, 211, 153, 0); }
}

.source-label {
  font-size: 12px;
  color: var(--muted);
  width: 52px;
  text-align: right;
  flex-shrink: 0;
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--glass-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: 30px;
  padding-bottom: 24px;
}

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

.footer-brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.footer-brand strong {
  font-size: 16px;
  letter-spacing: 0.05em;
}

.footer-desc {
  font-size: 13px;
  color: var(--muted);
  max-width: 340px;
}

.footer-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 14px;
}

.footer-links li {
  margin-bottom: 9px;
}

.footer-links a {
  color: var(--muted);
  font-size: 13.5px;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13.5px;
  margin-bottom: 10px;
}

.footer-contact svg {
  flex-shrink: 0;
  color: var(--accent);
}

.footer-copy {
  padding-top: 16px;
  border-top: 1px solid rgba(139, 155, 180, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted);
}

/* ============================================================
   Inner pages — shared
   ============================================================ */

.page-intro {
  margin-bottom: 26px;
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.45);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(34, 211, 238, 0.05));
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: var(--accent);
  margin-bottom: 2px;
}

.service-card h3 {
  font-size: 17px;
  font-weight: 700;
}

.service-card p {
  font-size: 13.5px;
  color: var(--muted);
}

.service-feats {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-feats li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--text);
}

.service-feats li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  margin-bottom: 26px;
  align-items: start;
}

.about-media {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-img {
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.about-copy p {
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 14px;
}

.about-copy strong {
  color: var(--text);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.stat-chip {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  text-align: center;
}

.stat-chip b {
  display: block;
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--accent);
}

.stat-chip span {
  font-size: 12px;
  color: var(--muted);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(34, 211, 238, 0.1));
}

.timeline-item {
  position: relative;
  padding-bottom: 26px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--panel);
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.18);
}

.tl-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
}

.timeline-item h3 {
  font-size: 16.5px;
  margin: 3px 0 6px;
}

.timeline-item p {
  font-size: 13.5px;
  color: var(--muted);
  max-width: 640px;
}

/* Insights */
.post-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 4px;
  border-bottom: 1px solid rgba(139, 155, 180, 0.1);
  transition: background 0.2s ease, padding-left 0.2s ease;
}

.post-row:hover {
  background: rgba(34, 211, 238, 0.05);
  padding-left: 12px;
}

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

.date-badge {
  width: 62px;
  flex-shrink: 0;
  text-align: center;
  padding: 10px 6px;
  border-radius: var(--radius-sm);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}

.date-badge b {
  display: block;
  font-family: var(--font-mono);
  font-size: 19px;
  color: var(--accent);
  line-height: 1.1;
}

.date-badge span {
  font-size: 10.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.post-body {
  flex: 1;
  min-width: 0;
}

.post-body h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.post-body h3 a {
  color: var(--text);
}

.post-body h3 a:hover {
  color: var(--accent);
}

.post-body p {
  font-size: 13.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
  white-space: nowrap;
}

.tag-cyan { color: var(--accent); background: rgba(34, 211, 238, 0.12); border: 1px solid rgba(34, 211, 238, 0.3); }
.tag-green { color: var(--success); background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.3); }
.tag-orange { color: var(--warn); background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.3); }

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
}

.faq-item {
  border-radius: var(--radius-sm);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.open {
  border-color: rgba(34, 211, 238, 0.45);
}

.faq-item > button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  padding: 17px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  background: transparent;
}

.faq-item > button::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.faq-item.open > button::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

.faq-answer p {
  padding: 0 20px 18px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 22px;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 7px;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: rgba(14, 22, 38, 0.6);
  border: 1px solid var(--glass-border);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 130px;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

.form-status {
  font-size: 13px;
  color: var(--success);
  min-height: 20px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}

.contact-card svg {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 2px;
}

.contact-card h3 {
  font-size: 14px;
  margin-bottom: 3px;
}

.contact-card p {
  font-size: 13px;
  color: var(--muted);
}

/* ============================================================
   Responsive
   ============================================================ */

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

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

  .grid-2col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1023px) {
  .sidebar {
    transform: translateX(-100%);
    box-shadow: none;
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: 24px 0 60px rgba(0, 0, 0, 0.55);
  }

  .topbar {
    left: 0;
  }

  .main {
    margin-left: 0;
    padding: calc(var(--topbar-h) + 22px) 20px 50px;
  }

  .menu-toggle {
    display: flex;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .live-indicator {
    display: none;
  }

  .search-box {
    max-width: none;
  }

  .page-header h1 {
    font-size: 24px;
  }

  .post-row {
    flex-wrap: wrap;
  }
}
