/* ==========================================================================
   元界 DECENTRAWORLD — Unified Design System
   Learned & faithfully modeled from https://decentraworld.did.life/zh
   ========================================================================== */

:root {
  --primary: #00bba7;
  --primary-hover: #00a391;
  --primary-active: #008f7f;
  --primary-soft: rgba(0, 187, 167, 0.1);
  --primary-ring: rgba(0, 187, 167, 0.25);

  --text-primary: #18181b;
  --text-secondary: #52525b;
  --text-muted: #71717a;

  --bg: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-muted: #f4f4f5;
  --border: #e4e4e7;
  --border-light: #f0f0f2;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 18px 48px rgba(15, 23, 42, 0.12);

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 18px;

  --header-height: 64px;
  --container-max: 1200px;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Roboto", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: var(--header-height) 0 0 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.18s ease, opacity 0.18s ease;
}

a:hover {
  color: var(--primary-hover);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ==========================================================================
   Layout Utilities
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Header / Top Navigation (Blocklet / MUI Style)
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
}

.header-inner {
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 400;
  color: #52525b;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  background: transparent;
  transition: background 0.16s ease, color 0.16s ease;
}

.nav-link svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  opacity: 0.78;
}

.nav-link .chevron {
  width: 14px;
  height: 14px;
  opacity: 0.6;
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-item.open > .nav-link {
  color: var(--text-primary);
  background: var(--bg-muted);
}

.nav-link.active {
  color: var(--text-primary);
  font-weight: 600;
}

.nav-link.active svg {
  opacity: 1;
  color: var(--primary);
}

.nav-item.open > .nav-link .chevron {
  transform: rotate(180deg);
}

/* Dropdown menu */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 196px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  z-index: 200;
}

.nav-item:hover > .dropdown-menu,
.nav-item.open > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 14px;
  color: var(--text-secondary);
  transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-link svg {
  width: 16px;
  height: 16px;
  opacity: 0.72;
  flex-shrink: 0;
}

.dropdown-link:hover,
.dropdown-link.active {
  background: var(--primary-soft);
  color: var(--primary-active);
}

.dropdown-link.active {
  font-weight: 600;
}

/* Header Right Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.search-trigger:hover {
  border-color: #d4d4d8;
  color: var(--text-primary);
  background: var(--bg-subtle);
}

.search-trigger kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: var(--text-muted);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.icon-btn:hover {
  background: var(--bg-muted);
  color: var(--text-primary);
}

.icon-btn.logged-in {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary-active);
  width: auto;
  padding: 0 12px;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
}

.lang-wrapper {
  position: relative;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 120px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  padding: 5px;
  display: none;
  z-index: 210;
}

.lang-wrapper.open .lang-menu {
  display: block;
}

.lang-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 7px 12px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
}

.lang-option:hover,
.lang-option.active {
  background: var(--primary-soft);
  color: var(--primary-active);
  font-weight: 600;
}

.mobile-menu-btn {
  display: none;
}

/* Mobile Drawer */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  z-index: 300;
  display: none;
}

.mobile-drawer-backdrop.open {
  display: block;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 290px;
  max-width: 85vw;
  background: #ffffff;
  z-index: 310;
  padding: 20px;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.24s ease;
  box-shadow: var(--shadow-lg);
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.mobile-nav-group {
  margin-bottom: 6px;
}

.mobile-nav-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 10px 10px 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: var(--primary-soft);
  color: var(--primary-active);
  font-weight: 600;
}

/* ==========================================================================
   Buttons & Badges (Exact #00BBA7 Teal)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.12s ease, box-shadow 0.16s ease;
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 187, 167, 0.24);
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 187, 167, 0.32);
}

.btn-outline {
  background: #ffffff;
  color: var(--text-primary);
  border-color: var(--border);
}

.btn-outline:hover {
  background: var(--bg-subtle);
  border-color: #d4d4d8;
  color: var(--text-primary);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
}

.btn-lg {
  padding: 12px 28px;
  font-size: 15px;
}

.badge-teal {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 4px;
  background: var(--primary);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-active);
  font-size: 12px;
  font-weight: 500;
}

.badge-priority {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  font-size: 12px;
  font-weight: 500;
}

/* ==========================================================================
   Homepage Sections
   ========================================================================== */

.hero-banner {
  width: 100%;
  background: #0b1230;
  overflow: hidden;
  position: relative;
}

.hero-banner img {
  width: 100%;
  max-height: calc(100vh - var(--header-height));
  object-fit: cover;
  object-position: center;
}

.section-block {
  padding: 68px 0;
}

.section-block-sm {
  padding: 44px 0;
}

.section-header-center {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 36px;
}

.section-header-center .badge-teal {
  margin-bottom: 14px;
}

.section-title {
  margin: 0 0 16px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  letter-spacing: -0.015em;
}

.section-subtitle {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.section-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.showcase-media {
  max-width: 1000px;
  margin: 34px auto 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.showcase-media img {
  width: 100%;
  display: block;
}

/* 3-column Community Intro Cards */
.community-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.community-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.community-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 187, 167, 0.4);
}

.community-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.community-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.community-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* ==========================================================================
   RWA Digital Goods Factory Page & Mint Cards
   ========================================================================== */

.rwa-hero-img {
  max-width: 1020px;
  margin: 0 auto 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.rwa-hero-img img {
  width: 100%;
}

.rwa-rules-box {
  max-width: 1020px;
  margin: 0 auto 36px;
  text-align: left;
}

.rwa-rules-box h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 18px;
  color: var(--text-primary);
}

.rwa-rules-box h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--text-primary);
}

.rwa-rules-box p,
.rwa-rules-box li {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--text-secondary);
}

.rwa-rules-box ul,
.rwa-rules-box ol {
  padding-left: 20px;
  margin: 10px 0 14px;
}

.rwa-notice {
  margin-top: 14px;
  padding: 12px 16px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  color: #92400e;
  font-size: 13.5px;
  line-height: 1.7;
}

/* Faithful Recreation of ArcBlock NFT Maker Mint Embed Card */
.mint-card-wrapper {
  max-width: 1020px;
  margin: 28px auto 64px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  background: #f4f6f8;
  display: grid;
  grid-template-columns: 420px 1fr;
}

.mint-card-media {
  background: #e9eef2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.mint-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mint-card-body {
  padding: 28px 32px;
  background: #f5f7f9;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.mint-card-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  color: var(--text-primary);
}

.mint-card-quote {
  position: relative;
  padding: 6px 20px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.mint-card-quote::before {
  content: "“";
  position: absolute;
  left: 0;
  top: -6px;
  font-size: 28px;
  color: #a1a1aa;
  font-family: Georgia, serif;
}

.mint-card-quote::after {
  content: "”";
  position: absolute;
  right: 0;
  bottom: -14px;
  font-size: 28px;
  color: #a1a1aa;
  font-family: Georgia, serif;
}

.mint-meta-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid #e5e7eb;
  padding-top: 16px;
}

.mint-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
}

.mint-meta-label {
  color: var(--text-primary);
  font-weight: 600;
  flex-shrink: 0;
}

.mint-meta-val {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: right;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.chain-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #00bba7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.progress-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.progress-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.progress-track {
  width: 140px;
  height: 7px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 999px;
}

.progress-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.did-addr {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  color: #52525b;
}

.did-prefix {
  color: #6366f1;
}

.copy-did-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
}

.copy-did-btn:hover {
  background: #e4e4e7;
  color: var(--text-primary);
}

.mint-action-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d4d4d8;
  border-radius: var(--radius-md);
  background: #ffffff;
  height: 44px;
  overflow: hidden;
}

.qty-stepper button {
  width: 36px;
  height: 100%;
  border: none;
  background: transparent;
  font-size: 18px;
  color: var(--text-secondary);
  cursor: pointer;
}

.qty-stepper button:hover {
  background: var(--bg-muted);
}

.qty-stepper span {
  min-width: 34px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
}

.mint-submit-btn {
  flex: 1;
  height: 44px;
  font-size: 15px;
  font-weight: 600;
}

/* ==========================================================================
   RWA Exchange (2-Column Alternating Cards)
   ========================================================================== */

.exchange-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
  padding: 48px 0;
  border-bottom: 1px solid var(--border-light);
}

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

.exchange-text {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.exchange-text .badge-teal {
  margin-bottom: 16px;
}

.exchange-text h2 {
  margin: 0 0 14px;
  font-size: 28px;
  font-weight: 700;
}

.exchange-text p {
  margin: 0 0 26px;
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 440px;
}

.exchange-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.exchange-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.exchange-img img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* ==========================================================================
   Blog & Forum Two-Column Layout (Discuss Kit Style)
   ========================================================================== */

.page-top-banner {
  padding: 36px 0 24px;
}

.page-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.page-top-banner h1 {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 700;
}

.page-top-banner p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-secondary);
}

.two-col-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 36px;
  padding-bottom: 64px;
  align-items: start;
}

.sidebar-nav {
  position: sticky;
  top: calc(var(--header-height) + 20px);
}

.sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.sidebar-item:hover {
  background: var(--bg-muted);
  color: var(--text-primary);
}

.sidebar-item.active {
  background: var(--primary-soft);
  color: var(--primary-active);
  font-weight: 600;
}

.sidebar-item .count-pill {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-muted);
}

.sidebar-section-title {
  margin: 22px 0 10px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.tag-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  margin: 0 0 6px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text-secondary);
  font-size: 12.5px;
  cursor: pointer;
}

.tag-chip-btn.active,
.tag-chip-btn:hover {
  border-color: var(--primary);
  color: var(--primary-active);
  background: var(--primary-soft);
}

/* Blog List Row */
.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.sort-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sort-tab {
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  background: transparent;
  font-size: 13.5px;
  color: var(--text-muted);
  cursor: pointer;
}

.sort-tab.active {
  color: var(--text-primary);
  font-weight: 600;
  background: var(--bg-muted);
}

.blog-row {
  display: grid;
  grid-template-columns: 1fr 196px;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background 0.15s;
}

.blog-row:hover .blog-row-title {
  color: var(--primary);
}

.blog-row-title {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
  transition: color 0.15s;
}

.blog-row-excerpt {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-row-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.blog-row-cover {
  width: 196px;
  height: 118px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-muted);
  border: 1px solid var(--border-light);
}

.blog-row-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Forum Row */
.forum-tabs {
  display: flex;
  align-items: center;
  gap: 18px;
}

.forum-tab {
  position: relative;
  padding: 8px 2px;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
}

.forum-tab.active {
  color: var(--primary);
  font-weight: 600;
}

.forum-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -15px;
  height: 2px;
  background: var(--primary);
}

.forum-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 8px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s;
}

.forum-row:hover {
  background: var(--bg-subtle);
}

.forum-row-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.forum-avatar {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e0f7f4, #ccfbf1);
  color: var(--primary-active);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.forum-row-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.45;
}

.forum-row-meta {
  font-size: 12.5px;
  color: var(--text-muted);
}

.forum-row-stats {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 13px;
  flex-shrink: 0;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
}

.page-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text-secondary);
  font-size: 13.5px;
  cursor: pointer;
}

.page-btn:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
}

.page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  font-weight: 600;
}

.page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Article / Discussion Reader View */
.article-reader {
  background: #ffffff;
  padding: 8px 0 48px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 6px 10px;
  border-radius: 6px;
}

.back-link:hover {
  background: var(--bg-muted);
  color: var(--text-primary);
}

.article-cover-lg {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin: 20px 0 28px;
  border: 1px solid var(--border-light);
}

.prose {
  font-size: 16px;
  line-height: 1.9;
  color: #27272a;
}

.prose h1, .prose h2, .prose h3, .prose h4 {
  color: var(--text-primary);
  margin: 28px 0 12px;
  line-height: 1.4;
}

.prose h2 { font-size: 22px; }
.prose h3 { font-size: 18px; }

.prose p {
  margin: 0 0 16px;
}

.prose ul, .prose ol {
  margin: 0 0 16px;
  padding-left: 24px;
}

.prose li {
  margin-bottom: 6px;
}

.prose blockquote {
  margin: 18px 0;
  padding: 12px 18px;
  border-left: 3px solid var(--primary);
  background: var(--bg-subtle);
  border-radius: 0 8px 8px 0;
  color: var(--text-secondary);
}

.prose img {
  border-radius: 10px;
  margin: 18px 0;
  border: 1px solid var(--border-light);
}

.prose a {
  word-break: break-all;
}

/* ==========================================================================
   Docs / Cloud Drive Page
   ========================================================================== */

.docs-collection-card {
  width: 340px;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #ffffff;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.docs-collection-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.docs-card-top {
  height: 58px;
  background: var(--bg-subtle);
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
}

.docs-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #fef3c7;
  color: #b45309;
  font-weight: 800;
  font-size: 12px;
}

.docs-card-body {
  padding: 20px;
}

.docs-card-body h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
}

.docs-card-body p {
  margin: 0 0 16px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.docs-reader-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  min-height: calc(100vh - var(--header-height) - 100px);
}

.docs-sidebar {
  background: #fafafa;
  border-right: 1px solid var(--border-light);
  padding: 24px 16px;
}

.docs-main {
  padding: 36px 48px 64px;
  max-width: 860px;
}

/* ==========================================================================
   Points, Vote, Chat & Empty States
   ========================================================================== */

.center-tabs {
  display: flex;
  justify-content: center;
  border-bottom: 1px solid var(--border-light);
  max-width: 520px;
  margin: 24px auto 28px;
}

.center-tab {
  flex: 1;
  padding: 12px 20px;
  border: none;
  background: transparent;
  font-size: 14.5px;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.center-tab.active {
  color: var(--primary);
  font-weight: 600;
  border-bottom-color: var(--primary);
}

.empty-state {
  text-align: center;
  padding: 84px 20px;
  color: var(--text-muted);
}

.empty-state svg {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  opacity: 0.45;
}

.skeleton-box {
  height: 54px;
  border-radius: 8px;
  background: linear-gradient(90deg, #ececee 25%, #f4f4f6 50%, #ececee 75%);
  background-size: 200% 100%;
  margin-bottom: 14px;
}

/* ==========================================================================
   Modals (Search ⌘K, DID Login, Mint / Redeem Demo)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(3px);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 520px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modalIn 0.16s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.97) translateY(6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.modal-close {
  border: none;
  background: transparent;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-close:hover {
  background: var(--bg-muted);
  color: var(--text-primary);
}

.modal-body {
  padding: 22px;
  max-height: 72vh;
  overflow-y: auto;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 600;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: #18181b;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  box-shadow: var(--shadow-md);
  animation: modalIn 0.18s ease-out;
}

/* Cookie Banner (faithful to original site) */
.cookie-banner {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 20px;
  z-index: 250;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.cookie-banner p {
  margin: 0 0 14px;
}

.cookie-banner .btn {
  width: 100%;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-light);
  background: #ffffff;
  padding: 28px 0;
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-logo img {
  height: 34px;
  width: auto;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-copyright {
  font-size: 13px;
  color: var(--text-muted);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .mint-card-wrapper {
    grid-template-columns: 1fr;
  }
  .mint-card-media {
    max-height: 380px;
  }
  .exchange-item {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .community-cards-grid {
    grid-template-columns: 1fr;
  }
  .two-col-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .sidebar-nav {
    position: static;
  }
  .docs-reader-layout {
    grid-template-columns: 1fr;
  }
  .docs-main {
    padding: 24px 20px;
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding: 0 14px;
  }
  .section-title {
    font-size: 24px;
  }
  .blog-row {
    grid-template-columns: 1fr;
  }
  .blog-row-cover {
    width: 100%;
    height: 180px;
    order: -1;
  }
  .mint-card-body {
    padding: 20px;
  }
  .mint-action-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .qty-stepper {
    justify-content: space-between;
  }
}
