@import url('https://api.fontshare.com/v2/css?f[]=general-sans@400,500,600,700&display=swap');

:root {
  --background: #f4f4f4;
  --foreground: #1f1f1f;
  --poko-charcoal: #1f1f1f;
  --poko-linen: #f6f7ed;
  --poko-canvas: #f4f4f4;
  --poko-card: #ffffff;
  --poko-border: #e5e7eb;
  --poko-muted: #71717a;
  --poko-accent: #10b981;
  --poko-darkCard: #292929;
  --poko-amber: #f59e0b;
  --poko-blue: #3b82f6;

  /* Aliases for legacy component variables */
  --ground: var(--poko-canvas);
  --surface: var(--poko-card);
  --ink: var(--poko-charcoal);
  --muted: var(--poko-muted);
  --line: var(--poko-border);
  --green: var(--poko-accent);
  --mint: #ecfdf5;
  --sage: #d1fae5;
  --radius: 16px;
  --radius-lg: 24px;
  --gap: 20px;

  font-family: 'General Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: var(--poko-charcoal);
  background: var(--poko-canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--poko-canvas); color: var(--poko-charcoal); }

/* Sleek Minimal Scrollbar from PokoWeb */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d4d4d8; border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: #a1a1aa; }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; transition: all 0.15s ease; }
a { color: inherit; text-decoration: none; }
button:disabled { cursor: not-allowed; opacity: 0.6; }

input, select, textarea {
  width: 100%;
  border: 1px solid var(--poko-border);
  border-radius: 12px;
  background: #ffffff;
  padding: 8px 12px;
  min-height: 38px;
  color: var(--poko-charcoal);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--poko-charcoal);
  box-shadow: 0 0 0 2px rgba(31, 31, 31, 0.1);
}
input::placeholder, textarea::placeholder { color: #a1a1aa; }
input[type=checkbox] {
  width: 16px;
  min-height: 16px;
  accent-color: var(--poko-accent);
  margin: 0;
  flex-shrink: 0;
  cursor: pointer;
}
textarea { resize: vertical; min-height: 90px; }
label { display: block; font-weight: 600; font-size: 12px; margin-bottom: 6px; color: #374151; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 20px; font-weight: 700; letter-spacing: -0.4px; color: var(--poko-charcoal); }
h2 { font-size: 15px; font-weight: 700; letter-spacing: -0.2px; color: var(--poko-charcoal); }
h3 { font-size: 13px; font-weight: 600; color: var(--poko-charcoal); }
p { color: var(--poko-muted); font-size: 13px; }
small, .small { font-size: 11px; color: var(--poko-muted); }
.muted { color: var(--poko-muted); }
.num { font-variant-numeric: tabular-nums; }
.icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  vertical-align: middle;
}
.skip { position: absolute; top: -60px; background: var(--poko-charcoal); color: #fff; padding: 12px; z-index: 100; border-radius: 8px; }
.skip:focus { top: 8px; left: 8px; }
.loading { padding: 40px; text-align: center; color: var(--poko-muted); font-size: 13px; }

/* SHELL LAYOUT */
.shell { display: flex; height: 100vh; width: 100vw; overflow: hidden; background: var(--poko-canvas); }

/* POKO SIDEBAR (256px / w-64) */
.sidebar {
  width: 256px;
  height: 100vh;
  background: #ffffff;
  border-right: 1px solid var(--poko-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  user-select: none;
  flex-shrink: 0;
  overflow: hidden;
  z-index: 30;
}
.brand {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  border-bottom: 1px solid var(--poko-border);
  flex-shrink: 0;
}
.brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--poko-border);
  padding: 2px;
  background: #fafafa;
}
.brand-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--poko-charcoal);
  line-height: 1.2;
}
.brand small {
  font-size: 10px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sidebar nav {
  padding: 12px;
  flex: 1;
  overflow-y: auto;
}
.nav-label {
  font-size: 10px;
  font-weight: 700;
  color: #9ca3af;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 14px 10px 6px;
}
.nav-label.second { margin-top: 18px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 12px;
  color: #4b5563;
  font-size: 12px;
  font-weight: 500;
  margin: 2px 0;
  transition: all 0.15s ease;
}
.nav-item:hover {
  background: #f4f4f5;
  color: var(--poko-charcoal);
}
.nav-item.active {
  background: var(--poko-charcoal);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.nav-item.active .icon { color: var(--poko-accent); }
.count {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
  background: #f3f4f6;
  color: #4b5563;
  padding: 1px 6px;
  border-radius: 9999px;
}
.nav-item.active .count {
  background: #374151;
  color: #ffffff;
}

.nav-extra {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 12px;
  padding: 10px 12px;
  border: 1px solid var(--poko-border);
  border-radius: 14px;
  background: #fafafa;
  font-size: 11px;
  transition: all 0.15s ease;
}
.nav-extra:hover { background: #f4f4f5; border-color: #d4d4d8; }
.nav-extra .icon { color: var(--poko-accent); }
.nav-extra strong { font-size: 11px; color: var(--poko-charcoal); font-weight: 700; }
.nav-extra p { font-size: 10px; margin-top: 1px; color: var(--poko-muted); }

.account {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid var(--poko-border);
  background: #ffffff;
  flex-shrink: 0;
}
.avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: #ecfdf5;
  border: 1px solid #d1fae5;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  color: #065f46;
}
.account strong { display: block; font-size: 12px; font-weight: 700; color: var(--poko-charcoal); }
.account small { font-size: 10px; color: var(--poko-muted); }
.account .icon-button { margin-left: auto; }

/* MAIN CONTENT */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

/* TOPBAR HEADER (64px / h-16) */
.topbar {
  height: 64px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--poko-border);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
  z-index: 10;
}
.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--poko-muted);
}
.crumb b { font-weight: 700; color: var(--poko-charcoal); font-size: 14px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  background: #f4f4f5;
  color: #374151;
  padding: 4px 10px;
  border-radius: 9999px;
  white-space: nowrap;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--poko-accent);
  border-radius: 50%;
  flex-shrink: 0;
}
.divider { height: 20px; width: 1px; background: var(--poko-border); }
.icon-button {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--poko-border);
  border-radius: 10px;
  background: #ffffff;
  color: #4b5563;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.icon-button:hover {
  background: #f4f4f5;
  color: var(--poko-charcoal);
  border-color: #d1d5db;
}
.menu-toggle { display: none; }

/* CONTENT WRAPPER */
.content {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px 40px;
  max-width: 1500px;
  width: 100%;
  margin: 0 auto;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.page-head p { font-size: 12px; margin-top: 3px; color: var(--poko-muted); }
.actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* POKO BUTTONS */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--poko-border);
  border-radius: 12px;
  background: #ffffff;
  color: var(--poko-charcoal);
  min-height: 38px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.15s ease;
}
.button .icon { width: 15px; height: 15px; }
.button:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}
.button.primary {
  background: var(--poko-charcoal);
  color: #ffffff;
  border-color: var(--poko-charcoal);
}
.button.primary:hover {
  background: #2e2e2e;
  border-color: #2e2e2e;
}
.button.green {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}
.button.green:hover { background: #059669; border-color: #059669; }
.button.danger {
  color: #dc2626;
  border-color: #fecaca;
  background: #fff;
}
.button.danger:hover { background: #fef2f2; border-color: #f87171; }
.button.small {
  min-height: 30px;
  padding: 5px 10px;
  font-size: 11px;
  border-radius: 10px;
}
.text-button {
  border: 0;
  background: transparent;
  color: var(--poko-accent);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 8px;
}
.text-button:hover { background: #ecfdf5; }

/* PANELS & CARDS */
.panel {
  background: #ffffff;
  border: 1px solid var(--poko-border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.panel-head p { font-size: 11px; margin-top: 2px; }

/* KPIS CARDS */
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #ffffff;
  border: 1px solid var(--poko-border);
  border-radius: var(--radius);
  padding: 20px 0;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
.kpi {
  padding: 0 20px;
  border-right: 1px solid var(--poko-border);
  min-width: 0;
}
.kpi:last-child { border: 0; }
.kpi-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--poko-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.kpi-value {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.6px;
  line-height: 1.3;
  margin-top: 6px;
  color: var(--poko-charcoal);
}
.kpi:first-child .kpi-value {
  font-size: 30px;
  color: #065f46;
}
.kpi-sub {
  font-size: 11px;
  color: var(--poko-muted);
  margin-top: 3px;
}

/* GRIDS */
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(290px, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
.bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(290px, 1fr);
  gap: 20px;
  align-items: stretch;
}

/* CONTACT & WORKFLOW BARS */
.contact-summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}
.contact-summary strong {
  font-size: 26px;
  letter-spacing: -0.8px;
  line-height: 1.2;
}
.contact-summary strong small {
  font-size: 11px;
  font-weight: 500;
  color: var(--poko-muted);
}
.contact-bar {
  display: grid;
  grid-template-columns: 100px 1fr 42px;
  align-items: center;
  gap: 14px;
  margin: 14px 0;
  font-size: 11px;
}
.contact-bar>span { display: flex; gap: 8px; align-items: center; }
.track { height: 8px; border-radius: 4px; background: #f3f4f6; overflow: hidden; }
.fill { background: var(--poko-accent); height: 100%; border-radius: 4px; }
.contact-bar:nth-of-type(3) .fill { background: #34d399; }
.contact-bar:nth-of-type(4) .fill { background: #6ee7b7; }

.workflow {
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid var(--poko-border);
  border-radius: var(--radius);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
.workflow-title { display: flex; gap: 10px; align-items: center; min-width: 170px; }
.workflow-title>.icon { color: var(--poko-accent); width: 18px; height: 18px; }
.workflow-stages { display: flex; align-items: center; justify-content: space-between; flex: 1; gap: 12px; }
.stage { font-size: 11px; display: flex; gap: 6px; align-items: center; color: #6b7280; }
.stage.current { color: #065f46; font-weight: 700; }
.stage-index {
  width: 20px;
  height: 20px;
  border: 1px solid var(--poko-border);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
}
.stage.current .stage-index {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

/* TABLES */
.table-wrap { overflow-x: auto; max-width: 100%; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
th {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  padding: 10px 12px;
  border-bottom: 1px solid var(--poko-border);
  white-space: nowrap;
}
td {
  padding: 12px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}
tr:hover td { background: #fafafa; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
.name { font-weight: 600; color: var(--poko-charcoal); display: block; }
.subline { font-size: 11px; color: var(--poko-muted); display: block; margin-top: 2px; }

/* POKO TAGS / BADGES */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  padding: 2px 8px;
  border-radius: 9999px;
  background: #f3f4f6;
  color: #4b5563;
  border: 1px solid #e5e7eb;
}
.tag.done, .tag.confirmed, .tag.Deal, .tag.active {
  color: #065f46;
  background: #ecfdf5;
  border-color: #a7f3d0;
}
.tag.failed, .tag.rejected, .tag.Tolak, .tag.past_due {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fecaca;
}
.tag.running, .tag.queued, .tag.ingesting, .tag.pro {
  color: #1e40af;
  background: #eff6ff;
  border-color: #bfdbfe;
}
.tag.suspected, .tag.Follow-up, .tag.starter {
  color: #92400e;
  background: #fffbeb;
  border-color: #fde68a;
}
.tag.Dihubungi, .tag.trial, .tag.free {
  color: #374151;
  background: #f3f4f6;
  border-color: #d1d5db;
}

/* TOOLBAR & FILTERS */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.search { position: relative; min-width: 240px; max-width: 360px; flex: 1; }
.search>.icon {
  position: absolute;
  left: 11px;
  top: 11px;
  width: 15px;
  height: 15px;
  color: #9ca3af;
}
.search input { padding-left: 36px; font-size: 12px; }
.toolbar .actions select { width: auto; font-size: 11px; min-height: 38px; }

.tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--poko-border);
  margin-bottom: 20px;
  overflow-x: auto;
}
.tab {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: none;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--poko-muted);
  white-space: nowrap;
}
.tab:hover { color: var(--poko-charcoal); }
.tab.active {
  border-color: var(--poko-charcoal);
  color: var(--poko-charcoal);
  font-weight: 700;
}

.filters {
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--poko-border);
  border-radius: var(--radius);
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
.filters .full { grid-column: 1/-1; }
.checkline { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; margin: 0; }

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--poko-border);
  margin-top: 8px;
  padding-top: 14px;
  font-size: 12px;
  color: var(--poko-muted);
}
.pagination .actions { gap: 6px; }

.bulk {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 12px;
  color: #065f46;
}
.bulk select { width: auto; min-height: 32px; padding: 4px 8px; font-size: 11px; }

/* EMPTY STATE */
.empty {
  padding: 40px 20px;
  text-align: center;
  border: 1px dashed var(--poko-border);
  border-radius: var(--radius);
  background: #fafafa;
}
.empty>.icon { width: 28px; height: 28px; color: #9ca3af; margin-bottom: 10px; }
.empty h3 { font-size: 14px; font-weight: 700; color: var(--poko-charcoal); }
.empty p { font-size: 12px; max-width: 360px; margin: 6px auto 14px; color: var(--poko-muted); }

/* ALERT & NOTICES */
.alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 16px;
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: 12px;
  color: #92400e;
  font-size: 12px;
  margin-bottom: 18px;
}
.alert.error {
  background: #fef2f2;
  border-color: #fee2e2;
  color: #991b1b;
}
.alert .icon { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }

/* MODALS / DIALOG */
dialog {
  border: 1px solid var(--poko-border);
  border-radius: var(--radius-lg);
  padding: 0;
  width: min(540px, calc(100vw - 32px));
  max-height: 90vh;
  color: var(--poko-charcoal);
  background: #ffffff;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.15);
}
dialog::backdrop { background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(2px); }
dialog .modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--poko-border);
}
dialog .modal-body { padding: 22px 24px; }
dialog h2 { font-size: 16px; font-weight: 700; }
dialog p { font-size: 12px; }

#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  background: var(--poko-charcoal);
  color: #ffffff;
  border: 1px solid #374151;
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 600;
  max-width: calc(100vw - 32px);
  display: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
#toast.show { display: block; animation: toastIn 0.2s ease; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* FORM LAYOUTS & SETTINGS */
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
  gap: 20px;
}
.form-panel { padding: 24px; }
.form-section { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--poko-border); }
.form-section:last-child { margin: 0; border: 0; padding-bottom: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.field { margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; }

.settings-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 30px;
  padding: 24px 0;
  border-bottom: 1px solid var(--poko-border);
}
.settings-grid:first-child { padding-top: 0; }
.settings-grid:last-child { border: 0; }

.user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
}
.user-row:last-child { border: 0; }
.user-row .actions { margin-left: auto; }

/* CODE & INTEGRATION SNIPPETS */
.code-block {
  background: var(--poko-darkCard);
  color: #f3f4f6;
  border-radius: 12px;
  padding: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  line-height: 1.6;
  position: relative;
  overflow-x: auto;
  margin: 10px 0;
}
.code-block pre { margin: 0; }
.code-block .copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.15);
  border: 0;
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
}
.code-block .copy-btn:hover { background: rgba(255, 255, 255, 0.25); }

/* POKO LOGIN PAGE */
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #ffffff;
}
.login-story {
  background: var(--poko-linen);
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  border-right: 1px solid var(--poko-border);
}
.login-story .brand { border: 0; padding: 0; height: auto; }
.login-story h2 {
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: -1px;
  margin-bottom: 16px;
  color: var(--poko-charcoal);
}
.login-story p {
  font-size: 13px;
  max-width: 420px;
  line-height: 1.7;
  color: #4b5563;
}
.login-features {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}
.login-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #1f2937;
}
.login-feature-item .icon { color: var(--poko-accent); width: 18px; height: 18px; }

.login-form-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 80px;
  max-width: 540px;
  width: 100%;
  margin: 0 auto;
}
.login-form-container h1 { font-size: 22px; margin-bottom: 6px; }
.login-form-container>p { font-size: 12px; margin-bottom: 24px; color: var(--poko-muted); }

/* GOOGLE LOGIN BUTTON (OFFICIAL STYLE) */
.google-button {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #ffffff;
  color: #1f1f1f;
  border: 1px solid var(--poko-border);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.15s ease;
  cursor: pointer;
  margin-bottom: 16px;
}
.google-button:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.07);
}
.google-icon { width: 18px; height: 18px; flex-shrink: 0; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  font-size: 11px;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.auth-divider::before, .auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--poko-border);
}

.login-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 11px;
  color: var(--poko-muted);
}
.login-footer a { color: var(--poko-charcoal); font-weight: 600; }
.login-footer a:hover { text-decoration: underline; }

/* PLANS SCREEN */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan { display: flex; flex-direction: column; align-items: flex-start; }
.plan-price { font-size: 24px; font-weight: 700; letter-spacing: -0.6px; margin: 8px 0; color: var(--poko-charcoal); }
.plan-price small { font-weight: 500; font-size: 11px; color: var(--poko-muted); }
.plan ul { list-style: none; padding: 0; margin: 18px 0; font-size: 12px; display: grid; gap: 10px; }
.plan li { display: flex; gap: 8px; align-items: center; color: #4b5563; }
.plan li .icon { width: 14px; height: 14px; color: var(--poko-accent); }
.plan>.button, .plan>span:last-child { margin-top: auto; }

/* MCP SCREEN STYLES */
.mcp-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.mcp-tool-card {
  border: 1px solid var(--poko-border);
  border-radius: 14px;
  padding: 16px;
  background: #ffffff;
  margin-bottom: 12px;
  transition: all 0.15s ease;
}
.mcp-tool-card:hover { border-color: #cbd5e1; box-shadow: 0 2px 8px rgba(0,0,0,0.03); }
.mcp-tool-card h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--poko-charcoal);
  margin: 0 0 4px;
  font-family: ui-monospace, monospace;
}
.mcp-tool-card p { font-size: 12px; color: #4b5563; margin-bottom: 10px; }

/* RESPONSIVE BREAKPOINTS */
@media(max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
    position: fixed;
    inset: 0 auto 0 0;
    transition: transform 0.2s ease;
  }
  .sidebar.open { transform: translateX(0); }
  .mobile-overlay.open {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 29;
  }
  .menu-toggle { display: inline-grid; }
  .login-page { grid-template-columns: 1fr; }
  .login-story { display: none; }
  .login-form-container { padding: 40px 24px; }
  .plans { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; padding: 0; }
  .kpi { padding: 16px; border-bottom: 1px solid var(--poko-border); }
  .kpi:nth-child(2) { border-right: 0; }
  .overview-grid, .bottom-grid { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; gap: 16px; }
}

@media(max-width: 640px) {
  .topbar { padding: 0 16px; }
  .content { padding: 16px; }
  .kpis { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
