:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-2: #f5f0e6;
  --ink: #172230;
  --muted: #617083;
  --line: #dbe3ec;
  --blue: #1E3A6D;
  --blue-dark: #12294f;
  --red: #d92d20;
  --gold: #C9A86A;
  --gold-dark: #9b7632;
  --danger: #b42318;
  --success: #087443;
  --shadow: 0 16px 42px rgba(18, 41, 79, .08);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .95) 0%, rgba(247, 248, 251, 1) 420px),
    var(--bg);
  color: var(--ink);
  font-family: "Cairo", "IBM Plex Sans Arabic", "Alexandria", Tahoma, "Segoe UI", Arial, sans-serif;
  line-height: 1.7;
  letter-spacing: 0;
}

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

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  min-height: 78px;
  padding: 10px clamp(16px, 4vw, 44px);
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(18, 41, 79, .06);
}

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

.brand-logo {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(201, 147, 44, .45);
  box-shadow: 0 8px 18px rgba(30, 58, 109, .12);
}

.brand strong {
  color: var(--blue-dark);
  font-size: 17px;
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.nav a,
.ghost-btn,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 12px;
  border-radius: 8px;
  color: var(--muted);
  border: 1px solid transparent;
}

.nav a.active,
.nav a:hover,
.ghost-btn:hover {
  color: var(--blue-dark);
  background: #f3ead8;
  border-color: rgba(201, 168, 106, .5);
}

.account-strip {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 190px;
}

.small-cta {
  min-height: 38px;
  padding: 7px 13px;
}

.app {
  width: min(1240px, calc(100% - 32px));
  min-height: calc(100vh - 78px);
  margin: 0 auto;
  padding: 28px 0 64px;
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 18px;
}

.page-head h1,
.panel h2,
.section-title {
  margin: 0;
  line-height: 1.35;
}

.page-head h1 {
  font-size: clamp(28px, 4vw, 44px);
}

.page-head p,
.muted {
  color: var(--muted);
  margin: 6px 0 0;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: center;
  min-height: calc(100vh - 138px);
  padding: 34px 0 42px;
}

.hero-copy {
  display: grid;
  gap: 18px;
  align-content: center;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid rgba(201, 147, 44, .45);
  border-radius: 8px;
  color: var(--blue-dark);
  background: #f8f0df;
  font-size: 13px;
  font-weight: 800;
}

.hero-copy h1 {
  max-width: 780px;
  margin: 0;
  color: var(--blue-dark);
  font-size: clamp(38px, 5.7vw, 68px);
  line-height: 1.12;
}

.hero-copy p {
  max-width: 700px;
  margin: 0;
  color: #3b4756;
  font-size: clamp(17px, 2vw, 22px);
}

.hero-badges,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-badges span {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid rgba(201, 168, 106, .55);
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
  color: #38465a;
  font-weight: 700;
}

.hero-badges span::before {
  content: "✓";
  margin-inline-end: 7px;
  color: var(--gold-dark);
  font-weight: 900;
}

.hero-cta {
  min-width: 150px;
}

.text-cta {
  min-height: 44px;
  padding: 8px 4px;
  border: 0;
  color: var(--blue-dark);
  background: transparent;
  font-weight: 900;
}

.text-cta:hover {
  color: var(--gold-dark);
}

.hero-visual {
  position: relative;
  display: grid;
  gap: 18px;
  align-content: center;
  min-height: 520px;
  padding: clamp(20px, 4vw, 32px);
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(30, 58, 109, .96) 0%, rgba(18, 41, 79, .98) 62%, rgba(201, 168, 106, .9) 100%);
  color: #fff;
  box-shadow: 0 24px 64px rgba(18, 41, 79, .18);
}

.hero-logo {
  display: block;
  width: min(300px, 78%);
  aspect-ratio: 1;
  object-fit: cover;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .22);
}

.hero-visual-copy {
  display: grid;
  gap: 2px;
  text-align: center;
}

.hero-visual-copy strong {
  color: #fff;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.2;
}

.hero-visual-copy span {
  color: rgba(255, 255, 255, .82);
}

.hero-stat-grid,
.landing-stats {
  display: grid;
  gap: 10px;
}

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

.hero-stat-grid div,
.landing-stats div {
  min-height: 86px;
  padding: 13px;
  border-radius: 8px;
}

.hero-stat-grid div {
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .10);
}

.hero-stat-grid strong,
.hero-stat-grid span,
.landing-stats strong,
.landing-stats span {
  display: block;
}

.hero-stat-grid strong {
  color: #fff;
  font-size: 26px;
  line-height: 1.1;
}

.hero-stat-grid span {
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
}

.landing-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 20px 0 44px;
}

.landing-stats div {
  border: 1px solid rgba(201, 168, 106, .42);
  background: #fff;
  box-shadow: var(--shadow);
}

.landing-stats strong {
  color: var(--blue-dark);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.1;
}

.landing-stats span {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 700;
}

.auth-card {
  align-self: center;
}

.auth-logo {
  display: block;
  width: min(150px, 54%);
  aspect-ratio: 1;
  object-fit: cover;
  margin: 0 auto 18px;
  border-radius: 8px;
  border: 1px solid rgba(201, 147, 44, .38);
  box-shadow: 0 18px 36px rgba(18, 41, 79, .14);
}

.auth-section {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(360px, 1fr);
  gap: 24px;
  align-items: center;
  padding: 42px 0;
  border-top: 1px solid var(--line);
}

.auth-copy {
  display: grid;
  gap: 10px;
  align-content: start;
}

.auth-copy h2 {
  margin: 0;
  color: var(--blue-dark);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.25;
}

.auth-copy p {
  max-width: 640px;
  margin: 0;
  color: #465465;
  font-size: 17px;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: start;
  padding: 44px 0 20px;
  border-top: 1px solid var(--line);
}

.about-section h2,
.section-kicker h2 {
  margin: 10px 0 0;
  color: var(--blue-dark);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.25;
}

.about-section p {
  margin: 0;
  color: #3b4756;
  font-size: 18px;
}

.trust-grid,
.feature-grid {
  display: grid;
  gap: 16px;
}

.trust-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 20px 0 38px;
}

.trust-grid article,
.feature-grid article {
  display: grid;
  gap: 8px;
  min-height: 154px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.trust-grid strong,
.feature-grid strong {
  color: var(--blue-dark);
  font-size: 20px;
}

.trust-grid p,
.feature-grid p {
  margin: 0;
  color: var(--muted);
}

.features-section {
  padding: 42px 0 0;
  border-top: 1px solid var(--line);
}

.section-kicker {
  max-width: 760px;
  margin-bottom: 18px;
}

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

.success-section,
.faq-section {
  padding: 44px 0 0;
  border-top: 1px solid var(--line);
  margin-top: 44px;
}

.story-grid,
.faq-list {
  display: grid;
  gap: 14px;
}

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

.story-grid article,
.faq-list details {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.story-grid strong,
.faq-list summary {
  color: var(--blue-dark);
  font-size: 19px;
  font-weight: 900;
}

.story-grid p,
.faq-list p {
  margin: 8px 0 0;
  color: var(--muted);
}

.faq-list summary {
  cursor: pointer;
}

.auth-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr);
  gap: 24px;
  align-items: stretch;
}

.visual-panel,
.panel,
.profile-card,
.plan,
.stat,
.table-wrap,
.empty-state {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.visual-panel {
  overflow: hidden;
  padding: 24px;
  background: #fffaf0;
}

.visual-panel img {
  display: block;
  width: min(100%, 520px);
  height: auto;
  border-radius: 8px;
  margin: 0 auto;
  border: 1px solid rgba(201, 147, 44, .35);
  box-shadow: 0 18px 36px rgba(0, 63, 115, .12);
}

.visual-panel h1 {
  margin: 18px 0 8px;
  font-size: clamp(28px, 4vw, 46px);
}

.trust-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.trust-list li {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
}

.trust-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 999px;
  background: var(--gold);
}

.panel {
  padding: 22px;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px;
  margin-bottom: 18px;
  background: #f2eadc;
  border-radius: 8px;
}

.tab-btn {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
}

.tab-btn.active {
  color: #fff;
  background: var(--blue);
}

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

.form-grid.one {
  grid-template-columns: 1fr;
}

.profile-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 16px;
  padding: 0 0 22px;
  overflow: hidden;
}

.field {
  display: grid;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.form-section-title {
  padding: 18px 22px 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, #f8fbfd, #fff7e7);
}

.profile-form .form-section-title:first-child {
  border-top: 0;
}

.form-section-title h2 {
  margin: 0;
  color: var(--blue-dark);
  font-size: 22px;
}

.form-section-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.profile-form .field {
  padding-inline: 22px;
}

.profile-form .field.full {
  padding-inline: 22px;
}

.profile-form > .field:last-child {
  padding-top: 4px;
}

.field label,
.inline-label {
  color: #344054;
  font-weight: 700;
  font-size: 14px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.profile-form .field input,
.profile-form .field select,
.profile-form .field textarea {
  background: #fbfdff;
}

.profile-form .field input:hover,
.profile-form .field select:hover,
.profile-form .field textarea:hover {
  border-color: #b9d7ea;
}

.field input[type="file"] {
  padding: 8px;
  background: #fffdf8;
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30, 58, 109, .15);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
}

.btn,
.danger-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
}

.btn {
  color: var(--blue-dark);
  background: var(--gold);
  box-shadow: 0 10px 22px rgba(201, 168, 106, .22);
}

.btn:hover {
  color: #fff;
  background: var(--gold-dark);
}

.secondary-btn {
  color: var(--blue-dark);
  background: #fff;
  border-color: rgba(30, 58, 109, .24);
}

.secondary-btn:hover {
  border-color: rgba(201, 168, 106, .65);
  background: #fffaf0;
}

.danger-btn {
  color: #fff;
  background: var(--danger);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}

.notice {
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff7e6;
  border: 1px solid #f3d79b;
  color: #7a4a00;
}

.notice.success {
  background: #eaf8ef;
  color: var(--success);
  border-color: #b7e4c7;
}

.notice small {
  display: block;
  margin-top: 8px;
}

.notice.error {
  background: #fff1f0;
  color: var(--danger);
  border-color: #f5c2bd;
}

.workspace-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 58%, #284f88 100%);
  box-shadow: 0 22px 54px rgba(18, 41, 79, .16);
}

.workspace-hero h1 {
  margin: 10px 0 0;
  color: #fff;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.2;
}

.workspace-hero p {
  max-width: 720px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: 17px;
}

.workspace-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 10px;
  min-width: min(430px, 100%);
}

.workspace-metrics div {
  min-height: 78px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
}

.workspace-metrics strong,
.workspace-metrics span {
  display: block;
}

.workspace-metrics strong {
  color: #fff;
  font-size: 18px;
}

.workspace-metrics span {
  color: rgba(255, 255, 255, .76);
  font-size: 13px;
}

.search-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 18px;
  align-items: start;
}

.filter-panel {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .97);
  box-shadow: var(--shadow);
}

.filter-head,
.results-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.filter-head {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.text-btn {
  min-height: 34px;
  padding: 5px 9px;
  border: 0;
  border-radius: 8px;
  color: var(--blue-dark);
  background: transparent;
  font-weight: 800;
}

.text-btn:hover {
  background: #fff4df;
}

.results-panel {
  display: grid;
  gap: 14px;
}

.results-head {
  min-height: 64px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow);
}

.results-head h2 {
  margin: 0;
  color: var(--blue-dark);
  line-height: 1.2;
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.profile-card {
  display: grid;
  gap: 15px;
  padding: 20px;
  border-color: #dce5ec;
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.profile-card:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 168, 106, .6);
  box-shadow: 0 18px 48px rgba(18, 41, 79, .12);
}

.summary-card {
  gap: 14px;
  padding: 18px 18px 16px;
  overflow: hidden;
}

.summary-card-head {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.summary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.request-chip,
.summary-chip,
.heart-chip,
.favorite-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 999px;
  font-weight: 900;
}

.request-chip {
  padding: 7px 14px;
  color: #fff;
  background: #4d9488;
  font-size: 13px;
}

.summary-chip {
  padding: 7px 12px;
  color: #fff;
  background: var(--blue);
  font-size: 14px;
}

.summary-chip.danger {
  background: #d33b35;
}

.heart-chip {
  width: 36px;
  height: 36px;
  border: 2px solid #efc4c2;
  color: #d33b35;
  background: #fff;
  line-height: 1;
}

.favorite-btn {
  gap: 7px;
  padding: 7px 12px;
  border: 2px solid #efc4c2;
  color: #d33b35;
  background: #fff;
  font-size: 13px;
}

.favorite-btn span:first-child {
  line-height: 1;
  font-size: 16px;
}

.favorite-btn.active {
  color: #fff;
  background: #d33b35;
  border-color: #d33b35;
}

.summary-grid {
  display: grid;
  gap: 9px;
}

.summary-row {
  display: grid;
  grid-template-columns: minmax(120px, .9fr) minmax(140px, 1.1fr);
  gap: 14px;
  align-items: center;
  min-height: 28px;
}

.summary-label {
  color: #6b7280;
  font-weight: 900;
  text-align: right;
}

.summary-value {
  color: #151f2d;
  font-weight: 900;
  text-align: left;
}

.summary-value.alert {
  color: #d33b35;
}

.detail-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 8px;
  color: #fff;
  background: #4d9488;
  font-weight: 900;
  list-style: none;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}

.detail-toggle:hover {
  background: #3f8177;
  transform: translateY(-1px);
}

.summary-actions,
.details-body {
  display: grid;
  gap: 13px;
}

.profile-detail-page {
  display: grid;
  gap: 18px;
}

.detail-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.detail-hero h1 {
  margin: 12px 0 4px;
  color: var(--blue-dark);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.2;
}

.detail-hero p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

.badge.alert {
  color: #d33b35;
  background: #fff1f0;
  border-color: #efc4c2;
}

.profile-section {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.profile-section h4 {
  margin: 0;
  color: var(--blue-dark);
  font-size: 17px;
}

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

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

.detail-item {
  min-height: 62px;
  padding: 10px;
  border: 1px solid #e2e9ef;
  border-radius: 8px;
  background: #f9fbfc;
}

.detail-item span,
.detail-item strong {
  display: block;
}

.detail-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.detail-item strong {
  margin-top: 3px;
  color: #263545;
  font-size: 14px;
  line-height: 1.45;
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.avatar {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 8px;
  background: linear-gradient(135deg, #eef3fa, #fff4d8);
  border: 1px solid rgba(201, 168, 106, .48);
  color: var(--blue-dark);
  font-weight: 900;
  font-size: 24px;
}

.card-title h3 {
  margin: 0;
  color: var(--blue-dark);
  font-size: 20px;
}

.card-title p {
  margin: 3px 0 0;
  color: var(--muted);
}

.badge-row,
.meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge,
.status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 8px;
  border: 1px solid #dce5ec;
  background: #fafcff;
  color: #475467;
  font-size: 13px;
  font-weight: 700;
}

.badge.vip {
  color: #7a4a00;
  background: #fff0c2;
}

.status.pending {
  color: #7a4a00;
  background: #fff0c2;
}

.status.approved {
  color: var(--success);
  background: #eaf8ef;
}

.status.rejected,
.status.deleted {
  color: var(--danger);
  background: #fff1f0;
}

.bio {
  color: #344054;
  margin: 0;
  padding: 0;
}

.price-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.price {
  color: var(--gold-dark);
  font-weight: 900;
}

.plans-grid,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.plan,
.stat {
  padding: 18px;
}

.plan h3,
.stat strong {
  margin: 0;
  font-size: 22px;
}

.plan form {
  margin-top: 14px;
}

.plan-price {
  color: var(--red);
  font-size: 30px;
  font-weight: 900;
  margin: 8px 0;
}

.transfer-box {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.transfer-box div {
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff4dc;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 16px;
}

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

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

th {
  background: #f6ead6;
  color: #344054;
  font-size: 14px;
}

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

.admin-card {
  margin-top: 18px;
}

.admin-io-panel {
  display: grid;
  gap: 14px;
}

.admin-import-form {
  grid-template-columns: minmax(220px, 1.1fr) minmax(180px, .8fr) auto;
  align-items: end;
}

.import-actions {
  align-self: end;
}

.import-note {
  padding: 10px 12px;
  border: 1px solid rgba(201, 168, 106, .38);
  border-radius: 8px;
  background: #fffaf0;
}

.mini-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 28px;
  text-align: center;
}

.empty-state img {
  width: min(260px, 80%);
  border-radius: 8px;
  margin-bottom: 12px;
}

.toast {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 40;
  display: none;
  max-width: min(420px, calc(100% - 40px));
  padding: 12px 14px;
  border-radius: 8px;
  color: #fff;
  background: #1f2937;
  box-shadow: var(--shadow);
}

.toast.show {
  display: block;
}

.toast.error {
  background: var(--danger);
}

.toast.success {
  background: var(--success);
}

.whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 35;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  padding: 0;
  border-radius: 999px;
  color: #fff;
  background: #128c7e;
  border: 2px solid rgba(255, 255, 255, .86);
  font-weight: 900;
  font-size: 14px;
  box-shadow: 0 16px 36px rgba(18, 41, 79, .18);
}

.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .nav {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .account-strip {
    justify-content: flex-start;
  }

  .auth-grid,
  .auth-section,
  .landing-hero,
  .about-section,
  .admin-import-form,
  .search-layout,
  .plans-grid,
  .stats-grid,
  .transfer-box {
    grid-template-columns: 1fr;
  }

  .landing-hero {
    min-height: auto;
    padding-top: 16px;
  }

  .hero-visual {
    min-height: 440px;
  }

  .workspace-hero {
    grid-template-columns: 1fr;
  }

  .workspace-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-width: 0;
  }

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

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

  .filter-panel {
    position: static;
  }

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

@media (max-width: 620px) {
  .app {
    width: min(100% - 20px, 1180px);
    padding-top: 18px;
  }

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

  .profile-form {
    grid-template-columns: 1fr;
  }

  .profile-form .field,
  .profile-form .field.full,
  .form-section-title {
    padding-inline: 16px;
  }

  .page-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .workspace-hero,
  .filter-panel,
  .results-head,
  .profile-card {
    padding: 16px;
  }

  .workspace-metrics {
    grid-template-columns: 1fr;
  }

  .filter-head,
  .results-head,
  .detail-hero,
  .card-top,
  .price-line {
    align-items: stretch;
  }

  .filter-head,
  .results-head,
  .detail-hero {
    flex-direction: column;
  }

  .detail-actions {
    justify-content: stretch;
  }

  .price-line {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-copy h1 {
    font-size: clamp(34px, 11vw, 52px);
  }

  .hero-actions,
  .hero-badges {
    align-items: stretch;
    flex-direction: column;
  }

  .trust-grid,
  .feature-grid,
  .landing-stats,
  .story-grid,
  .hero-stat-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: auto;
    padding: 18px;
  }

  .auth-section {
    padding-top: 28px;
  }

  .details-grid,
  .details-grid.compact {
    grid-template-columns: 1fr;
  }

  .btn,
  .secondary-btn,
  .danger-btn {
    width: 100%;
  }
}
