:root {
  --bg: #fff8f0;  
  --bg-soft: #f3efe6;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-2: rgba(255, 252, 246, 0.96);
  --line: rgba(120, 98, 72, 0.12);
  --text: #2f2a24;
  --muted: #766a5d;
  --primary: #7c3aed;
  --primary-2: #22c55e;
  --accent: #38bdf8;
  --warning: #f59e0b;
  --shadow: 0 20px 50px rgba(60, 40, 20, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.bg-grid,
.bg-orb {
  display: none;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(255, 248, 240, 0.9);
  border-bottom: 1px solid rgba(120, 98, 72, 0.1);
}

.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: var(--shadow);
}

.brand-text {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.header-actions,
nav {
  display: flex;
  gap: 10px;
  align-items: center;
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

.small-btn {
  min-width: 82px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(120, 98, 72, 0.1);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  cursor: pointer;
}

.small-btn.danger {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
  color: #b91c1c;
}

.hero {
  padding: 72px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
}

.hero-copy h1 {
  margin: 18px 0 14px;
  font-size: clamp(2.2rem, 4vw, 4.35rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 840px;
  color: var(--text);
}

.hero-copy p,
.hero-text,
.result-hero p,
.info-card p,
.content-card p,
.content-card li,
.point-card span,
.metric-card span,
.meta,
.blog-meta,
.post-excerpt,
.blog-excerpt,
.sidebar-post-meta,
.footer-inner p {
  color: var(--muted);
}

.hero-copy p {
  margin: 0;
  font-size: 1.07rem;
  line-height: 1.8;
  max-width: 740px;
}

.badge,
.dimension-chip,
.type-badge,
.mini-label,
.blog-category {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  color: #6d28d9;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.12);
}

.hero-cta,
.poster-actions,
.share-actions,
.quiz-actions,
.hero-actions,
.form-actions,
.blog-tags,
.blog-pagination,
.admin-post-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-cta {
  margin-top: 28px;
}

.primary-btn,
.ghost-btn,
.share-btn,
.read-more,
.btn,
.page-btn,
.icon-btn {
  border: 0;
  cursor: pointer;
  font: inherit;
  border-radius: 14px;
  transition: 0.22s ease;
  text-decoration: none;
}

.primary-btn,
.read-more,
.btn {
  color: #fff;
  padding: 14px 22px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), #9333ea 45%, var(--accent));
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.2);
}

.primary-btn:hover,
.read-more:hover,
.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.ghost-btn,
.share-btn,
.page-btn,
.icon-btn {
  color: var(--text);
  padding: 12px 16px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(120, 98, 72, 0.1);
}

.ghost-btn:hover,
.share-btn:hover,
.page-btn:hover,
.icon-btn:hover {
  background: rgba(255, 255, 255, 1);
}

.hero-points {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.point-card,
.info-card,
.metric-card,
.content-card,
.poster-panel,
.hero-card,
.question-card,
.post-card,
.blog-card,
.blog-detail-card,
.sidebar-card,
.blog-modal-panel,
.admin-table,
.admin-post-item,
.empty-state {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.point-card,
.info-card,
.metric-card,
.content-card,
.poster-panel,
.hero-card,
.question-card,
.blog-detail-card,
.sidebar-card {
  padding: 24px;
}

.point-card strong,
.metric-card strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 8px;
  color: var(--text);
}

.hero-card {
  padding: 24px;
}

.hero-stat-label {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-stat-list {
  display: grid;
  gap: 12px;
}

.hero-stat-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(120, 98, 72, 0.08);
}

.hero-stat-list b {
  font-size: 1rem;
  color: var(--text);
}

.hero-stat-list span {
  color: var(--muted);
  text-align: right;
  font-size: 0.92rem;
}

.info-section,
.mbti-intro {
  padding: 18px 0 26px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.info-card h2,
.info-card h3,
.content-card h3,
.poster-panel h3,
.sidebar-card h3,
.section-head h2 {
  margin-top: 0;
  color: var(--text);
}

.info-card h2 {
  font-size: 22px;
}

.info-card h3 {
  font-size: 1.06rem;
  margin-bottom: 10px;
}

.quiz-section {
  padding: 30px 0 60px;
}

.quiz-shell {
  max-width: 900px;
}

.quiz-topbar {
  margin-bottom: 18px;
}

.question-count {
  margin-top: 8px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}

.progress-track {
  margin-top: 16px;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(120, 98, 72, 0.12);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.25s ease;
}

.question-text {
  margin: 18px 0 22px;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.45;
  color: var(--text);
}

.options-grid {
  display: grid;
  gap: 14px;
}

.option-btn {
  width: 100%;
  text-align: left;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(120, 98, 72, 0.1);
  color: var(--text);
  background: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  font: inherit;
  line-height: 1.65;
  transition: 0.18s ease;
}

.option-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(124, 58, 237, 0.35);
  background: rgba(124, 58, 237, 0.06);
}

.quiz-actions {
  margin-top: 16px;
  justify-content: space-between;
}

.result-section {
  padding: 26px 0 72px;
}

.result-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
}

.result-hero,
.metric-grid,
.dual-grid {
  margin-bottom: 18px;
}

.result-hero {
  padding: 26px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(56, 189, 248, 0.06)), rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(120, 98, 72, 0.1);
}

.result-hero h2 {
  margin: 14px 0 12px;
  font-size: clamp(2.3rem, 4vw, 4rem);
  line-height: 1;
  color: var(--text);
}

.metric-grid,
.dual-grid {
  display: grid;
  gap: 14px;
}

.metric-grid {
  grid-template-columns: repeat(2, 1fr);
}

.dual-grid {
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.content-card ul {
  margin: 0;
  padding-left: 20px;
}

.poster-panel {
  position: sticky;
  top: 96px;
}

.poster-panel p {
  margin: 0 0 16px;
  line-height: 1.7;
}

#posterCanvas {
  width: 100%;
  border-radius: 20px;
  background: #fffaf2;
  border: 1px solid rgba(120, 98, 72, 0.1);
  display: block;
  margin-bottom: 16px;
}

.site-footer {
  padding: 24px 0 30px;
  border-top: 1px solid rgba(120, 98, 72, 0.08);
  margin-top: 40px;
}

.footer-inner {
  text-align: center;
}

.footer-inner p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.8;
}

.blog-page,
.single-post,
.auth-box,
.editor-page,
.admin-table-wrap,
.admin-topbar,
.blog-section {
  padding: 40px 0;
}

.blog-section {
  background: transparent;
  color: var(--text);
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 340px;
  gap: 32px;
  align-items: start;
}

.blog-toolbar,
.blog-filter,
.admin-form {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 20px 0 30px;
}

.blog-toolbar input,
.blog-toolbar select,
.blog-filter input,
.blog-filter select,
.blog-filter button,
.blog-form input,
.blog-form select,
.blog-form textarea,
.admin-form input,
.admin-form textarea,
.admin-form select,
.admin-form button {
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(120, 98, 72, 0.12);
  color: var(--text);
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 15px;
  outline: none;
  box-sizing: border-box;
}

.blog-toolbar input {
  flex: 1;
  min-width: 220px;
}

.blog-toolbar select {
  width: auto;
  min-width: 190px;
}

.post-grid,
.blog-grid,
.poster-actions,
.sidebar-list,
.admin-post-list {
  display: grid;
  gap: 24px;
}

.post-grid,
.blog-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.post-card,
.blog-card {
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover,
.post-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 20px 50px rgba(60, 40, 20, 0.08);
}

.post-card img,
.single-cover,
.blog-card img,
.blog-detail-image,
.featured-card img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.blog-card img {
  height: 190px;
}

.blog-detail-image {
  max-height: 420px;
  border-radius: 18px;
  margin: 20px 0;
}

.featured-card img {
  height: 180px;
  border-radius: 16px;
  margin-bottom: 12px;
}

.post-card-body,
.blog-card-body {
  padding: 20px;
}

.post-card h2 a,
.blog-card h3,
.blog-detail-card h3,
.sidebar-post-title,
.featured-card h4 {
  color: var(--text);
  text-decoration: none;
}

.blog-card h3 {
  font-size: 20px;
  margin: 0 0 10px;
  line-height: 1.4;
}

.blog-detail-card h3 {
  font-size: 34px;
  margin: 12px 0;
  line-height: 1.3;
}

.blog-content,
.post-content {
  color: var(--text);
  line-height: 1.9;
  font-size: 16px;
}

.blog-content p,
.post-content p {
  margin-bottom: 18px;
}

.blog-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--text);
  font-size: 13px;
  border: 1px solid rgba(120, 98, 72, 0.08);
  cursor: pointer;
}

.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-list {
  gap: 14px;
}

.sidebar-post {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(120, 98, 72, 0.08);
  cursor: pointer;
}

.sidebar-post:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.blog-modal {
  position: fixed;
  inset: 0;
  background: rgba(60, 40, 20, 0.16);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  z-index: 9999;
}

.blog-modal-panel {
  width: min(1100px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 24px;
}

.blog-modal-header,
.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.blog-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.blog-form textarea {
  resize: vertical;
}

.admin-post-list-wrap {
  margin-top: 30px;
}

.admin-post-list {
  gap: 12px;
  margin-top: 16px;
}

.admin-post-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
}

.admin-post-info h5 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--text);
}

.admin-post-info p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
}

.admin-table th,
.admin-table td {
  padding: 14px;
  border-bottom: 1px solid rgba(120, 98, 72, 0.08);
  text-align: left;
  color: var(--text);
}

.hero-section {
  padding: 48px 0 24px;
}

.hero-box,
.mbti-hero .hero-box {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(56, 189, 248, 0.05)), rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(120, 98, 72, 0.1);
  border-radius: 24px;
  padding: 36px;
}

.hero-badge,
.section-kicker {
  color: #7c3aed;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 12px;
  margin: 0 0 10px;
}

.hero-box h1 {
  margin: 0 0 12px;
  font-size: 40px;
  line-height: 1.1;
  color: var(--text);
}

.hero-search {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 12px;
  margin-top: 24px;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  border: 1px solid rgba(120, 98, 72, 0.1);
}

.home-latest-posts {
  padding: 34px 0 20px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 22px;
}

.text-link {
  color: #7c3aed;
  text-decoration: none;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 28px;
}

.empty-state h3 {
  margin-top: 0;
  color: var(--text);
}

.auth-box {
  max-width: 500px;
}

.error {
  color: #dc2626;
}

.hidden {
  display: none !important;
}

@media (max-width: 1024px) {
  .hero-grid,
  .result-grid,
  .dual-grid,
  .hero-points,
  .blog-layout,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .poster-panel {
    position: static;
  }
}

@media (max-width: 768px) {
  .hero-box h1 {
    font-size: 30px;
  }

  .hero-search {
    grid-template-columns: 1fr;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .header-inner {
    height: auto;
    padding: 14px 0;
    gap: 12px;
    flex-direction: column;
    align-items: flex-start;
  }

  .question-card,
  .content-card,
  .poster-panel,
  .hero-card,
  .info-card,
  .hero-box,
  .blog-detail-card,
  .sidebar-card {
    padding: 20px;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-copy h1 {
    font-size: 2.2rem;
  }

  .question-text {
    font-size: 1.3rem;
  }
}
.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  flex-wrap: wrap;
}

.post-share-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.share-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 14px;
  color: #fff;
  transition: all 0.2s ease;
}

.share-icon:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.share-icon.facebook {
  background: #1877f2;
}

.share-icon.x {
  background: #111111;
}

.share-icon.reddit {
  background: #ff4500;
}

.share-icon.linkedin {
  background: #0a66c2;
}

.share-icon.pinterest {
  background: #e60023;
}
.post-detail-share {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.post-detail-share-label {
  font-size: 14px;
  color: #6b7280;
  margin-right: 4px;
}

.share-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 14px;
  color: #fff;
  transition: all 0.2s ease;
}

.share-icon:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.share-icon.facebook {
  background: #1877f2;
}

.share-icon.x {
  background: #111111;
}

.share-icon.reddit {
  background: #ff4500;
}

.share-icon.linkedin {
  background: #0a66c2;
}

.share-icon.pinterest {
  background: #e60023;
}
.post-detail-share {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.post-detail-share-label {
  font-size: 14px;
  color: #6b7280;
  margin-right: 4px;
}

.share-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 14px;
  color: #fff;
  transition: all 0.2s ease;
}

.share-icon:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.share-icon.facebook {
  background: #1877f2;
}

.share-icon.x {
  background: #111111;
}

.share-icon.reddit {
  background: #ff4500;
}

.share-icon.linkedin {
  background: #0a66c2;
}

.share-icon.pinterest {
  background: #e60023;
}
.random-posts-section {
  margin-top: 28px;
  padding: 20px 24px;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  background: #fafafa;
}

.random-posts-title {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 700;
  color: #222;
  line-height: 1.4;
}

.random-posts-list {
  margin: 0;
  padding-left: 20px;
}

.random-posts-list li {
  margin-bottom: 10px;
}

.random-posts-list li:last-child {
  margin-bottom: 0;
}

.random-posts-list a {
  color: #222;
  text-decoration: none;
  font-weight: 500;
  line-height: 1.7;
}

.random-posts-list a:hover {
  color: #6b46ff;
  text-decoration: underline;
}
.random-posts-section {
  margin-top: 28px;
  padding: 20px 24px;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  background: #fafafa;
}

.random-posts-title {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 700;
  color: #222;
  line-height: 1.4;
}

.random-posts-list {
  margin: 0;
  padding-left: 20px;
}

.random-posts-list li {
  margin-bottom: 10px;
}

.random-posts-list li:last-child {
  margin-bottom: 0;
}

.random-posts-list a {
  color: #222;
  text-decoration: none;
  font-weight: 500;
  line-height: 1.7;
}

.random-posts-list a:hover {
  color: #6b46ff;
  text-decoration: underline;
}
.site-footer {
  margin-top: 40px;
  padding: 24px 0;
  border-top: 1px solid #e8e8e8;
  background: #fafafa;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-links a {
  color: #222;
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  color: #6b46ff;
  text-decoration: underline;
}

.page-section {
  max-width: 800px;
  margin: 40px auto;
  line-height: 1.8;
}

.page-section h1 {
  margin-bottom: 20px;
  font-size: 32px;
}

.page-section h2 {
  margin-top: 24px;
  margin-bottom: 10px;
  font-size: 22px;
}
.instant-messenger-ad {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 240px;
  min-height: 210px;
  z-index: 9999;
}

.instant-messenger-ad iframe,
.instant-messenger-ad img,
.instant-messenger-ad div,
.instant-messenger-ad a {
  max-width: 100%;
}

@media (max-width: 768px) {
  .instant-messenger-ad {
    right: 10px;
    bottom: 10px;
    width: 180px;
    min-height: auto;
  }
}
.global-footer-ad{
  width:100%;
  display:flex;
  justify-content:center;
  align-items:center;
  text-align:center;
  margin:30px 0 20px;
}
.global-footer-ad a{
  display:inline-block;
}
.global-footer-ad img{
  display:block;
  max-width:100%;
  height:auto;
  margin:0 auto;
}