:root {
  /* Bright vintage & dandy palette */
  --bg: #f7f6f3;            /* warm ivory parchment */
  --bg-elev: #ffffff;       /* elevated light surfaces */
  --bg-muted: #f1efe9;      /* subtle band */
  --text: #1f1f1f;          /* deep charcoal */
  --muted: #6f6557;         /* vintage taupe */
  --border: #e4dbc8;        /* fine parchment border */
  --accent: #8c2f39;        /* classic burgundy */
  --accent-contrast: #ffffff;
  --gold: #c59b2a;          /* warm gold accent */
  --shadow-sm: 0 10px 24px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 20px 48px rgba(15, 23, 42, 0.14);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --ring: 0 0 0 3px rgba(140,47,57,0.14);
  --font-sans: "Noto Sans KR", Pretendard, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Noto Serif KR", "Noto Sans KR", Pretendard, serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 300; /* thin, refined */
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  letter-spacing: -0.1px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.embedded .site-header,
.embedded .site-footer {
  display: none;
}
.embedded .page-main {
  padding-top: 0;
}
h1,h2,h3,h4,h5 { font-family: var(--font-serif); letter-spacing: 0.2px; line-height: 1.25; }
h1 { font-weight: 700; }
h2 { font-weight: 600; }
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; }
p { margin: 0 0 12px; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-color: var(--accent);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--text);
  color: #fff;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform .2s ease;
  z-index: 9999;
}
.skip-link:focus { transform: translateY(0); }

/* Utilities */
.page-main { padding: 24px 0; }
.page-title { margin: 0 0 12px; font-size: clamp(24px, 4.2vw, 34px); font-weight: 700; letter-spacing: 0.2px; }
.page-title, .section-title { text-wrap: balance; }
.page-title + p { color: var(--muted); margin-top: 0; }
.form-note { color: var(--muted); font-size: 14px; }
.section-card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-header.stack { flex-direction: column; align-items: flex-start; }
.section-title { margin: 0; font-size: clamp(22px, 3.6vw, 30px); font-weight: 700; }
.section-desc { color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.section-subtle { color: var(--muted); font-size: 13px; }

/* Company intro: awards & certifications */
.awards-certs { padding: 22px; margin-top: 16px; }
.awards-certs-grid {
  display: grid;
  grid-template-columns: minmax(0,0.6fr) minmax(0,1.4fr);
  gap: 18px;
}
.awards-block { display: grid; gap: 10px; align-content: start; }
.awards-title { margin: 0; font-size: 18px; font-weight: 700; }
.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
}
.cert-card {
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.cert-media { background: var(--bg-muted); aspect-ratio: 4 / 3; }
.cert-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cert-body { padding: 12px 14px 14px; display: grid; gap: 6px; }
.cert-title { margin: 0; font-size: 16px; font-weight: 700; }
.cert-desc { margin: 0; font-size: 13px; color: var(--muted); }
.cert-caption { margin: 0; font-size: 13px; color: var(--muted); word-break: break-word; }

@media (max-width: 820px) {
  .awards-certs-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
}

/* Products page */
.products-hero {
  margin-top: 8px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fff8ea 0%, #fff0f0 50%, #f6f3ee 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
  margin-top: 18px;
}
.tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.tab-btn {
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.tab-btn:hover { transform: translateY(-1px); }
.tab-btn.is-active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }
.products-grid.tab-panel.is-active { display: grid; }
.product-embed {
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elev);
  box-shadow: var(--shadow-sm);
}
.product-embed iframe {
  width: 100%;
  min-height: 900px;
  border: 0;
  display: block;
  background: #fff;
  overflow: hidden;
}
.tab-bar.type-only .tab-btn[data-tab-target="vendor-view"] { display: none; }
.product-card-link {
  display: grid;
  grid-template-rows: auto 1fr;
  text-decoration: none;
  color: var(--text);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.product-card-link.is-static {
  cursor: default;
  pointer-events: none;
}
.product-thumb { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-muted); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-body { padding: 14px 16px 16px; display: grid; gap: 6px; }
.product-title { font-weight: 700; font-size: 16px; margin: 0; }
.product-desc { color: var(--muted); font-size: 13px; margin: 0; }
.product-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.meta-chip { font-size: 12px; padding: 4px 8px; border-radius: 9999px; background: var(--bg-muted); border: 1px solid var(--border); }

@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .products-grid { grid-template-columns: 1fr; }
  .products-hero { padding: 20px; }
}

/* Product detail pages */
.product-detail {
  display: grid;
  gap: 24px;
}
.product-hero {
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(0,0.9fr);
  gap: 24px;
  align-items: stretch;
}
.product-hero-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.product-hero-media {
  aspect-ratio: 4 / 3;
  background: var(--bg-muted);
}
.product-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-hero-body { padding: 20px; display: grid; gap: 10px; }
.product-hero-title { font-size: clamp(22px, 3vw, 28px); font-weight: 700; margin: 0; }
.product-hero-desc { color: var(--muted); font-size: 14px; margin: 0; }
.product-cta { display: flex; flex-wrap: wrap; gap: 10px; }

.product-section {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  box-shadow: var(--shadow-sm);
  padding: 20px;
}
.product-section-title { font-size: 18px; margin: 0 0 12px; font-weight: 700; }
.product-specs { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.spec-card { padding: 12px; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--bg-muted); }
.spec-label { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.spec-value { font-weight: 600; }
.product-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.feature-card { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px; background: #fff; }
.feature-title { margin: 0 0 6px; font-weight: 700; font-size: 14px; }
.feature-desc { margin: 0; color: var(--muted); font-size: 13px; }
.product-gallery { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.product-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--bg-muted); aspect-ratio: 4 / 3; }

/* News + notice tabs */
.news-section { margin: 36px 0 44px; }
.news-shell {
  position: relative;
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #fff4ef 0%, #f7f2ec 45%, #f2f0ea 100%);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.news-shell::before,
.news-shell::after {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(140,47,57,0.12), rgba(140,47,57,0));
  pointer-events: none;
}
.news-shell::before { top: -120px; right: -80px; }
.news-shell::after { bottom: -140px; left: -90px; }
.news-header { align-items: center; }
.news-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--text);
  background: var(--text);
  color: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.news-all:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.news-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 16px 0 18px;
}
.news-tab-list .tab-button {
  border: 1px solid rgba(140,47,57,0.2);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.news-tab-list .tab-button[aria-selected="true"] {
  border-color: var(--accent);
  background: rgba(140,47,57,0.1);
  box-shadow: 0 14px 30px rgba(140,47,57,0.18);
}
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.news-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
  animation: news-rise .5s ease both;
}
.news-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.news-item-body { display: grid; gap: 4px; }
.notice-empty {
  justify-content: center;
  text-align: center;
  color: var(--muted);
  grid-template-columns: 1fr;
}
.news-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
}
.news-badge.badge-news { background: var(--text); }
.news-title { margin: 0; font-size: 16px; font-weight: 700; color: inherit; text-decoration: none; }
.news-title:hover { text-decoration: underline; }
.news-summary { margin: 0; font-size: 13px; color: var(--muted); }
.news-date { font-size: 12px; color: var(--muted); white-space: nowrap; }

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

@media (max-width: 720px) {
  .news-shell { padding: 20px; }
  .news-header { flex-direction: column; align-items: flex-start; }
  .news-item { grid-template-columns: 1fr; align-items: start; }
  .news-date { justify-self: start; }
}

/* Notice list + detail pages */
.notice-page .notice-board { padding: 22px; }
.notice-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.notice-controls input,
.notice-controls select {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  background: #fff;
}
.notice-pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.page-btn {
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
}
.page-btn.active { background: var(--text); color: #fff; border-color: var(--text); }
.notice-detail-header { display: grid; gap: 8px; }
.notice-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}
.notice-views { font-size: 12px; color: var(--muted); }
.notice-detail-body {
  margin-top: 18px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  min-height: 220px;
}
.notice-detail-body p { margin: 0 0 12px; }
.notice-attachments-view {
  margin-top: 14px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-elev);
}
.notice-attachments-title { font-weight: 700; margin-bottom: 8px; }
.notice-attachments-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.notice-attachments-list li { display: flex; justify-content: space-between; gap: 10px; }
.notice-attachments-list a { text-decoration: none; color: var(--accent); }
.notice-attachments-list a:hover { text-decoration: underline; }
.news-pin {
  font-size: 11px;
  color: var(--accent);
  border: 1px solid rgba(140,47,57,0.3);
  padding: 2px 6px;
  border-radius: 999px;
  white-space: nowrap;
}
.notice-detail-actions { margin-top: 16px; }
@media (prefers-reduced-motion: reduce) {
  .news-card { animation: none; }
}

@media (max-width: 1024px) {
  .product-hero { grid-template-columns: 1fr; }
  .product-specs { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .product-feature-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .product-gallery { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .product-specs { grid-template-columns: 1fr; }
  .product-feature-grid { grid-template-columns: 1fr; }
  .product-gallery { grid-template-columns: 1fr; }
}

/* Admin hub tabs */
.admin-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 12px;
  margin-top: 16px;
}
.admin-tab {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elev);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--text);
  transition: transform .2s ease, box-shadow .2s ease;
}
.admin-tab:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.admin-tab-title { font-weight: 700; margin: 0; }
.admin-tab-desc { margin: 0; color: var(--muted); font-size: 13px; }

/* Notice admin page */
.notice-admin { padding: 20px; display: grid; gap: 20px; }
.notice-form { display: grid; gap: 12px; }
.notice-form-grid {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px 14px;
  align-items: center;
}
.notice-label { font-weight: 600; color: var(--text); font-size: 14px; }
.notice-form input,
.notice-form select,
.notice-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 14px;
}
.notice-pin {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
}
.notice-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.notice-hint { font-size: 13px; color: var(--muted); min-height: 18px; }
.notice-hint.ok { color: #1a7f37; }
.notice-hint.error { color: #b42318; }
.notice-editor {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
}
.notice-toolbar { display: flex; flex-wrap: wrap; gap: 6px; }
.toolbar-btn {
  border: 1px solid var(--border);
  background: var(--bg-elev);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
}
.notice-editor-body {
  min-height: 160px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  font-size: 14px;
  line-height: 1.6;
}
.notice-editor-body:empty::before {
  content: '상세 내용을 입력하세요.';
  color: var(--muted);
}
.notice-upload { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.notice-attachments { display: grid; gap: 8px; color: var(--muted); font-size: 13px; }
.notice-attachment-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
}
.notice-attachment-name { font-weight: 600; color: var(--text); }
.notice-attachment-size { color: var(--muted); font-size: 12px; }
.notice-readonly { color: var(--muted); font-size: 12px; }
.notice-locked { opacity: 0.7; }
.notice-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); }
.notice-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
.notice-table th,
.notice-table td { padding: 12px 10px; border-bottom: 1px solid var(--border); text-align: left; }
.notice-table th { font-size: 13px; color: var(--muted); font-weight: 600; background: var(--bg-muted); }
.notice-actions-inline { display: flex; gap: 6px; flex-wrap: wrap; }

@media (max-width: 720px) {
  .notice-form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .admin-tabs { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .admin-tabs { grid-template-columns: 1fr; }
}
.field-top-tight { margin-top: 4px; }
.inline-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-row .flex-1 { flex: 1; min-width: 120px; }
.inline-row .divider { align-self: center; opacity: 0.5; }
.grid-gap-8 { display: grid; gap: 8px; }
.textarea-lg { min-height: 220px; }
.modal-card.modal-md { max-width: 640px; }
.modal-card.modal-lg { max-width: 720px; }
.is-hidden { display: none; }
.ml-auto { margin-left: auto; }
.mr-8 { margin-right: 8px; }
.ml-8 { margin-left: 8px; }
.nav-sep { opacity: 0.55; }
.detail-meta { color: var(--muted); font-size: 14px; }
.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.note { color: var(--muted); font-size: 14px; }
.success { color: #16a34a; font-weight: 600; }
.error { color: #ef4444; font-weight: 600; }

/* Form polish */
input, select, textarea {
  font-family: inherit;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--ring);
}

/* Elevated surface utility */
.elevated {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { position: sticky; top: 0; background: rgba(255,255,255,0.9); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); z-index: 60; }
.header-inner { display: flex; align-items: center; gap: 16px; padding: 12px 0; }
.header-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.header-bottom { position: relative; border-top: 1px solid var(--border); padding: 8px 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }
.logo img { height: 46px; display: block; filter: none; }
.nav-toggle { display: none; border: 1px solid var(--border); background: var(--bg-elev); color: var(--text); padding: 8px 10px; border-radius: 10px; }
.site-nav { flex: 0 1 auto; margin: 0 auto; }
.site-nav ul { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; gap: 6px; justify-content: center; }
.site-nav a { text-decoration: none; color: var(--text); font-weight: 600; padding: 9px 16px; border-radius: 9999px; transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease; }
.site-nav a:hover { background: var(--bg-muted); box-shadow: inset 0 0 0 1px var(--border); transform: translateY(-1px); }
.site-nav a[aria-current="page"] { background: #fff; box-shadow: inset 0 0 0 1px var(--border), 0 8px 18px rgba(15,23,42,0.12); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.login-compact { padding: 6px 10px; font-size: 14px; border-radius: 9999px; }
.user-info { display: inline-flex; align-items: center; gap: 8px; }
.rank-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 9999px; font-size: 12px; font-weight: 700; }
.rank-bronze { background: #f4e1c1; color: #9a6a2f; }
.rank-silver { background: #e6e6e6; color: #6b7280; }
.rank-gold { background: #fff3b0; color: #a16207; }
.rank-platinum { background: #eef2ff; color: #1f2937; }
.rank-vip { background: #f0f7ff; color: #1f4ea9; }
.rank-master { background: #fff7e6; color: #8a5a00; border: 1px solid #e6d3a3; }
.rank-normal { background: #eef2f6; color: #334155; }

/* Header inline login form */
.nav-actions .login-form { display: inline-flex; align-items: center; gap: 8px; }
.nav-actions .login-form input { height: 32px; padding: 4px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; }
.nav-actions .login-form label { position: absolute; left: -9999px; }
.nav-actions .login-form .btn { padding: 6px 10px; font-size: 14px; border-radius: 10px; }
.login-btn { border-radius: 9999px; padding: 10px 16px; }

/* Login modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(255,252,245,0.45); backdrop-filter: blur(2px); z-index: 90; }
.modal { position: fixed; inset: 0; display: grid; place-items: center; z-index: 95; }
.modal-card { width: 92vw; max-width: 420px; max-height: 86vh; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,0.15); padding: 20px; display: flex; flex-direction: column; }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.modal-title { font-weight: 700; font-size: 18px; color: var(--text); font-family: var(--font-serif); }
.modal-close { border: none; background: transparent; font-size: 20px; line-height: 1; cursor: pointer; color: var(--muted); }
.modal-body { display: grid; gap: 10px; flex: 1 1 auto; overflow-y: auto; }
.modal-body label { font-size: 14px; color: var(--muted); }
.modal-body input { padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 14px; background: var(--bg-elev); color: var(--text); width: 100%; }
.modal-body select { padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 14px; background: var(--bg-elev); color: var(--text); width: 100%; }
.modal-body textarea { padding: 12px 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 14px; background: var(--bg-elev); color: var(--text); min-height: 160px; width: 100%; }
.modal-body input:focus, .modal-body select:focus, .modal-body textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(140,47,57,0.12); }
.input-check-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: center; }
.btn.btn-ghost { background: #fff; border: 1px solid var(--border); color: var(--text); }
.btn.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.input-hint { font-size: 12px; color: var(--muted); margin-top: -4px; min-height: 16px; }
.input-hint.ok { color: #2d8a4f; }
.input-hint.error { color: #c62828; }
.input-hint.pending { color: var(--muted); }
.capslock-hint.error { color: #b91c1c; font-weight: 700; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; border-top: 1px solid var(--border); padding-top: 8px; background: var(--bg-elev); }

/* Login modal refresh */
.auth-backdrop { background: rgba(15, 23, 42, 0.48); backdrop-filter: blur(6px); }
.auth-modal .modal-card.login-card { max-width: 920px; border-radius: 24px; border-color: rgba(255, 255, 255, 0.24); }
.premium-login-card { padding: 0; display: grid; grid-template-columns: 1.05fr 1fr; overflow: hidden; }
.premium-register-card { padding: 0; display: grid; grid-template-columns: 1.05fr 1fr; overflow: hidden; max-width: 980px; }
.login-hero {
  padding: 34px 30px;
  background:
    radial-gradient(560px 280px at 8% 12%, rgba(255,255,255,0.18), rgba(255,255,255,0)),
    linear-gradient(145deg, #2a0f16 0%, #511a27 50%, #7a2637 100%);
  color: #eef2ff;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  gap: 14px;
  align-content: center;
}
.login-badge { justify-self: start; padding: 5px 11px; border-radius: 9999px; background: rgba(255,255,255,0.18); color: #f8fafc; font-weight: 700; font-size: 11px; letter-spacing: 0.45px; }
.login-hero-title { margin: 0; font-size: 30px; font-weight: 700; font-family: var(--font-serif); color: #f8fafc; }
.login-hero-sub { margin: 0; color: rgba(226, 232, 240, 0.88); font-size: 14px; }
.login-points { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--text); font-size: 14px; }
.login-points li { position: relative; padding-left: 18px; color: rgba(241,245,249,0.92); }
.login-points li::before { content: "•"; position: absolute; left: 0; top: 0; color: #f59e0b; }
.login-panel {
  padding: 28px 26px 24px;
  display: grid;
  gap: 18px;
  background:
    radial-gradient(400px 180px at 90% -10%, rgba(140,47,57,0.1), rgba(140,47,57,0)),
    #ffffff;
}
.register-panel {
  max-height: 78vh;
  overflow-y: auto;
}
.login-panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.login-title { font-weight: 700; font-size: 22px; font-family: var(--font-serif); }
.login-subtitle { color: var(--muted); font-size: 14px; margin-top: 4px; }
.login-form { display: grid; gap: 12px; }
.login-label { font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: 0.04em; }
.login-input { position: relative; }
.login-input input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 13px;
  border: 1px solid #d8dfec;
  background: #f8fafc;
  color: var(--text);
  font-size: 15px;
}
.login-input input:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 4px rgba(59,130,246,0.14); background: #fff; }
.login-pw-wrap input { padding-right: 72px; }
.login-pw-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid #c9d6f5;
  background: #eff6ff;
  color: #1e40af;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  cursor: pointer;
}
.login-pw-toggle:hover { background: #dbeafe; }
.login-options { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.login-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.login-actions { display: flex; gap: 8px; justify-content: flex-end; }
.login-help { font-size: 12px; color: var(--muted); }
.link-btn { border: none; background: transparent; color: var(--accent); font-weight: 600; cursor: pointer; padding: 0; }
.link-btn:hover { text-decoration: underline; }
.login-msg {
  min-height: 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  padding: 0;
}
.login-msg.pending,
.login-msg.error,
.login-msg.ok {
  padding: 8px 10px;
  border: 1px solid transparent;
}
.login-msg.pending { background: #f8fafc; border-color: #dbeafe; color: #1d4ed8; }
.login-msg.error { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.login-msg.ok { background: #ecfdf5; border-color: #bbf7d0; color: #047857; }
.register-msg {
  min-height: 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}
.register-msg.pending,
.register-msg.error,
.register-msg.ok {
  border: 1px solid transparent;
  padding: 8px 10px;
}
.register-msg.pending { background: #f8fafc; border-color: #dbeafe; color: #1d4ed8; }
.register-msg.error { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.register-msg.ok { background: #ecfdf5; border-color: #bbf7d0; color: #047857; }

@media (max-width: 760px) {
  .premium-login-card { grid-template-columns: 1fr; }
  .premium-register-card { grid-template-columns: 1fr; }
  .login-hero { border-right: none; border-bottom: 1px solid var(--border); padding: 20px; }
  .login-panel { padding: 20px; }
  .login-hero-title { font-size: 24px; }
}

@media (min-width: 1024px) {
  .site-nav ul { flex-wrap: nowrap; }
  .site-nav a { white-space: nowrap; }
  .nav-actions { flex-wrap: nowrap; }
  .rank-badge, .login-compact { white-space: nowrap; }
}

/* Hero */
.hero { border-bottom: 1px solid var(--border); position: relative; --hero-anim-duration: 7.5s; }
.hero .swiper { width: 100%; height: 70vh; max-height: 760px; }
.hero .swiper-wrapper, .hero .swiper-slide { height: 100%; }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero .hero-text { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; height: 70vh; max-height: 760px; text-align: center; padding: 0 16px; font-family: var(--font-serif); color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.35); position: relative; z-index: 1; }
.hero .hero-text .line1 { font-weight: 700; font-size: calc(1.3 * clamp(28px, 5vw, 52px)); margin-bottom: 0; line-height: 1; }
.hero .hero-text .line2 { font-weight: 600; font-size: calc(1.3 * clamp(14px, 2.2vw, 20px)); opacity: 0.9; line-height: 1; margin-top: 20px; }
.hero-slide { background-size: 110%; background-position: center; background-repeat: no-repeat; height: 100%; position: relative; cursor: pointer; }
.hero .swiper-slide-active.hero-slide { animation: hero-kenburns var(--hero-anim-duration, 15s) ease-in-out forwards; }
@keyframes hero-kenburns { from { background-size: 110%; } to { background-size: 125%; } }
@media (prefers-reduced-motion: reduce) {
  .hero .swiper-slide-active.hero-slide { animation: none; }
}
.hero-slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.25)); }
.hero-1 { background-image: url('../img/hero01.jpg'); }
.hero-2 { background-image: url('../img/hero02.jpg'); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
.hero .swiper-button-prev, .hero .swiper-button-next { display: none; }
.hero .swiper-pagination-bullet { background: rgba(255,255,255,0.6); }
.hero .swiper-pagination-bullet-active { background: rgba(255,255,255,0.95); }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,247,230,0.28) 0%, rgba(250,246,239,0.22) 40%, rgba(250,246,239,0.12) 100%); pointer-events: none; }
.hero-content { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 0 16px; }
.hero-content .title { color: var(--text); font-size: clamp(26px, 4.4vw, 44px); font-weight: 700; margin: 0 0 10px; }
.hero-content .subtitle { color: var(--text); opacity: 0.82; font-size: clamp(14px, 2.2vw, 18px); margin: 0 0 18px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; }

/* Split section */
.split { padding: 40px 0; }
.split-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; align-items: stretch; }
.split-left, .split-right { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; background: var(--bg-elev); height: 460px; box-shadow: var(--shadow-sm); }
.split-left { overflow: hidden; }
.split-left h2, .split-right h2 { margin: 0 0 16px; font-size: 22px; }
.products-swiper { width: 100%; height: 100%; overflow: hidden; border-radius: 12px; }
.products-swiper { position: relative; }
.products-swiper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.0) 0%, rgba(0,0,0,0.25) 80%);
  pointer-events: none;
  opacity: 0.25;
}
.products-swiper img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; display: block; transform: scale(1.02); transition: transform .6s ease; }
.products-swiper .swiper-slide { position: relative; overflow: hidden; border-radius: 12px; }
.products-swiper .swiper-slide-active img { transform: scale(1.04); }
.product-slide {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.product-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease, filter .25s ease;
}
.product-slide-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  transition: opacity .2s ease;
  text-align: center;
}
.product-slide-title {
  font-weight: 700;
  color: #fff;
  font-size: 16px;
}
.product-slide-btn { pointer-events: none; }
.product-slide:hover img,
.product-slide:focus-visible img {
  filter: blur(2px);
  transform: scale(1.03);
}
.product-slide:hover .product-slide-overlay,
.product-slide:focus-visible .product-slide-overlay,
.product-slide:focus-within .product-slide-overlay {
  opacity: 1;
}
.product-card { position: relative; display: grid; height: 100%; }
.product-card .caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 8px 12px;
  font-size: 13px;
  color: #fff;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 9999px;
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}
.split-right { display: flex; flex-direction: column; overflow: hidden; }
.split-right-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.logo-ticker-section { padding: 14px 0 4px; }
.logo-ticker-title { margin-bottom: 8px; font-weight: 700; font-size: clamp(22px, 3.6vw, 30px); font-family: var(--font-serif); color: var(--text); }
.logo-ticker {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-muted);
  padding: 8px 0;
  overflow: hidden;
  margin-bottom: 12px;
}
.logo-track {
  display: flex;
  gap: 28px;
  align-items: center;
  width: max-content;
  flex-wrap: nowrap;
  animation: logo-ticker 18s linear infinite;
  padding: 0 16px;
}
.logo-track img {
  width: 140px;
  height: 72px;
  object-fit: contain;
  background: #fff;
  padding: 8px 10px;
  border-radius: 10px;
  filter: none;
  opacity: 1;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}
.logo-ticker:hover .logo-track { animation-play-state: paused; }
@keyframes logo-ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.btn { display: inline-block; background: transparent; color: var(--text); text-decoration: none; padding: 10px 14px; border-radius: 12px; font-weight: 500; border: 1px solid var(--border); transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease, border-color .2s ease, background .2s ease; white-space: nowrap; }
.btn:hover { opacity: 1; background: var(--bg-muted); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(1px); }
.btn-accent { background: linear-gradient(135deg, #8c2f39, #b24a55); color: var(--accent-contrast); border-color: transparent; box-shadow: 0 8px 20px rgba(140,47,57,0.25); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.to-top {
  position: fixed;
  right: 18px;
  bottom: 92px;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  display: inline-grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  transform: translateY(6px);
  z-index: 80;
}
.to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.quotes-list { display: block; }
.coupon-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.coupon-card { border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: var(--bg-elev); box-shadow: var(--shadow-sm); display: grid; gap: 6px; }
.coupon-card .coupon-title,
.coupon-card .coupon-desc,
.coupon-card .coupon-qty {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.coupon-title { font-weight: 700; }
.coupon-desc { color: var(--muted); font-size: 13px; }
.coupon-qty { font-size: 13px; font-weight: 700; color: var(--accent); }
@media (max-width: 640px) { .coupon-grid { grid-template-columns: 1fr; } }
.quote-card { border: 1px solid var(--border); border-radius: 14px; padding: 14px; background: var(--bg-elev); box-shadow: 0 8px 24px rgba(15,23,42,0.06); transition: transform .2s ease, box-shadow .2s ease; }
.quote-card-title,
.quote-card-meta,
.quote-card p {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.quote-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.quote-card-title { font-weight: 700; margin-bottom: 6px; }
.quote-card-meta { color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.loading { color: var(--muted); }
.split-right .quotes-list { flex: 1; overflow: auto; }
.split-right .quotes-list { min-height: 480px; }
/* Inline empty message for quotes */
.quotes-empty-inline { text-align: center; color: var(--muted); padding: 16px 12px; }

/* Timeline lists */
.timeline-list {
  position: relative;
  display: grid;
  gap: 16px;
  padding-left: 28px;
}
.timeline-list::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -22px;
  top: 12px;
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: #8c2f39;
  box-shadow: 0 0 0 4px rgba(140,47,57,0.12);
}
.timeline-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  background: var(--bg-elev);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 6px;
}
.timeline-row { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.timeline-date { color: var(--muted); font-size: 13px; }
.timeline-title { font-weight: 700; }
.timeline-meta { color: var(--muted); font-size: 13px; }
.timeline-summary { color: var(--text); font-size: 14px; }
.timeline-empty { text-align: center; color: var(--muted); padding: 18px 12px; border: 1px dashed var(--border); border-radius: 12px; background: var(--bg-muted); }

/* Admin timeline cards */
.admin-timeline .admin-card-list { display: grid; gap: 14px; }
.admin-timeline .timeline-list { padding-left: 28px; }
.admin-timeline .timeline-card { gap: 8px; }
.admin-card-title { font-weight: 700; font-size: 15px; }
.admin-card-meta { color: var(--muted); font-size: 13px; display: flex; gap: 10px; flex-wrap: wrap; }
.admin-card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.admin-card-actions .btn { padding: 6px 10px; }
.admin-card-row { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.admin-card-key { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.admin-card-value { font-weight: 600; }
.admin-card-pill { padding: 3px 8px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-muted); font-size: 12px; }

/* Notices timeline */
.notice-timeline .news-list {
  position: relative;
  display: grid;
  gap: 14px;
  padding-left: 28px;
}
.notice-timeline .news-list::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border);
}
.notice-item { position: relative; list-style: none; }
.notice-item::before {
  content: '';
  position: absolute;
  left: -22px;
  top: 16px;
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: #1f2937;
  box-shadow: 0 0 0 4px rgba(31,41,55,0.12);
}
.notice-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  background: var(--bg-elev);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 6px;
}
.notice-head { display: flex; gap: 8px; align-items: center; }
.notice-card .news-title { font-weight: 700; color: var(--text); text-decoration: none; }
.notice-card .news-title:hover { text-decoration: underline; }
.notice-card .news-summary { color: var(--muted); font-size: 14px; }
.notice-card .news-date { color: var(--muted); font-size: 12px; }
.notice-empty { border: 1px dashed var(--border); border-radius: 12px; background: var(--bg-muted); padding: 16px; text-align: center; color: var(--muted); }

@media (max-width: 700px) {
  .timeline-list { padding-left: 18px; gap: 12px; }
  .timeline-list::before { left: 6px; }
  .timeline-item::before { left: -18px; top: 10px; }
  .timeline-card { padding: 12px 12px; }
  .timeline-row { flex-direction: column; align-items: flex-start; }
  .timeline-summary { font-size: 13px; }

  .notice-timeline .news-list { padding-left: 18px; gap: 12px; }
  .notice-timeline .news-list::before { left: 6px; }
  .notice-item::before { left: -18px; top: 12px; }
  .notice-card { padding: 12px; }
  .notice-card .news-summary {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}


/* Quotes table styles */
.quotes-table { width: 100%; border-collapse: collapse; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.quotes-table thead th { text-align: left; font-weight: 600; color: var(--muted); background: var(--bg-muted); }
.quotes-table { table-layout: fixed; }
.quotes-table th, .quotes-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quotes-table tbody tr:hover { background: var(--bg-muted); }
.quotes-admin-table { box-shadow: var(--shadow-sm); border-radius: 12px; }
.status-badge { display: inline-block; padding: 4px 8px; border-radius: 9999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.status-pending { background: rgba(140,47,57,0.12); color: #8c2f39; border: 1px solid rgba(140,47,57,0.25); }
.status-done { background: rgba(34,197,94,0.12); color: #166534; border: 1px solid rgba(34,197,94,0.25); }

/* Floating CTA */
.floating-cta { position: fixed; right: 24px; bottom: 24px; background: var(--accent); color: var(--accent-contrast); text-decoration: none; padding: 14px 18px; border-radius: 9999px; box-shadow: 0 10px 30px rgba(177, 18, 59, 0.35); font-weight: 700; z-index: 80; letter-spacing: 0.3px; }
.floating-cta:hover { filter: brightness(1.05); box-shadow: 0 16px 36px rgba(177, 18, 59, 0.35); }
.floating-cta:active { transform: translateY(1px); }
.floating-cta.secondary { bottom: 86px; background: #1f1f1f; box-shadow: 0 10px 30px rgba(0,0,0,0.25); }
.floating-cta.secondary:hover { filter: brightness(1.08); box-shadow: 0 16px 36px rgba(0,0,0,0.25); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  background: var(--bg-elev);
  color: var(--text);
  font-family: var(--font-sans);
}
.site-footer .muted { color: var(--muted); font-size: 13.5px; }

.footer-neo {
  display: grid;
  grid-template-columns: minmax(0,1.3fr) minmax(0,1fr) minmax(0,0.9fr);
  gap: 20px;
  padding: 22px 0 20px;
  align-items: start;
  font-size: 13.5px;
}
.footer-neo__brand,
.footer-neo__support,
.footer-neo__showcase {
  display: grid;
  gap: 14px;
}
.footer-brand-card {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-muted);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 8px;
}
.footer-info-block { display: grid; gap: 6px; }
.footer-label {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #2a2622;
  text-transform: uppercase;
}
.footer-label.small { font-size: 12px; }
.bullet-list, .info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 13.5px;
  color: var(--text);
}
.bullet-list li { position: relative; padding-left: 14px; line-height: 1.5; }
.bullet-list li::before { content: "•"; position: absolute; left: 0; top: 0; color: var(--accent); }
.info-list li {
  position: relative;
  padding-left: 14px;
  line-height: 1.5;
}
.info-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(140,47,57,0.5);
}

/* Customer Center buttons */
.cc-buttons { display: grid; gap: 8px; }
.cc-btn { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; text-decoration: none; color: var(--text); font-weight: 600; box-shadow: 0 6px 16px rgba(0,0,0,0.04); transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.cc-btn:hover { background: var(--bg-muted); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cc-icon { width: 32px; height: 32px; border-radius: 50%; flex: none; }
.cc-btn.kakao .cc-icon {
  background: #ffd400;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,0.08);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><path fill='%233d2b00' d='M32 10c-13.8 0-25 8.6-25 19.2 0 7.1 5.1 13.4 12.7 16.8l-2.6 9.7a1 1 0 0 0 1.5 1.1l11.6-7.7c.6.1 1.2.1 1.8.1 13.8 0 25-8.6 25-19.2S45.8 10 32 10z'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
}
.cc-btn.naver .cc-icon {
  background: #03c75a;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><path fill='white' d='M15 12h12l10 16V12h12v40H37L27 36v16H15V12z'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
}
.cc-hours { font-size: 13.5px; display: grid; gap: 4px; line-height: 1.5; }

/* Only section image */
.only-photo { margin: 0; }
.only-photo img { width: 100%; height: 160px; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); display: block; }

.social { margin-top: 4px; }
.social-list { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.social-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-block;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  box-shadow: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.social-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(15,23,42,0.12); }
.social-btn.ig {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><path fill='%238c2f39' d='M32 20c-6.6 0-12 5.4-12 12s5.4 12 12 12 12-5.4 12-12-5.4-12-12-12zm0 19a7 7 0 1 1 0-14 7 7 0 0 1 0 14zm15.5-19.5a3 3 0 1 1-6 0 3 3 0 0 1 6 0z'/><rect x='14' y='14' width='36' height='36' rx='10' ry='10' fill='none' stroke='%238c2f39' stroke-width='4'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
}
.social-btn.fb {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><path fill='%238c2f39' d='M39 21h6V12h-6c-6.6 0-12 5.4-12 12v6h-7v9h7v13h9V39h8l2-9H36v-6c0-1.7 1.3-3 3-3z'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
}
.social-btn.blog {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><path fill='%238c2f39' d='M18 18h28a4 4 0 0 1 4 4v20a4 4 0 0 1-4 4H18a4 4 0 0 1-4-4V22a4 4 0 0 1 4-4zm4 10h20v4H22v-4zm0 8h14v4H22v-4z'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
}

.footer-divider { height: 1px; background: var(--border); }
.footer-bottom { padding: 14px 0 20px; }
.footer-bottom-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: center;
  justify-items: center;
}
.footer-brand { display: grid; gap: 8px; }
.footer-logo { height: 34px; width: auto; display: block; }
.footer-desc { margin: 0; color: var(--muted); font-size: 13.5px; }
.footer-meta { display: grid; gap: 8px; justify-items: center; }
.footer-links { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; color: var(--muted); font-size: 13.5px; }
.footer-link { text-decoration: none; font-weight: 600; color: var(--text); }
.footer-link:hover { color: var(--accent); }
.footer-sep { color: var(--border); }
.footer-copy { grid-column: 1 / -1; color: var(--muted); font-size: 12px; text-align: center; padding-top: 4px; }

@media (max-width: 1024px) {
  .footer-neo { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .footer-neo { grid-template-columns: 1fr; }
  .footer-copy { text-align: center; }
}

@media (max-width: 1024px) {
  .footer-bottom-inner { grid-template-columns: 1fr; justify-items: start; }
  .footer-meta { justify-items: start; }
  .footer-links { justify-content: flex-start; }
  .footer-badges { justify-content: flex-start; }
}
.company-hero { background: url('../img/hero02.jpg') center/cover no-repeat; position: relative; border-bottom: 1px solid var(--border); }
.company-hero::before { content:""; position: absolute; inset: 0; background: rgba(60,60,60,0.45); }
.company-hero-inner { position: relative; z-index: 1; padding: 26px 0 16px; }
.company-title { color: #fff; font-family: var(--font-serif); font-weight: 700; font-size: clamp(28px, 4.4vw, 44px); margin: 0; text-align: left; letter-spacing: 1px; }
.company-tabs { margin-top: 12px; }
.company-tabs ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; }
.company-tabs a { display: block; padding: 10px 18px; color: #fff; text-decoration: none; font-weight: 600; border-right: 1px solid rgba(255,255,255,0.25); background: rgba(40,40,40,0.28); }
.company-tabs li:first-child a { border-left: 1px solid rgba(255,255,255,0.25); }
.company-tabs a:hover { background: rgba(40,40,40,0.38); }
.company-tabs a.active { background: rgba(255,255,255,0.18); }

@media (max-width: 640px) {
  .company-tabs ul { flex-wrap: wrap; gap: 6px; }
  .company-tabs a {
    padding: 8px 12px;
    font-size: 13px;
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 9999px;
  }
  .company-tabs a.active {
    background: rgba(255,255,255,0.32);
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  }
}

.company-content { padding: 24px 0; }
.company-section { margin: 18px 0 24px; }
.two-col { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,0.9fr); gap: 28px; align-items: center; }
.two-col .col.text { color: var(--text); display: flex; flex-direction: column; justify-content: center; }
.two-col .col.media { display: grid; gap: 12px; align-content: start; }
.ceo-photo img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border); background: #fff; }
.ceo-photo.large img { aspect-ratio: 1/1; object-fit: cover; }
.ceo-tagline { color: var(--text); }
.ceo-tagline .tagline-title { font-weight: 700; font-size: 22px; color: #2f4c8c; margin-bottom: 6px; }
.ceo-tagline .tagline-sub { color: var(--muted); margin-bottom: 6px; }
.ceo-tagline .ceo-sign { color: var(--muted); }

.history-intro { margin: 24px 0 18px; max-width: 780px; }
.history-title { font-size: clamp(32px, 5vw, 42px); font-weight: 700; margin: 0; letter-spacing: 0.2px; }
.history-sub { color: var(--text); margin: 8px 0 14px; font-weight: 700; font-size: clamp(18px, 2.6vw, 26px); }
.history-desc { color: var(--muted); display: grid; gap: 6px; font-size: 14px; line-height: 1.8; }
.history-desc p { margin: 0; }

.timeline-section { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.timeline-range { color: var(--muted); text-align: left; font-weight: 700; display: grid; gap: 2px; align-content: start; }
.timeline-range .tilde { color: var(--muted); font-weight: 400; }
.timeline-items { display: block; }
.timeline-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.timeline-list .year { color: var(--muted); font-weight: 700; margin-right: 8px; }
.history-photo figure { margin: 18px 0; }
.history-photo img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border); display: block; }

.awards-title { text-align: center; font-size: 28px; font-weight: 700; margin: 10px 0 18px; position: relative; }
.awards-title::after { content: ""; display: block; width: 36px; height: 2px; background: var(--border); margin: 10px auto 0; }
.awards-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; align-items: start; }
.award-item { text-align: center; display: grid; gap: 8px; }
.award-media {
  width: 100%;
  min-height: 210px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  display: grid;
  place-items: center;
  padding: 12px;
}
.award-media img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  width: auto;
  object-fit: contain;
  display: block;
}
.award-item figcaption {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  min-height: calc(1.5em * 2);
}
.award-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  border: 1px dashed var(--border);
  background: var(--bg-muted);
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: 13px;
}

/* Organization Chart */
.company-content { padding: 32px 0 48px; }
.org-title { text-align: center; font-weight: 700; font-size: 28px; letter-spacing: 0.06em; margin: 0; }
.org-sub { text-align: center; margin-top: 8px; color: var(--muted); font-weight: 500; }
.org-figure { max-width: 1000px; margin: 32px auto 0; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 12px; padding: 12px; overflow: hidden; }
.org-figure img { width: 100%; height: auto; display: block; mix-blend-mode: normal; filter: sepia(0.06) brightness(1.01); box-shadow: 0 2px 12px rgba(0,0,0,.06); }

/* Location (오시는길) */
.location-tiles { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; align-items: stretch; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--bg-elev); }
.location-tiles .info-card { display: grid; place-items: center; text-align: center; padding: 48px 20px; min-height: 240px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.location-tiles .info-card:nth-child(4n) { border-right: none; }
/* 타일 배경 교차 */
.location-tiles .info-card:nth-child(1),
.location-tiles .info-card:nth-child(3) { background: var(--bg-elev); }
.location-tiles .info-card:nth-child(2),
.location-tiles .info-card:nth-child(4) { background: var(--bg-muted); }
.location-tiles .info-card h3 { margin: 12px 0 8px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; }
.location-tiles .info-card .muted { color: var(--muted); line-height: 1.8; }
.info-icon { width: 88px; height: 88px; border-radius: 50%; background: #363c43; color: #fff; display: grid; place-items: center; box-shadow: inset 0 0 0 6px rgba(255,255,255,0.08), 0 6px 16px rgba(0,0,0,0.08); }
.map-panel { margin-top: 16px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; position: relative; }
.map-embed { width: 100%; height: 560px; border: 0; display: block; }

@media (max-width: 1024px) {
  .location-tiles { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .location-tiles .info-card:nth-child(2n) { border-right: none; }
  .map-embed { height: 520px; }
}

@media (max-width: 640px) {
  .location-tiles { grid-template-columns: 1fr; }
  .location-tiles .info-card { border-right: none; }
  .map-embed { height: 420px; }
}

@media (max-width: 1024px) {
  .two-col { grid-template-columns: 1fr; align-items: start; }
  .timeline-section { grid-template-columns: 1fr; }
  .awards-grid { grid-template-columns: 1fr; }
}

/* COMPANY dropdown popover (anchored under nav item) */
.menu-popover { position: fixed; z-index: 80; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 28px rgba(15,23,42,0.16); padding: 6px; min-width: 220px; }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list li { border-bottom: 1px solid var(--border); }
.menu-list li:last-child { border-bottom: none; }
.menu-list a { display: block; padding: 12px 18px; color: var(--text); text-decoration: none; font-weight: 600; }
.menu-list a:hover { background: var(--bg-muted); color: var(--text); }

@media (max-width: 768px) {
  .menu-popover { position: fixed; left: 12px !important; right: 12px; top: auto !important; margin-top: 6px; }
}


/* Board (문의 게시판) */
.board { margin-top: 12px; display: grid; gap: 12px; position: relative; }
.board-toolbar { display: none; }
.board-toolbar .sep { color: var(--border); margin: 0 8px; }
.board { position: relative; }
.board-list { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-elev); overflow: hidden; min-height: 480px; padding: 8px 12px; box-shadow: var(--shadow-sm); }
.fab-write {
  position: relative;
  justify-self: end;
  margin-top: 4px;
  z-index: 5;
}
.board-table { width: 100%; border-collapse: collapse; }
.board-table th, .board-table td { padding: 14px 12px; border-bottom: 1px solid var(--border); font-size: 14px; text-align: center; }
.board-table thead th { text-align: center; font-weight: 600; color: var(--muted); background: var(--bg-muted); }
.board-table thead th:nth-child(1) { width: 10%; }  /* 번호 */
.board-table thead th:nth-child(2) { width: 42%; }  /* 제목 */
.board-table thead th:nth-child(3) { width: 18%; }  /* 작성자 */
.board-table thead th:nth-child(4) { width: 18%; }  /* 작성일 */
.board-table thead th:nth-child(5) { width: 14%; }  /* 처리 */
.board-table tbody tr:hover { background: var(--bg-muted); cursor: pointer; }
.board-lock { display: inline-block; padding: 2px 6px; border: 1px solid var(--border); border-radius: 9999px; font-size: 12px; color: var(--muted); margin-left: 6px; }
.board-pager { display: flex; gap: 8px; justify-content: center; padding: 10px; border-top: 1px solid var(--border); background: var(--bg-elev); }
.page-btn { padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; background: #fff; cursor: pointer; }
.page-btn.active { background: var(--accent); color: var(--accent-contrast); border-color: transparent; font-weight: 700; box-shadow: 0 6px 16px rgba(140,47,57,0.18); }
.empty-note { padding: 12px; color: var(--muted); text-align: center; }
/* Vertical separators between columns */
.board-table th:not(:last-child), .board-table td:not(:last-child) { border-right: 1px solid var(--border); }
/* Board status badge colors (pending: gray, done: green) */
.board-table .status-badge { display: inline-block; padding: 4px 8px; border-radius: 9999px; font-size: 12px; font-weight: 700; }
.board-table .status-pending { background: rgba(107,114,128,0.18); color: #374151; border: 1px solid rgba(107,114,128,0.28); }
.board-table .status-done { background: rgba(34,197,94,0.12); color: #166534; border: 1px solid rgba(34,197,94,0.25); }
/* Inline empty message in table */
.empty-inline { text-align: center; color: var(--muted); padding: 20px 12px; }

/* Secret checkbox label on one line */
.secret-row { display: inline-flex; align-items: center; justify-content: flex-start; gap: 4px; width: max-content; margin-top: 8px; }
.modal-body .secret-row { justify-self: start; }
.secret-row .secret-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 0 0 auto; margin-left: 0; }
.secret-row input[type="checkbox"] { margin: 0; }

/* Responsive */
@media (max-width: 1024px) {
  .split-grid { grid-template-columns: 1fr; }
  .split-left, .split-right { height: auto; }
  .products-swiper { height: 360px; }
  .footer-sections { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-col.only { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; }
  .site-nav.open { display: block; position: fixed; top: 80px; left: 0; right: 0; background: var(--bg-elev); border-top: 1px solid var(--border); box-shadow: 0 8px 24px rgba(0,0,0,0.08); padding: 12px 16px; z-index: 70; }
  .site-nav ul { flex-direction: column; gap: 8px; padding: 4px 0; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(255,252,245,0.35); backdrop-filter: blur(2px); z-index: 65; }
  .header-bottom { justify-content: space-between; }
  .header-bottom .nav-toggle { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); }
  .hero .swiper { height: 48vh; }
  .products-swiper { height: 320px; }
  .footer-sections { grid-template-columns: 1fr; }
  .split-left, .split-right { padding: 18px; }
  .split-right .quotes-list { min-height: 320px; }
  .floating-cta { right: 16px; bottom: 16px; padding: 12px 14px; }
  .floating-cta.secondary { bottom: 66px; }
  .board-list.admin-fixed { overflow-x: auto; }
  .board-list.admin-fixed .table { min-width: 640px; }
}

@media (max-width: 640px) {
  .hero .swiper { height: 42vh; }
  .hero .hero-text .line1 { font-size: clamp(24px, 6vw, 36px); }
  .hero .hero-text .line2 { font-size: clamp(13px, 3.2vw, 16px); margin-top: 12px; }
  .split { padding: 28px 0; }
  .products-swiper { height: 260px; }
  .footer-bottom { font-size: 12px; }
}

/* 메인 광고/팝업 스타일 추가 */
.main-ad-popup {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.35);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.main-ad-content {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  padding: 32px 28px;
  max-width: 340px;
  text-align: center;
  font-size: 17px;
}
.main-ad-content strong {
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 10px;
  display: block;
}
.main-ad-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  justify-content: center;
}
.main-ad-actions button {
  padding: 8px 16px;
  border-radius: 10px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}
.main-ad-actions button:last-child {
  background: var(--muted);
  color: #333;
}
