:root {
  --bg: #0b0b0b;
  --panel: #111;
  --yellow: linear-gradient(to bottom, #fff700 0%, #ffbc00 100%);
  --yellow2: linear-gradient(to bottom, #0089ff 0%, #0066ff 50%, #003059 100%);
  --text: #f4f4f4;
  --muted: #bdbdbd;
  --blue: #1976ff;
  --cardShadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --cardRadius: 12px;
  --ring: 0 0 0 3px rgba(255, 206, 0, 0.22);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background-color: #0b0b0b;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
    url("https://takenupload.com/naskahtoto-desktop");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

@media (max-width: 900px) {
  body {
    background-attachment: scroll;
  }
}

img {
  max-width: 100%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px;
}

hr.dots {
  border: 0;
  border-top: 1px dashed #ffffff;
  margin: 16px 0 22px;
}

/* =========================
   TOPBAR
========================= */
.topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  overflow: hidden;
  padding: 18px;
  margin-top: 12px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 206, 0, 0.2) 0%, rgba(0, 0, 0, 0) 45%),
    radial-gradient(circle at 80% 0%, rgba(255, 235, 0, 0.14) 0%, rgba(0, 0, 0, 0) 40%),
    linear-gradient(to bottom, #121212 0%, #000000 100%);
  border: 1px solid rgba(255, 206, 0, 0.35);
  border-radius: 16px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.55);
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 206, 0, 0.08) 0%, rgba(255, 206, 0, 0) 35%),
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.035) 0px,
      rgba(255, 255, 255, 0.035) 1px,
      rgba(0, 0, 0, 0) 8px,
      rgba(0, 0, 0, 0) 16px
    );
  opacity: 0.55;
  pointer-events: none;
}

.topbar::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 8px;
  height: 18px;
  background: radial-gradient(circle, rgba(255, 206, 0, 0.25) 0%, rgba(255, 206, 0, 0) 70%);
  filter: blur(8px);
  opacity: 0.45;
  pointer-events: none;
}

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

.brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.brand .logo {
  display: block;
  width: auto;
  max-width: 210px;
  height: auto;
  object-fit: contain;
}

.brand .sub {
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  opacity: 0.9;
}

.searchbox {
  display: flex;
  align-items: center;
  width: min(420px, 100%);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 206, 0, 0.28);
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
}

.searchbox input {
  width: 100%;
  min-height: 44px;
  padding: 12px;
  border: 0;
  outline: 0;
  font-size: 14px;
  background: transparent;
  color: #fff;
}

.searchbox input::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.searchbox input:focus {
  box-shadow: var(--ring);
}

.searchbox button {
  min-width: 54px;
  padding: 10px 14px;
  border: 0;
  cursor: pointer;
  background: var(--yellow2);
  font-weight: 800;
  border-left: 1px solid rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.searchbox button:focus {
  outline: none;
  box-shadow: var(--ring);
}

@media (max-width: 960px) {
  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .brand {
    align-items: center;
    text-align: center;
  }

  .searchbox {
    width: 100%;
  }
}

/* =========================
   HERO
========================= */
.hero-title {
  position: relative;
  display: block;
  overflow: hidden;
  margin: 18px 0 16px;
  padding: 18px 22px;
  text-align: center;
  font-weight: 900;
  letter-spacing: 0.5px;
  background:
    radial-gradient(circle at top, rgb(0 196 255 / 22%) 0%, rgb(255 0 0 / 0%) 45%),
    linear-gradient(to bottom, #111111 0%, #000000 100%);
  border: 1px solid rgb(0 255 182 / 35%);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}

.hero-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12px;
  right: 12px;
  height: 2px;
  background: linear-gradient(to right, transparent, #ffce00, transparent);
  opacity: 0.9;
  pointer-events: none;
}

.hero-title::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 10px;
  height: 18px;
  background: radial-gradient(circle, rgba(255, 206, 0, 0.22) 0%, rgba(255, 206, 0, 0) 70%);
  filter: blur(10px);
  opacity: 0.5;
  pointer-events: none;
}

.hero-title span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 12px 0 22px;
}

.hero-actions .action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-size: 13px;
  color: #fff;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.35) 100%),
    linear-gradient(to bottom, #111 0%, #000 100%);
  border: 1px solid rgba(255, 206, 0, 0.35);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.hero-actions .action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.55);
  filter: brightness(1.05);
}

.hero-actions .action-btn:active {
  transform: translateY(0);
}

.hero-actions .action-btn.action-primary {
  color: #ffffff;
  background: var(--yellow2);
  border: 1px solid rgba(0, 0, 0, 0.35);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.55);
}

@media (max-width: 520px) {
  .hero-actions {
    gap: 8px;
  }

  .hero-actions .action-btn {
    width: calc(50% - 8px);
    padding: 11px 10px;
    font-size: 12px;
  }
}

/* =========================
   RUNNING TEXT
========================= */
.teks-berjaalan,
marquee {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  margin: 10px 0 16px;
  padding: 10px 16px;
  color: #fff !important;
  font-weight: 900;
  letter-spacing: 0.4px;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.45)),
    linear-gradient(to bottom, #111 0%, #000 100%);
  border: 1px solid rgba(255, 206, 0, 0.45);
  border-radius: 12px;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.teks-berjaalan::before,
marquee::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12px;
  right: 12px;
  height: 2px;
  background: linear-gradient(to right, transparent, #ffce00, transparent);
  opacity: 0.95;
}

.teks-berjaalan::after,
marquee::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: -8px;
  height: 14px;
  background: radial-gradient(circle, rgba(255, 206, 0, 0.35), transparent 70%);
  filter: blur(10px);
  opacity: 0.6;
}

/* =========================
   GRID + CARD HOMEPAGE
========================= */
.grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:20px;
  position:relative;
  z-index:1;
}

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

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

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

  .card .thumb img{
    height:220px;
  }

  .card h3{
    font-size:16px;
    min-height:auto;
  }
}

.card{
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgb(255 244 39) 0%, rgba(255, 214, 83, 1) 45%, rgb(255 188 36) 100%);
  box-shadow:
    0 18px 40px rgba(0,0,0,.38),
    inset 0 1px 0 rgba(255,255,255,.45);
  color:#111;
  display:flex;
  flex-direction:column;
  height:100%;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.card::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.38) 0%, rgba(255,255,255,0) 34%),
    radial-gradient(circle at bottom right, rgba(0,102,255,.12) 0%, rgba(0,102,255,0) 30%);
  pointer-events:none;
}

.card:hover{
  transform: translateY(-5px);
  box-shadow:
    0 24px 50px rgba(0,0,0,.46),
    inset 0 1px 0 rgba(255,255,255,.5);
  filter: brightness(1.02);
}

.card .thumb{
  position:relative;
  padding:12px 12px 0;
}

.card .thumb::after{
  content:"";
  position:absolute;
  left:12px;
  right:12px;
  bottom:0;
  height:40%;
  background: linear-gradient(to top, rgba(0,0,0,.18), rgba(0,0,0,0));
  border-radius:14px;
  pointer-events:none;
  opacity:.55;
}

.card .thumb img{
  width:100%;
  height:210px;
  object-fit:cover;
  display:block;
  border-radius:14px;
  border:2px solid rgba(140,95,0,.42);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

.card .body{
  position:relative;
  z-index:1;
  display:flex;
  flex-direction:column;
  flex:1;
  padding:14px 14px 16px;
}

.card h3{
  margin:0 0 8px;
  font-size:17px;
  line-height:1.3;
  font-weight:900;
  color:#161616;
  text-transform:uppercase;
  letter-spacing:.2px;
  overflow:hidden;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  min-height:44px;
}

.meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 10px;
}

.meta > div{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.38);
  border:1px solid rgba(0,0,0,.08);
  color:#173b74;
  font-size:11px;
  font-weight:800;
  line-height:1.2;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28);
}

.smalltext{
  color:rgba(0,0,0,.82);
  font-size:13px;
  line-height:1.6;
  margin-bottom:14px;

  overflow:hidden;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
}

.card .btn{
  margin-top:auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:44px;
  padding:11px 12px;
  border-radius:12px;
  text-decoration:none;
  font-size:13px;
  font-weight:900;
  letter-spacing:.25px;
  color:#fff;
  background: linear-gradient(to bottom, #0089ff 0%, #0066ff 50%, #003059 100%);
  border:1px solid rgba(0,0,0,.22);
  box-shadow:
    0 10px 20px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.16);
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}

.card .btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow:
    0 14px 26px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.18);
}

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

/* =========================
   PAGINATION
========================= */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 22px 0;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 206, 0, 0.35);
}

.page-link.is-active {
  color: #111;
  background: var(--yellow);
}

/* =========================
   DETAIL PAGE
========================= */
.detail {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 18px;
  align-items: start;
}

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

.panel {
  padding: 14px;
  color: #080808;
  background:
    radial-gradient(circle at 20% 10%, #ffcd01 0%, rgba(218, 203, 2, 0) 45%),
    radial-gradient(circle at 80% 0%, rgba(236, 217, 2, 0.14) 0%, rgba(202, 199, 13, 0) 40%),
    linear-gradient(to bottom, #ebdb00 0%, #ffcd00 100%);
  border-radius: var(--cardRadius);
  box-shadow: var(--cardShadow);
  margin-top: 14px;
}

.panel .bigimg {
  display: block;
  width: 100%;
  border: 2px solid rgba(0, 0, 0, 0.25);
  border-radius: var(--cardRadius);
  object-fit: cover;
}

.detail-title {
  position: relative;
  display: block;
  overflow: hidden;
  margin: 12px 0 14px;
  padding: 16px 18px;
  text-align: center;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fff;
  background:
    radial-gradient(circle at top, rgba(255, 206, 0, 0.22) 0%, rgba(0, 0, 0, 0) 45%),
    linear-gradient(to bottom, #111111 0%, #000000 100%);
  border: 1px solid rgba(255, 206, 0, 0.35);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}

.detail-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12px;
  right: 12px;
  height: 2px;
  background: linear-gradient(to right, transparent, #ffce00, transparent);
  opacity: 0.9;
  pointer-events: none;
}

.detail-title::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 10px;
  height: 18px;
  background: radial-gradient(circle, rgba(255, 206, 0, 0.22) 0%, rgba(255, 206, 0, 0) 70%);
  filter: blur(10px);
  opacity: 0.5;
  pointer-events: none;
}

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

.backlink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow2);
  color: #ffffff;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
}

.post-content-panel {
  padding: 18px;
}

.post-heading {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.25;
  text-transform: uppercase;
}

.post-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 14px;
  color: #222;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
}

.detail-content {
  color: #111;
  font-size: 16px;
  line-height: 1.85;
  word-break: break-word;
}

.detail-content p:first-child {
  margin-top: 0;
}

.detail-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.sidebar {
  position: sticky;
  top: 20px;
}

.sidebar-title {
  margin: 4px 0 10px;
  color: #fff;
  font-weight: 900;
  font-size: 16px;
}

.sidebar .sidecard {
  overflow: hidden;
  margin-bottom: 14px;
  color: #111;
  background: var(--yellow);
  border-radius: var(--cardRadius);
  box-shadow: var(--cardShadow);
}

.sidebar .sidecard img {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.sidebar .sidecard .p {
  padding: 10px;
}

.sidebar .sidecard .p .t {
  font-weight: 900;
  font-size: 13px;
  line-height: 1.25;
  text-transform: uppercase;
}

.sidebar .sidecard .p .m {
  margin: 6px 0;
  font-size: 12px;
  opacity: 0.85;
}

.sidebar .sidecard .p a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 9px 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  background: linear-gradient(to bottom, #0089ff 0%, #0066ff 50%, #003059 100%);
  border-radius: 8px;
}

@media (max-width: 960px) {
  .sidebar {
    position: static;
  }
}

/* =========================
   ARTICLE SECTION
========================= */
.naskahtoto-article {
  margin-top: 24px;
  border-radius: 18px !important;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55) !important;
}

/* =========================
   PROMO SLIDER
========================= */
.promo-slider {
  max-width: 1200px;
  overflow: hidden;
  margin: 14px auto 18px;
  padding: 10px;
  background: linear-gradient(to bottom, #121212, #000);
  border: 1px solid rgba(255, 206, 0, 0.35);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}

.promo-slides {
  display: flex;
  width: 400%;
  animation: promoSlide 12s infinite;
  will-change: transform;
}

.promo-slides img {
  display: block;
  flex: 0 0 100%;
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 14px;
}

@media (max-width: 900px) {
  .promo-slides img {
    height: 220px;
  }
}

@keyframes promoSlide {
  0% {
    transform: translateX(0%);
  }
  20% {
    transform: translateX(0%);
  }
  25% {
    transform: translateX(-100%);
  }
  45% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(-200%);
  }
  70% {
    transform: translateX(-200%);
  }
  75% {
    transform: translateX(-300%);
  }
  95% {
    transform: translateX(-300%);
  }
  100% {
    transform: translateX(0%);
  }
}

/* =========================
   ADMIN DASHBOARD
========================= */
.admin-dashboard-wrap {
  padding-top: 20px;
  padding-bottom: 32px;
}

.admin-hero {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  overflow: hidden;
  margin-bottom: 20px;
  padding: 24px;
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 206, 0, 0.18) 0%, rgba(0, 0, 0, 0) 36%),
    radial-gradient(circle at 100% 0%, rgba(0, 137, 255, 0.18) 0%, rgba(0, 0, 0, 0) 34%),
    linear-gradient(to bottom, rgba(18, 18, 18, 0.96) 0%, rgba(0, 0, 0, 0.92) 100%);
  border: 1px solid rgba(255, 206, 0, 0.22);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.admin-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 2px;
  background: linear-gradient(to right, transparent, #ffce00, transparent);
  opacity: 0.9;
}

.admin-hero-copy {
  max-width: 760px;
}

.admin-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  margin-bottom: 12px;
  color: #111;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.8px;
  background: var(--yellow);
  border-radius: 999px;
}

.admin-title {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
}

.admin-desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.8;
}

.admin-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.admin-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.35)),
    linear-gradient(to bottom, #171717 0%, #050505 100%);
  border: 1px solid rgba(255, 206, 0, 0.25);
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.admin-chip:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.4);
}

.admin-chip-danger {
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.28)),
    linear-gradient(to bottom, #ff3f3f 0%, #b50000 100%);
  border-color: rgba(0, 0, 0, 0.2);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.admin-stat-card {
  padding: 20px;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.18)),
    linear-gradient(to bottom, #181818 0%, #080808 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.admin-stat-label {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.admin-stat-value {
  color: #fff;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.admin-stat-text {
  font-size: 22px;
}

.admin-stat-card-action {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.admin-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 16px;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  background: var(--yellow2);
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.admin-primary-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.42);
}

.admin-surface {
  padding: 20px;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    linear-gradient(to bottom, rgba(15, 15, 15, 0.95), rgba(6, 6, 6, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
}

.admin-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.admin-section-title {
  margin: 0 0 6px;
  color: #fff;
  font-size: 24px;
  line-height: 1.15;
}

.admin-section-subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
}

.admin-table {
  width: 100%;
  min-width: 860px;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(255, 255, 255, 0.02);
}

.admin-table thead th {
  padding: 16px 14px;
  text-align: left;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-table tbody td {
  padding: 16px 14px;
  vertical-align: middle;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.admin-row-number {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  color: #111;
  font-weight: 900;
  background: var(--yellow);
  border-radius: 999px;
}

.admin-post-title {
  margin-bottom: 4px;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
}

.admin-post-amount {
  color: #8cc8ff;
  font-size: 13px;
  font-weight: 700;
}

.admin-date-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  background: linear-gradient(to bottom, #1f1f1f 0%, #090909 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.admin-action-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.admin-action-btn-edit {
  background: var(--yellow2);
}

.admin-action-btn-delete {
  background: linear-gradient(to bottom, #ff4d4d 0%, #cf1212 100%);
}

.admin-empty-state {
  padding: 40px 20px;
  text-align: center;
  color: #fff;
}

.admin-empty-icon {
  margin-bottom: 10px;
  font-size: 42px;
}

.admin-empty-state h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.admin-empty-state p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 980px) {
  .admin-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-hero-actions {
    justify-content: flex-start;
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 16px;
  }

  .hero-actions .action-btn {
    width: 100%;
  }

  .admin-dashboard-wrap {
    padding-top: 16px;
  }

  .admin-hero,
  .admin-surface {
    padding: 16px;
    border-radius: 18px;
  }

  .admin-title {
    font-size: 30px;
  }

  .admin-desc {
    font-size: 14px;
    line-height: 1.7;
  }

  .admin-chip,
  .admin-primary-btn {
    width: 100%;
  }

  .admin-actions {
    flex-direction: column;
  }

  .admin-action-btn {
    width: 100%;
  }
}

/* =========================
   ADMIN FORM UI
========================= */

.admin-form-surface{
  padding: 22px;
}

.admin-alert{
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(0,0,0,.28);
}

.admin-alert-danger{
  color: #fff;
  background: linear-gradient(to bottom, #ff5f5f 0%, #c71d1d 100%);
  border: 1px solid rgba(0,0,0,.18);
}

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

.admin-form-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-field{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-field label{
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .2px;
}

.admin-input,
.admin-textarea{
  width: 100%;
  border: 1px solid rgba(255,255,255,.18);
  background:
    linear-gradient(to bottom, rgba(255,255,255,.10), rgba(255,255,255,.04)),
    linear-gradient(to bottom, #242424 0%, #161616 100%);
  color: #ffffff;
  border-radius: 14px;
  padding: 13px 14px;
  font-size: 14px;
  line-height: 1.5;
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 6px 16px rgba(0,0,0,.18);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.admin-input::placeholder,
.admin-textarea::placeholder{
  color: rgba(255,255,255,.58);
}

.admin-input:focus,
.admin-textarea:focus{
  border-color: rgba(0,137,255,.72);
  background:
    linear-gradient(to bottom, rgba(255,255,255,.12), rgba(255,255,255,.05)),
    linear-gradient(to bottom, #2a2a2a 0%, #1b1b1b 100%);
  box-shadow:
    0 0 0 3px rgba(0,137,255,.18),
    inset 0 1px 0 rgba(255,255,255,.08),
    0 8px 18px rgba(0,0,0,.22);
}

.admin-textarea{
  resize: vertical;
  min-height: 120px;
}

.admin-input-file{
  padding: 11px 12px;
}

.admin-help{
  color: rgba(255,255,255,.58);
  font-size: 12px;
  line-height: 1.5;
}

.admin-form-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 4px;
}

@media (max-width: 860px){
  .admin-form-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px){
  .admin-form-surface{
    padding: 16px;
  }

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

  .admin-form-actions .admin-primary-btn,
  .admin-form-actions .admin-chip{
    width: 100%;
  }
}

/* =========================
   ADMIN EDIT PAGE
========================= */

.admin-edit-layout{
  display:grid;
  grid-template-columns:minmax(0, 1fr) 360px;
  gap:20px;
}

.admin-preview-surface{
  padding:22px;
  height:fit-content;
}

.admin-preview-head{
  margin-bottom:14px;
}

.admin-preview-card{
  overflow:hidden;
  border-radius:20px;
  background:
    linear-gradient(to bottom, rgba(255,255,255,.06), rgba(0,0,0,.05)),
    linear-gradient(to bottom, #1a1a1a 0%, #070707 100%);
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 16px 36px rgba(0,0,0,.35);
}

.admin-preview-image-wrap{
  padding:12px 12px 0;
}

.admin-preview-image{
  width:100%;
  aspect-ratio:16/10;
  object-fit:cover;
  display:block;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
}

.admin-preview-content{
  padding:14px;
}

.admin-preview-badge{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
  color:#111;
  background:linear-gradient(to bottom, #fff700 0%, #ffbc00 100%);
  margin-bottom:10px;
}

.admin-preview-title{
  margin:0 0 6px;
  color:#fff;
  font-size:19px;
  line-height:1.3;
}

.admin-preview-amount{
  color:#8cc8ff;
  font-size:14px;
  font-weight:800;
  margin-bottom:10px;
}

.admin-preview-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:12px;
}

.admin-preview-meta span{
  display:inline-flex;
  align-items:center;
  padding:7px 10px;
  border-radius:999px;
  color:#fff;
  font-size:12px;
  font-weight:800;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.08);
}

.admin-preview-excerpt{
  margin:0;
  color:rgba(255,255,255,.76);
  font-size:14px;
  line-height:1.7;
}

.admin-preview-excerpt-muted{
  color:rgba(255,255,255,.48);
}

@media (max-width:1080px){
  .admin-edit-layout{
    grid-template-columns:1fr;
  }
}

@media (max-width:640px){
  .admin-preview-surface{
    padding:16px;
  }
}

/* =========================
   POST NEW AUTO TEMPLATE
========================= */

.admin-field-full{
  grid-column: 1 / -1;
}

.admin-edit-layout{
  display:grid;
  grid-template-columns:minmax(0, 1.15fr) minmax(320px, .85fr);
  gap:20px;
  align-items:start;
}

.admin-preview-card{
  position:sticky;
  top:20px;
}

.admin-preview-block + .admin-preview-block{
  margin-top:16px;
}

.admin-preview-label{
  color:#fff;
  font-size:13px;
  font-weight:800;
  margin-bottom:8px;
}

.admin-preview-box{
  padding:14px;
  border-radius:16px;
  background:
    linear-gradient(to bottom, rgba(255,255,255,.06), rgba(255,255,255,.02)),
    linear-gradient(to bottom, #141414 0%, #080808 100%);
  border:1px solid rgba(255,255,255,.10);
  color:#fff;
  font-size:14px;
  line-height:1.75;
  overflow:auto;
}

.admin-preview-html .bukti-card{
  max-width:none;
  margin:16px 0;
}

@media (max-width:1100px){
  .admin-edit-layout{
    grid-template-columns:1fr;
  }

  .admin-preview-card{
    position:static;
  }
}

.bukti-card{
  max-width:560px;
  background:#04458f;
  border:1px solid #4e4300;
  border-radius:12px;
  padding:18px;
  margin:20px 0;
}

.bukti-card h4{
  margin:0 0 14px;
  font-size:16px;
  color:#ffffff;
}

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

.bukti-item{
  background:#221a02;
  border:1px dashed #000000;
  border-radius:8px;
  padding:12px;
}

.bukti-label{
  font-size:12px;
  color:#ffffff;
}

.bukti-value{
  margin-top:4px;
  font-size:14px;
  font-weight:bold;
  color:#ffffff;
}

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

/* =========================
   ADMIN LOGIN UI
========================= */

.admin-login-wrap{
  max-width: 720px;
  padding-top: 32px;
  padding-bottom: 40px;
}

.admin-login-hero{
  margin-bottom: 18px;
}

.admin-login-surface{
  padding: 22px;
}

.admin-login-form{
  gap: 16px;
}

.admin-login-form .admin-input{
  min-height: 50px;
}

.admin-login-form .admin-form-actions{
  margin-top: 6px;
}

.admin-login-form .admin-primary-btn{
  width: 100%;
}

@media (max-width: 640px){
  .admin-login-wrap{
    padding-top: 18px;
    padding-bottom: 28px;
  }

  .admin-login-surface{
    padding: 16px;
  }
}