:root {
  --bg: #f7fbf7;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-solid: #ffffff;
  --text: #0c1b13;
  --muted: rgba(12, 27, 19, 0.72);
  --border: rgba(14, 45, 28, 0.12);
  --shadow: 0 18px 50px rgba(7, 20, 13, 0.14);
  --shadow-soft: 0 10px 28px rgba(7, 20, 13, 0.1);
  --green: #1a9b63;
  --green-2: #0f6a44;
  --green-3: #b6f2c9;
  --accent: #14b86d;
  --danger: #b42318;
  --radius-xl: 26px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 12px;
  --font-display:
    "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia,
    serif;
  --font-body: Charter, "Palatino Linotype", Palatino, Georgia, serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-body);
  letter-spacing: 0.01em;
}

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

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.mesh {
  position: absolute;
  inset: -120px;
  background:
    radial-gradient(
      900px 520px at 18% 18%,
      rgba(20, 184, 109, 0.22),
      rgba(20, 184, 109, 0) 60%
    ),
    radial-gradient(
      760px 540px at 84% 22%,
      rgba(26, 155, 99, 0.16),
      rgba(26, 155, 99, 0) 62%
    ),
    radial-gradient(
      980px 680px at 50% 86%,
      rgba(182, 242, 201, 0.28),
      rgba(182, 242, 201, 0) 64%
    ),
    linear-gradient(180deg, #f7fbf7 0%, #f3fbf4 40%, #f7fbf7 100%);
  filter: saturate(1.05);
}

.grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.14'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  opacity: 0.5;
  pointer-events: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(247, 251, 247, 0.6);
  border-bottom: 1px solid var(--border);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 14px;
}

.brand__mark {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: radial-gradient(
    circle at 30% 30%,
    #d9ffe6,
    #14b86d 58%,
    #0f6a44 100%
  );
  box-shadow: 0 0 0 6px rgba(20, 184, 109, 0.12);
}

.brand__text {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 18px;
}

.topnav {
  display: flex;
  gap: 10px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.6);
}

.topnav__link {
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(12, 27, 19, 0.82);
  font-size: 14px;
}

.topnav__link:hover {
  background: rgba(20, 184, 109, 0.08);
}

.topnav__link--active {
  background: rgba(20, 184, 109, 0.12);
  color: var(--green-2);
  font-weight: 700;
}

.topbar__actions {
  display: flex;
  gap: 10px;
}

.progress {
  height: 2px;
  background: rgba(14, 45, 28, 0.08);
}

.progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), rgba(20, 184, 109, 0.1));
  transition: width 120ms ease;
}

.btn {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.62);
  padding: 10px 14px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(20, 184, 109, 0.22);
}

.btn:active {
  transform: translateY(0px);
}

.btn--primary {
  border-color: rgba(20, 184, 109, 0.36);
  background: linear-gradient(
    180deg,
    rgba(20, 184, 109, 0.96),
    rgba(15, 106, 68, 0.98)
  );
  color: #f1fff6;
  box-shadow: 0 16px 40px rgba(20, 184, 109, 0.24);
}

.btn--primary:hover {
  border-color: rgba(20, 184, 109, 0.5);
  box-shadow: 0 22px 60px rgba(20, 184, 109, 0.28);
}

.btn--soft {
  border-color: rgba(20, 184, 109, 0.22);
  background: rgba(20, 184, 109, 0.1);
  color: var(--green-2);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.35);
}

.hero {
  padding: 84px 0 22px;
}

.hero--home {
  padding-bottom: 44px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: start;
}

.kicker {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  color: rgba(12, 27, 19, 0.75);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.55);
  width: fit-content;
}

.hero__title {
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-size: clamp(36px, 3.7vw, 54px);
}

.hero__accent {
  background: linear-gradient(
    120deg,
    rgba(15, 106, 68, 0.12),
    rgba(20, 184, 109, 0.24)
  );
  box-shadow: inset 0 -0.55em 0 rgba(182, 242, 201, 0.46);
  border-radius: 12px;
  padding: 0 8px;
}

.hero__subtitle {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

.hero__cta {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.pillrow {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  font-size: 13px;
  color: rgba(12, 27, 19, 0.74);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.5);
}

.hero__panel {
  position: sticky;
  top: 92px;
}

.section {
  padding: 54px 0;
}

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

.section--result {
  padding-top: 26px;
}

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
}

.section__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -0.01em;
}

.section__desc {
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
  font-size: 14px;
  line-height: 1.6;
}

.card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card--preview {
  background: rgba(255, 255, 255, 0.68);
}

.card__header {
  padding: 18px 18px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card__title {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 16px;
}

.card__body {
  padding: 12px 18px 18px;
}

.card__footer {
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(14, 45, 28, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.badge {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(12, 27, 19, 0.78);
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(20, 184, 109, 0.2);
  background: rgba(20, 184, 109, 0.08);
}

.badge--soft {
  border-color: rgba(14, 45, 28, 0.12);
  background: rgba(255, 255, 255, 0.55);
}

.divider {
  height: 1px;
  background: rgba(14, 45, 28, 0.1);
  margin: 14px 0;
}

.hint {
  font-size: 12px;
  color: rgba(12, 27, 19, 0.6);
}

.mini {
  display: grid;
  gap: 4px;
}

.mini__label {
  font-size: 12px;
  color: rgba(12, 27, 19, 0.62);
}

.mini__value {
  font-size: 14px;
  font-weight: 600;
}

.spark {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  align-items: end;
  height: 48px;
}

.spark span {
  display: block;
  height: calc(var(--v) * 46px);
  border-radius: 14px;
  background: linear-gradient(
    180deg,
    rgba(20, 184, 109, 0.88),
    rgba(15, 106, 68, 0.42)
  );
  border: 1px solid rgba(20, 184, 109, 0.28);
}

.quiz {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.52);
  box-shadow: var(--shadow);
  padding: 18px;
}

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

.qcard {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(14, 45, 28, 0.12);
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.qcard__head {
  padding: 14px 14px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(14, 45, 28, 0.08);
}

.qmeta {
  display: grid;
  gap: 3px;
}

.qmeta__k {
  font-size: 12px;
  color: rgba(12, 27, 19, 0.6);
}

.qmeta__t {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 15px;
}

.tag {
  font-size: 12px;
  font-weight: 700;
  color: rgba(15, 106, 68, 0.92);
  background: rgba(182, 242, 201, 0.5);
  border: 1px solid rgba(20, 184, 109, 0.18);
  padding: 6px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.qcard__body {
  padding: 12px 14px 14px;
}

.options {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.opt {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(14, 45, 28, 0.1);
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease;
}

.opt:hover {
  transform: translateY(-1px);
  border-color: rgba(20, 184, 109, 0.24);
  box-shadow: 0 10px 24px rgba(7, 20, 13, 0.08);
  background: rgba(255, 255, 255, 0.78);
}

.opt input {
  margin-top: 3px;
  accent-color: var(--accent);
}

.opt span {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(12, 27, 19, 0.84);
}

.quiz__footer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(14, 45, 28, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.summary {
  flex: 1;
  min-width: 240px;
  color: rgba(12, 27, 19, 0.68);
  font-size: 13px;
  line-height: 1.5;
}

/* Result Layout - Stable & No Floating Overlap */
.result-layout {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.result-columns {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 900px) {
  .result-columns {
    grid-template-columns: 1fr;
  }
}

.result__profile {
  position: relative;
  background: #ffffff !important;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(14, 45, 28, 0.14);
  box-shadow: 0 8px 24px rgba(7, 20, 13, 0.06);
}

.result__grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Profile Details */
.profile-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.profile-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(20, 184, 109, 0.12);
  color: var(--green-2);
  border: 1px solid rgba(20, 184, 109, 0.2);
}

.db-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green-2);
  background: rgba(182, 242, 201, 0.45);
  border: 1px solid rgba(20, 184, 109, 0.3);
  padding: 6px 10px;
  border-radius: 999px;
  width: fit-content;
}

.kv {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(14, 45, 28, 0.08);
}

.kv:last-child {
  border-bottom: 0;
}

.kv__k {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(12, 27, 19, 0.6);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.kv__v {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.text-brand {
  color: var(--green-2);
}

/* Recommendation Card */
.rec-card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(14, 45, 28, 0.14);
  background: #ffffff !important;
  box-shadow: 0 8px 24px rgba(7, 20, 13, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.rec-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(7, 20, 13, 0.12);
  border-color: rgba(20, 184, 109, 0.4);
}

.rec-card--champion {
  border: 2px solid #14b86d !important;
  box-shadow: 0 14px 40px rgba(20, 184, 109, 0.16) !important;
}

.rec-card__banner {
  background: linear-gradient(90deg, #14b86d, #0f6a44);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 18px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rec-card--selected {
  border: 2px solid #0f6a44 !important;
  box-shadow: 0 0 0 4px rgba(20, 184, 109, 0.25) !important;
}

.rec-card__head {
  padding: 16px 20px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(247, 251, 247, 0.6);
  border-bottom: 1px solid rgba(14, 45, 28, 0.08);
}

.rec-card__brand-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rec-card__rank {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(12, 27, 19, 0.55);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 5px;
}

.rec-card__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--text);
}

.score-badge-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 6px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(20, 184, 109, 0.18), rgba(15, 106, 68, 0.08));
  border: 1px solid rgba(20, 184, 109, 0.3);
}

.score-badge-circle__val {
  font-size: 19px;
  font-weight: 800;
  color: var(--green-2);
  line-height: 1.1;
}

.score-badge-circle__lbl {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(12, 27, 19, 0.6);
  letter-spacing: 0.03em;
}

.rec-card__body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rec-card__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.rec-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.spec-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(14, 45, 28, 0.06);
  border: 1px solid rgba(14, 45, 28, 0.12);
  color: rgba(12, 27, 19, 0.85);
}

.spec-chip--spf {
  background: rgba(20, 184, 109, 0.14);
  color: var(--green-2);
  border-color: rgba(20, 184, 109, 0.32);
  font-weight: 700;
}

.rec-card__tags-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(247, 251, 247, 0.85);
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(14, 45, 28, 0.08);
}

.rec-card__tags-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(12, 27, 19, 0.65);
  display: flex;
  align-items: center;
  gap: 5px;
}

.rec-card__tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-match-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 5px;
  background: #ffffff;
  color: var(--green-2);
  border: 1px solid rgba(20, 184, 109, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.scorebox {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(247, 251, 247, 0.5);
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(14, 45, 28, 0.08);
}

.score {
  display: grid;
  grid-template-columns: 180px 1fr 50px;
  gap: 12px;
  align-items: center;
}

.score__k {
  font-size: 12px;
  font-weight: 600;
  color: rgba(12, 27, 19, 0.7);
  display: flex;
  align-items: center;
  gap: 6px;
}

.bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(14, 45, 28, 0.08);
  overflow: hidden;
}

.bar__fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #14b86d, #0f6a44);
}

.score__v {
  text-align: right;
  font-size: 12px;
  font-weight: 700;
  color: var(--green-2);
}

.rec-card__footer {
  padding: 12px 20px;
  background: rgba(247, 251, 247, 0.6);
  border-top: 1px solid rgba(14, 45, 28, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Modal Overlay & Popup Dialog for Explainable AI */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 20, 13, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-dialog {
  width: 100%;
  max-width: 980px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: #ffffff !important;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(20, 184, 109, 0.3);
  box-shadow: 0 24px 60px rgba(7, 20, 13, 0.3);
  transform: translateY(20px) scale(0.97);
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.modal-overlay.is-active .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-dialog__header {
  padding: 18px 24px 14px;
  background: rgba(247, 251, 247, 0.8);
  border-bottom: 1px solid rgba(14, 45, 28, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.modal-close-btn {
  background: rgba(14, 45, 28, 0.06);
  border: 1px solid rgba(14, 45, 28, 0.12);
  color: var(--text);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

.modal-dialog__body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-dialog__footer {
  padding: 14px 24px;
  background: rgba(247, 251, 247, 0.8);
  border-top: 1px solid rgba(14, 45, 28, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 12px;
}

.explain-panel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 14px;
}

@media (max-width: 900px) {
  .explain-panel-grid {
    grid-template-columns: 1fr;
  }
}

.explain-box-col {
  padding: 16px;
  border-radius: 10px;
  background: rgba(247, 251, 247, 0.65);
  border: 1px solid rgba(14, 45, 28, 0.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.explain-box-col__title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--green-2);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.explain-formula-badge {
  display: block;
  margin-top: 6px;
  padding: 8px 12px;
  background: rgba(20, 184, 109, 0.08);
  border: 1px dashed rgba(20, 184, 109, 0.3);
  border-radius: 8px;
  font-family: monospace;
  font-size: 12px;
  color: var(--green-2);
  line-height: 1.5;
}

.muted {
  margin: 0;
  color: rgba(12, 27, 19, 0.68);
  font-size: 14px;
  line-height: 1.6;
}

.list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: rgba(12, 27, 19, 0.78);
  line-height: 1.55;
  font-size: 13px;
}

.footer {
  padding: 40px 0 44px;
  border-top: 1px solid rgba(14, 45, 28, 0.12);
  background: rgba(247, 251, 247, 0.45);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__name {
  font-family: var(--font-display);
  font-weight: 650;
}

.footer__sep {
  opacity: 0.5;
  margin: 0 8px;
}

.footer__tribute {
  color: rgba(12, 27, 19, 0.72);
}

.footer__link {
  font-size: 13px;
  color: rgba(12, 27, 19, 0.72);
  text-decoration: underline;
  text-decoration-color: rgba(20, 184, 109, 0.38);
  text-underline-offset: 4px;
}

.page-hero {
  padding: 52px 0 8px;
}

.page-hero__inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.page-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.page-hero__desc {
  margin: 12px 0 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.kicker--soft {
  background: rgba(255, 255, 255, 0.64);
}

.stepper {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.58);
}

.stepper__item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(12, 27, 19, 0.62);
  font-size: 14px;
}

.stepper__item--active,
.stepper__item--done {
  color: var(--green-2);
  font-weight: 700;
}

.stepper__dot {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(20, 184, 109, 0.22);
}

.stepper__line {
  width: 40px;
  height: 1px;
  background: rgba(14, 45, 28, 0.16);
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline__item {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 12px;
  align-items: start;
}

.timeline__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--green-2));
  margin-top: 6px;
  box-shadow: 0 0 0 6px rgba(20, 184, 109, 0.1);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature-card {
  min-height: 100%;
}

.feature-card__icon {
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--green-2);
  background: rgba(182, 242, 201, 0.44);
  border: 1px solid rgba(20, 184, 109, 0.18);
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow);
}

.cta-panel__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.empty-card {
  min-height: 220px;
}

.section--professional {
  padding-top: 42px;
}

.professional-panel {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.88),
    rgba(244, 250, 246, 0.86)
  );
}

.professional-panel__body {
  padding: 26px;
}

.professional-panel__top {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.professional-panel__eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(15, 106, 68, 0.82);
}

.professional-panel__title {
  margin-bottom: 10px;
}

.section__desc--wide {
  max-width: 100%;
}

.professional-stats {
  display: grid;
  gap: 12px;
}

.professional-stats__item {
  padding: 18px 18px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(14, 45, 28, 0.08);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 28px rgba(7, 20, 13, 0.06);
}

.professional-stats__value {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  margin-bottom: 8px;
  color: var(--green-2);
}

.professional-stats__label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.professional-stats__meta {
  display: block;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(12, 27, 19, 0.64);
}

.professional-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.professional-card {
  min-height: 100%;
  padding: 18px 18px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(14, 45, 28, 0.08);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 28px rgba(7, 20, 13, 0.05);
}

.professional-card__head {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.professional-card__index {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--green-2);
  background: linear-gradient(
    180deg,
    rgba(182, 242, 201, 0.45),
    rgba(255, 255, 255, 0.9)
  );
  border: 1px solid rgba(20, 184, 109, 0.18);
}

.professional-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

@media (max-width: 980px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__panel {
    position: relative;
    top: auto;
  }

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

  .result-columns {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .result__profile {
    position: relative;
    top: auto;
  }

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

  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
  }

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

/* Desktop: Hide Mobile Dock */
.mobile-dock {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 84px !important;
  }

  /* Sembunyikan topnav di dalam header saat mobile */
  .topbar .topnav {
    display: none !important;
  }

  /* Tampilkan Mobile Bottom Dock Mandiri di Bawah Layar */
  .mobile-dock {
    position: fixed;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9990;
    width: min(calc(100% - 16px), 430px);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(20, 184, 109, 0.3);
    box-shadow: 0 12px 36px rgba(7, 20, 13, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    padding: 5px 6px;
    display: flex !important;
    align-items: center;
    justify-content: space-around;
    gap: 2px;
  }

  .mobile-dock__link {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 2px;
    font-size: 10px;
    font-weight: 600;
    color: rgba(12, 27, 19, 0.7);
    border-radius: 999px;
    text-decoration: none;
    transition: all 160ms ease;
    white-space: nowrap;
  }

  .mobile-dock__link i {
    font-size: 15px;
    line-height: 1;
  }

  .mobile-dock__link span {
    font-size: 9.5px;
    font-weight: 600;
    line-height: 1;
  }

  .mobile-dock__link:hover {
    color: var(--green-2);
    background: rgba(20, 184, 109, 0.08);
  }

  .mobile-dock__link--active {
    background: linear-gradient(135deg, rgba(20, 184, 109, 0.18), rgba(15, 106, 68, 0.1)) !important;
    color: var(--green-2) !important;
    font-weight: 700 !important;
    box-shadow: inset 0 0 0 1px rgba(20, 184, 109, 0.25);
  }

  /* Modal Mobile Optimization */
  .modal-overlay {
    padding: 12px 10px;
  }

  .modal-dialog {
    max-height: 92vh;
    border-radius: var(--radius-lg);
  }

  .modal-dialog__header {
    padding: 14px 16px 12px;
    gap: 8px;
  }

  .modal-dialog__header .card__title {
    font-size: 15px;
    line-height: 1.3;
  }

  .modal-dialog__header .badge {
    display: none;
  }

  .modal-dialog__body {
    padding: 16px 14px;
  }

  .explain-panel-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 10px;
  }

  .explain-box-col {
    padding: 14px 12px;
  }

  .explain-box-col__title {
    font-size: 12px;
  }

  .explain-formula-badge {
    font-size: 11px;
    padding: 6px 10px;
    word-break: break-word;
  }

  .modal-dialog__footer {
    padding: 12px 16px;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  .modal-dialog__footer .hint {
    text-align: center;
    font-size: 11px;
  }

  .modal-dialog__footer .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 620px) {
  .container {
    width: calc(100% - 20px);
    padding-left: 0;
    padding-right: 0;
  }

  .topbar__inner {
    padding: 0 4px;
    justify-content: space-between;
    gap: 8px;
  }

  .brand {
    gap: 8px;
    min-width: 0;
    flex-shrink: 1;
  }

  .brand__text {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
  }

  .topbar__actions {
    display: flex !important;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }

  .user-menu-btn {
    padding: 4px 8px;
    gap: 6px;
  }

  .user-menu-name {
    max-width: 65px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
  }

  .page-hero {
    padding: 28px 0 8px;
  }

  .page-hero__title {
    font-size: 24px;
  }

  .page-hero__desc {
    font-size: 13px;
    line-height: 1.55;
  }

  .page-hero__inner,
  .stepper {
    align-items: flex-start;
  }

  .stepper {
    width: 100%;
    justify-content: space-between;
    padding: 8px 12px;
  }

  .stepper__item {
    font-size: 12px;
    gap: 6px;
  }

  .stepper__dot {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }

  .stepper__line {
    width: 24px;
  }

  /* Quiz on Mobile */
  .qcard__head {
    padding: 14px 14px 10px;
  }

  .qcard__body {
    padding: 12px 14px 14px;
  }

  .opt {
    padding: 10px 12px;
    font-size: 13px;
  }

  .quiz__footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .quiz__actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Result Cards on Mobile */
  .rec-card__head {
    padding: 12px 14px 10px;
  }

  .rec-card__brand {
    font-size: 17px;
  }

  .score-badge-circle {
    min-width: 60px;
    padding: 4px 8px;
  }

  .score-badge-circle__val {
    font-size: 16px;
  }

  .score-badge-circle__lbl {
    font-size: 9px;
  }

  .rec-card__body {
    padding: 12px 14px;
    gap: 10px;
  }

  .rec-card__name {
    font-size: 15px;
  }

  .rec-card__chips {
    gap: 5px;
  }

  .spec-chip {
    font-size: 11px;
    padding: 3px 8px;
  }

  .tag-match-pill {
    font-size: 10px;
    padding: 2px 6px;
  }

  .scorebox {
    padding: 10px 12px;
    gap: 6px;
  }

  .score {
    grid-template-columns: 140px 1fr 44px;
    gap: 8px;
  }

  .score__k {
    font-size: 11px;
  }

  .score__v {
    font-size: 11px;
  }

  .rec-card__footer {
    padding: 10px 14px;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }

  .rec-card__footer .hint {
    text-align: center;
    font-size: 11px;
  }

  .rec-card__footer .btn {
    width: 100%;
    justify-content: center;
  }

  .professional-panel__body {
    padding: 16px;
  }

  .professional-card__head {
    grid-template-columns: 42px 1fr;
  }

  .professional-card__index {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 12px;
  }

  .professional-card__title {
    font-size: 17px;
  }

  .professional-stats__value {
    font-size: 22px;
  }
}

/* ==========================================================
   AUTHENTICATION & USER PROFILE STYLES
   ========================================================== */

.auth-main {
  padding: 60px 0 40px;
  min-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
}

.auth-container {
  display: flex;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  padding: 36px 32px;
  background: #ffffff !important;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(20, 184, 109, 0.25);
  box-shadow: 0 20px 50px rgba(7, 20, 13, 0.08);
}

.auth-card__header {
  text-align: center;
  margin-bottom: 24px;
}

.auth-icon-badge {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(20, 184, 109, 0.16), rgba(15, 106, 68, 0.1));
  color: var(--green-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border: 1px solid rgba(20, 184, 109, 0.3);
}

.auth-card__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--text);
  font-weight: 700;
}

.auth-card__subtitle {
  margin: 0;
  font-size: 13.5px;
  color: rgba(12, 27, 19, 0.68);
  line-height: 1.5;
}

.auth-alert {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
}

.auth-alert--error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #f87171;
}

.auth-alert--success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #4ade80;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(14, 45, 28, 0.16);
  background: #fbfdfc;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: all 160ms ease;
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(20, 184, 109, 0.16);
}

.password-wrap,
.form-input-pwd-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-wrap .form-input,
.form-input-pwd-wrap .form-input {
  width: 100%;
  padding-right: 44px;
}

.btn-toggle-pwd {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: rgba(12, 27, 19, 0.45);
  cursor: pointer;
  padding: 6px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 150ms ease;
  z-index: 2;
}

.btn-toggle-pwd:hover {
  color: var(--green-2);
}

.auth-submit-btn {
  width: 100%;
  padding: 12px;
  justify-content: center;
  font-size: 14.5px;
  font-weight: 650;
  margin-top: 6px;
}

.auth-card__footer {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(14, 45, 28, 0.08);
  text-align: center;
  font-size: 13px;
  color: rgba(12, 27, 19, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.auth-link {
  color: var(--green-2);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 150ms ease;
}

.auth-link:hover {
  text-decoration: underline;
  color: #0d5436;
}

/* ==========================================================
   AUTHENTICATION & NOTIFICATION HEADER (CLEAN & SLEEK)
   ========================================================== */

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Notification Bell */
.notif-wrapper {
  position: relative;
}

.notif-bell-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.75);
  color: var(--text);
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 180ms ease;
}

.notif-bell-btn:hover,
.notif-bell-btn.is-active {
  background: #f0fdf4;
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.04);
}

.notif-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  min-width: 17px;
  height: 17px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
}

.notif-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 330px;
  background: #ffffff;
  border: 1px solid rgba(14, 45, 28, 0.12);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(7, 20, 13, 0.14);
  z-index: 100;
  overflow: hidden;
}

.notif-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f8faf9;
  border-bottom: 1px solid rgba(14, 45, 28, 0.08);
}

.notif-dropdown-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-mark-all-read {
  background: transparent;
  border: none;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  transition: all 150ms ease;
}

.btn-mark-all-read:hover {
  background: #e6f9ed;
}

.notif-dropdown-list {
  max-height: 275px;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: rgba(20, 184, 109, 0.35) #f8faf9;
}

.notif-dropdown-list::-webkit-scrollbar {
  width: 5px;
}

.notif-dropdown-list::-webkit-scrollbar-track {
  background: #f8faf9;
}

.notif-dropdown-list::-webkit-scrollbar-thumb {
  background: rgba(20, 184, 109, 0.35);
  border-radius: 4px;
}

.notif-dropdown-list::-webkit-scrollbar-thumb:hover {
  background: rgba(20, 184, 109, 0.65);
}

.notif-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(14, 45, 28, 0.06);
  cursor: pointer;
  transition: background 150ms ease;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-item:hover {
  background: #f4fbf6;
}

.notif-item.is-unread {
  background: #f0fdf4;
}

.notif-item.is-unread::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.notif-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.notif-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #14b86d, #0f6a44);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.notif-type-icon {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: #ffffff;
  border: 1.5px solid #ffffff;
}

.notif-type-icon--like {
  background: #ef4444;
}

.notif-type-icon--comment {
  background: #14b86d;
}

.notif-type-icon--reply {
  background: #0284c7;
}

.notif-type-icon--mention {
  background: #8b5cf6;
}

.notif-body {
  flex: 1;
  min-width: 0;
}

.notif-text {
  font-size: 12px;
  line-height: 1.4;
  color: var(--text);
  margin: 0 0 3px;
}

.notif-text strong {
  font-weight: 700;
  color: #07140d;
}

.notif-time {
  font-size: 10.5px;
  color: rgba(12, 27, 19, 0.5);
}

.notif-empty {
  padding: 32px 16px;
  text-align: center;
  color: rgba(12, 27, 19, 0.55);
  font-size: 12.5px;
}

.notif-empty i {
  font-size: 26px;
  color: rgba(20, 184, 109, 0.4);
  margin-bottom: 6px;
  display: block;
}

/* User Menu Pill Dropdown */
.user-menu-wrapper {
  position: relative;
}

.user-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  border: 1px solid rgba(20, 184, 109, 0.3);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: all 160ms ease;
}

.user-menu-btn:hover,
.user-menu-btn.is-active {
  background: #f0fdf4;
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(20, 184, 109, 0.15);
}

.user-menu-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #14b86d, #0f6a44);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.user-menu-name {
  max-width: 130px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-menu-chevron {
  font-size: 10px;
  color: rgba(12, 27, 19, 0.5);
  transition: transform 180ms ease;
}

.user-menu-btn.is-active .user-menu-chevron {
  transform: rotate(180deg);
}

.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 220px;
  background: #ffffff;
  border: 1px solid rgba(14, 45, 28, 0.12);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(7, 20, 13, 0.14);
  z-index: 100;
  padding: 8px;
}

.user-menu-info {
  padding: 8px 10px 10px;
}

.user-menu-info-name {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-menu-info-sub {
  font-size: 11.5px;
  color: var(--accent);
  font-weight: 600;
}

.user-menu-divider {
  height: 1px;
  background: rgba(14, 45, 28, 0.08);
  margin: 4px 0;
}

.user-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 650;
  color: var(--text);
  text-decoration: none;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: all 140ms ease;
}

.user-menu-item i {
  font-size: 14px;
  width: 18px;
  text-align: center;
  color: rgba(12, 27, 19, 0.6);
}

.user-menu-item:hover {
  background: #f0fdf4;
  color: var(--accent);
}

.user-menu-item:hover i {
  color: var(--accent);
}

.user-menu-item--danger {
  color: #ef4444;
}

.user-menu-item--danger i {
  color: #ef4444;
}

.user-menu-item--danger:hover {
  background: #fef2f2;
  color: #dc2626;
}

.user-menu-item--danger:hover i {
  color: #dc2626;
}

/* ==========================================================
   MEMORIES & FEED STYLES
   ========================================================== */

.memories-main {
  padding: 36px 0 60px;
  min-height: calc(100vh - 180px);
}

.memories-gate {
  max-width: 580px;
  margin: 40px auto;
}

.memories-gate-card {
  padding: 42px 32px;
  text-align: center;
  background: #ffffff !important;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(20, 184, 109, 0.25);
  box-shadow: 0 20px 50px rgba(7, 20, 13, 0.08);
}

.memories-gate-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(20, 184, 109, 0.16), rgba(15, 106, 68, 0.12));
  color: var(--green-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  border: 1px solid rgba(20, 184, 109, 0.3);
}

.memories-gate-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 24px;
}

.memories-gate-desc {
  margin: 0 0 24px;
  font-size: 14px;
  color: rgba(12, 27, 19, 0.7);
  line-height: 1.6;
}

.memories-gate-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* Memories Header */
.memories-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(14, 45, 28, 0.08);
}

.memories-title {
  margin: 8px 0 6px;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.2;
}

.memories-verse {
  margin: 6px 0 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--green-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(20, 184, 109, 0.08);
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(20, 184, 109, 0.2);
  line-height: 1.4;
}

.memories-verse i {
  font-size: 11px;
  color: var(--accent);
}

.memories-verse em {
  font-style: italic;
  color: #0c1b13;
}

.memories-verse strong {
  font-weight: 700;
  color: var(--green-2);
}

.memories-quote {
  margin: 4px 0 10px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15.5px;
  font-weight: 600;
  color: #0c2016;
  line-height: 1.55;
  max-width: 650px;
}

.memories-desc {
  margin: 0;
  font-size: 14px;
  color: rgba(12, 27, 19, 0.72);
  max-width: 620px;
  line-height: 1.55;
}

/* Memories Feed & Post Cards */
.memories-feed {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.memories-loading,
.memories-empty {
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(20, 184, 109, 0.18);
  color: rgba(12, 27, 19, 0.65);
  font-size: 15px;
}

.memories-empty-icon {
  font-size: 42px;
  color: var(--accent);
  margin-bottom: 14px;
}

.post-card {
  background: #ffffff !important;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(14, 45, 28, 0.1);
  box-shadow: 0 12px 36px rgba(7, 20, 13, 0.06);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.post-card:hover {
  box-shadow: 0 18px 45px rgba(7, 20, 13, 0.09);
}

.post-card__head {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(14, 45, 28, 0.06);
}

.post-author-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.post-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #14b86d, #0f6a44);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(20, 184, 109, 0.25);
  flex-shrink: 0;
}

.post-author-info {
  display: flex;
  flex-direction: column;
}

.post-author-name {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.2;
}

.post-meta-sub {
  font-size: 12px;
  color: rgba(12, 27, 19, 0.55);
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-menu-wrap {
  position: relative;
}

.post-menu-btn {
  background: transparent;
  border: none;
  color: rgba(12, 27, 19, 0.5);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: all 150ms ease;
}

.post-menu-btn:hover {
  background: rgba(14, 45, 28, 0.06);
  color: var(--text);
}

.post-menu-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(14, 45, 28, 0.12);
  box-shadow: 0 10px 30px rgba(7, 20, 13, 0.15);
  min-width: 160px;
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 100;
}

.post-menu-dropdown.is-open {
  display: flex;
}

.post-menu-item {
  background: transparent;
  border: none;
  padding: 8px 12px;
  text-align: left;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 150ms ease;
}

.post-menu-item:hover {
  background: rgba(20, 184, 109, 0.08);
  color: var(--green-2);
}

.post-menu-item--danger {
  color: #dc2626;
}

.post-menu-item--danger:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
}

/* Post Image */
.post-image-wrap {
  width: 100%;
  background: #0d1e15;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 520px;
  overflow: hidden;
}

.post-image {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  display: block;
}

/* Post Actions & Caption */
.post-card__body {
  padding: 16px 18px;
}

.post-actions-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.post-action-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 650;
  color: rgba(12, 27, 19, 0.7);
  padding: 6px 10px;
  border-radius: 999px;
  transition: all 160ms ease;
}

.post-action-btn:hover {
  background: rgba(20, 184, 109, 0.08);
  color: var(--green-2);
}

.post-action-btn.like-btn i {
  font-size: 18px;
  transition: transform 200ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.post-action-btn.like-btn.is-liked {
  color: #ef4444;
}

.post-action-btn.like-btn.is-liked i {
  color: #ef4444;
  transform: scale(1.15);
}

.post-caption-wrap {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 14px;
  word-break: break-word;
}

.post-caption-author {
  font-weight: 700;
  margin-right: 6px;
  color: var(--text);
}

/* Comments Section & Threaded Replies (Instagram Style) */
.comments-section {
  border-top: 1px solid rgba(14, 45, 28, 0.08);
  padding-top: 14px;
  margin-top: 10px;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 320px;
  overflow-y: auto;
  margin-bottom: 12px;
  padding-right: 4px;
}

.comment-thread {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comment-bubble {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 12px;
  background: #f7faf8;
  border-radius: 12px;
  border: 1px solid rgba(14, 45, 28, 0.06);
  position: relative;
}

.comment-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #14b86d, #0f6a44);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
}

.comment-body {
  flex: 1;
  font-size: 13px;
  line-height: 1.4;
}

.comment-author {
  font-weight: 700;
  color: var(--text);
  margin-right: 6px;
}

.comment-text {
  color: rgba(12, 27, 19, 0.85);
  word-break: break-word;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: rgba(12, 27, 19, 0.45);
  margin-top: 4px;
}

.btn-comment-reply {
  background: transparent;
  border: none;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
  padding: 0;
  transition: opacity 120ms ease;
}

.btn-comment-reply:hover {
  text-decoration: underline;
}

.comment-actions-btns {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  opacity: 0.8;
  transition: opacity 150ms ease;
}

.comment-bubble:hover .comment-actions-btns,
.comment-reply-item:hover .comment-actions-btns {
  opacity: 1;
}

.btn-action-comm {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 3px 6px;
  font-size: 11.5px;
  border-radius: 6px;
  transition: all 140ms ease;
}

.btn-edit-comm {
  color: rgba(12, 27, 19, 0.45);
}

.btn-edit-comm:hover {
  color: var(--accent);
  background: rgba(20, 184, 109, 0.12);
}

.btn-del-comm {
  color: rgba(239, 68, 68, 0.5);
}

.btn-del-comm:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
}

/* Instagram-Style "Lihat X Balasan" Toggle Button */
.btn-toggle-replies {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  font-size: 11.5px;
  font-weight: 700;
  color: rgba(12, 27, 19, 0.6);
  cursor: pointer;
  padding: 4px 0 2px 34px;
  margin-top: 2px;
  transition: all 140ms ease;
}

.btn-toggle-replies:hover {
  color: var(--accent);
}

.replies-line {
  width: 24px;
  height: 1.5px;
  background: rgba(20, 184, 109, 0.4);
  display: inline-block;
  border-radius: 2px;
  transition: background 140ms ease;
}

.btn-toggle-replies:hover .replies-line {
  background: var(--accent);
}

.btn-toggle-replies i {
  font-size: 10px;
  transition: transform 180ms ease;
}

.btn-toggle-replies.is-open i {
  transform: rotate(180deg);
}

.btn-toggle-replies.is-open .replies-text {
  color: var(--accent);
}

/* Nested Replies under parent comment */
.comment-replies-wrap {
  margin-left: 28px;
  padding-left: 12px;
  border-left: 2px solid rgba(20, 184, 109, 0.25);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comment-reply-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 10px;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid rgba(14, 45, 28, 0.08);
}

.comment-reply-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #047857);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 9.5px;
  flex-shrink: 0;
}

/* Replying Banner above Comment Input */
.comment-replying-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f0fdf4;
  border: 1px solid rgba(20, 184, 109, 0.3);
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--green-2);
  margin-bottom: 8px;
}

.comment-replying-banner span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-cancel-reply {
  background: transparent;
  border: none;
  color: rgba(12, 27, 19, 0.5);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}

.btn-cancel-reply:hover {
  color: #ef4444;
}

.comment-form-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.comment-input {
  flex: 1;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(14, 45, 28, 0.16);
  background: #ffffff;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: all 160ms ease;
}

.comment-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(20, 184, 109, 0.14);
}

.btn-send-comment {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  flex-shrink: 0;
}

/* Upload Dropzone */
.upload-dropzone {
  position: relative;
  border: 2px dashed rgba(20, 184, 109, 0.4);
  border-radius: 16px;
  background: #f7faf8;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 180ms ease;
  overflow: hidden;
}

.upload-dropzone:hover {
  border-color: var(--accent);
  background: #f0fdf4;
}

.upload-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 5;
}

.dropzone-icon {
  font-size: 36px;
  color: var(--accent);
  margin-bottom: 8px;
}

.dropzone-title {
  font-weight: 700;
  font-size: 14.5px;
  margin: 0 0 4px;
  color: var(--text);
}

.dropzone-subtitle {
  font-size: 12px;
  color: rgba(12, 27, 19, 0.6);
  margin: 0;
}

.dropzone-preview {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.dropzone-preview img {
  max-width: 100%;
  max-height: 260px;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.btn-remove-preview {
  background: #ef4444;
  color: #ffffff;
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 150ms ease;
}

.btn-remove-preview:hover {
  background: #dc2626;
}

.compression-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid rgba(20, 184, 109, 0.3);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.modal-dialog--post {
  max-width: 540px;
}

@media (max-width: 680px) {
  .memories-header {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .memories-title {
    font-size: 24px;
  }

  .memories-header__action .btn {
    width: 100%;
    justify-content: center;
  }

  .auth-card {
    padding: 24px 20px;
  }
}

/* ==========================================================
   MULTI-PHOTO PREVIEW & CAROUSEL STYLES
   ========================================================== */

.multi-preview-container {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.multi-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.multi-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding: 4px;
}

.multi-preview-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(14, 45, 28, 0.15);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.multi-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.multi-preview-del {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  background: rgba(239, 68, 68, 0.9);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 120ms ease;
  z-index: 2;
}

.multi-preview-del:hover {
  transform: scale(1.15);
  background: #dc2626;
}

.preview-item-size {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: rgba(7, 20, 13, 0.75);
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

.multi-preview-add {
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  border: 2px dashed rgba(20, 184, 109, 0.5);
  background: #f0fdf4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  transition: all 150ms ease;
}

.multi-preview-add i {
  font-size: 18px;
}

.multi-preview-add:hover {
  background: #dcfce7;
  border-color: var(--accent);
  transform: scale(1.03);
}

/* Post Image Carousel / Slider */
.post-carousel {
  position: relative;
  width: 100%;
  background: #0d1e15;
  overflow: hidden;
  user-select: none;
}

.carousel-track {
  display: flex;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.carousel-slide {
  min-width: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 520px;
  background: #0d1e15;
}

.carousel-slide .post-image {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(7, 20, 13, 0.55);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  z-index: 20;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all 160ms ease;
}

.carousel-btn:hover {
  background: rgba(20, 184, 109, 0.85);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-50%) scale(1.08);
}

.carousel-btn--prev {
  left: 12px;
}

.carousel-btn--next {
  right: 12px;
}

.carousel-counter {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(7, 20, 13, 0.65);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 20;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 20;
  background: rgba(7, 20, 13, 0.45);
  padding: 4px 8px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all 200ms ease;
}

.carousel-dot.is-active {
  width: 18px;
  border-radius: 999px;
  background: var(--accent);
}

/* ==========================================================
   PROFILE & MY POSTS MANAGEMENT STYLES
   ========================================================== */

.profile-main {
  padding: 32px 0 60px;
}

.profile-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 960px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
}

.profile-card {
  padding: 24px;
  border-radius: 20px;
}

.profile-avatar-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(14, 45, 28, 0.08);
  margin-bottom: 20px;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #14b86d, #0f6a44);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(20, 184, 109, 0.3);
  flex-shrink: 0;
}

.profile-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 2px;
  line-height: 1.2;
}

.profile-username {
  font-size: 13.5px;
  color: var(--accent);
  font-weight: 600;
}

.profile-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.my-posts-card {
  padding: 28px;
  border-radius: 20px;
}

.my-posts-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(14, 45, 28, 0.08);
  margin-bottom: 24px;
}

.my-posts-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.my-posts-sub {
  font-size: 13px;
  color: rgba(12, 27, 19, 0.6);
  margin: 0;
}

.my-posts-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.my-post-item {
  display: flex;
  gap: 18px;
  padding: 16px;
  border-radius: 14px;
  background: #fbfdfc;
  border: 1px solid rgba(14, 45, 28, 0.08);
  transition: all 180ms ease;
  align-items: center;
}

.my-post-item:hover {
  border-color: rgba(20, 184, 109, 0.4);
  box-shadow: 0 8px 24px rgba(7, 20, 13, 0.06);
  transform: translateY(-2px);
}

.my-post-thumb-wrap {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: #0d1e15;
}

.my-post-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.my-post-thumb-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(7, 20, 13, 0.8);
  color: #ffffff;
  padding: 2px 5px;
  border-radius: 6px;
  font-size: 9.5px;
  font-weight: 700;
}

.my-post-content {
  flex: 1;
  min-width: 0;
}

.my-post-caption {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.my-post-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: rgba(12, 27, 19, 0.6);
}

.my-post-meta-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

.my-post-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-icon-action {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(14, 45, 28, 0.12);
  background: #ffffff;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13.5px;
  transition: all 150ms ease;
}

.btn-icon-action:hover {
  background: #f0fdf4;
  border-color: var(--accent);
  color: var(--accent);
}

.btn-icon-action--danger:hover {
  background: #fef2f2;
  border-color: #ef4444;
  color: #ef4444;
}

@media (max-width: 600px) {
  .my-post-item {
    flex-direction: column;
    align-items: stretch;
  }

  .my-post-thumb-wrap {
    width: 100%;
    height: 160px;
  }

  .my-post-actions {
    justify-content: flex-end;
    margin-top: 8px;
  }

  /* Mobile Notification Dropdown Fix */
  .notif-dropdown {
    position: fixed !important;
    top: 60px !important;
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    max-width: calc(100vw - 20px) !important;
    border-radius: 18px !important;
    box-shadow: 0 16px 48px rgba(7, 20, 13, 0.25) !important;
    z-index: 99999 !important;
  }

  .user-menu-dropdown {
    position: fixed !important;
    top: 60px !important;
    right: 10px !important;
    left: auto !important;
    width: 250px !important;
    max-width: calc(100vw - 20px) !important;
    z-index: 99999 !important;
  }

  .notif-item {
    padding: 10px 12px;
    gap: 10px;
  }

  .notif-avatar {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .notif-type-icon {
    width: 15px;
    height: 15px;
    font-size: 7.5px;
  }

  .notif-text {
    font-size: 11.5px;
  }

  .notif-time {
    font-size: 10px;
  }
}

/* Mention Tag in Captions & Comments */
.mention-tag {
  color: var(--accent);
  font-weight: 700;
  background: rgba(20, 184, 109, 0.1);
  padding: 1px 6px;
  border-radius: 6px;
  display: inline-block;
  transition: all 120ms ease;
}

.mention-tag:hover {
  background: rgba(20, 184, 109, 0.2);
}

/* Notification Jump Target Highlight Animation */
@keyframes notifHighlightPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(20, 184, 109, 0.7);
    border-color: #14b86d !important;
    background-color: rgba(20, 184, 109, 0.12) !important;
    transform: scale(1.015);
  }
  40% {
    box-shadow: 0 0 0 14px rgba(20, 184, 109, 0);
    border-color: #14b86d !important;
    background-color: rgba(20, 184, 109, 0.08) !important;
  }
  100% {
    box-shadow: none;
    transform: scale(1);
    background-color: inherit;
  }
}

.item-highlight-pulse {
  animation: notifHighlightPulse 2s ease-out;
  border-color: var(--accent) !important;
}

/* ==========================================================
   @ MENTION AUTOCOMPLETE POPUP (INSTAGRAM / TWITTER STYLE)
   ========================================================== */
.mention-autocomplete-popup {
  position: absolute;
  background: #ffffff;
  border: 1px solid rgba(14, 45, 28, 0.14);
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(7, 20, 13, 0.16), 0 0 0 1px rgba(255, 255, 255, 0.9);
  width: 270px;
  max-width: calc(100vw - 24px);
  max-height: 220px;
  overflow-y: auto;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  padding: 6px;
  animation: mentionPopupFadeIn 140ms ease-out;
  scrollbar-width: thin;
  scrollbar-color: rgba(20, 184, 109, 0.35) #f8faf9;
}

@keyframes mentionPopupFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.mention-autocomplete-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  cursor: pointer;
  transition: background 120ms ease;
  text-align: left;
  background: transparent;
  border: none;
  width: 100%;
  font-family: inherit;
  user-select: none;
}

.mention-autocomplete-item:hover,
.mention-autocomplete-item.is-selected {
  background: #f0fdf4;
}

.mention-autocomplete-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #14b86d, #0f6a44);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.mention-autocomplete-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.mention-autocomplete-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #07140d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.mention-autocomplete-user {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.mention-autocomplete-empty {
  padding: 10px 12px;
  font-size: 12px;
  color: rgba(12, 27, 19, 0.5);
  text-align: center;
}

