:root {
  color-scheme: dark;
  --bg: #04101d;
  --bg-2: #071928;
  --panel: rgba(8, 26, 43, 0.92);
  --panel-2: rgba(10, 32, 52, 0.76);
  --line: rgba(116, 159, 198, 0.18);
  --line-strong: rgba(94, 152, 220, 0.34);
  --text: #f7fbff;
  --muted: #8ea6bb;
  --gold: #f4b63d;
  --blue: #126dff;
  --blue-2: #29a7ff;
  --green: #13c568;
  --red: #ff4d5d;
  --purple: #7b4cff;
  --cyan: #00d0bd;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  --radius: 8px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 72% 14%, rgba(18, 109, 255, 0.18), transparent 36%),
    radial-gradient(circle at 16% 0%, rgba(244, 182, 61, 0.08), transparent 28%),
    linear-gradient(145deg, #020911 0%, #071522 48%, #030811 100%);
  color: var(--text);
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  min-height: 36px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(13, 35, 56, 0.88);
  color: var(--text);
  padding: 8px 12px;
  cursor: pointer;
}

button:hover {
  border-color: var(--line-strong);
  background: rgba(17, 48, 78, 0.95);
}

.button-like {
  min-height: 36px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(13, 35, 56, 0.88);
  color: var(--text);
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.button-like:hover {
  border-color: var(--line-strong);
  background: rgba(17, 48, 78, 0.95);
}

button.primary {
  border-color: rgba(18, 109, 255, 0.7);
  background: linear-gradient(135deg, #075fdb, #1489ff);
  font-weight: 800;
}

button.success {
  border-color: rgba(19, 197, 104, 0.54);
  background: rgba(19, 197, 104, 0.18);
  color: #7effb9;
}

button.danger {
  border-color: rgba(255, 77, 93, 0.5);
  background: rgba(255, 77, 93, 0.14);
  color: #ff9aa3;
}

input,
select,
textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(4, 16, 29, 0.76);
  color: var(--text);
  padding: 9px 11px;
}

.hidden-file {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-status {
  display: flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(4, 16, 29, 0.76);
  color: var(--muted);
  padding: 9px 11px;
}

.file-picker-button {
  min-height: 36px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(13, 35, 56, 0.88);
  color: var(--text);
  padding: 8px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.file-picker-button:hover {
  border-color: var(--line-strong);
  background: rgba(17, 48, 78, 0.95);
}

.file-picker-button.primary {
  border-color: rgba(18, 109, 255, 0.7);
  background: linear-gradient(135deg, #075fdb, #1489ff);
  font-weight: 800;
}

textarea {
  min-height: 300px;
  resize: vertical;
  line-height: 1.55;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line);
  background: rgba(4, 18, 32, 0.8);
  backdrop-filter: blur(16px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 18px 14px;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 78px;
}

.brand-logo {
  width: 74px;
  height: 74px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 10px 24px rgba(244, 182, 61, 0.24);
}

.brand strong {
  display: block;
  color: #ffd77a;
  font-size: 17px;
  line-height: 1.1;
  letter-spacing: 1px;
}

.brand span,
.profile span,
.page-title span {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: grid;
  align-content: start;
  gap: 7px;
}

.nav button {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border-color: transparent;
  background: transparent;
  color: #d7e5f1;
  min-height: 42px;
}

.nav button.active {
  border-color: rgba(18, 109, 255, 0.55);
  background: linear-gradient(90deg, rgba(18, 109, 255, 0.24), rgba(18, 109, 255, 0.06));
  color: #fff;
  box-shadow: inset 3px 0 0 var(--blue);
}

.nav .nav-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: #9ecaff;
  border: 1px solid rgba(158, 202, 255, 0.22);
  font-size: 11px;
}

.storage {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  color: var(--muted);
  font-size: 12px;
}

.storage b {
  display: block;
  color: #dfefff;
  margin-bottom: 9px;
}

.storage-bar {
  height: 8px;
  border-radius: 99px;
  background: rgba(112, 149, 182, 0.18);
  overflow: hidden;
  margin-bottom: 8px;
}

.storage-bar span {
  display: block;
  height: 100%;
  width: 4.9%;
  background: linear-gradient(90deg, #1677ff, #2fb6ff);
}

.storage-danger {
  width: 100%;
  margin-top: 12px;
  border-color: rgba(255, 91, 118, 0.44);
  background: rgba(255, 91, 118, 0.1);
  color: #ffb7c2;
}

.storage-danger:hover {
  border-color: rgba(255, 91, 118, 0.7);
  background: rgba(255, 91, 118, 0.16);
}

.main {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(3, 12, 22, 0.78);
  backdrop-filter: blur(16px);
}

.page-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.page-title h1 {
  margin: 0 0 3px;
  font-size: 22px;
  line-height: 1.14;
}

.icon-button {
  width: 38px;
  min-width: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.row-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.notify {
  position: relative;
  color: #fff;
}

.notify::after {
  content: attr(data-count);
  position: absolute;
  top: -7px;
  right: -5px;
  width: 18px;
  height: 18px;
  border-radius: 99px;
  display: grid;
  place-items: center;
  background: var(--red);
  font-size: 11px;
}

.notify[data-count="0"]::after {
  display: none;
}

.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 1px solid var(--line);
  padding-left: 14px;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  font-weight: 900;
}

.content {
  padding: 20px 22px 28px;
  display: grid;
  gap: 16px;
}

.auth-mode .app-shell {
  grid-template-columns: minmax(0, 1fr);
}

.auth-mode .sidebar,
.auth-mode .topbar,
.auth-mode .bottom-nav {
  display: none;
}

.auth-mode .main {
  min-height: 100vh;
}

.auth-mode .content {
  min-height: 100vh;
  padding: 24px;
  place-items: center;
}

.auth-screen {
  width: min(100%, 440px);
}

.auth-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(11, 33, 55, 0.94), rgba(6, 20, 34, 0.96));
  box-shadow: var(--shadow);
  padding: 26px;
  display: grid;
  gap: 18px;
}

.auth-logo {
  width: 86px;
  height: 86px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 12px 28px rgba(244, 182, 61, 0.24);
}

.auth-title h2 {
  margin: 0 0 6px;
  font-size: 24px;
}

.auth-title p,
.auth-help {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.auth-form {
  display: grid;
  gap: 13px;
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: #dbeafa;
  font-weight: 800;
}

.auth-notice {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(244, 182, 61, 0.28);
  border-radius: 8px;
  padding: 12px;
  background: rgba(244, 182, 61, 0.1);
  color: #ffe0a0;
}

.auth-notice b {
  color: #fff;
  font-size: 20px;
  letter-spacing: 0.08em;
}

.landing-mode {
  background:
    radial-gradient(circle at 8% 4%, rgba(29, 130, 255, 0.22), transparent 30%),
    radial-gradient(circle at 80% 18%, rgba(30, 144, 255, 0.2), transparent 28%),
    radial-gradient(circle at 48% 78%, rgba(0, 220, 255, 0.1), transparent 32%),
    linear-gradient(180deg, #020817 0%, #031327 52%, #020817 100%);
}

.landing-mode .content {
  display: block;
  min-height: 100vh;
  padding: 0;
}

.landing-page {
  min-width: 320px;
  color: #f8fbff;
  font-family: Prompt, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}

.landing-page a {
  color: inherit;
  text-decoration: none;
}

.landing-container {
  width: min(1180px, 94%);
  margin: 0 auto;
}

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(122, 176, 255, 0.22);
  background: rgba(2, 8, 23, 0.78);
  backdrop-filter: blur(18px);
}

.landing-nav-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 900;
}

.landing-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: linear-gradient(135deg, #2ed4ff, #075cff 54%, #6d4dff);
  color: #00101f;
  font-size: 26px;
  font-weight: 900;
  box-shadow: 0 0 30px rgba(22, 131, 255, 0.34);
}

.landing-brand strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.landing-brand small {
  display: block;
  margin-top: 5px;
  color: #a8b7cf;
  font-size: 12px;
  font-weight: 500;
}

.landing-menu,
.landing-actions,
.landing-hero-actions,
.landing-proof {
  display: flex;
  align-items: center;
}

.landing-menu {
  gap: 24px;
  color: #d5e0ef;
  font-size: 15px;
  font-weight: 700;
}

.landing-menu a:first-child {
  color: #52b6ff;
  border-bottom: 2px solid #52b6ff;
  padding-bottom: 8px;
}

.landing-actions,
.landing-hero-actions {
  gap: 12px;
}

.landing-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  padding: 10px 16px;
  font-weight: 900;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.landing-btn-primary {
  border-color: transparent;
  background: linear-gradient(135deg, #0ea5ff, #075cff);
  box-shadow: 0 18px 38px rgba(7, 92, 255, 0.3);
}

.landing-btn:hover {
  transform: translateY(-2px);
}

.landing-hero {
  position: relative;
  overflow: hidden;
  padding: 54px 0 34px;
}

.landing-hero::after {
  content: "";
  position: absolute;
  inset: 120px 0 auto;
  height: 420px;
  background: radial-gradient(circle, rgba(22, 131, 255, 0.22), transparent 60%);
  pointer-events: none;
}

.landing-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 42px;
  align-items: center;
}

.landing-badge {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(34, 211, 238, 0.34);
  border-radius: 999px;
  background: rgba(4, 29, 56, 0.76);
  color: #c5efff;
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 800;
}

.landing-badge b,
.landing-hero h1 span {
  color: #22d3ee;
}

.landing-hero h1,
.landing-head h2,
.landing-login-section h2 {
  margin: 22px 0 18px;
  line-height: 1.06;
  letter-spacing: 0;
}

.landing-hero h1 {
  font-size: clamp(42px, 5.4vw, 74px);
}

.landing-lead {
  max-width: 650px;
  margin: 0 0 28px;
  color: #d4dfef;
  font-size: 19px;
}

.landing-hero-actions {
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.landing-proof {
  flex-wrap: wrap;
  gap: 18px;
  color: #c9d6e9;
  font-size: 14px;
}

.landing-proof span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.landing-proof i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(81, 224, 119, 0.18);
  color: #51e077;
  font-style: normal;
  font-size: 10px;
}

.landing-device-wrap {
  position: relative;
  min-height: 470px;
  display: grid;
  place-items: center;
}

.landing-orb {
  position: absolute;
  inset: 50px 20px 30px;
  border: 1px solid rgba(22, 131, 255, 0.42);
  border-radius: 50%;
  filter: drop-shadow(0 0 18px rgba(22, 131, 255, 0.42));
}

.landing-laptop {
  position: relative;
  width: min(650px, 100%);
  transform: perspective(1100px) rotateX(4deg) rotateY(-7deg);
  transform-origin: center;
}

.landing-screen {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  background: linear-gradient(135deg, #162238, #030814);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  padding: 14px;
}

.landing-dashboard {
  min-height: 360px;
  overflow: hidden;
  border: 1px solid rgba(122, 176, 255, 0.16);
  border-radius: 13px;
  background: #061124;
}

.landing-dash-top {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #091a34;
  padding: 0 18px;
}

.landing-dash-top div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
}

.landing-dash-top span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22d3ee, #075cff, #6d4dff);
}

.landing-dash-body {
  display: grid;
  grid-template-columns: 118px 1fr;
  min-height: 316px;
}

.landing-sidebar-preview {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: #071529;
  padding: 14px 10px;
}

.landing-sidebar-preview i {
  display: block;
  height: 28px;
  border-radius: 8px;
  margin-bottom: 7px;
  background: rgba(255, 255, 255, 0.06);
}

.landing-sidebar-preview i.active {
  background: linear-gradient(135deg, rgba(22, 131, 255, 0.72), rgba(34, 211, 238, 0.26));
}

.landing-dash-content {
  padding: 16px;
}

.landing-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.landing-metric-grid > div,
.landing-panel {
  border: 1px solid rgba(122, 176, 255, 0.16);
  border-radius: 12px;
  background: #0b2342;
  padding: 12px;
}

.landing-metric-grid > div:nth-child(2) {
  background: #0b2d2b;
}

.landing-metric-grid > div:nth-child(3) {
  background: #321922;
}

.landing-metric-grid > div:nth-child(4) {
  background: #32260b;
}

.landing-metric-grid span {
  display: block;
  color: #a8b7cf;
  font-size: 10px;
}

.landing-metric-grid b {
  display: block;
  margin-top: 4px;
  font-size: 16px;
}

.landing-dash-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.landing-panel {
  min-height: 178px;
  border-radius: 14px;
  background: #081a32;
}

.landing-bar-row {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  color: #dce8f8;
  font-size: 11px;
}

.landing-bar-row span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #102848;
  color: #a7d8ff;
  font-weight: 900;
}

.landing-bar-row div {
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #17365f;
}

.landing-bar-row i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #1683ff, #22d3ee);
}

.landing-donut {
  width: 148px;
  height: 148px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  margin: 10px auto 0;
  background: conic-gradient(#075cff 0 42%, #00c27a 42% 66%, #f6b83b 66% 82%, #ff715f 82% 100%);
  box-shadow: 0 0 24px rgba(22, 131, 255, 0.28);
}

.landing-donut::after {
  content: "รายได้รวม\A 124,750";
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #061124;
  color: #fff;
  white-space: pre;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

.landing-why-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid rgba(122, 176, 255, 0.22);
  border-radius: 16px;
  background: rgba(8, 28, 54, 0.72);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
}

.landing-why-card article {
  min-height: 132px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: center;
  border-right: 1px solid rgba(122, 176, 255, 0.14);
  padding: 20px;
}

.landing-why-card article:last-child {
  border-right: 0;
}

.landing-why-card div,
.landing-business-grid div {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: radial-gradient(circle at 30% 20%, rgba(34, 211, 238, 0.38), rgba(7, 92, 255, 0.2));
  font-size: 22px;
}

.landing-why-card b,
.landing-why-card span {
  display: block;
}

.landing-why-card b {
  font-size: 14px;
}

.landing-why-card span,
.landing-head p,
.landing-business-grid p,
.landing-pricing p,
.landing-login-section p {
  color: #a8b7cf;
}

.landing-why-card span {
  font-size: 12px;
  line-height: 1.55;
}

.landing-section {
  padding: 56px 0;
}

.landing-head {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.landing-head h2,
.landing-login-section h2 {
  font-size: clamp(30px, 4vw, 44px);
}

.landing-business-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.landing-business-grid article,
.landing-pricing article {
  border: 1px solid rgba(122, 176, 255, 0.22);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(13, 31, 60, 0.92), rgba(8, 21, 42, 0.96));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
}

.landing-business-grid article {
  min-height: 172px;
  padding: 22px 16px;
  text-align: center;
}

.landing-business-grid div {
  margin: 0 auto 14px;
}

.landing-business-grid h3,
.landing-pricing h3 {
  margin: 0 0 8px;
  letter-spacing: 0;
}

.landing-business-grid h3 {
  font-size: 17px;
}

.landing-business-grid p,
.landing-pricing p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}

.landing-toggle {
  width: max-content;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(122, 176, 255, 0.22);
  border-radius: 12px;
  background: rgba(8, 23, 45, 0.82);
  color: #dbe8fb;
  margin: 0 auto 22px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
}

.landing-toggle:hover,
.landing-toggle:focus-visible {
  border-color: rgba(82, 182, 255, 0.64);
  background: rgba(10, 34, 65, 0.96);
}

.landing-toggle span {
  white-space: nowrap;
}

.landing-toggle i {
  width: 52px;
  height: 28px;
  border-radius: 999px;
  background: #0b2446;
  padding: 3px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.landing-toggle i::after {
  content: "";
  width: 22px;
  height: 22px;
  display: block;
  margin-left: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #4ec3ff, #075cff);
  transition: margin-left 0.18s ease;
}

.landing-toggle[aria-checked="true"] i::after {
  margin-left: auto;
}

.landing-pricing {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.landing-pricing article {
  position: relative;
  padding: 24px 20px 20px;
}

.landing-pricing article.featured {
  border-color: #12c9d7;
  box-shadow: 0 0 0 1px rgba(18, 201, 215, 0.28), 0 22px 70px rgba(0, 187, 212, 0.14);
}

.landing-pricing article.private-cloud {
  border-color: rgba(246, 184, 59, 0.72);
  background: linear-gradient(180deg, rgba(55, 37, 10, 0.92), rgba(10, 19, 33, 0.98));
  box-shadow: 0 0 0 1px rgba(246, 184, 59, 0.18), 0 22px 70px rgba(246, 184, 59, 0.12);
}

.landing-pricing article.private-cloud .landing-btn {
  border-color: rgba(246, 184, 59, 0.52);
  background: linear-gradient(135deg, rgba(246, 184, 59, 0.72), rgba(183, 116, 21, 0.86));
  color: #fff6df;
}

.landing-pricing em {
  position: absolute;
  top: -12px;
  right: 12px;
  border-radius: 10px;
  background: #f6b83b;
  color: #1e1300;
  padding: 7px 12px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.landing-pricing h3 {
  font-size: 21px;
}

.landing-pricing strong {
  display: block;
  margin: 16px 0;
  font-size: 34px;
  font-weight: 900;
}

.landing-pricing small {
  color: #a8b7cf;
  font-size: 13px;
}

.landing-pricing ul {
  display: grid;
  gap: 9px;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  color: #e0e9f8;
  font-size: 14px;
}

.landing-pricing li {
  display: flex;
  gap: 8px;
}

.landing-pricing li::before {
  content: "✓";
  color: #51e077;
  font-weight: 900;
}

.landing-pricing .landing-btn {
  width: 100%;
}

.landing-login-section {
  padding: 66px 0;
  border-top: 1px solid rgba(122, 176, 255, 0.18);
  background: rgba(3, 14, 28, 0.6);
}

.landing-login-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 440px);
  gap: 32px;
  align-items: center;
}

.landing-auth-card {
  width: 100%;
}

.landing-footer {
  border-top: 1px solid rgba(122, 176, 255, 0.22);
  background: rgba(2, 8, 23, 0.72);
  padding: 28px 0;
  color: #a8b7cf;
}

.landing-footer .landing-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

@media (max-width: 1040px) {
  .landing-menu {
    display: none;
  }

  .landing-hero-grid,
  .landing-login-grid {
    grid-template-columns: 1fr;
  }

  .landing-pricing {
    grid-template-columns: repeat(2, 1fr);
  }

  .landing-business-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .landing-why-card {
    grid-template-columns: repeat(2, 1fr);
  }

  .landing-why-card article {
    border-right: 0;
    border-bottom: 1px solid rgba(122, 176, 255, 0.14);
  }
}

@media (max-width: 720px) {
  .landing-nav-inner {
    min-height: auto;
    align-items: stretch;
    flex-direction: column;
    padding: 12px 0;
  }

  .landing-actions {
    width: 100%;
  }

  .landing-actions .landing-btn {
    flex: 1;
  }

  .landing-hero {
    padding-top: 30px;
  }

  .landing-hero-grid,
  .landing-business-grid,
  .landing-why-card,
  .landing-pricing,
  .landing-metric-grid,
  .landing-dash-panels {
    grid-template-columns: 1fr;
  }

  .landing-hero h1 {
    font-size: 42px;
  }

  .landing-device-wrap {
    min-height: auto;
  }

  .landing-laptop {
    transform: none;
  }

  .landing-dash-body {
    grid-template-columns: 1fr;
  }

  .landing-sidebar-preview {
    display: none;
  }

  .landing-why-card article {
    grid-template-columns: 42px 1fr;
  }
}

#logoutBtn {
  white-space: nowrap;
}

.view-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.view-head h2 {
  margin: 0;
  font-size: 22px;
}

.view-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.card,
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(11, 33, 55, 0.86), rgba(7, 23, 39, 0.9));
  box-shadow: var(--shadow);
}

.card {
  min-height: 126px;
  padding: 18px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
}

.kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: rgba(18, 109, 255, 0.3);
  box-shadow: inset 0 0 26px rgba(255, 255, 255, 0.05);
}

.kpi-icon.green { background: rgba(19, 197, 104, 0.25); }
.kpi-icon.red { background: rgba(255, 77, 93, 0.26); }
.kpi-icon.purple { background: rgba(123, 76, 255, 0.3); }
.kpi-icon.gold { background: rgba(244, 182, 61, 0.26); }

.card small,
.muted {
  color: var(--muted);
}

.card strong {
  display: block;
  font-size: clamp(22px, 1.72vw, 29px);
  line-height: 1.06;
  margin: 4px 0;
  white-space: nowrap;
  word-break: normal;
}

.negative {
  color: #ff7986;
}

.positive {
  color: #64e99f;
}

.grid-3 {
  display: grid;
  grid-template-columns: minmax(240px, 0.76fr) minmax(420px, 1.2fr) minmax(280px, 0.82fr);
  gap: 12px;
}

.grid-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 12px;
}

.ops-control {
  display: grid;
  gap: 12px;
}

.ops-hero {
  min-height: 126px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(10, 37, 62, 0.96), rgba(5, 18, 31, 0.92));
}

.ops-hero h3 {
  margin: 10px 0 6px;
  font-size: 24px;
  line-height: 1.1;
}

.ops-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.ops-hero button {
  min-width: 230px;
}

.ops-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
}

.ops-stage {
  position: relative;
  min-height: 98px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border-right: 1px solid var(--line);
}

.ops-stage:last-child {
  border-right: 0;
}

.ops-stage::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 0;
  height: 3px;
  border-radius: 99px;
  background: rgba(244, 182, 61, 0.6);
}

.ops-stage.green::before { background: var(--green); }
.ops-stage.red::before { background: var(--red); }
.ops-stage.purple::before { background: var(--purple); }

.ops-step {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  color: #d9ebff;
  font-weight: 900;
}

.ops-stage b,
.ops-command b,
.ops-status-strip b {
  display: block;
}

.ops-stage small,
.ops-command span,
.ops-status-strip span {
  color: var(--muted);
  font-size: 12px;
}

.ops-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 12px;
}

.ops-command-grid {
  display: grid;
  gap: 10px;
}

.ops-command {
  width: 100%;
  min-height: 64px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 4px;
  text-align: left;
}

.ops-command:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.ops-status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.ops-status-strip div {
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(4, 16, 29, 0.52);
  padding: 10px;
}

.ops-status-strip b {
  color: #ffd781;
  margin-top: 3px;
}

.ops-status-strip b.ok {
  color: #72efa9;
}

.panel-head {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
}

.panel-head h3 {
  margin: 0;
  font-size: 16px;
}

.panel-body {
  padding: 16px;
}

.heavy-list {
  display: grid;
  gap: 9px;
}

.heavy-row,
.status-row,
.notice-row,
.summary-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid rgba(116, 159, 198, 0.11);
}

.rank {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  color: #bdd7ed;
}

.heavy-number {
  font-size: 19px;
  font-weight: 900;
}

.donut-wrap {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.donut {
  width: 178px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--blue) 0 43%, var(--green) 43% 68%, var(--gold) 68% 86%, var(--purple) 86% 95%, var(--red) 95% 100%);
  position: relative;
}

.donut::after {
  content: "";
  position: absolute;
  width: 55%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #071522;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.35);
}

.donut-center {
  position: relative;
  z-index: 1;
  text-align: center;
}

.donut-center b {
  display: block;
  font-size: 22px;
}

.legend {
  display: grid;
  gap: 9px;
}

.legend-row {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  align-items: center;
  gap: 8px;
  color: #c6d8e8;
  font-size: 13px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: var(--blue);
}

.dot.green { background: var(--green); }
.dot.gold { background: var(--gold); }
.dot.purple { background: var(--purple); }
.dot.red { background: var(--red); }

.table-wrap {
  overflow: auto;
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  font-size: 13px;
}

.table-wrap input,
.table-wrap select {
  min-width: 86px;
  min-height: 34px;
  padding: 7px 9px;
}

th,
td {
  padding: 12px 11px;
  border-bottom: 1px solid rgba(116, 159, 198, 0.13);
  text-align: left;
  vertical-align: middle;
}

th {
  color: #a9bdd0;
  font-weight: 700;
}

td.amount,
th.amount {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(18, 109, 255, 0.15);
  color: #86bdff;
  white-space: nowrap;
  font-size: 12px;
}

.badge.green { background: rgba(19, 197, 104, 0.15); color: #72efa9; }
.badge.gold { background: rgba(244, 182, 61, 0.15); color: #ffd781; }
.badge.red { background: rgba(255, 77, 93, 0.15); color: #ff9aa3; }
.badge.purple { background: rgba(123, 76, 255, 0.17); color: #bca9ff; }

.filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 170px 170px 150px;
  gap: 10px;
  margin-bottom: 12px;
}

.copy-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px;
  gap: 8px;
}

.copy-textarea {
  min-height: 190px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

.advanced-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.customer-discount-form {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 160px 190px;
  gap: 10px;
  align-items: end;
  margin-bottom: 10px;
}

.report-filter-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.chart {
  width: 100%;
  height: 240px;
}

.chart path.area {
  fill: url(#areaGradient);
}

.chart path.line {
  fill: none;
  stroke: var(--blue-2);
  stroke-width: 3;
}

.chart circle {
  fill: var(--blue-2);
}

.notice-list {
  display: grid;
  gap: 10px;
}

.notice-row {
  grid-template-columns: 32px 1fr;
  min-height: 62px;
  align-items: start;
  padding-bottom: 10px;
}

.notice-icon {
  width: 28px;
  height: 28px;
  border-radius: 99px;
  display: grid;
  place-items: center;
  background: rgba(255, 77, 93, 0.13);
  color: var(--red);
  font-weight: 900;
}

.form-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 14px;
}

.form-stack {
  display: grid;
  gap: 12px;
  align-content: start;
}

.upload-list {
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  min-height: 62px;
  padding: 12px;
  background: rgba(4, 16, 29, 0.48);
}

.upload-limit-note {
  margin-top: -5px;
}

.upload-summary {
  color: #d9e9f8;
  font-weight: 800;
  margin-bottom: 10px;
}

.upload-warning {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.upload-files {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.review-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.7fr) minmax(500px, 1.3fr);
  gap: 12px;
}

.image-frame {
  min-height: 390px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.32);
  display: grid;
  place-items: center;
  padding: 16px;
  overflow: hidden;
}

.image-frame img {
  max-width: 100%;
  max-height: 520px;
  border-radius: 6px;
  object-fit: contain;
}

.text-review {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.local-image-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(14, 52, 89, 0.34);
  color: var(--muted);
}

.local-image-link a {
  color: #8bc7ff;
  font-weight: 800;
}

.local-image-note {
  margin: 0 0 12px;
}

.text-review pre {
  max-height: 220px;
  overflow: auto;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(4, 16, 29, 0.54);
  color: #d9e9f8;
  white-space: pre-wrap;
  line-height: 1.55;
  font-family: inherit;
}

.warning-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  display: grid;
  place-items: center;
  z-index: 80;
  padding: 20px;
}

.modal {
  width: min(760px, 100%);
  max-height: 90vh;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #071522;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.46);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.modal-head h2 {
  margin: 0;
  font-size: 18px;
}

.modal-body {
  padding: 16px;
}

.bottom-nav {
  display: none;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3,
  .grid-main,
  .ops-split,
  .form-grid,
  .review-layout {
    grid-template-columns: 1fr;
  }

  .ops-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ops-stage:nth-child(2) {
    border-right: 0;
  }

  .bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 70px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    padding: 7px 10px 10px;
    border-top: 1px solid var(--line);
    background: rgba(3, 12, 22, 0.94);
    backdrop-filter: blur(14px);
    z-index: 30;
  }

  .bottom-nav button {
    display: grid;
    justify-items: center;
    align-content: center;
    min-height: 50px;
    font-size: 11px;
    padding: 5px;
    border-color: transparent;
    background: transparent;
  }

  .bottom-nav button.active {
    color: #83bbff;
  }

  .content {
    padding-bottom: 96px;
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
  }

  .profile {
    display: none;
  }

  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: 86px;
  }

  .view-head,
  .topbar {
    flex-direction: column;
  }

  .filters,
  .advanced-filters,
  .customer-discount-form,
  .ops-flow,
  .ops-status-strip,
  .donut-wrap {
    grid-template-columns: 1fr;
  }

  .ops-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .ops-hero button {
    width: 100%;
    min-width: 0;
  }

  .ops-stage {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .ops-stage:last-child {
    border-bottom: 0;
  }
}
