/* Never Quit Punjabi — dark / black UI */
:root {
  --brand-blue: #000000;
  --brand-yellow: #fcdb5a;
  --brand-white: #fafafa;
  --bg: #030303;
  --bg-subtle: #0a0a0a;
  --bg-card: #0f0f0f;
  --bg-card-hover: #151515;
  --ink: #f4f4f5;
  --muted: #a1a1aa;
  --link: #fde68a;
  --accent: #fcdb5a;
  --accent-soft: rgba(252, 219, 90, 0.14);
  --line: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.12);
  --header-bg: rgba(0, 0, 0, 0.88);
  --shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 0 1px rgba(252, 219, 90, 0.12), 0 12px 48px rgba(0, 0, 0, 0.55);
  --radius: 16px;
  --radius-sm: 12px;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --max: 1180px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

@keyframes ambient-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.88;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 70% at 50% -25%, rgba(252, 219, 90, 0.09), transparent 55%),
    radial-gradient(ellipse 55% 45% at 100% 40%, rgba(252, 219, 90, 0.05), transparent 50%),
    radial-gradient(ellipse 45% 40% at 0% 75%, rgba(99, 102, 241, 0.06), transparent 50%),
    var(--bg);
  animation: ambient-pulse 14s ease-in-out infinite;
}

::selection {
  background: rgba(252, 219, 90, 0.28);
  color: var(--bg);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  body::before {
    animation: none;
  }

  .login-page::before {
    animation: none;
  }
}

.site-main {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.2s var(--ease-out), opacity 0.2s;
}

a:hover {
  color: var(--brand-yellow);
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--brand-yellow);
  outline-offset: 3px;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Rounded-rectangle logo shell (header, footer, admin, profile) */
.logo-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(155deg, rgba(39, 39, 42, 0.95) 0%, var(--bg-subtle) 55%, #080808 100%);
  border: 1px solid var(--line-strong);
  box-shadow:
    0 6px 22px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(252, 219, 90, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s;
}

.logo-frame img {
  display: block;
  object-fit: contain;
  object-position: center;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: inherit;
}

.logo-frame--header {
  height: 1.85rem;
  width: auto;
  min-width: 2.5rem;
  max-width: min(152px, 52vw);
  padding: 0.18rem 0.4rem;
  border-radius: 0.55rem;
}

.logo-frame--footer {
  height: 2.15rem;
  width: auto;
  min-width: 2.75rem;
  max-width: min(168px, 78vw);
  padding: 0.22rem 0.45rem;
  border-radius: 0.65rem;
}

.logo-frame--sidebar {
  height: 2rem;
  width: auto;
  min-width: 5.5rem;
  max-width: 168px;
  padding: 0.25rem 0.45rem;
  border-radius: 0.6rem;
}

.logo-frame--profile {
  width: 5.25rem;
  height: 5.25rem;
  padding: 0.4rem;
  border-radius: 1.1rem;
  margin-inline: auto;
}

.site-logo--image:hover .logo-frame,
.site-footer__logo-link:hover .logo-frame,
.admin-sidebar__brand:hover .logo-frame {
  transform: translateY(-1px);
  border-color: rgba(252, 219, 90, 0.32);
  box-shadow:
    0 10px 32px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(252, 219, 90, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.user-panel__brand {
  display: flex;
  justify-content: center;
  margin: 0 0 1.25rem;
}

.user-panel .logo-frame--profile:hover {
  transform: translateY(-2px);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--line-strong);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.site-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--brand-white);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-logo span {
  color: var(--brand-yellow);
}

.site-logo--image {
  display: flex;
  align-items: center;
  line-height: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--brand-yellow);
}

.site-nav__admin {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(252, 219, 90, 0.15);
  color: var(--brand-yellow) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--brand-white);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem 1.5rem;
    background: #000;
    border-bottom: 1px solid var(--line-strong);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65);
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }
}

/* Hero / page headers */
.hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.hero--home {
  position: relative;
  background: transparent;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero--home::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(252, 219, 90, 0.06) 0%, transparent 42%);
  pointer-events: none;
}

.hero--home .hero__grid {
  position: relative;
  z-index: 1;
  animation: rise-in 0.7s var(--ease-out) both;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-shadow: 0 1px 40px rgba(0, 0, 0, 0.35);
}

.hero__lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 36ch;
  margin: 0 0 1.5rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.25rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background 0.2s, border-color 0.2s, color 0.2s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #fde047 0%, var(--brand-yellow) 100%);
  color: #0a0a0a;
  box-shadow: 0 8px 28px rgba(252, 219, 90, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 12px 36px rgba(252, 219, 90, 0.45);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.btn-secondary:hover {
  border-color: rgba(252, 219, 90, 0.35);
  color: var(--brand-yellow);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--brand-yellow);
  color: var(--brand-yellow);
}

/* Three-column home */
.home-columns {
  padding: clamp(2rem, 4vw, 3.5rem) 0 4rem;
}

.home-columns .home-columns__grid {
  animation: rise-in 0.75s var(--ease-out) 0.1s both;
}

.home-columns__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 960px) {
  .home-columns__grid {
    grid-template-columns: 1fr 1.15fr 0.85fr;
    gap: 2rem;
    align-items: start;
  }
}

.col-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--brand-yellow);
  display: inline-block;
  color: var(--ink);
}

/* Cards */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out), background 0.3s;
}

.card:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
  border-color: rgba(252, 219, 90, 0.2);
  background: var(--bg-card-hover);
}

.card__media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.35);
  font-size: 2.5rem;
  position: relative;
  overflow: hidden;
}

.card__media--has-image {
  padding: 0;
  display: block;
}

.card__media .post-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.card__media--video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 40%, rgba(0, 0, 0, 0.45));
}

.card__play {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand-yellow);
  color: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  z-index: 1;
  box-shadow: 0 8px 28px rgba(252, 219, 90, 0.45);
  transition: transform 0.25s var(--ease-out);
}

.card__media:hover .card__play {
  transform: scale(1.06);
}

.card__body {
  padding: 1.25rem 1.35rem 1.35rem;
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--accent-soft);
  color: var(--brand-yellow);
  border: 1px solid rgba(252, 219, 90, 0.2);
}

.badge--video {
  background: rgba(252, 219, 90, 0.12) !important;
  color: #fde047 !important;
  border-color: rgba(252, 219, 90, 0.35) !important;
}

.card__body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.card__body h3 a {
  color: inherit;
  text-decoration: none;
}

.card__body h3 a:hover {
  color: var(--brand-yellow);
}

.card__excerpt {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__link {
  font-weight: 600;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Compact list (column 2) */
.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.post-list__item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 1rem;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  border: 1px solid var(--line);
  align-items: center;
  transition: border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out), background 0.25s;
}

.post-list__item:hover {
  border-color: rgba(252, 219, 90, 0.28);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.post-list__thumb {
  width: 88px;
  height: 72px;
  border-radius: 8px;
  background: linear-gradient(145deg, #333, #1a1a1a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 1.25rem;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.post-list__thumb--photo {
  padding: 0;
}

.post-list__thumb--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.post-list__body h4 {
  margin: 0 0 0.25rem;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
}

.post-list__body h4 a {
  color: inherit;
  text-decoration: none;
}

.post-list__body h4 a:hover {
  color: var(--brand-yellow);
}

.post-list__meta {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Sidebar column */
.sidebar-block {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.35rem;
  border: 1px solid var(--line);
  margin-bottom: 1.25rem;
}

.sidebar-block h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 1rem;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-cloud a {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--bg-subtle);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--line);
  transition: border-color 0.2s, color 0.2s, transform 0.2s var(--ease-out);
}

.tag-cloud a:hover {
  border-color: rgba(252, 219, 90, 0.45);
  color: var(--brand-yellow);
  transform: translateY(-2px);
}

/* Blog listing page */
.page-header {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
  animation: rise-in 0.65s var(--ease-out) both;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 0.5rem;
}

.page-header p {
  margin: 0;
  color: var(--muted);
}

.content-section {
  padding-bottom: 4rem;
}

.blog-toolbar {
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.blog-toolbar form {
  flex: 1;
  min-width: 220px;
  display: flex;
  gap: 0.5rem;
}

.blog-toolbar input[type="text"] {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--bg-card);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.blog-toolbar input[type="text"]::placeholder {
  color: var(--muted);
}

.blog-toolbar input[type="text"]:focus {
  outline: none;
  border-color: rgba(252, 219, 90, 0.45);
  box-shadow: 0 0 0 3px rgba(252, 219, 90, 0.12);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-pills .btn {
  font-size: 0.82rem;
  padding: 0.5rem 1rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

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

.empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  color: var(--muted);
}

.empty-state i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Single post */
.article-wrap {
  padding: 2rem 0 4rem;
}

.article {
  max-width: 720px;
  margin: 0 auto;
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.article h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.article__lead {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 0 2rem;
}

.article__featured {
  width: 100%;
  aspect-ratio: 21 / 9;
  max-height: min(420px, 50vh);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 0 2rem;
  box-shadow: var(--shadow-lg);
  background: #1a1a1a;
}

.article__featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 600px) {
  .article__featured {
    aspect-ratio: 16 / 10;
    max-height: none;
  }
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #111;
  margin: 0 0 2rem;
  box-shadow: var(--shadow-lg);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.article__content {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #e4e4e7;
}

.article__content a {
  color: var(--brand-yellow);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article__content a:hover {
  color: #fef08a;
}

.article__content p {
  margin: 0 0 1.25rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line-strong);
  padding: 2rem 0;
  margin-top: auto;
  background: #000;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.site-footer__logo-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  line-height: 0;
  text-decoration: none;
}

.site-footer__inner p {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

/* Admin layout */
.admin-body {
  background: var(--bg);
  color: var(--ink);
}

.admin-wrap {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 240px;
  background: #000;
  color: #e4e4e7;
  padding: 1.5rem 0;
  flex-shrink: 0;
  border-right: 1px solid var(--line-strong);
}

.admin-sidebar a {
  display: block;
  padding: 0.65rem 1.25rem;
  color: #a1a1aa;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}

.admin-sidebar a:hover,
.admin-sidebar a.is-active {
  color: var(--brand-yellow);
  background: rgba(252, 219, 90, 0.08);
}

.admin-sidebar__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 0 1.25rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1rem;
  text-decoration: none;
}

.admin-sidebar__brand .logo-frame {
  align-self: flex-start;
}

.admin-sidebar__brand-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: #71717a;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-main {
  flex: 1;
  padding: 1.5rem 2rem;
  overflow-x: auto;
}

.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-top h1 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--ink);
}

.admin-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  border: 1px solid var(--line);
  transition: border-color 0.25s, transform 0.25s var(--ease-out);
}

.stat-card:hover {
  border-color: rgba(252, 219, 90, 0.2);
}

.stat-card strong {
  display: block;
  font-size: 1.75rem;
  color: var(--brand-yellow);
}

.stat-card span {
  font-size: 0.85rem;
  color: var(--muted);
}

.admin-table-wrap {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  overflow: auto;
}

table.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.admin-table th {
  background: var(--bg-subtle);
  font-weight: 600;
  color: #a1a1aa;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.form-card {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  padding: 1.5rem;
  max-width: 720px;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
  color: #d4d4d8;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--bg-subtle);
  color: var(--ink);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(252, 219, 90, 0.45);
  box-shadow: 0 0 0 3px rgba(252, 219, 90, 0.1);
}

.form-group textarea {
  min-height: 180px;
  resize: vertical;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.alert {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.alert-error {
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.alert-success {
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  position: relative;
  background: var(--bg);
}

.login-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 100% 60% at 50% -20%, rgba(252, 219, 90, 0.1), transparent 55%),
    var(--bg);
  animation: ambient-pulse 14s ease-in-out infinite;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-strong);
}

.login-card__brand {
  display: flex;
  justify-content: center;
  margin: 0 0 1.35rem;
}

.login-card__logo-wrap {
  width: 5.75rem;
  height: 5.75rem;
  border-radius: 1.35rem;
  padding: 0.45rem;
  background: linear-gradient(155deg, rgba(39, 39, 42, 0.98) 0%, var(--bg-subtle) 55%, #050505 100%);
  border: 1px solid var(--line-strong);
  box-shadow:
    0 14px 44px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(252, 219, 90, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s;
}

.login-card__logo-wrap:hover {
  transform: translateY(-3px);
  border-color: rgba(252, 219, 90, 0.35);
  box-shadow:
    0 20px 52px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(252, 219, 90, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.login-card__logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0.95rem;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.login-card h1 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
  color: var(--ink);
  text-align: center;
}

.login-card__lead {
  color: var(--muted);
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  text-align: center;
  line-height: 1.5;
}

.login-card p {
  color: var(--muted);
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

.login-card p.login-card__foot {
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.login-card p.login-card__foot--split {
  margin-top: 1.25rem;
}

.login-card__back-site {
  width: 100%;
  margin-top: 1.5rem;
  box-sizing: border-box;
  justify-content: center;
}

@media (max-width: 900px) {
  .admin-wrap {
    flex-direction: column;
  }

  .admin-sidebar {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 1rem;
  }

  .admin-sidebar__brand {
    width: 100%;
    border: none;
    margin-bottom: 0.5rem;
    padding-bottom: 0.75rem;
  }

  .admin-sidebar a {
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
  }
}

/* Social share */
.share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin: 2.5rem 0 0;
  padding: 1rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}

.share-bar__label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-right: 0.25rem;
}

.share-bar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.share-bar__btn:hover {
  border-color: rgba(252, 219, 90, 0.4);
  color: var(--brand-yellow);
  transform: translateY(-2px);
}

.share-bar__btn--x:hover {
  color: #fafafa;
}

.share-bar__btn--fb:hover {
  color: #1877f2;
}

.share-bar__btn--li:hover {
  color: #0a66c2;
}

.share-bar__btn--wa:hover {
  color: #25d366;
}
