:root {
  --bg: #eef7ff;
  --bg-strong: #d6ebff;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-solid: #ffffff;
  --surface-border: rgba(32, 102, 180, 0.12);
  --text: #0d2b4f;
  --muted: #5d7694;
  --primary: #1174d4;
  --primary-deep: #0b4d93;
  --accent: #73b8ff;
  --shadow: 0 20px 60px rgba(17, 116, 212, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'IBM Plex Sans Thai', sans-serif;
  background: linear-gradient(180deg, #f8fcff 0%, var(--bg) 45%, #ffffff 100%);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-backdrop {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(115, 184, 255, 0.4), transparent 32%),
    radial-gradient(circle at bottom right, rgba(17, 116, 212, 0.18), transparent 28%);
  pointer-events: none;
  z-index: -1;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(248, 252, 255, 0.76);
  border-bottom: 1px solid rgba(17, 116, 212, 0.08);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark strong,
.hero-copy h1,
.section-heading h2,
.page-hero h1,
.article-main h1,
.info-card h2,
.post-card h2,
.post-card h3 {
  font-family: 'Space Grotesk', sans-serif;
}

.brand-mark small {
  display: block;
  color: var(--muted);
}

.brand-mark__badge {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  box-shadow: 0 12px 30px rgba(17, 116, 212, 0.28);
  font-weight: 700;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-auth-form {
  margin: 0;
}

.nav-auth-button {
  font: inherit;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.35rem;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(17, 116, 212, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 30px rgba(17, 116, 212, 0.12);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--primary-deep);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-scrim {
  display: none;
}

.main-nav a {
  color: var(--muted);
  font-weight: 500;
}

.main-nav a.is-active {
  color: var(--primary-deep);
}

body.is-nav-open {
  overflow: hidden;
}

body.is-nav-open .nav-toggle {
  background: rgba(255, 255, 255, 0.98);
}

body.is-nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

body.is-nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.is-nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.page-shell {
  padding: 2rem 0 4rem;
}

.notice-card {
  border-radius: 18px;
  padding: 1rem 1.2rem;
  border: 1px solid transparent;
}

.notice-card--success {
  background: rgba(42, 142, 92, 0.08);
  border-color: rgba(42, 142, 92, 0.18);
  color: #135232;
}

.notice-card--warning {
  background: rgba(209, 138, 36, 0.1);
  border-color: rgba(209, 138, 36, 0.18);
  color: #7d4c06;
}

.notice-card--info {
  background: rgba(17, 116, 212, 0.08);
  border-color: rgba(17, 116, 212, 0.18);
  color: #0b4d93;
}

.hero-section,
.page-hero,
.content-section,
.filter-bar,
.dashboard-stats,
.admin-toolbar,
.table-shell,
.form-shell,
.info-grid,
.article-layout {
  margin-top: 1.5rem;
}

.hero-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.page-hero,
.info-card,
.post-card,
.sidebar-card,
.table-shell,
.post-form,
.empty-state,
.stat-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
}

.hero-copy,
.hero-panel,
.page-hero,
.post-form,
.empty-state,
.sidebar-card,
.info-card,
.table-shell {
  padding: 1.6rem;
}

.hero-copy h1,
.page-hero h1,
.article-main h1 {
  margin: 0.5rem 0 1rem;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 1.05;
}

.hero-copy--home {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  align-items: start;
  gap: 1.25rem;
  scroll-margin-top: 6.5rem;
  background:
    radial-gradient(circle at top right, rgba(115, 184, 255, 0.26), transparent 34%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(231, 244, 255, 0.88));
}

.hero-copy--home h1 {
  margin: 0;
  color: #5c63f2;
  font-size: clamp(2.4rem, 4vw, 3.7rem);
  line-height: 1.08;
}

.hero-copy--home::after {
  content: '';
  position: absolute;
  right: -60px;
  bottom: -90px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(17, 116, 212, 0.14), transparent 68%);
  pointer-events: none;
}

.page-hero--narrow h1 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.page-hero--articles h1 {
  margin: 0;
  color: #5c63f2;
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  line-height: 1.08;
}

.about-page {
  display: grid;
  gap: 1.75rem;
}

.about-hero {
  padding: 1rem 0 0.5rem;
  text-align: center;
}

.about-hero h1 {
  margin: 0;
  color: #5c63f2;
  font-size: clamp(2.4rem, 4vw, 3.7rem);
  line-height: 1.08;
}

.about-hero h2 {
  margin: 0;
  color: #5c63f2;
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  line-height: 1.08;
}

.article-main h1 {
  margin: 0;
  color: #5c63f2;
  font-size: clamp(2.4rem, 4vw, 3.7rem);
  line-height: 1.08;
}

.article-main h2 {
  margin: 0;
  color: #5c63f2;
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  line-height: 1.08;
}

.about-hero p {
  width: min(980px, 100%);
  margin: 1rem auto 0;
  color: #2d4363;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.8;
}

.about-tags {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

.about-tags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  background: rgba(92, 99, 242, 0.08);
  color: #2d3eb7;
  font-weight: 600;
}

.about-panel {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
  padding: 1.8rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(32, 102, 180, 0.1);
  border-radius: 26px;
  box-shadow: 0 18px 45px rgba(26, 62, 117, 0.09);
}

.about-portrait-card {
  position: relative;
  margin: 0;
  width: min(100%, 220px);
  justify-self: center;
  aspect-ratio: 1108 / 1124;
  overflow: hidden;
  border-radius: 22px;
  background: #dfe9f7;
  box-shadow: 0 12px 28px rgba(44, 86, 142, 0.1);
}

.about-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.about-portrait-card figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
}

.about-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  align-content: start;
}

.about-card,
.about-contact-card {
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(243, 247, 255, 0.98));
  border: 1px solid rgba(32, 102, 180, 0.12);
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(44, 86, 142, 0.08);
}

.about-card {
  min-height: 266px;
  padding: 1.55rem 1.4rem;
}

.about-profile-card {
  padding: 1.55rem 1.4rem;
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(243, 247, 255, 0.98));
  border: 1px solid rgba(32, 102, 180, 0.12);
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(44, 86, 142, 0.08);
}

.about-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.2rem;
}

.about-profile-block {
  padding: 1rem 1.05rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(32, 102, 180, 0.1);
}

.about-profile-block--wide {
  grid-column: span 2;
}

.about-profile-block h2 {
  margin: 0 0 1rem;
  color: #11274b;
  font-size: 1.15rem;
}

.about-profile-block p,
.about-profile-block .about-definition-list dd,
.about-profile-block .about-list {
  color: #253b5b;
  font-size: 1rem;
  line-height: 1.65;
}

.about-card h2 {
  margin: 0 0 1rem;
  color: #11274b;
  font-size: 1.15rem;
}

.about-card p,
.about-definition-list dd,
.about-list {
  color: #253b5b;
  font-size: 1rem;
  line-height: 1.65;
}

.about-definition-list {
  margin: 0;
}

.about-definition-list div + div {
  margin-top: 0.8rem;
}

.about-definition-list dt {
  display: inline;
  margin-right: 0.45rem;
  font-weight: 700;
  color: #102547;
}

.about-definition-list dd {
  display: inline;
  margin: 0;
}

.about-list {
  margin: 0;
  padding-left: 1.25rem;
}

.about-contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 78px;
  padding: 1rem 1.35rem;
}

.about-contact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.about-contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 78px;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(17, 116, 212, 0.08);
}

.about-contact-item--wide {
  grid-column: span 2;
}

.about-contact-card--wide {
  grid-column: span 2;
}

.about-contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 14px;
  background: rgba(92, 99, 242, 0.1);
  color: #5c63f2;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.about-contact-label {
  margin: 0 0 0.2rem;
  color: #6a7b96;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.about-contact-card strong {
  color: #102547;
  font-size: 1.05rem;
}

.auth-shell,
.profile-shell {
  display: grid;
  gap: 1.5rem;
}

.auth-layout,
.profile-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.auth-aside,
.profile-summary {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.auth-aside h2,
.profile-summary h2 {
  margin: 0;
}

.auth-aside p,
.profile-summary p,
.profile-summary li,
.form-hint {
  color: var(--muted);
  line-height: 1.7;
}

.profile-meta {
  display: grid;
  gap: 0.9rem;
}

.profile-meta div {
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(17, 116, 212, 0.08);
}

.profile-meta span {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.role-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  background: rgba(17, 116, 212, 0.1);
  color: var(--primary-deep);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
}

.auth-credentials {
  margin: 0;
  padding-left: 1.2rem;
}

.auth-credentials li + li {
  margin-top: 0.4rem;
}

.auth-divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.1rem 0;
  color: var(--muted);
}

.auth-divider::before {
  content: '';
  position: absolute;
  inset: 50% 0 auto;
  border-top: 1px solid rgba(17, 116, 212, 0.12);
}

.auth-divider span {
  position: relative;
  z-index: 1;
  padding: 0 0.8rem;
  background: rgba(255, 255, 255, 0.95);
}

.button.button--google {
  width: 100%;
  border-color: rgba(11, 77, 147, 0.2) !important;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep)) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.button.button--google span,
.button.button--google svg {
  color: inherit !important;
}

.button.button--vip,
.button.button--vip-active {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  padding: 0.9rem 1.3rem;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(196, 106, 14, 0.18);
}

.button.button--vip,
.main-nav .button.button--vip {
  color: #ffffff !important;
  background: linear-gradient(135deg, #c94a1a, #8e1f14) !important;
  border: 1px solid rgba(142, 31, 20, 0.24) !important;
}

.button.button--vip span,
.main-nav .button.button--vip span {
  color: inherit;
}

.button.button--vip-active,
.main-nav .button.button--vip-active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #0f9d58, #1bbf73);
  border: 1px solid rgba(15, 157, 88, 0.18);
}

.button--vip::after,
.button--vip-active::after {
  content: '';
  position: absolute;
  inset: -40% auto auto -15%;
  width: 42px;
  height: 160%;
  transform: rotate(22deg);
  background: rgba(255, 255, 255, 0.3);
}

.button.button--google:hover,
.button.button--google:focus-visible {
  background: #ffffff !important;
  color: #111111 !important;
  border-color: rgba(15, 23, 42, 0.14) !important;
}

.button.button--google:hover span,
.button.button--google:focus-visible span {
  color: #111111 !important;
}

.button.button--vip:hover,
.button.button--vip:focus-visible,
.main-nav .button.button--vip:hover,
.main-nav .button.button--vip:focus-visible {
  background: linear-gradient(135deg, #ffd19a, #ffb066) !important;
  color: #111111 !important;
  border-color: rgba(201, 74, 26, 0.24) !important;
}

.button.button--vip:hover span,
.button.button--vip:focus-visible span,
.main-nav .button.button--vip:hover span,
.main-nav .button.button--vip:focus-visible span {
  color: #111111 !important;
}

.auth-google-button {
  min-height: 52px;
}

.general-login-shell {
  display: grid;
  gap: 1.5rem;
}

.general-login-layout {
  display: grid;
  grid-template-columns: minmax(320px, 640px);
  gap: 1.5rem;
  align-items: stretch;
  justify-content: center;
}

.general-login-panel,
.general-login-card {
  padding: 1.8rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow);
}

.general-login-panel {
  background:
    radial-gradient(circle at top left, rgba(255, 214, 102, 0.28), transparent 32%),
    radial-gradient(circle at bottom right, rgba(66, 133, 244, 0.2), transparent 36%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(235, 245, 255, 0.92));
}

.general-login-card {
  display: grid;
  gap: 1.25rem;
  align-content: center;
  width: min(100%, 640px);
  justify-self: center;
  background: rgba(255, 255, 255, 0.94);
}

.general-login-panel h2,
.general-login-card h2 {
  margin: 0;
}

.general-login-panel p,
.general-login-card p,
.general-login-list li {
  color: var(--muted);
  line-height: 1.75;
}

.general-login-list {
  margin: 0;
  padding-left: 1.2rem;
}

.general-login-list li + li {
  margin-top: 0.45rem;
}

.general-login-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(66, 133, 244, 0.1);
  color: #1a56c4;
  font-weight: 700;
}

.auth-google-button {
  gap: 0.85rem;
}

.google-mark {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.general-login-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.vip-shell {
  display: grid;
  gap: 2rem;
  margin-top: 2.1rem;
}

.vip-overview {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(115, 184, 255, 0.22), transparent 32%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(236, 246, 255, 0.92));
}

.vip-overview__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 1.8rem;
  align-items: start;
}

.vip-overview__copy,
.vip-overview__panel,
.vip-upload-card,
.vip-upload-stack {
  display: grid;
  gap: 1rem;
}

.vip-overview__copy p,
.vip-overview__panel p,
.vip-upload-card p {
  margin: 0;
}

.vip-overview__media {
  margin-top: 0.4rem;
  padding: 1rem;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(224, 239, 255, 0.72));
  border: 1px solid rgba(17, 116, 212, 0.1);
}

.vip-overview__media img {
  display: block;
  width: min(100%, 520px);
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.vip-overview__panel {
  padding: 1.35rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(17, 116, 212, 0.12);
}

.vip-overview__panel h2 {
  margin: 0;
  font-size: 1.2rem;
}

.vip-status-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(17, 116, 212, 0.12);
  box-shadow: var(--shadow);
}

.vip-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
}

.vip-status-pill--active {
  background: rgba(15, 157, 88, 0.12);
  color: #0d7b46;
}

.vip-status-pill--inactive {
  background: rgba(196, 106, 14, 0.12);
  color: #915206;
}

.vip-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 0.92fr);
  gap: 2rem;
  align-items: start;
}

.vip-card,
.vip-payment-card,
.vip-upload-card,
.vip-files-card {
  display: grid;
  gap: 1.25rem;
  padding: 1.9rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(17, 116, 212, 0.12);
  box-shadow: var(--shadow);
}

.vip-card h2,
.vip-payment-card h2,
.vip-upload-card h2,
.vip-files-card h2 {
  margin-top: 0;
  margin-bottom: 0.25rem;
}

.vip-card p,
.vip-payment-card p,
.vip-upload-card p,
.vip-files-card p,
.vip-feature-list li,
.vip-files-card li {
  color: var(--muted);
  line-height: 1.75;
}

.vip-feature-list,
.vip-payment-list {
  margin: 0;
  padding-left: 1.2rem;
}

.vip-feature-list--overview {
  gap: 0.35rem;
}

.vip-feature-list li + li,
.vip-payment-list li + li {
  margin-top: 0.45rem;
}

.vip-price-card {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.35rem;
  padding: 1.15rem 1.2rem;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 233, 183, 0.55), rgba(255, 245, 217, 0.78));
  border: 1px solid rgba(196, 106, 14, 0.16);
}

.vip-price-label {
  color: #915206;
  font-size: 0.92rem;
  font-weight: 700;
}

.vip-price-amount {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  color: #6d3d03;
}

.vip-qr-frame {
  display: grid;
  gap: 1rem;
  justify-items: center;
  margin-top: 0.2rem;
  padding: 1.35rem;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 248, 255, 0.92));
  border: 1px solid rgba(17, 116, 212, 0.12);
}

.vip-qr-frame img {
  width: min(280px, 100%);
  border-radius: 20px;
  border: 1px solid rgba(17, 116, 212, 0.12);
  background: #ffffff;
  padding: 0.9rem;
}

.vip-meta-grid {
  width: 100%;
  display: grid;
  gap: 0.8rem;
}

.vip-meta-grid div {
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(17, 116, 212, 0.08);
}

.vip-meta-grid span {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.vip-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.vip-upload-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.9fr);
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.vip-slip-form,
.vip-admin-form {
  display: grid;
  gap: 1rem;
}

.vip-admin-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.vip-slip-form label,
.vip-admin-form label {
  display: grid;
  gap: 0.45rem;
}

.vip-slip-form input[type='file'],
.vip-admin-form input[type='number'],
.vip-admin-form input[type='text'] {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(17, 116, 212, 0.16);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  font: inherit;
}

.vip-admin-checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem 0.8rem;
  align-items: start;
  padding: 1rem 1.05rem;
  border-radius: 16px;
  border: 1px solid rgba(17, 116, 212, 0.12);
  background: rgba(248, 252, 255, 0.86);
}

.vip-admin-checkbox input {
  margin-top: 0.25rem;
}

.vip-admin-checkbox .footer-copy {
  grid-column: 2;
  margin: 0;
}

.vip-mobile-card {
  display: grid;
  gap: 0.9rem;
  padding: 1.25rem;
  border-radius: 20px;
  background: rgba(248, 252, 255, 0.92);
  border: 1px solid rgba(17, 116, 212, 0.1);
}

.vip-mobile-card h3 {
  margin: 0;
}

.vip-mobile-card__qr {
  display: grid;
  justify-items: center;
}

.vip-mobile-card__qr img {
  width: min(220px, 100%);
  padding: 0.7rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(17, 116, 212, 0.12);
}

.vip-layout--single {
  grid-template-columns: 1fr;
}

.dashboard-stats--vip {
  margin-top: 1rem;
}

.vip-settings-button {
  min-width: 180px;
  letter-spacing: 0.08em;
}

.vip-settings-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(115, 184, 255, 0.26), transparent 34%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(232, 244, 255, 0.92));
}

.vip-settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.vip-settings-panel,
.vip-settings-sidebar {
  display: grid;
  gap: 1.25rem;
}

.vip-settings-summary {
  display: grid;
  gap: 1rem;
}

.vip-settings-summary h2 {
  margin: 0;
}

.vip-settings-checklist {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.vip-settings-checklist li + li {
  margin-top: 0.5rem;
}

.vip-admin-form h2 {
  margin: 0.45rem 0 0;
}

.vip-slip-form--mobile {
  max-width: 560px;
}

.vip-upload-mobile-body {
  min-height: 100vh;
  padding: 1rem;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top, rgba(115, 184, 255, 0.32), transparent 34%),
    linear-gradient(180deg, #f7fbff 0%, #eef7ff 52%, #ffffff 100%);
}

.vip-upload-mobile {
  width: min(100%, 440px);
}

.vip-upload-mobile__card {
  display: grid;
  gap: 1rem;
  padding: 1.35rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(17, 116, 212, 0.12);
  box-shadow: 0 20px 60px rgba(17, 116, 212, 0.14);
}

.vip-upload-mobile__eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  background: rgba(17, 116, 212, 0.09);
  color: var(--primary-deep);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vip-upload-mobile__card h1 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 2.6rem);
  line-height: 1.05;
}

.vip-upload-mobile__lead,
.vip-upload-mobile__hint,
.vip-upload-mobile__success p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.vip-upload-mobile__status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
}

.vip-upload-mobile__status--success {
  background: rgba(42, 142, 92, 0.12);
  color: #135232;
}

.vip-upload-mobile__status--warning {
  background: rgba(209, 138, 36, 0.12);
  color: #7d4c06;
}

.vip-upload-mobile__status--info {
  background: rgba(17, 116, 212, 0.1);
  color: #0b4d93;
}

.vip-upload-mobile__meta {
  display: grid;
  gap: 0.75rem;
}

.vip-upload-mobile__meta-item {
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(247, 251, 255, 0.94);
  border: 1px solid rgba(17, 116, 212, 0.08);
}

.vip-upload-mobile__meta-item span {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.vip-upload-mobile__form {
  display: grid;
  gap: 0.9rem;
}

.vip-upload-mobile__form label {
  display: grid;
  gap: 0.45rem;
}

.vip-upload-mobile__form input[type='file'] {
  width: 100%;
  padding: 0.85rem;
  border-radius: 18px;
  border: 1px solid rgba(17, 116, 212, 0.14);
  background: rgba(255, 255, 255, 0.98);
  color: var(--text);
  font: inherit;
}

.vip-upload-mobile__form input[type='file']::file-selector-button {
  margin-right: 0.75rem;
  padding: 0.7rem 0.95rem;
  border: 0;
  border-radius: 14px;
  background: rgba(17, 116, 212, 0.12);
  color: var(--primary-deep);
  font: inherit;
  font-weight: 700;
}

.vip-upload-mobile__success {
  display: grid;
  gap: 0.45rem;
  padding: 1rem 1.05rem;
  border-radius: 18px;
  background: rgba(42, 142, 92, 0.08);
  border: 1px solid rgba(42, 142, 92, 0.18);
  color: #135232;
}

.vip-files-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.vip-file-card {
  display: grid;
  gap: 0.7rem;
  padding: 1.15rem;
  border-radius: 20px;
  background: rgba(248, 252, 255, 0.92);
  border: 1px solid rgba(17, 116, 212, 0.1);
}

.vip-file-card h3 {
  margin: 0;
}

.vip-file-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.auth-form .form-actions {
  justify-content: space-between;
}

.eyebrow {
  display: inline-flex;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(17, 116, 212, 0.1);
  color: var(--primary-deep);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-copy p,
.page-hero p,
.info-card p,
.post-card p,
.article-excerpt,
.article-content p,
.footer-copy,
.empty-state p,
.sidebar-card p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-actions,
.form-actions,
.action-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 0.4rem;
}

.hero-main-content,
.hero-side-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
}

.hero-highlights__item,
.hero-tag-panel {
  position: relative;
  z-index: 1;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  border: 1px solid rgba(17, 116, 212, 0.12);
  background: rgba(255, 255, 255, 0.68);
}

.hero-highlights__item strong,
.hero-visual__caption strong,
.hero-tag-panel__title {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
}

.hero-highlights__item span,
.hero-tag-panel__title {
  color: var(--muted);
}

.hero-highlights__item span {
  display: block;
  margin-top: 0.35rem;
  line-height: 1.6;
}

.button,
.button-link,
.button--ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.85rem 1.3rem;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: 180ms ease;
}

.button {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff;
  box-shadow: 0 14px 30px rgba(17, 116, 212, 0.24);
}

.button:hover,
.button--ghost:hover,
.button-link:hover {
  transform: translateY(-1px);
}

.button--ghost {
  border-color: rgba(17, 116, 212, 0.14);
  color: var(--primary-deep);
  background: rgba(255, 255, 255, 0.8);
}

.button--full {
  width: 100%;
}

.text-link,
.button-link {
  color: var(--primary-deep);
  background: none;
  padding: 0;
}

.button-link--danger {
  color: #c43c3c;
}

.article-content {
  display: grid;
  gap: 1rem;
}

.article-content > * {
  margin: 0;
}

.article-content h2,
.article-content h3 {
  color: var(--primary-deep);
  line-height: 1.2;
}

.article-content h2 {
  font-size: clamp(1.65rem, 2.4vw, 2.2rem);
}

.article-content h3 {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
}

.article-content ul,
.article-content ol {
  margin: 0;
  padding-left: 1.4rem;
  color: var(--muted);
}

.article-content li + li {
  margin-top: 0.45rem;
}

.article-content blockquote {
  margin: 0;
  padding: 1rem 1.15rem;
  border-left: 4px solid rgba(17, 116, 212, 0.35);
  border-radius: 0 16px 16px 0;
  background: rgba(17, 116, 212, 0.06);
  color: var(--primary-deep);
}

.article-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.article-content hr {
  width: 100%;
  border: 0;
  border-top: 1px solid rgba(17, 116, 212, 0.14);
}

.article-content__light {
  font-weight: 300;
}

.hero-panel {
  display: grid;
  gap: 1rem;
}

.hero-panel--home {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(229, 242, 255, 0.92));
}

.hero-panel--visual {
  padding: 0.95rem;
}

.hero-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 6.2;
  min-height: 0;
  margin: 0;
  border-radius: 24px;
  background: #cfe4fa;
}

.hero-visual__image {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.hero-visual__caption {
  position: absolute;
  right: 1.2rem;
  bottom: 1.2rem;
  left: 1.2rem;
  max-width: min(520px, calc(100% - 2.4rem));
  z-index: 1;
  padding: 0;
  color: #fff;
  background: none;
  box-shadow: none;
}

.hero-visual__caption .eyebrow {
  margin-bottom: 0.8rem;
  padding: 0;
  background: none;
  color: #fff;
  text-shadow: 0 2px 10px rgba(6, 32, 61, 0.55);
}

.hero-visual__caption strong {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.15;
  text-shadow: 0 4px 18px rgba(6, 32, 61, 0.7);
}

.hero-visual__caption p {
  margin: 0.7rem 0 0;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 3px 14px rgba(6, 32, 61, 0.65);
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.hero-copy--home .stat-card {
  background: rgba(255, 255, 255, 0.72);
}

.hero-tag-panel__title {
  margin-bottom: 0.85rem;
}

.stat-card {
  padding: 1.2rem;
}

.stat-card--live {
  min-height: 168px;
}

.stat-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.stat-card span,
.footer-title,
.sidebar-title {
  display: block;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.stat-card strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.4rem;
  margin-bottom: 0.35rem;
}

.stat-card__headline {
  font-size: clamp(1.15rem, 1.8vw, 1.75rem) !important;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

#blog1 .stat-card__headline {
  color: #c62828;
}

#blog2 .stat-card__headline {
  color: #1f8a3b;
}

.stat-card__refresh {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid rgba(31, 138, 59, 0.18);
  border-radius: 999px;
  background: rgba(31, 138, 59, 0.08);
  color: #1f8a3b;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, opacity 180ms ease;
}

.stat-card__refresh:hover,
.stat-card__refresh:focus-visible {
  background: rgba(31, 138, 59, 0.16);
  transform: rotate(18deg);
}

.stat-card__refresh:disabled {
  opacity: 0.6;
  cursor: wait;
}

.stat-card__refresh svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stat-card__refresh.is-loading svg {
  animation: stat-card-refresh-spin 900ms linear infinite;
}

.stat-card__support {
  margin: 0;
  color: #253b5b;
  line-height: 1.65;
}

@keyframes stat-card-refresh-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.stat-card--small strong {
  font-size: 2rem;
}

.tag-cloud,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tag-cloud a,
.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(115, 184, 255, 0.16);
  color: var(--primary-deep);
  font-size: 0.86rem;
  font-weight: 600;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-heading h2 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.5rem, 2vw, 2.2rem);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.card-grid--featured {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid--latest {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card-grid--latest .post-card__image {
  height: 190px;
}

.post-card {
  overflow: hidden;
}

.post-card__image,
.article-cover {
  width: 100%;
  object-fit: cover;
}

.post-card__image {
  height: 220px;
}

.article-cover {
  margin: 1.2rem 0;
  height: 420px;
  border-radius: 24px;
}

.post-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.15rem 1.2rem;
}

.post-card__body h2,
.post-card__body h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.25;
}

.post-card__body h2 a:hover,
.post-card__body h3 a:hover,
.sidebar-link:hover,
.footer-links a:hover,
.main-nav a:hover,
.text-link:hover {
  color: var(--primary);
}

.post-card__meta,
.article-meta,
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.post-card__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.15rem;
}

.post-card__views {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(17, 116, 212, 0.1);
  color: var(--primary-deep);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
}

.filter-form,
.form-grid,
.dashboard-stats,
.info-grid,
.article-layout {
  display: grid;
  gap: 1rem;
}

.filter-form {
  grid-template-columns: 2fr 1fr auto;
}

.filter-form input,
.filter-form select,
.post-form input,
.post-form select,
.post-form textarea {
  width: 100%;
  border: 1px solid rgba(17, 116, 212, 0.14);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
}

.filter-form input:focus,
.filter-form select:focus,
.post-form input:focus,
.post-form select:focus,
.post-form textarea:focus {
  outline: 2px solid rgba(17, 116, 212, 0.18);
  border-color: rgba(17, 116, 212, 0.35);
}

.post-form {
  display: grid;
  gap: 1rem;
}

.rich-editor {
  display: grid;
  gap: 0.85rem;
}

.rich-editor__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0.85rem;
  border-radius: 18px;
  background: rgba(247, 251, 255, 0.92);
  border: 1px solid rgba(17, 116, 212, 0.1);
}

.rich-editor__divider {
  width: 1px;
  min-height: 40px;
  background: rgba(17, 116, 212, 0.12);
}

.rich-editor__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  padding: 0.68rem 0.9rem;
  border: 1px solid rgba(17, 116, 212, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary-deep);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.rich-editor__button:hover,
.rich-editor__button:focus-visible {
  transform: translateY(-1px);
  background: rgba(17, 116, 212, 0.08);
  outline: none;
}

.rich-editor__footer {
  margin-top: -0.2rem;
}

.rich-editor__dialog {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid rgba(17, 116, 212, 0.12);
  background: rgba(248, 252, 255, 0.96);
}

.rich-editor__dialog-header,
.rich-editor__dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.rich-editor__dialog-close {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary-deep);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.rich-editor__dialog-field {
  display: grid;
  gap: 0.4rem;
}

.rich-editor__dialog-field input {
  width: 100%;
  border: 1px solid rgba(17, 116, 212, 0.14);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.98);
  color: var(--text);
}

.rich-editor__underline {
  text-decoration: underline;
}

.rich-editor__surface {
  min-height: 360px;
  padding: 1.35rem 1.4rem;
  border-radius: 24px;
  border: 1px solid rgba(17, 116, 212, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 252, 255, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.rich-editor__surface:focus {
  outline: 2px solid rgba(17, 116, 212, 0.18);
  border-color: rgba(17, 116, 212, 0.3);
}

.rich-editor__surface[data-is-empty='true']::before {
  content: attr(data-placeholder);
  color: var(--muted);
  opacity: 0.78;
  pointer-events: none;
}

.rich-editor__surface p:empty::after,
.rich-editor__surface div:empty::after {
  content: '\00a0';
}

.rich-editor__surface img,
.article-content__image {
  display: block;
  width: min(100%, 820px);
  height: auto;
  margin: 0 auto;
  border-radius: 20px;
  border: 1px solid rgba(17, 116, 212, 0.12);
  box-shadow: 0 12px 28px rgba(44, 86, 142, 0.08);
}

.article-link-card {
  display: grid;
  grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
  padding: 0.85rem;
  border-radius: 22px;
  border: 1px solid rgba(17, 116, 212, 0.1);
  background: linear-gradient(180deg, rgba(248, 252, 255, 0.96), rgba(240, 248, 255, 0.92));
  text-decoration: none !important;
}

.article-link-card__thumbnail {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 16px;
}

.article-link-card__body {
  display: grid;
  align-content: center;
  gap: 0.35rem;
}

.article-link-card__eyebrow {
  color: #c26f08;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-link-card__title {
  color: var(--primary-deep);
  font-weight: 700;
  line-height: 1.35;
}

.article-link-card__meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-form label {
  display: grid;
  gap: 0.5rem;
}

.post-form label span,
.post-form__field-label {
  font-weight: 600;
}

.post-form__field {
  display: grid;
  gap: 0.5rem;
}

@media (max-width: 640px) {
  .article-link-card {
    grid-template-columns: 1fr;
  }

  .article-link-card__thumbnail {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .rich-editor__dialog-actions {
    justify-content: flex-start;
  }
}

.cover-upload-field__hint {
  color: var(--muted);
  font-size: 0.9rem;
}

.cover-upload-preview {
  display: grid;
  gap: 0.6rem;
}

.cover-upload-preview span {
  font-weight: 600;
}

.cover-upload-preview__image {
  width: min(100%, 320px);
  border-radius: 18px;
  border: 1px solid rgba(17, 116, 212, 0.12);
  box-shadow: 0 10px 24px rgba(44, 86, 142, 0.08);
  object-fit: cover;
}

.checkbox-row {
  display: inline-flex !important;
  align-items: center;
  gap: 0.8rem;
}

.checkbox-row input {
  width: auto;
}

.form-alert {
  border-radius: 18px;
  padding: 1rem 1.2rem;
  background: rgba(196, 60, 60, 0.08);
  color: #8d1f1f;
}

.table-responsive {
  overflow-x: auto;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.admin-toolbar--split {
  justify-content: space-between;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(17, 116, 212, 0.1);
  text-align: left;
}

.table-subtext {
  display: block;
  color: var(--muted);
  margin-top: 0.35rem;
}

.table-summary {
  color: var(--muted);
}

.visit-policy-card {
  display: grid;
  gap: 0.75rem;
}

.visit-policy-card h2 {
  margin: 0;
}

.visit-policy-card p {
  margin: 0;
}

.visit-date-field {
  position: relative;
}

.visit-date-trigger {
  width: 100%;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(17, 116, 212, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.visit-date-trigger::after {
  content: 'ปฏิทิน';
  flex-shrink: 0;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(17, 116, 212, 0.08);
  color: var(--primary-deep);
  font-size: 0.78rem;
  font-weight: 700;
}

.visit-date-trigger.is-placeholder {
  color: var(--muted);
}

.visit-date-trigger:focus-visible {
  outline: 2px solid rgba(17, 116, 212, 0.18);
  border-color: rgba(17, 116, 212, 0.35);
}

.visit-date-picker {
  position: absolute;
  z-index: 15;
  top: calc(100% + 0.55rem);
  left: 0;
  width: min(100%, 330px);
  min-width: 280px;
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid rgba(17, 116, 212, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 45px rgba(17, 116, 212, 0.14);
}

.visit-date-picker[hidden] {
  display: none !important;
}

.visit-date-field.is-open {
  z-index: 16;
}

.visit-date-picker__header,
.visit-date-picker__weekdays,
.visit-date-picker__grid,
.visit-date-picker__actions {
  display: grid;
}

.visit-date-picker__header {
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 0.75rem;
}

.visit-date-picker__title {
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--primary-deep);
}

.visit-date-picker__nav {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(17, 116, 212, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-deep);
  font-size: 1.4rem;
  cursor: pointer;
}

.visit-date-picker__weekdays,
.visit-date-picker__grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.visit-date-picker__weekdays {
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.84rem;
  text-align: center;
}

.visit-date-picker__grid {
  gap: 0.35rem;
}

.visit-date-picker__day {
  min-height: 40px;
  border: 0;
  border-radius: 14px;
  background: rgba(247, 251, 255, 0.96);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.visit-date-picker__day.is-outside-month {
  color: rgba(93, 118, 148, 0.55);
  background: rgba(247, 251, 255, 0.55);
}

.visit-date-picker__day.is-today {
  box-shadow: inset 0 0 0 1px rgba(17, 116, 212, 0.22);
}

.visit-date-picker__day.is-selected {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #fff;
  box-shadow: 0 12px 24px rgba(17, 116, 212, 0.22);
}

.visit-date-picker__actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.visit-date-picker__action {
  width: 100%;
}

.visit-country-select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--primary-deep) 50%), linear-gradient(135deg, var(--primary-deep) 50%, transparent 50%);
  background-position: calc(100% - 22px) calc(50% - 3px), calc(100% - 16px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.visit-summary-table {
  margin-top: 0.25rem;
}

.visit-filter-shell {
  padding: 1.4rem 1.6rem;
}

.visit-maintenance-shell {
  padding: 1.15rem 1.6rem;
}

.visit-maintenance-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.visit-maintenance-form {
  margin: 0;
}

.visit-filter-form {
  display: grid;
  gap: 1rem;
}

.visit-filter-placeholder {
  min-height: 1px;
}

@media (max-width: 720px) {
  .visit-date-picker {
    min-width: 100%;
  }

  .visit-date-picker__actions {
    grid-template-columns: 1fr;
  }
}

.empty-inline-state {
  padding: 1.25rem 0;
  color: var(--muted);
  text-align: center;
}

.table-path {
  display: inline-block;
  max-width: 320px;
  color: var(--primary-deep);
  word-break: break-word;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.pagination-pages {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.pagination-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(17, 116, 212, 0.14);
  background: rgba(255, 255, 255, 0.84);
  color: var(--primary-deep);
  font-weight: 600;
}

.pagination-button.is-active {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 14px 30px rgba(17, 116, 212, 0.24);
}

.pagination-button--disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.status-badge {
  display: inline-flex;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(17, 116, 212, 0.1);
  color: var(--primary-deep);
  text-transform: capitalize;
}

.status-badge--pending {
  background: rgba(196, 106, 14, 0.12);
  color: #915206;
}

.status-badge--submitted {
  background: rgba(17, 116, 212, 0.12);
  color: #0b4d93;
}

.status-badge--verified {
  background: rgba(42, 142, 92, 0.12);
  color: #135232;
}

.status-badge--rejected {
  background: rgba(196, 60, 60, 0.12);
  color: #8d1f1f;
}

.article-layout {
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.9fr);
  align-items: start;
}

.article-main,
.article-sidebar {
  display: grid;
  gap: 1rem;
}

.article-main {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow);
  padding: 1.8rem;
}

.sidebar-link {
  display: block;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(17, 116, 212, 0.08);
}

.sidebar-link:last-child {
  border-bottom: 0;
}

.sidebar-related-list {
  display: grid;
  gap: 0.9rem;
}

.sidebar-related-card {
  display: grid;
  gap: 0.7rem;
  padding: 0.8rem;
  border-radius: 18px;
  background: rgba(248, 252, 255, 0.92);
  border: 1px solid rgba(17, 116, 212, 0.1);
}

.sidebar-related-card__image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 14px;
}

.sidebar-related-card__title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
  color: #102547;
}

.sidebar-related-card:hover .sidebar-related-card__title {
  color: var(--primary);
}

.info-grid,
.dashboard-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.empty-state {
  text-align: center;
}

.empty-state--large {
  padding: 3rem 1.5rem;
}

.site-footer {
  margin-top: 3rem;
  padding: 2rem 0 2.6rem;
  border-top: 1px solid rgba(17, 116, 212, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
}

.footer-bottom {
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(17, 116, 212, 0.08);
}

@media (max-width: 1080px) {
  .card-grid--latest {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .hero-section,
  .card-grid,
  .card-grid--featured,
  .article-layout,
  .dashboard-stats,
  .info-grid,
  .footer-grid,
  .filter-form,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .about-details {
    grid-template-columns: 1fr;
  }

  .vip-overview__grid {
    grid-template-columns: 1fr;
  }

  .vip-overview__media img {
    width: min(100%, 420px);
  }

  .vip-settings-layout {
    grid-template-columns: 1fr;
  }

  .auth-layout,
  .profile-layout,
  .general-login-layout {
    grid-template-columns: 1fr;
  }

  .vip-layout,
  .vip-files-grid,
  .vip-upload-grid,
  .vip-admin-form__grid {
    grid-template-columns: 1fr;
  }

  .about-card {
    min-height: auto;
  }

  .nav-bar {
    position: relative;
    min-height: 72px;
  }

  .brand-mark {
    flex: 1;
    min-width: 0;
  }

  .nav-toggle {
    display: inline-flex;
    position: relative;
    z-index: 42;
    flex-shrink: 0;
  }

  .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    border: 0;
    padding: 0;
    background: rgba(7, 25, 46, 0.34);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
    z-index: 34;
  }

  body.is-nav-open .nav-scrim {
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 86vw);
    padding: 6rem 1.25rem 1.5rem;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.85rem;
    background: rgba(248, 252, 255, 0.96);
    backdrop-filter: blur(20px);
    box-shadow: 24px 0 48px rgba(7, 25, 46, 0.16);
    transform: translateX(-110%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 220ms ease, opacity 220ms ease, visibility 220ms ease;
    z-index: 40;
  }

  body.is-nav-open .main-nav {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .main-nav a,
  .main-nav .button--ghost {
    width: 100%;
    text-align: center;
  }

  .main-nav .button--vip,
  .main-nav .button--vip-active {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .main-nav .nav-auth-form,
  .main-nav .nav-auth-form .button {
    width: 100%;
  }

  .main-nav a,
  .main-nav .button {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(17, 116, 212, 0.08);
  }

  .main-nav .button--ghost {
    background: linear-gradient(135deg, rgba(17, 116, 212, 0.12), rgba(11, 77, 147, 0.12));
  }

  .article-cover {
    height: 280px;
  }

  .hero-highlights,
  .hero-stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy--home {
    grid-template-columns: 1fr;
  }

  .hero-panel--visual {
    padding: 1.2rem;
  }

  .hero-visual {
    aspect-ratio: 16 / 8.5;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding-top: 1rem;
  }

  .about-hero h1 {
    font-size: 2.1rem;
  }

  .about-hero p {
    font-size: 1rem;
  }

  .about-panel {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .about-portrait-card {
    width: min(100%, 260px);
    aspect-ratio: 1108 / 1124;
  }

  .about-details {
    grid-template-columns: 1fr;
  }

  .about-profile-grid,
  .about-contact-list {
    grid-template-columns: 1fr;
  }

  .about-profile-block--wide,
  .about-contact-item--wide {
    grid-column: auto;
  }

  .about-contact-card--wide {
    grid-column: auto;
  }

  .auth-aside,
  .profile-summary {
    padding: 1.2rem;
  }

  .hero-copy,
  .hero-panel,
  .page-hero,
  .post-form,
  .empty-state,
  .sidebar-card,
  .info-card,
  .table-shell,
  .article-main {
    padding: 1.2rem;
  }

  .hero-copy h1,
  .page-hero h1,
  .article-main h1 {
    font-size: 2rem;
  }

  .post-card__image {
    height: 200px;
  }

  .hero-visual {
    aspect-ratio: 4 / 3;
  }

  .hero-visual__caption {
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.9rem;
    padding: 0.95rem;
  }
}

.attachment-editor {
  display: grid;
  gap: 1rem;
  padding: 1.35rem;
  border-radius: 24px;
  background: rgba(247, 251, 255, 0.9);
  border: 1px solid rgba(17, 116, 212, 0.12);
}

.attachment-editor__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.attachment-editor__header h2 {
  margin: 0 0 0.4rem;
}

.attachment-editor__header p {
  margin: 0;
  color: var(--muted);
}

.attachment-rows {
  display: grid;
  gap: 1rem;
}

.attachment-row {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(17, 116, 212, 0.1);
}

.attachment-row__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.attachment-row__actions {
  display: flex;
  justify-content: flex-end;
}

.attachment-row__hint {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
}

.article-attachments {
  margin-top: 2rem;
  display: grid;
  gap: 1.25rem;
}

.article-attachments__header h2 {
  margin-bottom: 0.45rem;
}

.article-attachments__header p {
  margin: 0;
  color: var(--muted);
}

.article-attachments__grid {
  display: grid;
  gap: 1rem;
}

.article-attachment-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.15rem;
  border-radius: 22px;
  background: rgba(247, 251, 255, 0.94);
  border: 1px solid rgba(17, 116, 212, 0.12);
}

.article-attachment-card__name {
  margin: 0;
  flex: 1 1 240px;
}

.article-attachment-card__actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.article-attachment-card__vip-button {
  border: none;
  cursor: pointer;
}

@media (max-width: 880px) {
  .attachment-row__grid {
    grid-template-columns: 1fr;
  }

  .attachment-editor__header {
    flex-direction: column;
  }

  .article-attachment-card {
    align-items: stretch;
  }

  .article-attachment-card__actions {
    justify-content: flex-start;
  }
}