:root {
  --brand-red: #e31717;
  --brand-red-dark: #b90f0f;
  --ink: #111111;
  --charcoal: #1d1d1d;
  --muted: #4a4a4a;
  --soft: #f5f5f5;
  --soft-2: #ececec;
  --white: #ffffff;
  --border: rgba(17, 17, 17, 0.08);
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f8f8f8 0%, #ffffff 28%, #f3f3f3 100%);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.topbar {
  background: var(--brand-red);
  color: var(--white);
  font-size: 0.95rem;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  flex-wrap: wrap;
}

.nav-overlay,
.nav-drawer {
  display: none;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.brand-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(227,23,23,.22);
  flex-shrink: 0;
}
.brand-text { min-width: 0; }
.brand-text .cn {
  font-size: .95rem;
  letter-spacing: .18em;
  font-weight: 700;
  color: var(--brand-red);
}
.brand-text .en {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.1;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 700;
}
.nav-links a {
  position: relative;
  color: #222;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--brand-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.is-active::after { transform: scaleX(1); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(0,0,0,.04);
  border: 1px solid var(--border);
}
.lang-switch a {
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 800;
  color: #333;
}
.lang-switch a.is-active {
  background: var(--brand-red);
  color: #fff;
  box-shadow: 0 8px 20px rgba(227,23,23,.2);
}

.nav-cta,
.btn,
.nav-mobile-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  border: none;
  cursor: pointer;
}
.nav-cta,
.btn-primary,
.nav-mobile-cta {
  background: linear-gradient(135deg, var(--brand-red) 0%, #ff2e2e 100%);
  color: #fff;
  box-shadow: 0 12px 26px rgba(227,23,23,.24);
}
.btn-secondary {
  background: rgba(255,255,255,.8);
  color: var(--ink);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}
.nav-cta:hover,
.btn:hover,
.nav-mobile-cta:hover { transform: translateY(-2px); }

.menu-toggle,
.menu-close {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
}
.menu-toggle {
  display: none;
}
.menu-close {
  display: inline-grid;
  place-items: center;
  line-height: 1;
  font-size: 1.8rem;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.42);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s ease, visibility .28s ease;
  z-index: 1190;
}
.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(86vw, 360px);
  height: 100dvh;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(14px);
  border-left: 1px solid var(--border);
  box-shadow: -24px 0 48px rgba(0,0,0,.18);
  transform: translateX(100%);
  transition: transform .3s ease;
  z-index: 1200;
  display: flex;
  flex-direction: column;
}
.nav-drawer.is-open {
  transform: translateX(0);
}
.nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}
.nav-drawer-title {
  font-size: 1.05rem;
  font-weight: 800;
}
.nav-drawer-inner {
  padding: 18px;
  overflow-y: auto;
}
.nav-mobile {
  display: grid;
  gap: 12px;
}
.nav-mobile a,
.nav-mobile .lang-switch {
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
  font-weight: 800;
}
.nav-mobile a.is-active {
  border-color: rgba(227,23,23,.26);
  box-shadow: 0 10px 24px rgba(227,23,23,.08);
  color: var(--brand-red-dark);
}
.nav-mobile .lang-switch {
  justify-content: flex-start;
  padding: 6px;
  background: rgba(0,0,0,.03);
}
body.nav-open {
  overflow: hidden;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0 44px;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: .7;
  z-index: 0;
}
.hero::before {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(227,23,23,.22) 0%, rgba(227,23,23,0) 70%);
  top: -140px;
  right: -120px;
}
.hero::after {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(0,0,0,.08) 0%, rgba(0,0,0,0) 72%);
  bottom: -120px;
  left: -80px;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  gap: 38px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(227,23,23,.08);
  color: var(--brand-red-dark);
  font-size: .92rem;
  font-weight: 800;
  letter-spacing: .03em;
  margin-bottom: 18px;
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: .96;
  letter-spacing: -.04em;
  font-weight: 900;
}
html[lang="en"] .hero h1 { text-transform: uppercase; }
html[lang="zh-Hant"] .hero h1 {
  line-height: 1.08;
  letter-spacing: -.02em;
}
.hero h1 span {
  color: var(--brand-red);
  display: block;
}
.hero p {
  margin: 22px 0 0;
  font-size: 1.12rem;
  color: #333;
  max-width: 740px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.quick-contact {
  display: flex;
  gap: 18px;
  margin-top: 26px;
  flex-wrap: wrap;
  color: #3b3b3b;
  font-weight: 700;
}
.hero-card {
  background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(248,248,248,.98) 100%);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 34px;
  padding: 28px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -70px auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(227,23,23,.24) 0%, rgba(227,23,23,0) 70%);
  border-radius: 50%;
}
.hero-logo-wrap {
  background: #f0f0f0;
  border-radius: 28px;
  padding: 18px;
  border: 1px solid rgba(0,0,0,.05);
}
.hero-logo {
  width: min(100%, 430px);
  margin: 0 auto;
}
.hero-badge-row {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.badge-card {
  background: #fff;
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(0,0,0,.06);
}
.badge-card strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.section { padding: 36px 0 18px; }
.section-title {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.section-title .kicker {
  color: var(--brand-red);
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .08em;
  margin-bottom: 10px;
}
html[lang="en"] .section-title .kicker,
html[lang="en"] .stat-card .label,
html[lang="en"] .event-tag {
  text-transform: uppercase;
}
.section-title h1,
.section-title h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1;
}
html[lang="en"] .section-title h1,
html[lang="en"] .section-title h2 { text-transform: uppercase; }
html[lang="zh-Hant"] .section-title h1,
html[lang="zh-Hant"] .section-title h2 { line-height: 1.15; }
.section-title p {
  max-width: 720px;
  margin: 10px 0 0;
  color: #444;
  font-size: 1.04rem;
}

.stats { padding: 10px 0 6px; }
.stats-grid,
.services-grid,
.benefits-grid,
.updates-grid,
.contact-grid,
.info-grid,
.card-grid {
  display: grid;
  gap: 18px;
}
.stats-grid { grid-template-columns: repeat(4, 1fr); }
.services-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.benefits-grid,
.card-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.updates-grid { grid-template-columns: 1.15fr .85fr; align-items: start; }
.contact-grid,
.info-grid { grid-template-columns: .95fr 1.05fr; align-items: start; }

.card {
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 10px 24px rgba(0,0,0,.05);
}
.stat-card {
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(245,245,245,.96) 100%);
}
.stat-card .number {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1;
  color: var(--brand-red);
}
.stat-card .label {
  margin-top: 8px;
  font-weight: 800;
  letter-spacing: .04em;
}
.stat-card .small {
  margin-top: 6px;
  color: #4b4b4b;
  font-size: .95rem;
}

.about-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}
.about-highlight {
  background: linear-gradient(135deg, var(--charcoal) 0%, #2e2e2e 100%);
  color: #fff;
  border-radius: 26px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.about-highlight h3,
.service-card h3,
.benefit-card h3,
.contact-card h3,
.updates-main h3,
.event-item h3 {
  margin: 0 0 12px;
  font-size: 1.3rem;
  line-height: 1.15;
}
.about-highlight p,
.service-card p,
.benefit-card p,
.contact-card p,
.updates-main p,
.event-item p {
  margin: 0;
  color: inherit;
}
.about-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}
.about-list div {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
  font-weight: 700;
}

.service-card,
.benefit-card,
.contact-card,
.event-item {
  position: relative;
  overflow: hidden;
}
.service-card::before,
.benefit-card::before,
.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-red), #ff6d6d);
}
.icon-pill {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(227,23,23,.1);
  display: grid;
  place-items: center;
  color: var(--brand-red);
  font-size: 1.35rem;
  font-weight: 900;
  margin-bottom: 16px;
}
.benefit-card ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: #444;
}
.benefit-card li + li { margin-top: 8px; }

.updates-main {
  background: linear-gradient(135deg, var(--brand-red) 0%, #ff3838 100%);
  color: #fff;
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.updates-main .feature-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.updates-main .feature-list div {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 700;
}
.event-stack {
  display: grid;
  gap: 14px;
}
.event-item {
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 10px 20px rgba(0,0,0,.05);
}
.event-tag {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(227,23,23,.1);
  color: var(--brand-red-dark);
  font-size: .82rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.contact-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.04rem;
}
.contact-lines {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.contact-line {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 700;
  color: #2f2f2f;
}
.contact-line span:first-child {
  width: 30px;
  flex: 0 0 30px;
  color: var(--brand-red);
}

form {
  display: grid;
  gap: 14px;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
input,
textarea {
  width: 100%;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 16px;
  padding: 15px 16px;
  font: inherit;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(227,23,23,.45);
  box-shadow: 0 0 0 4px rgba(227,23,23,.1);
}
textarea {
  min-height: 160px;
  resize: vertical;
}
.notice {
  margin-top: 12px;
  font-size: .92rem;
  color: #666;
}

.footer {
  margin-top: 42px;
  background: #111;
  color: #efefef;
  padding: 28px 0 34px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-brand img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
}
.footer small {
  color: #b7b7b7;
  display: block;
  margin-top: 4px;
}

@media (min-width: 700px) {
  .carousel-slide {
    flex-basis: calc((100% - 18px) / 2);
  }
}

@media (max-width: 1080px) {
  .hero-grid,
  .updates-grid,
  .contact-grid,
  .about-panel,
  .stats-grid,
  .info-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-grid { align-items: stretch; }
}

@media (max-width: 820px) {
  .nav-links,
  .nav-cta,
  .lang-switch.desktop-only { display: none; }
  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }
  .nav-overlay,
  .nav-drawer {
    display: block;
  }
  .hero, .section { padding-top: 26px; }
  .hero-grid,
  .updates-grid,
  .contact-grid,
  .info-grid,
  .about-panel,
  .stats-grid,
  .services-grid,
  .benefits-grid,
  .field-grid,
  .hero-badge-row {
    grid-template-columns: 1fr;
  }
  .section-title,
  .section-title-actions,
  .section-title-side {
    align-items: flex-start;
    justify-content: flex-start;
  }
  .carousel-controls {
    justify-content: flex-start;
  }
  .hero h1 { font-size: clamp(2.2rem, 13vw, 3.9rem); }
  .brand-text .en { font-size: 1rem; }
  .brand-logo { width: 56px; height: 56px; }
}


.page-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.card-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}


.home-news-preview {
  margin-top: 10px;
}
.section-title-actions {
  align-items: flex-end;
}
.section-title-side {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.section-title-side p {
  margin: 0;
}
.section-link-btn {
  white-space: nowrap;
}
.carousel-shell {
  position: relative;
}
.carousel-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 16px;
}
.carousel-arrow {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.95);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, opacity .2s ease, box-shadow .2s ease;
}
.carousel-arrow:hover {
  transform: translateY(-2px);
}
.carousel-arrow:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.carousel-track-wrap {
  overflow: hidden;
}
.carousel-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 6px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carousel-track::-webkit-scrollbar {
  display: none;
}
.carousel-slide {
  flex: 0 0 calc(100% - 8px);
  scroll-snap-align: start;
}
.news-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 340px));
  gap: 18px;
  justify-content: start;
}
.news-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.news-card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, #f2f2f2, #e8e8e8);
  margin-bottom: 18px;
}
.news-card-media img,
.news-hero-image img,
.gallery-item img,
.admin-image-thumb img,
.upload-preview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .92rem;
  margin-bottom: 12px;
}
.news-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(227,23,23,.1);
  color: var(--brand-red-dark);
  font-weight: 800;
}
.news-card h3,
.news-hero-copy h1 {
  margin: 0 0 12px;
  line-height: 1.1;
}
.news-card h3 {
  font-size: 1.35rem;
}
.news-card p {
  margin: 0;
  color: #444;
}
.news-card-footer {
  margin-top: auto;
  padding-top: 18px;
}
.news-empty {
  text-align: center;
  padding: 36px 26px;
}
.news-layout {
  display: grid;
  gap: 22px;
}
.news-hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 22px;
  align-items: start;
}
.news-hero-image {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,.06);
  background: #f2f2f2;
  min-height: 320px;
}
.news-hero-copy {
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 26px;
  padding: 28px;
  box-shadow: 0 10px 24px rgba(0,0,0,.05);
}
.news-hero-copy .description {
  font-size: 1.05rem;
  color: #333;
  white-space: pre-wrap;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}
.gallery-item {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #f0f0f0;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 10px 24px rgba(0,0,0,.05);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--brand-red-dark);
}
.flash {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 700;
}
.flash-success {
  background: rgba(27, 150, 77, .12);
  color: #125c31;
  border: 1px solid rgba(27, 150, 77, .2);
}
.flash-error {
  background: rgba(227, 23, 23, .12);
  color: #7a1616;
  border: 1px solid rgba(227, 23, 23, .2);
}
.admin-shell {
  display: grid;
  gap: 22px;
}
.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 22px;
  align-items: start;
}
.admin-card h2,
.admin-card h3 {
  margin-top: 0;
}
.admin-card {
  background: rgba(255,255,255,.94);
}
.admin-login {
  max-width: 520px;
  margin: 60px auto;
}
.form-stack {
  display: grid;
  gap: 14px;
}
.form-label {
  display: grid;
  gap: 8px;
  font-weight: 700;
  color: #222;
}
.form-help {
  color: #666;
  font-size: .92rem;
}
.admin-list {
  display: grid;
  gap: 14px;
}
.admin-list-item {
  padding: 16px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  background: #fff;
}
.admin-list-item h4 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}
.admin-list-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.button-link,
.button-danger,
.button-neutral {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  cursor: pointer;
}
.button-link {
  color: var(--brand-red-dark);
}
.button-danger {
  color: #8f1d1d;
  border-color: rgba(143,29,29,.18);
  background: rgba(227,23,23,.06);
}
.admin-images-grid,
.upload-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.admin-image-thumb,
.upload-preview-card {
  position: relative;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  overflow: hidden;
  background: #fafafa;
}
.admin-image-thumb .thumb-media,
.upload-preview-card .thumb-media {
  aspect-ratio: 1;
  background: #efefef;
}
.thumb-controls {
  padding: 10px;
  display: grid;
  gap: 8px;
  font-size: .9rem;
}
.thumb-controls label {
  display: flex;
  gap: 8px;
  align-items: center;
}
.inline-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.mono {
  font-family: Consolas, Menlo, Monaco, monospace;
  font-size: .95rem;
}
@media (max-width: 920px) {
  .admin-grid,
  .news-hero {
    grid-template-columns: 1fr;
  }
}


.admin-empty-state {
  padding: 18px;
  border: 1px dashed rgba(0,0,0,.14);
  border-radius: 18px;
  background: rgba(0,0,0,.02);
  color: #666;
}
.upload-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,246,246,.98));
}
.upload-panel.is-disabled {
  background: rgba(0,0,0,.02);
}
.upload-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.upload-panel-head h3 {
  margin: 0 0 6px;
}
.upload-panel-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.upload-meta {
  color: #555;
  font-size: .94rem;
  font-weight: 700;
}
.upload-progress-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.06);
  overflow: hidden;
}
.upload-progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--brand-red), #ff6d6d);
  transition: width .22s ease;
}
.upload-status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 800;
  width: fit-content;
}
.upload-status-chip.is-queued {
  background: rgba(0,0,0,.06);
  color: #555;
}
.upload-status-chip.is-uploading {
  background: rgba(56, 132, 255, .12);
  color: #205db5;
}
.upload-status-chip.is-done {
  background: rgba(27, 150, 77, .12);
  color: #125c31;
}
.upload-status-chip.is-error {
  background: rgba(227, 23, 23, .12);
  color: #8a1919;
}
.upload-choose-btn {
  position: relative;
  overflow: hidden;
}
.admin-image-thumb.is-new {
  box-shadow: 0 10px 24px rgba(27,150,77,.08);
}
.gallery-item img,
.news-card-media img,
.admin-image-thumb img,
.upload-preview-card img {
  content-visibility: auto;
}
@media (max-width: 920px) {
  .upload-panel-head,
  .upload-panel-actions {
    align-items: stretch;
  }
}
