@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  --ink: #071d19;
  --ink-2: #12332b;
  --green: #006fee;
  --green-dark: #0058bd;
  --lime: #006fee;
  --paper: #f4f6f0;
  --surface: #ffffff;
  --muted: #667871;
  --line: #dce4dd;
  --danger: #a63d40;
  --warning: #9a6810;
  --shadow: 0 24px 70px rgba(7, 29, 25, 0.1);
  --ui-control-height: 42px;
  --ui-control-radius: 16px;
  --ui-control-active: #006fee;
  --ui-control-bg: #18191d;
  --ui-control-hover: #202126;
  --ui-primary: #006fee;
  --ui-primary-hover: #087cf5;
  --ui-danger: #dc2626;
  --ui-danger-hover: #ef4444;
  --ui-disabled: #d9ded9;
  --ui-popup: #27272a;
  --ui-popup-field: #18181b;
  --ui-control-shadow: 0 1px 2px rgba(0, 0, 0, .22);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Space Grotesk", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 18px;
  letter-spacing: -0.4px;
}
.brand strong { font-weight: 780; }
.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--lime);
  background: var(--ink);
  box-shadow: 0 10px 28px rgba(7, 29, 25, 0.15);
}
.brand-mark svg { width: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.auth-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, 0.9fr) 1.1fr; }
.auth-layout { --ink: #f7f8fa; --ink-2: #e2e5eb; --surface: #1f2129; --paper: #272934; --muted: #aeb4c2; --line: #3a3d49; color: #f7f8fa; background: #272934; }
.auth-layout .auth-story { background: #1f2129; }
.auth-layout .auth-story::before { background: radial-gradient(circle,rgba(0,111,238,.28),transparent 68%); }
.auth-layout .auth-story .brand-mark { color: #fff; background: #006fee; }
.auth-layout .auth-copy .eyebrow { color: #69adff; }
.auth-layout .auth-copy p { color: #b8bdc9; }
.auth-layout .auth-point { color: #e2e5eb; }
.auth-layout .auth-point span { background: #006fee; }
.auth-layout .auth-foot { color: #858b99; }
.auth-layout .auth-main { background: #272934; }
.auth-layout .auth-card { border: 1px solid #3a3d49; border-radius: 22px; padding: 38px; background: #1f2129; box-shadow: 0 24px 70px rgba(0,0,0,.24); }
.auth-layout .field input,.auth-layout .field textarea { border-color: transparent; color: #f7f8fa; background: #18191d; }
.auth-layout .field input:hover,.auth-layout .field textarea:hover { border-color: #4b4e5b; background: #202126; }
.auth-layout .auth-switch a,.auth-layout .resend-button { color: #69adff; }
.auth-story {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px clamp(36px, 6vw, 88px);
  color: white;
  background: var(--ink);
}
.auth-story::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  right: -260px;
  bottom: -230px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 245, 95, 0.32), transparent 68%);
}
.auth-story .brand { position: relative; }
.auth-story .brand-mark { color: white; background: var(--lime); }
.auth-copy { position: relative; max-width: 540px; margin: 80px 0; }
.auth-copy .eyebrow { color: var(--lime); }
.auth-copy h1 { margin: 18px 0; font-size: clamp(40px, 5vw, 70px); line-height: 1; letter-spacing: -0.055em; }
.auth-copy p { max-width: 500px; color: #b8c9c3; font-size: 17px; line-height: 1.7; }
.auth-points { display: grid; gap: 14px; margin-top: 34px; }
.auth-point { display: flex; align-items: center; gap: 12px; color: #dce8e3; font-size: 14px; }
.auth-point span { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.auth-foot { position: relative; color: #7f9b91; font-size: 12px; }

.auth-main { display: grid; place-items: center; padding: 42px 24px; }
.auth-card { width: min(100%, 470px); }
.auth-card h2 { margin: 0 0 10px; font-size: 34px; letter-spacing: -0.04em; }
.auth-card > p { margin: 0 0 34px; color: var(--muted); line-height: 1.6; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { font-size: 13px; font-weight: 720; }
.field input, .field textarea, .ui-input, .ui-textarea {
  width: 100%;
  min-height: var(--ui-control-height);
  border: 1px solid rgba(7, 29, 25, .16);
  border-radius: var(--ui-control-radius);
  outline: none;
  padding: 0 14px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--ui-control-shadow);
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.field textarea, .ui-textarea { min-height: 108px; resize: vertical; padding-block: 12px; line-height: 1.5; }
.field input:hover, .field textarea:hover, .ui-input:hover, .ui-textarea:hover { border-color: rgba(7, 29, 25, .28); }
.field input:focus, .field textarea:focus, .ui-input:focus, .ui-textarea:focus { border-color: var(--ui-control-active); box-shadow: 0 0 0 3px rgba(0, 111, 238, .14), var(--ui-control-shadow); }
.field .verification-code {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.32em;
  font-variant-numeric: tabular-nums;
}
.field-hint { color: var(--muted); font-size: 11px; }
.button {
  min-width: 96px;
  height: var(--ui-control-height);
  min-height: var(--ui-control-height);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--ui-control-radius);
  padding: 0 18px;
  color: white;
  background: var(--ui-primary);
  box-shadow: var(--ui-control-shadow);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform .12s ease, background-color .16s ease, box-shadow .16s ease;
}
.button:hover:not(:disabled) { background: var(--ui-primary-hover); }
.button:active:not(:disabled) { transform: translateY(1px); }
.button:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(0, 111, 238, .3), var(--ui-control-shadow); }
.button:disabled { color: rgba(7, 29, 25, .45); background: var(--ui-disabled); box-shadow: none; cursor: not-allowed; transform: none; }
.button-full { width: 100%; }
.button-secondary { color: white; background: var(--ui-control-bg); }
.button-secondary:hover:not(:disabled) { color: white; background: var(--ui-control-hover); }
.button-danger { background: var(--ui-danger); }
.button-danger:hover:not(:disabled) { background: var(--ui-danger-hover); }

/* NetrcolFLXR control primitives: use these classes for all new portal controls. */
.ui-switch { width: 40px; height: 20px; min-height: 20px; display: flex; flex: 0 0 40px; align-items: center; overflow: hidden; border: 0; border-radius: 12px; padding: 0; background: #4b5064; box-shadow: none; cursor: pointer; transition: background-color .25s cubic-bezier(.4,0,.2,1), box-shadow .15s ease-out; }
.ui-switch > span { width: 22px; height: 16px; flex: 0 0 22px; margin-left: 2px; border-radius: 8px; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.06), 0 0 1px rgba(0,0,0,.3); transition: margin .3s cubic-bezier(.22,1,.36,1); }
.ui-switch[aria-pressed="true"] { background: #22c55e; }
.ui-switch[aria-pressed="true"] > span { margin-left: 16px; }
.ui-switch:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px rgba(34,197,94,.52); }
.ui-switch:disabled { cursor: not-allowed; opacity: .5; }

.ui-select { position: relative; z-index: 1; width: 100%; }
.ui-select.open { z-index: 1000; }
.ui-select-trigger { width: 100%; height: var(--ui-control-height); display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid transparent; border-radius: var(--ui-control-radius); padding: 0 14px; color: #fff; background: var(--ui-control-bg); box-shadow: var(--ui-control-shadow); text-align: left; font-weight: 600; transition: background-color .15s, border-color .15s; }
.ui-select-trigger > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-select-trigger > b { position: relative; width: 16px; height: 16px; flex: 0 0 auto; transition: transform .15s; }
.ui-select-trigger > b::before { content: ""; position: absolute; top: 2px; left: 4px; width: 7px; height: 7px; border-right: 1.5px solid #a1a1aa; border-bottom: 1.5px solid #a1a1aa; transform: rotate(45deg); }
.ui-select.open .ui-select-trigger > b { transform: rotate(180deg); }
.ui-select-trigger:hover { background: var(--ui-control-hover); }
.ui-select-trigger:focus-visible { outline: none; background: var(--ui-control-hover); }
.ui-select.open .ui-select-trigger { border-color: transparent; outline: none; background: var(--ui-control-hover); box-shadow: 0 0 0 2px var(--ui-control-active), var(--ui-control-shadow); }
.ui-select-menu { position: absolute; z-index: 1000; top: calc(100% + 8px); right: 0; left: 0; max-height: min(320px,46vh); overflow-y: auto; overscroll-behavior: contain; border: 0; border-radius: var(--ui-control-radius); padding: 8px; color: #fff; background: var(--ui-popup); box-shadow: 0 18px 48px rgba(0,0,0,.48); transform-origin: top center; animation: select-menu-in .15s ease-out; }
.ui-select-option { position: relative; width: 100%; min-height: 40px; display: flex; align-items: center; border: 0; border-radius: 10px; padding: 0 38px 0 16px; color: #fff; background: transparent; text-align: left; font-weight: 600; }
.ui-select-option:hover, .ui-select-option:focus-visible { color: #fff; background: rgba(255,255,255,.08); outline: none; }
.ui-select-option[aria-selected="true"] { color: #fff; background: rgba(255,255,255,.1); }
.ui-select-option[aria-selected="true"]::after { content: ""; position: absolute; top: 50%; right: 14px; width: 8px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-70%) rotate(-45deg); }
@keyframes select-menu-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.auth-switch { margin-top: 24px; color: var(--muted); text-align: center; font-size: 14px; }
.auth-switch a { color: var(--green); font-weight: 750; }
.resend-button {
  width: 100%;
  margin-top: 8px;
  border: 0;
  padding: 10px;
  color: var(--green);
  background: transparent;
  font-size: 13px;
  font-weight: 750;
}
.resend-button:disabled { color: var(--muted); cursor: wait; }
.form-message { min-height: 22px; margin: 14px 0 0; color: var(--danger); font-size: 13px; line-height: 1.5; }
.form-message.success { color: var(--green); }

.app-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  --surface: #1f2129;
  --paper: #292c36;
  --muted: #aeb4c2;
  --line: #3a3d49;
  --ink-2: #e2e5eb;
  --green: #006fee;
  background: #272934;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px 20px;
  color: white;
  background: #1f2129;
}
.sidebar .brand { padding: 0 10px; }
.sidebar .brand-mark { color: white; background: var(--lime); }
.nav { display: grid; gap: 6px; margin-top: 48px; }
.nav a, .logout-button {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 10px;
  padding: 0 12px;
  color: #a9beb7;
  background: transparent;
  text-align: left;
  font-size: 14px;
  font-weight: 650;
}
.nav [data-admin-link][hidden] { display: none !important; }
.nav a:hover, .logout-button:hover { color: white; background: rgba(255,255,255,.06); }
.nav a.active {
  border: 1px solid rgba(255,255,255,.13);
  color: var(--lime);
  background: rgba(255,255,255,.075);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 8px 24px rgba(0,0,0,.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.sidebar-bottom { margin-top: auto; }
.sidebar-user { margin: 0 10px 14px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); }
.sidebar-user strong, .sidebar-user span { display: block; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user strong { font-size: 13px; }
.sidebar-user span { margin-top: 4px; color: #79958b; font-size: 11px; }
.logout-button { width: 100%; }

.app-main { min-width: 0; padding: 38px clamp(24px, 5vw, 70px) 70px; color: #f7f8fa; }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.eyebrow { color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.page-head h1 { margin: 0; color: white; font-size: clamp(32px, 4vw, 52px); letter-spacing: -.05em; }
.page-head p { max-width: 620px; margin: 10px 0 0; color: #b8bdc9; line-height: 1.6; }
.page-head-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.status-chip { display: inline-flex; align-items: center; border-radius: 999px; padding: 7px 10px; font-size: 11px; font-weight: 800; background: #e9efea; }
.status-chip.approved, .status-chip.active { color: var(--green-dark); background: #e5f0ff; }
.status-chip.rejected, .status-chip.suspended { color: var(--danger); background: #fae7e6; }
.status-chip.submitted, .status-chip.under_review, .status-chip.more_info_required { color: var(--warning); background: #fff1d6; }

.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 34px; }
.summary-card, .panel, .plan-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 8px 30px rgba(0,0,0,.14);
}
.summary-card { display: flex; align-items: center; gap: 16px; min-width: 0; padding: 22px; }
.summary-card > div:last-child { min-width: 0; }
.summary-icon { flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: #8fc2ff; background: #172f52; font-size: 13px; font-weight: 850; }
.summary-card span { color: var(--muted); font-size: 12px; }
.summary-card strong { display: block; overflow: hidden; margin-top: 5px; font-size: 21px; letter-spacing: -.03em; text-overflow: ellipsis; white-space: nowrap; }
.summary-card small { display: block; margin-top: 5px; color: #8a9993; font-size: 10px; }
.approval-banner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; margin-bottom: 34px; border: 1px solid #23558f; border-radius: 18px; padding: 22px 24px; background: #1f2129; box-shadow: 0 12px 34px rgba(0,0,0,.14); }
.approval-banner[hidden] { display: none; }
.approval-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--lime); font-size: 21px; font-weight: 900; }
.approval-banner h2 { margin: 4px 0 3px; font-size: 21px; letter-spacing: -.03em; }
.approval-banner p { margin: 0; color: var(--muted); font-size: 12px; }
.approval-banner > a { color: var(--green); font-size: 12px; font-weight: 800; }
.approval-banner > a span { margin-left: 7px; }
.section { margin-top: 34px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.section-head h2 { margin: 0; color: white; font-size: 20px; letter-spacing: -.025em; }
.section-head p { margin: 4px 0 0; color: #b8bdc9; font-size: 13px; }
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan-card { display: flex; flex-direction: column; padding: 24px; }
.plan-card h3 { margin: 4px 0 10px; font-size: 22px; }
.plan-card > p { min-height: 63px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.plan-metric { margin: 22px 0; font-size: 27px; font-weight: 790; letter-spacing: -.04em; }
.plan-metric small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: 0; }
.scope-list { display: grid; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; color: var(--ink-2); font-size: 12px; }
.scope-list li::before { content: "✓"; margin-right: 8px; color: var(--green); font-weight: 900; }
.plan-card .button { margin-top: auto; }
.plan-card.active-plan { position: relative; border-color: var(--green); background: #1f2129; box-shadow: 0 15px 42px rgba(0,0,0,.18); }
.plan-card.active-plan::before { content: "Aktif"; position: absolute; top: 18px; right: 18px; border-radius: 999px; padding: 6px 9px; color: var(--green-dark); background: #e5f0ff; font-size: 10px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.plan-card.active-plan .button { color: var(--green-dark); background: #e5f0ff; opacity: 1; cursor: default; }

.panel { overflow: hidden; }
.empty-state { padding: 38px 24px; color: var(--muted); text-align: center; font-size: 13px; }
.list-item { display: grid; grid-template-columns: 1.3fr 1fr auto; align-items: center; gap: 20px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.list-item strong { display: block; font-size: 14px; }
.list-item small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.item-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.item-actions .button { min-height: 36px; padding-inline: 12px; font-size: 12px; }
.key-capacity { display: flex; align-items: center; gap: 14px; }
.key-capacity > span { color: #b8bdc9; font-size: 11px; font-weight: 700; white-space: nowrap; }
.key-item { grid-template-columns: minmax(0, 1.7fr) minmax(180px, .65fr) auto; align-items: stretch; padding-block: 22px; }
.key-overview { display: grid; grid-template-columns: minmax(180px,.7fr) minmax(330px,1.3fr); align-items: center; gap: 28px; }
.key-title { display: flex; align-items: center; gap: 9px; }
.key-prefix { display: block; width: fit-content; margin-top: 8px; border-radius: 6px; padding: 4px 7px; color: var(--ink-2); background: var(--paper); font: 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.key-dates small + small { margin-top: 4px; }
.key-dates { align-self: center; }
.key-usage { display: grid; grid-template-columns: repeat(3, minmax(90px,1fr)); gap: 8px; }
.key-usage > div { min-height: 58px; display: flex; justify-content: center; flex-direction: column; border-left: 1px solid var(--line); padding-left: 16px; }
.key-usage span { color: var(--muted); font-size: 9px; font-weight: 650; }
.key-usage strong { margin-top: 6px; font-size: 15px; letter-spacing: -.025em; }
.key-item .item-actions { align-items: center; }
.key-rotation-note { margin: 12px 2px 0; color: #b8bdc9; font-size: 11px; line-height: 1.6; }
.key-rotation-note strong { color: white; }
.usage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.usage-card { border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: var(--surface); box-shadow: 0 8px 30px rgba(7,29,25,.035); }
.usage-card span, .usage-card small { display: block; color: var(--muted); font-size: 11px; }
.usage-card strong { display: block; margin: 8px 0 6px; font-size: 23px; letter-spacing: -.035em; }
.usage-notice { display: flex; align-items: center; gap: 12px; margin-top: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px; color: var(--muted); background: #1f2129; }
.usage-notice > span { width: 24px; height: 24px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; color: white; background: var(--green); font-size: 12px; font-weight: 850; }
.usage-notice p { margin: 0; font-size: 11px; line-height: 1.55; }
.usage-notice strong { color: var(--ink-2); }
.usage-charts { display: grid; grid-template-columns: minmax(300px, .72fr) minmax(480px, 1.28fr); gap: 16px; margin-top: 16px; }
.usage-chart-card { min-width: 0; border: 1px solid var(--line); border-radius: 20px; padding: 24px; background: var(--surface); box-shadow: 0 12px 34px rgba(7,29,25,.045); }
.chart-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.chart-heading h2 { margin: 5px 0 4px; font-size: 20px; letter-spacing: -.03em; }
.chart-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.chart-status { border-radius: 999px; padding: 7px 10px; color: var(--green-dark); background: #e5f0ff; font-size: 9px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.quota-visual { display: grid; grid-template-columns: 170px minmax(0, 1fr); align-items: center; gap: 24px; margin-top: 25px; }
.quota-ring { --usage-angle: 0deg; position: relative; width: 164px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--green) 0 var(--usage-angle), #e5ebe7 var(--usage-angle) 360deg); }
.quota-ring::before { content: ""; position: absolute; width: 118px; aspect-ratio: 1; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1px rgba(15,54,45,.04); }
.quota-ring > div { position: relative; z-index: 1; text-align: center; }
.quota-ring strong, .quota-ring span { display: block; }
.quota-ring strong { font-size: 25px; letter-spacing: -.045em; }
.quota-ring span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.quota-legend { display: grid; gap: 13px; margin: 0; }
.quota-legend > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.quota-legend dt { color: var(--muted); font-size: 11px; }
.quota-legend dd { margin: 0; color: var(--ink-2); font-size: 12px; font-weight: 800; }
.legend-dot { width: 8px; height: 8px; display: inline-block; margin-right: 7px; border-radius: 50%; }
.legend-dot.used { background: var(--green); }
.legend-dot.remaining { background: #dfe7e2; }
.trend-total { text-align: right; white-space: nowrap; }
.trend-total span, .trend-total strong { display: block; }
.trend-total span { color: var(--muted); font-size: 10px; }
.trend-total strong { margin-top: 4px; font-size: 12px; }
.trend-total b { font-size: 20px; }
.trend-chart { position: relative; min-height: 230px; margin-top: 17px; }
.trend-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-grid line { stroke: #e2e9e4; stroke-width: 1; }
.chart-grid text, .chart-labels text { fill: #84938d; font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; }
.chart-labels .x-label { text-anchor: middle; }
.chart-area { fill: rgba(0,111,238,.14); }
.chart-line { fill: none; stroke: var(--green); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.trend-chart circle { fill: var(--surface); stroke: var(--green-dark); stroke-width: 2; }
.chart-empty { position: absolute; inset: 40% 15px auto; margin: 0; color: var(--muted); font-size: 11px; text-align: center; }
.logs-panel { border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 12px 36px rgba(7,29,25,.045); }
.logs-toolbar { display: grid; grid-template-columns: 190px 190px auto 1fr; align-items: end; gap: 12px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.logs-filter { display: grid; gap: 7px; }
.logs-filter label { color: var(--muted); font-size: 10px; font-weight: 750; }
.logs-filter select { height: var(--ui-control-height); border: 1px solid transparent; border-radius: var(--ui-control-radius); outline: 0; padding: 0 38px 0 14px; color: white; background-color: var(--ui-control-bg); box-shadow: var(--ui-control-shadow); font-size: 12px; font-weight: 700; }
.logs-filter select:focus-visible { border-color: var(--ui-control-active); box-shadow: 0 0 0 3px rgba(0,111,238,.2), var(--ui-control-shadow); }
.logs-refresh { min-height: var(--ui-control-height); }
.logs-meta { justify-self: end; padding-bottom: 3px; text-align: right; }
.logs-meta strong, .logs-meta span { display: block; }
.logs-meta strong { font-size: 20px; letter-spacing: -.04em; }
.logs-meta span { color: var(--muted); font-size: 10px; }
.logs-panel > .form-message { min-height: 0; margin: 0; padding: 0 22px; }
.logs-panel > .form-message:not(:empty) { padding-block: 12px; border-bottom: 1px solid var(--line); }
.logs-table-wrap { overflow-x: auto; }
.logs-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.logs-table th { padding: 13px 16px; color: var(--muted); background: #252832; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
.logs-table td { overflow: hidden; padding: 16px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.logs-table th:nth-child(1) { width: 160px; }
.logs-table th:nth-child(2) { width: 270px; }
.logs-table th:nth-child(3) { width: 80px; }
.logs-table th:nth-child(4) { width: 105px; }
.logs-table th:nth-child(5) { width: 210px; }
.logs-table th:nth-child(6) { width: 150px; }
.method-badge { display: inline-grid; min-width: 42px; place-items: center; margin-right: 9px; border-radius: 7px; padding: 5px 7px; color: var(--green-dark); background: #e5f0ff; font: 800 9px ui-monospace, SFMono-Regular, Menlo, monospace; }
.request-line { display: flex; align-items: center; min-width: 0; }
.route-code, .request-id { color: var(--ink-2); font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; }
.http-status { display: inline-block; min-width: 42px; border-radius: 999px; padding: 5px 8px; text-align: center; font-size: 10px; font-weight: 850; }
.http-status.success { color: var(--green-dark); background: #e5f0ff; }
.http-status.redirect { color: #275f91; background: #e4f0fb; }
.http-status.client-error { color: #8a5c09; background: #fbefd5; }
.http-status.server-error { color: var(--danger); background: #fae7e6; }
.logs-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 22px; border-top: 1px solid var(--line); }
.logs-footer p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.logs-footer p strong { color: var(--ink-2); }
.logs-footer .button { min-height: 38px; font-size: 11px; }
.form-legal { margin: -2px 0 16px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.form-legal a { color: #69adff; text-decoration: underline; text-decoration-color: rgba(105,173,255,.45); text-underline-offset: 3px; }
.form-legal a:hover { color: #fff; }
.secret-modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 22px; }
.secret-modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(3,20,16,.58); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.secret-dialog { position: relative; z-index: 1; width: min(100%, 590px); border: 1px solid var(--line); border-radius: 22px; padding: 38px; color: #f7f8fa; background: #1f2129; box-shadow: 0 35px 100px rgba(0,0,0,.48); animation: modal-in .22s ease-out; }
.modal-close { position: absolute; top: 15px; right: 16px; width: 36px; height: 36px; border: 0; border-radius: 16px; color: white; background: var(--ui-control-bg); font-size: 24px; line-height: 1; transition: background-color .15s; }
.modal-close:hover { background: var(--ui-control-hover); }
.secret-icon { width: 50px; height: 50px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 14px; color: white; background: var(--lime); font-size: 27px; font-weight: 900; }
.secret-dialog h2 { margin: 8px 0 10px; font-size: 30px; letter-spacing: -.04em; }
.secret-dialog > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.secret-value { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; margin: 24px 0 10px; padding: 9px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); }
.secret-value code { align-self: center; overflow: hidden; padding-left: 7px; color: var(--green-dark); font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; text-overflow: ellipsis; white-space: nowrap; }
.secret-value button { min-height: 40px; border: 0; border-radius: 14px; padding: 0 16px; color: white; background: var(--ui-primary); font-size: 12px; font-weight: 800; }
.secret-dialog .copy-status { min-height: 20px; margin: 0 0 20px; color: var(--danger); font-size: 11px; font-weight: 700; }
.secret-dialog .copy-status.success { color: var(--green); }
.key-form-dialog form { margin-top: 24px; }
.key-form-dialog .field { margin-bottom: 0; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.portal-dialog-card { width: min(100%, 520px); }
.dialog-icon { width: 50px; height: 50px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 14px; color: white; background: var(--lime); font-size: 24px; font-weight: 900; }
.dialog-icon.danger { color: var(--danger); background: #fae7e6; }
.dialog-field { margin: 22px 0 0; }
.dialog-field textarea { min-height: 100px; }
body.modal-open { overflow: hidden; }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

.docs-layout { display: grid; grid-template-columns: 210px minmax(0, 780px); gap: 40px; }
.docs-toc { position: sticky; top: 30px; align-self: start; display: grid; gap: 5px; }
.docs-toc a { padding: 8px 10px; border-radius: 8px; color: #b8bdc9; font-size: 12px; }
.docs-toc a:hover { color: var(--green); background: white; }
.docs-content section { margin-bottom: 42px; scroll-margin-top: 24px; }
.docs-content h2 { margin: 0 0 12px; color: white; font-size: 25px; }
.docs-content p, .docs-content li { color: #b8bdc9; line-height: 1.7; font-size: 14px; }
.docs-content .endpoint { color: white; }
.code-block { overflow-x: auto; border-radius: 14px; padding: 18px; color: #d9ebe4; background: var(--ink); font: 12px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; }
.endpoint { display: inline-flex; gap: 10px; align-items: center; margin: 8px 0; font: 13px ui-monospace, monospace; }
.method { border-radius: 6px; padding: 5px 7px; color: white; background: var(--lime); font-size: 10px; font-weight: 900; }

.loading { opacity: .55; pointer-events: none; }
.mobile-head { display: none; }

@media (max-width: 1200px) {
  .key-item { grid-template-columns: 1fr auto; }
  .key-overview { grid-column: 1 / -1; }
  .key-dates { grid-column: 1; }
  .key-item .item-actions { grid-column: 2; grid-row: 2; }
}

@media (max-width: 920px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-story { min-height: 340px; padding: 30px 24px; }
  .auth-copy { margin: 55px 0 20px; }
  .auth-copy h1 { font-size: 43px; }
  .auth-points, .auth-foot { display: none; }
  .app-layout { display: block; }
  .sidebar { position: static; width: 100%; height: auto; padding: 16px 20px; flex-direction: row; align-items: center; gap: 20px; }
  .sidebar .brand { padding: 0; }
  .nav { display: flex; overflow-x: auto; margin: 0; }
  .nav a { white-space: nowrap; }
  .sidebar-bottom { margin: 0 0 0 auto; }
  .sidebar-user { display: none; }
  .logout-button { width: 44px; overflow: hidden; white-space: nowrap; }
  .summary-grid, .plans-grid { grid-template-columns: 1fr 1fr; }
  .usage-charts { grid-template-columns: 1fr; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-toc { position: static; grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .field-row, .summary-grid, .plans-grid, .usage-grid { grid-template-columns: 1fr; }
  .app-main { padding: 28px 18px 55px; }
  .sidebar { overflow-x: auto; }
  .sidebar .brand span:last-child, .logout-button { display: none; }
  .sidebar-bottom { display: none; }
  .page-head { display: block; }
  .page-head-actions { margin-top: 20px; }
  .page-head-actions .button { flex: 1; }
  .section-head { align-items: flex-start; }
  .key-capacity { align-items: flex-end; flex-direction: column; }
  .list-item { grid-template-columns: 1fr; gap: 12px; }
  .key-overview { grid-template-columns: 1fr; gap: 18px; }
  .key-usage { grid-template-columns: repeat(3, 1fr); }
  .key-usage > div { min-height: 52px; border-left: 0; border-top: 1px solid var(--line); padding: 12px 0 0; }
  .item-actions { justify-content: flex-start; }
  .docs-toc { grid-template-columns: 1fr 1fr; }
  .approval-banner { grid-template-columns: auto 1fr; }
  .approval-banner > a { grid-column: 2; }
  .secret-dialog { padding: 30px 22px 24px; }
  .secret-value { grid-template-columns: 1fr; }
  .secret-value code { padding: 7px; white-space: normal; overflow-wrap: anywhere; }
  .quota-visual { grid-template-columns: 1fr; justify-items: center; }
  .quota-legend { width: 100%; }
  .usage-chart-card { padding: 20px; }
  .trend-chart { min-height: 140px; }
  .logs-toolbar { grid-template-columns: 1fr 1fr; }
  .logs-refresh { width: 100%; }
  .logs-meta { align-self: center; }
  .logs-table-wrap { overflow: visible; }
  .logs-table, .logs-table tbody, .logs-table tr, .logs-table td { display: block; width: 100%; }
  .logs-table thead { display: none; }
  .logs-table tr { padding: 10px 18px; border-top: 1px solid var(--line); }
  .logs-table td { display: grid; grid-template-columns: 92px minmax(0,1fr); align-items: center; min-height: 38px; border: 0; padding: 7px 0; white-space: normal; overflow-wrap: anywhere; }
  .logs-table td::before { content: attr(data-label); color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
  .request-line { align-items: flex-start; flex-direction: column; gap: 7px; }
  .method-badge { margin-right: 0; }
  .route-code { white-space: normal; overflow-wrap: anywhere; }
  .logs-footer { align-items: stretch; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Yeni marka logosu (Türk bayraklı konum pini) — brand-mark logo.png gösterir */
.brand-mark{background:url("logo.png") center/contain no-repeat !important;border-radius:0 !important;box-shadow:none !important;color:transparent !important}
.brand-mark svg{display:none !important}
