@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* Kencang CDN brand: the official logo is loaded remotely from kencang.com. */
:root {
  --bg: #061523;
  --surface: #0b2032;
  --panel: #0d273a;
  --border: #224256;
  --muted: #96adbe;
  --text: #f2faff;
  --primary: #009dd7;
  --primary2: #00bfd1;
  --teal: #00bf9a;
  --blue: #58cfff;
  --shadow: rgba(0, 157, 215, .18);
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
::selection { background: #00bfd17a; }
h1, h2, h3 { font-family: 'Plus Jakarta Sans', sans-serif; letter-spacing: -.045em; }
h1, h2, p { margin-top: 0; }
.muted { color: var(--muted); }

/* Brand lockup: artwork remains exactly as hosted at the provided URL. */
.brand, .mobile-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.055em;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}
.brand-mark {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  padding: 4px;
  border-radius: 14px;
  border: 1px solid #d9edf2;
  background: #e5e5e5;
  box-shadow: 0 9px 24px #009dd729;
  overflow: hidden;
}
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; aspect-ratio: 1 / 1; }
.brand-name { display: inline-flex; align-items: baseline; gap: 5px; }
.brand-accent { color: #27d6b5; }
.mobile-brand { display: none; }

/* Authentication pages */
.auth-layout {
  display: grid;
  grid-template-columns: minmax(440px, 52%) minmax(410px, 48%);
  min-height: 100vh;
}
.story {
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 42px clamp(30px, 4vw, 76px);
  border-right: 1px solid #1d4257;
  background:
    radial-gradient(ellipse at 85% 16%, #05729e45 0, transparent 37%),
    radial-gradient(ellipse at 0% 85%, #00bf9a1a 0, transparent 48%),
    linear-gradient(140deg, #05263d 0%, #062239 46%, #061b2b 100%);
}
.story::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 430px;
  height: 430px;
  right: -225px;
  top: 24%;
  border-radius: 50%;
  border: 1px solid #00bf9a52;
  box-shadow: 0 0 0 55px #009dd70a, 0 0 0 115px #00bf9a07, 0 0 0 173px #009dd705;
}
.story::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .32;
  background-image: radial-gradient(#3884a0 0.7px, transparent .7px);
  background-size: 21px 21px;
  mask-image: linear-gradient(125deg, #000, transparent 72%);
}
.story-content { max-width: 570px; margin: auto 0; padding: 42px 0; position: relative; z-index: 1; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #62e9cf;
  font-size: 10px;
  letter-spacing: .19em;
  font-weight: 800;
}
.pulse {
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 0 5px #00bf9a20, 0 0 16px #00bf9a80;
}
.story h1 { font-size: clamp(44px, 4.65vw, 72px); line-height: 1.13; margin: 28px 0 24px; }
.story h1 em {
  font-style: normal;
  background: linear-gradient(110deg, #24c9ff 0%, #48e6bb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.story-content > p { font-size: 16px; line-height: 1.9; color: #a7c0ce; max-width: 470px; margin-bottom: 38px; }
.mock-panel {
  max-width: 480px;
  border: 1px solid #32617b;
  border-radius: 17px;
  background: #082234ea;
  box-shadow: 0 30px 90px #0007, 0 0 0 6px #17c4e407;
  overflow: hidden;
  transform: rotate(-1deg);
}
.mock-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 17px;
  border-bottom: 1px solid #204457;
  color: #8dacc0;
  font-size: 9px;
  letter-spacing: .11em;
  font-weight: 700;
}
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 7px; height: 7px; background: #ff6e75; border-radius: 50%; }
.window-dots i:nth-child(2) { background: #ffd05b; }
.window-dots i:nth-child(3) { background: #23caa1; }
.mock-online { color: #55e3b8; white-space: nowrap; }
.mock-body { padding: 10px 18px 19px; }
.mock-row { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid #204053; }
.mock-row strong, .mock-row small { display: block; }
.mock-row strong { font-size: 12px; }
.mock-row small { margin-top: 5px; color: #91a8ba; font-size: 10px; }
.mock-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 10px; background: #0c4260; color: #61cefa; font-size: 19px; flex-shrink: 0; }
.mock-icon.globe { color: #57e5c0; background: #16473f; }
.mock-chip { margin-left: auto; padding: 6px 10px; border-radius: 20px; color: #74e6c6; background: #10483d; font-size: 10px; }
.mock-metric { display: flex; justify-content: space-between; gap: 12px; padding-top: 18px; color: #90a9bd; font-size: 10px; }
.mock-metric span:last-child { color: #b0dfd2; }
.mock-metric b { color: #34dcae; }
.story-foot { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 15px; color: #819cae; font-size: 11px; }

.auth-main {
  display: grid;
  place-items: center;
  padding: 40px clamp(24px, 5vw, 86px);
  background:
    radial-gradient(ellipse at 95% 0%, #043d575c 0, transparent 36%),
    radial-gradient(ellipse at 0% 100%, #087c6720 0, transparent 35%),
    #071725;
}
.auth-card { width: min(100%, 445px); }
.welcome-symbol {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 26px;
  border: 1px solid #25647a;
  border-radius: 15px;
  color: #ecffff;
  background: linear-gradient(145deg, #0077b4, #00b895);
  box-shadow: 0 12px 28px #008ba445;
}
.welcome-symbol-inner { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 25px; line-height: 1; }
.eyebrow.small { color: #53dec3; font-size: 10px; }
.auth-card h2 { margin: 13px 0 10px; font-size: 34px; }
.auth-card .intro { margin-bottom: 29px; font-size: 14px; line-height: 1.7; }
.auth-form { display: flex; flex-direction: column; gap: 17px; }
.auth-form label { display: flex; flex-direction: column; gap: 9px; color: #d2e3ec; font-size: 12px; font-weight: 700; }
.auth-form input {
  height: 48px;
  width: 100%;
  border-radius: 10px;
  border: 1px solid #2c5063;
  background: #10273a;
  color: #f4fcff;
  outline: none;
  padding: 0 14px;
  font-size: 13px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.auth-form input::placeholder { color: #7d9bae; }
.auth-form input:focus { border-color: #04b8d0; background: #102c40; box-shadow: 0 0 0 3px #05acd522; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 65px; }
.show-pass { position: absolute; right: 11px; top: 11px; padding: 5px; border: 0; background: none; color: #a9c9d5; font-size: 11px; }
.show-pass:hover { color: white; }
.field-hint { margin-top: -11px; color: #92adbc; font-size: 11px; }
.primary-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 50px;
  margin-top: 6px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(110deg, #00a4dc, #00c5a6);
  color: #052034;
  font-weight: 800;
  box-shadow: 0 12px 26px #00a8c128;
  transition: transform .2s, filter .2s;
}
.primary-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.primary-btn span { font-size: 20px; }
.divider-text { display: flex; align-items: center; gap: 13px; margin: 28px 0 18px; color: #8caabc; font-size: 11px; }
.divider-text::before, .divider-text::after { content: ''; flex: 1; height: 1px; background: #2b495b; }
.google-shell { display: flex; justify-content: center; min-height: 45px; }
.google-shell > div { display: flex; justify-content: center; align-items: center; width: 100%; min-height: 42px; }
.google-loading { color: #95b3c6; font-size: 11px; }
.switch-auth { margin: 28px 0; text-align: center; color: #9bb4c4; font-size: 13px; }
.switch-auth a { color: #52dfc1; font-weight: 800; }
.switch-auth a:hover { text-decoration: underline; }
.auth-footer { padding-top: 22px; border-top: 1px solid #244050; text-align: center; color: #6f90a2; font-size: 10px; line-height: 1.6; }
.notice { margin: 0 0 18px; padding: 12px 15px; border: 1px solid #93565d; border-radius: 9px; color: #ffd1d5; background: #40232a; font-size: 12px; line-height: 1.5; }
.notice[hidden] { display: none; }
.notice.success { background: #11382f; border-color: #2b7e65; color: #aff3d7; }

/* Dashboard */
.dashboard-body { min-height: 100vh; background: #071725; }
.dash-layout { display: grid; grid-template-columns: 258px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 27px 20px;
  border-right: 1px solid #234356;
  background: linear-gradient(160deg, #09283e, #0a2032 65%, #071c2d);
}
.sidebar .brand { font-size: 19px; }
.sidebar .brand-mark { width: 42px; height: 42px; flex-basis: 42px; border-radius: 13px; }
.sidebar-label { margin: 58px 12px 16px; color: #7c9eb1; letter-spacing: .14em; font-weight: 800; font-size: 10px; }
.sidebar nav { display: flex; flex-direction: column; gap: 5px; }
.sidebar nav a, .sidebar nav .nav-disabled { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 11px; font-size: 13px; font-weight: 600; color: #9db5c4; }
.sidebar nav a.nav-active { background: #0b556c; border: 1px solid #137d94; color: #85f1dc; }
.sidebar nav .nav-disabled small { margin-left: 10px; color: #708d9e; font-size: 10px; }
.sidebar-bottom { display: flex; align-items: center; gap: 12px; padding-top: 24px; margin-top: auto; border-top: 1px solid #234356; min-width: 0; }
.avatar { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; color: #d8fff5; background: linear-gradient(135deg, #007baf, #099c81); font-size: 19px; }
.sidebar-bottom b, .sidebar-bottom small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-bottom b { font-size: 12px; }
.sidebar-bottom small { margin-top: 4px; color: #8eabba; font-size: 11px; }
.sidebar-bottom > div:nth-child(2) { min-width: 0; }
.dash-main { min-width: 0; }
.dash-header { display: flex; align-items: center; justify-content: space-between; height: 80px; padding: 0 5%; border-bottom: 1px solid #254558; color: #b0c5d1; font-size: 13px; background: #091c2e; }
.logout-btn { padding: 11px 18px; border: 1px solid #2e5467; border-radius: 10px; background: #122e41; color: #d5e8f0; }
.logout-btn:hover { border-color: #22c2c4; }
.dash-content { max-width: 1320px; margin: 0 auto; padding: 54px 5%; }
.page-label { color: #4bd7c5; font-size: 10px; letter-spacing: .18em; font-weight: 800; }
.dash-content h1 { margin: 14px 0 12px; font-size: 38px; }
.dash-content > .muted { margin-bottom: 32px; font-size: 14px; line-height: 1.8; }
.wave { color: #46dbbe; font-size: 23px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; margin: 28px 0; }
.stat-card, .content-card { background: linear-gradient(145deg, #102c40, #0c2436); border: 1px solid #2a5364; border-radius: 16px; box-shadow: 0 18px 40px #00000014; }
.stat-card { display: flex; flex-direction: column; gap: 12px; padding: 25px; border-top: 2px solid #0789b0; }
.stat-card:nth-child(2) { border-top-color: #00bf9a; }
.stat-card:nth-child(3) { border-top-color: #2bc5cb; }
.stat-card > span { color: #b5c9d5; font-size: 12px; }
.stat-card strong { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 39px; line-height: 1.4; }
.stat-card small { color: #8ca9ba; font-size: 11px; }
.dash-columns { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; margin-top: 23px; }
.content-card { padding: 26px; }
.content-card h2 { margin-bottom: 11px; font-size: 19px; }
.content-card > .muted { margin-bottom: 28px; font-size: 12px; line-height: 1.7; }
.task-row { display: flex; align-items: center; gap: 12px; padding: 17px 0; border-top: 1px solid #284658; }
.task-row strong, .task-row small { display: block; }
.task-row strong { font-size: 12px; }
.task-row small { margin-top: 6px; color: #8ca8ba; font-size: 11px; }
.task-check, .task-pending { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: #0a4f40; color: #72ecc9; font-size: 13px; }
.task-pending { background: #143d55; color: #93c4e6; }
.done, .soon { margin-left: auto; padding: 6px 9px; border-radius: 20px; color: #7ce5ca; background: #0c4c40; font-size: 10px; white-space: nowrap; }
.soon { background: #244255; color: #9ab5c6; }
.account-detail { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 0; border-bottom: 1px solid #284658; font-size: 12px; }
.account-detail span { color: #93adbe; }
.account-detail b { overflow-wrap: anywhere; text-align: right; }
.tiny-help { margin: 16px 0; color: #94afbd; font-size: 11px; line-height: 1.8; }
.tiny-help code { color: #7cead5; overflow-wrap: anywhere; }
.link-google { justify-content: flex-start; margin-top: 18px; }
.link-google > div { justify-content: flex-start; }

@media (max-width: 1020px) {
  .auth-layout { grid-template-columns: minmax(340px, 47%) minmax(390px, 53%); }
  .story { padding: 30px; }
  .story h1 { font-size: 45px; }
  .story-content > p { font-size: 15px; }
  .auth-main { padding: 35px; }
  .dash-columns { grid-template-columns: 1fr; }
}
@media (max-width: 750px) {
  .auth-layout { display: block; }
  .story { display: none; }
  .auth-main { min-height: 100vh; display: flex; flex-direction: column; padding: 28px 22px 32px; }
  .mobile-brand { display: flex; align-self: flex-start; gap: 10px; margin-bottom: 50px; font-size: 19px; }
  .mobile-brand .brand-mark { width: 40px; height: 40px; flex-basis: 40px; border-radius: 12px; }
  .auth-card { margin: auto; max-width: 440px; }
  .auth-card h2 { font-size: 31px; }
  .auth-footer { margin-bottom: 18px; }
  .dash-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; padding: 18px 24px; border-right: none; border-bottom: 1px solid #234356; }
  .sidebar-label, .sidebar nav, .sidebar-bottom { display: none; }
  .dash-header { height: 65px; padding: 0 6%; }
  .dash-content { padding: 37px 6%; }
  .dash-content h1 { font-size: 30px; }
  .stats-grid { grid-template-columns: 1fr; gap: 12px; }
  .stat-card { padding: 20px; }
  .dash-columns { grid-template-columns: 1fr; }
}
@media (max-width: 410px) {
  .two-col { grid-template-columns: 1fr; }
  .mobile-brand { margin-bottom: 26px; }
  .auth-main { padding: 23px 17px; }
  .auth-card h2 { font-size: 28px; }
  .auth-form { gap: 13px; }
  .story-foot { flex-direction: column; }
}
