* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

:root {
  --bg: #f3f3f3;
  --white: #ffffff;
  --text: #441616;
  --muted: #8f6a6a;

  --red-1: #8f0f1f;
  --red-2: #b11f34;
  --red-3: #d33a52;
  --red-4: #f06a80;
  --red-soft: #fff1f3;

  --shadow: 0 18px 40px rgba(108, 21, 34, 0.12);
  --shadow-soft: 0 10px 24px rgba(108, 21, 34, 0.08);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

body {
  background:
    linear-gradient(90deg, #efefef 0 6%, #f9f9f9 6% 94%, #efefef 94% 100%);
  color: var(--text);
}

a {
  text-decoration: none;
  color: inherit;
}

.portal-shell {
  width: min(1180px, calc(100% - 30px));
  margin: 24px auto 60px;
}

.theme-toggle {
  position: absolute;
  top: -1px;
  right: 5px;
  z-index: 10;

  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;

  background: rgba(255,255,255,.16);
  color: white;
  font-size: 18px;
  cursor: pointer;

  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  transition: .25s ease;
}

.theme-toggle:hover {
  transform: scale(1.08) rotate(8deg);
  background: rgba(255,255,255,.26);
}

/* HERO */
.hero-card {
  position: relative;
  min-height: 320px;
  border-radius: var(--radius-xl);
  overflow: visible;
  background:
    linear-gradient(135deg, rgba(180, 22, 45, .92), rgba(119, 8, 26, .94)),
    url("img/hero-bg.jpg") center/cover;
  box-shadow: var(--shadow);
  padding: 20px 24px 28px;
  margin-bottom: 18px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 25%, rgba(255,255,255,.10), transparent 25%),
    radial-gradient(circle at 78% 20%, rgba(255,255,255,.10), transparent 22%);
  pointer-events: none;
}

.hero-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-badge {
  padding: 8px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,.9);
  color: var(--red-1);
  font-weight: 700;
  font-size: 14px;
}

.hero-dots {
  display: flex;
  gap: 6px;
}

.hero-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
}

.hero-content {
  position: relative;
  z-index: 2;
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.hero-text {
  max-width: 520px;
  padding-top: 18px;
}

.hero-text h1 {
  font-size: clamp(54px, 8vw, 88px);
  line-height: .95;
  letter-spacing: -3px;
  color: white;
}

.hero-subtitle {
  margin-top: 8px;
  color: rgba(255,255,255,.88);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .6px;
}

.hero-desc {
  margin-top: 18px;
  color: rgba(255,255,255,.80);
  line-height: 1.8;
  max-width: 460px;
  font-size: 14px;
}

.hero-side {
  align-self: flex-end;
  width: 230px;
  color: white;
}

.hero-side-line {
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,.4);
  margin-bottom: 14px;
}

.hero-side-label {
  font-size: 12px;
  opacity: .8;
  margin-bottom: 2px;
}

.hero-side h3 {
  font-size: 24px;
  margin-bottom: 16px;
}

.hero-side-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: rgba(255,255,255,.9);
  font-size: 14px;
}

.icon-mini {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.14);
}

.hero-character {
  position: absolute;
  right: 190px;
  bottom: 0;
  height: 120%;
  object-fit: contain;
  z-index: 1;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,.15));
  cursor: pointer;
}

/* GRID */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr .55fr;
  gap: 16px;
  align-items: start;
}

.card {
  background: var(--white);
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
}

/* LEFT INFO CARD */
.info-card {
  padding: 0 0 20px;
  overflow: hidden;
}

.card-head.dual {
  padding: 0;
}

.tab-group {
  display: inline-flex;
  background: linear-gradient(135deg, #d83b53, #a4132c);
  border-radius: 0 0 22px 0;
  padding: 10px 12px;
  gap: 20px;
  min-width: 220px;
  justify-content: center;
}

.tab {
  border: none;
  background: transparent;
  color: rgba(255,255,255,.75);
  font-size: 15px;
  cursor: pointer;
  font-weight: 500;
}

.tab.active {
  color: white;
  font-weight: 700;
}

.info-copy {
  padding: 18px 22px 0;
  min-height: 183px;
  max-height: 467px;
}

.info-copy p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 6px;
}

.info-copy h2 {
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -1px;
  color: #6f1a26;
}

.mini-line {
  width: 72px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #df566d, #a10f27);
  margin: 18px auto 14px;
}

.sub-tabs {
  display: flex;
  justify-content: space-evenly;
  color: #d0b8bd;
  font-size: 14px;
  margin-bottom: 14px;
}

.sub-tabs span.active {
  color: var(--red-1);
  font-weight: 700;
}

.profile-image-wrap {
  width: 210px;
  margin: 0 auto;
  position: relative;
}

.profile-image {
  width: 210px;
  height: 210px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #d4324d;
  padding: 4px;
  background: white;
  cursor: pointer;
}

.plus-btn {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #ff9db1, #d62d49);
  color: white;
  font-size: 28px;
  box-shadow: 0 10px 20px rgba(160, 20, 45, .2);
  cursor: pointer;
}

/* MIDDLE */
.middle-col {
  display: grid;
  gap: 16px;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  text-align: center; 
}
.icon-box {
  background: linear-gradient(180deg, #c52a43, #8f1024);
  color: white;
  min-height: 130px;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: .25s ease;
}

.icon-box:hover {
  transform: translateY(-5px);
}

.icon-shape {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.14);
  font-size: 28px;
}

.icon-box p {
  font-size: 15px;
  font-weight: 600;
}

.stats-card {
  padding: 20px 22px;
}

.stats-card h3 {
  color: #bf2140;
  margin-bottom: 22px;
}

.fake-chart {
  padding: 14px 10px 6px;
}

.chart-line {
  height: 170px;
  position: relative;
  border-left: 2px solid #f0d6db;
  border-bottom: 2px solid #f0d6db;
  background:
    linear-gradient(to right, transparent 19%, #f8e7ea 20%, transparent 21%, transparent 39%, #f8e7ea 40%, transparent 41%, transparent 59%, #f8e7ea 60%, transparent 61%, transparent 79%, #f8e7ea 80%, transparent 81%);
}

.chart-line::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 8px;
  top: 82px;
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    #d83c56 8%,
    #d83c56 20%,
    #d83c56 34%,
    #d83c56 48%,
    #d83c56 62%,
    #d83c56 78%,
    #d83c56 100%);
  clip-path: polygon(
    0% 64%, 8% 44%, 20% 52%, 33% 76%, 48% 30%,
    62% 18%, 78% 58%, 100% 10%, 100% 20%, 78% 68%,
    62% 28%, 48% 40%, 33% 86%, 20% 62%, 8% 54%, 0% 74%
  );
}

.dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #d83c56;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px rgba(216,60,86,.18);
}

.dot1 { left: 8px; top: 70px; }
.dot2 { left: 72px; top: 88px; }
.dot3 { left: 138px; top: 122px; }
.dot4 { left: 206px; top: 44px; }
.dot5 { right: 0; top: 18px; }

.chart-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 12px;
  color: #a9828a;
}

/* RIGHT PANEL */
.side-panel {
  padding: 18px 12px;
}

.mini-phone {
  width: 100%;
  background: linear-gradient(180deg, #b61f38, #8a1125);
  border-radius: 18px;
  padding: 16px 10px;
  margin-bottom: 16px;
}

.phone-screen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.phone-app {
  height: 62px;
  border-radius: 14px;
  background: rgba(255,255,255,.12);
  color: white;
  display: grid;
  place-items: center;
  font-size: 22px;
}

.side-buttons {
  display: grid;
  gap: 14px;
}

.side-btn {
  height: 68px;
  border-radius: 16px;
  background: linear-gradient(180deg, #8d1025, #650916);
  color: white;
  display: grid;
  place-items: center;
  font-size: 26px;
  transition: .25s ease;
}

.side-btn:hover {
  transform: translateY(-4px);
}

/* BOTTOM */
.bottom-card {
  position: relative;
  margin-top: 18px;
  border-radius: 28px;
  padding: 34px 18px 18px;
  background: linear-gradient(135deg, #a7122a, #7f0a1c);
  box-shadow: var(--shadow);
}

.floating-label {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 8px 18px;
  border-radius: 14px;
  font-weight: 700;
  color: var(--red-1);
  box-shadow: var(--shadow-soft);
}

.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 100px;
  gap: 16px;
}

.feature-panel {
  min-height: 180px;
  border-radius: 18px;
  padding: 22px 18px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
}

.feature-panel.light {
  background: linear-gradient(180deg, #df6178, #bd2843);
}

.feature-panel.mid {
  background: linear-gradient(180deg, #c93a53, #8c1024);
}

.feature-panel.strong {
  background: linear-gradient(180deg, #92162a, #650916);
}

.feature-icon {
  font-size: 34px;
}

.feature-panel h4 {
  font-size: 22px;
}

.feature-line {
  width: 72px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.35);
}

.feature-value {
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(255,255,255,.92);
  color: #7b1425;
  font-size: 24px;
  font-weight: 800;
  text-align: center;
}

.add-panel {
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #f05c78, #cf2746);
}

.add-panel span {
  font-size: 64px;
  font-weight: 300;
}

/* GALLERY */
.gallery-row {
  margin-top: 18px;
}

.gallery-card {
  background: white;
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.gallery-card h3 {
  margin-bottom: 16px;
  color: var(--red-1);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  cursor: pointer;
  transition: .25s ease;
}

.gallery-grid img:hover {
  transform: scale(1.04);
}

/* MODAL */
.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 0, 5, .72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: .25s ease;
  z-index: 9999;
}

.image-modal.show {
  opacity: 1;
  pointer-events: auto;
}

.image-modal img {
  max-width: min(900px, 100%);
  max-height: 85vh;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 26px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: white;
  color: #8f1024;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .bottom-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-character {
    height: 95%;
    right: 20px;
  }
}

@media (max-width: 760px) {
  .hero-card {
    padding-bottom: 260px;
  }

  .hero-content {
    flex-direction: column;
  }

  .hero-side {
    width: 100%;
  }

  .hero-character {
    height: 240px;
    right: 50%;
    transform: translateX(50%);
  }

  .icon-grid,
  .gallery-grid,
  .bottom-grid {
    grid-template-columns: 1fr;
  }

  .info-copy h2 {
    font-size: 30px;
  }

  .hero-text h1 {
    font-size: 52px;
  }
}

/* NIGHT MODE */
body.night {
  --page-bg: #080b10;
  --card-bg-1: #111827;
  --card-bg-2: #05070c;
  --pattern-opacity: .42;
}

body.night .portal-card {
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}

body.night .portal-card::after {
  background:
    radial-gradient(circle at 25% 35%, rgba(255,255,255,.08), transparent 28%),
    linear-gradient(90deg, rgba(0,0,0,.18), rgba(0,0,0,.65));
}

body.night .theme-toggle {
  background: rgba(255,255,255,.12);
}

/* =========================
   STELLAR BACKGROUND + THEME
========================= */

:root {
  --page-bg: #f6f1ee;
  --page-text: #2b0c12;

  --main-red: #a21f33;
  --deep-red: #74101f;

  --card-bg: rgba(255, 255, 255, 0.68);
  --card-border: rgba(140, 30, 45, 0.16);

  --stellar-opacity: 0.12;
  --hero-stellar-opacity: 0.18;

  --shadow-soft: 0 24px 70px rgba(91, 20, 28, 0.18);
}

body {
  position: relative;
  min-height: 100vh;
  color: var(--page-text);
  background:
    radial-gradient(circle at 20% 10%, rgba(180, 32, 55, 0.18), transparent 26%),
    radial-gradient(circle at 85% 20%, rgba(255, 180, 190, 0.28), transparent 24%),
    var(--page-bg);
  transition: background 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

/* pattern stellar di background seluruh page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("assets/stellar.png");
  background-size: 430px;
  background-repeat: repeat;
  opacity: var(--stellar-opacity);
  pointer-events: none;
  z-index: -2;
  transition: opacity 0.4s ease;
}

/* gradient lembut biar background nggak terlalu rame */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  transition: background 0.4s ease;
}

/* HERO pakai stellar juga */
.hero-card {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 18% 25%, rgba(255, 255, 255, 0.15), transparent 28%),
    linear-gradient(135deg, var(--main-red), var(--deep-red));
  box-shadow: var(--shadow-soft);
}

/* layer stellar di hero */
.hero-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(
      90deg,
      rgba(80, 0, 12, 0.15),
      rgba(80, 0, 12, 0.58)
    ),
    url("assets/stellar.png");
  background-size: cover, 390px;
  background-repeat: no-repeat, repeat;
  opacity: var(--hero-stellar-opacity);
  border-radius: var(--radius-xl);
  z-index: 0;
  pointer-events: none;
}


/* tombol night mode */
.theme-toggle {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;

  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 18px;
  cursor: pointer;

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
  transition: transform 0.25s ease, background 0.25s ease;
}

.theme-toggle:hover {
  transform: scale(1.08) rotate(8deg);
  background: rgba(255, 255, 255, 0.28);
}

/* card-card biar ikut adaptasi */
.card,
.bottom-card,
.gallery-card,
.icon-box {
  background: var(--card-bg);
  border-color: var(--card-border);
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    color 0.35s ease,
    box-shadow 0.35s ease;
}

/* =========================
   NIGHT MODE
========================= */

body.night {
  --page-bg: #06070b;
  --page-text: #f8f1f3;

  --main-red: #261018;
  --deep-red: #090a0f;

  --card-bg: rgba(255, 255, 255, 0.07);
  --card-border: rgba(255, 255, 255, 0.11);

  --stellar-opacity: 0.28;
  --hero-stellar-opacity: 0.45;

  --shadow-soft: 0 30px 90px rgba(0, 0, 0, 0.48);
}

body.night::after {
  background:
    radial-gradient(circle at 20% 10%, rgba(170, 35, 58, 0.2), transparent 26%),
    linear-gradient(
      180deg,
      rgba(0,0,0,0.62),
      rgba(0,0,0,0.86)
    );
}

body.night .hero-card {
  background:
    radial-gradient(circle at 18% 25%, rgba(255,255,255,0.08), transparent 26%),
    linear-gradient(135deg, #251019, #07080d);
}

body.night .hero-overlay {
  background-image:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.12),
      rgba(0, 0, 0, 0.68)
    ),
    url("assets/stellar.png");
}

body.night .theme-toggle {
  background: rgba(255,255,255,0.12);
}

body.night .theme-toggle:hover {
  background: rgba(255,255,255,0.22);
}

body.night .hero-badge,
body.night .tab,
body.night .sub-tabs span,
body.night .card,
body.night .bottom-card,
body.night .gallery-card,
body.night .icon-box,
body.night .feature-panel {
  color: #fff;
}

body.night .feature-panel {
  background: rgba(255,255,255,0.08);
}

/* =========================
   GLOBAL TEXT COLOR THEME
========================= */

:root {
  --text-color: #171717;
  --text-muted: rgba(0, 0, 0, 0.68);
  --text-soft: rgba(0, 0, 0, 0.45);
}

body.night {
  --text-color: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.72);
  --text-soft: rgba(255, 255, 255, 0.45);
}

/* semua tulisan utama */
body,
body * {
  color: var(--text-color);
}

/* tulisan yang lebih kecil / subtitle */
p,
span,
h1,
h2,
h3,
h4,
a,
button,
.hero-subtitle,
.hero-desc,
.hero-side-label,
.hero-badge,
.info-copy p,
.card h3,
.feature-value,
.sub-tabs span,
.tab,
.icon-box p {
  color: var(--text-color);
}

/* muted text */
.hero-desc,
.hero-side-label,
.info-copy p,
.chart-labels span {
  color: var(--text-muted);
}

/* link jangan biru default */
a {
  color: var(--text-color);
  text-decoration: none;
}

/* icon juga ikut warna theme */
.icon-mini,
.icon-shape,
.feature-icon,
.side-btn,
.phone-app {
  color: var(--text-color);
}

/* khusus tombol night mode biar iconnya tetap keliatan */
.theme-toggle {
  color: var(--text-color);
}

/* DAY MODE: tombol agak terang */
body:not(.night) .theme-toggle {
  background: rgba(255, 255, 255, 0.55);
}

/* NIGHT MODE: tombol gelap transparan */
body.night .theme-toggle {
  background: rgba(255, 255, 255, 0.12);
}

/* =========================
   HERO TEXT ALWAYS WHITE
========================= */

.hero-card,
.hero-card *,
.hero-card h1,
.hero-card h2,
.hero-card h3,
.hero-card p,
.hero-card span,
.hero-card a,
.hero-card button {
  color: #ffffff;
}

/* =========================
   ANNOUNCEMENT CARD
========================= */

.announcement-card {
  min-height: 3px;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}

.announcement-card::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -80px;
  top: -90px;
  border-radius: 50%;
  background: rgba(214, 22, 39, 0.18);
  filter: blur(30px);
  pointer-events: none;
}

.announcement-head {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.announce-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;

  color: #8c0b1d;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.3px;
}

body.dark .announce-label {
  color: #ffccd2;
}

.announce-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #d61627;
  box-shadow: 0 0 18px rgba(214, 22, 39, 0.8);
}

.announcement-head h3 {
  max-width: 360px;
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: -1px;
  color: var(--text-color, #1b1b1b);
}

.announce-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;

  display: grid;
  place-items: center;

  background: rgba(214, 22, 39, 0.12);
  font-size: 24px;
  box-shadow: inset 0 0 0 1px rgba(214, 22, 39, 0.12);
}

.announcement-card p {
  position: relative;
  z-index: 2;
  max-width: 520px;
  margin-top: 20px;

  color: rgba(40, 25, 28, 0.68);
  font-size: 14px;
  line-height: 1.8;
}

body.night .announcement-card p {
  color: rgba(255, 255, 255, 0.68);
  z-index: 99;
}

.announcement-bottom {
  position: relative;
  z-index: 2;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(142, 20, 35, 0.16);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.announcement-bottom small {
  color: rgba(40, 25, 28, 0.52);
  font-size: 12px;
  font-weight: 600;
}

body.dark .announcement-bottom small {
  color: rgba(255, 255, 255, 0.52);
}

.announcement-bottom a {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  color: #8c0b1d;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

body.dark .announcement-bottom a {
  color: #ffffff;
}

.announcement-bottom a span {
  transition: 0.25s ease;
}

.announcement-bottom a:hover span {
  transform: translate(4px, -4px);
}

/* =========================
   FIX MAIN GRID
========================= */

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(460px, 1.25fr) minmax(360px, 0.85fr) 220px;
  gap: 16px;
  align-items: start;
}

.middle-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* =========================
   CLEAN ACCESS PANEL
========================= */

.access-panel {
  padding: 16px;
  min-height: 450px;
  max-height: 600px;
  display: flex;
  flex-direction: column;
  gap: 14px;

  border-radius: 28px;
  overflow: hidden;
}

.access-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 4px 2px;
  margin-bottom: -3px;
}

.access-head span {
  color: rgba(90, 35, 45, 0.55);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.4px;
}

.access-head strong {
  color: #8c0b1d;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

body.dark .access-head span {
  color: rgba(255,255,255,0.5);
}

body.dark .access-head strong {
  color: #fff;
}

.access-feature {
  padding: 16px;
  border-radius: 24px;
  height: 140px;
  max-height: 300px;
  margin-bottom: -2px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.18), transparent 36%),
    linear-gradient(145deg, #d32236, #900717);

  color: white;
  text-decoration: none;

  position: relative;
  overflow: hidden;
  transition: 0.25s ease;
}

.access-feature::after {
  content: "TM3";
  position: absolute;
  right: -16px;
  bottom: -18px;

  font-size: 60px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -5px;

  color: rgba(255, 255, 255, 0.09);
}

.access-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(120, 0, 15, 0.25);
}

.access-feature-icon {
  width: 48px;
  height: 48px;
  padding: 4px;

  border-radius: 16px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.24);
}

.access-feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.access-feature h3 {
  position: relative;
  z-index: 2;

  font-size: 20px;
  line-height: 1.05;
  letter-spacing: -0.7px;
  margin-bottom: 2px;
}

.access-feature p {
  position: relative;
  z-index: 2;

  color: rgba(255,255,255,0.72);
  font-size: 11px;
  line-height: 1;
}

.access-list {
  display: grid;
  gap: 10px;
}

.access-item {
  min-height: 40px;
  padding: 10px 10px;
  margin-bottom: -2px;
  display: flex;
  align-items: center;
  gap: 11px;

  border-radius: 18px;
  background: #8d0616;
  color: white;
  text-decoration: none;

  transition: 0.25s ease;
}

.access-item:hover {
  transform: translateX(-4px);
  background: #ac0d20;
}

.access-item span {
  width: 36px;
  height: 36px;

  display: grid;
  place-items: center;

  border-radius: 13px;
  background: rgba(255,255,255,0.13);

  font-size: 16px;
  flex-shrink: 0;
}

.access-item strong {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
}

/* =========================
   MOBILE FIX
========================= */

@media (max-width: 1050px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .access-panel {
    min-height: auto;
  }

  .access-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .icon-grid {
    grid-template-columns: 1fr;
  }

  .access-list {
    grid-template-columns: 1fr;
  }
}

/* =========================
   FIX TEKS KHUSUS NIGHT MODE
========================= */

/* judul Tim Misa Muda Mudi di card kiri */
body.night .info-copy h2 {
  color: var(--red-2)!important;
}

/* deskripsi kecil di atas judul kiri */
body.night .info-copy p {
  color: rgba(255, 255, 255, 0.72) !important;
}

/* judul pengumuman */
body.night #announcementTitle {
  color: #ffffff !important;
}

/* keterangan/deskripsi pengumuman */
body.night #announcementText {
  color: rgba(255, 255, 255, 0.72) !important;
}

/* last update pengumuman */
body.night #announcementLastUpdate {
  color: rgba(255, 255, 255, 0.56) !important;
}

/* label pengumuman terbaru */
body.night .announce-label {
  color: #ffd6dc !important;
}

/* tombol lihat detail */
body.night .announcement-bottom a {
  color: #ffffff !important;
}

/* =========================
   ACCESS PANEL TEXT ALWAYS WHITE
========================= */

/* kartu utama merah */
.access-panel .access-feature,
.access-panel .access-feature h3,
.access-panel .access-feature p,
.access-panel .access-feature span,
.access-panel .access-feature div {
  color: #ffffff !important;
}

/* tombol menu merah */
.access-panel .access-item,
.access-panel .access-item strong,
.access-panel .access-item span {
  color: #ffffff !important;
}

/* icon box kecil di dalam tombol */
.access-panel .access-item > span {
  color: #ffffff !important;
}

/* tulisan deskripsi kecil kalau nanti dipakai */
.access-panel .access-item small {
  color: rgba(255, 255, 255, 0.68) !important;
}

/* biar tulisan TM3 transparan di background tetap soft */
.access-feature::after {
  color: rgba(255, 255, 255, 0.10) !important;
}

/*body.night .access-feature {
  
}*/

body.night .access-head span,
body.night .access-head strong {
  color: #ffffff !important;
}

.access-feature h3, .access-item strong {
  color: #ffffff !important;
}

.access-head strong {
  color:  #6f1a26!important;
}

/* SIMPLE FOOTER */

.simple-footer {
  margin-top: 18px;
  padding: 22px 26px;
  border-radius: 24px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(140, 30, 45, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.simple-footer strong {
  display: block;
  color: var(--text-color) !important;
  font-size: 16px;
  margin-bottom: 4px;
}

.simple-footer p {
  color: var(--text-muted) !important;
  font-size: 13px;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: var(--text-muted) !important;
  font-size: 13px;
  font-weight: 700;
  transition: 0.25s ease;
}

.footer-links a:hover {
  color: #d61627 !important;
}

body.night .simple-footer {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.09);
}

@media (max-width: 650px) {
  .simple-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    gap: 10px 14px;
  }
}

.hero-top span{
  color: var(--red-1) !important;
}

/* =========================
   PIN LOCK SCREEN
========================= */

body.pin-locked {
  overflow: hidden;
}

body.pin-locked .portal-shell {
  opacity: 0;
  pointer-events: none;
  user-select: none;
}

.pin-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;

  background:
    radial-gradient(circle at 20% 10%, rgba(214, 22, 39, 0.28), transparent 28%),
    radial-gradient(circle at 80% 80%, rgba(143, 6, 24, 0.26), transparent 32%),
    rgba(8, 7, 10, 0.92);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  transition: 0.35s ease;
}

body.pin-unlocked .pin-screen {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
}

.pin-card {
  width: min(390px, 100%);
  padding: 34px 28px;
  border-radius: 30px;

  text-align: center;

  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.14), transparent 36%),
    rgba(255, 255, 255, 0.08);

  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 28px 80px rgba(0,0,0,0.35);

  color: white;
}

.pin-logo {
  width: 76px;
  height: 76px;
  padding: 5px;
  margin: 0 auto 18px;

  border-radius: 24px;
  background: linear-gradient(135deg, #d32236, #8f0618);
}

.pin-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 19px;
}

.pin-label {
  color: rgba(255,255,255,0.68) !important;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  margin-bottom: 10px;
}

.pin-card h1 {
  color: #ffffff !important;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -1.2px;
  margin-bottom: 12px;
}

.pin-desc {
  color: rgba(255,255,255,0.68) !important;
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 24px;
}

#pinForm {
  display: grid;
  gap: 12px;
}

#pinInput {
  width: 100%;
  height: 54px;

  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 18px;
  outline: none;

  text-align: center;
  letter-spacing: 8px;

  background: rgba(255,255,255,0.10);
  color: #ffffff;

  font-size: 22px;
  font-weight: 800;
}

#pinInput::placeholder {
  color: rgba(255,255,255,0.38);
}

#pinForm button {
  height: 52px;
  border: 0;
  border-radius: 18px;

  background: linear-gradient(135deg, #d32236, #8f0618);
  color: #ffffff;

  font-size: 14px;
  font-weight: 800;
  cursor: pointer;

  transition: 0.25s ease;
}

#pinForm button:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(211, 34, 54, 0.28);
}

.pin-error {
  display: none;
  margin-top: 14px;

  color: #ffb8c1 !important;
  font-size: 13px;
  font-weight: 700;
}

.pin-error.show {
  display: block;
}

.pin-card.shake {
  animation: pinShake 0.35s ease;
}

@keyframes pinShake {
  0%, 100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-8px);
  }

  75% {
    transform: translateX(8px);
  }
}

.pin-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: 14px;
  width: 100%;
  height: 46px;

  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.16);

  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.82) !important;

  font-size: 13px;
  font-weight: 800;
  text-decoration: none;

  transition: 0.25s ease;
}

.pin-back-btn:hover {
  background: rgba(255,255,255,0.15);
  color: #ffffff !important;
  transform: translateY(-3px);
}