
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Kanit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top, #fef9e7 0, #f7e9c9 25%, #1b1024 70%, #05030a 100%);
  color: #fdfaf3;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(90deg, rgba(15,10,28,0.95), rgba(47,29,10,0.95));
  border-bottom: 1px solid rgba(230,191,120,0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 0, #fff7d0, #f1c96b, #7f4b13);
  box-shadow: 0 0 18px rgba(250,215,160,0.7);
  font-size: 20px;
}

.logo-text {
  line-height: 1.1;
}

.logo-title {
  font-weight: 700;
  font-size: 16px;
}

.logo-sub {
  font-size: 12px;
  opacity: 0.8;
}

.main-nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.main-nav a {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.main-nav a:hover {
  border-color: rgba(255, 236, 179, 0.7);
  background: radial-gradient(circle at top, rgba(254, 249, 231,0.12), rgba(215,180,110,0.12));
}

.page-main {
  padding: 24px 0 40px;
}

/* Hero */
.hero {
  margin-top: 10px;
  border-radius: 24px;
  padding: 30px 24px;
  background:
    radial-gradient(circle at top left, rgba(255,240,210,0.18), transparent 60%),
    radial-gradient(circle at bottom right, rgba(158,102,39,0.8), #0a050d 65%);
  border: 1px solid rgba(244, 208, 111, 0.4);
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.85),
    0 0 120px rgba(255, 223, 140, 0.45);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.12), transparent 55%),
    radial-gradient(circle at 50% 0, rgba(255, 239, 190, 0.18), transparent 60%);
  mix-blend-mode: screen;
  opacity: 0.9;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  gap: 24px;
}

.hero-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 0 18px rgba(255, 241, 184, 0.9);
}

.hero-title span.accent {
  background: linear-gradient(120deg, #ffefba, #ffd36a, #fffae3);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 15px;
  opacity: 0.95;
  max-width: 460px;
}

.hero-cta {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn-primary {
  padding: 10px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: linear-gradient(120deg, #ffecb3, #f6c86a, #f9a825);
  color: #3e2723;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 18px 35px rgba(0,0,0,0.65), 0 0 26px rgba(253, 216, 53, 0.75);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 40px rgba(0,0,0,0.8), 0 0 40px rgba(255, 236, 179, 0.9);
  filter: brightness(1.02);
}

.btn-secondary {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 245, 200, 0.7);
  background: rgba(15,10,30,0.4);
  font-size: 13px;
}

.hero-meta {
  margin-top: 12px;
  font-size: 12px;
  opacity: 0.85;
}

.hero-right {
  position: relative;
}

.hero-card {
  border-radius: 20px;
  padding: 16px 16px 14px;
  background: radial-gradient(circle at top, rgba(255,253,231,0.18), rgba(35,18,6,0.95));
  border: 1px solid rgba(245, 222, 179, 0.6);
  box-shadow: 0 20px 40px rgba(0,0,0,0.9);
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.hero-card-title {
  font-size: 13px;
  font-weight: 600;
}

.hero-pill {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 0 0, #fff8e1, #f9c655);
  color: #4e342e;
  font-weight: 600;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.metric-card {
  border-radius: 14px;
  padding: 10px;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,248,225,0.02));
  border: 1px solid rgba(255, 236, 179, 0.3);
  font-size: 12px;
}

.metric-label {
  opacity: 0.8;
}

.metric-value {
  font-size: 16px;
  font-weight: 700;
  margin-top: 2px;
}

.metric-sub {
  font-size: 11px;
  opacity: 0.8;
}

.hero-note {
  font-size: 11px;
  opacity: 0.9;
}

/* Sections */
.section {
  margin-top: 26px;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 18px;
}

.card {
  border-radius: 18px;
  padding: 16px;
  background: rgba(10,5,18,0.9);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 16px 30px rgba(1,0,4,0.8);
}

.card-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 6px;
}

.card p {
  font-size: 14px;
  opacity: 0.94;
}

/* Forms */
.form-field {
  margin-bottom: 12px;
}

.form-field label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.form-field input[type="text"],
.form-field input[type="number"],
.form-field input[type="password"],
.form-field input[type="file"],
.form-field textarea,
.form-field select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.16);
  padding: 8px 10px;
  background: rgba(6,3,12,0.85);
  color: #fffde7;
  font-family: inherit;
  font-size: 13px;
}

.form-field textarea {
  min-height: 70px;
  resize: vertical;
}

.form-help {
  font-size: 11px;
  opacity: 0.8;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.table th,
.table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.table th {
  text-align: left;
  opacity: 0.8;
  font-weight: 500;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding: 18px 0 22px;
  background: rgba(3,0,6,0.92);
  margin-top: 24px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  font-size: 13px;
}

.footer-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.footer-credit {
  opacity: 0.8;
}

/* Admin */
.admin-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
}

.admin-sidebar {
  border-radius: 18px;
  padding: 16px;
  background: rgba(5,3,15,0.96);
  border: 1px solid rgba(255, 224, 178, 0.26);
}

.admin-sidebar-title {
  font-weight: 600;
  margin-bottom: 8px;
}

.admin-sidebar a {
  display: block;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 13px;
  margin-bottom: 4px;
  background: rgba(20,12,40,0.8);
}

.admin-sidebar a:hover {
  background: rgba(255, 236, 179, 0.08);
}

.admin-content {
  border-radius: 18px;
  padding: 16px;
  background: rgba(6,2,15,0.96);
  border: 1px solid rgba(255,255,255,0.08);
}

/* Messages */
.alert {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 10px;
}

.alert-success {
  background: rgba(200, 230, 201, 0.1);
  border: 1px solid rgba(165, 214, 167, 0.8);
  color: #e8f5e9;
}

.alert-error {
  background: rgba(239, 154, 154, 0.1);
  border: 1px solid rgba(239, 154, 154, 0.8);
  color: #ffebee;
}

/* Responsive */
@media (max-width: 840px) {
  .hero-inner,
  .grid-2,
  .admin-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .main-nav {
    display: none;
  }
}
