
:root {
  --module-border: rgba(255, 173, 232, 0.18);
  --module-border-strong: rgba(255, 173, 232, 0.30);
  --module-card-bg: linear-gradient(180deg, rgba(20, 13, 30, 0.96), rgba(42, 18, 44, 0.92));
  --module-card-bg-soft: linear-gradient(180deg, rgba(24, 14, 36, 0.92), rgba(33, 13, 41, 0.88));
  --module-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
  --module-shadow-soft: 0 14px 30px rgba(0, 0, 0, 0.26);
}

.isaing-module-page {
  padding: max(10px, env(safe-area-inset-top)) 10px max(18px, env(safe-area-inset-bottom));
}

.isaing-module-page > * {
  position: relative;
  z-index: 4;
}

.module-main-header,
#malaysia-time.module-time,
.topbar.module-topbar,
.footer {
  width: min(1320px, calc(100% - 8px));
  margin-left: auto;
  margin-right: auto;
}

.module-main-header {
  margin-bottom: 14px;
}

#malaysia-time.module-time {
  margin-bottom: 12px;
}

.topbar.module-topbar {
  position: relative;
  top: auto;
  margin-bottom: 14px;
  border: 1px solid var(--module-border);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(20, 13, 30, 0.92), rgba(33, 13, 41, 0.88));
  box-shadow: var(--module-shadow);
  backdrop-filter: blur(12px);
}

.module-topbar .topbar-inner {
  min-height: unset;
  padding: 14px 18px;
}

.module-topbar .brand {
  font-weight: 800;
  gap: 14px;
}

.module-topbar .brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--maroon-neon), var(--maroon-neon-soft));
  box-shadow: var(--shadow-soft);
}

.module-topbar .nav-link,
.module-topbar .button,
.module-topbar .button-ghost,
.module-topbar .button-danger,
.module-topbar .button-soft {
  border-radius: 999px;
  border: 1px solid var(--module-border);
  padding: 10px 16px;
  min-height: 42px;
}

.module-topbar .nav-link {
  color: var(--steel);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.module-topbar .nav-link:hover,
.module-topbar .nav-link:focus-visible {
  transform: translateY(-1px);
  border-color: var(--module-border-strong);
  background: rgba(255, 255, 255, 0.08);
}

.module-topbar .nav-link.is-active {
  color: #fff;
  border-color: rgba(255, 179, 216, 0.28);
  background: linear-gradient(135deg, rgba(161, 41, 103, 0.86), rgba(209, 93, 151, 0.75));
  box-shadow: var(--shadow-soft);
}

.module-page-shell {
  width: min(1320px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.module-header,
.section {
  margin: 0;
}

.module-header .container,
.section .container,
.footer .container {
  width: 100%;
  max-width: none;
}

.hero-panel,
.card,
.stat-card,
.status-banner,
.footer,
.hero-action-card {
  border: 1px solid var(--module-border);
  border-radius: 24px;
  background: var(--module-card-bg);
  box-shadow: var(--module-shadow);
  backdrop-filter: blur(12px);
}

.hero-panel {
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -30px -70px auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 132, 190, 0.18), transparent 68%);
  pointer-events: none;
}

.hero-panel h1 {
  margin: 10px 0 10px;
  font-size: clamp(1.35rem, 2.4vw, 2.4rem);
  line-height: 1.1;
}

.hero-panel p,
.small,
.placeholder,
.empty,
.list-item p,
.history-meta,
.meta-line,
.footer,
.footer .small,
.split-note,
.stat-note {
  color: var(--muted);
}

.hero-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.hero-copy {
  min-width: min(100%, 540px);
  flex: 1 1 520px;
}

.hero-copy p {
  max-width: 880px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
  justify-content: flex-end;
  min-width: min(100%, 260px);
  flex: 0 1 320px;
}

.eyebrow,
.badge,
.code-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--module-border);
  background: rgba(255, 179, 216, 0.10);
  color: var(--rose-soft);
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .03em;
}

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

.badge strong,
.code-pill strong,
.eyebrow strong {
  color: #fff;
}

.badge.success { background: rgba(150, 226, 180, 0.12); color: #d9ffe8; }
.badge.warning { background: rgba(255, 209, 155, 0.12); color: #fff0da; }
.badge.danger { background: rgba(255, 159, 180, 0.12); color: #ffe2ea; }

.status-banner {
  margin-top: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
}

.status-banner strong {
  display: block;
  margin-bottom: 6px;
}

.status-banner p { margin: 0; }
.status-banner.is-success { border-color: rgba(150, 226, 180, 0.28); }
.status-banner.is-warning { border-color: rgba(255, 209, 155, 0.28); }
.status-banner.is-danger { border-color: rgba(255, 159, 180, 0.30); }

.hero-summary-grid,
.stats-grid,
.moderation-grid,
.two-column,
.feature-grid {
  display: grid;
  gap: 14px;
}

.hero-summary-grid,
.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.moderation-grid,
.two-column,
.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.stat-card,
.hero-action-card {
  padding: 20px;
}

.hero-action-card {
  background: var(--module-card-bg-soft);
  min-height: 100%;
}

.hero-action-card h3,
.card h2,
.card h3,
.stat-card h3,
.list-item h3,
.section-header h2,
.section-header h3 {
  margin: 0;
}

.hero-action-card p,
.stat-card p,
.list-item p {
  margin: 8px 0 0;
  line-height: 1.55;
}

.stat-card {
  background: var(--module-card-bg-soft);
  box-shadow: var(--module-shadow-soft);
}

.stat-card strong {
  display: block;
  margin: 10px 0 8px;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
}

.section-header,
.split-head,
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.section-header {
  margin-bottom: 16px;
}

.list,
.history-list,
.log-list {
  display: grid;
  gap: 12px;
}

.list-item,
.history-item,
.log-item {
  border: 1px solid var(--module-border);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
}

.form-grid,
.button-grid,
.form-actions {
  display: grid;
  gap: 12px;
}

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

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

.preset-row,
.filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--module-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--steel);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.chip-button:hover,
.chip-button:focus-visible {
  transform: translateY(-1px);
  border-color: var(--module-border-strong);
}

.chip-button.is-active {
  color: #fff;
  border-color: rgba(255, 179, 216, 0.28);
  background: linear-gradient(135deg, rgba(161, 41, 103, 0.86), rgba(209, 93, 151, 0.75));
  box-shadow: var(--shadow-soft);
}

.filter-grid {
  margin-bottom: 16px;
}

.countdown-live {
  color: #fff3f8;
}

.field,
label.field {
  display: grid;
  gap: 8px;
}

.fieldset-title,
.field > span,
label > span,
.field label {
  color: var(--muted);
  font-size: .92rem;
}

.input,
.select,
.textarea,
pre.json-block {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--module-border);
  background: rgba(12, 10, 20, 0.92);
  color: var(--steel);
  padding: 12px 14px;
  font: inherit;
}

.input,
.select {
  min-height: 48px;
}

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

.button,
.button-ghost,
.button-danger,
.button-soft {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover,
.button-ghost:hover,
.button-danger:hover,
.button-soft:hover,
.button:focus-visible,
.button-ghost:focus-visible,
.button-danger:focus-visible,
.button-soft:focus-visible {
  transform: translateY(-1px);
}

.button {
  background: linear-gradient(135deg, var(--maroon-neon), var(--maroon-neon-soft));
  box-shadow: var(--shadow-soft);
}

.button-soft {
  background: linear-gradient(135deg, rgba(161, 41, 103, 0.8), rgba(123, 62, 175, 0.78));
}

.button-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--module-border);
  color: var(--steel);
}

.button-danger {
  background: linear-gradient(135deg, #9f2443, #ff6f9e);
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--module-border);
  border-radius: 18px;
  background: rgba(12, 10, 20, 0.45);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
}

.table-wrap th,
.table-wrap td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--module-border);
  vertical-align: top;
}

.table-wrap th {
  color: var(--muted);
  font-size: .76rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.table-wrap tr:last-child td {
  border-bottom: 0;
}

.progress-shell {
  margin-top: 12px;
  border: 1px solid var(--module-border);
  border-radius: 20px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
}

.progress-track {
  margin-top: 10px;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.progress-bar {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--maroon-neon), var(--maroon-neon-soft));
}

.inline-code,
.json-block {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.json-block {
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.footer {
  padding: 16px 20px;
}

.footer-inner {
  align-items: center;
}

@media (max-width: 1100px) {
  .hero-summary-grid,
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .moderation-grid,
  .two-column,
  .feature-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .isaing-module-page {
    padding-left: 8px;
    padding-right: 8px;
  }

  .module-topbar .topbar-inner,
  .section-header,
  .split-head,
  .footer-inner,
  .hero-intro {
    flex-direction: column;
    align-items: stretch;
  }

  .module-topbar .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .module-topbar .nav-link { text-align: center; }

  .hero-panel,
  .card,
  .stat-card,
  .hero-action-card { padding: 16px; }

  .hero-summary-grid,
  .stats-grid,
  .button-grid.grid-2,
  .button-grid.grid-3 { grid-template-columns: 1fr; }

  .hero-actions,
  .preset-row,
  .filter-actions { flex-direction: column; }

  .chip-button,
  .button,
  .button-ghost,
  .button-danger,
  .button-soft,
  .hero-actions > * {
    width: 100%;
  }

  .table-wrap table { min-width: 620px; }
}

@media (max-width: 560px) {
  .module-main-header .main-header__title { font-size: 1.35rem; }
  .module-main-header .main-header__subtitle { font-size: .7rem; letter-spacing: .1em; }
  .badge-row { gap: 8px; }
  .badge,
  .code-pill,
  .eyebrow { width: 100%; justify-content: center; }
}
