:root {
  --pink: #d94f79;
  --pink2: #c83e68;
  --soft: #fde9ef;
  --pale: #fff6f9;
  --text: #20253a;
  --muted: #9295a6;
  --line: #f0dfe5;
  --green: #19a45a;
  --shadow: 0 10px 30px rgba(81, 35, 53, 0.07);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: #f7edf1;
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  background: #fff9fb;
  min-height: 100vh;
  padding-bottom: 92px;
}

a,
button {
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  border: 0;
  cursor: pointer;
}

.app {
  max-width: 720px;
  margin: auto;
  min-height: 100vh;
  background: #fff9fb;
}

/* =========================
       HEADER
    ========================= */
.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 249, 251, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  padding: 14px 16px 10px;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--pink);
  background: linear-gradient(145deg, #fff, #fbe1e9);
  border: 1px solid #f0d4dd;
}

.logo svg {
  width: 26px;
}

.brand-name {
  font:
    600 18px "Playfair Display",
    serif;
  color: #613846;
  letter-spacing: 0.4px;
}

.brand-tag {
  font-size: 8px;
  color: #a47987;
  margin-top: 3px;
}

.admin-tools {
  display: flex;
  align-items: center;
  gap: 7px;
}

.circle-link {
  width: 39px;
  height: 39px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #635864;
  background: #fff;
  border: 1px solid var(--line);
  position: relative;
  transition: 0.2s;
}

.circle-link:hover {
  color: var(--pink);
  border-color: #e9bdcb;
  transform: translateY(-1px);
}

.circle-link svg {
  width: 19px;
}

.dot {
  position: absolute;
  right: 3px;
  top: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  border: 2px solid #fff;
  font-size: 8px;
  display: grid;
  place-items: center;
}

.admin-link {
  display: block;
  line-height: 0;
}

.admin-photo {
  width: 39px;
  height: 39px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 3px 10px #7c3e5418;
  transition: 0.2s;
}

.admin-photo:hover {
  transform: scale(1.04);
}

/* =========================
       SUB MENU
    ========================= */
.sub-wrap {
  margin-top: 12px;
  overflow: hidden;
}

.sub-menu {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 1px 4px;
  scrollbar-width: none;
}

.sub-menu::-webkit-scrollbar {
  display: none;
}

.sub-item {
  flex: 0 0 auto;
  min-width: 82px;
  height: 65px;
  padding: 8px 10px;
  border-radius: 15px;
  background: #fff;
  border: 1px solid var(--line);
  color: #707384;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: 0.2s;
}

.sub-item:hover {
  border-color: #e8bcc9;
  color: var(--pink);
  transform: translateY(-1px);
}

.sub-item svg {
  width: 19px;
  height: 19px;
}

.sub-item span {
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.sub-item.active {
  color: #fff;
  background: linear-gradient(145deg, #e4658d, #cb416b);
  border-color: transparent;
  box-shadow: 0 7px 18px #cb416b2b;
}

.sub-item.active:hover {
  color: #fff;
}

/* =========================
       CONTENT
    ========================= */
main {
  padding: 16px;
}

.hero {
  min-height: 205px;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  padding: 25px 21px;
  background:
    linear-gradient(
      90deg,
      rgba(255, 228, 235, 0.98) 0%,
      rgba(255, 225, 233, 0.88) 48%,
      rgba(255, 225, 233, 0.15) 100%
    ),
    url("https://images.unsplash.com/photo-1616394584738-fc6e612e71b9?auto=format&fit=crop&w=1200&q=85")
      center/cover;
  box-shadow: var(--shadow);
}

.hero-content {
  max-width: 62%;
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #bf4b6e;
  margin-bottom: 8px;
}

.hero h1 {
  font:
    600 clamp(25px, 7vw, 35px)/1.08 "Playfair Display",
    serif;
  color: #573840;
  margin-bottom: 9px;
}

.hero p {
  font-size: 11px;
  line-height: 1.55;
  color: #725963;
  margin-bottom: 14px;
}

.primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  background: linear-gradient(135deg, #df6086, #ca416b);
  border-radius: 999px;
  padding: 10px 15px;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 8px 17px #cc416b2d;
  transition: 0.2s;
}

.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px #cc416b3a;
}

.primary svg {
  width: 14px;
}

/* =========================
       STATISTICS
    ========================= */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 15px;
}

.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px;
  min-height: 132px;
  box-shadow: 0 7px 22px #4f27340b;
}

.stat-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}

.stat-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--pink);
  background: var(--soft);
  flex: 0 0 38px;
}

.stat-icon svg {
  width: 18px;
}

.stat-title {
  font-size: 10px;
  font-weight: 600;
  color: #747789;
}

.stat-number {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.stat-number.money {
  font-size: 17px;
}

.change {
  font-size: 9px;
  font-weight: 700;
  color: var(--green);
  margin-top: 4px;
}

.change small {
  font-weight: 500;
  color: #999dad;
}

/* =========================
       CHART
    ========================= */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.chart-card {
  margin-top: 15px;
  padding: 16px;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.card-head h2 {
  font-size: 15px;
}

.card-head p {
  font-size: 9px;
  color: #989bab;
  margin-top: 3px;
}

.select-link {
  color: #bd5371;
  background: #fff6f8;
  border: 1px solid #f0dce3;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 9px;
  white-space: nowrap;
  transition: 0.2s;
}

.select-link:hover {
  background: #fde9ef;
}

.chart {
  display: block;
  width: 100%;
  height: 170px;
  margin-top: 5px;
}

/* =========================
       ORDERS
    ========================= */
.orders-wrap {
  margin-top: 15px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 2px 9px;
}

.section-title h2 {
  font-size: 16px;
}

.section-title a {
  font-size: 10px;
  font-weight: 700;
  color: var(--pink);
  text-decoration: none;
}

.section-title a:hover {
  text-decoration: underline;
}

.orders {
  padding: 5px 15px;
}

.order {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #f4e8ec;
}

.order:last-child {
  border-bottom: 0;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 40px;
}

.order-info {
  flex: 1;
  min-width: 0;
}

.order-name {
  font-size: 11px;
  font-weight: 700;
}

.order-service,
.order-date {
  font-size: 9px;
  color: #989bab;
  margin-top: 2px;
}

.order-right {
  text-align: right;
}

.status {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 8px;
  font-weight: 700;
  margin-bottom: 3px;
}

.done {
  background: #e8f8ef;
  color: #248d58;
}

.process {
  background: #fdeaf0;
  color: #c64b70;
}

.wait {
  background: #eaf2ff;
  color: #477bc3;
}

.price {
  font-size: 9px;
  font-weight: 700;
}

/* =========================
       FIXED MENU UTAMA
    ========================= */
.bottom {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, 720px);
  padding: 8px 9px max(9px, env(safe-area-inset-bottom));
  background: rgba(255, 251, 252, 0.96);
  backdrop-filter: blur(22px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 28px #55283914;
}

.main-menu {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  /* align-items: end; */
  gap: 3px;
}

.main-item {
  min-height: 56px;
  border-radius: 15px;
  background: transparent;
  color: #747887;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  position: relative;
  transition: 0.2s;
}

.main-item:hover {
  color: var(--pink);
  background: #fff0f4;
}

.main-item svg {
  width: 20px;
  height: 20px;
}

.main-item span {
  font-size: 8.5px;
  font-weight: 600;
}

.main-item.active {
  background: var(--soft);
  color: var(--pink);
}

.add-item {
  width: 58px;
  height: 58px;
  margin: -27px auto 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #e66b91, #ca3e68);
  box-shadow:
    0 8px 20px #cb3f692f,
    0 0 0 6px #fff;
}

.add-item:hover {
  color: #fff;
  background: linear-gradient(145deg, #e66b91, #ca3e68);
  transform: translateY(-2px);
}

.add-item svg {
  width: 25px;
  height: 25px;
}

.add-item span {
  position: absolute;
  top: 63px;
  color: #5e6071;
  font-size: 8.5px;
}

/* =========================
       RESPONSIVE
    ========================= */
@media (min-width: 600px) {
  body {
    padding: 24px 0 110px;
  }

  .app {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 70px #4a21311f;
    border: 1px solid var(--line);
  }

  .header {
    position: relative;
  }

  main {
    padding: 22px;
  }

  .stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .bottom {
    bottom: 18px;
    width: min(calc(100% - 32px), 688px);
    border: 1px solid var(--line);
    border-radius: 24px;
  }
}

@media (max-width: 380px) {
  .brand-tag {
    display: none;
  }

  .brand-name {
    font-size: 16px;
  }

  .hero {
    min-height: 190px;
  }

  .hero-content {
    max-width: 68%;
  }

  .hero h1 {
    font-size: 23px;
  }
}

/* =========================================================
   TAMBAHAN STYLE
   Bagian yang belum memiliki styling pada HTML
   ========================================================= */


/* =========================================================
   PROFIL KLINIK
   ========================================================= */

.clinic-profile-preview {
  margin-top: 18px;
  padding: 22px;
  min-height: 150px;
  border-radius: 17px;
  background:
    linear-gradient(
      135deg,
      #fff7f9 0%,
      #fdebf1 55%,
      #fff 100%
    );
  border: 1px solid #f2dfe5;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.clinic-profile-preview::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -45px;
  top: -55px;
  border-radius: 50%;
  background: #f9dce5;
  opacity: 0.45;
}

.clinic-profile-preview::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  right: 45px;
  bottom: -55px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.65;
}

.clinic-profile-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.clinic-profile-content .eyebrow {
  margin-bottom: 6px;
  font-size: 8px;
}

.clinic-profile-content h2 {
  font:
    600 22px/1.2 "Playfair Display",
    serif;
  color: #573840;
  margin-bottom: 7px;
}

.clinic-profile-content p {
  max-width: 600px;
  font-size: 10px;
  line-height: 1.6;
  color: #81707a;
}


/* =========================================================
   JAM OPERASIONAL
   ========================================================= */

.card:not(.chart-card) {
  margin-top: 15px;
  padding: 16px;
}

.opening-hours-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.opening-hour {
  min-height: 58px;
  padding: 10px 12px;
  border-radius: 13px;
  background: #fff8fa;
  border: 1px solid #f3e3e8;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  transition: 0.2s;
}

.opening-hour:hover {
  background: #fff2f5;
  border-color: #ebcad5;
  transform: translateY(-1px);
}

.opening-hour span {
  font-size: 9px;
  color: #9699a9;
  font-weight: 600;
}

.opening-hour strong {
  font-size: 10px;
  color: #4e505f;
  font-weight: 700;
}


/* =========================================================
   INFORMASI KONTAK
   ========================================================= */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  margin-top: 16px;
}

.contact-item {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid #f1e2e7;
  border-radius: 14px;
  background: #fffafb;
  transition: 0.2s;
}

.contact-item:hover {
  border-color: #e9c4d0;
  background: #fff5f8;
  transform: translateY(-1px);
}

.contact-item .stat-icon {
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
}

.contact-item .stat-icon svg {
  width: 17px;
  height: 17px;
}

.contact-item > div:last-child {
  min-width: 0;
}

.contact-item span {
  display: block;
  font-size: 8px;
  color: #999baa;
  font-weight: 600;
  margin-bottom: 3px;
}

.contact-item strong {
  display: block;
  font-size: 10px;
  color: #4d4f5d;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* =========================================================
   SOCIAL MEDIA / FIND US
   ========================================================= */

.social-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  margin-top: 16px;
}

.social-list:empty::before {
  content: "Belum ada media sosial yang ditambahkan.";
  grid-column: 1 / -1;
  padding: 18px;
  border-radius: 14px;
  border: 1px dashed #ecd9e0;
  background: #fffafb;
  color: #a09ca6;
  font-size: 10px;
  text-align: center;
}


/* =========================================================
   MENU CEPAT
   ========================================================= */

.orders-wrap .section-title {
  margin-top: 18px;
}

.orders-wrap .card.orders {
  margin-top: 0;
  padding: 5px 15px;
}

.orders .order {
  min-height: 62px;
  transition: 0.2s;
}

.orders .order:hover {
  padding-left: 5px;
  padding-right: 5px;
  background: #fffafb;
}

.orders .order .stat-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
}

.orders .order .stat-icon svg {
  width: 18px;
  height: 18px;
}

.order-right {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa1a8;
}

.order-right svg {
  width: 17px;
  height: 17px;
  transition: 0.2s;
}

.order:hover .order-right {
  color: var(--pink);
}

.order:hover .order-right svg {
  transform: translateX(2px);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 480px) {

  .clinic-profile-preview {
    min-height: 145px;
    padding: 19px;
  }

  .clinic-profile-content h2 {
    font-size: 20px;
  }

  .clinic-profile-content p {
    font-size: 9px;
  }

  .opening-hours-grid {
    gap: 7px;
  }

  .opening-hour {
    padding: 9px 10px;
  }

  .contact-grid,
  .social-list {
    grid-template-columns: 1fr;
  }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

  .clinic-profile-preview {
    padding: 17px;
  }

  .clinic-profile-content h2 {
    font-size: 18px;
  }

  .opening-hour {
    min-height: 55px;
  }

  .opening-hour span {
    font-size: 8px;
  }

  .opening-hour strong {
    font-size: 9px;
  }

  .contact-item {
    padding: 10px;
  }

}


/* =========================================================
   TABLET / DESKTOP
   ========================================================= */

@media (min-width: 600px) {

  .opening-hours-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .social-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .clinic-profile-preview {
    min-height: 165px;
    padding: 25px;
  }

  .clinic-profile-content h2 {
    font-size: 25px;
  }

}


/* =========================================================
   GAMBAR PROFIL KLINIK
   ========================================================= */

.clinic-profile-image {
  width: 145px;
  height: 145px;
  flex: 0 0 145px;
  object-fit: cover;
  border-radius: 16px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 25px rgba(81, 35, 53, 0.12);
  margin-right: 20px;
  position: relative;
  z-index: 2;
}


/* =========================================================
   DETAIL PROFIL KLINIK
   ========================================================= */

.clinic-detail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  margin-right: 8px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid #f0dce3;
  color: #77717a;
  font-size: 9px;
  line-height: 1.2;
}

.clinic-detail svg {
  width: 13px;
  height: 13px;
  color: var(--pink);
  flex: 0 0 13px;
}

.clinic-detail span {
  display: block;
}


/* =========================================================
   GALERI KLINIK
   ========================================================= */

.clinic-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f2e4e9;
}

.clinic-gallery img {
  display: block;
  width: 100%;
  height: 72px;
  object-fit: cover;
  border-radius: 11px;
  border: 1px solid #f0dfe5;
  background: #f9eef2;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.clinic-gallery img:hover {
  transform: translateY(-2px);
  border-color: #e4b7c5;
  box-shadow: 0 7px 16px rgba(81, 35, 53, 0.12);
}


/* =========================================================
   SOCIAL MEDIA
   ========================================================= */

.social-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  margin-top: 16px;
}


/* LINK SOCIAL */

.social-link {
  min-height: 52px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;

  color: #666775;
  background: #fffafb;

  border: 1px solid #f0dfe5;
  border-radius: 14px;

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.social-link:hover {
  color: var(--pink);
  background: #fff3f6;
  border-color: #e8bdca;
  transform: translateY(-2px);
  box-shadow: 0 7px 18px rgba(81, 35, 53, 0.08);
}


/* ICON SOCIAL */

.social-link svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: var(--pink);
}


/* NAMA SOCIAL */

.social-link span {
  font-size: 10px;
  font-weight: 700;
  color: #5e606d;
}

.social-link:hover span {
  color: var(--pink);
}


/* =========================================================
   SOCIAL EMPTY
   ========================================================= */

.social-empty {
  grid-column: 1 / -1;

  padding: 18px 14px;

  border-radius: 14px;
  border: 1px dashed #e9d5dd;

  background: #fffafb;

  color: #9995a0;

  font-size: 10px;
  text-align: center;
}


/* =========================================================
   WHATSAPP / CONTACT LINK
   ========================================================= */

.contact-item {
  text-decoration: none;
  color: inherit;
}

a.contact-item:hover strong {
  color: var(--pink);
}


/* =========================================================
   RESPONSIVE TABLET / DESKTOP
   ========================================================= */

@media (min-width: 600px) {

  .clinic-profile-image {
    width: 155px;
    height: 155px;
    flex-basis: 155px;
  }

  .clinic-gallery {
    grid-template-columns: repeat(4, 1fr);
  }

  .clinic-gallery img {
    height: 82px;
  }

  .social-list {
    grid-template-columns: repeat(4, 1fr);
  }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 480px) {

  .clinic-profile-preview {
    align-items: flex-start;
  }

  .clinic-profile-image {
    width: 100px;
    height: 100px;
    flex-basis: 100px;
    border-radius: 14px;
    margin-right: 14px;
  }

  .clinic-profile-content {
    min-width: 0;
  }

  .clinic-profile-content h2 {
    font-size: 18px;
    word-break: break-word;
  }

  .clinic-profile-content p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }

  .clinic-detail {
    display: flex;
    width: 100%;
    margin-right: 0;
    font-size: 8px;
  }

  .clinic-gallery {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }

  .clinic-gallery img {
    height: 58px;
    border-radius: 9px;
  }

  .social-list {
    grid-template-columns: repeat(2, 1fr);
  }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

  .clinic-profile-image {
    width: 82px;
    height: 82px;
    flex-basis: 82px;
    margin-right: 11px;
    border-radius: 12px;
  }

  .clinic-profile-content h2 {
    font-size: 16px;
  }

  .clinic-profile-content p {
    font-size: 8px;
  }

  .clinic-gallery img {
    height: 52px;
  }

  .social-link {
    min-height: 48px;
    padding: 9px;
    gap: 8px;
  }

  .social-link svg {
    width: 18px;
    height: 18px;
  }

  .social-link span {
    font-size: 9px;
  }

}