/* ===== Reset & base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:        #0a0b0e;
  --bg-elev:   #131418;
  --bg-hover:  #1c1d23;
  --border:    #2a2b33;
  --text:      #e4e4e7;
  --text-dim:  #8b8b93;
  --accent:    #f97316;   /* orange — Kilincarslan brand */
  --accent-dim:#c2410c;
  --radius:    10px;
  --tab-h:     44px;
  --topbar-h:  52px;
}

html, body { height: 100%; overflow: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  display: flex;
  flex-direction: column;
}

/* ===== Top bar ===== */
.topbar {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 16px;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}
.brand-icon { font-size: 20px; }
.brand-os {
  color: var(--accent);
  font-weight: 600;
  margin-left: 2px;
}

/* ===== Tabs ===== */
.tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s, background .15s;
}
.tab:hover { color: var(--text); background: var(--bg-hover); }
.tab.active {
  color: var(--accent);
  background: var(--bg-hover);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 18px;
  padding: 4px 10px;
  border-radius: var(--radius);
  cursor: pointer;
  margin-left: auto;
}

/* ===== Content area ===== */
.content {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.panel {
  position: absolute;
  inset: 0;
  display: none;
}
.panel.active { display: block; }

.iframe-wrapper {
  width: 100%;
  height: 100%;
}
.iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ===== Placeholder panels ===== */
.placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}
.placeholder-icon { font-size: 48px; opacity: .8; }
.placeholder h2 { font-size: 20px; font-weight: 600; }
.placeholder p { color: var(--text-dim); font-size: 14px; max-width: 340px; }

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .topbar { gap: 12px; padding: 0 10px; }
  .brand-text { font-size: 13px; }

  .tabs {
    display: none;
    position: absolute;
    top: var(--topbar-h);
    left: 0; right: 0;
    flex-direction: column;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    padding: 8px;
    gap: 4px;
    z-index: 100;
  }
  .tabs.open { display: flex; }

  .menu-toggle { display: block; }
  .tab { width: 100%; text-align: left; padding: 10px 14px; }
}