/* =========================================================================
   AlyaCloud — account pages (auth + Customer Area)
   Loaded in addition to style.css, which is left untouched so the public
   homepage and catalogue keep their approved design.
   1. Shared pieces        4. Forms
   2. Auth layout          5. Customer Area shell
   3. Alerts & states      6. Customer Area content
   7. Responsive
   ========================================================================= */

/* --------------------------------------------------------- 1. Shared pieces */
.btn--block { width: 100%; }

.muted-empty {
  margin: 0;
  padding: 18px 0 4px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 68ch;
}

/* --------------------------------------------------------------- 2. Auth */
.page--auth { background: var(--bg); }

.auth {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  min-height: 100vh;
}

.auth__aside {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: clamp(28px, 4vw, 52px);
  background: linear-gradient(158deg, var(--navy-900) 0%, var(--navy-800) 55%, #12316B 100%);
  color: #EAF0FB;
}
.auth__aside::before {
  content: "";
  position: absolute;
  top: -18%; right: -22%;
  width: 62%; height: 70%;
  background: radial-gradient(circle at 50% 50%, rgba(36, 155, 255, .30), transparent 62%);
  filter: blur(8px);
  pointer-events: none;
}
.auth__aside::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 46px);
  opacity: .5;
  pointer-events: none;
}
.auth__aside > * { position: relative; z-index: 1; }

.brand--auth .brand__name { color: #fff; }
.brand--auth .brand__tagline { color: #93A6C8; }

.auth__aside-body { margin-top: auto; }
.auth__aside-title {
  font-size: clamp(24px, 2.7vw, 34px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -.025em;
  color: #fff;
  max-width: 22ch;
}
.auth__points { display: grid; gap: 18px; margin-top: 30px; }
.auth__points li { display: flex; gap: 13px; align-items: flex-start; }
.auth__point-icon {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  flex: none;
  border-radius: 11px;
  background: rgba(36, 155, 255, .14);
  border: 1px solid rgba(36, 155, 255, .3);
  color: var(--blue-400);
}
.auth__point-text { display: flex; flex-direction: column; gap: 2px; }
.auth__point-label { font-size: 14.5px; font-weight: 700; color: #fff; }
.auth__point-desc { font-size: 13px; line-height: 1.55; color: #A8B8D6; }

.auth__aside-foot { margin-top: auto; display: grid; gap: 16px; }
.auth__aside-note {
  display: flex;
  gap: 10px;
  padding: 14px 15px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  font-size: 12.5px;
  line-height: 1.6;
  color: #C7D6F0;
}
.auth__aside-note .ico { color: var(--blue-400); margin-top: 2px; flex: none; }
.auth__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 650;
  color: #BBD5FF;
  width: fit-content;
}
.auth__back:hover { color: #fff; }

.auth__main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: clamp(26px, 4vw, 56px) clamp(20px, 4vw, 64px);
  background: var(--white);
}
.auth__card {
  width: 100%;
  max-width: 468px;
  margin-inline: auto;
}
.auth__card--wide { max-width: 560px; }

.auth__progress {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}
.auth__progress-label {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-600);
}
/* Segment-based progress bar: no inline width is needed, so it stays
   compatible with the strict style-src 'self' policy. */
.auth__progress-bar { display: flex; gap: 4px; }
.auth__progress-bar i {
  display: block;
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: #E6ECF7;
  transition: background-color .25s var(--ease);
}
.auth__progress-bar i.is-on { background: linear-gradient(90deg, var(--blue-600), var(--blue-500)); }
.auth__progress-text { font-size: 12.5px; color: var(--muted); }

.auth__head { margin-bottom: 24px; }
.auth__title {
  font-size: clamp(23px, 2.5vw, 30px);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.22;
  color: var(--ink);
}
.auth__subtitle { margin-top: 10px; font-size: 14.5px; line-height: 1.65; color: var(--muted); }

.auth__main-foot {
  width: 100%;
  max-width: 468px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
  padding-top: 6px;
}
.auth__secure {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}
.auth__secure .ico { color: var(--ok); flex: none; margin-top: 2px; }
.auth__legal { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 12px; color: var(--muted); }
.auth__legal a:hover { color: var(--blue-600); }

/* -------------------------------------------------- 3. Alerts & states */
.alert {
  display: flex;
  gap: 12px;
  padding: 15px 16px;
  margin-bottom: 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--muted-strong);
}
.alert > .ico { flex: none; margin-top: 2px; }
.alert strong { display: block; font-size: 14px; color: var(--ink); margin-bottom: 4px; }
.alert p { margin: 0 0 4px; }
.alert p:last-child { margin-bottom: 0; }
.alert__list { margin: 6px 0 0; padding-left: 18px; list-style: disc; display: grid; gap: 4px; }
.alert__note { font-size: 12.5px; color: var(--muted); }
.alert a { color: var(--blue-600); font-weight: 650; text-decoration: underline; text-underline-offset: 2px; }

.alert--success { background: rgba(14, 159, 110, .07); border-color: rgba(14, 159, 110, .28); }
.alert--success > .ico { color: var(--ok); }
.alert--info { background: var(--blue-050); border-color: #CFDEFA; }
.alert--info > .ico { color: var(--blue-600); }
.alert--warning { background: #FFF8EA; border-color: #F2D9A4; }
.alert--warning > .ico { color: var(--amber); }
.alert--danger { background: #FEF2F2; border-color: #F6D3D3; }
.alert--danger > .ico { color: #C0392B; }

.result { text-align: center; padding: 8px 0 4px; }
.result__icon {
  display: grid; place-items: center;
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  border-radius: 18px;
  background: rgba(14, 159, 110, .1);
  border: 1px solid rgba(14, 159, 110, .26);
  color: var(--ok);
}
.result__title { font-size: 21px; font-weight: 750; letter-spacing: -.02em; }
.result__text { margin-top: 10px; font-size: 14.5px; line-height: 1.68; color: var(--muted); }
.result__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }

.card-note {
  display: flex;
  gap: 11px;
  margin-top: 22px;
  padding: 14px 15px;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px dashed var(--line-strong);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}
.card-note .ico { color: var(--navy-700); flex: none; margin-top: 2px; }

/* ------------------------------------------------------------ 4. Forms */
.form { display: grid; gap: 18px; }
.form--panel { margin-top: 4px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form__lead { font-size: 14px; line-height: 1.68; color: var(--muted-strong); }
.form__actions { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 4px; }
.form__note {
  display: flex;
  gap: 9px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}
.form__note .ico { color: var(--blue-600); flex: none; margin-top: 2px; }
.form__alt { margin-top: 4px; font-size: 13.5px; color: var(--muted); text-align: center; }
.form__alt a { color: var(--blue-600); font-weight: 700; }

.field { display: grid; gap: 7px; }
.field--check { gap: 4px; }
.field__label { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.field__wrap { position: relative; display: block; }
.field__input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--white);
  font-size: 15px;
  color: var(--ink);
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease), background-color .16s var(--ease);
}
.field__input::placeholder { color: #9AA7BC; }
.field__input:hover { border-color: #B9C7DE; }
.field__input:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 4px rgba(20, 99, 243, .14);
}
.field__input.is-invalid { border-color: #D9705F; background: #FFFBFB; }
.field__wrap .field__input { padding-right: 48px; }
.field__toggle {
  position: absolute;
  top: 50%; right: 6px;
  transform: translateY(-50%);
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
}
.field__toggle:hover { background: var(--bg); color: var(--ink); }
.field__help { font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.field__help a { color: var(--blue-600); font-weight: 650; }
.field__error { font-size: 12.5px; font-weight: 650; color: #B4321F; }
.field__rules { display: grid; gap: 5px; margin-top: 2px; }
.field__rules li {
  position: relative;
  padding-left: 20px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.field__rules li::before {
  content: "";
  position: absolute;
  left: 3px; top: 7px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #CDD7E5;
}
.field__rules li.is-ok { color: #0B7B55; }
.field__rules li.is-ok::before { background: var(--ok); }

.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box {
  display: grid; place-items: center;
  width: 21px; height: 21px;
  flex: none;
  margin-top: 1px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--white);
  color: transparent;
  transition: background-color .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease);
}
.check input:checked + .check__box { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.check input:focus-visible + .check__box { outline: 3px solid var(--blue-500); outline-offset: 2px; }
.check__text { font-size: 13px; line-height: 1.6; color: var(--muted-strong); }
.check__text a { color: var(--blue-600); font-weight: 650; text-decoration: underline; text-underline-offset: 2px; }

.meter { display: flex; align-items: center; gap: 10px; }
.meter__bars { display: inline-flex; gap: 4px; }
.meter__bars i {
  display: block;
  width: 30px; height: 5px;
  border-radius: 999px;
  background: #E4EAF3;
  transition: background-color .2s var(--ease);
}
.meter[data-score="1"] .meter__bars i:nth-child(-n+1) { background: #D9534F; }
.meter[data-score="2"] .meter__bars i:nth-child(-n+2) { background: #E0912B; }
.meter[data-score="3"] .meter__bars i:nth-child(-n+3) { background: #2C9A63; }
.meter[data-score="4"] .meter__bars i { background: var(--ok); }
.meter__text { font-size: 12px; font-weight: 650; color: var(--muted); }

.btn[data-submit].is-busy { opacity: .75; pointer-events: none; }

/* ------------------------------------------------ 5. Customer Area shell */
.page--dash { background: var(--bg); }

.dash {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  min-height: 100vh;
}

.dash__sidebar {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--navy-900), var(--navy-800));
  color: #C7D6F0;
  padding: 20px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.dash__brand { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 6px 18px; }
.brand--dash .brand__mark { width: 40px; height: 40px; }
.brand--dash .brand__name { color: #fff; font-size: 18px; }
.brand--dash .brand__tagline { color: #93A6C8; }
.dash__close {
  display: none;
  width: 38px; height: 38px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius-sm);
  background: none;
  color: #fff;
}

.dash__user {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  margin-bottom: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
}
.dash__avatar {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  flex: none;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--blue-600), #0F55DA);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
}
.dash__user-body { display: flex; flex-direction: column; min-width: 0; }
.dash__user-name { font-size: 14px; font-weight: 700; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash__user-role { font-size: 11.5px; color: #93A6C8; }

.dash__nav { margin-bottom: auto; }
.dash__nav ul { display: grid; gap: 2px; }
.dash__nav-sep { height: 1px; margin: 10px 6px; background: rgba(255, 255, 255, .1); }
.dash__link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border-radius: var(--radius-md);
  color: #C7D6F0;
  font-size: 14px;
  font-weight: 550;
  transition: background-color .16s var(--ease), color .16s var(--ease);
}
.dash__link:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.dash__link.is-active { background: rgba(36, 155, 255, .16); color: #fff; box-shadow: inset 3px 0 0 var(--blue-500); }
.dash__link.is-disabled { opacity: .6; cursor: not-allowed; }
.dash__link--danger:hover { background: rgba(214, 69, 69, .16); color: #FFC9C9; }
.dash__link-icon { display: grid; place-items: center; flex: none; color: inherit; }
.dash__link-label { min-width: 0; }
.dash__link-badge {
  margin-left: auto;
  min-width: 20px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--blue-600);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}
.dash__link-soon {
  margin-left: auto;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #7E92B8;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  padding: 2px 7px;
}
.dash__side-foot { padding: 16px 6px 4px; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 16px; }
.dash__side-note { display: flex; gap: 8px; font-size: 11.5px; line-height: 1.5; color: #7E92B8; }
.dash__side-note .ico { color: var(--blue-400); flex: none; margin-top: 2px; }

.dash__overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(7, 21, 47, .5);
  backdrop-filter: blur(2px);
}
.dash__overlay[hidden] { display: none; }

.dash__body { display: flex; flex-direction: column; min-width: 0; }

.dash__topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px clamp(18px, 3vw, 32px);
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.dash__burger {
  display: none;
  width: 42px; height: 42px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--ink);
}
.dash__topbar-title { min-width: 0; }
.dash__title { font-size: clamp(19px, 2.1vw, 24px); font-weight: 800; letter-spacing: -.022em; }
.dash__lead { margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.dash__topbar-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.dash__icon-btn {
  position: relative;
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--muted-strong);
}
.dash__icon-btn:hover { border-color: var(--blue-500); color: var(--blue-600); }
.dash__dot {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 18px;
  padding: 1px 5px;
  border-radius: 999px;
  background: var(--blue-600);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
}
.dash__chip {
  display: none;
  flex-direction: column;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--line);
  line-height: 1.25;
}
.dash__chip-name { font-size: 13px; font-weight: 700; }
.dash__chip-role { font-size: 11px; color: var(--muted); }

.dash__content {
  flex: 1;
  padding: clamp(18px, 2.6vw, 30px) clamp(18px, 3vw, 32px) 40px;
  display: grid;
  gap: 20px;
  align-content: start;
}

.dash__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 18px clamp(18px, 3vw, 32px) 26px;
  font-size: 12.5px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.dash__footer-links { display: flex; gap: 8px; flex-wrap: wrap; }
.dash__footer a:hover { color: var(--blue-600); }

/* ---------------------------------------------- 6. Customer Area content */
.dash-grid { display: grid; gap: 16px; }
.dash-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stat-card {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #CFDEF6; }
.stat-card__icon {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  margin-bottom: 8px;
  border-radius: 11px;
  background: var(--blue-050);
  border: 1px solid #DCE7FB;
  color: var(--blue-600);
}
.stat-card__label { font-size: 12.5px; font-weight: 650; color: var(--muted); }
.stat-card__value { font-size: 30px; font-weight: 800; letter-spacing: -.03em; color: var(--navy-800); line-height: 1.1; }
.stat-card__sub { font-size: 11.5px; color: var(--muted); }
.stat-card__arrow { position: absolute; top: 18px; right: 16px; color: #C3CFE2; }
.stat-card:hover .stat-card__arrow { color: var(--blue-600); }

.dash-two { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.dash-col { display: grid; gap: 20px; }

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.panel--pad { padding: 22px; }
.panel__head { margin-bottom: 18px; }
.panel__title { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 750; letter-spacing: -.012em; }
.panel__title .ico { color: var(--blue-600); }
.panel__lead { margin-top: 6px; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.panel__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.panel__note {
  display: flex;
  gap: 9px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted-strong);
}
.panel__note .ico { color: var(--blue-600); flex: none; margin-top: 2px; }

.kv { display: grid; gap: 0; }
.kv__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.kv__row:last-child { border-bottom: 0; padding-bottom: 0; }
.kv dt { font-size: 13px; color: var(--muted); white-space: nowrap; }
.kv dd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; font-size: 13.5px; font-weight: 650; color: var(--ink); text-align: right; }
.kv dd .chip { font-weight: 700; }
.kv--compact .kv__row { padding: 9px 0; }

.chip--warn { background: #FFF3DE; color: #8A5A0B; }

.notif-list { display: grid; gap: 12px; }
.notif-item { display: grid; gap: 3px; padding: 13px 14px; border-radius: var(--radius-md); background: var(--bg); border: 1px solid var(--line); }
.notif-item__title { font-size: 13.5px; font-weight: 700; }
.notif-item__time { font-size: 11.5px; color: var(--muted); }
.notif-item__body { font-size: 12.5px; line-height: 1.55; color: var(--muted-strong); }

.status-list { display: grid; gap: 10px; }
.status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 13px;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--line);
}
.status-item__key { font-size: 13px; color: var(--muted-strong); }
.status-item__val { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; }
.status-item__val--ok { color: #0B7B55; }
.status-item__val--warn { color: #8A5A0B; }
.status-item__val--muted { color: var(--muted); font-weight: 650; }

.empty-panel {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #FBFCFE, var(--white));
  border: 1px dashed var(--line-strong);
}
.empty-panel__icon {
  display: grid; place-items: center;
  width: 60px; height: 60px;
  flex: none;
  border-radius: 18px;
  background: var(--blue-050);
  border: 1px solid #DCE7FB;
  color: var(--blue-600);
}
.empty-panel__body { display: grid; gap: 12px; }
.empty-panel__title { font-size: clamp(17px, 1.9vw, 21px); font-weight: 750; letter-spacing: -.018em; }
.empty-panel__text { font-size: 14px; line-height: 1.7; color: var(--muted-strong); max-width: 74ch; }
.empty-panel__list { display: grid; gap: 9px; }
.empty-panel__list li { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.6; color: var(--muted-strong); }
.empty-panel__list .ico { color: var(--ok); flex: none; margin-top: 3px; }
.empty-panel__note {
  display: flex;
  gap: 9px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}
.empty-panel__note .ico { color: var(--blue-600); flex: none; margin-top: 2px; }
.empty-panel__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
}
.tabs__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--muted-strong);
  white-space: nowrap;
}
.tabs__link:hover { color: var(--blue-600); background: var(--blue-050); }
.tabs__link.is-active { background: var(--blue-600); color: #fff; }

.email-current {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  margin-bottom: 18px;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--line);
}
.email-current__label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.email-current__value { font-size: 14.5px; font-weight: 700; word-break: break-all; }

.session-list { display: grid; gap: 10px; }
.session-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 14px;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--line);
}
.session-item__icon {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  flex: none;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--muted-strong);
}
.session-item__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.session-item__agent { font-size: 13px; font-weight: 650; word-break: break-word; }
.session-item__meta { font-size: 11.5px; color: var(--muted); }
.session-item .chip { margin-left: auto; flex: none; }

.audit-list { display: grid; gap: 2px; }
.audit-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.audit-item:last-child { border-bottom: 0; }
.audit-item__dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--blue-500); }
.audit-item--notice .audit-item__dot { background: var(--blue-600); }
.audit-item--warning .audit-item__dot { background: var(--amber); }
.audit-item--critical .audit-item__dot { background: #C0392B; }
.audit-item__label { color: var(--muted-strong); }
.audit-item__time { margin-left: auto; font-size: 11.5px; color: var(--muted); white-space: nowrap; }

.perm-list { display: flex; flex-wrap: wrap; gap: 8px; }
.perm-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 12px;
}
.perm-item .ico { color: var(--ok); }
.perm-item code { font-size: 11.5px; color: var(--muted-strong); }

.list-checks { display: grid; gap: 11px; }
.list-checks li { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.62; color: var(--muted-strong); }
.list-checks .ico { color: var(--ok); flex: none; margin-top: 3px; }
.list-checks code, .perm-item code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }

/* --------------------------------------------------------- 7. Responsive */
@media (max-width: 1180px) {
  .dash-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1080px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth__aside { gap: 22px; padding-bottom: 34px; }
  .auth__aside-body, .auth__aside-foot { margin-top: 0; }
  .auth__aside-title { max-width: 34ch; }
  .auth__points { grid-template-columns: repeat(2, minmax(0, 1fr)); display: grid; gap: 16px; }
  .auth__main { padding-block: 34px; }
  .auth__card { max-width: 620px; }
  .auth__main-foot { max-width: 620px; }

  .dash { grid-template-columns: minmax(0, 1fr); }
  .dash__sidebar {
    position: fixed;
    top: 0; left: 0;
    z-index: 110;
    width: min(300px, 86vw);
    transform: translateX(-100%);
    transition: transform .26s var(--ease);
  }
  body.dash-open .dash__sidebar { transform: none; }
  body.dash-open { overflow: hidden; }
  .dash__close { display: grid; place-items: center; }
  .dash__burger { display: grid; }
  .dash__chip { display: flex; }
  .dash-two { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .auth__points { grid-template-columns: minmax(0, 1fr); }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .dash-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kv__row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .kv dd { justify-content: flex-start; text-align: left; }
  .empty-panel { flex-direction: column; gap: 16px; }
  .dash__topbar { flex-wrap: wrap; }
  .dash__topbar-actions { width: 100%; margin-left: 0; justify-content: flex-end; }
}

@media (max-width: 520px) {
  .dash-grid--4 { grid-template-columns: minmax(0, 1fr); }
  .auth__main { padding-inline: 18px; }
  .auth__card, .auth__main-foot { max-width: 100%; }
  .tabs { width: 100%; }
  .tabs__link { flex: 1 1 auto; justify-content: center; padding-inline: 12px; }
  .panel--pad { padding: 18px 16px; }
  .stat-card__value { font-size: 26px; }
  .session-item { flex-wrap: wrap; }
  .session-item .chip { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .stat-card, .dash__sidebar { transition: none; }
}

/* ==========================================================================
   REVISI WEBSITE (schema v15) — area pelanggan
   Kartu formulir, tabel data, tiket, ulasan, notifikasi, rating input.
   ========================================================================== */

.stat-grid--compact { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }

.form-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.form-card__title { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 780; }
.form-card__title .ico { color: var(--blue-600); }
.form-card__lead { font-size: 13.5px; line-height: 1.68; color: var(--muted-strong); max-width: 78ch; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

@media (max-width: 760px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
}

.field--wide { grid-column: 1 / -1; }
.field__optional { font-size: 11.5px; font-weight: 500; color: var(--muted); }

.form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.form-actions__note { font-size: 12px; color: var(--muted); }

.table-card {
  padding: 0;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  margin-top: 20px;
}

.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th,
.data-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table thead th {
  background: #F7FAFF;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #FAFCFF; }
.data-table tr.is-unread { background: #FFFDF4; }
.data-table .is-num { text-align: right; white-space: nowrap; }
.data-table code { font-size: 12px; background: #F1F5FB; padding: 2px 6px; border-radius: 5px; }

.table-sub { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.table-clip { max-width: 320px; }
.nowrap { white-space: nowrap; }

.chip--info { background: #EAF2FF; color: #0F4AA8; }
.chip--danger { background: #FDECEA; color: #A8231A; }

/* ------------------------------------------------------------- tiket -- */
.ticket-detail { padding: 24px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); display: grid; gap: 18px; }
.ticket-detail__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.ticket-detail__ref { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.ticket-detail__title { font-size: 19px; font-weight: 780; letter-spacing: -.015em; margin-top: 4px; }
.ticket-detail__meta { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.6; }

.ticket-thread { display: grid; gap: 12px; }

.ticket-msg { padding: 14px 16px; border-radius: var(--radius-md); background: #F8FAFD; border: 1px solid var(--line); }
.ticket-msg--me { background: #F2F7FF; border-color: #D5E4F8; }
.ticket-msg__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); margin-bottom: 6px; }
.ticket-msg__meta strong { font-size: 12.5px; color: var(--ink); }
.ticket-msg__body { font-size: 13.5px; line-height: 1.7; color: var(--muted-strong); overflow-wrap: anywhere; }

.ticket-detail__closed {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: #ECFDF3;
  border: 1px solid #B7E4C7;
  font-size: 12.5px;
  color: #166534;
}

.ticket-reply { display: grid; gap: 8px; }
.ticket-reply__actions { display: flex; justify-content: flex-end; }

/* ------------------------------------------------------------ ulasan -- */
.review-list { padding: 24px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); display: grid; gap: 14px; }
.review-list__items { display: grid; gap: 14px; }
.review-item { padding: 14px 16px; border-radius: var(--radius-md); border: 1px solid var(--line); background: #FCFDFF; display: grid; gap: 8px; }
.review-item__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.review-item__stars { display: inline-flex; gap: 3px; color: #F59E0B; }
.review-item__stars .star { opacity: .28; display: inline-flex; }
.review-item__stars .star.is-on { opacity: 1; }
.review-item__date { font-size: 11.5px; color: var(--muted); }
.review-item__body { font-size: 13.5px; line-height: 1.68; color: var(--muted-strong); }
.review-item__meta { font-size: 12px; color: var(--muted); }
.review-item__note { font-size: 12px; color: var(--muted); }
.review-item__note--ok { color: #166534; }

.rating-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.rating-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-input label { cursor: pointer; color: #D7DEEC; display: inline-flex; padding: 2px; border-radius: 6px; }
.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input:checked ~ label { color: #F59E0B; }
.rating-input input:focus-visible + label { outline: 2px solid #BFD3F5; outline-offset: 2px; }

/* -------------------------------------------------------- notifikasi -- */
.notif-card { padding: 8px 0; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.notif-list { display: grid; }
.notif-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.notif-item:last-child { border-bottom: 0; }
.notif-item.is-unread { background: #FFFDF4; }
.notif-item__icon { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: #EEF4FF; color: var(--blue-600); }
.notif-item__icon--ok { background: #ECFDF3; color: #166534; }
.notif-item__icon--warn { background: #FFF7E8; color: #8A5A0B; }
.notif-item__icon--danger { background: #FDECEA; color: #A8231A; }
.notif-item__body { display: grid; gap: 3px; min-width: 0; }
.notif-item__title { font-size: 13.5px; font-weight: 700; }
.notif-item__text { font-size: 12.5px; line-height: 1.6; color: var(--muted-strong); }
.notif-item__time { font-size: 11.5px; color: var(--muted); }
