@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800;900&display=swap");

:root {
  --brand-1: #ff6a00;
  --brand-2: #ff982b;
  --brand-dark: #c94c00;
  --text-main: #111827;
  --text-muted: #5b6472;
  --surface: #ffffff;
  --stroke: rgba(17, 24, 39, 0.1);
  --radius: 8px;
  --shadow: 0 14px 36px rgba(17, 24, 39, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text-main);
  background: #f7f8fb;
  -webkit-font-smoothing: antialiased;
}

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

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

.navbar-fixed {
  position: sticky;
  top: 0;
  z-index: 50;
}

nav,
nav.white {
  min-height: 80px;
  border-bottom: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text-main);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
  backdrop-filter: blur(14px);
}

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

nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav li,
nav li a {
  display: inline-flex;
  align-items: center;
}

nav a {
  font-size: 15px;
  font-weight: 650;
  color: var(--text-main);
}

nav a:hover {
  color: var(--brand-dark);
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-logo__img,
.logo-img {
  height: 56px;
  width: auto;
  display: block;
}

.sidenav-trigger {
  display: none;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  padding: 8px 10px;
  line-height: 1;
}

.sidenav {
  position: fixed;
  inset: 80px 0 auto 0;
  z-index: 45;
  display: none;
  margin: 0;
  padding: 16px;
  list-style: none;
  background: #ffffff;
  border-bottom: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}

.sidenav.is-open {
  display: grid;
  gap: 12px;
}

.sidenav a {
  display: block;
  padding: 10px 4px;
  font-weight: 750;
}

.right {
  margin-left: auto;
}

.white {
  background: #ffffff;
}

.black-text {
  color: #111827;
}

.white-text {
  color: #ffffff;
}

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

.text-darken-1,
.text-darken-2,
.text-darken-4 {
  color: var(--text-muted);
}

.grey.lighten-5 {
  background: #f7f8fb;
}

.green.lighten-5,
.green.lighten-4 {
  background: #ecfdf5;
}

.green-text {
  color: #047857;
}

.red.lighten-5,
.red.lighten-4 {
  background: #fef2f2;
}

.red-text {
  color: #b91c1c;
}

.section {
  margin: 0;
  padding: 56px 0;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.row::before,
.row::after {
  display: none;
}

.col {
  min-width: 0;
}

.s12 {
  flex: 0 0 100%;
  width: 100%;
}

@media (min-width: 640px) {
  .m4 { flex: 1 1 calc(33.333% - 18px); width: calc(33.333% - 18px); }
  .m5 { flex: 1 1 calc(41.666% - 18px); width: calc(41.666% - 18px); }
  .m6 { flex: 1 1 calc(50% - 18px); width: calc(50% - 18px); }
  .m7 { flex: 1 1 calc(58.333% - 18px); width: calc(58.333% - 18px); }
  .m8 { flex: 1 1 calc(66.666% - 18px); width: calc(66.666% - 18px); }
  .offset-m2 { margin-left: calc(16.666% + 12px); }
}

@media (min-width: 1024px) {
  .l4 { flex: 1 1 calc(33.333% - 18px); width: calc(33.333% - 18px); }
  .l6 { flex: 1 1 calc(50% - 18px); width: calc(50% - 18px); }
}

/* Shared dashboard/admin page header */
.page-shell > .hero-card,
main > .hero-card {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  width: 100% !important;
  min-height: 132px !important;
  padding: clamp(22px, 3vw, 34px) clamp(22px, 3.4vw, 42px) !important;
  border: 1px solid rgba(255, 255, 255, 0.34) !important;
  border-radius: 24px !important;
  color: #fff !important;
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 255, 255, 0.28), transparent 26%),
    radial-gradient(circle at 88% 8%, rgba(255, 198, 106, 0.62), transparent 30%),
    linear-gradient(135deg, #ff5f00 0%, #ff7a13 48%, #ffad3d 100%) !important;
  box-shadow:
    0 28px 70px rgba(255, 106, 0, 0.22),
    0 18px 42px rgba(15, 23, 42, 0.12) !important;
  animation: dashboardHeroIn 420ms cubic-bezier(.2, .8, .2, 1) both !important;
}

.page-shell > .hero-card::before,
main > .hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.42) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.42) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.74), transparent 78%);
}

.page-shell > .hero-card::after,
main > .hero-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -110px;
  z-index: -1;
  width: 310px;
  height: 210px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  transform: rotate(-14deg);
}

.hero-card h1,
.hero-card h2,
.hero-card h3,
.hero-card h4 {
  margin: 4px 0 6px !important;
  color: #fff !important;
  font-size: clamp(24px, 2.2vw, 34px) !important;
  line-height: 1.02 !important;
  font-weight: 950 !important;
  letter-spacing: -0.035em !important;
}

.hero-card p,
.hero-card div {
  color: inherit;
}

.hero-card p {
  max-width: 760px !important;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 650 !important;
  line-height: 1.5 !important;
}

.hero-card > div:first-child > p:first-child,
.hero-card .eyebrow {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: fit-content !important;
  margin: 0 0 8px !important;
  padding: 6px 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
  backdrop-filter: blur(10px) !important;
}

.hero-card > div:first-child > p:first-child::before,
.hero-card .eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18);
}

.hero-card .hero-actions,
.hero-card > div:last-child {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

.hero-card .btn,
.hero-card .btn-brand,
.hero-card a.btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 46px !important;
  padding: 0 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 999px !important;
  background: rgba(197, 68, 0, 0.18) !important;
  color: #1f0d00 !important;
  box-shadow: 0 12px 30px rgba(168, 60, 0, 0.18) !important;
  font-weight: 950 !important;
  text-transform: none !important;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease !important;
  backdrop-filter: blur(10px) !important;
}

.hero-card .btn:hover,
.hero-card .btn-brand:hover,
.hero-card a.btn:hover {
  transform: translateY(-2px) !important;
  background: rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 18px 42px rgba(168, 60, 0, 0.24) !important;
}

.hero-card .material-icons {
  line-height: 1 !important;
}

@keyframes dashboardHeroIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-shell > .hero-card,
  main > .hero-card {
    animation: none !important;
  }
}

@media (max-width: 720px) {
  .page-shell > .hero-card,
  main > .hero-card {
    display: grid !important;
    grid-template-columns: 1fr !important;
    align-items: flex-start !important;
    justify-content: stretch !important;
    gap: 14px !important;
    min-height: 0 !important;
    padding: 22px !important;
    text-align: left !important;
  }

  .page-shell > .hero-card > *,
  main > .hero-card > * {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .page-shell > .hero-card .chip-light,
  main > .hero-card .chip-light {
    grid-row: 1 !important;
    justify-self: start !important;
    margin-bottom: 0 !important;
  }

  .page-shell > .hero-card h1,
  .page-shell > .hero-card h2,
  .page-shell > .hero-card h3,
  .page-shell > .hero-card h4,
  main > .hero-card h1,
  main > .hero-card h2,
  main > .hero-card h3,
  main > .hero-card h4 {
    font-size: clamp(30px, 9vw, 42px) !important;
    line-height: 1.02 !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }

  .page-shell > .hero-card p,
  main > .hero-card p {
    font-size: 16px !important;
    line-height: 1.55 !important;
  }

  .hero-card .hero-actions,
  .hero-card > div:last-child {
    width: 100% !important;
  }

  .hero-card .btn,
  .hero-card .btn-brand,
  .hero-card a.btn {
    width: 100% !important;
  }
}

@media print {
  .hero-card {
    display: none !important;
  }
}

.valign-wrapper {
  align-items: center;
}

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

.right-align {
  text-align: right;
}

.hide {
  display: none !important;
}

.hide-on-small-only {
  display: block;
}

.hide-on-med-and-down {
  display: flex;
}

.card,
.card-panel {
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card {
  padding: 18px;
}

.card-content,
.card-body {
  padding: 0;
}

.card-title {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 800;
}

.shadow-light,
.z-depth-1 {
  box-shadow: var(--shadow);
}

.btn,
.btn-large,
.btn-flat {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-transform: none;
  cursor: pointer;
}

.btn,
.btn-large,
.btn-brand,
.btn-cta {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: #231100;
  box-shadow: 0 12px 26px rgba(255, 106, 0, 0.24);
}

.btn-large {
  min-height: 48px;
  padding-inline: 24px;
}

.btn-flat,
.btn-outline,
.btn-outline-secondary {
  background: transparent;
  border-color: var(--stroke);
  color: var(--text-main);
  box-shadow: none;
}

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

.btn:disabled,
.disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.material-icons.left,
.material-icons.prefix {
  margin-right: 8px;
}

.material-icons.large {
  font-size: 64px;
}

.material-icons.tiny {
  font-size: 18px;
}

.input-field {
  position: relative;
  margin-bottom: 18px;
}

.input-field label,
.form-label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 750;
}

.input-field .prefix {
  position: absolute;
  left: 12px;
  top: 36px;
  color: var(--text-muted);
}

.input-field .prefix + input,
.input-field .prefix + textarea {
  padding-left: 42px;
}

input:not([type="checkbox"]):not([type="radio"]),
textarea,
select,
.form-control,
.form-select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px 12px;
  color: var(--text-main);
  font: inherit;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--brand-1);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.14);
}

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

th,
td {
  border-bottom: 1px solid var(--stroke);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

th {
  color: #334155;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.responsive-table {
  overflow-x: auto;
  display: block;
}

.browser-default {
  list-style: initial;
  margin-left: 20px;
}

.page-footer {
  background: #0f172a;
  color: #e2e8f0;
  padding-top: 40px;
}

.footer-copyright {
  margin-top: 28px;
  background: rgba(255, 255, 255, 0.05);
}

.flow-text {
  font-size: 20px;
  line-height: 1.65;
}

.responsive-img {
  max-width: 100%;
  height: auto;
}

.pill,
.badge,
.badge-brand {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 106, 0, 0.12);
  color: var(--brand-dark);
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 800;
}

.collapsible {
  margin: 0;
  padding: 0;
  list-style: none;
}

.collapsible > li {
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.collapsible > li + li {
  margin-top: 12px;
}

.collapsible-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  font-weight: 800;
  cursor: pointer;
}

.collapsible-body {
  display: none;
  border-top: 1px solid var(--stroke);
  padding: 16px;
  color: var(--text-muted);
}

.collapsible > li.active .collapsible-body {
  display: block;
}

@media (max-width: 900px) {
  nav ul.hide-on-med-and-down {
    display: none;
  }

  .sidenav-trigger {
    display: inline-flex;
  }

  .hide-on-med-and-down {
    display: none !important;
  }

  .hide-on-small-only {
    display: none !important;
  }

  .row {
    gap: 16px;
  }

  .brand-logo__img,
  .logo-img {
    height: 48px;
  }
}

/* Unified authenticated area theme (user + admin) */
body {
  --brand-1: #ff6a00;
  --brand-2: #ff982b;
  --brand-dark: #c94c00;
  --text-main: #111827;
  --text-muted: #5b6472;
  --surface: #ffffff;
  --stroke: rgba(17, 24, 39, 0.1);
  --shadow: 0 14px 36px rgba(17, 24, 39, 0.1);
  background: #f7f8fb;
  color: var(--text-main);
}

nav.dashboard-nav,
nav.admin-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 80px;
  border-bottom: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06) !important;
  backdrop-filter: blur(14px);
}

.dashboard-nav .nav-wrapper,
.admin-nav .nav-wrapper {
  width: min(1280px, calc(100vw - 32px));
  margin-inline: auto;
}

.dashboard-nav .brand-logo,
.admin-nav .brand-logo {
  display: inline-flex !important;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--text-main) !important;
}

.dashboard-nav .nav-links li a,
.admin-nav .nav-links li a {
  color: var(--text-muted) !important;
  font-weight: 700;
  font-size: 16px;
}

.dashboard-nav .nav-links li a:hover,
.admin-nav .nav-links li a:hover {
  color: var(--brand-dark) !important;
}

.dashboard-nav .nav-links,
.admin-nav .nav-links {
  gap: 20px;
}

.page-shell {
  width: min(1180px, 94vw) !important;
  margin: 0 auto;
  padding: clamp(20px, 2vw, 32px) 0 40px !important;
}

.stat-card,
.table-card,
.form-card,
.link-card {
  border: 1px solid var(--stroke) !important;
  border-radius: 14px !important;
  background: var(--surface) !important;
  box-shadow: var(--shadow) !important;
}

.btn-brand {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2)) !important;
  color: #231100 !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
}

/* Authenticated app polish: aligned to login + public home design language. */
body {
  --brand-1: #ff6a00;
  --brand-2: #ff982b;
  --brand-soft: #fff7ed;
  --brand-dark: #c94c00;
  --ink: #101522;
  --text-main: #101522;
  --text-muted: #475569;
  --surface: rgba(255, 255, 255, 0.96);
  --surface-soft: #fffaf5;
  --stroke: rgba(15, 23, 42, 0.1);
  --stroke-strong: rgba(15, 23, 42, 0.16);
  --radius: 24px;
  --shadow: 0 24px 80px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 18px 60px rgba(15, 23, 42, 0.1);
  --shadow-glow: 0 22px 60px rgba(255, 106, 0, 0.22);
  background:
    radial-gradient(circle at 16% 2%, rgba(255, 106, 0, 0.15), transparent 30%),
    radial-gradient(circle at 84% 0%, rgba(255, 152, 43, 0.12), transparent 26%),
    linear-gradient(135deg, #fff7ed 0%, #ffffff 44%, #eef2f7 100%) !important;
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}

nav.dashboard-nav,
nav.admin-nav {
  min-height: 82px !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9) !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 14px 48px rgba(15, 23, 42, 0.08) !important;
  backdrop-filter: blur(18px);
}

.dashboard-nav .nav-wrapper,
.admin-nav .nav-wrapper {
  min-height: 82px !important;
  width: min(1180px, 92vw) !important;
}

.dashboard-nav .brand-logo,
.admin-nav .brand-logo {
  gap: 12px !important;
  line-height: 1.05 !important;
}

.dashboard-nav .brand-logo__img,
.admin-nav .brand-logo__img,
.dashboard-nav .logo-img,
.admin-nav .logo-img {
  height: 54px !important;
}

.nav-product {
  display: grid;
  gap: 2px;
}

.nav-product > span {
  color: #475569;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.nav-product > strong {
  color: #101522;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.dashboard-nav .nav-links,
.admin-nav .nav-links {
  gap: 8px !important;
}

.dashboard-nav .nav-links li a,
.admin-nav .nav-links li a {
  min-height: 42px;
  padding: 0 14px !important;
  border-radius: 999px;
  color: #334155 !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.dashboard-nav .nav-links li a:hover,
.admin-nav .nav-links li a:hover {
  background: rgba(255, 106, 0, 0.1) !important;
  color: var(--brand-dark) !important;
  transform: translateY(-1px);
}

.sidenav-trigger {
  align-items: center !important;
  justify-content: center !important;
  width: 44px;
  height: 44px;
  border-color: rgba(15, 23, 42, 0.12) !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #101522 !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.sidenav {
  inset: 82px 12px auto 12px !important;
  width: auto !important;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.sidenav a {
  border-radius: 16px;
  color: #101522;
  font-weight: 900;
}

.sidenav a:hover {
  background: rgba(255, 106, 0, 0.1);
  color: var(--brand-dark);
}

.page-shell {
  width: min(1180px, 92vw) !important;
  padding: clamp(22px, 3vw, 40px) 0 56px !important;
}

.page-shell > .hero-card,
main > .hero-card {
  min-height: 150px !important;
  border-radius: 32px !important;
  padding: clamp(24px, 3.5vw, 42px) !important;
  box-shadow: var(--shadow-glow), 0 28px 90px rgba(15, 23, 42, 0.16) !important;
}

.page-shell > .hero-card h1,
.page-shell > .hero-card h2,
.page-shell > .hero-card h3,
.page-shell > .hero-card h4,
main > .hero-card h1,
main > .hero-card h2,
main > .hero-card h3,
main > .hero-card h4 {
  margin: 4px 0 8px !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  letter-spacing: -0.045em !important;
  line-height: 0.98 !important;
}

.page-shell > .hero-card p,
main > .hero-card p {
  max-width: 680px !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 650 !important;
  line-height: 1.65 !important;
}

.page-shell > .hero-card .chip-light,
main > .hero-card .chip-light {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  backdrop-filter: blur(10px);
}

.section-card,
.card,
.stat-card,
.table-card,
.form-card,
.link-card,
.contact-card,
.provider-card,
.document-card,
.privacy-card,
.medical-documents,
.tag-sidebar-card,
.structured-block {
  border: 1px solid rgba(226, 232, 240, 0.92) !important;
  border-radius: 28px !important;
  background: var(--surface) !important;
  box-shadow: var(--shadow-soft) !important;
}

.card-content,
.form-card .card-content,
.table-card,
.section-card,
.structured-block {
  padding: clamp(18px, 2.2vw, 28px) !important;
}

.stat-grid,
.quick-links {
  gap: 18px !important;
  margin-top: 20px !important;
}

.stat-card,
.link-card {
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.stat-card:hover,
.link-card:hover {
  border-color: rgba(255, 106, 0, 0.28) !important;
  box-shadow: var(--shadow) !important;
  transform: translateY(-2px);
}

.stat-card h6,
.link-card p,
.card .helper-text,
.form-card p,
.table-card p {
  color: #64748b !important;
}

.stat-card .num {
  color: #101522 !important;
  font-size: clamp(28px, 3vw, 38px) !important;
  font-weight: 900 !important;
  letter-spacing: -0.045em;
}

.card-title,
.section-title,
.form-card h1,
.form-card h2,
.form-card h3,
.form-card h4,
.form-card h5,
.form-card h6,
.table-card h1,
.table-card h2,
.table-card h3,
.table-card h4,
.table-card h5,
.table-card h6 {
  color: #101522 !important;
  font-weight: 900 !important;
  letter-spacing: -0.035em;
}

.input-field {
  gap: 7px !important;
  margin-bottom: 14px !important;
}

.input-field label,
.input-field label.active,
label.form-label,
.form-label,
.field-label,
.form-group label {
  color: #334155 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
textarea,
select,
select.browser-default,
.form-control,
.form-select {
  min-height: 46px;
  border: 1px solid #cbd5e1 !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  color: #101522 !important;
  font-size: 15px !important;
  font-weight: 650 !important;
  box-shadow: none !important;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

select.browser-default,
select.form-select {
  margin-left: 0 !important;
  margin-right: 0 !important;
  list-style: none !important;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
textarea:focus,
select:focus,
select.browser-default:focus,
.form-control:focus,
.form-select:focus {
  border-color: var(--brand-1) !important;
  box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.13) !important;
  outline: none !important;
}

textarea,
textarea.form-control {
  min-height: 88px !important;
  line-height: 1.55 !important;
  resize: vertical;
}

.btn,
button,
input[type="submit"] {
  border-radius: 999px !important;
  font-weight: 900 !important;
  letter-spacing: -0.01em;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.btn:hover,
button:hover,
input[type="submit"]:hover {
  transform: translateY(-1px);
}

.btn-brand,
.btn-primary,
button[type="submit"],
input[type="submit"] {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2)) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 106, 0, 0.12) !important;
  box-shadow: var(--shadow-glow) !important;
}

.btn-ghost,
.btn-outline-secondary,
.btn-outline-primary {
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  background: #ffffff !important;
  color: #101522 !important;
}

.btn-outline-danger,
.btn-danger,
.delete-action {
  background: #fff1f2 !important;
  color: #be123c !important;
  border: 1px solid #ffe4e6 !important;
}

.icon-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 42px !important;
  padding: 0 !important;
  border-radius: 999px !important;
}

table {
  overflow: hidden;
  border-collapse: separate !important;
  border-spacing: 0;
  border-radius: 22px;
  background: #ffffff;
}

th {
  background: #fff7ed;
  color: #334155 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: 0.04em;
}

td {
  color: #101522;
  font-weight: 650;
}

th,
td {
  border-bottom: 1px solid rgba(226, 232, 240, 0.95) !important;
  padding: 14px !important;
}

.alert,
.notice,
.message {
  border-radius: 18px !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
}

.badge,
.badge-brand,
.pill,
.chip-light {
  border-radius: 999px !important;
  background: rgba(255, 106, 0, 0.12) !important;
  color: var(--brand-dark) !important;
  font-weight: 900 !important;
}

.collapsible > li {
  border-radius: 24px !important;
  border-color: rgba(226, 232, 240, 0.92) !important;
  box-shadow: var(--shadow-soft) !important;
}

.collapsible-header {
  padding: 18px 20px !important;
  font-weight: 900 !important;
}

.collapsible-body {
  padding: 20px !important;
}

.section-card,
.card,
.stat-card,
.table-card,
.form-card,
.link-card,
.page-shell > .hero-card,
main > .hero-card {
  animation: appPanelIn 320ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.stat-card:nth-child(2),
.link-card:nth-child(2) {
  animation-delay: 40ms;
}

.stat-card:nth-child(3),
.link-card:nth-child(3) {
  animation-delay: 80ms;
}

@keyframes appPanelIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .dashboard-nav .brand-logo__img,
  .admin-nav .brand-logo__img,
  .dashboard-nav .logo-img,
  .admin-nav .logo-img {
    height: 46px !important;
  }

  .nav-product > span {
    display: none;
  }

  .nav-product > strong {
    font-size: 17px;
  }

  .page-shell {
    width: min(100% - 24px, 1180px) !important;
    padding-top: 18px !important;
  }

  .page-shell > .hero-card,
  main > .hero-card {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    min-height: 128px !important;
    border-radius: 24px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
