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

:root {
  --bg: #f3f4f7;
  --bg-soft: #f9fafb;
  --card: #ffffff;
  --line: #e4e7ee;
  --line-strong: #d7dbe5;
  --text: #181a1f;
  --muted: #6d7380;
  --muted-2: #8790a1;
  --sidebar: #111317;
  --sidebar-soft: #1a1d24;
  --white: #ffffff;
  --shadow-sm: 0 8px 20px rgba(16, 18, 24, 0.05);
  --shadow-md: 0 20px 44px rgba(16, 18, 24, 0.08);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

.hidden {
  display: none !important;
}

.backdrop-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 20% 10%, #ffffff 0%, #f7f8fb 44%, #f1f3f7 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: #fbfbfd;
  border-radius: 999px;
  padding: 6px 10px;
  color: #4e5562;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 800;
}

.btn {
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 0 14px;
  font: 700 0.9rem "Plus Jakarta Sans", sans-serif;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn:disabled,
input:disabled,
select:disabled {
  opacity: 0.56;
  cursor: not-allowed;
}

.btn-primary {
  background: #17191d;
  color: #ffffff;
  border-color: #17191d;
}

.btn-primary:hover {
  background: #2a2e36;
  border-color: #2a2e36;
}

.btn-dark {
  background: #2a2f37;
  color: #ffffff;
  border-color: #2a2f37;
}

.btn-dark:hover {
  background: #3a414d;
  border-color: #3a414d;
}

.btn-ghost {
  background: #ffffff;
  color: #1b1f27;
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  background: #f8f9fb;
}

.btn-lg {
  min-height: 50px;
}

input,
select,
.search {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d8dde7;
  border-radius: 10px;
  background: #ffffff;
  color: var(--text);
  padding: 0 12px;
  font: 600 0.9rem "Plus Jakarta Sans", sans-serif;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

input::placeholder,
.search::placeholder {
  color: #97a0b1;
  font-weight: 500;
}

input:focus,
select:focus,
.search:focus {
  outline: none;
  border-color: #8b94a7;
  box-shadow: 0 0 0 3px rgba(25, 28, 36, 0.1);
}

.field-label {
  color: #555d6a;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
}

.landing-shell {
  min-height: 100vh;
  padding: 26px 30px 40px;
  display: grid;
  gap: 22px;
  align-content: start;
}

.landing-topbar {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 6px 4px;
}

.landing-brand {
  display: grid;
  gap: 5px;
}

.landing-brand .logo-wordmark {
  font-size: clamp(1.38rem, 3.2vw, 1.9rem);
  letter-spacing: 0.09em;
}

.landing-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.landing-main {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.landing-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 16px;
  align-items: stretch;
}

.landing-hero-copy {
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(164deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 253, 0.95) 100%);
  box-shadow: 0 16px 36px rgba(16, 18, 24, 0.06);
  display: grid;
  gap: 12px;
}

.landing-hero-copy h1 {
  max-width: 740px;
  font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1.7rem, 3.3vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.landing-lead {
  color: #6e7584;
  max-width: 690px;
  font-size: 0.96rem;
  line-height: 1.68;
}

.landing-highlights {
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}

.landing-highlights li {
  font-size: 0.9rem;
  color: #4f5868;
  font-weight: 600;
  position: relative;
  padding-left: 18px;
}

.landing-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #1a1d23;
}

.landing-cta {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.landing-proof-strip {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.landing-proof-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f5f7fa;
  border: 1px solid #e5e9f0;
  color: #5a6372;
  font-size: 0.76rem;
  font-weight: 700;
}

.landing-hero-mock {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #ffffff;
  padding: 12px;
  box-shadow: 0 16px 36px rgba(16, 18, 24, 0.06);
}

.mock-shell {
  height: 100%;
  border: 1px solid #dce1e9;
  border-radius: 16px;
  background: linear-gradient(180deg, #fbfcff 0%, #f7f9fc 100%);
  padding: 14px;
  display: grid;
  gap: 12px;
}

.mock-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mock-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #0f1218;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
}

.mock-muted {
  color: #747d8d;
  font-size: 0.76rem;
  font-weight: 600;
}

.mock-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mock-kpis article {
  border: 1px solid #e0e5ed;
  border-radius: 11px;
  background: #ffffff;
  padding: 10px;
  display: grid;
  gap: 5px;
}

.mock-kpis span {
  color: #7b8392;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mock-kpis strong {
  font-size: 0.96rem;
  letter-spacing: -0.01em;
}

.mock-chart {
  border: 1px solid #e0e5ed;
  border-radius: 11px;
  background: #ffffff;
  min-height: 138px;
  padding: 10px 10px 8px;
  position: relative;
  overflow: hidden;
}

.mock-bars {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 6px;
}

.mock-bars span {
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, #2b2f38 0%, #666f80 100%);
  opacity: 0.86;
}

.mock-line {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 20%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0%, #161a22 24%, #161a22 78%, transparent 100%);
  transform: rotate(-8deg);
  transform-origin: center;
  opacity: 0.6;
}

.mock-table {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mock-table div {
  border: 1px solid #e0e5ed;
  border-radius: 10px;
  background: #ffffff;
  padding: 9px 10px;
  display: grid;
  gap: 4px;
}

.mock-table span {
  color: #7b8392;
  font-size: 0.71rem;
  font-weight: 700;
}

.mock-table strong {
  font-size: 0.84rem;
}

.landing-section {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #ffffff;
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 14px;
}

.landing-section-head {
  display: grid;
  gap: 8px;
}

.landing-section-head h2 {
  font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1.22rem, 2.4vw, 1.86rem);
  letter-spacing: -0.01em;
}

.landing-section-head > p:not(.eyebrow) {
  color: #6f7888;
  max-width: 760px;
  font-size: 0.9rem;
  line-height: 1.62;
}

.landing-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.landing-feature-card {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fafbfd 100%);
  box-shadow: 0 8px 18px rgba(16, 18, 24, 0.04);
  display: grid;
  gap: 7px;
}

.landing-feature-card h3 {
  font-size: 0.99rem;
  letter-spacing: -0.01em;
}

.landing-feature-card p {
  color: #6f7788;
  font-size: 0.86rem;
  line-height: 1.58;
}

.landing-flow {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #ffffff;
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 14px;
}

.landing-flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.landing-flow-grid article {
  border: 1px solid #e2e7ef;
  border-radius: 14px;
  background: #fafbfd;
  padding: 14px;
  display: grid;
  gap: 8px;
}

.landing-flow-grid article span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #10141b;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
}

.landing-flow-grid article h3 {
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.landing-flow-grid article p {
  color: #6c7483;
  font-size: 0.84rem;
  line-height: 1.56;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
}

.login-layout {
  width: min(860px, 100%);
  display: grid;
  gap: 18px;
  justify-items: center;
}

.login-brand {
  text-align: center;
  display: grid;
  gap: 8px;
}

.logo-wordmark {
  font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1.75rem, 4.3vw, 2.55rem);
  font-weight: 700;
  letter-spacing: 0.09em;
  color: #0f1115;
}

.brand-subtitle {
  color: #8a92a0;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.login-card {
  width: min(440px, 100%);
  padding: 30px 30px 26px;
  display: grid;
  gap: 14px;
  background: #ffffff;
  border: 1px solid #e3e7f0;
  border-radius: 18px;
  box-shadow: 0 10px 22px rgba(16, 18, 24, 0.06), 0 24px 56px rgba(16, 18, 24, 0.05);
}

.login-head {
  display: grid;
  gap: 4px;
}

.login-head h2 {
  font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.login-head span {
  color: #7a8190;
  font-size: 0.86rem;
}

.form-stack {
  display: grid;
  gap: 9px;
}

.auth-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border-radius: 12px;
  background: #f3f5f9;
  border: 1px solid #e3e7f0;
}

.auth-switch-btn {
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #5f6675;
  font-weight: 700;
  font-size: 0.84rem;
  padding: 10px 12px;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.auth-switch-btn.active {
  background: #ffffff;
  color: #12151c;
  box-shadow: 0 2px 8px rgba(10, 12, 16, 0.08);
}

.signup-fields {
  display: grid;
  gap: 9px;
  padding: 2px 0 4px;
}

.signup-inline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.login-feedback {
  min-height: 18px;
  color: #646d7d;
  font-size: 0.82rem;
  font-weight: 600;
}

.login-feedback.success {
  color: #4e6670;
}

.login-feedback.error {
  color: #7b4f57;
}

.login-hint {
  color: #a0a8b8;
  font-size: 0.74rem;
  letter-spacing: 0.01em;
}

.password-input-wrap {
  position: relative;
}

.password-input-wrap input {
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #6f7787;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.password-toggle:hover {
  background: #f2f4f8;
  color: #1f242e;
}

.password-toggle svg {
  width: 16px;
  height: 16px;
}

.login-submit {
  min-height: 52px;
  border-radius: 12px;
  margin-top: 2px;
  box-shadow: 0 6px 14px rgba(10, 12, 16, 0.14);
}

.login-submit:hover {
  box-shadow: 0 10px 20px rgba(10, 12, 16, 0.2);
}

.login-submit.is-loading {
  opacity: 0.94;
  cursor: wait;
  position: relative;
  padding-right: 38px;
}

.login-submit.is-loading::after {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #ffffff;
  position: absolute;
  right: 14px;
  top: calc(50% - 7px);
  animation: spin 0.8s linear infinite;
}

.login-submit.is-success {
  background: #2a3038;
  border-color: #2a3038;
}

.login-submit.is-error {
  background: #22262d;
  border-color: #22262d;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 272px 1fr;
  transition: grid-template-columns 0.24s ease;
}

.sidebar {
  background: linear-gradient(180deg, #111317 0%, #171a22 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: padding 0.24s ease;
}

.brand {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #f4f5f8;
  color: #141820;
  font: 700 0.72rem "Space Grotesk", "Plus Jakarta Sans", sans-serif;
  letter-spacing: 0.08em;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}

.brand-avatar,
.avatar-table,
.avatar-preview-circle {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: inherit;
  overflow: hidden;
  background: #f4f5f8;
  color: #141820;
  font-weight: 800;
}

.brand-avatar img,
.avatar-table img,
.avatar-preview-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-table {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid #d9dee8;
  font-size: 0.72rem;
}

.avatar-preview {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 1px solid #d8deea;
  background: #f7f9fc;
  display: grid;
  place-items: center;
}

.avatar-preview-circle {
  border-radius: 12px;
  font-size: 0.85rem;
}

.avatar-fallback {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-pill {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 2px 8px;
  color: #dce1ec;
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand h2 {
  font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
  font-size: 1.04rem;
  color: #f6f8fd;
  line-height: 1.2;
}

.user-info {
  color: #a4adbf;
  font-size: 0.76rem;
}

.menu {
  display: grid;
  gap: 5px;
}

.nav-item {
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #d5dbeb;
  text-align: left;
  padding: 0 10px;
  font: 700 0.85rem "Plus Jakarta Sans", sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.nav-icon {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  color: inherit;
  flex-shrink: 0;
}

.nav-icon svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.08);
}

.nav-item.active {
  background: #ffffff;
  color: #151920;
  border-color: #ffffff;
}

.sidebar-logout {
  margin-top: auto;
  background: rgba(255, 255, 255, 0.02);
  color: #aeb7ca;
  border-color: rgba(255, 255, 255, 0.11);
  justify-content: flex-start;
  gap: 10px;
  min-height: 38px;
  font-size: 0.78rem;
}

.sidebar-logout:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #eef2fa;
}

.app-shell.sidebar-collapsed {
  grid-template-columns: 86px 1fr;
}

.app-shell.sidebar-collapsed .sidebar {
  padding: 14px 10px;
}

.app-shell.sidebar-collapsed .brand-copy,
.app-shell.sidebar-collapsed .nav-label {
  display: none;
}

.app-shell.sidebar-collapsed .brand {
  justify-content: center;
  padding: 10px 8px;
}

.app-shell.sidebar-collapsed .nav-item,
.app-shell.sidebar-collapsed .sidebar-logout {
  justify-content: center;
  padding: 0;
  background: transparent;
  border-color: transparent;
}

.app-shell.sidebar-collapsed .menu {
  margin-top: 2px;
}

.workspace {
  padding: 16px 20px 24px;
  display: grid;
  grid-auto-rows: max-content;
  gap: 13px;
}

.topbar {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(16, 18, 24, 0.05);
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-right .btn {
  min-height: 35px;
  border-radius: 10px;
  font-size: 0.78rem;
  border-color: #d6dbe6;
  background: #fbfcfe;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-filters {
  display: grid;
  gap: 5px;
  padding: 7px 8px;
  border: 1px solid #e3e7ef;
  border-radius: 12px;
  background: #fcfdff;
}

.date-range-inputs {
  display: flex;
  align-items: end;
  gap: 5px;
}

.date-range-inputs label {
  display: grid;
  gap: 3px;
}

.date-range-inputs label span {
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #8a93a4;
  font-weight: 800;
}

.date-range-inputs input[type="date"] {
  min-height: 31px;
  border-radius: 9px;
  padding: 0 10px;
  font-size: 0.76rem;
}

.btn-compact {
  min-height: 31px;
  border-radius: 9px;
  padding: 0 11px;
  font-size: 0.74rem;
}

.quick-range-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.range-chip {
  min-height: 24px;
  border-radius: 999px;
  border: 1px solid #d8dde7;
  background: #ffffff;
  color: #5f6675;
  padding: 0 8px;
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.range-chip:hover {
  border-color: #c7cedc;
  color: #3a4150;
}

.range-chip.active {
  background: #1d2026;
  border-color: #1d2026;
  color: #ffffff;
}

.sidebar-toggle-btn {
  width: 31px;
  min-height: 31px;
  border-radius: 9px;
  padding: 0;
  display: grid;
  place-items: center;
  border-color: #d6dbe6;
  background: #fbfcfe;
}

.toggle-icon {
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  color: #2f3746;
}

.toggle-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.sidebar-toggle-btn.is-collapsed .toggle-icon svg {
  transform: rotate(180deg);
}

.page-kicker {
  color: var(--muted-2);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 800;
}

#pageTitle {
  margin-top: 4px;
  font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1.16rem, 1.8vw, 1.6rem);
  letter-spacing: -0.02em;
}

.feedback {
  min-height: 22px;
  border-radius: 9px;
  padding: 7px 10px;
  color: #565e6e;
  font-size: 0.86rem;
  font-weight: 700;
}

.section-stack {
  display: grid;
  gap: 12px;
  animation: fadeIn 0.26s ease;
}

.section-banner {
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #ffffff 0%, #f7f8fb 100%);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.section-banner h3 {
  margin-top: 6px;
  font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.section-banner span {
  display: inline-block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.9rem;
}

.panel-grid {
  display: grid;
  gap: 12px;
}

.panel-grid-2 {
  grid-template-columns: 1.55fr 1fr;
}

.panel-card {
  border: 1px solid #e3e7ef;
  border-radius: 15px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(16, 18, 24, 0.04);
  padding: 15px 14px;
}

.card-head {
  display: grid;
  gap: 3px;
  margin-bottom: 12px;
}

.card-head h3 {
  font-size: 1.04rem;
  letter-spacing: -0.01em;
}

.muted {
  color: var(--muted);
  font-size: 0.84rem;
}

.with-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.products-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: 10px;
}

.mini-metric {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  padding: 12px;
  display: grid;
  gap: 4px;
}

.mini-label {
  color: var(--muted-2);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
}

.mini-metric strong {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
}

.metric {
  border: 1px solid #e2e6ef;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 18px rgba(16, 18, 24, 0.04);
  padding: 12px 14px;
  display: grid;
  gap: 4px;
}

.metric-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.metric .label {
  color: #8d95a5;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.metric .value {
  font-size: 1.58rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1a1d24;
}

.metric-note {
  color: #8d95a5;
  font-size: 0.72rem;
  line-height: 1.4;
  min-height: 18px;
}

.metric-info {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid #d4dbe7;
  color: #657085;
  background: #f8fafe;
  display: inline-grid;
  place-items: center;
  font-size: 0.67rem;
  font-weight: 700;
  cursor: help;
}

.metric-info:hover {
  border-color: #bec8da;
  color: #3d4657;
}

.form-grid {
  display: grid;
  gap: 10px;
}

.cols-2 {
  grid-template-columns: repeat(2, minmax(120px, 1fr));
}

.cols-3 {
  grid-template-columns: repeat(3, minmax(120px, 1fr));
}

.cols-4 {
  grid-template-columns: repeat(4, minmax(120px, 1fr));
}

.form-grid label {
  display: grid;
  gap: 6px;
  color: #555d6a;
  font-size: 0.83rem;
  font-weight: 700;
}

.form-grid .span-2 {
  grid-column: span 2;
}

.form-grid h4 {
  grid-column: 1 / -1;
  font-size: 0.94rem;
  color: #1f232b;
}

.slim {
  align-items: end;
}

.row-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.permission-group {
  border: 1px solid #dbe0e9;
  border-radius: 12px;
  padding: 10px 12px 12px;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 8px 12px;
}

.permission-group legend {
  padding: 0 6px;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #687183;
  font-weight: 700;
}

.permission-group label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: #2d3340;
  font-weight: 600;
}

.permission-group input[type="checkbox"] {
  width: 14px;
  height: 14px;
}

.permission-tools {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.avatar-editor {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: -4px;
}

.avatar-editor-meta {
  display: grid;
  gap: 6px;
}

.btn-sm {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 0.76rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #d4d8e1;
  padding: 5px 9px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
  color: #39404e;
  background: #f7f8fb;
}

.badge.mode-edit {
  background: #16181c;
  border-color: #16181c;
  color: #ffffff;
}

.badge.income,
.badge.entry {
  background: #f1f3f7;
}

.badge.expense,
.badge.exit {
  background: #e9edf3;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 36px;
}

.cost-preview {
  min-height: 86px;
}

.cost-preview .table-wrap {
  border-radius: 10px;
}

.cost-preview table th,
.cost-preview table td {
  padding: 9px 8px;
  font-size: 0.8rem;
}

.tag {
  border: 1px solid #d8dce5;
  border-radius: 999px;
  background: #f8f9fc;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #232831;
  font-weight: 700;
}

.helper-block {
  margin-top: 14px;
  border: 1px dashed #cfd5e2;
  border-radius: 12px;
  background: #fafbfe;
  padding: 12px;
  display: grid;
  gap: 5px;
}

.helper-block h4 {
  font-size: 0.88rem;
}

.helper-block p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.cost-summary {
  margin-top: 10px;
}

.table-toolbar {
  margin-bottom: 8px;
}

.toolbar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.search {
  max-width: 320px;
  background: #fbfbfd;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

th,
td {
  border-bottom: 1px solid #eceff5;
  padding: 11px 10px;
  text-align: left;
  font-size: 0.86rem;
}

th {
  background: #fbfcfd;
  color: #5f6675;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 800;
}

tbody tr:hover {
  background: #f8f9fc;
}

tbody tr.is-selected {
  background: #eef2f8;
}

th input[type="checkbox"],
td input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #1f232b;
  cursor: pointer;
}

.table-actions {
  display: flex;
  gap: 6px;
}

.btn-inline {
  min-height: 30px;
  border-radius: 8px;
  padding: 0 9px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-inline.edit {
  background: #f4f6fa;
  border-color: #d6dbe6;
  color: #252a34;
}

.btn-inline.delete {
  background: #1f232b;
  border-color: #1f232b;
  color: #ffffff;
}

.btn.is-loading {
  opacity: 0.75;
  pointer-events: none;
}

.chart-card canvas {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #e8ebf2;
  background: #fdfdff;
  min-height: 290px;
  cursor: crosshair;
}

.chart-wrap {
  position: relative;
}

.chart-tooltip {
  position: absolute;
  min-width: 170px;
  max-width: 240px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid #d9dfe9;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 12px 28px rgba(16, 18, 24, 0.12);
  color: #273042;
  pointer-events: none;
  z-index: 3;
  font-size: 0.74rem;
}

.chart-tooltip strong {
  display: block;
  margin-bottom: 5px;
  font-size: 0.78rem;
}

.chart-tooltip-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  line-height: 1.5;
}

.chart-legend {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: #61697a;
  font-weight: 600;
}

.chart-legend i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  display: inline-block;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1000;
  min-width: 260px;
  max-width: 420px;
  background: #11151c;
  color: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 30px rgba(15, 18, 26, 0.2);
  padding: 10px 14px;
  font-size: 0.85rem;
  line-height: 1.4;
}

.toast.error {
  background: #2b1f23;
}

.empty-state {
  border: 1px dashed #d7dce6;
  border-radius: 12px;
  background: linear-gradient(180deg, #fcfdff, #fafbfe);
  padding: 18px;
  color: #8a92a1;
  font-size: 0.84rem;
}

.rank-list {
  display: grid;
  gap: 8px;
}

.rank-item {
  border: 1px solid #e5e9f1;
  border-radius: 11px;
  background: #ffffff;
  padding: 10px;
  display: grid;
  gap: 6px;
}

.rank-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}

.rank-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: #242a35;
}

.rank-value {
  font-size: 0.78rem;
  color: #636b7b;
  font-weight: 700;
}

.rank-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  font-size: 0.72rem;
  color: #8b93a3;
}

.rank-meta span {
  display: inline-grid;
  gap: 1px;
}

.rank-meta b {
  color: #444d5f;
  font-weight: 700;
  font-size: 0.71rem;
}

.rank-track {
  height: 7px;
  border-radius: 999px;
  background: #edf1f7;
  overflow: hidden;
}

.rank-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1d2027, #6f7685);
}

.mobile-only {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

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

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

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

  .panel-grid-2 {
    grid-template-columns: 1fr;
  }

  .cols-4,
  .cols-3,
  .cols-2 {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}

@media (max-width: 960px) {
  .landing-shell {
    padding: 18px 14px 22px;
    gap: 18px;
  }

  .landing-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .landing-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .landing-hero-copy,
  .landing-section,
  .landing-flow {
    padding: 18px 14px;
  }

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

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

  .mock-kpis,
  .mock-table {
    grid-template-columns: 1fr;
  }

  .landing-proof-strip {
    gap: 6px;
  }

  .login-layout {
    width: min(520px, 100%);
    gap: 14px;
  }

  .logo-wordmark {
    letter-spacing: 0.12em;
  }

  .login-card {
    width: 100%;
    padding: 24px;
  }

  .signup-inline-grid {
    grid-template-columns: 1fr;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-shell.sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 260px;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    z-index: 50;
  }

  .app-shell.sidebar-collapsed .brand-copy {
    display: grid;
  }

  .app-shell.sidebar-collapsed .nav-label {
    display: inline;
  }

  .app-shell.sidebar-collapsed .brand {
    justify-content: flex-start;
  }

  .app-shell.sidebar-collapsed .nav-item,
  .app-shell.sidebar-collapsed .sidebar-logout {
    justify-content: flex-start;
    padding: 0 10px;
  }

  .app-shell.menu-open .sidebar {
    transform: translateX(0);
  }

  .mobile-only {
    display: inline-flex;
  }

  .workspace {
    padding: 12px;
  }

  .topbar {
    padding: 12px;
    align-items: flex-start;
  }

  .topbar-right {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-filters {
    width: 100%;
  }

  .date-range-inputs {
    width: 100%;
    flex-wrap: wrap;
  }

  .date-range-inputs label {
    flex: 1 1 120px;
  }

  .date-range-inputs .btn-compact {
    width: 100%;
    margin-top: 2px;
  }

  .products-overview,
  .kpi-grid,
  .cols-4,
  .cols-3,
  .cols-2 {
    grid-template-columns: 1fr;
  }

  .rank-meta {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .with-tools {
    flex-direction: column;
    align-items: flex-start;
  }

  .search {
    max-width: 100%;
  }

  .section-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

