:root {
  color-scheme: light;
  --blue: #1877f2;
  --blue-dark: #0b5bd3;
  --blue-soft: #e7f3ff;
  --bg: #f0f2f5;
  --surface: #ffffff;
  --ink: #050505;
  --text: #1c1e21;
  --muted: #65676b;
  --line: #d7dde6;
  --danger: #b42318;
  --success: #087f5b;
  --shadow: 0 10px 24px rgba(20, 24, 31, 0.08);
  --radius: 8px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", Arial, Helvetica, sans-serif;
}
.app-body {
  background:
    radial-gradient(circle at top left, rgba(24, 119, 242, 0.10), transparent 34%),
    linear-gradient(180deg, #f6f9ff 0%, #eef2f7 100%);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

h1, h2, h3, .brand, .button, .top-nav, .eyebrow, .step-chip {
  font-family: "Poppins", "Inter", Arial, Helvetica, sans-serif;
}
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 48px; line-height: 1.08; margin-bottom: 16px; letter-spacing: 0; }
h2 { font-size: 32px; line-height: 1.15; margin-bottom: 10px; letter-spacing: 0; }
h3 { font-size: 19px; margin-bottom: 8px; letter-spacing: 0; }
p { color: var(--muted); line-height: 1.55; }
.lead { font-size: 18px; max-width: 650px; }
.eyebrow {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 max(18px, calc((100vw - 1180px) / 2));
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}
.app-body .site-header {
  margin-left: 280px;
  min-height: 68px;
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
}
.app-body .site-header .brand,
.app-body .site-header .mobile-menu-button {
  display: none;
}
.app-body .top-nav {
  display: none;
}
.app-body .header-actions {
  margin-left: auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}
.brand-logo-crop {
  position: relative;
  display: block;
  width: 238px;
  height: 46px;
  overflow: hidden;
}
.brand-logo-crop img {
  position: absolute;
  width: 300px;
  max-width: none;
  height: auto;
  left: -43px;
  top: -77px;
}
.brand-logo-crop.small {
  width: 184px;
  height: 38px;
}
.brand-logo-crop.small img {
  width: 234px;
  left: -34px;
  top: -61px;
}
.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 70;
  width: 280px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 16px;
  padding: 20px 16px;
  border-right: 1px solid rgba(215, 221, 230, 0.85);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98));
  box-shadow: 18px 0 50px rgba(20, 24, 31, 0.07);
}
.app-sidebar-brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}
.app-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #dbe7f7;
  border-radius: 12px;
  background: linear-gradient(135deg, #eef6ff, #ffffff);
}
.app-user-card > div > strong,
.app-user-card > div > span {
  display: block;
}
.app-user-card > div > strong {
  max-width: 148px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-size: 15px;
}
.app-user-card > div > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.app-nav {
  display: grid;
  align-content: start;
  gap: 6px;
}
.app-nav-section {
  margin: 12px 10px 2px;
  color: #8a98aa;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
.app-nav-section:first-child {
  margin-top: 0;
}
.app-nav a,
.app-logout {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 11px;
  position: relative;
  border-radius: 12px;
  padding: 0 12px;
  color: #30415d;
  font-weight: 900;
}
.app-sidebar form,
.logout-inline-form {
  margin: 0;
}
.nav-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: #f0f5fb;
  color: #5b6b82;
}
.nav-icon svg {
  width: 18px;
  height: 18px;
}
.app-nav a:hover,
.app-nav a.active {
  background: #eaf3ff;
  color: var(--blue);
}
.app-nav a.active::before {
  content: "";
  position: absolute;
  left: -8px;
  width: 4px;
  height: 26px;
  border-radius: 999px;
  background: var(--blue);
}
.app-nav a:hover .nav-icon,
.app-nav a.active .nav-icon {
  background: #dbeafe;
  color: var(--blue);
}
.app-logout {
  border: 1px solid #f1b8b8;
  color: var(--danger);
  background: #fff;
  width: 100%;
  cursor: pointer;
  font: inherit;
}
.app-bottom-nav {
  display: none;
}
.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  padding: 8px;
}
.mobile-menu-button span {
  display: block;
  width: 24px;
  height: 3px;
  margin: 5px 0;
  border-radius: 999px;
  background: #4b5563;
}
.top-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 800;
}
.top-nav a,
.top-nav button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius);
  padding: 0 10px;
  color: #374151;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.top-nav a:hover,
.top-nav button:hover { background: var(--blue-soft); }
.top-nav .nav-cta {
  border: 1px solid #111827;
  background: #fff;
  color: var(--ink);
  padding: 0 14px;
}
.top-nav .nav-cta:hover {
  background: #111827;
  color: #fff;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.notification-menu { position: relative; }
.notification-menu summary { list-style: none; cursor: pointer; }
.notification-menu summary::-webkit-details-marker { display: none; }
.circle-action,
.profile-avatar {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 0;
  background: #e4e6eb;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  overflow: hidden;
}
.notification-count {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #e41e3f;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}
.notification-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(320px, calc(100vw - 24px));
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  z-index: 60;
}
.notification-item-form { margin: 0; }
.notification-popover > strong {
  color: var(--ink);
  font-size: 17px;
}
.notification-popover p { margin-bottom: 0; font-size: 13px; }
.notification-item {
  width: 100%;
  border: 0;
  text-align: left;
  display: grid;
  gap: 3px;
  padding: 10px;
  border-radius: var(--radius);
  background: #f8fbff;
}
.notification-item.unread { background: var(--blue-soft); }
.notification-item span { color: var(--ink); font-size: 14px; font-weight: 900; }
.notification-item small { color: var(--muted); line-height: 1.35; }
.profile-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.profile-avatar.large {
  width: 68px;
  height: 68px;
  flex: 0 0 auto;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 24px;
}
.bell-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #1c1e21;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Layout */
main {
  width: 100%;
  margin: 0 auto;
  padding: 0 0 46px;
}
.app-main {
  margin-left: 280px;
  padding: 0 0 70px;
}
.app-main > :not(.fiverr-hero) {
  width: min(1180px, calc(100% - 48px));
}
main > :not(.fiverr-hero) {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}
.section, .choice-section, .how-section { padding: 46px 0; }
.market-section { padding: 34px 0 46px; }
.section-head { max-width: 700px; margin-bottom: 18px; }
.section-head.centered { text-align: center; margin-left: auto; margin-right: auto; }

/* Buttons and feedback */
.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius);
  padding: 0 16px;
  font-weight: 900;
}
.large-action { min-height: 56px; padding: 0 20px; font-size: 16px; }
.primary { background: var(--blue); color: #fff; box-shadow: 0 12px 26px rgba(24, 119, 242, 0.22); }
.primary:hover { background: var(--blue-dark); }
.secondary { background: #fff; color: var(--blue); border: 1px solid var(--line); }
.danger { background: #fff; color: var(--danger); border: 1px solid #f1b8b8; }
.danger:hover { background: #fee2e2; }
.flash {
  width: min(1180px, calc(100% - 32px));
  margin: 14px auto 0;
  padding: 12px;
  border-radius: var(--radius);
  font-weight: 800;
}
.flash.success { background: #dcfce7; color: var(--success); }
.flash.error { background: #fee2e2; color: var(--danger); }
.flash.warning { background: #fff; color: var(--text); border: 1px solid var(--line); }

/* Fiverr-style hero */
.fiverr-hero {
  position: relative;
  min-height: 650px;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #050505;
}
.fiverr-hero img {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
}
.fiverr-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.88) 0%, rgba(5, 5, 5, 0.66) 42%, rgba(24, 119, 242, 0.24) 72%, rgba(24, 119, 242, 0.08) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0) 32%);
}
.fiverr-hero-content {
  width: min(900px, calc(100% - 64px));
  margin-left: max(32px, calc((100vw - 1180px) / 2));
  padding-bottom: 56px;
}
.hero-kicker {
  width: fit-content;
  margin-bottom: 14px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}
.fiverr-hero h1 {
  max-width: 790px;
  margin-bottom: 16px;
  color: #fff;
  font-size: 72px;
  line-height: 1.16;
  font-weight: 600;
  text-wrap: balance;
}
.hero-subcopy {
  max-width: 700px;
  margin-bottom: 24px;
  color: #eef6ff;
  font-size: 18px;
  font-weight: 700;
}
.hero-search {
  width: min(780px, 100%);
  min-height: 58px;
  display: grid;
  grid-template-columns: 1fr 58px;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}
.hero-search input {
  min-height: 58px;
  border: 0;
  border-radius: 0;
  padding: 0 20px;
  background: #fff;
  color: #111827;
  font-size: 17px;
}
.hero-search input:focus { outline: none; }
.hero-search button {
  position: relative;
  border: 0;
  background: var(--blue);
  color: transparent;
  font-size: 0;
}
.hero-search button:hover { background: var(--blue-dark); }
.hero-search button::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 19px;
  height: 19px;
  transform: translate(-50%, -50%);
  border: 3px solid #fff;
  border-radius: 50%;
}
.hero-search button::after {
  content: "";
  position: absolute;
  left: calc(50% + 9px);
  top: calc(50% + 9px);
  width: 10px;
  height: 3px;
  transform: rotate(45deg);
  border-radius: 999px;
  background: #fff;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 16px;
}
.hero-actions .secondary {
  background: rgba(255, 255, 255, 0.94);
  color: var(--blue);
}
.hero-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.hero-category-pills a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  font-weight: 700;
  backdrop-filter: blur(4px);
}
.hero-category-pills a::after { content: "->"; font-weight: 900; }
.hero-category-pills a:hover { background: rgba(255, 255, 255, 0.14); }
.trusted-strip {
  position: absolute;
  left: max(32px, calc((100vw - 1180px) / 2));
  right: max(32px, calc((100vw - 1180px) / 2));
  bottom: 36px;
  display: flex;
  align-items: center;
  gap: 42px;
  color: #fff;
}
.trusted-strip span { color: rgba(255, 255, 255, 0.86); font-weight: 700; }
.trusted-strip strong { color: rgba(255, 255, 255, 0.92); font-size: 16px; font-weight: 800; }
.trusted-strip strong:nth-child(even) { color: #dbeafe; }

/* Mobile quick categories */
.mobile-category-panel { display: none; }
.mobile-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.mobile-category-grid a {
  min-height: 104px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  padding: 9px 8px;
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
  text-align: center;
  box-shadow: var(--shadow);
}
.mobile-category-grid span {
  width: 44px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
}
.mobile-category-grid strong { font-size: 13px; line-height: 1.25; }
.view-more-link {
  display: block;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--ink);
  font-weight: 900;
}

/* Cards and grids */
.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 24px;
}
.proof-strip div,
.path-card,
.category-tile,
.trust-section,
.steps-grid article,
.market-preview,
.form-panel,
.dashboard-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.proof-strip div {
  min-height: 96px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 14px;
}
.proof-strip strong { color: var(--ink); font-size: 25px; }
.proof-strip span { color: var(--muted); font-size: 13px; font-weight: 800; }

.market-preview { padding: 16px; overflow: hidden; position: relative; }
.market-preview::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 92px;
  background: linear-gradient(135deg, var(--blue), #063e8c);
}
.market-preview > * { position: relative; z-index: 1; }
.preview-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  color: #fff;
  margin-bottom: 14px;
}
.preview-top .eyebrow { color: #d9ebff; }
.status-pill {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}
.status-pill.green { background: #ddf8ed; color: var(--success); }
.search-pill {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  margin-bottom: 10px;
  color: #30415d;
  font-weight: 900;
}
.worker-mini {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  margin-top: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.worker-mini p { margin-bottom: 2px; font-size: 13px; }
.worker-mini small { color: var(--success); font-weight: 900; }
.worker-mini span { color: var(--blue); font-weight: 900; font-size: 13px; text-align: right; }
.avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 900;
  overflow: hidden;
}
.avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.job-alert {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: #f0f5ff;
  border: 1px solid #c8ddff;
  border-left: 5px solid var(--blue);
}
.job-alert strong { display: block; color: var(--ink); font-size: 14px; margin-bottom: 3px; }
.job-alert p { margin-bottom: 0; color: #385898; font-weight: 700; font-size: 14px; }

.path-grid, .trust-grid, .steps-grid { display: grid; gap: 12px; }
.path-grid { grid-template-columns: repeat(2, 1fr); }
.trust-grid { grid-template-columns: repeat(2, 1fr); }
.steps-grid { grid-template-columns: repeat(4, 1fr); }
.path-card {
  min-height: 220px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px;
  border-top: 4px solid var(--blue);
}
.path-icon,
.category-tile span {
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}
.path-icon { width: 58px; height: 38px; }
.path-card strong { color: var(--blue); }
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.category-tile {
  min-height: 132px;
  display: grid;
  align-content: space-between;
  gap: 8px;
  padding: 15px;
  font-weight: 900;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}
.category-tile:hover { transform: translateY(-2px); border-color: #9cc7ff; }
.category-tile span { width: 46px; height: 34px; }
.category-tile small { color: var(--muted); font-weight: 800; }
.trust-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 20px;
  padding: 24px;
  margin: 30px auto;
}
.trust-grid article {
  padding: 14px;
  border-radius: var(--radius);
  background: #f7f8fa;
  border: 1px solid var(--line);
}
.trust-grid strong { display: block; margin-bottom: 6px; }
.trust-grid span { color: var(--muted); line-height: 1.45; font-size: 14px; }
.steps-grid article { padding: 16px; }
.steps-grid span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--blue);
  color: #fff;
  font-weight: 900;
  margin-bottom: 12px;
}
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
}
.final-cta { margin-top: 26px; }

/* Registration */
.register-shell {
  width: min(1180px, calc(100% - 32px));
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 18px;
  align-items: start;
  padding-top: 18px;
}
.auth-shell {
  width: min(980px, calc(100% - 32px));
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  align-items: center;
  padding-top: 34px;
}
.auth-copy {
  padding: 22px;
}
.auth-panel {
  max-width: 520px;
  margin-left: auto;
  width: 100%;
}
.auth-note {
  margin: 14px 0 0;
  font-size: 14px;
}
.auth-note a {
  color: var(--blue);
  font-weight: 800;
}
.register-aside {
  position: sticky;
  top: 88px;
  padding: 22px;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(160deg, #050505, #1c1e21 48%, var(--blue));
  box-shadow: var(--shadow);
}
.register-aside .eyebrow, .register-aside p { color: #d9ebff; }
.register-aside h1 { font-size: 40px; }
.onboarding-proof { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.onboarding-proof span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 13px;
  font-weight: 900;
}
.form-panel { padding: 18px; }
.register-panel { margin: 0; max-width: none; }
.stepper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}
.step-chip {
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbff;
  color: var(--muted);
  font-weight: 900;
  cursor: default;
  user-select: none;
}
.step-chip.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.form-step { display: none; }
.form-step.active { display: grid; gap: 14px; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
label {
  display: grid;
  gap: 6px;
  color: #30415d;
  font-size: 14px;
  font-weight: 900;
}
input, select, textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid #c4d4e8;
  border-radius: var(--radius);
  padding: 12px;
  background: #fbfdff;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(24, 119, 242, 0.16);
  border-color: var(--blue);
}
textarea { min-height: 104px; resize: vertical; }
.inline-status-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}
.inline-status-form select {
  min-height: 44px;
}
.inline-status-form .button {
  min-height: 44px;
  padding-inline: 14px;
}
.wide { grid-column: 1 / -1; }
.role-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.role-card {
  min-height: 190px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbff;
  cursor: pointer;
}
.role-card input { width: auto; min-height: auto; }
.role-card span {
  width: 54px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}
.role-card small { color: var(--muted); line-height: 1.45; }
.role-card:has(input:checked) { border-color: var(--blue); background: #f0f6ff; }
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-weight: 700;
}
.checkbox-row input { width: auto; min-height: auto; margin-top: 3px; }
.terms-box { margin-top: 14px; }
.terms-acceptance-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbff;
}
.terms-acceptance-card > .button {
  justify-self: start;
}
.terms-modal-card {
  max-width: 760px;
}
.terms-scroll {
  max-height: min(58vh, 560px);
  overflow: auto;
  display: grid;
  gap: 10px;
  padding-right: 6px;
}
.terms-scroll h3 {
  margin: 12px 0 0;
  font-size: 16px;
}
.terms-scroll p {
  margin: 0;
  color: #475569;
  line-height: 1.6;
}
.dispute-flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 18px;
}
.dispute-card {
  align-items: start;
}
.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}
.form-actions .button { min-width: 132px; }

/* Dashboard and footer */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}
.workspace-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding-top: 28px;
  margin-bottom: 18px;
}
.workspace-header h1 {
  margin-bottom: 6px;
  font-size: 36px;
}
.workspace-header p:last-child {
  margin-bottom: 0;
}
.next-action-panel {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  margin-top: 18px;
  padding: 20px;
  border: 1px solid #c8ddff;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, #ffffff 0%, #f0f6ff 100%);
  box-shadow: var(--shadow);
}
.next-action-panel h2 {
  margin-bottom: 6px;
  font-size: 26px;
}
.next-action-panel p:last-child {
  margin-bottom: 0;
}
.dashboard-tabs:not(.sr-only) {
  position: static;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px;
  margin-top: 18px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.dashboard-tab {
  min-height: 42px;
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 14px;
  background: transparent;
  color: #42526b;
  font-weight: 900;
}
.dashboard-tab.active {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 18px rgba(24, 119, 242, 0.18);
}
[data-dashboard-panel] { display: none; }
[data-dashboard-panel].active { display: grid; }
.dashboard-grid[data-dashboard-panel].active { display: grid; }
.dashboard-card { padding: 18px; }
.dashboard-card,
.job-card,
.form-panel {
  border-color: #dbe3ef;
}
.dashboard-card {
  min-height: 152px;
  transition: transform 140ms ease, box-shadow 140ms ease;
}
a.dashboard-card {
  display: block;
  color: inherit;
  text-decoration: none;
}
.dashboard-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(20, 24, 31, 0.10);
}
a.dashboard-card:hover {
  border-color: rgba(24, 119, 242, 0.45);
  box-shadow: 0 14px 34px rgba(24, 119, 242, 0.12);
}
.dashboard-card strong { color: var(--ink); font-size: 28px; }
.dashboard-panel { margin-top: 18px; }
.dashboard-hero-actions {
  display: none;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.dashboard-hero-actions .button {
  min-height: 44px;
}
.profile-card-main,
.admin-worker-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.profile-card-main strong { display: block; }
.profile-card-main p { margin-bottom: 0; }
.job-list {
  display: grid;
  gap: 12px;
}
.job-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.job-card {
  box-shadow: 0 10px 24px rgba(20, 24, 31, 0.06);
}
.job-card.history-job {
  background: #fbfdff;
  border-style: dashed;
}
.job-card.history-job .job-card-actions > strong {
  color: #64748b;
}
.job-card h3 { margin-bottom: 6px; }
.job-card p { margin-bottom: 4px; }
.job-card > strong {
  flex: 0 0 auto;
  color: var(--blue);
  font-size: 20px;
}
.job-card-actions {
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 10px;
}
.job-card-actions > strong {
  color: var(--blue);
  font-size: 20px;
}
.job-timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 10px;
}
.job-timeline span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  background: #eef2f7;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
}
.job-timeline span.done {
  background: #dbeafe;
  color: var(--blue);
}
.job-timeline span.current {
  background: var(--blue);
  color: #fff;
}
.message-thread {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.job-details {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
}
.job-details summary {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  color: var(--blue);
  font-weight: 900;
  list-style: none;
}
.job-details summary::-webkit-details-marker {
  display: none;
}
.job-details summary::after {
  content: "+";
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 18px;
}
.job-details[open] summary::after {
  content: "-";
}
.job-details .message-thread {
  padding-top: 12px;
}
.message-thread > strong { color: var(--ink); }
.message-list {
  display: grid;
  gap: 8px;
}
.message-bubble {
  width: fit-content;
  max-width: min(620px, 100%);
  padding: 9px 11px;
  border-radius: var(--radius);
  background: #f0f2f5;
}
.message-bubble.mine {
  justify-self: end;
  background: var(--blue);
  color: #fff;
}
.message-bubble.mine span,
.message-bubble.mine small,
.message-bubble.mine p { color: #fff; }
.message-bubble span {
  display: block;
  margin-bottom: 2px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}
.message-bubble p { margin-bottom: 0; font-size: 14px; }
.message-bubble small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.message-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.message-form input { min-height: 44px; }
.rating-form {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 10px;
  align-items: end;
}
.rating-form textarea { min-height: 70px; }
.status-badge {
  width: fit-content;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  margin: 8px 0;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.status-badge.verified { color: #065f46; background: #d1fae5; }
.status-badge.pending { color: #92400e; background: #fef3c7; }
.status-badge.warning { color: #991b1b; background: #fee2e2; }
.status-callout {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbff;
}
.status-callout.compact { margin-bottom: 0; }
.status-callout strong { color: var(--ink); font-size: 16px; }
.status-callout p { margin-bottom: 0; }
.status-callout.success { border-color: #a7f3d0; background: #ecfdf5; }
.status-callout.success strong { color: #065f46; }
.wallet-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid #c8ddff;
  border-radius: var(--radius);
  background: #f0f6ff;
}
.wallet-summary span {
  display: block;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 3px;
}
.wallet-summary strong {
  color: var(--ink);
  font-size: 32px;
}
.panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.panel-heading h2 {
  margin-bottom: 4px;
}
.panel-heading p:last-child {
  margin-bottom: 0;
}
.topup-package-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.topup-package-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 16px;
  border: 1px solid #dbe3ef;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 10px 24px rgba(20, 24, 31, 0.05);
}
.topup-package-card strong {
  color: var(--ink);
  font-size: 24px;
}
.topup-package-card p {
  margin-bottom: 4px;
}
.topup-package-card .button {
  width: 100%;
}
.ledger-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 170px auto auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #dbe3ef;
  border-radius: var(--radius);
  background: #f8fbff;
}
.ledger-toolbar .button {
  min-height: 50px;
}
.ledger-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.ledger-summary span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: #30415d;
  font-size: 13px;
  font-weight: 900;
}
.ledger-summary strong {
  color: var(--blue);
}
.ledger-list {
  display: grid;
  gap: 8px;
}
.ledger-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #dbe3ef;
  border-radius: var(--radius);
  background: #fff;
}
.ledger-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.ledger-main strong,
.ledger-meta strong {
  display: block;
  color: var(--ink);
}
.ledger-main p,
.ledger-meta span,
.ledger-details p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}
.ledger-main p {
  overflow-wrap: anywhere;
}
.ledger-meta {
  text-align: right;
}
.ledger-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ledger-actions .button {
  min-height: 38px;
  white-space: nowrap;
}
.ledger-details {
  grid-column: 1 / -1;
  border-top: 1px solid #edf2f7;
  padding-top: 8px;
}
.ledger-details summary {
  width: fit-content;
  cursor: pointer;
  color: var(--blue);
  font-weight: 900;
}
.status-badge.pending,
.status-badge.paid,
.status-badge.failed,
.status-badge.expired,
.status-badge.canceled {
  margin: 0;
}
.status-badge.paid { color: #065f46; background: #d1fae5; }
.status-badge.failed,
.status-badge.expired,
.status-badge.canceled { color: #991b1b; background: #fee2e2; }
.status-badge.attention { color: #92400e; background: #fef3c7; }
.category-admin-list {
  display: grid;
  gap: 10px;
}
.category-admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #dbe3ef;
  border-radius: var(--radius);
  background: #fff;
}
.category-admin-row strong {
  display: block;
  color: var(--ink);
}
.category-admin-row p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}
.category-order {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.settings-group {
  margin: 18px 0;
  padding: 14px;
  border: 1px solid #dbe3ef;
  border-radius: var(--radius);
  background: #f8fbff;
}
.settings-group p {
  margin: 6px 0;
}
.hint {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.form-grid hr {
  margin: 10px 0;
  border: none;
  border-top: 1px solid #dbe3ef;
}
.admin-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.admin-tools-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ops-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.ops-summary-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 98px;
  padding: 14px;
  border: 1px solid #dbe3ef;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}
.ops-summary-card.attention {
  border-color: #fed7aa;
  background: #fff7ed;
}
.ops-summary-card p,
.ops-summary-card small {
  margin-bottom: 0;
  color: var(--muted);
}
.ops-summary-card p {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}
.ops-summary-card strong {
  display: block;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.05;
}
.ops-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: #e8f1ff;
  color: var(--blue);
}
.ops-icon svg {
  width: 21px;
  height: 21px;
}
.attention .ops-icon,
.ops-card.priority .ops-icon {
  background: #ffedd5;
  color: #c2410c;
}
.ops-tool-tabs {
  display: flex;
  gap: 8px;
  padding: 8px;
  margin-bottom: 10px;
  border: 1px solid #dbe3ef;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}
.ops-tool-tab {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
}
.ops-tab-icon {
  width: 26px;
  height: 26px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  background: #eef4ff;
  color: var(--blue);
}
.ops-tab-icon svg {
  width: 15px;
  height: 15px;
}
.ops-tool-tab.active {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 18px rgba(24, 119, 242, 0.18);
}
.ops-tool-tab.active .ops-tab-icon {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.ops-tool-panel {
  display: none;
}
.ops-tool-panel.active {
  display: block;
}
.ops-card {
  padding: 16px;
}
.ops-card.priority {
  border-color: #fed7aa;
  background: linear-gradient(180deg, #fff7ed 0%, #fff 70%);
}
.ops-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.ops-card-head h2,
.ops-card-head p {
  margin-bottom: 0;
}
.ops-card-head h2 {
  font-size: 24px;
}
.ops-card .ledger-row {
  grid-template-columns: 1fr;
}
.ops-card > .button {
  margin-top: 4px;
}
.admin-tool-list {
  display: grid;
  gap: 10px;
}
.admin-tool-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr) auto;
  gap: 12px;
  align-items: end;
  padding: 12px;
  border: 1px solid #dbe3ef;
  border-radius: var(--radius);
  background: #fff;
}
.admin-tool-row p {
  margin-bottom: 0;
}
.confirm-modal {
  width: min(430px, calc(100% - 28px));
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  background: transparent;
}
.confirm-modal::backdrop {
  background: rgba(5, 5, 5, 0.48);
}
.confirm-modal-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 24px 70px rgba(5, 5, 5, 0.28);
}
.confirm-modal-card h2 {
  font-size: 24px;
  margin-bottom: 0;
}
.confirm-modal-card p:not(.eyebrow) {
  margin-bottom: 6px;
}
.confirm-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.edit-modal {
  width: min(680px, calc(100% - 28px));
  max-height: calc(100dvh - 40px);
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  background: transparent;
}
.edit-modal::backdrop {
  background: rgba(5, 5, 5, 0.48);
}
.edit-modal-card {
  display: grid;
  gap: 16px;
  max-height: calc(100dvh - 40px);
  overflow: auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 24px 70px rgba(5, 5, 5, 0.28);
}
.edit-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.edit-modal-head h2,
.edit-modal-head p {
  margin-bottom: 0;
}
.edit-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
}
.icon-button {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  background: #f8fbff;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}
.resend-form { margin-top: 12px; }
.link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 900;
}
.otp-method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.otp-method-card {
  min-height: 92px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: center;
  gap: 6px 10px;
  padding: 14px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbff;
  cursor: pointer;
}
.otp-method-card input { width: 18px; min-height: 18px; margin-top: 2px; }
.otp-method-card span { color: var(--blue); font-size: 13px; font-weight: 900; text-transform: uppercase; }
.otp-method-card strong {
  grid-column: 2;
  color: var(--ink);
  font-size: 15px;
  overflow-wrap: anywhere;
}
.otp-method-card:has(input:checked) { border-color: var(--blue); background: #eef6ff; }
.otp-method-card.disabled { opacity: 0.55; cursor: not-allowed; }
.admin-list {
  display: grid;
  gap: 14px;
  padding-bottom: 40px;
}
.admin-worker-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.document-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.document-links a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}
.admin-review-form {
  display: grid;
  gap: 10px;
}
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.site-footer {
  padding: 22px max(16px, calc((100vw - 1180px) / 2));
  border-top: 1px solid var(--line);
  background: #fff;
}
.site-footer p { margin-bottom: 0; font-size: 13px; }

/* Responsive */
@media (max-width: 900px) {
  .app-body .site-header {
    margin-left: 0;
    padding: 0 18px;
  }
  .app-sidebar {
    display: none;
  }
  .app-main {
    margin-left: 0;
    padding-bottom: 96px;
  }
  .app-main > :not(.fiverr-hero) {
    width: calc(100% - 32px);
  }
  .app-bottom-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 80;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 60px rgba(20, 24, 31, 0.18);
  }
  .app-bottom-nav a {
    min-height: 52px;
    display: grid;
    gap: 3px;
    place-items: center;
    border-radius: var(--radius);
    color: #30415d;
    font-size: 11px;
    font-weight: 900;
    text-align: center;
  }
  .app-bottom-nav .nav-icon {
    width: 24px;
    height: 24px;
    border-radius: 8px;
  }
  .app-bottom-nav .nav-icon svg {
    width: 14px;
    height: 14px;
  }
  .app-bottom-nav a.active {
    background: var(--blue);
    color: #fff;
  }
  .app-bottom-nav a.active .nav-icon {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
  }
  .dispute-flow-grid {
    grid-template-columns: 1fr;
  }
  .workspace-header {
    padding-top: 20px;
  }
  .workspace-header h1 {
    font-size: 30px;
  }
  .next-action-panel {
    grid-template-columns: 1fr;
  }
  .next-action-panel .button {
    width: 100%;
  }
  h1 { font-size: 40px; }
  .fiverr-hero { min-height: 640px; }
  .fiverr-hero img { object-position: 66% 24%; }
  .fiverr-hero-content { width: calc(100% - 32px); margin: 0 auto; }
  .fiverr-hero h1 { max-width: 640px; font-size: 48px; }
  .trusted-strip { left: 16px; right: 16px; gap: 18px; flex-wrap: wrap; }
  .register-shell, .trust-section { grid-template-columns: 1fr; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-panel { max-width: none; }
  .admin-worker-card { grid-template-columns: 1fr; }
  .register-aside { position: static; }
  .steps-grid, .category-grid, .proof-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .app-body .site-header {
    display: flex;
  }
  .app-body .site-header .brand {
    display: none;
  }
  .app-body .top-nav {
    display: none;
  }
  .site-header {
    min-height: 64px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 82px;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
  }
  .mobile-menu-button { display: block; grid-column: 1; }
  .mobile-menu-button {
    width: 36px;
    padding-left: 0;
    padding-right: 0;
  }
  .mobile-menu-button span {
    width: 22px;
  }
  .brand { grid-column: 2; grid-row: 1; justify-self: center; }
  .brand-logo-crop {
    width: 160px;
    height: 36px;
  }
  .brand-logo-crop img {
    width: 202px;
    left: -29px;
    top: -53px;
  }
  .top-nav { grid-column: 3; grid-row: 1; justify-self: end; margin-left: 0; }
  .site-header.is-authenticated .top-nav { display: none; }
  .site-header.menu-open .top-nav {
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(100% + 8px);
    display: grid;
    justify-items: stretch;
    gap: 6px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
  }
  .site-header.menu-open .top-nav a {
    display: flex;
    min-height: 44px;
    justify-content: flex-start;
  }
  .header-actions { grid-column: 3; grid-row: 1; justify-self: end; align-self: center; }
  .circle-action,
  .profile-avatar {
    width: 36px;
    height: 36px;
  }
  .header-actions { gap: 6px; }
  .bell-icon { width: 20px; height: 20px; }
  .header-actions .circle-action { display: inline-grid; }
  .top-nav a:not(.nav-cta) { display: none; }
  .site-header.menu-open .top-nav a:not(.nav-cta) { display: flex; }
  .top-nav .nav-cta {
    min-height: 38px;
    padding: 0 10px;
    border: 1px solid #111827;
    background: #fff;
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
  }
  main > :not(.fiverr-hero) { width: calc(100% - 28px); }
  .dashboard-tabs {
    margin-top: 14px;
    margin-bottom: 14px;
    padding: 8px;
  }
  .dashboard-tabs.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .dashboard-tab {
    min-height: 40px;
    padding: 0 12px;
    font-size: 14px;
  }
  .wallet-summary {
    display: grid;
  }
  .wallet-summary .button {
    width: 100%;
  }
  .topup-package-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ledger-toolbar {
    grid-template-columns: 1fr 1fr;
  }
  .ledger-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .ledger-meta {
    text-align: left;
  }
  .ledger-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .ledger-actions .button {
    width: 100%;
  }
  .category-admin-row {
    grid-template-columns: 1fr auto;
  }
  .category-admin-row .button {
    grid-column: 1 / -1;
  }
  .admin-tools-grid {
    grid-template-columns: 1fr;
  }
  .admin-tools-grid.two-col,
  .ops-summary-grid {
    grid-template-columns: 1fr;
  }
  .ops-tool-tabs {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .ops-tool-tabs::-webkit-scrollbar {
    display: none;
  }
  .ops-tool-tab {
    min-width: 118px;
    flex: 0 0 auto;
  }
  .admin-tool-row {
    grid-template-columns: 1fr;
  }
  .fiverr-hero {
    min-height: 520px;
    align-items: start;
    background: linear-gradient(180deg, #063f91 0%, var(--blue) 100%);
  }
  .fiverr-hero img { display: none; }
  .fiverr-hero-overlay { background: linear-gradient(180deg, #063f91 0%, var(--blue) 100%); }
  .fiverr-hero-content {
    width: calc(100% - 44px);
    margin: 0 auto;
    padding: 24px 0 0;
    display: grid;
    justify-items: center;
    text-align: center;
  }
  .fiverr-hero h1 {
    max-width: 330px;
    margin-bottom: 12px;
    font-size: 33px;
    line-height: 1.18;
  }
  .hero-kicker {
    margin-left: auto;
    margin-right: auto;
    font-size: 11px;
  }
  .hero-subcopy {
    max-width: 330px;
    margin-bottom: 18px;
    font-size: 15px;
  }
  .hero-search {
    width: 100%;
    max-width: 318px;
    min-height: 52px;
    grid-template-columns: 1fr 54px;
  }
  .hero-search input { min-height: 52px; padding: 0 14px; font-size: 14px; }
  .hero-actions {
    width: 100%;
    max-width: 318px;
    display: grid;
    gap: 8px;
  }
  .hero-category-pills, .trusted-strip, .proof-strip { display: none; }
  .mobile-category-panel {
    display: block;
    width: min(360px, calc(100% - 44px));
    margin: 16px auto 42px;
  }
  .market-section { padding-top: 34px; }
  .path-grid, .trust-grid, .steps-grid, .category-grid, .dashboard-grid, .form-grid, .role-card-grid {
    grid-template-columns: 1fr;
  }
  .job-card {
    display: grid;
  }
  .stepper { grid-template-columns: repeat(2, 1fr); }
  .worker-mini { grid-template-columns: auto 1fr; }
  .worker-mini span { grid-column: 2; text-align: left; }
  .cta-band { display: grid; }
  .form-actions {
    position: sticky;
    bottom: 0;
    padding-top: 10px;
    background: rgba(240, 242, 245, 0.96);
  }
}

@media (max-width: 420px) {
  .fiverr-hero h1 { font-size: 31px; }
  .large-action, .hero-actions .button { width: 100%; }
  .form-actions .button { min-width: 0; flex: 1; }
  .topup-package-grid,
  .ledger-toolbar,
  .category-admin-row {
    grid-template-columns: 1fr;
  }
  .edit-modal-actions {
    display: grid;
  }
  .edit-modal-actions .button {
    width: 100%;
  }
}


/* Phase patch: native-style collapsible mobile sidebar/menu */
.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: none;
  border: 0;
  background: rgba(15, 23, 42, 0.46);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.site-header.menu-open + .mobile-menu-backdrop {
  display: block;
}
body.mobile-menu-lock {
  overflow: hidden;
  touch-action: none;
}
.mobile-menu-button {
  position: relative;
  z-index: 120;
  border-radius: 12px;
  transition: background 0.18s ease, transform 0.18s ease;
}
.mobile-menu-button:active {
  transform: scale(0.96);
}
.mobile-menu-button span {
  transition: transform 0.22s ease, opacity 0.18s ease, background 0.18s ease;
}
.site-header.menu-open .mobile-menu-button span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.site-header.menu-open .mobile-menu-button span:nth-child(2) {
  opacity: 0;
}
.site-header.menu-open .mobile-menu-button span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 900px) {
  .app-body .site-header.menu-open ~ .app-sidebar {
    display: grid;
    transform: translateX(0);
  }
  .app-body .app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 100;
    width: min(86vw, 320px);
    max-width: 320px;
    display: grid;
    transform: translateX(-105%);
    transition: transform 0.24s ease;
    padding-top: calc(18px + env(safe-area-inset-top));
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 22px 0 70px rgba(15, 23, 42, 0.22);
  }
  .app-body .site-header.menu-open + .mobile-menu-backdrop {
    display: block;
  }
  .app-sidebar-brand {
    padding-left: 48px;
  }
}

@media (max-width: 680px) {
  .public-body .site-header.menu-open .top-nav,
  .site-header.is-guest.menu-open .top-nav {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 100;
    width: min(86vw, 320px);
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    margin: 0;
    padding: calc(84px + env(safe-area-inset-top)) 16px calc(20px + env(safe-area-inset-bottom));
    border: 0;
    border-right: 1px solid rgba(215, 221, 230, 0.9);
    border-radius: 0 22px 22px 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(248,251,255,0.99));
    box-shadow: 22px 0 70px rgba(15, 23, 42, 0.22);
    animation: mobileDrawerIn 0.24s ease both;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .public-body .site-header.menu-open .top-nav a,
  .public-body .site-header.menu-open .top-nav button,
  .site-header.is-guest.menu-open .top-nav a,
  .site-header.is-guest.menu-open .top-nav button {
    width: 100%;
    min-height: 48px;
    display: flex !important;
    justify-content: flex-start;
    align-items: center;
    padding: 0 14px;
    border-radius: 14px;
    white-space: nowrap;
    text-align: left;
    font-size: 15px;
    line-height: 1.2;
  }
  .public-body .site-header.menu-open .top-nav .nav-cta,
  .site-header.is-guest.menu-open .top-nav .nav-cta {
    justify-content: center;
    margin-top: 6px;
    border-color: var(--blue);
    background: var(--blue);
    color: #fff;
  }
  .public-body .site-header.menu-open .mobile-menu-button,
  .site-header.is-guest.menu-open .mobile-menu-button,
  .app-body .site-header.menu-open .mobile-menu-button {
    position: fixed;
    top: calc(14px + env(safe-area-inset-top));
    left: 16px;
    background: #eef6ff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  }
}

@keyframes mobileDrawerIn {
  from { transform: translateX(-105%); opacity: 0.96; }
  to { transform: translateX(0); opacity: 1; }
}

/* Phase patch: mobile sidebar readability fix */
.site-header.menu-open {
  z-index: 220;
}

.site-header.menu-open + .mobile-menu-backdrop {
  z-index: 90;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

@media (max-width: 680px) {
  .site-header.menu-open {
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .public-body .site-header.menu-open .top-nav,
  .site-header.is-guest.menu-open .top-nav {
    z-index: 230;
    isolation: isolate;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    opacity: 1 !important;
    background: #ffffff !important;
    color: #1f2937;
    width: min(84vw, 320px);
    box-shadow: 18px 0 48px rgba(15, 23, 42, 0.24);
  }

  .public-body .site-header.menu-open .top-nav a,
  .public-body .site-header.menu-open .top-nav button,
  .site-header.is-guest.menu-open .top-nav a,
  .site-header.is-guest.menu-open .top-nav button {
    color: #263142 !important;
    background: #ffffff;
    font-weight: 900;
    text-shadow: none;
    opacity: 1;
  }

  .public-body .site-header.menu-open .top-nav a:hover,
  .public-body .site-header.menu-open .top-nav button:hover,
  .site-header.is-guest.menu-open .top-nav a:hover,
  .site-header.is-guest.menu-open .top-nav button:hover {
    background: #eef6ff;
    color: #0f6bdc !important;
  }

  .public-body .site-header.menu-open .top-nav .nav-cta,
  .site-header.is-guest.menu-open .top-nav .nav-cta {
    background: #0f6bdc !important;
    color: #ffffff !important;
  }

  .public-body .site-header.menu-open .mobile-menu-button,
  .site-header.is-guest.menu-open .mobile-menu-button,
  .app-body .site-header.menu-open .mobile-menu-button {
    z-index: 240;
  }
}

@keyframes mobileDrawerIn {
  from { transform: translateX(-105%); opacity: 1; }
  to { transform: translateX(0); opacity: 1; }
}
