@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;450;500;600;700&display=swap");
:root {
  --navy: #112f3c;
  --green: #137b68;
  --mint: #d4eee2;
  --muted: #75838a;
  --line: #e3e9e7;
  --bg: #f7f9f8;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  color: var(--navy);
  font-family: "IBM Plex Sans Arabic", Tahoma, sans-serif;
  background: #fff;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  outline-offset: 5px;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
header {
  height: 99px;
  max-width: 1280px;
  padding: 0 48px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 2px;
  margin-top: 10px;
}
.mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 48px;
  background: var(--navy);
  color: #bce2d0;
  border-radius: 15px 15px 15px 3px;
  font-size: 30px;
}
nav {
  display: flex;
  gap: 35px;
  font-size: 14px;
}
nav a:hover {
  color: var(--green);
}
i {
  font-style: normal;
  font-size: 10px;
  background: var(--mint);
  color: var(--green);
  padding: 3px 7px;
  border-radius: 5px;
}
.outline {
  background: white;
  border: 1px solid var(--line);
  padding: 10px 19px;
  border-radius: 8px;
  color: var(--navy);
}
.hero {
  background: linear-gradient(110deg, #e9f3ec, #f3f7f3 55%, #f5f8f4);
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 35px;
  padding: 73px max(48px, calc((100vw - 1184px) / 2));
  overflow: hidden;
  min-height: 570px;
}
.eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--green);
  display: flex;
  gap: 8px;
  align-items: center;
}
.eyebrow > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}
h1 {
  font-size: 48px;
  line-height: 1.5;
  letter-spacing: -1.5px;
  margin: 20px 0 18px;
  font-weight: 600;
}
h1 em {
  font-style: normal;
  color: var(--green);
}
p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}
h2 {
  font-size: 31px;
  font-weight: 600;
  margin: 8px 0;
}
.searchbox {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1px solid #dce6df;
  border-radius: 10px;
  padding: 7px 13px;
  margin-top: 28px;
  box-shadow: 0 8px 25px #153d2910;
}
.searchbox > span {
  font-size: 30px;
  color: var(--green);
}
input {
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 10px 2px;
  color: var(--navy);
}
.searchbox input {
  flex: 1;
  width: 100%;
}
button {
  transition:
    background 0.2s,
    transform 0.2s;
}
.searchbox button,
form > button {
  background: var(--green);
  color: white;
  border: 0;
  padding: 12px 17px;
  border-radius: 7px;
  white-space: nowrap;
}
button:hover {
  filter: brightness(0.96);
}
.popular {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 11px;
  color: var(--muted);
}
.popular button {
  border: 0;
  background: #e5eee8;
  border-radius: 5px;
  padding: 4px 9px;
  color: #566b60;
  font-size: 11px;
}
.hero-note {
  font-size: 10px;
  color: #6b7f75;
  margin-top: 24px;
}
.hero-art {
  position: relative;
  min-height: 400px;
  display: grid;
  place-items: center;
  direction: ltr;
}
.orbit {
  position: absolute;
  border: 1px solid #c9ddd0;
  border-radius: 50%;
  width: 380px;
  height: 380px;
}
.orbit.two {
  width: 470px;
  height: 470px;
  border-style: dashed;
  opacity: 0.55;
}
.medicine {
  position: relative;
  width: 220px;
  height: 300px;
  background: linear-gradient(120deg, #244c50, #102f3c);
  box-shadow: 16px 22px 20px #163e3a24;
  border-radius: 12px;
  transform: rotate(-12deg);
  padding: 26px;
  color: white;
  overflow: hidden;
  border-left: 12px solid #335b5b;
}
.med-logo {
  font-size: 34px;
  color: #b8e1c8;
}
.medicine > small {
  font-size: 7px;
  letter-spacing: 2px;
}
.medicine h2 {
  direction: rtl;
  text-align: right;
  font-size: 32px;
  line-height: 1.4;
  margin: 22px 0;
  color: #e0f0e6;
}
.med-footer {
  position: absolute;
  bottom: 20px;
  font-size: 6px;
  letter-spacing: 1.7px;
}
.pill {
  height: 85px;
  width: 36px;
  position: absolute;
  bottom: 32px;
  right: 25px;
  transform: rotate(43deg);
  border-radius: 25px;
  background: linear-gradient(#d6efe0 50%, #7eae9c 50%);
  box-shadow: inset -7px 0 10px #ffffff33;
}
.floating {
  position: absolute;
  display: flex;
  gap: 13px;
  align-items: center;
  background: #ffffffed;
  box-shadow: 0 15px 35px #20493612;
  border: 1px solid white;
  border-radius: 11px;
  padding: 15px 18px;
  direction: rtl;
  font-size: 12px;
}
.floating b {
  color: var(--green);
  font-size: 24px;
  background: #edf7f0;
  padding: 1px 10px;
  border-radius: 10px;
}
.floating small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin-top: 4px;
}
.f1 {
  top: 38px;
  right: -10px;
}
.f2 {
  bottom: 10px;
  left: 0;
}
.spark {
  position: absolute;
  color: #679f85;
  font-size: 30px;
}
.s1 {
  left: 35px;
  top: 60px;
}
.s2 {
  bottom: 50px;
  right: 30px;
}
.value-strip {
  max-width: 1184px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 33px 0;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}
.value-strip > div {
  display: flex;
  align-items: center;
  gap: 14px;
  border-left: 1px solid var(--line);
  padding: 0 18px;
}
.value-strip > div:last-child {
  border: 0;
}
.value-strip b {
  font-size: 25px;
  color: var(--green);
}
.value-strip span {
  font-size: 13px;
}
.value-strip small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}
.catalog {
  max-width: 1184px;
  margin: 65px auto;
  padding: 0 10px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.section-head p {
  margin: 5px 0;
}
.badge {
  background: #f0f5f2;
  border: 1px solid #dce7df;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  color: #698375;
}
.catalog-tools {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 26px 0;
}
.filter-search {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  flex: 1;
}
.filter-search input {
  width: 100%;
  font-size: 13px;
}
.tabs {
  display: flex;
  gap: 5px;
}
.tabs button {
  background: white;
  border: 0;
  border-radius: 7px;
  padding: 10px 17px;
  color: var(--muted);
  font-size: 12px;
}
.tabs button.active {
  background: var(--navy);
  color: white;
}
select {
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px;
  font-size: 11px;
  color: var(--navy);
}
.drug-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.drug-card {
  border: 1px solid var(--line);
  padding: 22px;
  border-radius: 12px;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.drug-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px #153d290b;
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.drug-icon {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #eef5f0;
  color: #438a70;
  font-size: 25px;
}
.category {
  font-size: 10px;
  color: var(--muted);
}
.drug-card h3 {
  direction: ltr;
  text-align: right;
  font-size: 20px;
  margin: 18px 0 2px;
  font-weight: 600;
}
.generic {
  direction: ltr;
  text-align: right;
  color: var(--muted);
  font-size: 11px;
}
.dose {
  font-size: 11px;
  color: #8c979b;
  margin: 7px 0 20px;
}
.card-bottom {
  border-top: 1px solid #edf1ee;
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.price {
  font-size: 19px;
  font-weight: 600;
}
.price small {
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
}
.details {
  border: 0;
  color: var(--green);
  font-size: 11px;
  background: transparent;
}
.catalog-foot {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin-top: 20px;
}
.assistant-section {
  max-width: 1184px;
  background: var(--navy);
  color: white;
  border-radius: 20px;
  margin: 80px auto;
  padding: 50px 60px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 70px;
}
.assistant-section .eyebrow {
  color: #a8d6be;
}
.assistant-section h2 {
  font-size: 34px;
  line-height: 1.6;
  margin: 17px 0;
}
.assistant-section p {
  color: #abc0c4;
  font-size: 13px;
}
.assistant-section ul {
  padding: 0;
  list-style: none;
  font-size: 12px;
  line-height: 2.8;
  color: #d3e3dc;
}
.assistant-section li:before {
  content: "✓";
  color: #8dd5ad;
  margin-left: 10px;
}
.chat {
  border-radius: 14px;
  overflow: hidden;
  background: #f8faf9;
  color: var(--navy);
  align-self: center;
  box-shadow: 0 20px 40px #00131e30;
}
.chat-head {
  padding: 17px 20px;
  background: white;
  display: flex;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.chat-head small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 3px;
}
.ai-avatar {
  background: var(--navy);
  color: var(--mint);
  font-size: 27px;
  border-radius: 10px;
  padding: 0 9px;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b3bcae;
  margin-right: auto;
}
.messages {
  height: 230px;
  overflow: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bubble {
  font-size: 12px;
  line-height: 1.9;
  padding: 13px 16px;
  border-radius: 10px;
  max-width: 95%;
  white-space: pre-wrap;
}
.bot {
  background: white;
  border: 1px solid var(--line);
  align-self: flex-start;
}
.user {
  background: #dceee4;
  align-self: flex-end;
}
.suggestions {
  display: flex;
  gap: 7px;
  padding: 0 18px 12px;
}
.suggestions button {
  border: 1px solid #dce7df;
  background: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 10px;
  color: var(--green);
}
.chat form {
  display: flex;
  gap: 8px;
  margin: 0 17px 17px;
  background: white;
  border: 1px solid var(--line);
  padding: 5px;
  border-radius: 8px;
}
.chat form input {
  flex: 1;
  font-size: 12px;
  padding-right: 8px;
}
.chat form button {
  padding: 5px 13px;
  font-size: 20px;
}
footer {
  border-top: 1px solid var(--line);
  max-width: 1184px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 10px;
}
footer .brand {
  font-size: 24px;
}
footer .mark {
  width: 34px;
  height: 38px;
  font-size: 24px;
}
footer p,
footer > span {
  font-size: 11px;
  color: var(--muted);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  max-width: 480px;
  width: 90%;
  padding: 30px;
  color: var(--navy);
}
dialog::backdrop {
  background: #08293799;
  backdrop-filter: blur(3px);
}
.close {
  float: left;
  border: 0;
  background: #edf4ef;
  border-radius: 50%;
  font-size: 22px;
  width: 30px;
  height: 30px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 25px;
  background: var(--navy);
  color: white;
  padding: 14px 24px;
  border-radius: 10px;
  display: none;
  z-index: 10;
  font-size: 13px;
}
.admin-layout {
  background: var(--bg);
  min-height: 75vh;
  display: grid;
  grid-template-columns: 220px 1fr;
  border-top: 1px solid var(--line);
}
aside {
  padding: 30px 20px;
  background: white;
  border-left: 1px solid var(--line);
}
aside h3 {
  font-size: 16px;
  margin-bottom: 30px;
}
aside button {
  display: block;
  width: 100%;
  text-align: right;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 13px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}
aside button.active {
  background: #e8f3ed;
  color: var(--green);
}
.aside-note {
  background: #f5f8f5;
  margin-top: 55px;
  padding: 15px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.9;
}
.aside-note small {
  color: var(--muted);
  font-size: 10px;
}
.admin-content {
  max-width: 1200px;
  width: 100%;
  padding: 38px;
}
.admin-content h1 {
  font-size: 30px;
  margin: 10px 0;
}
.notice {
  padding: 13px 17px;
  border: 1px solid #e3d9bb;
  background: #faf7ed;
  color: #857447;
  border-radius: 8px;
  font-size: 12px;
  margin: 25px 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
.stat,
.panel {
  border: 1px solid var(--line);
  background: white;
  padding: 22px;
  border-radius: 12px;
}
.stat small {
  color: var(--muted);
  font-size: 12px;
}
.stat b {
  display: block;
  font-size: 29px;
  margin-top: 10px;
}
.stat span {
  font-size: 10px;
  color: var(--green);
}
.chart-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin: 20px 0;
}
.panel h3 {
  font-size: 15px;
  margin: 0 0 20px;
}
.chart {
  display: flex;
  align-items: end;
  justify-content: space-around;
  height: 185px;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-top: 15px;
}
.bar {
  height: var(--height);
  background: #a8d2be;
  width: 9%;
  border-radius: 5px 5px 0 0;
  position: relative;
}
.bar:nth-child(3n) {
  background: var(--green);
}
.bar span {
  position: absolute;
  bottom: -27px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 10px;
  color: var(--muted);
}
.chart-caption {
  margin-top: 40px;
  color: var(--muted);
  font-size: 10px;
}
.rank {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin: 19px 0;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: right;
}
td,
th {
  padding: 14px 9px;
  border-bottom: 1px solid var(--line);
}
th {
  color: var(--muted);
  font-weight: 400;
}
table button {
  border: 0;
  background: #edf5ef;
  color: var(--green);
  padding: 5px 10px;
  border-radius: 5px;
}
.tablewrap {
  overflow: auto;
}
.connection {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  gap: 20px;
}
.connection p {
  font-size: 12px;
}
.connection code {
  direction: ltr;
  display: inline-block;
  font-size: 11px;
}
.empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 55px;
  border: 1px dashed var(--line);
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
@media (min-width: 1500px) {
  .hero {
    padding-top: 90px;
    padding-bottom: 90px;
  }
}
@media (max-width: 1000px) {
  header {
    padding: 0 25px;
  }
  h1 {
    font-size: 38px;
  }
  .hero {
    padding: 50px 30px;
    gap: 15px;
  }
  .hero-art {
    transform: scale(0.85);
  }
  .catalog,
  .assistant-section,
  .value-strip,
  footer {
    margin-left: 25px;
    margin-right: 25px;
  }
  .value-strip {
    gap: 5px;
  }
  .value-strip > div {
    padding: 0 8px;
  }
  .catalog-tools {
    flex-wrap: wrap;
  }
  .filter-search {
    min-width: 220px;
  }
  .assistant-section {
    padding: 35px;
    gap: 30px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-content {
    padding: 25px;
  }
  .chart-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  header {
    height: 80px;
    padding: 0 20px;
  }
  .brand {
    font-size: 26px;
  }
  .brand small {
    font-size: 6px;
  }
  nav {
    display: none;
  }
  .outline {
    font-size: 11px;
    padding: 9px 12px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 40px 22px 20px;
  }
  .hero h1 {
    font-size: 36px;
  }
  .hero p {
    font-size: 13px;
  }
  .searchbox button {
    padding: 12px 10px;
    font-size: 11px;
  }
  .searchbox input {
    font-size: 12px;
  }
  .hero-art {
    min-height: 330px;
    transform: scale(0.8);
    margin: -10px 0 -20px;
  }
  .f1 {
    right: 0;
  }
  .f2 {
    left: 0;
  }
  .value-strip {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 0 20px;
    padding: 25px 0;
  }
  .value-strip > div {
    border: 0;
  }
  .catalog {
    margin: 40px 17px;
  }
  .section-head h2 {
    font-size: 25px;
  }
  .badge {
    font-size: 9px;
    white-space: nowrap;
  }
  .catalog-tools {
    gap: 12px;
  }
  .filter-search {
    flex-basis: 100%;
  }
  .tabs {
    flex: 1;
    gap: 0;
  }
  .tabs button {
    padding: 9px 10px;
    font-size: 11px;
  }
  .drug-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .drug-card {
    padding: 15px;
  }
  .drug-card h3 {
    font-size: 16px;
  }
  .card-bottom {
    gap: 5px;
  }
  .price {
    font-size: 16px;
  }
  .details {
    font-size: 10px;
  }
  .catalog-foot {
    font-size: 9px;
    gap: 20px;
  }
  .assistant-section {
    grid-template-columns: 1fr;
    margin: 45px 17px;
    padding: 28px 22px;
    gap: 20px;
  }
  .assistant-section h2 {
    font-size: 29px;
  }
  .assistant-section ul {
    display: none;
  }
  footer {
    flex-wrap: wrap;
    gap: 20px;
    margin: 0 20px;
    padding: 25px 0;
  }
  footer p {
    display: none;
  }
  .admin-layout {
    display: block;
  }
  aside {
    padding: 15px;
    display: flex;
    gap: 5px;
    overflow: auto;
  }
  aside h3,
  .aside-note {
    display: none;
  }
  aside button {
    white-space: nowrap;
    font-size: 11px;
    margin: 0;
    width: auto;
  }
  .admin-content {
    padding: 20px 15px;
  }
  .admin-content .section-head p {
    font-size: 12px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 15px;
  }
  .stat b {
    font-size: 24px;
  }
  .panel {
    padding: 18px;
  }
  .connection {
    align-items: start;
    flex-wrap: wrap;
  }
}
