*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue-50: #e6f1fb;
  --blue-100: #b5d4f4;
  --blue-200: #85b7eb;
  --blue-400: #378add;
  --blue-600: #185fa5;
  --blue-800: #0c447c;
  --blue-900: #042c53;
  --teal-50: #e1f5ee;
  --teal-400: #1d9e75;
  --teal-800: #085041;
  --amber-50: #faeeda;
  --amber-400: #ba7517;
  --amber-800: #633806;
  --coral-50: #faece7;
  --coral-400: #d85a30;
  --green-50: #eaf3de;
  --green-400: #639922;
  --green-800: #27500a;
  --purple-50: #eeedfe;
  --purple-400: #7f77dd;
  --purple-800: #3c3489;
  --gray-50: #f7f8fa;
  --gray-100: #eef0f3;
  --gray-200: #dde1e7;
  --gray-400: #8a929e;
  --gray-600: #555e6b;
  --gray-900: #1a1f28;
  --white: #ffffff;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.07), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.05);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  background: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.6;
  font-size: 16px;
}

/* NAV */
nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.brand-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-900);
  letter-spacing: -0.3px;
}
.brand-name span {
  color: var(--blue-600);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  color: var(--gray-600);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition:
    background 0.15s,
    color 0.15s;
}
.nav-links a:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}
.nav-links a.active {
  color: var(--blue-600);
  font-weight: 500;
}
.nav-cta {
  background: var(--blue-600);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition:
    background 0.15s,
    transform 0.1s;
}
.nav-cta:hover {
  background: var(--blue-800);
  transform: translateY(-1px);
}
.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-600);
}

/* HERO */
.hero {
  background:
    linear-gradient(90deg, rgba(6, 23, 45, 0.92) 0%, rgba(8, 34, 63, 0.82) 34%, rgba(10, 35, 57, 0.48) 62%, rgba(10, 28, 44, 0.68) 100%),
    linear-gradient(180deg, rgba(7, 24, 44, 0.2) 0%, rgba(7, 24, 44, 0.56) 100%),
    url('./images/hero.jpeg');
  background-size: cover;
  background-position: center 34%;
  padding: 5rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 42%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 140px;
  background: linear-gradient(180deg, rgba(7, 24, 44, 0), rgba(7, 24, 44, 0.38));
}
.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  padding: 5px 14px;
  margin-bottom: 1.25rem;
  letter-spacing: 0.3px;
}
.hero-badge::before {
  content: "✓";
  font-weight: 600;
}
.hero h1 {
  font-family: "DM Serif Display", serif;
  font-size: 46px;
  font-weight: 400;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.hero h1 em {
  font-style: italic;
  color: rgba(255, 232, 204, 0.95);
}
.hero p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 2rem;
  text-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-hero-primary {
  background: #fff;
  color: var(--blue-800);
  border: none;
  border-radius: var(--radius-md);
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
  box-shadow: var(--shadow-md);
}
.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-hero-outline {
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-md);
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}
.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.stat {
}
.stat-num {
  font-size: 26px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.5px;
}
.stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 2px;
}

/* Hero search card */
.hero-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
}
.hero-card-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
  margin-bottom: 0.75rem;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 1rem;
  transition: border-color 0.15s;
}
.search-field:focus-within {
  border-color: var(--blue-400);
}
.search-field svg {
  flex-shrink: 0;
  color: var(--gray-400);
}
.search-field input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--gray-900);
  font-family: inherit;
  outline: none;
}
.search-field input::placeholder {
  color: var(--gray-400);
}
.search-btn {
  width: 100%;
  background: var(--blue-600);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 11px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
  margin-bottom: 1rem;
}
.search-btn:hover {
  background: var(--blue-800);
}
.quick-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.quick-link {
  font-size: 11px;
  color: var(--blue-600);
  background: var(--blue-50);
  border-radius: 20px;
  padding: 4px 10px;
  cursor: pointer;
  transition: background 0.1s;
}
.quick-link:hover {
  background: var(--blue-100);
}
.quick-label {
  font-size: 11px;
  color: var(--gray-400);
  align-self: center;
}

/* MAIN CONTENT */
main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* SECTION */
.section {
  margin-bottom: 3rem;
}
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.section-title {
  font-size: 20px;
  font-weight: 500;
  color: var(--gray-900);
  letter-spacing: -0.3px;
}
.section-link {
  font-size: 13px;
  color: var(--blue-600);
  text-decoration: none;
  font-weight: 500;
}
.section-link:hover {
  text-decoration: underline;
}

/* CATEGORY CARDS */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.cat-scroller {
  display: none;
}
.cat-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  padding: 0;
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-300);
}
.cat-card.active {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(24, 95, 165, 0.1);
}
.cat-card-visual {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  position: relative;
}
.cat-card-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 10%,
    rgba(15, 23, 42, 0.18) 100%
  );
}
.cat-card-body {
  padding: 1rem;
}
.cat-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.35rem;
  line-height: 1.35;
}
.cat-card-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--gray-500);
  margin-bottom: 0.9rem;
  min-height: 42px;
}
.cat-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-600);
}

/* FEATURED */
.featured-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 1.5rem;
}
.featured-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--blue-50), var(--blue-100));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
}
.featured-badge {
  display: inline-block;
  background: var(--blue-50);
  color: var(--blue-600);
  font-size: 11px;
  font-weight: 500;
  border-radius: 20px;
  padding: 3px 10px;
  margin-bottom: 6px;
}
.featured-name {
  font-size: 20px;
  font-weight: 500;
  color: var(--gray-900);
  margin-bottom: 4px;
  letter-spacing: -0.2px;
}
.featured-class {
  font-size: 13px;
  color: var(--gray-400);
  margin-bottom: 8px;
}
.featured-desc {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.65;
  margin-bottom: 1rem;
}
.featured-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.meta-item {
}
.meta-label {
  font-size: 11px;
  color: var(--gray-400);
  margin-bottom: 2px;
}
.meta-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-900);
}
.featured-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
.btn-detail {
  background: var(--blue-600);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.15s;
}
.btn-detail:hover {
  background: var(--blue-800);
}
.btn-save {
  background: none;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 8px 18px;
  font-size: 13px;
  color: var(--gray-600);
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: border-color 0.15s;
}
.btn-save:hover {
  border-color: var(--gray-400);
}

/* DRUG GRID */
.drug-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.drug-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  cursor: pointer;
  transition:
    transform 0.15s,
    box-shadow 0.15s,
    border-color 0.15s;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.drug-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--gray-300, #c5cad3);
}
.drug-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 12px;
}
.drug-card-pack {
  width: 74px;
  height: 74px;
  border-radius: 14px;
  border: 1px solid var(--gray-200);
  background: linear-gradient(180deg, #fff, var(--gray-50));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.05);
}
.drug-card-pack img,
.modal-drug-pack img,
.modal-pack-image img,
.modal-drug-hero-pack img,
.modal-list-pack img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.drug-card-pack-fallback {
  width: 100%;
  height: 100%;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--blue-50), #ffffff);
}
.drug-card-pack-brand {
  font-size: 9px;
  font-weight: 700;
  color: var(--blue-800);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.drug-card-pack-name {
  font-size: 10px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--gray-900);
}
.ic-blue {
  background: var(--blue-50);
}
.ic-teal {
  background: var(--teal-50);
}
.ic-amber {
  background: var(--amber-50);
}
.ic-coral {
  background: var(--coral-50);
}
.ic-green {
  background: var(--green-50);
}
.ic-purple {
  background: var(--purple-50);
}
.drug-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-900);
  margin-bottom: 3px;
}
.drug-class {
  font-size: 12px;
  color: var(--gray-400);
  margin-bottom: 8px;
}
.drug-desc {
  font-size: 12.5px;
  color: var(--gray-600);
  line-height: 1.55;
  margin-bottom: 12px;
}
.drug-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drug-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.tag {
  font-size: 10.5px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 20px;
}
.tag-rx {
  background: #fef3c7;
  color: #92400e;
}
.tag-otc {
  background: var(--green-50);
  color: var(--green-800);
}
.tag-info {
  background: var(--blue-50);
  color: var(--blue-800);
}
.tag-warn {
  background: var(--amber-50);
  color: var(--amber-800);
}
.card-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: background 0.15s;
}
.drug-card:hover .card-arrow {
  background: var(--blue-50);
}

/* INFO STRIP */
.info-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 3rem;
}
.info-box {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}
.info-box-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.info-box-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.info-box-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-900);
}
.info-box-desc {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.55;
}

/* ALPHABET BROWSE */
.alpha-grid {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.alpha-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--gray-200);
  background: #fff;
  color: var(--gray-600);
  transition: all 0.12s;
  font-family: inherit;
}
.alpha-btn:hover {
  background: var(--blue-50);
  border-color: var(--blue-400);
  color: var(--blue-600);
}
.alpha-btn.active {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: #fff;
}

/* MODAL */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal-backdrop.open {
  display: flex;
}
.modal {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 2rem;
  max-width: 900px; /* sebelumnya 540px */
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.2s ease;
}
@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.modal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.modal-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  overflow: hidden;
}
.modal-icon-hidden {
  display: none;
}
.modal-icon-image {
  width: 78px;
  height: 78px;
  padding: 6px;
  border: 1px solid var(--gray-200);
  background: linear-gradient(180deg, #fff, var(--gray-50));
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}
.modal-pack-image {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
}
.modal-title {
  font-size: 22px;
  font-weight: 500;
  color: var(--gray-900);
  letter-spacing: -0.3px;
}
.modal-subtitle {
  font-size: 13px;
  color: var(--gray-400);
  margin-top: 2px;
}
.modal-close {
  margin-left: auto;
  background: var(--gray-100);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: var(--gray-600);
  align-self: flex-start;
}
.modal-close:hover {
  background: var(--gray-200);
}
.modal-section {
  margin-bottom: 1.25rem;
}
.modal-section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--gray-400);
  margin-bottom: 8px;
}
.modal-section-body {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.7;
}
.modal-drug-hero {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 1.25rem;
}
.modal-drug-hero-visual {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.modal-drug-hero-pack {
  width: 100%;
  max-width: 180px;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  border: 1px solid var(--gray-200);
  background: linear-gradient(180deg, #ffffff, var(--gray-50));
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}
.modal-drug-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}
.modal-category-hero {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 1.25rem;
}
.modal-category-cover {
  min-height: 220px;
  border-radius: var(--radius-lg);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(148, 163, 184, 0.2);
}
.modal-category-summary {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}
.modal-category-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.modal-meta-box {
  background: var(--gray-50);
  border-radius: var(--radius-md);
  padding: 10px 14px;
}
.modal-meta-label {
  font-size: 11px;
  color: var(--gray-400);
  margin-bottom: 3px;
}
.modal-meta-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-900);
}
.modal-warning {
  background: #fef9ec;
  border: 1px solid #fad67b;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 13px;
  color: #7a5a00;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 1rem;
}
.modal-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
/* .modal-list {
      display: grid;
      gap: 10px;
    } */
.modal-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.modal-list-rich {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.modal-list-item {
  display: flex;
  flex-direction: column; /* ubah jadi vertikal */
  align-items: flex-start;
  height: 100%;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
}
.modal-list-item strong {
  display: block;
  font-size: 14px;
  color: var(--gray-900);
  margin-bottom: 2px;
}
.modal-list-item span {
  font-size: 12px;
  color: var(--gray-500);
}
.modal-list-copy {
  flex: 1;
  min-width: 0;
}
.modal-list-pack {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  background: #fff;
  overflow: hidden;
  flex-shrink: 0;
}
.modal-drug-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.95), rgba(255, 255, 255, 1));
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.modal-drug-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
  border-color: rgba(14, 165, 233, 0.22);
}
.modal-drug-visual {
  display: flex;
  align-items: stretch;
}
.modal-drug-pack {
  width: 96px;
  height: 120px;
  border-radius: 14px;
  border: 1px solid var(--gray-200);
  background: #fff;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}
.modal-drug-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 8px;
}
.modal-drug-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: baseline;
}
.modal-drug-topline strong {
  font-size: 15px;
  color: var(--gray-900);
}
.modal-drug-topline span {
  font-size: 12px;
  color: var(--gray-500);
}
.modal-drug-class {
  font-size: 12px;
  color: var(--gray-500);
}
.modal-drug-desc {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.6;
}
.modal-drug-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.modal-drug-action {
  grid-column: 1 / -1;
  width: 100%;
}
.modal-cta {
  display: flex;
  gap: 8px;
  margin-top: 1rem;
}

/* FOOTER */
footer {
  background: var(--gray-900);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 2rem 2rem;
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-brand {
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.75rem;
}
.footer-logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.footer-logo-name {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
}
.footer-desc {
  font-size: 13px;
  line-height: 1.65;
  max-width: 220px;
}
.footer-col-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 6px;
}
.footer-col ul li a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.12s;
}
.footer-col ul li a:hover {
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy {
  font-size: 12px;
}
.footer-disclaimer {
  font-size: 11px;
  max-width: 400px;
  text-align: right;
  line-height: 1.5;
}

/* ANIMATIONS */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate {
  animation: fadeIn 0.4s ease both;
}
.delay-1 {
  animation-delay: 0.05s;
}
.delay-2 {
  animation-delay: 0.1s;
}
.delay-3 {
  animation-delay: 0.15s;
}
.delay-4 {
  animation-delay: 0.2s;
}
.delay-5 {
  animation-delay: 0.25s;
}
.delay-6 {
  animation-delay: 0.3s;
}

@media (max-width: 768px) {
  .modal-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .modal-drug-hero {
    grid-template-columns: 1fr;
  }
  .modal-drug-hero-visual {
    justify-content: flex-start;
  }
  .modal-drug-hero-pack {
    max-width: 200px;
  }
  .modal-category-hero {
    grid-template-columns: 1fr;
  }
  .modal-category-cover {
    min-height: 180px;
  }
  .modal-list-rich {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .modal-list {
    grid-template-columns: 1fr;
  }
  .modal-icon-image {
    width: 68px;
    height: 68px;
  }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero {
    background-position: center 30%;
  }
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-card {
    max-width: 100%;
  }
  .hero h1 {
    font-size: 34px;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .cat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .featured-card {
    grid-template-columns: 56px 1fr;
  }
  .featured-actions {
    flex-direction: row;
    align-items: center;
    grid-column: 1 / -1;
  }
}
@media (max-width: 640px) {
  .hero {
    background-position: center 26%;
  }
  .nav-links {
    display: none;
  }
  .nav-mobile-toggle {
    display: block;
  }
  .hero {
    padding: 3rem 1.25rem 2.5rem;
  }
  .hero h1 {
    font-size: 28px;
  }
  main {
    padding: 2rem 1.25rem;
  }
  .drug-grid {
    grid-template-columns: 1fr 1fr;
  }
  .info-strip {
    grid-template-columns: 1fr;
  }
  .cat-grid {
    grid-template-columns: 1fr;
  }
  .featured-card {
    grid-template-columns: 1fr;
  }
  .featured-icon-wrap {
    display: none;
  }
  .featured-actions {
    flex-direction: row;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-disclaimer {
    text-align: left;
  }
  .alpha-btn {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }
  .modal-grid {
    grid-template-columns: 1fr;
  }
  .modal-category-meta {
    grid-template-columns: 1fr;
  }
  .modal-drug-card {
    grid-template-columns: 1fr;
  }
  .modal-drug-visual {
    justify-content: center;
  }
  .modal-drug-hero-pack {
    max-width: min(180px, 100%);
  }
  .modal-drug-pack {
    width: min(160px, 100%);
    height: 168px;
  }
  .modal-cta {
    flex-direction: column;
  }
}
