:root {
  --bg: #11161d;
  --panel: #171d26;
  --panel-2: #1d2531;
  --rule: #2a3340;
  --cream: #e9e4d8;
  --cream-dim: #b6b0a0;
  --yellow: #e3b341;
  --teal: #5fb8a8;
  --red: #e2685c;
  --blue: #6fa8d8;
  --border: rgba(33, 48, 46, 0.12);
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --glow-teal: 0 0 30px rgba(95, 184, 168, 0.15);
  --radius: 20px;
  --radius-sm: 8px;
  --radius-full: 50px;
}

body.light {
  --bg: #f6f3ea;
  --panel: #ffffff;
  --panel-2: #efe9da;
  --rule: #ddd5c2;
  --cream: #241f17;
  --cream-dim: #6b6356;
  --yellow: #b4791f;
  --teal: #1f7a6c;
  --red: #c2493d;
  --blue: #2b6ca3;
  --shadow: 0 16px 40px -22px rgba(0, 0, 0, 0.18);
  --glow-teal: 0 0 30px rgba(31, 122, 108, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* === GLOBAL TYPOGRAPHY === */
/* Body */
body {
  background: var(--bg);
  color: var(--cream);
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .25s, color .25s;
}

/* Heading */
h1, h2, h3, h4, h5, h6 {
  font-family: "Space Grotesk", sans-serif;
  color: var(--cream);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  
}

h1 {
  font-size: clamp(2.4rem,5vw,4rem);
}

h2 {
  font-size: clamp(1.9rem,3vw,2.6rem);
}

h3 {
  font-size: 1.6rem;
}

h4 {
  font-size: 1.3rem;
}

h5 {
  font-size: 1.1rem;
}

h6 {
  font-size: 1rem;
}

/* Paragraph */
p {
  font-family: "Source Serif 4", serif;
  font-size: 1.08rem;
  line-height: 1.9;
  color: var(--cream-dim);
  margin-bottom: 1.3rem;
}

/* Link */
a {
  color: var(--teal);
  text-decoration: none;
  transition: .2s;
}

a:hover {
  color: var(--yellow);
}

/* Strong & Em */
strong {
  color: var(--cream);
  font-weight: 700;
}

em {
  font-style: italic;
}

/* Small */
small {
  font-size: .88rem;
  color: var(--cream-dim);
}

/* Mark */
mark {
  background: rgba(227,179,65,.2);
  color: var(--cream);
  padding: .1rem .3rem;
  border-radius: 4px;
}

/* HR */
hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 3rem 0;
}

/* Figure */
figure {
  margin: 2rem 0;
}

figcaption {
  margin-top: .75rem;
  font-size: .9rem;
  text-align: center;
    color: var(--cream-dim);
    font-style: italic;
}

/* Image */
img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Blockquote */
blockquote {
  margin: 2rem 0;
  padding: 1.2rem 1.5rem;
  border-left: 4px solid var(--teal);
  background: var(--panel);
  border-radius: var(--radius-sm);
  color: var(--cream);
  font-style: italic;
}

blockquote p:last-child {
  margin-bottom: 0;
}

/* List */
ul,
ol {
  margin: 1.2rem 0 1.5rem 1.5rem;
  padding: 0;
}

li {
  font-family: "Source Serif 4", serif;
  color: var(--cream-dim);
  line-height: 1.9;
  margin-bottom: .6rem;
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: var(--panel);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

th,
td {
  padding: 14px 16px;
  border: 1px solid var(--rule);
  text-align: left;
}

th {
  background: var(--panel-2);
  color: var(--cream);
  font-weight: 700;
}

td {
  color: var(--cream-dim);
}

/* Code */
code {
  font-family: "JetBrains Mono", monospace;
  font-size: .92em;
  background: var(--panel-2);
  padding: .15rem .35rem;
  border-radius: 4px;
}

/* Code Block */
pre {
  margin: 2rem 0;
  padding: 1.25rem;
  overflow-x: auto;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

pre code {
  background: none;
  padding: 0;
}

/* Sup & Sub */
sup,
sub {
  font-size: .75em;
}

/* Selection */
::selection {
  background: var(--yellow);
  color: #11161d;
}


/* === GLOBAL LAYOUT === */
/* Container */
.container {
  width: min(1200px, calc(100% - 40px));
  margin-inline: auto;
}

/* Section */
.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 72px 28px;
}

.section-sm {
  padding: 48px 0;
}

.section-lg {
  padding: 120px 0;
}

.section-head {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    margin-bottom: 12px;
}

.section-sub {
    max-width: 760px;
    margin: 0 auto;
}

.section-cta {
    text-align: center;
    margin-top: 36px;
}

/* === ANIMASI MUNCUL SAAT SCROLL === */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* === BUTTON === */
.btn,
.btn-primary,
.btn-secondary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.4rem;
  border-radius: var(--radius-sm);
  font-family: "Space Grotesk", sans-serif;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: .25s;
  border: 1px solid transparent;
}

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

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-secondary {
  background: var(--panel-2);
  color: var(--cream);
  border-color: var(--rule);
}

.btn-secondary:hover {
  background: var(--panel);
}

.btn-outline {
  background: transparent;
  border-color: var(--teal);
  color: var(--teal);
}

.btn-outline:hover {
  background: rgba(95,184,168,.12);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.9rem;
}


/* === BADGE === */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--teal);
  background: rgba(95, 184, 168, 0.1);
  border: 1px solid rgba(95, 184, 168, 0.25);
  padding: 6px 14px;
  border-radius: 8px;
  margin-bottom: 22px;
}

.badge .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
 }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
 }
}

/* === CARD === */
.card {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.5rem;
}


/* === ARTICLE META === */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0 2rem;
  color: var(--cream-dim);
  font-size: .9rem;
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: .4rem;
}


/* === AUTHOR BOX === */
.author-box {
  display: flex;
  gap: 1rem;
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--panel-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.author-info {
  flex: 1;
}

.author-name {
  font-weight: 700;
  color: var(--cream);
  margin-bottom: .25rem;
}

.author-role {
  color: var(--cream-dim);
  font-size: .9rem;
}


/* === TAG === */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 2rem;
}

.tag {
  padding: .45rem .9rem;
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--cream-dim);
  font-size: .85rem;
}


/* === ALERT === */
.alert,
.alert-info,
.alert-warning,
.alert-success,
.alert-danger {
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
  border-radius: var(--radius-sm);
}

.alert-info {
  background: rgba(111,168,216,.12);
}

.alert-warning {
  background: rgba(227,179,65,.12);
}

.alert-success {
  background: rgba(95,184,168,.12);
}

.alert-danger {
  background: rgba(226,104,92,.12);
}


/* === BREADCRUMB ==== */
.breadcrumb {
  max-width: 1200px;
  margin: 1.25rem auto 0;
  padding: 0 24px;
}

.breadcrumb ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  color: var(--cream-dim);
}

.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin: 0 .45rem;
  color: var(--border);
}

.breadcrumb a {
    display: flex;
    align-items: center;
    gap: .35rem;
    color: var(--cream-dim);
    text-decoration: none;
    transition: color .2s ease;
}

.breadcrumb a:hover {
    color: var(--teal);
}

.breadcrumb li[aria-current="page"] {
    color: var(--cream);
    font-weight: 600;
}

.breadcrumb img {
    width: 15px;
    height: 15px;
    opacity: .8;
}

@media (max-width: 768px) {
    .breadcrumb {
        padding: 0 18px;
        margin-top: 1rem;
        font-size: .85rem;
    }
}

/* === TOC === */
.toc {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.toc ul {
  margin: 1rem 0 0;
}

.toc li {
  margin-bottom: .7rem;
}


/* === SHARE === */

.share-list {
  display: flex;
 gap: .75rem;
  flex-wrap: wrap;
}

.share-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: var(--panel);
  cursor: pointer;
  transition: .2s;
}

.share-btn:hover {
  background: var(--panel-2);
}


/* === Article images === */
.article-image {
    margin: 2.5rem 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--rule);
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* === IMAGE CAPTION === */
.image-caption {
    padding: 1rem 1.5rem;
    color: var(--cream-dim);
    font-style: italic;
    font-size: 0.75rem;
    text-align: center;
    background: var(--panel-2);
    margin: 0;
}

@media (max-width: 768px) {
.image-caption {
  font-size: 0.65rem;
  }
}


/* === STAT === */
.stat {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: .4rem;
}


/* === DIVIDER === */
.divider {
  height: 1px;
  margin: 18px 0;
  background: linear-gradient(90deg, transparent, var(--rule), transparent);
}


/* === PAGINATION === */
.pagination {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin: 3rem 0;
}

.page-link {
  min-width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--panel);
  border: 1px solid var(--rule);
  color: var(--cream);
  transition: .2s;
}

.page-link:hover,
.page-link.active {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}


/* === HERO === */
.hero {
  position: relative;
  min-height: auto;
  padding: 28px 80px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(
      1200px 500px at 80% -10%,
      rgba(95, 184, 168, 0.14),
      transparent 60%
      ),
    radial-gradient(
      900px 400px at -10% 110%,
      rgba(227, 179, 65, 0.1),
      transparent 60%
      ),
  var(--bg);
}

.text-1 {
  color: var(--yellow);
}

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

body.light .hero {
  background:
    radial-gradient(
      1200px 500px at 80% -10%,
         rgba(31, 122, 108, 0.1),
        transparent 60%
        ),
    radial-gradient(
        900px 400px at -10% 110%,
        rgba(180, 121, 31, 0.1),
        transparent 60%
        ),
  var(--bg);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  max-width: 720px;
}

.hero-content .badge {
  margin-bottom: 14px;
}

.hero-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--cream);
  margin:0 0 18px;
  line-height:1.08;
}

.hero-sub {
  font-family: "Source Serif 4", serif;
  font-size: 1.12rem;
  line-height: 1.75;
  color: var(--cream-dim);
  max-width: 620px;
  margin-bottom: 36px;
}

.hero-sub strong {
  color: var(--cream);
  font-weight: 600;
}

/* Ornamen dekoratif hero — DARK MODE lebih terlihat */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.75;
}

.hero-orb.orb-1 {
  width: 420px;
  height: 420px;
  background: radial-gradient(
    circle,
    rgba(95, 184, 168, 0.55),
    transparent 70%
    );
  top: -120px;
  right: -80px;
}

.hero-orb.orb-2 {
  width: 340px;
  height: 340px;
  background: radial-gradient(
    circle,
    rgba(227, 179, 65, 0.45),
    transparent 70%
   );
  bottom: -100px;
  left: -60px;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(
      to right,
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px
      ),
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px
      );
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(
      ellipse at center,
      black 30%,
      transparent 75%
  );
   pointer-events: none;
  z-index: 0;
}

body.light .hero-grid {
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.06) 1px, transparent 1px);
}

.hero-img {
  width: 100%;
  max-width: 480px;
  height: auto;
  object-fit: contain;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* === RESPONSIVE HP === */
@media (max-width: 768px) {
.hero {
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 20px 20px 56px;
}

.hero-content {
  width: 100%;
}

.hero h1 {
  font-size: 2.25rem;
}

.hero-cta {
  width: 100%;
 }

.hero-inner {
  grid-template-columns: 1fr;
  gap: 0;
}

.hero-title {
  font-size: 2.2rem;
}

.hero-sub {
  font-size: 1rem;
}
}


/* === HERO TERMINAL === */
.hero-terminal {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow), var(--glow-teal);
}

.ht-bar {
  background: var(--panel-2);
  padding: 11px 16px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dots span:nth-child(1) {
  background: #e2685c;
}

.dots span:nth-child(2) {
  background: #e3b341;
}

.dots span:nth-child(3) {
  background: #5fb8a8;
}

.ht-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  color: var(--cream-dim);
  margin-left: auto;
}

.ht-body {
  padding: 20px 22px 24px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13.5px;
  line-height: 1.7;
  min-height: 170px;
}

.ht-line {
  display: block;
}

.ht-comment {
  color: #6e7681;
}

.ht-prompt {
  color: var(--teal);
}

.ht-output {
  color: var(--yellow);
}

.ht-string {
  color: #9ecb8c;
}

.ht-fn {
  color: var(--yellow);
}

.ht-num {
  color: var(--blue);
}

.ht-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  background: var(--teal);
  vertical-align: -2px;
  animation: blink 0.9s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* === RESPONSIVE HP === */
@media (max-width: 768px) {
.hero-terminal {
  width: 100%;
}

.ht-body {
  min-height: 170px;
  padding: 18px;
  font-size: 12.5px;
}

.ht-title {
    font-size: 10px;
  }
}


/* === FLEX === */
.flex{
  display:flex;
}

.flex-between{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.flex-center{
  display:flex;
  justify-content:center;
  align-items:center;
}

.flex-wrap{
  flex-wrap:wrap;
}


/* === GRID === */
.grid {
  display:grid;
  gap:2rem;
}

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

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

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

@media(max-width:768px){
.grid-2,
.grid-3,
.grid-4 {
grid-template-columns:1fr;
  }
}


/* === ACRIVE FOR NAVBAR === */
.active {
  color:var(--teal);
}

/* === RESPONSIVE VIDEO === */
.video {
  margin: 2rem 0;
  aspect-ratio: 16 / 9;
}

.video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--radius);
}


/* === RESPONSIVE TABLE === */
.table-responsive {
  overflow-x: auto;
  margin: 2rem 0;
}


/* === DISABLE === */
.disabled{
  opacity:.5;
  pointer-events:none;
}


/* === FAQ === */
.faq {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
    position: relative;
}

.faq::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at top right,
        rgba(167, 139, 250, 0.05),
        transparent 35%
    );
    pointer-events: none;
    z-index: 0;
}

.faq > * {
    position: relative;
    z-index: 1;
}

.faq-wrap {
    max-width: 760px;
    margin: 48px auto 0;
}

.faq-item {
    border-bottom: 1px solid var(--rule);
}

.faq-q {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1rem;
    color: var(--cream);
    width: 100%;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.faq-icon {
    flex-shrink: 0;
    margin-left: 16px;

    color: var(--yellow);
    font-family: "JetBrains Mono", monospace;
    font-size: 1rem;

    transition: transform 0.25s;
}

.faq-q.open .faq-icon {
    transform: rotate(45deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-a-inner {
    padding-bottom: 20px;
    color: var(--cream-dim);
    font-size: 0.9rem;
}


/* === SECTION LABEL === */
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;

    font-family: "JetBrains Mono", monospace;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--teal);
}

.section-eyebrow::before {
    content: "";
    width: 24px;
    height: 2px;
    background: var(--teal);
}

.eyebrow {
    font-family: "JetBrains Mono", monospace;
    font-size: 12.5px;
    color: var(--teal);
    letter-spacing: 0.04em;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 9px;
}

.eyebrow::before {
    content: "›_";
    color: var(--yellow);
}


/* === TOMBOL KEMBALI KEATAS === */
.to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--panel);
    border: 1px solid var(--rule);
    color: var(--cream-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
    z-index: 90;
    box-shadow: var(--shadow);
    font-size: 18px;
}

.to-top.show {
    opacity: 1;
    visibility: visible;
}

.to-top:hover {
    color: var(--yellow);
    border-color: var(--yellow);
}


/* TOMBOL MASUK SIDEBAR */
.sidebar-guest-box {
    display: flex;
    gap: 10px;
    justify-content: center;
    padding: 12px 0 20px;
}

/* === TOMBOL LOGIN NAVBAR === */
.nav-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 18px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #f3c74b, #e8b43d);
    color: #181818;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s ease;
    box-shadow: 0 8px 20px rgba(232, 180, 61, 0.25);
}

.nav-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(232, 180, 61, 0.35);
}

.nav-login-btn:active {
    transform: scale(0.98);
}

/* SEARCH OVERLAY */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 13, 17, 0.75);
    backdrop-filter: blur(4px);
    z-index: 300;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
}

.search-overlay.open {
    display: flex;
}

.search-box {
    width: min(580px, 90vw);
    background: var(--panel);
    border: 1px solid var(--rule);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.search-box input {
    width: 100%;
    border: none;
    background: transparent;
    color: var(--cream);
    font-family: "JetBrains Mono", monospace;
    font-size: 15px;
    padding: 18px 20px;
    outline: none;
    border-bottom: 1px solid var(--rule);
}

.search-results {
    max-height: 320px;
    overflow-y: auto;
}

.search-results a {
    display: flex;
    flex-direction: column;
    padding: 13px 20px;
    border-bottom: 1px solid var(--rule);
    color: var(--cream);
}

.search-results a:hover {
    background: var(--panel-2);
}

.search-results .s-cat {
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    color: var(--teal);
    margin-bottom: 3px;
}

.search-results .s-title {
    font-size: 14px;
}

.search-results .empty {
    padding: 18px 20px;
    color: var(--cream-dim);
    font-family: "JetBrains Mono", monospace;
    font-size: 13px;
}


/* === AUTH MODAL === */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-overlay.open {
    display: flex;
}

.modal-box{
    width:100%;
    max-width:460px;
    padding:34px;
    position:relative;

    background:var(--panel);
    border:1px solid var(--rule);
    border-radius:var(--radius);

    box-shadow:
        var(--shadow),
        var(--glow-teal);

    animation:modalIn .28s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close{
    position:absolute;
    top:16px;
    right:16px;

    width:36px;
    height:36px;

    border-radius:50%;
    border:1px solid var(--rule);

    background:var(--panel-2);
    color:var(--cream-dim);

    display:flex;
    align-items:center;
    justify-content:center;

    cursor:pointer;
    transition:.2s;
}

.modal-close:hover{
    color:var(--red);
    border-color:var(--red);
    background:rgba(226,104,92,.08);
    transform:rotate(90deg);
}

.modal-tabs{
    display:flex;
    gap:6px;

    padding:5px;

    background:var(--bg);
    border:1px solid var(--rule);
    border-radius:999px;

    margin-bottom:28px;
}

.modal-tab{
    flex:1;

    padding:11px 14px;

    border:none;
    border-radius:999px;

    background:transparent;

    color:var(--cream-dim);

    font-weight:700;
    cursor:pointer;
    transition:.2s;
}

.modal-tab:hover{
    color:var(--cream);
}

.modal-tab.active{
    background:var(--teal);
    color:#fff;
}

.auth-panel {
    display: none;
}

.auth-panel.active {
    display: block;
}
.auth-field {
    margin-bottom: 18px;
}

.auth-field label{
    display:block;
    margin-bottom:8px;

    color:var(--cream);

    font-size:.9rem;
    font-weight:600;
}

.auth-field input{

    width:100%;

    padding:14px 16px;

    background:var(--panel-2);

    color:var(--cream);

    border:1px solid var(--rule);

    border-radius:var(--radius-sm);

    transition:.2s;
}

.auth-field input:focus{

    border-color:var(--teal);

    box-shadow:0 0 0 4px rgba(95,184,168,.15);
}

.auth-submit{

    width:100%;

    padding:15px;

    border:none;
    border-radius:999px;

    background:var(--teal);

    color:#fff;

    font-weight:700;

    transition:.2s;
}

.auth-submit:hover{

    filter:brightness(1.08);

    transform:translateY(-1px);
}

.auth-note{

    margin-top:18px;

    text-align:center;

    color:var(--cream-dim);

    font-size:.84rem;
}

.auth-link{

    color:var(--yellow);

    font-weight:700;
}

.auth-link:hover{

    color:var(--teal);

    text-decoration:none;
}

.auth-error{

    display:none;

    margin-bottom:16px;

    padding:12px 14px;

    background:rgba(226,104,92,.08);

    border:1px solid rgba(226,104,92,.25);

    color:var(--red);

    border-radius:var(--radius-sm);
}

.auth-field input::placeholder{
    color:var(--cream-dim);
}

.modal-box:has(#panel-forgot.active) .modal-tabs {
    display: none;
}


/* === TOAST === */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    background: var(--panel);
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    padding: 16px 24px;
    box-shadow: var(--shadow);
    font-weight: 600;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 360px;
    animation: toastIn 0.4s ease;
}

.toast.success {
    border-color: var(--teal);
}

.toast.error {
    border-color: var(--red);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* === LEGAL CONSENT MODAL === */
#legal-consent-modal .modal-box {
  max-width: 500px;
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideIn {
from {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  }
to {
  opacity: 1;
  transform: translateY(0) scale(1);
  }
}

#legal-consent-modal h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--panel);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

#legal-consent-modal h3::before {
  content: "📋";
  font-size: 1.8rem;
}

#legal-consent-modal p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--panel);
  margin-bottom: 24px;
}

#btn-legal-continue {
  width: 100%;
  padding: 18px;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 50px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

#btn-legal-continue:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: var(--panel-2);
  transform: none;
  box-shadow: none;
}

#btn-legal-continue:disabled::after {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.85rem;
  color: white;
  opacity: 0.8;
}

#btn-legal-continue:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4);
}

/* Close Button Enhancement */
#legal-consent-modal .modal-close {
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: var(--bg);
  border-radius: 50%;
  font-size: 1.3rem;
  transition: all 0.3s;
}

#legal-consent-modal .modal-close:hover {
  background: var(--border);
  transform: rotate(90deg);
}

.legal-checkbox-container {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: linear-gradient(
        135deg,
        var(--panel-2),
        var(--rule)
    );
    padding: 20px;
    border-radius: 16px;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 24px;
}

.legal-checkbox-container:hover {
  background: var(--panel);
  border-color: var(--teal);
  box-shadow: var(--glow-teal);
  transform: translateY(-2px);
}

.legal-checkbox-container input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  accent-color: var(--cream);
  cursor: pointer;
  flex-shrink: 0;
}

.legal-checkbox-text {
  font-size: 0.95rem;
  color: var(--cream);
  line-height: 1.6;
  font-weight: 500;
}

.legal-checkbox-text a {
  color: var(--cream);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  transition: all 0.2s;
}

.legal-checkbox-text a:hover {
  color: var(--yellow);
  text-decoration-color: var(--teal);
}

/* === NAVBAR === */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(17, 22, 29, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--rule);
    transition:
        background 0.25s,
        box-shadow 0.25s,
        border-color 0.25s;
}

body.light .navbar {
    background: rgba(246, 243, 234, 0.92);
}

.navbar-inner {
    max-width: 1200px;
    margin: auto;
    height: 68px;
    padding: 0 22px;
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
    gap: 2px;
}

.nav-links a {
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    color: var(--cream);
    background: var(--panel);
    border: 1px solid var(--rule);
    padding: 7px 12px;
    border-radius: 6px;
}

.nav-links a:hover {
    border-color: var(--teal);
    color: var(--teal);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.25rem;
    color: white;
    letter-spacing: -0.02em;
    flex-shrink: 0;
    white-space: nowrap;
    text-decoration: none;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-name {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--cream);
    letter-spacing: -0.03em;
}

.brand-tagline {
    margin-top: 1px;
    font-family: "JetBrains Mono", monospace;
    font-size: 7px;
    color: var(--cream-dim);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    white-space: nowrap;
}

.nav-item {
    position: relative;
}

.nav-item > a:hover,
.nav-dropdown > .nav-link:hover {
    color: var(--cream);
    background: var(--panel);
}

.nav-item > a.active {
    color: var(--yellow);
}

.caret {
    margin-left: 4px;
    font-size: 11px;
    transition: 0.2s;
}

.nav-menu {
    display: flex;
    align-items: center;
    flex: 1;
}

.nav-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-user-link {
    color: var(--cream);
    font-weight: 600;
    font-size: 14px;
}

.navbar-user-link:hover {
    color: var(--teal);
}

.navbar.scrolled {
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
}

/* --- Dropdown --- */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: absolute;
    left: 0;
    top: 110%;
    width: 280px;
    background: var(--panel);
    border: 1px solid var(--rule);
    border-radius: 16px;
    padding: 14px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.22s;
}

.nav-item > a,
.nav-dropdown > .nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 14px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--cream-dim);
    border-radius: 10px;
    transition: 0.2s;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown:hover .caret {
    transform: rotate(180deg);
}

.dropdown-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--cream-dim);
    margin-bottom: 10px;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--cream-dim);
    transition: 0.2s;
}

.dropdown-menu a img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.dropdown-menu a:hover {
    background: var(--panel-2);
    color: var(--cream);
}

@media (max-width: 768px) {
.navbar-inner {
  height: 64px;
  padding: 0 16px;
}

.brand-name {
  font-size: 1.1rem;
}

.brand-tagline {
  display: none;
}

.nav-links {
  display: none;
}

.nav-login-btn {
  display: none;
  }
}

    
/* --- Logo --- */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--cream);
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1;
    margin-right: 18px;
    flex-shrink: 0;
}

.brand-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.logo:hover .brand-name {
    color: var(--teal);
}

.logo:hover .brand-tagline {
    color: var(--yellow);
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--teal), var(--blue));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #0d1117;
    font-weight: 700;
}

.logo span {
    color: var(--cream-dim);
    font-weight: 400;
}

.logo .dot {
    color: var(--yellow);
}

@media (max-width: 768px) {
.brand-logo {
  width: 36px;
  height: 36px;
  }
}


/* === FOOTER === */
footer {
    border-top: 1px solid var(--rule);
}

.footer-brand {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 28px 32px;
}

.footer-brand .logo {
    margin-bottom: 12px;
}

.footer-brand p {
    max-width: 340px;
    font-family: "Source Serif 4", serif;
    font-size: 0.88rem;
    color: var(--cream-dim);
    line-height: 1.65;
}

.footer-links {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 28px 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.footer-socials {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.footer-socials img {
    width: 18px;
    height: 18px;
    display: block;
}

.footer-socials a {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--cream-dim);
    transition: 0.15s;
}

.footer-socials a:hover {
    color: var(--teal);
    border-color: var(--teal);
}

.footer-col h5 {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--cream);
    margin-bottom: 14px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-col ul a {
    color: var(--cream-dim);
    font-size: 0.87rem;
    transition: 0.12s;
}

.footer-col ul a:hover {
    color: var(--teal);
}

.footer-bottom {
    border-top: 1px solid var(--rule);
    padding: 20px 20px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom p {
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    color: var(--cream-dim);
}

@media (max-width: 768px) {
.footer-links {
  grid-template-columns: 1fr;
}

.footer-bottom {
  flex-direction: column;
  text-align: center;
  }
}


/* === HAMBURGER === */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid var(--rule);
    background: var(--panel);
    position: relative;
    z-index: 170;
    pointer-events: auto !important;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: all 0.2s;
}

.hamburger:hover {
    border-color: var(--teal);
    background: var(--panel-2);
}

.hamburger:active {
    transform: scale(0.95);
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--cream-dim);
    border-radius: 2px;
    transition: 0.3s;
    pointer-events: none;
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: var(--teal);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    background: var(--teal);
}

@media (max-width: 768px) {
.hamburger {
  display: flex;
  }
}


/* === SIDEBAR MOBILE === */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 150;
    background: rgba(5, 8, 12, 0.6);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.sidebar-overlay.open {
    opacity: 1;
    visibility: visible;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 160;
    width: 250px;
    background: rgba(23, 29, 38, 0.65);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-right: 1px solid rgba(95, 184, 168, 0.18);
    box-shadow:
        4px 0 40px rgba(0, 0, 0, 0.5),
        inset 1px 0 0 rgba(255, 255, 255, 0.04);
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

body.light .sidebar {
    background: rgba(246, 243, 234, 0.7);
    border-right: 1px solid rgba(31, 122, 108, 0.18);
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-header {
    padding: 20px 22px 16px;
    border-bottom: 1px solid rgba(95, 184, 168, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(180deg, rgba(95, 184, 168, 0.08), transparent);
}

.sidebar-logo {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--cream);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(95, 184, 168, 0.2);
    background: rgba(95, 184, 168, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--cream-dim);
    font-size: 16px;
}

.sidebar-close:hover {
    color: var(--red);
    border-color: var(--red);
}

.sidebar-search {
    margin: 16px 16px 8px;
    position: relative;
}

.sidebar-search input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(95, 184, 168, 0.2);
    color: var(--cream);
    font-family: "JetBrains Mono", monospace;
    font-size: 13px;
    padding: 10px 14px 10px 36px;
    border-radius: 9px;
    outline: none;
}

body.light .sidebar-search input {
    background: rgba(0, 0, 0, 0.05);
}

.sidebar-search input::placeholder {
    color: var(--cream-dim);
}

.sidebar-search input:focus {
    border-color: var(--teal);
}

.sidebar-search .s-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--cream-dim);
    font-size: 13px;
}

.sidebar-section {
    padding: 8px 10px 2px;
}

.sidebar-section-title {
    font-family: "JetBrains Mono", monospace;
    font-size: 10px;
    color: var(--cream);
    letter-spacing: 0.08em;
    padding: 0px 10px 8px;
    text-transform: uppercase;
    opacity: 0.7;
    margin: 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 8px 12px;
    border-radius: 9px;
    color: var(--cream);
    font-size: 14px;
    font-weight: 500;
    transition: 0.15s;
    position: relative;
}

.sidebar-link:hover {
    background: rgba(95, 184, 168, 0.1);
    color: var(--teal);
}

.sidebar-link.active {
    background: rgba(227, 179, 65, 0.1);
    color: var(--yellow);
}

.sidebar-divider {
    height: 1px;
    background: var(--cream);
    margin: 10px 16px;
}

.sidebar-tools {
    padding: 12px 16px;
    display: flex;
    gap: 8px;
    margin-top: auto;
    border-top: 1px solid rgba(95, 184, 168, 0.1);
}

.sidebar-tool-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    border-radius: 9px;
    border: 1px solid rgba(95, 184, 168, 0.2);
    background: rgba(95, 184, 168, 0.06);
    color: var(--cream-dim);
    font-size: 12px;
    font-family: "JetBrains Mono", monospace;
    cursor: pointer;
}

.sidebar-tool-btn:hover {
    color: var(--teal);
    border-color: var(--teal);
}

/* glow accent line at top of sidebar */
.sidebar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--teal), var(--yellow), var(--blue));
    border-radius: 0;
}

.sidebar-link img {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
.sidebar-header .nav-login-btn {
  display: inline-flex !important;
  }
}


/* === CTA SECTION=== */
.cta {
  padding-top: 40px;
  padding-bottom: 100px;
}

.cta-card {
  position: relative;
  border-radius: 28px;
  padding: 2px;
  background: linear-gradient(
    135deg,
    var(--teal),
    var(--yellow),
    var(--blue)
  );
  box-shadow:
    0 30px 80px -30px rgba(95, 184, 168, 0.45),
    0 10px 40px -10px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  isolation: isolate;
}

.cta-card-inner {
  position: relative;
  z-index: 2;
  background:
    radial-gradient(
      800px 300px at 85% 0%,
      rgba(95, 184, 168, 0.18),
      transparent 60%
  ),
    radial-gradient(
      600px 300px at 0% 100%,
      rgba(227, 179, 65, 0.12),
      transparent 60%
  ),
      var(--panel);
  border-radius: 26px;
  padding: 64px 56px;
  text-align: center;
}

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow);
  background: rgba(227, 179, 65, 0.1);
  border: 1px solid rgba(227, 179, 65, 0.25);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.cta-title {
  margin-bottom: 18px;
}

.cta-title .text-1 {
  color: var(--yellow);
}
.cta-title .text-2 {
  color: var(--teal);
}

.cta-desc {
  max-width: 620px;
  margin: 0 auto 32px;
}

.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.cta-footnote {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--cream-dim);
  padding-top: 24px;
  border-top: 1px dashed var(--rule);
  max-width: 560px;
  margin: 0 auto;
}

.cta-footnote span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 1;
}

.cta-orb-1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(95, 184, 168, 0.4),
    transparent 70%
  );
  top: -80px;
  right: -60px;
  opacity: 0.6;
}

.cta-orb-2 {
  width: 260px;
  height: 260px;
  background: radial-gradient(
    circle,
    rgba(227, 179, 65, 0.35),
    transparent 70%
  );
  bottom: -80px;
  left: -40px;
  opacity: 0.5;
}

.cta-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(
      to right,
    rgba(255, 255, 255, 0.04) 1px,
    transparent 1px
  ),
    linear-gradient(
      to bottom,
    rgba(255, 255, 255, 0.04) 1px,
    transparent 1px
  );
  background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(
        ellipse at center,
        black 20%,
  transparent 80%
  );
  pointer-events: none;
  z-index: 0;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
.cta-card-inner {
  padding: 48px 32px;
  }
}

@media (max-width: 768px) {
.cta {
  padding-top: 20px;
  padding-bottom: 64px;
}

.cta-card-inner {
  padding: 40px 22px;
  border-radius: 22px;
}

.cta-actions {
  flex-direction: column;
  align-items: stretch;
}

.cta-actions .btn-primary,
.cta-actions .btn-secondary {
  width: 100%;
  justify-content: center;
}

.cta-footnote {
  flex-direction: column;
  gap: 10px;
  font-size: 11px;
  }
}

/* TOMBOL SEARCH & TEMA DARK/LIGHT */
.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid var(--rule);
    background: var(--panel);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--cream-dim);
    font-size: 16px;
    transition: 0.15s;
    flex-shrink: 0;
}

.icon-btn:hover {
    color: var(--teal);
    border-color: var(--teal);
}

.icon-btn.active {
    color: var(--yellow);
    border-color: var(--yellow);
}

/* === AUTHOR === */
.post-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.4rem;
    margin: 1.4rem 0 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}
.post-author {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.post-author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #ff5d3a, #ffb238);
    flex-shrink: 0;
}
.post-author-name {
    font-weight: 700;
    font-size: 0.92rem;
    display: block;
}
.post-author-date {
    font-size: 0.8rem;
    color: var(--blue);
}
.post-stats {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    margin-left: auto;
    flex-wrap: wrap;
}
.post-stat {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--cream);
    font-family: var(--font-mono);
}
.like-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid var(--border);
    background: var(--panel);
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--cream-dim);
    transition: all 0.2s ease;
}
.like-btn:hover {
    border-color: var(--cream);
    color: var(--cream);
}
.like-btn.is-liked {
    background: var(--cream);
    border-color: var(--cream);
    color: #fff;
}
.like-btn .heart {
    transition: transform 0.25s ease;
}
.like-btn.is-liked .heart {
    transform: scale(1.15);
}

@media (max-width: 720px) {
.post-meta-bar {
  gap: 0.9rem;
}

.post-stats {
  margin-left: 0;
  width: 100%;
  justify-content: space-between;
  }
}