*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body.hh-body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #0f172a 0, #020617 40%, #020617 100%);
  color: #e5e7eb;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hh-body-centered {
  display: flex;
  align-items: center;
  justify-content: center;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.hh-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(22, 78, 99, 0.9));
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.hh-header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.hh-logo {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.hh-logo-main {
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 1.15rem;
  background: linear-gradient(120deg, #22c55e, #06b6d4, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hh-logo-sub {
  font-size: 0.72rem;
  color: #cbd5f5;
  opacity: 0.8;
}

.hh-nav {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.hh-nav-link {
  font-size: 0.85rem;
  color: #e5e7eb;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  position: relative;
  transition: all 0.18s ease;
}

.hh-nav-link::after {
  content: "";
  position: absolute;
  inset: auto 0 -0.3rem;
  margin: 0 auto;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #22c55e, #06b6d4);
  border-radius: 999px;
  opacity: 0;
  transition: all 0.18s ease;
}

.hh-nav-link:hover {
  background: rgba(15, 23, 42, 0.9);
  text-decoration: none;
}

.hh-nav-link:hover::after {
  width: 80%;
  opacity: 1;
}

.hh-nav-admin {
  border: 1px solid rgba(94, 234, 212, 0.75);
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.2), transparent 60%);
}

.hh-nav-admin:hover {
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.28), rgba(15, 23, 42, 0.96));
}

.hh-lang-switch {
  display: flex;
  gap: 0.25rem;
  background: rgba(15, 23, 42, 0.9);
  padding: 0.18rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.hh-pill {
  padding: 0.2rem 0.5rem;
  font-size: 0.7rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #cbd5f5;
}

.hh-pill-active {
  background: linear-gradient(120deg, #22c55e, #06b6d4);
  color: #020617;
  font-weight: 600;
}

.hh-main {
  flex: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
}

.hh-footer {
  padding: 1rem 1.5rem 1.6rem;
  text-align: center;
  font-size: 0.8rem;
  color: #9ca3af;
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  background: linear-gradient(to top, #020617, rgba(15, 23, 42, 0.9));
}

.hh-hero {
  border-radius: 1.5rem;
  padding: 2rem 1.75rem;
  margin-bottom: 2rem;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 55%),
    radial-gradient(circle at bottom right, rgba(52, 211, 153, 0.12), transparent 55%),
    linear-gradient(135deg, #020617, #020617);
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow:
    0 18px 50px rgba(15, 23, 42, 0.9),
    0 0 0 1px rgba(15, 23, 42, 1);
}

.hh-hero-content h1 {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  margin: 0 0 0.75rem;
  line-height: 1.25;
}

.hh-hero-content p {
  margin: 0;
  max-width: 45rem;
  color: #cbd5f5;
  font-size: 0.96rem;
}

.hh-section {
  margin-bottom: 2rem;
}

.hh-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hh-section-header h2 {
  margin: 0;
  font-size: 1.25rem;
}

.hh-section-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  border: 1px solid rgba(248, 250, 252, 0.18);
  color: #a7f3d0;
}

.hh-grid {
  display: grid;
  gap: 1rem;
}

.hh-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.hh-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

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

.hh-card {
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.96));
  border-radius: 1.15rem;
  padding: 1rem 1rem;
  border: 1px solid rgba(30, 64, 175, 0.5);
  box-shadow:
    0 14px 35px rgba(15, 23, 42, 0.9),
    0 0 0 1px rgba(15, 23, 42, 1);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.hh-card-thumb {
  margin: -1rem -1rem 0.75rem -1rem;
  line-height: 0;
  overflow: hidden;
  border-radius: 1.15rem 1.15rem 0 0;
}
.hh-card-thumb img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.hh-card-accent {
  border: 1px solid rgba(56, 189, 248, 0.7);
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.25), rgba(15, 23, 42, 0.96)),
    radial-gradient(circle at bottom right, rgba(52, 211, 153, 0.18), transparent 70%);
}

.hh-card:hover {
  transform: translateY(-3px) translateZ(0);
  box-shadow:
    0 18px 50px rgba(15, 23, 42, 0.95),
    0 0 0 1px rgba(56, 189, 248, 0.35);
  border-color: rgba(56, 189, 248, 0.55);
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.22), rgba(15, 23, 42, 0.96)),
    radial-gradient(circle at bottom right, rgba(52, 211, 153, 0.16), transparent 70%);
}

.hh-card h3,
.hh-card h4 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.hh-card p {
  margin: 0 0 0.55rem;
  color: #cbd5f5;
  font-size: 0.85rem;
}

.hh-card-meta {
  font-size: 0.72rem;
  color: #9ca3af;
}

.hh-empty {
  font-size: 0.85rem;
  color: #9ca3af;
}

.hh-subtitle {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: #e5e7eb;
}

.hh-article {
  max-width: 720px;
  margin: 0 auto;
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.98));
  border-radius: 1.4rem;
  padding: 1.8rem 1.5rem 2rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow:
    0 18px 50px rgba(15, 23, 42, 0.95),
    0 0 0 1px rgba(15, 23, 42, 1);
}

.hh-article-header h1 {
  margin: 0 0 0.6rem;
  font-size: 1.6rem;
}

.hh-breadcrumb {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  color: #9ca3af;
}

.hh-breadcrumb a {
  color: #bfdbfe;
}

.hh-article-meta {
  margin: 0;
  font-size: 0.78rem;
  color: #9ca3af;
}

.hh-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.08rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, 0.5);
  color: #facc15;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hh-article-banner {
  margin-top: 1rem;
  margin-bottom: 0;
  border-radius: 8px;
  overflow: hidden;
}
.hh-article-banner img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 360px;
  object-fit: cover;
}

.hh-article-body {
  margin-top: 1.2rem;
  font-size: 0.96rem;
  line-height: 1.7;
  color: #e5e7eb;
}

.hh-article-body p {
  margin-bottom: 0.8rem;
}

.hh-article-body h2,
.hh-article-body h3 {
  margin-top: 1.3rem;
  margin-bottom: 0.6rem;
}

.hh-article-body a {
  color: #7dd3fc;
}

.hh-article-body ul,
.hh-article-body ol {
  padding-left: 1.4rem;
}

.hh-auth-card {
  width: 100%;
  max-width: 360px;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.2), rgba(15, 23, 42, 0.98));
  border-radius: 1.3rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 1.6rem 1.4rem 1.8rem;
  box-shadow:
    0 18px 45px rgba(15, 23, 42, 0.96),
    0 0 0 1px rgba(15, 23, 42, 1);
}

.hh-auth-card h1 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
}

.hh-error {
  margin: 0 0 0.8rem;
  padding: 0.45rem 0.6rem;
  border-radius: 0.75rem;
  background: rgba(185, 28, 28, 0.16);
  border: 1px solid rgba(248, 113, 113, 0.5);
  color: #fecaca;
  font-size: 0.82rem;
}

.hh-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hh-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1.1rem;
}

.hh-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
}

.hh-field span {
  color: #e5e7eb;
}

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

.hh-field input,
.hh-field textarea,
.hh-field select {
  font: inherit;
  padding: 0.45rem 0.55rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  outline: none;
  resize: vertical;
}

.hh-field input:focus,
.hh-field textarea:focus,
.hh-field select:focus {
  border-color: rgba(56, 189, 248, 0.9);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.5);
}

.hh-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
}

.hh-checkbox input {
  accent-color: #22c55e;
}

.hh-btn-primary,
.hh-btn-ghost {
  border-radius: 999px;
  border: none;
  cursor: pointer;
  padding: 0.55rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: all 0.16s ease;
  text-decoration: none;
}

.hh-btn-primary {
  background: linear-gradient(130deg, #22c55e, #06b6d4, #a855f7);
  color: #020617;
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.4);
}

.hh-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 40px rgba(34, 197, 94, 0.5),
    0 0 0 1px rgba(15, 23, 42, 1);
}

.hh-btn-ghost {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: #e5e7eb;
}

.hh-btn-ghost:hover {
  background: rgba(15, 23, 42, 0.9);
}

.hh-form-actions {
  display: flex;
  justify-content: flex-end;
}

.hh-admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.hh-admin-header h1 {
  margin: 0;
  font-size: 1.35rem;
}

.hh-admin-actions {
  display: flex;
  gap: 0.5rem;
}

.hh-admin-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hh-metric {
  padding: 0.8rem 0.9rem;
  border-radius: 1rem;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), rgba(15, 23, 42, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.hh-metric-label {
  display: block;
  font-size: 0.75rem;
  color: #9ca3af;
  margin-bottom: 0.2rem;
}

.hh-metric-value {
  font-size: 1.2rem;
  font-weight: 600;
}

.hh-table-wrapper {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(30, 64, 175, 0.7);
}

.hh-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.hh-table th,
.hh-table td {
  padding: 0.55rem 0.7rem;
}

.hh-table thead {
  background: rgba(15, 23, 42, 0.98);
}

.hh-table th {
  text-align: left;
  color: #9ca3af;
  font-weight: 500;
  border-bottom: 1px solid rgba(51, 65, 85, 0.9);
}

.hh-table tbody tr:nth-child(odd) {
  background: rgba(15, 23, 42, 0.94);
}

.hh-table tbody tr:nth-child(even) {
  background: rgba(17, 24, 39, 0.96);
}

.hh-link-small {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.8rem;
  color: #93c5fd;
  cursor: pointer;
}

.hh-link-small:hover {
  text-decoration: underline;
}

.hh-link-danger {
  color: #fecaca;
}

.hh-inline-form {
  display: inline;
  margin-left: 0.4rem;
}

@media (max-width: 720px) {
  .hh-header-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem 1rem;
  }

  .hh-nav {
    order: 3;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hh-main {
    padding-inline: 1rem;
  }

  .hh-hero {
    padding: 1.5rem 1.3rem;
  }

  .hh-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hh-admin-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hh-admin-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

