:root {
  --ink: #080b10;
  --panel: #0d1219;
  --panel-soft: #121923;
  --line: rgba(179, 196, 215, .13);
  --muted: #758297;
  --text: #e6edf5;
  --cyan: #6de7db;
  --orange: #ff8c62;
  --red: #ff5f6d;
  --mono: "DM Mono", monospace;
  --sans: "Space Grotesk", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--ink); color: var(--text); font-family: var(--sans); width: 100%; height: 100%; }
body { overflow: hidden; }
button, a { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; display: grid; grid-template-rows: 70px 1fr; background: radial-gradient(circle at 50% 20%, rgba(40, 65, 83, .13), transparent 44%), var(--ink); }
.topbar { height: 70px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 28px; background: rgba(8, 11, 16, .92); z-index: 10; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; letter-spacing: .04em; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--cyan); color: var(--cyan); font: 600 16px var(--mono); transform: rotate(45deg); }
.brand-mark::first-letter { transform: rotate(-45deg); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; line-height: 1; letter-spacing: .14em; }
.brand small { color: var(--muted); font: 9px var(--mono); letter-spacing: .12em; margin-top: 4px; }
.topbar-status { color: var(--muted); display: flex; align-items: center; gap: 9px; font: 10px var(--mono); letter-spacing: .12em; }
.status-dot, .live-badge i { width: 7px; height: 7px; background: var(--cyan); border-radius: 50%; box-shadow: 0 0 10px var(--cyan); animation: blink 1.8s ease-in-out infinite; }
.status-divider { width: 1px; height: 14px; background: var(--line); margin: 0 3px; }
.topbar-actions { display: flex; gap: 8px; }
.icon-button, .map-controls button { border: 1px solid var(--line); background: rgba(16, 23, 31, .85); color: var(--text); width: 34px; height: 34px; transition: color .2s, border-color .2s, background .2s; }
.icon-button:hover, .map-controls button:hover { color: var(--cyan); border-color: rgba(109, 231, 219, .55); background: rgba(109, 231, 219, .08); }
.workspace { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 380px; height: 100%; }
.map-stage { position: relative; min-height: 0; overflow: hidden; background: #0b1117; }
#map { height: 100%; width: 100%; background: #0b1117; }
.leaflet-container { background: #0b1117; font-family: var(--sans); }
.leaflet-control-attribution { background: rgba(8, 11, 16, .7) !important; color: #627082 !important; font-size: 9px; }
.leaflet-control-attribution a { color: #8799a8; }
.map-overlay { position: absolute; z-index: 500; pointer-events: none; }
.map-heading { top: 42px; left: 44px; }
.eyebrow { color: var(--cyan); font: 10px var(--mono); letter-spacing: .18em; margin: 0 0 12px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(34px, 4vw, 58px); line-height: .98; letter-spacing: -.055em; margin-bottom: 14px; font-weight: 600; }
h1 em { color: var(--cyan); font-style: normal; }
.heading-note { color: #a1afbd; font: 11px var(--mono); letter-spacing: .02em; }
.map-legend { left: 44px; bottom: 33px; display: flex; align-items: center; gap: 8px; color: #a2afbc; font: 9px var(--mono); letter-spacing: .12em; }
.legend-line { width: 25px; height: 2px; background: var(--orange); box-shadow: 0 0 8px var(--orange); margin-left: 1px; }
.legend-target { width: 8px; height: 8px; border: 2px solid var(--cyan); border-radius: 50%; margin-left: 14px; box-shadow: 0 0 8px var(--cyan); }
.map-controls { pointer-events: auto; right: 24px; bottom: 30px; display: flex; gap: 5px; }
.map-controls button { font-size: 20px; line-height: 1; }
.map-controls button:last-child { font-size: 18px; }
.source-note { right: 25px; top: 28px; color: #637184; font: 9px var(--mono); letter-spacing: .1em; }
.source-note strong { color: #a1afbd; font-weight: 400; }
.inspector { min-width: 0; min-height: 0; background: var(--panel); border-left: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; height: 100%; }
.panel-header { padding: 31px 28px 23px; display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid var(--line); }
.panel-header .eyebrow { margin-bottom: 8px; }
h2 { font-size: 21px; letter-spacing: -.03em; margin-bottom: 0; }
.live-badge { display: flex; align-items: center; gap: 7px; color: var(--cyan); font: 9px var(--mono); letter-spacing: .08em; padding-top: 4px; }
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.metric { padding: 20px 19px 17px 28px; border-bottom: 1px solid var(--line); }
.metric:first-child { border-right: 1px solid var(--line); }
.metric { border-bottom: 0; }
.metric span, .metric small { display: block; font: 9px var(--mono); letter-spacing: .1em; color: var(--muted); }
.metric strong { display: block; color: var(--text); font: 500 27px var(--mono); letter-spacing: -.06em; margin: 9px 0 5px; }
.metric strong span { display: inline; color: var(--muted); font-size: 13px; letter-spacing: 0; }
.metric small { color: #526174; letter-spacing: .03em; }
.metric.accent strong { color: var(--orange); }
.panel-section { padding: 22px 28px; border-bottom: 1px solid var(--line); }
.section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.section-title h3 { font-size: 12px; font-weight: 500; margin: 0; letter-spacing: .03em; }
.section-title > span, .text-button { color: var(--muted); font: 9px var(--mono); letter-spacing: .1em; }
.text-button { background: none; border: 0; padding: 0; }
.text-button:hover { color: var(--cyan); }
.log-section { min-height: 0; flex: 1 1 0; overflow: hidden; display: flex; flex-direction: column; height: auto; }
.table-head { display: grid; grid-template-columns: minmax(130px, 1.55fr) 48px 45px minmax(64px, .8fr); gap: 8px; color: #4f5d6d; font: 9px var(--mono); letter-spacing: .08em; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.table-head span:nth-child(4) { text-align: right; }
.event-log { flex: 1 1 auto; min-height: 0; list-style: none; padding: 0 6px 0 0; margin: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #526174 transparent; }
.event-log::-webkit-scrollbar { width: 6px; }
.event-log::-webkit-scrollbar-track { background: rgba(179, 196, 215, .05); }
.event-log::-webkit-scrollbar-thumb { background: #526174; border-radius: 3px; }
.event-log::-webkit-scrollbar-thumb:hover { background: var(--cyan); }
.event-item { display: grid; grid-template-columns: minmax(130px, 1.55fr) 48px minmax(64px, .8fr) 45px; gap: 8px; padding: 11px 0; border-bottom: 1px solid rgba(179, 196, 215, .08); font: 10px var(--mono); animation: entry .35s ease-out; }
.event-item span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.event-item .source { color: var(--text); }.event-item .port, .event-item .asn { color: var(--muted); }.event-item .proto { color: var(--cyan); }.event-item .asn { text-align: right; }.event-item small { display: block; color: #526174; font-size: 9px; margin-top: 4px; }
.inspector-footer { display: flex; justify-content: space-between; padding: 18px 28px; color: #4f5d6d; font: 9px var(--mono); letter-spacing: .1em; }
.attack-marker, .target-marker, .impact-marker { background: transparent; border: 0; }
.attack-marker i { display: block; width: 10px; height: 10px; border: 2px solid var(--orange); border-radius: 50%; box-shadow: 0 0 0 3px rgba(255, 140, 98, .16), 0 0 12px var(--orange); animation: ping 1.1s ease-out infinite; }
.packet-marker i { position: relative; display: block; width: 10px; height: 10px; background: #fff; border: 2px solid var(--orange); border-radius: 50%; box-shadow: 0 0 0 5px rgba(255, 140, 98, .22), 0 0 20px 6px var(--orange); }
.packet-marker i::after { content: ""; position: absolute; top: 1px; right: -8px; width: 0; height: 0; border-top: 3px solid transparent; border-bottom: 3px solid transparent; border-left: 6px solid var(--orange); }
.target-marker i { display: block; width: 20px; height: 20px; border: 2px solid var(--cyan); border-radius: 50%; box-shadow: 0 0 14px var(--cyan), inset 0 0 8px rgba(109, 231, 219, .5); animation: target 2s ease-in-out infinite; }
.impact-marker i { display: block; width: 13px; height: 13px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 18px 5px rgba(109, 231, 219, .65); animation: impact .65s ease-out forwards; }
@keyframes blink { 50% { opacity: .3; } } @keyframes ping { 0% { transform: scale(.6); opacity: 1; } 80%, 100% { transform: scale(1.8); opacity: 0; } } @keyframes target { 50% { transform: scale(1.12); } } @keyframes impact { to { transform: scale(3); opacity: 0; } } @keyframes entry { from { opacity: 0; transform: translateY(-7px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) { body { overflow: auto; }.app-shell { display: block; }.topbar { height: 62px; padding: 0 18px; position: sticky; top: 0; }.topbar-status { font-size: 9px; }.workspace { display: block; }.map-stage { height: 58vh; min-height: 430px; }.map-heading { top: 28px; left: 22px; }.source-note { display: none; }.map-legend { left: 22px; bottom: 22px; }.map-controls { right: 17px; bottom: 18px; }.inspector { border-left: 0; }.panel-header { padding: 24px 20px 18px; }.metric { padding-left: 20px; }.panel-section { padding-left: 20px; padding-right: 20px; }.log-section { height: clamp(260px, 42vh, 360px); flex: 0 0 clamp(260px, 42vh, 360px); min-height: 0; }.inspector-footer { padding: 16px 20px; } }
@media (max-width: 520px) { .topbar-status { display: none; }.topbar { justify-content: space-between; }.map-stage { height: 52vh; min-height: 380px; } h1 { font-size: 37px; }.heading-note { max-width: 220px; line-height: 1.5; }.metric strong { font-size: 23px; }.metric { padding-top: 16px; padding-bottom: 14px; }.log-section { height: clamp(250px, 44vh, 320px); flex-basis: clamp(250px, 44vh, 320px); }.table-head, .event-item { grid-template-columns: minmax(118px, 1.4fr) 43px 39px minmax(57px, .8fr); gap: 5px; font-size: 8px; } }
/* Mevcut kuralları bununla değiştirin */
html,
body {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.app-shell {
  height: 100dvh;
  min-height: 0;
  display: grid;
  grid-template-rows: 70px minmax(0, 1fr);
}

.workspace {
  min-height: 0;
  height: 100%;
}

.inspector {
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.log-section {
  min-height: 0;
  flex: 1 1 0;
  height: auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.event-log {
  min-height: 0;
  height: 0;
  flex: 1 1 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* Mobil ve tablet */
@media (max-width: 900px) {
  .app-shell {
    height: auto;
    min-height: 100dvh;
    display: block;
  }

  .workspace {
    height: auto;
    display: block;
  }

  .inspector {
    height: auto;
    overflow: visible;
  }

  .log-section {
    height: clamp(260px, 42vh, 360px);
    min-height: 260px;
    flex: none;
  }

  .event-log {
    height: 0;
    flex: 1 1 0;
    overflow-y: auto;
  }
}

@media (max-width: 520px) {
  .log-section {
    height: clamp(250px, 44vh, 320px);
    min-height: 250px;
  }
}
