:root {
  --indigo-500: #6366f1;
  --indigo-600: #4f46e5;
  --indigo-700: #4338ca;
  --bg-soft: #f4f6fb;
  --bg-white: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --line: #dbe3ef;
  --success: #16a34a;
  --danger: #ef4444;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

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

a {
  color: inherit;
}

/* Landing page publik */
.landing-page {
  min-height: 100vh;
  background: #f8f9fd;
}
.landing-nav {
  height: 76px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid #e8ecf4;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
}
.landing-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 25px;
  font-weight: 800;
}
.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.landing-nav-links a {
  color: #475569;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}
.landing-nav-links a:hover {
  color: var(--indigo-600);
}
.landing-login-btn {
  padding: 10px 17px;
  border: 1px solid #d8def0;
  border-radius: 10px;
  background: white;
}
.landing-hero {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 610px;
  padding: 92px 24px 70px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 70px;
}
.eyebrow {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: #e8ebfd;
  color: var(--indigo-700);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero-copy h1 {
  max-width: 680px;
  margin: 20px 0;
  font-size: clamp(42px, 5.2vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}
.hero-copy > p:not(.hero-caption) {
  max-width: 630px;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.75;
}
.hero-actions {
  margin-top: 30px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.landing-primary-btn,
.landing-secondary-btn {
  min-height: 46px;
  padding: 0 20px;
  border-radius: 10px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 700 14px inherit;
  text-decoration: none;
  cursor: pointer;
}
.landing-primary-btn {
  background: linear-gradient(90deg, var(--indigo-600), var(--indigo-500));
  color: white;
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.2);
}
.landing-primary-btn:hover {
  background: var(--indigo-700);
  transform: translateY(-1px);
}
.landing-secondary-btn {
  background: white;
  color: var(--indigo-700);
  border: 1px solid #d8def0;
}
.landing-secondary-btn:hover {
  background: #eef2ff;
}
.hero-caption {
  margin-top: 17px;
  color: #94a3b8;
  font-size: 12px;
}
.hero-visual {
  min-height: 410px;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 40px;
  background: radial-gradient(circle at 50% 50%, #dfe3ff, transparent 66%);
}
.document-preview {
  width: min(330px, 85%);
  min-height: 390px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  background: white;
  box-shadow: 0 30px 70px rgba(49, 46, 129, 0.18);
  transform: rotate(2deg);
}
.document-topline {
  display: flex;
  justify-content: space-between;
  color: var(--indigo-600);
  font-weight: 800;
}
.preview-status {
  font-size: 10px;
  padding: 5px 8px;
  border-radius: 6px;
  background: #eef2ff;
}
.preview-line {
  height: 9px;
  width: 75%;
  margin-top: 25px;
  border-radius: 10px;
  background: #e8ecf4;
}
.preview-line.wide {
  width: 100%;
  margin-top: 54px;
}
.preview-line.short {
  width: 52%;
}
.preview-divider {
  height: 1px;
  margin: 58px 0 25px;
  background: #e8ecf4;
}
.preview-result {
  display: flex;
  gap: 13px;
  align-items: center;
}
.preview-result small {
  display: block;
  margin-top: 5px;
  color: #94a3b8;
  font-size: 10px;
}
.preview-check {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
  font-weight: 800;
}
.floating-chip {
  position: absolute;
  padding: 11px 15px;
  border-radius: 10px;
  background: white;
  color: #475569;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.13);
  font-size: 12px;
  font-weight: 800;
}
.chip-ai {
  top: 65px;
  right: 0;
}
.chip-secure {
  bottom: 66px;
  left: 0;
}
.landing-benefits {
  max-width: 1180px;
  margin: 0 auto 90px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.landing-benefits article {
  padding: 25px;
  background: white;
  border: 1px solid #e8ecf4;
  border-radius: 14px;
}
.landing-benefits article > span {
  color: var(--indigo-500);
  font-size: 12px;
  font-weight: 800;
}
.landing-benefits h2 {
  margin: 14px 0 8px;
  font-size: 18px;
}
.landing-benefits p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.65;
}
.public-check-section {
  padding: 90px 24px 110px;
  background: #f1f3f9;
  border-top: 1px solid #e2e7f0;
}
.section-heading {
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
}
.section-heading h2 {
  margin: 16px 0 10px;
  font-size: 38px;
  letter-spacing: -0.035em;
}
.section-heading p {
  color: var(--text-muted);
  line-height: 1.6;
}
.public-upload-card,
.public-processing,
.public-result {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  border: 1px solid #e1e6ef;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}
.public-upload-card {
  padding: 24px;
}
.public-dropzone {
  padding: 54px 20px;
  border: 2px dashed #cbd2e6;
  border-radius: 14px;
  text-align: center;
  background: #fbfbfe;
  color: var(--indigo-600);
  cursor: pointer;
  transition: 0.2s;
}
.public-dropzone:hover,
.public-dropzone.dragging {
  border-color: var(--indigo-500);
  background: #f2f3ff;
}
.public-dropzone h3 {
  margin: 13px 0 6px;
  color: var(--text-main);
}
.public-dropzone p {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 13px;
}
.public-file-row {
  min-height: 90px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #e1e6ef;
  border-radius: 12px;
}
.public-file-icon,
.detail-file-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--indigo-600), #818cf8);
  color: white;
  font-size: 12px;
  font-weight: 800;
}
.public-file-info {
  min-width: 0;
  display: grid;
  gap: 5px;
  flex: 1;
}
.public-file-info strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.public-file-info span {
  color: var(--text-muted);
  font-size: 12px;
}
.public-remove-btn {
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 26px;
  cursor: pointer;
}
.public-upload-error {
  padding: 12px 14px;
  color: #b91c1c;
  background: #fef2f2;
  border-radius: 9px;
  font-size: 13px;
}
.public-analyze-btn {
  width: 100%;
  margin-top: 16px;
}
.public-analyze-btn:disabled {
  background: #cbd1df;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}
.public-processing {
  padding: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.public-processing p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}
.public-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e4e7fb;
  border-top-color: var(--indigo-600);
  border-radius: 50%;
  animation: landingSpin 0.8s linear infinite;
}
.public-result {
  overflow: hidden;
}
.public-result-header {
  padding: 26px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, #eef2ff, #f8fafc);
  border-bottom: 1px solid var(--line);
}
.detail-file-box {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.public-result-header h2 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 21px;
}
.public-result-header p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 12px;
}
.detail-badge {
  flex: 0 0 auto;
  padding: 1px 3px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}
.detail-badge.success {
  color: #166534;
  background: #dcfce7;
}
.detail-badge.danger {
  color: #b91c1c;
  background: #fee2e2;
}
.detail-badge.neutral {
  color: #334155;
  background: #e2e8f0;
}
.public-result-body {
  padding: 28px 30px;
}
.public-result-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.public-result-stats > div,
.public-metadata-grid > div {
  padding: 15px;
  border: 1px solid #e5e9f1;
  border-radius: 10px;
  background: #f8fafc;
}
.public-result-stats span,
.public-metadata-grid span {
  display: block;
  margin-bottom: 7px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.public-result-stats strong {
  font-size: 16px;
}
.public-result-summary {
  margin: 20px 0 25px;
  padding: 17px 19px;
  border: 1px solid #dfe4ee;
  border-radius: 10px;
  color: #334155;
  line-height: 1.65;
  font-size: 13px;
}
.public-result-body > h3 {
  font-size: 16px;
}
.public-metadata-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.public-metadata-grid strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.public-disclaimer {
  margin-top: 20px;
  padding: 13px 15px;
  border-radius: 9px;
  background: #fffbeb;
  color: #92400e;
  font-size: 11px;
  line-height: 1.55;
}
.public-result-actions {
  margin-top: 22px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.landing-footer {
  min-height: 86px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #111827;
  color: #cbd5e1;
  font-size: 13px;
}
.landing-footer a {
  color: #c7d2fe;
  text-decoration: none;
  font-weight: 700;
}
[hidden] {
  display: none !important;
}
@keyframes landingSpin {
  to {
    transform: rotate(360deg);
  }
}

.splash-page {
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(
    165deg,
    var(--indigo-600) 0%,
    var(--indigo-500) 46%,
    var(--indigo-700) 100%
  );
  display: grid;
  place-items: center;
}

.splash-screen {
  text-align: center;
  color: #e8edff;
  padding: 24px;
}

.splash-logo {
  width: 90px;
  height: 90px;
  margin: 0 auto 16px;
  border-radius: 20px;
  background: #ffffff;
  color: var(--indigo-600);
  display: grid;
  place-items: center;
  font-size: 44px;
  font-weight: 800;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.24);
  animation: logoPulse 1.8s ease-in-out infinite;
}

.splash-screen h1 {
  margin: 0;
  font-size: 44px;
}

.splash-screen p {
  margin: 6px 0 22px;
  color: #c7d2fe;
  font-size: 17px;
}

.splash-loader {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.splash-loader span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #e0e7ff;
  opacity: 0.4;
  animation: dotBounce 1s ease-in-out infinite;
}

.splash-loader span:nth-child(2) {
  animation-delay: 0.18s;
}

.splash-loader span:nth-child(3) {
  animation-delay: 0.36s;
}

.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 80% -10%,
      rgba(99, 102, 241, 0.2),
      transparent 40%
    ),
    radial-gradient(
      circle at 20% 120%,
      rgba(67, 56, 202, 0.18),
      transparent 45%
    ),
    var(--bg-soft);
}

.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 44% 56%;
}

.brand-panel {
  background: linear-gradient(
    165deg,
    var(--indigo-600) 0%,
    var(--indigo-500) 46%,
    var(--indigo-700) 100%
  );
  display: grid;
  place-items: center;
  color: #eef2ff;
  padding: 36px;
}

.brand-content {
  text-align: center;
}

.brand-home-link {
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: 20px;
}

.brand-home-link .brand-logo {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand-home-link:hover .brand-logo,
.brand-home-link:focus-visible .brand-logo {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
}

.brand-home-link:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.65);
  outline-offset: 8px;
}

.brand-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 38px;
  font-weight: 800;
  color: var(--indigo-600);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
  overflow: hidden;
}

.brand-logo-transparent {
  background: transparent;
  box-shadow: none;
}

.brand-logo img,
.mini-logo img {
  width: 135%;
  height: 135%;
  max-width: none;
  display: block;
  object-fit: cover;
}

.brand-content h1 {
  margin: 0;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-content p {
  margin: 8px 0 0;
  color: #c7d2fe;
  font-size: 18px;
}

.auth-panel {
  display: grid;
  place-items: center;
  padding: 28px;
}

.auth-card {
  width: min(560px, 100%);
}

.back-home-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.back-home-link:hover {
  color: var(--indigo-600);
  transform: translateX(-2px);
}

.back-home-link:focus-visible {
  outline: 3px solid rgba(99, 102, 241, 0.2);
  outline-offset: 5px;
  border-radius: 4px;
}

.signup-card {
  width: min(640px, 100%);
}

.auth-card h2 {
  margin: 0 0 20px;
  font-size: 42px;
  letter-spacing: -0.02em;
}

.auth-note {
  margin: -8px 0 18px;
  color: var(--text-muted);
  line-height: 1.5;
}

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

.input-group {
  position: relative;
  display: block;
}

.input-group input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f8fafc;
  height: 54px;
  padding: 0 16px 0 46px;
  font-size: 16px;
  color: var(--text-main);
  outline: none;
  transition: 0.22s ease;
}

.input-group input::placeholder {
  color: #94a3b8;
}

.input-group input:focus {
  border-color: var(--indigo-500);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.16);
  background: #ffffff;
}

.input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  width: 18px;
  height: 18px;
}

.input-icon svg {
  width: 100%;
  height: 100%;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-row.end {
  justify-content: flex-end;
}

.text-link {
  color: var(--indigo-600);
  text-decoration: none;
  font-weight: 600;
}

.text-link:hover {
  color: var(--indigo-700);
}

.link-button {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.primary-btn {
  border: 0;
  border-radius: var(--radius-sm);
  height: 52px;
  width: 100%;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(
    90deg,
    var(--indigo-600) 0%,
    var(--indigo-500) 100%
  );
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.25);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(79, 70, 229, 0.35);
}

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

.primary-btn.small {
  width: auto;
  height: 42px;
  padding: 0 18px;
  font-size: 14px;
  border-radius: 10px;
}

.secondary-btn {
  border: 1px solid #d8def0;
  border-radius: var(--radius-sm);
  height: 44px;
  padding: 0 16px;
  background: #ffffff;
  color: var(--indigo-600);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.secondary-btn:hover {
  background: #eef2ff;
  border-color: #c7d2fe;
}

.otp-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.hidden {
  display: none !important;
}

.form-footer {
  text-align: center;
  margin: 2px 0 0;
  color: var(--text-muted);
}

.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--text-muted);
  font-size: 14px;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--indigo-600);
}

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

.dashboard-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px 1fr;
}

.sidebar {
  background: #f7f8fc;
  border-right: 1px solid #e6eaf2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 14px;
}

.sidebar-bottom {
  margin-top: auto;
}

.logout-btn {
  width: 100%;
  min-height: 44px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  color: #475569;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.logout-btn:hover {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fef2f2;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 26px;
}

.mini-logo {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--indigo-600), var(--indigo-500));
  font-weight: 800;
  overflow: hidden;
}

.sidebar-nav {
  display: grid;
  gap: 3px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border-radius: 10px;
  padding: 0 12px;
  color: #475569;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s ease;
}

.sidebar-nav a.active {
  color: var(--indigo-600);
  background: #e8ebfd;
}

.sidebar-nav a:hover {
  background: #eef2ff;
  color: var(--indigo-700);
}

.nav-icon {
  width: 16px;
  height: 16px;
  display: inline-grid;
  place-items: center;
  color: #94a3b8;
}

.nav-icon svg {
  width: 16px;
  height: 16px;
}

.sidebar-nav a.active .nav-icon {
  color: var(--indigo-600);
}

/* ---------- Mobile topbar & hamburger sidebar ---------- */
.mobile-topbar {
  display: none;
}

.hamburger-btn {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--text-main);
}

.hamburger-btn svg {
  width: 22px;
  height: 22px;
}

.sidebar-overlay {
  display: none;
}

.sidebar-close-btn {
  display: none;
}

.dashboard-main {
  padding: 24px 30px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.dashboard-header h1 {
  margin: 0;
  font-size: 46px;
  letter-spacing: -0.03em;
}

.dashboard-header p {
  margin: 4px 0 0;
  color: #6b7280;
  font-size: 18px;
}

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

.icon-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: #64748b;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.stats-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.stat-card {
  background: var(--bg-white);
  border: 1px solid #e8edf5;
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.stat-card h3 {
  margin: 0;
  font-size: 44px;
  letter-spacing: -0.03em;
}

.stat-card p {
  margin: 4px 0 0;
  color: #9aa3b2;
}

.text-green {
  color: #10b981;
}

.text-red {
  color: #ef4444;
}

.table-section {
  background: var(--bg-white);
  border: 1px solid #e8edf5;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.table-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
}

.table-head h2 {
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
}

.panel-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.panel-card {
  background: var(--bg-white);
  border: 1px solid #e8edf5;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 18px;
}

.panel-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.panel-card p {
  margin: 0;
  color: #6b7280;
}

.upload-box {
  border: 2px dashed #c7d2fe;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #eef2ff 0%, #ffffff 100%);
  padding: 30px;
  text-align: center;
}

.upload-box h3 {
  margin: 0;
  font-size: 24px;
}

.upload-box p {
  margin: 8px 0 16px;
  color: #64748b;
}

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

.profile-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e9edf5;
  border-radius: 10px;
  padding: 12px 14px;
}

.profile-item span:first-child {
  color: #64748b;
}

.profile-item span:last-child {
  font-weight: 700;
}

.profile-form {
  margin-top: 6px;
}

.table-empty {
  text-align: center;
  color: var(--text-muted);
  font-weight: 600;
}

.history-row-multiple-lines td:first-child {
  font-weight: 700;
}

.table-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(79, 70, 229, 0.08);
  color: var(--indigo-600);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.table-action:hover {
  background: rgba(79, 70, 229, 0.14);
}

.history-meta {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
}

.badge.neutral {
  color: #334155;
  background: #e2e8f0;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: #f8fafc;
}

th,
td {
  text-align: left;
  padding: 14px 18px;
  border-top: 1px solid #eef2f7;
}

th {
  font-size: 12px;
  letter-spacing: 0.05em;
  color: #9aa3b2;
}

td {
  font-weight: 600;
}

.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.badge.success {
  color: #166534;
  background: #dcfce7;
}

.badge.danger {
  color: #b91c1c;
  background: #fee2e2;
}

.fade-in-up {
  animation: fadeInUp 0.5s ease both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

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

@keyframes dotBounce {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }

  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

@keyframes logoPulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.04);
  }
}

@media (max-width: 1200px) {
  .auth-layout {
    grid-template-columns: 38% 62%;
  }

  .brand-content h1 {
    font-size: 36px;
  }

  .auth-card h2 {
    font-size: 34px;
  }

  .dashboard-header h1 {
    font-size: 36px;
  }

  .stat-card h3 {
    font-size: 34px;
  }
}

@media (max-width: 980px) {
  .landing-hero {
    min-height: auto;
    padding-top: 65px;
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .hero-copy {
    text-align: center;
  }
  .hero-copy > p:not(.hero-caption) {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-visual {
    width: min(520px, 100%);
    margin: 0 auto;
  }
  .landing-benefits {
    grid-template-columns: 1fr;
  }
  .public-result-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    min-height: 220px;
  }

  .brand-logo {
    width: 62px;
    height: 62px;
    font-size: 30px;
  }

  .brand-content h1 {
    font-size: 32px;
  }

  .brand-content p {
    font-size: 16px;
  }

  .auth-card h2 {
    font-size: 30px;
  }

  .dashboard-layout {
    display: block;
  }

  .mobile-topbar {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 58px;
    padding: 0 16px;
    background: #ffffff;
    border-bottom: 1px solid #e6eaf2;
    position: sticky;
    top: 0;
    z-index: 40;
  }

  .mobile-topbar .sidebar-brand {
    margin-bottom: 0;
    gap: 8px;
    font-size: 19px;
  }

  .mobile-topbar .mini-logo {
    width: 30px;
    height: 30px;
    font-size: 14px;
    border-radius: 9px;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: min(280px, 82vw);
    z-index: 60;
    padding: 16px;
    gap: 14px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.22);
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .sidebar-close-btn {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #ffffff;
    color: var(--text-muted);
    cursor: pointer;
  }

  .sidebar-close-btn svg {
    width: 18px;
    height: 18px;
  }

  .sidebar-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 26px;
  }

  .sidebar-top-row .sidebar-brand {
    margin-bottom: 0;
  }

  .sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 55;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .sidebar-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

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

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

body.sidebar-locked {
  overflow: hidden;
}

@media (max-width: 640px) {
  .landing-nav {
    height: 66px;
    padding: 0 16px;
  }
  .landing-brand {
    font-size: 21px;
  }
  .landing-brand .mini-logo {
    width: 34px;
    height: 34px;
  }
  .landing-nav-links > a:not(.landing-login-btn) {
    display: none;
  }
  .landing-hero {
    padding: 54px 18px 45px;
  }
  .hero-copy h1 {
    font-size: 39px;
  }
  .hero-copy > p:not(.hero-caption) {
    font-size: 16px;
  }
  .hero-actions > * {
    flex: 1;
  }
  .hero-visual {
    min-height: 350px;
  }
  .document-preview {
    min-height: 330px;
    padding: 25px;
  }
  .chip-ai {
    right: 2px;
  }
  .chip-secure {
    left: 2px;
  }
  .landing-benefits {
    padding: 0 18px;
    margin-bottom: 60px;
  }
  .public-check-section {
    padding: 65px 16px 80px;
  }
  .section-heading h2 {
    font-size: 31px;
  }
  .public-upload-card {
    padding: 15px;
  }
  .public-dropzone {
    padding: 42px 14px;
  }
  .public-result-header {
    padding: 20px;
    align-items: flex-start;
  }
  .detail-file-box {
    align-items: flex-start;
  }
  .public-result-body {
    padding: 20px;
  }
  .public-result-stats,
  .public-metadata-grid {
    grid-template-columns: 1fr;
  }
  .public-result-actions {
    display: grid;
  }
  .public-result-actions > * {
    width: 100%;
  }
  .landing-footer {
    padding: 22px 18px;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
  .auth-panel {
    padding: 20px;
  }

  .auth-card h2 {
    font-size: 28px;
  }

  .dashboard-main {
    padding: 16px;
  }

  .dashboard-header {
    flex-direction: column;
  }

  .dashboard-header h1 {
    font-size: 30px;
  }

  .dashboard-header p {
    font-size: 14px;
  }

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

  th,
  td {
    padding: 12px 12px;
  }
}
