﻿:root {
  --deep-blue: #0b2f8f;
  --royal-blue: #1e53c7;
  --gold: #d49b1d;
  --gold-soft: #f0cf72;
  --ink: #10203f;
  --paper: #f6f8fe;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 20% 10%, #eef3ff 0%, #ffffff 40%, #f8f8fb 100%);
}

h1,
h2,
h3,
.brand-text {
  font-family: "Cinzel", serif;
  margin: 0;
}

.site-body,
.admin-body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.bg-orb {
  position: fixed;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.25;
  z-index: -1;
}

.orb-one {
  top: -8rem;
  left: -8rem;
  background: linear-gradient(135deg, var(--royal-blue), var(--gold));
}

.orb-two {
  bottom: -10rem;
  right: -8rem;
  background: linear-gradient(135deg, var(--gold-soft), var(--deep-blue));
}

.topbar,
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 4vw;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid #e4e9f8;
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--deep-blue);
}

.brand-logo {
  width: clamp(4.25rem, 8vw, 6.6rem);
  height: clamp(4.25rem, 8vw, 6.6rem);
  border-radius: 0.9rem;
  object-fit: contain;
  background: #ffffff;
  padding: 0.18rem;
  border: 1px solid #e7dece;
  box-shadow: 0 7px 18px rgba(17, 34, 78, 0.12);
}

.brand-text {
  font-size: 0.95rem;
}

.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}

.btn {
  background: linear-gradient(125deg, var(--deep-blue), var(--royal-blue));
  color: var(--white);
  border: 0;
  padding: 0.7rem 1rem;
  border-radius: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--deep-blue);
}

.btn-small {
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
}

main {
  padding: 2rem 4vw 3rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.2rem;
  align-items: stretch;
}

.hero-copy,
.hero-card,
.panel,
.card,
.impact,
.contact,
.admin-layout,
.sidebar,
.admin-content,
.tab-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e0e7fb;
  border-radius: 1rem;
  box-shadow: 0 10px 28px rgba(20, 40, 100, 0.06);
}

.hero-copy,
.hero-card,
.panel,
.programs,
.impact,
.contact {
  padding: 1.4rem;
}

.hero-copy h1 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  color: var(--deep-blue);
  margin: 0.4rem 0;
}

.eyebrow {
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.hero-card h2,
section h2 {
  color: var(--deep-blue);
}

.hero-card ul,
.list {
  padding-left: 1rem;
  margin: 0.8rem 0 0;
}

.programs .grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.card {
  padding: 1rem;
}

.stats {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

.stat {
  border: 1px solid #e4e9f8;
  border-radius: 0.8rem;
  padding: 0.9rem;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
}

.stat span {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gold);
}

.contact-form {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
}

input,
textarea {
  border: 1px solid #cad5f2;
  border-radius: 0.7rem;
  padding: 0.7rem;
  font: inherit;
}

.footer {
  padding: 1.25rem;
  text-align: center;
  color: #5f6d92;
}

.admin-layout {
  display: grid;
  grid-template-columns: 14rem 1fr;
  gap: 1rem;
  padding: 1rem;
}

.sidebar {
  padding: 0.8rem;
  display: grid;
  gap: 0.6rem;
  align-content: start;
}

.tab-link {
  border: 0;
  border-radius: 0.7rem;
  text-align: left;
  padding: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink);
  background: #edf1ff;
}

.tab-link.active {
  color: var(--white);
  background: linear-gradient(125deg, var(--deep-blue), var(--royal-blue));
}

.admin-content {
  padding: 1rem;
}

.tab-panel {
  display: none;
  padding: 1rem;
}

.tab-panel.active {
  display: block;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.table th,
.table td {
  border-bottom: 1px solid #e6ecfb;
  padding: 0.6rem;
  text-align: left;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.7s ease forwards;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero,
  .stats,
  .programs .grid,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .brand-text {
    font-size: 0.8rem;
  }

  .brand-logo {
    width: 3.45rem;
    height: 3.45rem;
  }
}
.hero-media img{width:100%;height:100%;min-height:280px;max-height:360px;object-fit:cover;border-radius:.8rem}
.kpi-table{margin-top:.8rem;display:grid;gap:.65rem}
.kpi-row{border-left:4px solid var(--gold);background:#f9fbff;padding:.7rem;border-radius:.55rem}
.gallery-card img{width:100%;height:230px;object-fit:cover}
.gallery-card figcaption{padding:.75rem;font-size:.92rem}
.notice{margin-top:.7rem;color:#4d5f8e;font-size:.9rem}
.table-wrap{overflow-x:auto}
.gallery{padding:1.4rem;background:rgba(255,255,255,.92);border:1px solid #e0e7fb;border-radius:1rem;box-shadow:0 10px 28px rgba(20,40,100,.06)}
.gallery-grid{margin-top:1rem;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem}
.gallery-card{margin:0;overflow:hidden;background:rgba(255,255,255,.95);border:1px solid #e0e7fb;border-radius:1rem;box-shadow:0 10px 28px rgba(20,40,100,.06)}
@media (max-width:980px){.gallery-grid,.highlight-grid{grid-template-columns:1fr}}
.highlight-grid{margin:1rem 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem}
.highlight{padding:.9rem;border-radius:.8rem;border:2px solid transparent}
.highlight.good{background:#ebfaef;border-color:#9ee3b8}
.highlight.warn{background:#fff8e8;border-color:#f1cd80}
.highlight.risk{background:#ffeceb;border-color:#ef9b9b}
select{border:1px solid #cad5f2;border-radius:.7rem;padding:.7rem;font:inherit}


.admin-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.admin-actions-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.checkbox-row input {
  width: auto;
}

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

.password-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.password-wrap input {
  flex: 1;
}

.password-toggle {
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid #cad5f2;
  border-radius: 0.65rem;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1rem;
  line-height: 1;
}

.password-toggle:hover {
  border-color: var(--gold);
  background: #f8fbff;
}

.password-toggle.is-on {
  border-color: var(--royal-blue);
  color: var(--deep-blue);
}


.photo-preview-wrap {
  margin-top: 0.35rem;
  width: min(210px, 100%);
  border: 1px dashed #cad5f2;
  border-radius: 0.7rem;
  padding: 0.45rem;
  background: #f8fbff;
}

.photo-preview-wrap img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0.55rem;
  display: block;
}

.admin-body.login-mode {
  background:
    radial-gradient(circle at 15% 18%, rgba(212, 155, 29, 0.18), transparent 22%),
    radial-gradient(circle at 82% 12%, rgba(30, 83, 199, 0.22), transparent 18%),
    linear-gradient(180deg, #04131d 0%, #071f30 52%, #04111c 100%);
  color: #f4f7ff;
}

.admin-body.login-mode .admin-topbar {
  background: rgba(4, 18, 29, 0.72);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.admin-body.login-mode .brand,
.admin-body.login-mode .btn-outline {
  color: #ffffff;
}

.admin-body.login-mode .btn-outline {
  border-color: rgba(255, 255, 255, 0.28);
}

.admin-body.login-mode .btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

.login-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 2.2rem auto 3rem;
}

.login-hero {
  margin-bottom: 1.1rem;
  color: #edf4ff;
}

.login-kicker,
.login-panel-eyebrow {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
  color: #8fd357;
}

.login-hero h1 {
  margin-top: 0.35rem;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 0.98;
  color: #f9fbff;
}

.login-hero h1 span {
  color: #bdf36c;
}

.login-subtitle {
  margin: 0.55rem 0 0;
  max-width: 54ch;
  color: rgba(237, 244, 255, 0.78);
}

.login-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 540px;
  border-radius: 1.6rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.login-art-panel,
.login-form-panel {
  position: relative;
  min-height: 100%;
}

.login-art-panel {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 248, 255, 0.92) 100%);
}

.login-art-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.75;
}

.login-art-glow-one {
  width: 11rem;
  height: 11rem;
  top: -2rem;
  left: -2rem;
  background: rgba(143, 211, 87, 0.18);
}

.login-art-glow-two {
  width: 9rem;
  height: 9rem;
  right: 1rem;
  bottom: 1rem;
  background: rgba(30, 83, 199, 0.12);
}

.ghost-stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1.6rem;
  min-height: 300px;
  padding-top: 2rem;
}

.ghost {
  position: relative;
  width: 118px;
  height: 140px;
  border: 4px solid #111;
  border-bottom: 0;
  border-radius: 60px 60px 18px 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 20px 30px rgba(17, 34, 78, 0.08);
  animation: ghostFloat 3.4s ease-in-out infinite;
}

.ghost::after {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: -4px;
  height: 28px;
  background:
    radial-gradient(circle at 14px 0, transparent 17px, #111 17px 20px, transparent 20px),
    radial-gradient(circle at 42px 0, transparent 17px, #111 17px 20px, transparent 20px),
    radial-gradient(circle at 70px 0, transparent 17px, #111 17px 20px, transparent 20px),
    radial-gradient(circle at 98px 0, transparent 17px, #111 17px 20px, transparent 20px);
}

.ghost::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28px;
  background:
    radial-gradient(circle at 14px 0, #ffffff 17px, transparent 17px),
    radial-gradient(circle at 42px 0, #ffffff 17px, transparent 17px),
    radial-gradient(circle at 70px 0, #ffffff 17px, transparent 17px),
    radial-gradient(circle at 98px 0, #ffffff 17px, transparent 17px);
  z-index: 1;
}

.ghost-small {
  width: 92px;
  height: 112px;
  animation-delay: -0.9s;
}

.ghost-large {
  width: 136px;
  height: 168px;
}

.ghost-eye,
.ghost-mouth,
.ghost-tear {
  position: absolute;
  z-index: 2;
}

.ghost-eye {
  top: 42px;
  width: 10px;
  height: 24px;
  border-radius: 999px;
  background: #111;
}

.ghost-eye.left {
  left: 34px;
}

.ghost-eye.right {
  right: 34px;
}

.ghost-mouth {
  left: 50%;
  top: 78px;
  width: 34px;
  height: 18px;
  border-bottom: 4px solid #111;
  border-radius: 0 0 24px 24px;
  transform: translateX(-50%);
}

.ghost-tear {
  top: 64px;
  width: 10px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #3cb8ff 0%, #1780e4 100%);
  box-shadow: 0 0 0 3px rgba(60, 184, 255, 0.12);
}

.ghost-tear.tear-left {
  left: 24px;
}

.ghost-tear.tear-right {
  right: 24px;
}

.ghost-small .ghost-eye {
  top: 34px;
  height: 20px;
}

.ghost-small .ghost-eye.left {
  left: 24px;
}

.ghost-small .ghost-eye.right {
  right: 24px;
}

.ghost-small .ghost-mouth {
  top: 62px;
  width: 26px;
  height: 14px;
}

.ghost-small .ghost-tear {
  top: 52px;
  width: 8px;
  height: 14px;
}

.login-art-badge {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  align-self: flex-start;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: rgba(10, 30, 51, 0.06);
  border: 1px solid rgba(16, 32, 63, 0.08);
  color: #274161;
  font-weight: 700;
}

.login-art-badge img {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  border-radius: 999px;
  background: #ffffff;
  padding: 0.18rem;
}

.login-art-badge p {
  margin: 0;
}

.login-form-panel {
  padding: 2.3rem 2.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(243, 247, 255, 0.92) 100%);
}

.login-form-panel h2 {
  margin-top: 0.35rem;
  font-size: 2.1rem;
  color: #132240;
}

.login-panel-copy {
  margin: 0.6rem 0 0;
  color: #5d6887;
  max-width: 34ch;
}

.login-form {
  margin-top: 1.3rem;
}

.login-form input {
  min-height: 3.2rem;
  border-radius: 0.9rem;
  border-color: #d6dff5;
  background: rgba(255, 255, 255, 0.88);
}

.login-submit {
  min-height: 3.2rem;
  margin-top: 0.2rem;
  border-radius: 0.95rem;
  background: linear-gradient(125deg, #5b72ff, #9d5de2);
  box-shadow: 0 16px 24px rgba(95, 98, 214, 0.24);
}

.login-message {
  margin: 1rem 0 0;
  padding: 0.8rem 0.95rem;
  border-radius: 0.9rem;
  font-weight: 700;
  animation: loginMessageIn 0.24s ease;
}

.login-message.is-error {
  color: #872d35;
  background: #ffe8eb;
  border: 1px solid #f4b8bf;
}

.login-note {
  margin-top: 1rem;
}

@keyframes ghostFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes loginMessageIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .login-art-panel {
    min-height: 280px;
  }

  .login-form-panel {
    padding: 1.5rem;
  }
}

@media (max-width: 640px) {
  .login-shell {
    width: calc(100% - 1rem);
    margin: 1rem auto 1.5rem;
  }

  .login-hero h1 {
    font-size: 2.2rem;
  }

  .ghost-stage {
    gap: 1rem;
    min-height: 220px;
  }

  .ghost-large {
    width: 110px;
    height: 140px;
  }
}


.top-welcome-badge {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(11, 47, 143, 0.08);
  border: 1px solid rgba(11, 47, 143, 0.12);
  color: var(--deep-blue);
  font-weight: 800;
  white-space: nowrap;
}

.admin-body.login-mode .top-welcome-badge {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}
.ghost,
.ghost-eye,
.ghost-mouth,
.ghost-tear,
.ghost-reaction {
  transition: transform 0.28s ease, opacity 0.28s ease, box-shadow 0.28s ease, background 0.28s ease, border-color 0.28s ease, color 0.28s ease;
}

.ghost-reaction {
  position: absolute;
  left: 50%;
  top: 0.3rem;
  transform: translateX(-50%);
  min-width: 220px;
  max-width: 320px;
  padding: 0.8rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(16, 32, 63, 0.12);
  box-shadow: 0 12px 24px rgba(17, 34, 78, 0.12);
  color: #20324e;
  font-weight: 700;
  text-align: center;
  z-index: 3;
}

.ghost-reaction::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 18px;
  height: 18px;
  background: inherit;
  border-right: 1px solid rgba(16, 32, 63, 0.12);
  border-bottom: 1px solid rgba(16, 32, 63, 0.12);
  transform: translateX(-50%) rotate(45deg);
}

.ghost-stage.is-error {
  animation: ghostStageShake 0.55s ease 2;
}

.ghost-stage.is-error .ghost {
  box-shadow: 0 20px 30px rgba(129, 27, 39, 0.14), 0 0 0 8px rgba(255, 206, 213, 0.68);
}

.ghost-stage.is-error .ghost-mouth {
  top: 86px;
  height: 14px;
  border-bottom: 0;
  border-top: 4px solid #111;
  border-radius: 24px 24px 0 0;
}

.ghost-stage.is-error .ghost-tear {
  animation: ghostTearPulse 0.55s ease-in-out infinite alternate;
}

.ghost-stage.is-error .ghost-reaction {
  color: #8b2230;
  background: #fff1f3;
  border-color: #f1c1c9;
}

.ghost-stage.is-success {
  animation: ghostStageCelebrate 0.9s ease;
}

.ghost-stage.is-success .ghost {
  box-shadow: 0 20px 30px rgba(34, 120, 56, 0.16), 0 0 0 8px rgba(198, 243, 206, 0.75);
}

.ghost-stage.is-success .ghost-mouth {
  width: 42px;
  height: 20px;
}

.ghost-stage.is-success .ghost-tear {
  opacity: 0;
  transform: translateY(-10px) scale(0.4);
}

.ghost-stage.is-success .ghost-reaction {
  color: #1f6f34;
  background: #efffee;
  border-color: #bde6c4;
}

.ghost-stage.is-reveal {
  animation: ghostStagePeek 0.6s ease;
}

.ghost-stage.is-reveal .ghost {
  box-shadow: 0 20px 30px rgba(30, 83, 199, 0.14), 0 0 0 8px rgba(214, 226, 255, 0.82);
}

.ghost-stage.is-reveal .ghost-eye {
  transform: scaleX(1.35) scaleY(1.12);
}

.ghost-stage.is-reveal .ghost-reaction {
  color: #1c4f92;
  background: #eef4ff;
  border-color: #c6d7ff;
}

.login-message.is-success {
  color: #1f6f34;
  background: #efffee;
  border: 1px solid #bde6c4;
}

@keyframes ghostStageShake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-8px);
  }
  40% {
    transform: translateX(8px);
  }
  60% {
    transform: translateX(-5px);
  }
  80% {
    transform: translateX(5px);
  }
}

@keyframes ghostStageCelebrate {
  0% {
    transform: translateY(0) scale(1);
  }
  35% {
    transform: translateY(-12px) scale(1.03);
  }
  70% {
    transform: translateY(-4px) scale(1.01);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes ghostStagePeek {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes ghostTearPulse {
  from {
    transform: translateY(0) scale(1);
  }
  to {
    transform: translateY(6px) scale(1.08);
  }
}

.inventory-table-qty {
  font-weight: 800;
}

.inventory-table-qty.in {
  color: #1f6f34;
}

.inventory-table-qty.out {
  color: #8b2230;
}

.inventory-stat-meta {
  display: block;
  margin-top: 0.35rem;
  color: #5f6d92;
  font-size: 0.82rem;
}

