:root {
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --border: #E2E8F0;
  --text: #0F172A;
  --muted: #475569;
  --primary: #10B981;
  --primary-dark: #059669;
  --primary-soft: #ECFDF5;
  --primary-border: #A7F3D0;
  --shadow: 0 20px 48px rgba(15, 23, 42, 0.09);
  --shadow-sm: 0 10px 28px rgba(15, 23, 42, 0.05);
  --radius: 18px;
  --font: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid rgba(16, 185, 129, 0.35);
  outline-offset: 2px;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 250, 252, 0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand-mark {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: -0.02em;
  box-shadow: 0 10px 22px rgba(5, 150, 105, 0.22);
}

.brand-text {
  min-width: 0;
}

.brand-text strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-text small {
  display: none;
  color: var(--muted);
  font-size: 0.74rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.94rem;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

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

.btn-primary {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.24);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--primary-border);
  color: var(--primary-dark);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--muted);
}

.btn-ghost:hover {
  background: var(--bg);
  color: var(--text);
}

.btn-sm {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.85rem;
}

.btn-xs {
  min-height: 32px;
  padding: 0 10px;
  font-size: 0.78rem;
  border-radius: 9px;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid var(--primary-border);
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.eyebrow-light {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
}

.hero {
  padding: 52px 0 36px;
}

.hero-grid {
  display: grid;
  gap: 44px;
  align-items: center;
}

.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(2.25rem, 8.5vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.hero h1 span {
  color: var(--primary-dark);
}

.hero-lead {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

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

.trust-row span::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

.hero-visual {
  position: relative;
  padding-bottom: 18px;
}

.mock-card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.mock-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.mock-tag {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mock-title {
  margin: 14px 0 2px;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.mock-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.mock-check {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: #FFFFFF;
  font-weight: 800;
}

.mock-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.88rem;
  color: var(--muted);
}

.mock-line strong {
  color: var(--text);
}

.mock-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding: 16px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.88rem;
}

.mock-total strong {
  font-size: 1.15rem;
}

.mock-float {
  position: absolute;
  right: 12px;
  bottom: 0;
  display: grid;
  gap: 2px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.mock-float strong {
  font-size: 0.85rem;
}

.mock-float span {
  color: var(--muted);
  font-size: 0.74rem;
}

.section {
  padding: 56px 0;
}

.section-tint {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #FFFFFF, var(--bg));
}

.section-head {
  max-width: 680px;
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 14px 0 10px;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.grid-2 {
  display: grid;
  gap: 18px;
}

.feature-card,
.step,
.stat-card,
.panel-card,
.welcome-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.feature-card {
  padding: 26px;
}

.feature-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.feature-card h3 {
  margin: 18px 0 8px;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.feature-card ul {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.feature-card li + li {
  margin-top: 8px;
}

.feature-card li::marker {
  color: var(--primary);
}

.steps {
  display: grid;
  gap: 16px;
}

.step {
  padding: 24px;
}

.step-number {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--primary);
  color: #FFFFFF;
  font-weight: 800;
}

.step h3 {
  margin: 16px 0 6px;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.cta {
  margin: 56px 0 72px;
  padding: 44px 24px;
  border-radius: 26px;
  background: linear-gradient(135deg, #047857, var(--primary));
  color: #FFFFFF;
  text-align: center;
  box-shadow: 0 24px 50px rgba(5, 150, 105, 0.24);
}

.cta h2 {
  margin: 14px 0 8px;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.cta p {
  max-width: 560px;
  margin: 0 auto 24px;
  color: rgba(255, 255, 255, 0.88);
}

.footer {
  padding: 26px 0 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-layout {
  min-height: 100vh;
  display: grid;
}

.auth-aside {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 30px 24px;
  background: linear-gradient(145deg, #047857, var(--primary));
  color: #FFFFFF;
}

.auth-aside .brand-mark {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.auth-aside .brand-text small {
  color: rgba(255, 255, 255, 0.76);
}

.auth-message h1 {
  margin: 16px 0 10px;
  font-size: clamp(2rem, 8vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.auth-message p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
}

.auth-points {
  display: grid;
  gap: 10px;
}

.auth-points span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  font-weight: 600;
}

.auth-points span::before {
  content: '✓';
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.72rem;
}

.auth-card-wrap {
  display: grid;
  place-items: center;
  padding: 34px 20px 48px;
}

.auth-card {
  width: min(100%, 430px);
  display: grid;
  gap: 18px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-card-head h2 {
  margin: 0 0 4px;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}

.auth-card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.85rem;
  font-weight: 700;
}

.field input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input::placeholder {
  color: #94A3B8;
}

.field input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.13);
}

.alert {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
}

.alert-error {
  border: 1px solid #FECACA;
  background: #FEF2F2;
  color: #B91C1C;
}

.auth-back {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  text-align: center;
}

.auth-back:hover {
  color: var(--primary-dark);
}

.app-page {
  min-height: 100vh;
}

.app-shell {
  min-height: 100vh;
  padding-bottom: 88px;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.app-header-inner {
  width: min(1280px, calc(100% - 24px));
  min-height: 68px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-compact .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--primary-border);
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.74rem;
  font-weight: 800;
}

.header-user {
  display: none;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.app-body {
  width: min(1280px, calc(100% - 24px));
  margin-inline: auto;
  display: grid;
  gap: 20px;
  padding: 22px 0 32px;
}

.sidebar {
  display: none;
}

.nav-label {
  margin: 0 0 10px 14px;
  color: #94A3B8;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  text-align: left;
  transition: background 160ms ease, color 160ms ease;
}

.nav-item:hover,
.nav-item.active {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.nav-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}

.nav-item.active .nav-dot {
  opacity: 1;
}

.nav-item[data-soon='true'] {
  opacity: 0.62;
}

.content {
  min-width: 0;
  display: grid;
  gap: 18px;
  align-content: start;
}

.welcome-card {
  padding: 26px;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.panel-head h1,
.panel-head h2 {
  margin: 10px 0 4px;
  font-size: clamp(1.4rem, 4vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.status-pill span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.16);
}

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

.stat-card {
  display: grid;
  gap: 4px;
  padding: 18px;
  box-shadow: none;
}

.stat-card > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.stat-value {
  font-size: 1.8rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.stat-text {
  font-size: 1.35rem;
  color: var(--primary-dark);
}

.seller-note {
  padding: 18px;
  border: 1px solid var(--primary-border);
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.seller-note p {
  margin: 4px 0 0;
  color: #047857;
  font-size: 0.9rem;
}

.panel-card {
  padding: 24px;
}

.panel-card .panel-head {
  margin-bottom: 18px;
}

.muted {
  color: var(--muted);
}

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

.form-actions {
  display: grid;
  gap: 12px;
}

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

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 0.88rem;
}

th {
  background: var(--bg);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.cell-sub {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
}

.status-active {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.status-inactive {
  background: #F1F5F9;
  color: var(--muted);
}

.empty {
  color: var(--muted);
  text-align: center;
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  display: flex;
  justify-content: space-around;
  gap: 4px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.bottom-nav .nav-item {
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: 56px;
  padding: 6px 4px;
  font-size: 0.72rem;
  text-align: center;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  z-index: 40;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--text);
  color: #FFFFFF;
  box-shadow: var(--shadow);
  font-size: 0.88rem;
  text-align: center;
  transform: translateX(-50%);
}

.toast-error {
  background: #B91C1C;
}

@media (min-width: 640px) {
  .container {
    width: min(1120px, calc(100% - 48px));
  }

  .brand-text small {
    display: block;
  }

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

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

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

  .form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
  }

  .form-actions {
    grid-column: 1 / -1;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .form-actions .alert {
    margin: 0;
  }
}

@media (min-width: 900px) {
  .hero {
    padding: 88px 0 56px;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
  }

  .section {
    padding: 72px 0;
  }

  .auth-layout {
    grid-template-columns: minmax(320px, 42%) 1fr;
  }

  .auth-aside {
    padding: 48px;
  }

  .auth-card-wrap {
    padding: 48px;
  }

  .app-shell {
    padding-bottom: 0;
  }

  .app-body {
    grid-template-columns: 230px minmax(0, 1fr);
    padding: 28px 0 48px;
  }

  .sidebar {
    position: sticky;
    top: 92px;
    align-self: start;
    display: block;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
  }

  .bottom-nav {
    display: none;
  }

  .header-user {
    display: inline;
  }

  .toast {
    bottom: 28px;
  }
}

@media (min-width: 1100px) {
  .app-body {
    grid-template-columns: 250px minmax(0, 1fr);
  }
}
