
[hidden] {
  display: none !important;
}

.admin-banner[hidden],
.admin-hint[hidden] {
  display: none !important;
}

:root {
  --bg: #f5f7fb;
  --card: rgba(255, 255, 255, 0.82);
  --card-solid: #ffffff;
  --text: #172033;
  --muted: #667085;
  --line: rgba(23, 32, 51, 0.10);
  --primary: #2546f0;
  --primary-dark: #1831b8;
  --soft-blue: #e9efff;
  --soft-slate: #eef1f6;
  --shadow: 0 24px 70px rgba(25, 39, 76, 0.12);
  --shadow-soft: 0 14px 35px rgba(25, 39, 76, 0.10);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(37, 70, 240, 0.18), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.14), transparent 32rem),
    linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(37, 70, 240, 0.14) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.85), transparent 78%);
}

.ambient {
  position: fixed;
  width: 28rem;
  height: 28rem;
  border-radius: 999px;
  filter: blur(42px);
  opacity: .26;
  pointer-events: none;
}

.ambient-one { top: -9rem; right: 10%; background: #8fb3ff; }
.ambient-two { bottom: -12rem; left: 7%; background: #9ee7ff; }

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 36px auto;
  position: relative;
  z-index: 1;
}

.hero-card,
.section-card {
  border: 1px solid var(--line);
  background: var(--card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
}

.hero-card {
  min-height: 252px;
  padding: clamp(28px, 5vw, 52px);
  border-radius: var(--radius-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  overflow: hidden;
  position: relative;
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -10%;
  top: -55%;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(37, 70, 240, .16), rgba(14, 165, 233, .08));
}

.hero-copy { position: relative; z-index: 2; max-width: 720px; }
.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 1;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--primary);
}

h1, h2, h3, p { margin: 0; }

h1 {
  margin-top: 14px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: .95;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 620px;
  margin-top: 20px;
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.7;
  color: var(--muted);
}

.hero-badge {
  position: relative;
  z-index: 2;
  width: 148px;
  height: 148px;
  flex: 0 0 148px;
  border-radius: 36px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #ffffff, #eaf0ff);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 28px 52px rgba(37,70,240,.18);
}

.badge-core {
  width: 86px;
  height: 86px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
  font-size: 30px;
  background: linear-gradient(145deg, var(--primary), #0ea5e9);
}

.logo-core {
  width: 96px;
  height: 96px;
  padding: 12px;
  border-radius: 30px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(23, 32, 51, 0.08);
}

.logo-core img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.badge-orbit {
  position: absolute;
  inset: 20px;
  border: 1px dashed rgba(37, 70, 240, .34);
  border-radius: 30px;
  transform: rotate(12deg);
}

.section-card {
  margin-top: 24px;
  padding: clamp(22px, 4vw, 34px);
  border-radius: var(--radius-lg);
}

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

h2 {
  margin-top: 8px;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.035em;
}

.lock-pill,
.status-pill {
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.lock-pill { background: #fff3e6; color: #a45200; }
.status-pill { background: #e9f8ef; color: #137333; }

.grid {
  display: grid;
  gap: 18px;
}

.grid-leader { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cs,
.grid-office,
.grid-government { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Area Unit dibuat eksplisit 3 x 3 view: 3 kolom desktop dengan card seragam. */
.grid-unit {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: row;
  align-items: stretch;
}

.grid-unit .portal-button {
  min-height: 132px;
}

.portal-button {
  width: 100%;
  min-height: 112px;
  border: 1px solid rgba(23,32,51,.09);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  color: var(--text);
  background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(246,248,252,.82));
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.portal-button:hover {
  transform: translateY(-4px);
  border-color: rgba(37,70,240,.28);
  box-shadow: 0 24px 48px rgba(25, 39, 76, .14);
  background: linear-gradient(145deg, #ffffff, #eef4ff);
}

.portal-button:active { transform: translateY(-1px); }

.button-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  background: var(--soft-blue);
  font-size: 24px;
}

.portal-button strong {
  display: block;
  font-size: 17px;
  letter-spacing: -0.015em;
}

.portal-button small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.site-footer {
  margin: 28px 0 8px;
  padding: 26px 18px 10px;
  text-align: center;
}

.site-footer p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.site-footer p strong {
  color: var(--text);
}

.social-links {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.social-button {
  min-height: 44px;
  padding: 8px 14px 8px 8px;
  border: 1px solid rgba(23, 32, 51, 0.10);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(25, 39, 76, 0.08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.social-button:hover {
  transform: translateY(-3px);
  border-color: rgba(37,70,240,.28);
  box-shadow: 0 18px 36px rgba(25, 39, 76, 0.13);
}

.social-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 15px;
  font-weight: 900;
}

.linkedin .social-icon { background: #0a66c2; }
.facebook .social-icon { background: #1877f2; }
.github .social-icon { background: #24292f; }
.whatsapp .social-icon { background: #25d366; }

.password-dialog {
  width: min(440px, calc(100% - 28px));
  border: 0;
  border-radius: 28px;
  padding: 0;
  background: transparent;
}

.password-dialog::backdrop {
  background: rgba(9, 14, 27, .56);
  backdrop-filter: blur(8px);
}

.dialog-card {
  position: relative;
  padding: 30px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 34px 100px rgba(0,0,0,.24);
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 14px;
  background: #f2f4f7;
  cursor: pointer;
  font-size: 24px;
  color: var(--muted);
}

.dialog-icon {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: var(--soft-blue);
  font-size: 27px;
}

.dialog-card h3 {
  margin-top: 18px;
  font-size: 24px;
  letter-spacing: -0.035em;
}

.dialog-card p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.6;
}

.dialog-card label {
  display: block;
  margin-top: 20px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
  color: #344054;
}

.dialog-card input {
  width: 100%;
  height: 50px;
  border: 1px solid #d0d5dd;
  border-radius: 16px;
  padding: 0 15px;
  font: inherit;
  outline: 0;
}

.dialog-card input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37,70,240,.12);
}

.error-message {
  display: none;
  color: #b42318 !important;
  font-size: 13px;
}

.error-message.show { display: block; }

.submit-button {
  width: 100%;
  margin-top: 18px;
  height: 52px;
  border: 0;
  border-radius: 16px;
  color: white;
  font-weight: 800;
  font: inherit;
  background: linear-gradient(145deg, var(--primary), var(--primary-dark));
  cursor: pointer;
}

@media (max-width: 860px) {
  .hero-card { align-items: flex-start; }
  .hero-badge { display: none; }
  .grid-leader,
  .grid-cs,
  .grid-unit,
  .grid-office,
  .grid-government { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 20px, 1120px); margin: 18px auto; }
  .hero-card { border-radius: 26px; min-height: auto; }
  .section-card { border-radius: 24px; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .grid-leader,
  .grid-cs,
  .grid-unit,
  .grid-office,
  .grid-government { grid-template-columns: 1fr; }
  .portal-button { min-height: 96px; }
  .social-links { justify-content: center; }
  .site-footer { text-align: center; padding-left: 4px; padding-right: 4px; }
  .lock-pill,
  .status-pill { font-size: 12px; }
}

.admin-hint {
  margin-top: 12px !important;
  font-size: 13px !important;
  color: var(--muted);
}

.admin-hint kbd {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid rgba(23,32,51,.14);
  border-radius: 8px;
  background: rgba(255,255,255,.78);
  color: var(--text);
  font-weight: 900;
  box-shadow: inset 0 -1px 0 rgba(23,32,51,.08);
}

.admin-banner {
  margin-top: 24px;
  border: 1px solid rgba(19, 115, 51, .18);
  border-radius: 24px;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: rgba(233, 248, 239, .86);
  box-shadow: var(--shadow-soft);
}

.admin-banner strong,
.admin-banner span {
  display: block;
}

.admin-banner span {
  margin-top: 4px;
  color: #137333;
  font-size: 13px;
  line-height: 1.5;
}

.admin-banner button,
.admin-add-area,
.admin-card-tools button {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.admin-banner button {
  height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, var(--primary), var(--primary-dark));
  white-space: nowrap;
}

.section-title-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-add-area {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, var(--primary), var(--primary-dark));
  box-shadow: 0 12px 26px rgba(37, 70, 240, .20);
}

body.admin-mode .admin-add-area { display: inline-grid; place-items: center; }

.portal-card-wrap {
  position: relative;
  min-width: 0;
}

.portal-card-wrap .portal-button {
  height: 100%;
}

.admin-card-tools {
  display: none;
  position: absolute;
  top: 10px;
  right: 10px;
  gap: 6px;
  z-index: 4;
}

body.admin-mode .admin-card-tools { display: flex; }

.admin-card-tools button {
  min-width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #172033;
  background: rgba(255,255,255,.94);
  box-shadow: 0 12px 26px rgba(25, 39, 76, .14);
}

.admin-card-tools button:hover {
  transform: translateY(-2px);
}

.admin-card-tools .delete-item-button {
  color: #b42318;
}

body.admin-mode .portal-button {
  padding-top: 28px;
}

.empty-note {
  color: var(--muted);
  line-height: 1.7;
}

.password-dialog,
.admin-panel-dialog,
.item-editor-dialog {
  width: min(440px, calc(100% - 28px));
  border: 0;
  border-radius: 28px;
  padding: 0;
  background: transparent;
}

.item-editor-dialog { width: min(620px, calc(100% - 28px)); }
.admin-panel-dialog { width: min(520px, calc(100% - 28px)); }

.password-dialog::backdrop,
.admin-panel-dialog::backdrop,
.item-editor-dialog::backdrop {
  background: rgba(9, 14, 27, .56);
  backdrop-filter: blur(8px);
}

.dialog-card select,
.dialog-card textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid #d0d5dd;
  border-radius: 16px;
  padding: 0 15px;
  font: inherit;
  outline: 0;
  background: #fff;
}

.dialog-card select:focus,
.dialog-card textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37,70,240,.12);
}

.form-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.editor-actions,
.admin-panel-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.editor-actions .submit-button,
.admin-panel-actions .submit-button {
  margin-top: 0;
}

.secondary-button {
  color: var(--text) !important;
  background: #f2f4f7 !important;
}

.danger-button {
  background: linear-gradient(145deg, #d92d20, #b42318) !important;
}

.admin-small-note {
  font-size: 13px;
}

.loading-card {
  min-height: 180px;
}

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

  .admin-banner button { width: 100%; }
  .form-two-col,
  .editor-actions,
  .admin-panel-actions { grid-template-columns: 1fr; }
  body.admin-mode .portal-button { padding-top: 44px; }
}
