/*!
 * Dayi Theme — Main Stylesheet
 * Version 2.0.0 — Redesigned with Taste-Skill (soft + redesign)
 *
 * Design Language: Editorial Luxury / Soft Structuralism
 * - Warm cream palette, single amber accent
 * - Premium typography (Geist + PingFang SC)
 * - Double-Bezel card architecture
 * - Spring-physics motion
 */

/* ========== CSS Variables ========== */
:root {
  /* Layout */
  --max-width: 1280px;

  /* Accent — warm amber (single accent, no AI purple/blue) */
  --theme-color: #b45309;
  --theme-light: #d97706;
  --theme-dark: #92400e;
  --theme-shadow: rgba(180, 83, 9, 0.18);

  /* Semantic — desaturated, warm-toned */
  --red: #c27878;
  --green: #6da889;
  --yellow: #c4a153;
  --orange: #bf8658;
  --pink: #bb7b84;
  --cyan: #5f9999;

  /* Text — warm espresso hierarchy */
  --key-color: #2d2418;
  --main-color: #5c4f3f;
  --muted-color: #9b8c7c;
  --muted-2-color: #d4cbc0;
  --muted-3-color: #ebe4db;

  /* Backgrounds — editorial warm cream */
  --body-bg: #faf7f2;
  --main-bg: #fefdfb;
  --card-bg: #fefdfb;
  --hover-bg: #f5efe5;

  /* Shadows — warm tinted (never pure black) */
  --main-shadow: 0 1px 3px rgba(45,36,24,0.04), 0 1px 2px rgba(45,36,24,0.03);
  --card-shadow: 0 2px 8px rgba(45,36,24,0.04), 0 1px 2px rgba(45,36,24,0.03);
  --card-shadow-hover: 0 8px 24px rgba(45,36,24,0.08), 0 2px 4px rgba(45,36,24,0.04);
  --modal-shadow: 0 24px 64px rgba(45,36,24,0.14);

  /* Radii — varied, not uniform */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Glass */
  --blur-bg: rgba(254,253,251,0.78);
  --header-bg: rgba(250,247,242,0.75);

  /* Typography */
  --font-sans: "Geist", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-display: "Geist", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  --font-mono: "Geist Mono", "SF Mono", "Cascadia Code", "Fira Code", monospace;

  /* Motion — spring physics */
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-smooth: cubic-bezier(0.45, 0, 0.15, 1);
  --duration-fast: 200ms;
  --duration-normal: 400ms;
  --duration-slow: 700ms;
}

/* ========== Noise Texture Overlay ========== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ========== Reset & Base ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--main-color);
  background: var(--body-bg);
  line-height: 1.7;
  letter-spacing: -0.01em;
}

a {
  color: var(--theme-color);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-smooth);
}
a:hover { color: var(--theme-dark); }

img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
input, button, textarea, select { font-family: inherit; font-size: inherit; }

/* ========== WordPress Core ========== */
.alignnone { margin: 5px 20px 20px 0; }
.aligncenter, div.aligncenter { display: block; margin: 5px auto; }
.alignright { float: right; margin: 5px 0 20px 20px; }
.alignleft { float: left; margin: 5px 20px 20px 0; }
.wp-caption { max-width: 100%; border-radius: var(--radius-md); overflow: hidden; }
.wp-caption-text { text-align: center; font-size: 13px; color: var(--muted-color); margin-top: 8px; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
.sticky { }

/* Skip to content */
.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 10000;
  background: var(--key-color); color: var(--main-bg); padding: 12px 20px;
  border-radius: var(--radius-md); font-weight: 600; font-size: 14px;
  transition: top var(--duration-fast) var(--ease-smooth);
}
.skip-link:focus { top: 16px; }

/* ========== Utility ========== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* Double-Bezel Card: outer shell + inner core */
.card-shell {
  background: rgba(45,36,24,0.03);
  border-radius: var(--radius-xl);
  padding: 3px;
}
.card-shell > .card-core {
  background: var(--card-bg);
  border-radius: calc(var(--radius-xl) - 3px);
  box-shadow: var(--card-shadow), inset 0 1px 0 rgba(255,255,255,0.5);
  padding: 24px;
}

/* Standard card */
.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow), inset 0 1px 0 rgba(255,255,255,0.5);
  transition: box-shadow var(--duration-normal) var(--ease-spring),
              transform var(--duration-normal) var(--ease-spring);
}
.card:hover {
  box-shadow: var(--card-shadow-hover), inset 0 1px 0 rgba(255,255,255,0.5);
  transform: translateY(-2px);
}

/* Glass surface */
.blur-bg {
  background: var(--blur-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

/* Text utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-balance { text-wrap: balance; }

/* Flex utilities */
.flex { display: flex; }
.flex1 { flex: 1; }
.flex0 { flex-shrink: 0; }
.flex-wrap { flex-wrap: wrap; }
.jc { justify-content: center; }
.jsb { justify-content: space-between; }
.aic { align-items: center; }
.xx { flex-direction: column; }
.gap10 { gap: 10px; }
.gap16 { gap: 16px; }
.gap20 { gap: 20px; }

/* Spacing utilities */
.mt6 { margin-top: 6px; }
.mt10 { margin-top: 10px; }
.mt20 { margin-top: 20px; }
.mb10 { margin-bottom: 10px; }
.mb20 { margin-bottom: 20px; }
.mr6 { margin-right: 6px; }
.mr10 { margin-right: 10px; }
.ml6 { margin-left: 6px; }
.ml10 { margin-left: 10px; }

/* Font size utilities */
.px12 { font-size: 12px; }
.em09 { font-size: 0.9em; }
.em12 { font-size: 1.2em; }
.em14 { font-size: 1.4em; }

/* Color utilities */
.c-red { color: var(--red); }
.c-green { color: var(--green); }
.c-yellow { color: var(--yellow); }
.c-blue { color: var(--theme-color); }
.muted-color { color: var(--muted-color); }
.muted-2-color { color: var(--muted-2-color); }
.inline-block { display: inline-block; }
.relative { position: relative; }
.absolute { position: absolute; }
.hide { display: none !important; }

/* ========== Typography Scale ========== */
h1, .h1 { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; color: var(--key-color); }
h2, .h2 { font-family: var(--font-display); font-size: 2rem; font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; color: var(--key-color); }
h3, .h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 650; letter-spacing: -0.02em; line-height: 1.25; color: var(--key-color); }
h4, .h4 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; color: var(--key-color); }

/* ========== Buttons ========== */
.but {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border: none; border-radius: var(--radius-full);
  font-size: 14px; font-weight: 550; cursor: pointer; text-align: center;
  line-height: 1.5; user-select: none; white-space: nowrap;
  transition: transform var(--duration-fast) var(--ease-spring),
              box-shadow var(--duration-fast) var(--ease-spring),
              background var(--duration-fast) var(--ease-spring);
  position: relative; overflow: hidden;
}
.but::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  opacity: 0; transition: opacity var(--duration-fast) var(--ease-smooth);
  background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, transparent 50%);
}
.but:hover::after { opacity: 1; }
.but:hover { transform: translateY(-1px); }
.but:active { transform: translateY(0) scale(0.98); }
.but.radius { border-radius: var(--radius-full); }
.but.padding-lg { padding: 14px 32px; font-size: 16px; }
.but.btn-block { display: flex; width: 100%; }

/* Button variants — single accent family */
.but.jb-blue { background: var(--theme-color); color: #fff; }
.but.jb-blue:hover { background: var(--theme-light); }
.but.jb-red { background: var(--red); color: #fff; }
.but.jb-green { background: var(--green); color: #fff; }
.but.jb-yellow { background: var(--yellow); color: var(--key-color); }
.but.jb-pink { background: var(--pink); color: #fff; }
.but.b-theme {
  background: transparent; color: var(--theme-color);
  box-shadow: inset 0 0 0 1.5px var(--theme-color);
}
.but.b-theme:hover { background: var(--theme-color); color: #fff; }

/* Button-in-button icon for CTAs */
.but .btn-icon-nest {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(0,0,0,0.08); transition: transform var(--duration-fast) var(--ease-spring);
}
.but:hover .btn-icon-nest {
  transform: translateX(2px) translateY(-1px) scale(1.05);
}

/* ========== Badges ========== */
.badg {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--radius-sm);
  font-size: 11px; font-weight: 600; letter-spacing: 0.01em;
  line-height: 1.5;
}
.badg-sm { padding: 2px 8px; font-size: 10px; }
.badg.b-theme { background: rgba(180,83,9,0.08); color: var(--theme-color); }
.badg.c-red { background: rgba(194,120,120,0.1); color: var(--red); }
.badg.c-green { background: rgba(109,168,137,0.1); color: var(--green); }
.badg.c-yellow { background: rgba(196,161,83,0.1); color: var(--yellow); }
.badg.hot { background: rgba(196,161,83,0.12); color: #7a6200; }

/* Image badge — square, not pill */
.img-badge {
  position: absolute; top: 12px; right: 12px;
  padding: 5px 12px; border-radius: var(--radius-sm);
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
  z-index: 2; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.img-badge.hot { background: rgba(196,161,83,0.85); color: var(--key-color); }
.img-badge.jb-blue { background: rgba(180,83,9,0.85); color: #fff; }

/* ========== Header (Floating Pill — Fluid Island) ========== */
.header {
  position: sticky; top: 12px; z-index: 100;
  padding: 0 16px; pointer-events: none;
}
.header-inner {
  display: flex; align-items: center; height: 52px;
  max-width: var(--max-width); margin: 0 auto;
  background: var(--blur-bg);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius-full);
  box-shadow: 0 2px 16px rgba(45,36,24,0.06), 0 0 0 1px rgba(45,36,24,0.04);
  padding: 0 8px 0 20px;
  pointer-events: auto;
  transition: box-shadow var(--duration-normal) var(--ease-smooth);
}
.header-inner:hover {
  box-shadow: 0 4px 20px rgba(45,36,24,0.08), 0 0 0 1px rgba(45,36,24,0.06);
}
.admin-bar .header { top: 44px; }

.header-logo {
  font-size: 20px; font-weight: 700; color: var(--key-color);
  flex-shrink: 0; letter-spacing: -0.02em;
  transition: opacity var(--duration-fast) var(--ease-smooth);
}
.header-logo:hover { opacity: 0.75; }
.header-logo .custom-logo-link { display: inline-block; max-height: 32px; }
.header-logo .custom-logo-link img { max-height: 32px; width: auto; }

.header-nav { display: flex; gap: 2px; margin-left: 28px; list-style: none; }
.header-nav a {
  padding: 8px 18px; border-radius: var(--radius-full);
  color: var(--main-color); font-size: 14px; font-weight: 520;
  transition: background var(--duration-fast) var(--ease-smooth),
              color var(--duration-fast) var(--ease-smooth);
}
.header-nav li { list-style: none; }
.header-nav li::marker { content: none; }

.header-nav a:hover,
.header-nav .current-menu-item > a,
.header-nav .current_page_item > a {
  color: var(--theme-color);
}

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; padding-right: 4px; }

.header-search { position: relative; width: 200px; }
.header-search input {
  width: 100%; padding: 8px 38px 8px 16px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-full); font-size: 13px; outline: none;
  background: rgba(45,36,24,0.04);
  transition: all var(--duration-fast) var(--ease-smooth);
  color: var(--main-color);
}
.header-search input::placeholder { color: var(--muted-color); }
.header-search input:focus {
  border-color: var(--theme-color); background: var(--card-bg);
  box-shadow: 0 0 0 3px var(--theme-shadow);
}
.header-search button.search-icon {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  color: var(--muted-color); background: none; border: none; cursor: pointer;
  transition: color var(--duration-fast) var(--ease-smooth);
}
.header-search button.search-icon:hover { color: var(--theme-color); }

/* User dropdown */
.user-dropdown { position: relative; cursor: pointer; }
.user-avatar {
  width: 34px; height: 34px; border-radius: 40%;
  object-fit: cover; border: 2px solid transparent;
  transition: border-color var(--duration-fast) var(--ease-smooth),
              transform var(--duration-fast) var(--ease-spring);
  display: block;
}
.user-dropdown:hover .user-avatar {
  border-color: var(--theme-color); transform: scale(1.05);
}
.user-dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 12px); width: 200px;
  background: var(--card-bg); border-radius: var(--radius-lg);
  box-shadow: var(--modal-shadow), 0 0 0 1px rgba(45,36,24,0.06);
  opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--duration-fast) var(--ease-spring);
  z-index: 10; overflow: hidden;
}
.user-dropdown:hover .user-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.user-dropdown-menu a {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 18px; color: var(--main-color); font-size: 14px;
  transition: background var(--duration-fast) var(--ease-smooth);
}
.user-dropdown-menu a:hover { background: var(--hover-bg); }

/* ========== Main Layout ========== */
.main-wrap { display: flex; gap: 32px; padding: 40px 0; }
.content-area { flex: 1; min-width: 0; }
.sidebar { width: 300px; flex-shrink: 0; }

/* ========== Post Cards (Asymmetric Bento Grid) ========== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.post-card {
  background: var(--card-bg); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--card-shadow), inset 0 1px 0 rgba(255,255,255,0.5);
  transition: transform var(--duration-normal) var(--ease-spring),
              box-shadow var(--duration-normal) var(--ease-spring);
  cursor: pointer;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover), inset 0 1px 0 rgba(255,255,255,0.5);
}
.post-card-thumb { position: relative; overflow: hidden; aspect-ratio: 4/3; }
.post-card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-smooth);
}
.post-card:hover .post-card-thumb img { transform: scale(1.04); }
.post-card-body { padding: 18px 20px 20px; }
.post-card-title {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 650; color: var(--key-color);
  letter-spacing: -0.015em; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin-bottom: 10px;
}
.post-card-meta {
  display: flex; align-items: center; gap: 14px;
  font-size: 12px; color: var(--muted-color);
}
.post-card-meta .meta-item { display: flex; align-items: center; gap: 5px; }
.post-card-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--muted-3-color);
}

/* Skeleton loader for post cards */
.post-card-skeleton {
  background: var(--card-bg); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--card-shadow);
}
.post-card-skeleton .skeleton-thumb {
  aspect-ratio: 4/3; background: linear-gradient(110deg, var(--muted-3-color) 30%, var(--muted-2-color) 50%, var(--muted-3-color) 70%);
  background-size: 200% 100%; animation: shimmer 1.5s infinite;
}
.post-card-skeleton .skeleton-body { padding: 18px 20px 20px; }
.post-card-skeleton .skeleton-line {
  height: 14px; border-radius: 4px; margin-bottom: 10px;
  background: linear-gradient(110deg, var(--muted-3-color) 30%, var(--muted-2-color) 50%, var(--muted-3-color) 70%);
  background-size: 200% 100%; animation: shimmer 1.5s infinite;
}
.post-card-skeleton .skeleton-line:last-child { width: 60%; margin-bottom: 0; }

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ========== Sidebar Widgets ========== */
.widget {
  background: var(--card-bg); border-radius: var(--radius-lg); margin-bottom: 20px;
  box-shadow: var(--card-shadow), inset 0 1px 0 rgba(255,255,255,0.5);
  overflow: hidden;
}
.widget-title {
  padding: 16px 20px; font-size: 13px; font-weight: 650;
  color: var(--key-color); letter-spacing: 0.03em; text-transform: uppercase;
  border-bottom: 1px solid var(--muted-3-color);
}
.widget-body { padding: 20px; }

/* ========== Single Post / Page ========== */
.article-header { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--muted-3-color); }
.article-title {
  font-family: var(--font-display);
  font-size: 2.25rem; font-weight: 750; color: var(--key-color);
  letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 16px;
  text-wrap: balance;
}
.article-meta {
  display: flex; align-items: center; gap: 20px;
  font-size: 13px; color: var(--muted-color); flex-wrap: wrap;
}
.article-meta .meta-item { display: flex; align-items: center; gap: 5px; }

.article-content {
  font-size: 16px; line-height: 1.85; color: var(--main-color);
  max-width: 70ch; /* reading measure */
}
.article-content p { margin-bottom: 20px; }
.article-content img {
  border-radius: var(--radius-md); margin: 16px 0;
}
.article-content h2 {
  font-family: var(--font-display);
  font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em;
  margin: 40px 0 16px; color: var(--key-color);
}
.article-content h3 {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 650; letter-spacing: -0.015em;
  margin: 32px 0 12px; color: var(--key-color);
}
.article-content blockquote {
  border-left: 3px solid var(--theme-color);
  padding: 16px 24px; margin: 24px 0;
  background: rgba(180,83,9,0.03); border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic; color: var(--key-color);
}
.article-content a { text-decoration: underline; text-underline-offset: 2px; }
.article-content ul, .article-content ol { margin: 16px 0 16px 24px; }
.article-content li { margin-bottom: 8px; }
.article-content ul li { list-style: disc; }
.article-content ol li { list-style: decimal; }

/* ========== Paywall Box ========== */
.pay-box {
  background: var(--card-bg); border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow), inset 0 1px 0 rgba(255,255,255,0.5);
  padding: 28px; position: relative; overflow: hidden;
  margin: 24px 0;
}
.pay-flexbox { display: flex; gap: 24px; align-items: center; }
.pay-thumb { width: 200px; flex-shrink: 0; }
.pay-thumb .graphic { position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/3; }
.pay-thumb .graphic img { width: 100%; height: 100%; object-fit: cover; }
.pay-info { flex: 1; }
.pay-title {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 650; color: var(--key-color);
  letter-spacing: -0.015em; margin-bottom: 8px;
}
.pay-doc { font-size: 14px; color: var(--muted-color); margin-bottom: 16px; }
.pay-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.pay-price .coin { font-size: 26px; font-weight: 750; color: var(--theme-color); }
.pay-price .coin-unit { font-size: 14px; color: var(--muted-color); }
.pay-price .vip-free { font-size: 13px; color: var(--green); display: flex; align-items: center; gap: 4px; }
.pay-tag {
  position: absolute; top: 20px; right: -22px; transform: rotate(45deg);
  background: var(--theme-color); color: #fff; padding: 4px 36px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.05em;
}
.pay-actions { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }

/* ========== Modal (Glass aesthetic) ========== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(45,36,24,0.5);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity var(--duration-normal) var(--ease-smooth),
              visibility var(--duration-normal) var(--ease-smooth);
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-dialog {
  background: var(--card-bg); border-radius: var(--radius-xl);
  box-shadow: var(--modal-shadow), 0 0 0 1px rgba(255,255,255,0.5) inset;
  width: 440px; max-width: 92vw;
  max-height: 85vh; overflow-y: auto;
  transform: translateY(24px) scale(0.96);
  transition: transform var(--duration-normal) var(--ease-spring);
}
.modal-overlay.active .modal-dialog { transform: translateY(0) scale(1); }
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; border-bottom: 1px solid var(--muted-3-color);
}
.modal-header h3 {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 650; color: var(--key-color);
  letter-spacing: -0.015em;
}
.modal-close {
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: rgba(45,36,24,0.05); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted-color); font-size: 18px;
  transition: all var(--duration-fast) var(--ease-smooth);
}
.modal-close:hover {
  background: rgba(45,36,24,0.1); color: var(--key-color);
  transform: rotate(90deg);
}
.modal-body { padding: 24px; }

/* Modal colorful header (scoped to theme accent) */
.modal-colorful-header {
  position: relative; padding: 32px 24px; overflow: hidden; text-align: center;
}
.modal-colorful-header .colorful-bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, var(--theme-color) 0%, var(--theme-dark) 100%);
}
.modal-colorful-header .colorful-make {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 40%, rgba(255,255,255,0.12), transparent 65%);
}
.modal-colorful-header .header-icon { font-size: 44px; position: relative; z-index: 1; color: #fff; }
.modal-colorful-header .header-text { color: rgba(255,255,255,0.9); font-size: 15px; margin-top: 10px; position: relative; z-index: 1; }
.modal-colorful-header .modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  background: rgba(255,255,255,0.18); color: #fff;
}
.modal-colorful-header .modal-close:hover { background: rgba(255,255,255,0.3); }

/* ========== Line Form Inputs ========== */
.line-form { position: relative; margin-bottom: 20px; }
.line-form input {
  width: 100%; padding: 14px 16px;
  border: none; border-bottom: 2px solid var(--muted-3-color);
  font-size: 15px; outline: none; background: transparent;
  transition: border-color var(--duration-fast) var(--ease-smooth);
  color: var(--key-color);
}
.line-form input:focus { border-bottom-color: var(--theme-color); }
.line-form .scale-placeholder {
  position: absolute; left: 16px; top: 14px; font-size: 15px;
  color: var(--muted-color); pointer-events: none;
  transition: all var(--duration-fast) var(--ease-smooth);
  transform-origin: left top;
}
.line-form input:focus ~ .scale-placeholder,
.line-form input:not(:placeholder-shown) ~ .scale-placeholder {
  transform: translateY(-22px) scale(0.75); color: var(--theme-color);
}
.line-form .abs-right {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; gap: 6px;
}
.line-form .passw { cursor: pointer; color: var(--muted-color); }
.line-form .passw:hover { color: var(--theme-color); }
.line-form .yztx {
  font-size: 12px; color: var(--theme-color); cursor: pointer;
  font-weight: 550; white-space: nowrap;
  transition: color var(--duration-fast) var(--ease-smooth);
}
.line-form .yztx:hover { color: var(--theme-dark); }

/* ========== Sign Tab Switching ========== */
.sign-tabs {
  display: flex; gap: 8px;
  border-bottom: 2px solid var(--muted-3-color);
  margin-bottom: 24px;
}
.sign-tab {
  padding: 12px 20px; text-align: center; font-size: 15px; font-weight: 520;
  color: var(--muted-color); cursor: pointer;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  margin-bottom: -2px; border-bottom: 2px solid transparent;
  transition: all var(--duration-fast) var(--ease-smooth);
}
.sign-tab.active { color: var(--theme-color); border-bottom-color: var(--theme-color); background: rgba(180,83,9,0.03); }
.sign-tab:hover { color: var(--theme-color); }
.sign-panel { display: none; }
.sign-panel.active { display: block; animation: fadeSlideIn var(--duration-normal) var(--ease-spring); }

/* ========== User Center ========== */
.user-info-bar {
  display: flex; align-items: flex-end; gap: 24px;
  padding: 32px 28px 20px; margin-bottom: 28px;
  background: var(--card-bg); border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow), inset 0 1px 0 rgba(255,255,255,0.5);
}
.user-info-avatar {
  width: 88px; height: 88px; border-radius: 32%;
  border: 4px solid var(--card-bg);
  box-shadow: 0 8px 24px rgba(45,36,24,0.1);
  object-fit: cover; background: var(--card-bg);
}
.user-info-text { padding-bottom: 6px; }
.user-info-name {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 750; color: var(--key-color);
  letter-spacing: -0.02em;
}
.user-info-desc { font-size: 14px; color: var(--muted-color); margin-top: 4px; }
.user-stats { display: flex; gap: 24px; margin-left: auto; padding-bottom: 10px; }
.user-stat { text-align: center; }
.user-stat .num { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--key-color); }
.user-stat .label { font-size: 12px; color: var(--muted-color); letter-spacing: 0.02em; }

/* ========== VIP Card (warm gradient) ========== */
.vip-card {
  background: linear-gradient(145deg, #3d2e1a 0%, #5c3d18 50%, #3d2508 100%);
  color: #f5efe5; border-radius: var(--radius-lg); padding: 24px;
  position: relative; overflow: hidden;
  box-shadow: 0 8px 32px rgba(45,36,24,0.15);
}
.vip-card::after {
  content: ''; position: absolute; right: -40px; top: -40px;
  width: 160px; height: 160px; background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.vip-card .vip-level { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin-bottom: 6px; position: relative; z-index: 1; }
.vip-card .vip-expire { font-size: 13px; opacity: 0.7; position: relative; z-index: 1; }
.vip-card .vip-actions { margin-top: 18px; position: relative; z-index: 1; }
.vip-card .vip-badge {
  position: absolute; top: 20px; right: 20px; z-index: 1;
  background: rgba(255,255,255,0.12); padding: 5px 14px;
  border-radius: var(--radius-sm); font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em; backdrop-filter: blur(4px);
}

/* ========== VIP Plans ========== */
.vip-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.vip-plan-card {
  text-align: center; padding: 28px 20px;
  border: 2px solid var(--muted-3-color);
  border-radius: var(--radius-lg); cursor: pointer;
  transition: all var(--duration-fast) var(--ease-spring);
  background: var(--card-bg);
}
.vip-plan-card:hover, .vip-plan-card.selected {
  border-color: var(--theme-color);
  box-shadow: 0 0 0 4px var(--theme-shadow);
  transform: translateY(-2px);
}
.vip-plan-card .plan-name { font-size: 15px; font-weight: 650; color: var(--key-color); margin-bottom: 8px; }
.vip-plan-card .plan-price {
  font-family: var(--font-display); font-size: 28px; font-weight: 750;
  color: var(--theme-color); margin: 10px 0;
}
.vip-plan-card .plan-price .unit { font-size: 14px; font-weight: 450; color: var(--muted-color); }
.vip-plan-card .plan-desc { font-size: 12px; color: var(--muted-color); }

/* ========== Toast ========== */
.toast-container { position: fixed; top: 24px; right: 24px; z-index: 300; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--card-bg); border-radius: var(--radius-md);
  box-shadow: var(--modal-shadow), 0 0 0 1px rgba(45,36,24,0.06);
  padding: 16px 24px; display: flex; align-items: center; gap: 12px;
  font-size: 14px; font-weight: 520;
  animation: slideInRight var(--duration-normal) var(--ease-spring);
  max-width: 380px;
}
.toast.success { border-left: 4px solid var(--green); }
.toast.error { border-left: 4px solid var(--red); }
.toast .toast-icon { flex-shrink: 0; width: 20px; height: 20px; }

/* ========== Content Tabs ========== */
.content-tabs {
  display: flex; gap: 4px;
  border-bottom: 2px solid var(--muted-3-color); margin-bottom: 24px;
}
.content-tab {
  padding: 12px 22px; cursor: pointer; font-size: 14px; font-weight: 520;
  color: var(--muted-color);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: all var(--duration-fast) var(--ease-smooth);
  display: inline-block;
}
.content-tab.active { color: var(--theme-color); border-bottom-color: var(--theme-color); background: rgba(180,83,9,0.03); }
.content-tab:hover { color: var(--theme-color); }
.content-panel { display: none; animation: fadeSlideIn var(--duration-fast) var(--ease-spring); }
.content-panel.active { display: block; }

/* ========== Form ========== */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--key-color); margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--muted-3-color);
  border-radius: var(--radius-md); font-size: 15px; outline: none;
  transition: border-color var(--duration-fast) var(--ease-smooth),
              box-shadow var(--duration-fast) var(--ease-smooth);
  background: var(--card-bg); color: var(--key-color);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--theme-color);
  box-shadow: 0 0 0 3px var(--theme-shadow);
}
.form-group textarea { min-height: 120px; font-family: var(--font-mono); font-size: 14px; resize: vertical; }
.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }

/* ========== Tables ========== */
.order-table { width: 100%; border-collapse: collapse; }
.order-table th, .order-table td {
  padding: 14px 16px; text-align: left;
  border-bottom: 1px solid var(--muted-3-color); font-size: 14px;
}
.order-table th {
  font-weight: 600; color: var(--key-color); font-size: 11px;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.order-table td { color: var(--main-color); }
.order-table tr:last-child td { border-bottom: none; }

/* ========== Pagination ========== */
.pagination-nav { text-align: center; padding: 40px 0 20px; }
.pagination-nav .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px; margin: 0 3px;
  border-radius: var(--radius-md);
  background: var(--card-bg);
  color: var(--main-color); font-size: 14px; font-weight: 520;
  box-shadow: var(--main-shadow);
  transition: all var(--duration-fast) var(--ease-smooth);
}
.pagination-nav .page-numbers.current {
  background: var(--theme-color); color: #fff;
  box-shadow: 0 2px 8px var(--theme-shadow);
}
.pagination-nav .page-numbers:hover {
  background: var(--theme-color); color: #fff;
  transform: translateY(-1px);
}

/* ========== Comments ========== */
.comments-area { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--muted-3-color); }
.comments-title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700; color: var(--key-color);
  letter-spacing: -0.02em; margin-bottom: 24px;
}
.comment-list { list-style: none; }
.comment-list .comment { margin-bottom: 24px; }
.comment-list .comment-body { display: flex; gap: 16px; }
.comment-list .comment-author img {
  border-radius: 40%; flex-shrink: 0;
}
.comment-list .comment-author .fn { font-weight: 650; color: var(--key-color); font-size: 15px; font-style: normal; }
.comment-list .comment-author .says { display: none; }
.comment-list .comment-meta { margin-bottom: 8px; }
.comment-list .comment-meta a { font-size: 12px; color: var(--muted-color); }
.comment-list .comment-content { font-size: 15px; line-height: 1.7; color: var(--main-color); }
.comment-list .comment-content p { margin-bottom: 8px; }
.comment-list .reply { margin-top: 8px; }
.comment-list .reply a { font-size: 13px; color: var(--theme-color); font-weight: 520; }
.comment-list .children { margin-left: 40px; list-style: none; margin-top: 20px; }
.comment-list .bypostauthor > .comment-body {
  background: rgba(180,83,9,0.03); border-radius: var(--radius-md);
  padding: 16px;
}

.comment-nav { display: flex; justify-content: space-between; margin: 24px 0; font-size: 14px; }
.comment-nav a { color: var(--theme-color); }
.no-comments { color: var(--muted-color); font-size: 15px; margin-top: 12px; }

.comment-reply-title {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700; color: var(--key-color);
  letter-spacing: -0.02em; margin: 36px 0 20px;
}
.comment-reply-title small { font-size: 14px; margin-left: 10px; }
.comment-reply-title small a { color: var(--muted-color); }

.comment-form { padding: 20px 0; }
.comment-form-comment { margin-bottom: 16px; }
.comment-form-comment textarea {
    width: 100%; padding: 14px 16px;
    border: 1.5px solid var(--muted-3-color);
    border-radius: var(--radius-md);
    background: var(--card-bg); color: var(--main-color);
    font-size: 15px; resize: vertical; min-height: 110px; outline: none;
    transition: border-color var(--duration-fast) var(--ease-smooth),
                box-shadow var(--duration-fast) var(--ease-smooth);
}
.comment-form-comment textarea:focus {
  border-color: var(--theme-color);
  box-shadow: 0 0 0 3px var(--theme-shadow);
}
.comment-form-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }
.comment-form-field input {
    width: 100%; padding: 12px 16px;
    border: 1.5px solid var(--muted-3-color);
    border-radius: var(--radius-md);
    background: var(--card-bg); color: var(--main-color);
    font-size: 15px; outline: none;
    transition: border-color var(--duration-fast) var(--ease-smooth),
                box-shadow var(--duration-fast) var(--ease-smooth);
}
.comment-form-field input:focus {
  border-color: var(--theme-color);
  box-shadow: 0 0 0 3px var(--theme-shadow);
}
.comment-form-cookies { margin-bottom: 16px; font-size: 13px; color: var(--muted-color); }
.comment-form-cookies label { display: flex; align-items: center; gap: 8px; }
.form-submit { margin-top: 12px; }
.form-submit .submit {
  padding: 12px 28px;
  background: var(--theme-color); color: #fff;
  border: none; border-radius: var(--radius-full);
  font-size: 15px; font-weight: 550; cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-spring),
              background var(--duration-fast) var(--ease-smooth);
}
.form-submit .submit:hover { background: var(--theme-light); transform: translateY(-1px); }
.form-submit .submit:active { transform: translateY(0) scale(0.98); }

/* ========== Author Page ========== */
.author-info-bar {
    display: flex; align-items: flex-end; gap: 24px;
    background: var(--card-bg); border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow), inset 0 1px 0 rgba(255,255,255,0.5);
    padding: 28px; margin-top: 24px;
}
.author-info-avatar {
  border-radius: 32%; border: 4px solid var(--card-bg);
  flex-shrink: 0; background: var(--card-bg);
  box-shadow: 0 4px 12px rgba(45,36,24,0.08);
}
.author-info-text { padding-bottom: 4px; }
.author-info-name {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 750; color: var(--key-color);
  letter-spacing: -0.02em;
}
.author-info-desc { font-size: 14px; color: var(--muted-color); margin-top: 6px; }
.author-stats { display: flex; gap: 24px; margin-left: auto; padding-bottom: 8px; }
.author-stat { text-align: center; }
.author-stat .num { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--key-color); }
.author-stat .label { font-size: 12px; color: var(--muted-color); letter-spacing: 0.02em; }

/* ========== Empty States ========== */
.empty-state {
  text-align: center; padding: 56px 24px;
}
.empty-state .empty-icon {
  font-size: 48px; margin-bottom: 16px; opacity: 0.6;
}
.empty-state .empty-title {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 650; color: var(--key-color);
  letter-spacing: -0.015em; margin-bottom: 8px;
}
.empty-state .empty-desc {
  font-size: 14px; color: var(--muted-color); margin-bottom: 24px; max-width: 400px; margin-left: auto; margin-right: auto;
}

/* ========== Footer ========== */
.site-footer {
  border-top: 1px solid var(--muted-3-color);
  padding: 48px 0 32px; margin-top: 48px;
  background: rgba(45,36,24,0.015);
}
.footer-nav { display: flex; justify-content: center; gap: 24px; margin-bottom: 16px; flex-wrap: wrap; }
.footer-nav a {
  color: var(--muted-color); font-size: 13px;
  transition: color var(--duration-fast) var(--ease-smooth);
}
.footer-nav a:hover { color: var(--theme-color); }

/* ========== Animations ========== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Scroll-reveal animation class (applied by JS IntersectionObserver) */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-slow) var(--ease-spring),
              transform var(--duration-slow) var(--ease-spring);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-slow) var(--ease-spring),
              transform var(--duration-slow) var(--ease-spring);
}
.reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.revealed > *:nth-child(2) { transition-delay: 80ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.revealed > *:nth-child(3) { transition-delay: 160ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.revealed > *:nth-child(4) { transition-delay: 240ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.revealed > *:nth-child(5) { transition-delay: 320ms; opacity: 1; transform: translateY(0); }
.reveal-stagger.revealed > *:nth-child(6) { transition-delay: 400ms; opacity: 1; transform: translateY(0); }

/* ========== Bottom Floating Nav (Mobile) ========== */
.bottom-nav {
  display: none;
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%);
  z-index: 110;
  background: rgba(254,253,251,0.84);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 24px rgba(45,36,24,0.1), 0 0 0 1px rgba(45,36,24,0.06);
  padding: 4px;
  gap: 0;
}

.bottom-nav-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 6px 14px; min-width: 60px;
  border: none; background: transparent; cursor: pointer;
  color: var(--muted-color); font-size: 10px; font-weight: 530;
  border-radius: var(--radius-full); text-decoration: none; font-family: inherit;
  transition: color var(--duration-fast) var(--ease-smooth);
}
.bottom-nav-item .dayi-icon { transition: transform var(--duration-fast) var(--ease-spring); }
.bottom-nav-item:active .dayi-icon { transform: scale(0.88); }
.bottom-nav-item.active { color: var(--theme-color); }
.bottom-nav-item.bottom-nav-expand { position: relative; }

/* Backdrop */
.bottom-panel-backdrop {
  position: fixed; inset: 0; z-index: 119;
  background: rgba(45,36,24,0.3);
  opacity: 0; visibility: hidden;
  transition: opacity var(--duration-fast) var(--ease-smooth),
              visibility var(--duration-fast) var(--ease-smooth);
}
.bottom-panel-backdrop.active { opacity: 1; visibility: visible; }

/* Bottom panel — slides up from below */
.bottom-panel {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 120;
  background: var(--card-bg);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: 0 -8px 40px rgba(45,36,24,0.14);
  padding: 12px 20px 100px; /* room for bottom nav */
  transform: translateY(100%);
  transition: transform 0.35s var(--ease-spring);
  max-height: 70vh; overflow-y: auto;
}
.bottom-panel.active { transform: translateY(0); }

.bottom-panel-handle {
  width: 36px; height: 4px; background: var(--muted-2-color);
  border-radius: 2px; margin: 0 auto 16px;
}

.bottom-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.bottom-panel-title {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 650; color: var(--key-color);
  letter-spacing: -0.015em;
}
.bottom-panel-close {
  width: 32px; height: 32px; border-radius: 50%; border: none;
  background: rgba(45,36,24,0.06); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted-color); transition: all var(--duration-fast) var(--ease-smooth);
}
.bottom-panel-close:hover { background: rgba(45,36,24,0.1); color: var(--key-color); }

.bottom-cat-list { display: flex; flex-wrap: wrap; gap: 8px; }
.bottom-cat-list li { list-style: none; }
.bottom-cat-list a {
  display: block; padding: 8px 16px;
  background: var(--body-bg); border-radius: var(--radius-full);
  font-size: 14px; color: var(--main-color);
  transition: all var(--duration-fast) var(--ease-smooth);
}
.bottom-cat-list a:hover { background: var(--theme-color); color: #fff; }

.bottom-panel-search { margin-top: 20px; }
.bottom-panel-search form {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; background: var(--body-bg);
  border-radius: var(--radius-full);
}
.bottom-panel-search input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 15px; color: var(--key-color);
}
.bottom-panel-search input::placeholder { color: var(--muted-color); }

body.bottom-panel-open { overflow: hidden; }

 /* ========== Responsive ========== */
@media (max-width: 768px) {
  .header { padding: 0 8px; }
  .header-inner { border-radius: var(--radius-lg); padding: 0 12px 0 16px; }
  .header-nav { display: none; }
  .header-search { display: none; }
  .bottom-nav { display: flex; }
  body { padding-bottom: 90px; }
  .container { padding: 0 16px; }
  .main-wrap { flex-direction: column; gap: 24px; }
  .sidebar { width: 100%; }
  .posts-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
  .pay-flexbox { flex-direction: column; }
  .pay-thumb { width: 100%; }
  .user-stats { display: none; }
  .article-title { font-size: 1.75rem; }
  .article-content { max-width: none; }
  .form-row { flex-direction: column; gap: 0; }
  .comment-form-fields { grid-template-columns: 1fr; }
  .admin-bar .header { top: 58px; }
  .author-stats { display: none; }
  .author-info-bar { flex-direction: column; align-items: center; text-align: center; }
}

@media (max-width: 480px) {
  .header-logo { font-size: 18px; }
  .header-actions { gap: 4px; }
  .bottom-nav-item { padding: 6px 10px; min-width: 52px; }
  .posts-grid { grid-template-columns: 1fr; }
  .vip-plans { grid-template-columns: repeat(2, 1fr); }
  .modal-dialog { width: 100%; max-width: 100%; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
}



/* ========== Posts Widget Tabs ========== */
.dayi-widget-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 0;
}

.dayi-widget-tab {
  flex: 1;
  padding: 10px 0;
  text-align: center;
  cursor: pointer;
  font-size: 13px;
  font-weight: 550;
  color: var(--muted-color);
  border-bottom: 2px solid transparent;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.dayi-widget-tab.active {
  color: var(--theme-color);
  border-bottom-color: var(--theme-color);
}

.dayi-widget-panel {
  display: none;
}

.dayi-widget-panel.active {
  display: block;
  padding: 0 2px 0 4px;
}

.dayi-widget-empty {
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted-color);
}

/* ========== Posts Widget Items ========== */
.dayi-post-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--muted-3-color);
}

.dayi-post-item:last-child {
  border-bottom: none;
}

.dayi-post-thumb {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.dayi-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dayi-post-info {
  flex: 1;
  min-width: 0;
}

.dayi-post-title {
  font-size: 13px;
  font-weight: 550;
  color: var(--key-color);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.dayi-post-meta {
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: var(--muted-color);
  margin-top: 4px;
}

.dayi-post-item:hover .dayi-post-title {
  color: var(--theme-color);
}