/*
Theme Name: Xinyunshe Theme (新云社)
Theme URI: https://xinyunshe.com
Author: Xinyunshe Team
Description: Premium bilingual theme for 新云社 Xinyunshe
Version: 2.0.0
Text Domain: rwadaily-theme
*/

/* Accessibility & SEO */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

:root {
    /* Surfaces */
    --bg-void: #050507;
    --bg-primary: #08090d;
    --bg-elevated: #0e1015;
    --bg-card: #12141a;
    --bg-card-hover: #181b23;
    --bg-glass: rgba(18, 20, 26, 0.7);

    /* Gold System */
    --gold-100: #fef3c7;
    --gold-200: #fde68a;
    --gold-300: #fcd34d;
    --gold-400: #fbbf24;
    --gold-500: #f59e0b;
    --gold-dim: rgba(251, 191, 36, 0.08);
    --gold-glow: rgba(251, 191, 36, 0.12);

    /* Neutrals */
    --white: #f8f8f2;
    --text-primary: #e8e6e3;
    --text-secondary: #8a8680;
    --text-muted: #5a5652;
    --text-ghost: #3a3835;

    /* Accents */
    --accent-red: #dc2626;
    --accent-red-dim: rgba(220, 38, 38, 0.1);
    --accent-green: #16a34a;
    --accent-cyan: #06b6d4;

    /* Borders */
    --border: rgba(255, 255, 255, 0.04);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.1);
    --border-gold: rgba(251, 191, 36, 0.15);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.5);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.5);
    --shadow-lg: 0 12px 48px rgba(0,0,0,0.6);
    --shadow-gold: 0 0 40px rgba(251, 191, 36, 0.06);

    /* Typography */
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

    /* Layout */
    --container: 1120px;
    --container-narrow: 740px;
    --header-h: 64px;
    --section-gap: 80px;

    /* Motion */
    --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
    --ease-out: cubic-bezier(0, 0, 0.25, 1);
    --duration: 0.3s;
    --duration-slow: 0.5s;
}

/* ═══════════════════════════════════════════
   RESET
   ═══════════════════════════════════════════ */

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

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

body {
    font-family: var(--font-body);
    background: var(--bg-void);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 17px;
    min-height: 100vh;
    position: relative;
}

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

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--duration) var(--ease);
}

a:hover { color: var(--gold-400); }

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

::selection {
    background: var(--gold-400);
    color: var(--bg-void);
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text-ghost); border-radius: 2px; }

/* ═══════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════ */

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

.container-narrow {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 32px;
}

/* ═══════════════════════════════════════════
   HEADER — Minimal, Authoritative
   ═══════════════════════════════════════════ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-h);
    background: rgba(5, 5, 7, 0.8);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 32px;
}

/* Logo — clean, editorial */
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.site-logo .logo-image {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    object-fit: contain;
}

.site-logo span.highlight {
    color: var(--gold-400);
    font-weight: 800;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.main-nav a {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 8px 20px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: all var(--duration) var(--ease);
    position: relative;
}

.main-nav a:hover { color: var(--text-primary); }

.main-nav a.active {
    color: var(--gold-400);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 20px;
    right: 20px;
    height: 1px;
    background: var(--gold-400);
}

/* RWA 100 Nav Button */
.main-nav a.nav-rwa100 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold-400);
    font-weight: 700;
}

.main-nav a.nav-rwa100:hover {
    color: var(--gold-200);
}

.nav-rwa100-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.52rem;
    font-weight: 800;
    line-height: 1;
    padding: 2px 5px;
    border-radius: 2px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    letter-spacing: 0.05em;
    font-family: var(--font-mono);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.35);
    transition: all var(--duration) var(--ease);
}

.main-nav a.nav-rwa100:hover .nav-rwa100-badge {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.6);
    transform: translateY(-1px);
}

.nav-rwa100-icon {
    opacity: 0.75;
    transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
}

.main-nav a.nav-rwa100:hover .nav-rwa100-icon {
    opacity: 1;
    transform: translate(1px, -1px);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border-subtle);
    border-radius: 2px;
    overflow: hidden;
}

.lang-switcher a {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 5px 12px;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all var(--duration) var(--ease);
}

.lang-switcher a:hover { color: var(--text-primary); background: var(--bg-card); }

.lang-switcher a.active {
    background: var(--gold-400);
    color: var(--bg-void);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Search Toggle Button */
.search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: none;
    border: 1px solid var(--border-subtle);
    border-radius: 2px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}

.search-toggle:hover {
    color: var(--gold-400);
    border-color: var(--border-gold);
    background: var(--gold-dim);
}

.header-x-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    background: transparent;
    transition: all var(--duration) var(--ease);
    text-decoration: none;
}

.header-x-link:hover {
    color: var(--white);
    border-color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.06);
    transform: translateY(-1px);
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(5, 5, 7, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 20vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-overlay-inner {
    width: 100%;
    max-width: 680px;
    padding: 0 24px;
    position: relative;
}

.search-close {
    position: absolute;
    top: -60px;
    right: 24px;
    background: none;
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}

.search-close:hover {
    color: var(--gold-400);
    border-color: var(--border-gold);
}

.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 2px solid var(--border-subtle);
    padding-bottom: 16px;
    transition: border-color 0.3s ease;
}

.search-input-wrap:focus-within {
    border-color: var(--gold-400);
}

.search-icon {
    color: var(--text-muted);
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.search-input-wrap:focus-within .search-icon {
    color: var(--gold-400);
}

.search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.search-input::placeholder {
    color: var(--text-ghost);
}

.search-hint {
    margin-top: 16px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-ghost);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ═══════════════════════════════════════════
   SEARCH RESULTS PAGE
   ═══════════════════════════════════════════ */

.search-results-page {
    padding: 48px 0 80px;
    min-height: 60vh;
}

.search-results-header {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.search-results-header h1 {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.search-query-display {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.search-query-display span {
    color: var(--gold-400);
}

.search-results-count {
    margin-top: 8px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-ghost);
    letter-spacing: 0.05em;
}

.search-result-section {
    margin-bottom: 40px;
}

.search-result-section-title {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-400);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-result-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.search-result-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s ease;
}

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

.search-result-item a {
    text-decoration: none;
}

.search-result-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    transition: color 0.2s ease;
    line-height: 1.5;
}

.search-result-item a:hover .search-result-title {
    color: var(--gold-400);
}

.search-result-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.search-result-type {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 2px;
    background: var(--gold-dim);
    color: var(--gold-400);
}

.search-result-type.news {
    background: var(--accent-red-dim);
    color: var(--accent-red);
}

.search-result-date {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-ghost);
}

.search-result-excerpt {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-no-results {
    text-align: center;
    padding: 80px 0;
}

.search-no-results h2 {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 12px;
}

.search-no-results p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ── Search: Project Cards ── */
.search-projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.search-project-card {
    display: flex;
    flex-direction: column;
    padding: 16px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}

.search-project-card:hover {
    border-color: var(--gold-400);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.search-project-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-project-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
}

.search-project-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-project-logo-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold-400), #b08d30);
}

.search-project-logo-ph span {
    font-size: 0.65rem;
    font-weight: 700;
    color: #0a0a0a;
}

.search-project-identity {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.search-project-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-project-card:hover .search-project-name {
    color: var(--gold-400);
}

.search-project-ticker {
    font-size: 0.62rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.search-project-stats {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    margin-left: auto;
}

.search-project-tvl {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.search-project-apy {
    font-size: 0.62rem;
    font-weight: 600;
    color: #4ade80;
    font-family: var(--font-mono);
}

.search-project-desc {
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-project-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--border-subtle);
}

.search-project-tag {
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 2px 8px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid var(--border-gold);
    border-radius: 2px;
    color: var(--gold-400);
}

.search-project-cta {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.2s;
}

.search-project-card:hover .search-project-cta {
    color: var(--gold-400);
}

@media (max-width: 768px) {
    .search-projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 2px;
}

/* ═══════════════════════════════════════════
   HOME LAYOUT — Two-Column Grid
   ═══════════════════════════════════════════ */

.home-layout {
    padding: 40px 0 var(--section-gap);
}

.home-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

.home-main {
    min-width: 0;
}

/* ---- SIDEBAR ---- */
.home-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 24px);
}

.sidebar-section {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--border);
}

.sidebar-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.sidebar-icon {
    width: 22px;
    height: 22px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    background: var(--gold-dim);
    border: 1px solid var(--border-gold);
}

/* Sidebar article list */
.sidebar-articles {
    display: flex;
    flex-direction: column;
}

.sidebar-article-item {
    display: flex;
    flex-direction: column;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    transition: all var(--duration) var(--ease);
    color: var(--text-primary);
}

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

.sidebar-article-item:hover {
    background: var(--bg-elevated);
    color: var(--gold-400);
}

/* Featured first item with cover */
.sidebar-article-item.featured {
    padding: 0;
}

.sidebar-article-cover {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: var(--bg-card);
}

.sidebar-article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease);
    filter: brightness(0.85) saturate(0.8);
}

.sidebar-article-item.featured:hover .sidebar-article-cover img {
    transform: scale(1.03);
    filter: brightness(1);
}

.sidebar-article-cover .category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 2px 8px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    color: var(--gold-400);
    border: 1px solid var(--border-gold);
    border-radius: 1px;
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-family: var(--font-mono);
}

.sidebar-article-body {
    padding: 14px 20px 16px;
}

.sidebar-article-item:not(.featured) .sidebar-article-body {
    padding: 0;
}

.sidebar-cat-tag {
    display: inline-block;
    padding: 1px 6px;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    border-radius: 1px;
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--font-mono);
    margin-bottom: 6px;
}

.sidebar-article-title {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.45;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.01em;
    color: inherit;
}

.sidebar-article-date {
    font-size: 0.65rem;
    color: var(--text-ghost);
    font-family: var(--font-mono);
    letter-spacing: 0.02em;
}

/* ── Sidebar: Featured Projects ── */
.sidebar-projects {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sidebar-project-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--border-subtle);
    transition: background 0.2s;
}

.sidebar-project-card:last-child {
    border-bottom: none;
}

.sidebar-project-card:hover {
    background: rgba(255, 255, 255, 0.03);
}

.sidebar-project-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.sidebar-project-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
}

.sidebar-project-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-project-logo-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold-400), #b08d30);
}

.sidebar-project-logo-ph span {
    font-size: 0.6rem;
    font-weight: 700;
    color: #0a0a0a;
}

.sidebar-project-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.sidebar-project-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 3px;
}

.sidebar-project-v {
    flex-shrink: 0;
    filter: drop-shadow(0 0 2px rgba(212, 175, 55, 0.3));
}

.sidebar-project-ticker {
    font-size: 0.62rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.sidebar-project-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
    margin-left: 8px;
}

.sidebar-project-tvl {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.sidebar-project-apy {
    font-size: 0.62rem;
    font-weight: 600;
    color: #4ade80;
    font-family: var(--font-mono);
}

.sidebar-projects-cta {
    display: block;
    text-align: center;
    padding: 10px 16px;
    margin-top: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--gold-400);
    text-decoration: none;
    border-top: 1px solid var(--border-subtle);
    transition: background 0.2s, color 0.2s;
}

.sidebar-projects-cta:hover {
    background: rgba(212, 175, 55, 0.06);
    color: var(--gold-300);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ═══════════════════════════════════════════
   SECTION HEADERS — Editorial
   ═══════════════════════════════════════════ */

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 0;
    border-bottom: none;
}

.section-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title .icon {
    width: 24px;
    height: 24px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    background: var(--gold-dim);
    border: 1px solid var(--border-gold);
}

.section-title .icon.blue { background: var(--gold-dim); border-color: var(--border-gold); }
.section-title .icon.purple { background: var(--gold-dim); border-color: var(--border-gold); }
.section-title .icon.cyan { background: var(--gold-dim); border-color: var(--border-gold); }

.section-link {
    font-size: 0.65rem;
    color: var(--text-ghost);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color var(--duration) var(--ease);
    font-family: var(--font-mono);
}

.section-link:hover { color: var(--gold-400); }

/* ═══════════════════════════════════════════
   NEWS FILTER BAR — Category Tabs
   ═══════════════════════════════════════════ */

.news-filter-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.news-filter-tab {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border: 1px solid var(--border-subtle);
    border-radius: 2px;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-family: var(--font-mono);
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    text-decoration: none;
}

.news-filter-tab:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    background: var(--bg-elevated);
}

.news-filter-tab.active {
    background: var(--gold-400);
    color: var(--bg-void);
    border-color: var(--gold-400);
}

/* ═══════════════════════════════════════════
   NEWS DATE SEPARATOR
   ═══════════════════════════════════════════ */

.news-date-separator {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px 8px;
    background: var(--bg-primary);
}

.news-date-line {
    flex: 1;
    height: 1px;
    background: var(--border-subtle);
}

.news-date-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-ghost);
    font-family: var(--font-mono);
    white-space: nowrap;
}

/* ═══════════════════════════════════════════
   NEWS FEED — Terminal / Ticker Style
   ═══════════════════════════════════════════ */

.news-feed {
    padding: var(--section-gap) 0 40px;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.news-item {
    display: flex;
    gap: 20px;
    padding: 20px 24px;
    background: var(--bg-primary);
    transition: all var(--duration) var(--ease);
    border-left: 2px solid transparent;
    cursor: pointer;
}

.news-item:hover {
    background: var(--bg-elevated);
    border-left-color: var(--gold-400);
}

.news-item.rwa-highlight {
    border-left-color: var(--accent-red);
    background: var(--bg-elevated);
}

.news-item.rwa-highlight:hover {
    border-left-color: var(--accent-red);
}

.news-item.rwa-highlight .news-item-title {
    color: var(--accent-red);
    font-weight: 600;
}

/* Hourly Roundup Card */
.news-item.hourly-roundup {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.06) 0%, rgba(20, 20, 26, 0.95) 100%);
    border-left: 3px solid var(--gold-400);
    box-shadow: 0 4px 20px -2px rgba(245, 158, 11, 0.08);
    position: relative;
    overflow: hidden;
}

.news-item.hourly-roundup::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.news-item.hourly-roundup:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(25, 25, 32, 0.98) 100%);
    border-left-color: var(--gold-300);
    box-shadow: 0 6px 24px -2px rgba(245, 158, 11, 0.16);
}

.news-item.hourly-roundup .news-time-dot {
    background: var(--gold-400);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
    border-radius: 50%;
    animation: pulse-gold 2s infinite ease-in-out;
}

@keyframes pulse-gold {
    0%, 100% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
        box-shadow: 0 0 14px rgba(245, 158, 11, 0.9);
    }
}

.news-item.hourly-roundup .news-item-title {
    color: var(--gold-400);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.news-item.hourly-roundup .news-item-body {
    color: var(--text-primary);
    line-height: 1.65;
    margin-top: 8px;
}

.news-item.hourly-roundup .news-item-body p {
    margin-bottom: 8px;
}

.news-item.hourly-roundup .news-item-body strong {
    color: var(--gold-300);
    font-weight: 600;
}

.roundup-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: rgba(245, 158, 11, 0.15);
    color: var(--gold-400);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 2px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-mono);
}

/* Time column */
.news-time {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 64px;
    padding-top: 2px;
}

.news-time-dot {
    width: 5px;
    height: 5px;
    border-radius: 1px;
    background: var(--text-ghost);
    margin-bottom: 6px;
}

.news-item.rwa-highlight .news-time-dot {
    background: var(--accent-red);
    box-shadow: 0 0 8px var(--accent-red-dim);
}

.news-time-text {
    font-size: 0.68rem;
    color: var(--text-ghost);
    font-family: var(--font-mono);
    letter-spacing: 0.02em;
}

/* Content */
.news-item-content { flex: 1; }

.news-item-title {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 4px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.news-item-title a { color: inherit; }
.news-item-title a:hover { color: var(--gold-400); }

.news-item-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 8px;
}

.news-item-body {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 12px;
}

.news-item-body p {
    margin-bottom: 8px;
}

.news-item-body p:last-child {
    margin-bottom: 0;
}

.news-item-body a {
    color: var(--gold-400);
    text-decoration: underline;
    text-decoration-color: var(--border-gold);
    text-underline-offset: 2px;
}

.news-item-body a:hover {
    text-decoration-color: var(--gold-400);
}

.news-item-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.68rem;
    color: var(--text-ghost);
    font-family: var(--font-mono);
}

.news-source {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.news-category-tag {
    display: inline-block;
    padding: 1px 6px;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    border-radius: 1px;
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--font-mono);
}

.news-category-tag.rwa {
    border-color: var(--accent-red-dim);
    color: var(--accent-red);
    background: var(--accent-red-dim);
}

.news-category-tag.crypto {
    border-color: var(--crypto-cyan-border);
    color: var(--crypto-cyan);
    background: var(--crypto-cyan-dim);
}

.news-category-tag.macro {
    border-color: var(--macro-amber-border);
    color: var(--macro-amber);
    background: var(--macro-amber-dim);
}

/* ═══════════════════════════════════════════
   ARTICLE CARDS — Magazine Layout
   ═══════════════════════════════════════════ */

.articles-section {
    padding: 40px 0 var(--section-gap);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.article-card {
    background: var(--bg-primary);
    overflow: hidden;
    transition: all var(--duration) var(--ease);
    position: relative;
}

.article-card:hover {
    background: var(--bg-elevated);
}

.article-card:hover .article-card-image img {
    transform: scale(1.03);
    filter: brightness(1.1);
}

.article-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--bg-card);
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all var(--duration-slow) var(--ease);
    filter: brightness(0.9) saturate(0.8);
}

.article-card-image .category-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 3px 10px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    color: var(--gold-400);
    border: 1px solid var(--border-gold);
    border-radius: 1px;
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-family: var(--font-mono);
}

.article-card-body {
    padding: 24px;
}

.article-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.45;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.01em;
}

.article-card-title a { color: var(--text-primary); }
.article-card-title a:hover { color: var(--gold-300); }

.article-card-excerpt {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.68rem;
    color: var(--text-ghost);
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.article-card-date {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.02em;
}

.article-card-readmore {
    color: var(--gold-400);
    font-weight: 600;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-mono);
    transition: gap var(--duration) var(--ease);
}

.article-card-readmore:hover {
    gap: 8px;
    color: var(--gold-300);
}

/* Featured */
.article-card.featured {
    grid-column: span 2;
}

.article-card.featured .article-card-image { height: 320px; }
.article-card.featured .article-card-title { font-size: 1.4rem; font-weight: 500; }
.article-card.featured .article-card-excerpt { -webkit-line-clamp: 4; }

/* ═══════════════════════════════════════════
   SINGLE POST — Long-Form Editorial
   ═══════════════════════════════════════════ */

.single-post-header {
    padding: 80px 0 32px;
    text-align: center;
}

.single-post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
    font-size: 0.65rem;
    color: var(--text-ghost);
    font-family: var(--font-mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.single-post-title {
    font-size: 2.8rem;
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--white);
}

.single-post-excerpt {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

/* Decorative line */
.single-post-header::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--gold-400);
    margin: 0 auto;
    opacity: 0.4;
}

.single-post-content {
    padding: 40px 0 80px;
}

.single-post-content .entry-content {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 32px;
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-secondary);
}

.entry-content h2 {
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--white);
    margin: 56px 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    letter-spacing: -0.02em;
}

.entry-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 40px 0 12px;
    letter-spacing: -0.01em;
}

.entry-content p { margin-bottom: 20px; }

.entry-content strong { color: var(--text-primary); font-weight: 600; }

.entry-content blockquote {
    border-left: 2px solid var(--gold-400);
    background: var(--bg-elevated);
    padding: 24px 28px;
    margin: 32px 0;
    border-radius: 0 2px 2px 0;
    font-style: italic;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.entry-content ul, .entry-content ol {
    padding-left: 20px;
    margin-bottom: 20px;
}

.entry-content li {
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.entry-content li strong {
    color: var(--gold-300);
}

.entry-content a {
    color: var(--gold-400);
    text-decoration: none;
    border-bottom: 1px solid var(--border-gold);
    transition: border-color var(--duration) var(--ease);
}

.entry-content a:hover {
    border-bottom-color: var(--gold-400);
}

.entry-content img {
    border-radius: 2px;
    margin: 32px 0;
    border: 1px solid var(--border);
}

.entry-content pre {
    background: var(--bg-card);
    padding: 24px;
    border-radius: 2px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    margin: 32px 0;
    border: 1px solid var(--border);
}

/* ═══════════════════════════════════════════
   SINGLE NEWS — Compact, Data-Rich
   ═══════════════════════════════════════════ */

.single-news-wrapper {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 64px 32px 80px;
}

.single-news-header {
    margin-bottom: 32px;
}

.single-news-title {
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.35;
    margin-bottom: 20px;
    color: var(--white);
    letter-spacing: -0.02em;
}

.single-news-title.rwa-related {
    color: var(--accent-red);
}

.single-news-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.7rem;
    color: var(--text-ghost);
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-mono);
    letter-spacing: 0.02em;
}

.single-news-content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-secondary);
    padding: 28px 0;
}

.source-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 2px;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 20px;
    transition: all var(--duration) var(--ease);
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.source-link:hover {
    border-color: var(--gold-400);
    color: var(--gold-400);
}

/* ═══════════════════════════════════════════
   NEWS SHARE & CARD
   ═══════════════════════════════════════════ */

.news-actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid var(--border);
}

.news-share-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-share-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-ghost);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-right: 4px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    text-decoration: none;
}

.share-btn:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.share-x:hover { color: #e8e6e3; background: rgba(255,255,255,0.06); }
.share-tg:hover { color: #26a5e4; border-color: rgba(38,165,228,0.3); }
.share-li:hover { color: #0a66c2; border-color: rgba(10,102,194,0.3); }
.share-copy:hover { color: var(--gold-400); border-color: var(--border-gold); }

.news-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(251,191,36,0.06);
    border: 1px solid rgba(251,191,36,0.15);
    border-radius: 6px;
    color: var(--gold-400);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    letter-spacing: 0.02em;
}

.news-card-btn:hover {
    background: rgba(251,191,36,0.12);
    border-color: rgba(251,191,36,0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(251,191,36,0.1);
}

/* Card Modal */
.card-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease);
}

.card-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.card-modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    transform: scale(0.9);
    transition: transform 0.3s var(--ease);
}

.card-modal-overlay.active .card-modal-content {
    transform: scale(1);
}

.card-modal-close {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration) var(--ease);
    z-index: 1;
}

.card-modal-close:hover {
    background: var(--bg-card-hover);
    color: var(--white);
    border-color: var(--border-hover);
}

#newsCardCanvas {
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    max-width: 90vw;
    max-height: 70vh;
    object-fit: contain;
}

.card-modal-actions {
    display: flex;
    gap: 12px;
}

.card-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--gold-400);
    border: none;
    border-radius: 6px;
    color: #08090d;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}

.card-download-btn:hover {
    background: var(--gold-300);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(251,191,36,0.3);
}

/* Card image (replaces canvas for display) */
.news-card-image {
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    max-width: 90vw;
    max-height: 70vh;
    object-fit: contain;
    display: none;
    -webkit-touch-callout: default !important;
    -webkit-user-select: auto !important;
    user-select: auto !important;
}

/* Mobile hint */
.card-mobile-hint {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 8px;
    color: var(--gold-300);
    font-size: 0.82rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.5;
    animation: hintPulse 2s ease-in-out infinite;
}

.card-hint-icon {
    font-size: 1.4rem;
    animation: hintBounce 1.5s ease-in-out infinite;
}

@keyframes hintPulse {
    0%, 100% { border-color: rgba(251, 191, 36, 0.15); }
    50% { border-color: rgba(251, 191, 36, 0.4); }
}

@keyframes hintBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* Desktop: show download btn, hide hint */
.card-action-desktop { display: inline-flex; }
.card-mobile-hint { display: none; }

@media (max-width: 768px) {
    .news-actions-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .news-card-btn {
        width: 100%;
        justify-content: center;
    }
    .news-card-image {
        max-width: 95vw;
        max-height: 65vh;
    }
    /* Mobile: hide download btn, show hint */
    .card-action-desktop { display: none !important; }
    .card-mobile-hint { display: flex !important; }
}

/* ═══════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════ */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 48px 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 2px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all var(--duration) var(--ease);
    font-family: var(--font-mono);
}

.pagination a:hover {
    border-color: var(--gold-400);
    color: var(--gold-400);
}

.pagination .current {
    background: var(--gold-400);
    color: var(--bg-void);
    border-color: var(--gold-400);
}

/* ═══════════════════════════════════════════
   FOOTER — Minimal, Authoritative
   ═══════════════════════════════════════════ */

.site-footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    padding: 60px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand { max-width: 280px; }

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.footer-brand-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.footer-brand-desc {
    font-size: 0.8rem;
    color: var(--text-ghost);
    line-height: 1.7;
}

.footer-social {
    margin-top: 16px;
    display: flex;
    gap: 10px;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-family: var(--font-mono);
    letter-spacing: 0.02em;
    transition: all var(--duration) var(--ease);
    text-decoration: none;
}

.footer-social-link:hover {
    color: var(--white);
    border-color: rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.05);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.footer-social-link svg {
    flex-shrink: 0;
}

.footer-bottom-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: var(--text-ghost);
    border: 1px solid var(--border-subtle);
    transition: all var(--duration) var(--ease);
    text-decoration: none;
}

.footer-bottom-x:hover {
    color: var(--white);
    border-color: rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.06);
    transform: translateY(-1px);
}

.footer-col h4 {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-ghost);
    margin-bottom: 20px;
    font-family: var(--font-mono);
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 12px; }

.footer-col a {
    color: var(--text-muted);
    font-size: 0.8rem;
    transition: color var(--duration) var(--ease);
}

.footer-col a:hover { color: var(--gold-400); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 0.68rem;
    color: var(--text-ghost);
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 1024px) {
    .home-grid { grid-template-columns: 1fr 300px; gap: 28px; }
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
    .article-card.featured { grid-column: span 2; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    :root { --section-gap: 40px; }

    /* ── Header: Opaque on mobile to prevent content bleed-through ── */
    .site-header {
        background: var(--bg-primary);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .header-inner {
        padding: 0 16px;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 8px 0;
        border-bottom: 1px solid var(--border);
        z-index: 999;
        box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    }

    .main-nav.active { display: flex; }

    .main-nav a {
        padding: 14px 24px;
        font-size: 0.82rem;
        border-bottom: 1px solid var(--border-subtle);
    }

    .main-nav a.active::after { display: none; }

    .main-nav a:last-child { border-bottom: none; }

    .mobile-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0;
        font-size: 1.2rem;
    }

    .lang-switcher {
        margin-right: 8px;
    }

    .lang-switcher a {
        padding: 5px 10px;
        font-size: 0.6rem;
    }

    .search-toggle {
        width: 32px;
        height: 32px;
    }

    .header-x-link {
        width: 32px;
        height: 32px;
    }

    .header-x-link svg {
        width: 14px;
        height: 14px;
    }

    .search-toggle svg {
        width: 15px;
        height: 15px;
    }

    .search-overlay {
        padding-top: 12vh;
    }

    .search-input {
        font-size: 1.2rem;
    }

    .search-close {
        top: -50px;
        width: 36px;
        height: 36px;
    }

    .search-result-title {
        font-size: 1rem;
    }

    .search-query-display {
        font-size: 1.3rem;
    }

    /* ── Home Layout ── */
    .home-layout { padding: 24px 0 var(--section-gap); }

    .home-grid {
        grid-template-columns: 1fr;
    }

    .home-sidebar {
        position: static;
    }

    /* ── Section Headers ── */
    .section-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    /* ── Filter Tabs: Horizontal Scroll ── */
    .news-filter-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
        margin-bottom: 16px;
        gap: 6px;
    }

    .news-filter-bar::-webkit-scrollbar { display: none; }

    .news-filter-tab {
        flex-shrink: 0;
        padding: 7px 14px;
        font-size: 0.62rem;
    }

    /* ── News Feed ── */
    .news-item {
        padding: 16px;
        gap: 12px;
    }

    .news-time {
        min-width: 44px;
    }

    .news-time-text {
        font-size: 0.62rem;
    }

    .news-item-title {
        font-size: 0.88rem;
        line-height: 1.45;
    }

    .news-item-body {
        font-size: 0.82rem;
        line-height: 1.65;
        margin-bottom: 10px;
    }

    .news-item-meta {
        flex-wrap: wrap;
        gap: 8px;
    }

    .news-date-separator {
        padding: 12px 16px 6px;
        gap: 12px;
    }

    /* ── Articles Grid ── */
    .articles-grid { grid-template-columns: 1fr; }
    .article-card.featured { grid-column: span 1; }
    .article-card.featured .article-card-image { height: 200px; }

    /* ── Article Detail ── */
    .single-post-title { font-size: 1.6rem; line-height: 1.35; }
    .single-news-title { font-size: 1.3rem; line-height: 1.4; }

    .single-post-meta {
        flex-wrap: wrap;
        gap: 8px;
    }

    .single-post-content {
        font-size: 0.92rem;
        line-height: 1.75;
    }

    .single-post-content blockquote {
        padding: 12px 16px;
        margin: 16px 0;
    }

    .single-post-content img {
        border-radius: 2px;
    }

    /* ── Sidebar: Stack below ── */
    .sidebar-section {
        margin-bottom: 24px;
    }

    .sidebar-article-cover { height: 180px; }

    /* ── Footer ── */
    .site-footer {
        padding: 36px 0 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 24px;
    }

    .footer-brand {
        max-width: 100%;
        margin-bottom: 28px;
        padding-bottom: 24px;
        border-bottom: 1px solid var(--border);
    }

    .footer-brand-name {
        font-size: 0.88rem;
        margin-bottom: 10px;
    }

    .footer-brand-desc {
        font-size: 0.72rem;
        line-height: 1.6;
    }

    .footer-links {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .footer-col h4 {
        font-size: 0.5rem;
        margin-bottom: 12px;
    }

    .footer-col li {
        margin-bottom: 8px;
    }

    .footer-col a {
        font-size: 0.72rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 4px;
        text-align: center;
        padding-top: 20px;
        font-size: 0.58rem;
    }

    /* ── Container Padding ── */
    .container, .container-narrow { padding: 0 16px; }

    /* ── News Archive ── */
    .news-archive-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    :root { --section-gap: 32px; }

    /* ── Extra-Small: Tighter Spacing ── */
    .home-layout { padding: 16px 0 var(--section-gap); }
    .home-grid { gap: 16px; }

    .site-logo {
        font-size: 0.9rem;
    }

    .logo-image {
        height: 22px;
    }

    /* ── News Items: Compact Mode ── */
    .news-item {
        padding: 14px 12px;
        gap: 10px;
    }

    .news-time {
        min-width: 38px;
    }

    .news-time-text {
        font-size: 0.58rem;
    }

    .news-item-title {
        font-size: 0.84rem;
    }

    .news-item-body {
        font-size: 0.78rem;
        line-height: 1.6;
        /* Clamp body text on small screens */
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .news-category-tag {
        font-size: 0.5rem;
        padding: 1px 5px;
    }

    /* ── Date Separators ── */
    .news-date-separator {
        padding: 10px 12px 4px;
    }

    .news-date-label {
        font-size: 0.56rem;
    }

    /* ── Article Detail ── */
    .single-post-title { font-size: 1.35rem; }
    .single-news-title { font-size: 1.15rem; }
    .single-post-content { font-size: 0.88rem; }

    /* ── Sidebar ── */
    .sidebar-article-cover { height: 140px; }
    .sidebar-article-title { font-size: 0.82rem; }

    /* ── Footer ── */
    .footer-brand-desc { font-size: 0.78rem; }

    /* ── Filter Tabs: Slightly Smaller ── */
    .news-filter-tab {
        padding: 6px 12px;
        font-size: 0.56rem;
    }

    .section-title {
        font-size: 0.62rem;
    }

    .section-link {
        font-size: 0.58rem;
    }
}

/* Safe area for notch devices (iOS) */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .site-footer {
        padding-bottom: calc(24px + env(safe-area-inset-bottom));
    }

    .site-header .header-inner {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
}

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeInUp 0.4s var(--ease-out) forwards;
    opacity: 0;
}

.animate-in:nth-child(1) { animation-delay: 0.03s; }
.animate-in:nth-child(2) { animation-delay: 0.06s; }
.animate-in:nth-child(3) { animation-delay: 0.09s; }
.animate-in:nth-child(4) { animation-delay: 0.12s; }
.animate-in:nth-child(5) { animation-delay: 0.15s; }
.animate-in:nth-child(6) { animation-delay: 0.18s; }
.animate-in:nth-child(7) { animation-delay: 0.21s; }
.animate-in:nth-child(8) { animation-delay: 0.24s; }

/* Glow effect on hover for news items */
.news-item:hover .news-time-dot {
    background: var(--gold-400);
    box-shadow: 0 0 8px var(--gold-glow);
}

/* Real-time: New item inserted via WebSocket */
.news-item.new-item {
    opacity: 0;
    animation: slideInNew 0.5s ease forwards, newItemFlash 1.5s ease;
}

@keyframes slideInNew {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes newItemFlash {
    0% { background: rgba(212, 175, 55, 0.15); }
    100% { background: transparent; }
}

/* Loading Spinner */
.news-load-more {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 0;
    min-height: 80px;
}

.news-spinner {
    display: flex;
    gap: 8px;
    align-items: center;
}

.spinner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold-400);
    opacity: 0.4;
    animation: spinBounce 1.2s infinite ease-in-out;
}

.spinner-dot:nth-child(2) { animation-delay: 0.2s; }
.spinner-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes spinBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.3; }
    40% { transform: scale(1); opacity: 1; }
}

/* End of Feed */
.news-end-msg {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-ghost);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ═══════════════════════════════════════════
   ARTICLE FEED — Clean, Generous Design
   ═══════════════════════════════════════════ */

/* Macro color tokens */
:root {
    --macro-amber: #f59e0b;
    --macro-amber-dim: rgba(245, 158, 11, 0.1);
    --macro-amber-border: rgba(245, 158, 11, 0.2);
    --crypto-cyan: #06b6d4;
    --crypto-cyan-dim: rgba(6, 182, 212, 0.1);
    --crypto-cyan-border: rgba(6, 182, 212, 0.2);
}

.articles-feed-section {
    padding: 60px 0 100px;
}

/* ── Page Header ── */
.af-page-header {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.af-page-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.2;
}

.af-page-desc {
    font-size: 0.82rem;
    color: var(--text-ghost);
    font-family: var(--font-mono);
    letter-spacing: 0.06em;
}

/* ── Filter Bar ── */
.af-filter-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 40px;
}

.af-filter-tab {
    padding: 8px 20px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
    transition: all var(--duration) var(--ease);
    text-decoration: none;
}

.af-filter-tab:hover {
    border-color: var(--text-ghost);
    color: var(--text-primary);
}

.af-filter-tab.active {
    background: var(--gold-400);
    color: var(--bg-primary);
    border-color: var(--gold-400);
}

/* ── Category Tags (shared) ── */
.af-cat-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 1px;
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-family: var(--font-mono);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
}

.af-cat-tag.rwa {
    border-color: var(--accent-red-dim);
    color: var(--accent-red);
    background: var(--accent-red-dim);
}

.af-cat-tag.crypto {
    border-color: var(--crypto-cyan-border);
    color: var(--crypto-cyan);
    background: var(--crypto-cyan-dim);
}

.af-cat-tag.macro {
    border-color: var(--macro-amber-border);
    color: var(--macro-amber);
    background: var(--macro-amber-dim);
}

/* ═══════════════════════════════════════════
   PINNED SECTION
   ═══════════════════════════════════════════ */

.af-pinned-section {
    margin-bottom: 48px;
}

.af-pinned-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-ghost);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.af-pin-icon {
    font-size: 0.8rem;
}

.af-pinned-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.af-pinned-item {
    display: block;
    padding: 28px 24px;
    background: var(--bg-primary);
    transition: all var(--duration) var(--ease);
    text-decoration: none;
    color: inherit;
}

.af-pinned-item:hover {
    background: var(--bg-elevated);
}

.af-pinned-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.af-time-label {
    font-size: 0.62rem;
    color: var(--text-ghost);
    font-family: var(--font-mono);
    letter-spacing: 0.02em;
}

.af-pinned-title {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.af-pinned-item:hover .af-pinned-title {
    color: var(--gold-400);
}

.af-pinned-excerpt {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ═══════════════════════════════════════════
   DATE SEPARATOR (feed)
   ═══════════════════════════════════════════ */

.af-date-sep {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0 12px;
}

.af-date-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.af-date-label {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: var(--text-ghost);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ═══════════════════════════════════════════
   FEED ITEMS — Clean Card Style
   ═══════════════════════════════════════════ */

.af-feed {
    display: flex;
    flex-direction: column;
}

.af-item {
    border-bottom: 1px solid var(--border);
    transition: background var(--duration) var(--ease);
}

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

.af-item:hover {
    background: var(--bg-elevated);
}

.af-item-link {
    display: block;
    padding: 32px 0;
    color: inherit;
    text-decoration: none;
}

.af-item-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.af-source {
    font-size: 0.62rem;
    color: var(--text-ghost);
    font-family: var(--font-mono);
    letter-spacing: 0.02em;
}

.af-time {
    font-size: 0.62rem;
    color: var(--text-ghost);
    font-family: var(--font-mono);
    letter-spacing: 0.02em;
    margin-left: auto;
}

.af-item-title {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
    transition: color var(--duration) var(--ease);
}

.af-item:hover .af-item-title {
    color: var(--gold-400);
}

.af-item-excerpt {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 720px;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 768px) {
    .articles-feed-section {
        padding: 32px 0 60px;
    }

    .af-page-header {
        margin-bottom: 28px;
        padding-bottom: 24px;
    }

    .af-page-title {
        font-size: 1.5rem;
    }

    .af-filter-bar {
        margin-bottom: 28px;
        flex-wrap: wrap;
    }

    .af-filter-tab {
        padding: 6px 14px;
        font-size: 0.62rem;
    }

    .af-pinned-list {
        grid-template-columns: 1fr;
    }

    .af-pinned-item {
        padding: 22px 18px;
    }

    .af-pinned-title {
        font-size: 0.95rem;
    }

    .af-item-link {
        padding: 24px 0;
    }

    .af-item-title {
        font-size: 1.05rem;
    }

    .af-item-excerpt {
        font-size: 0.82rem;
        -webkit-line-clamp: 2;
    }
}

@media (max-width: 480px) {
    .articles-feed-section {
        padding: 24px 0 40px;
    }

    .af-page-title {
        font-size: 1.3rem;
    }

    .af-page-desc {
        font-size: 0.72rem;
    }

    .af-filter-tab {
        padding: 5px 10px;
        font-size: 0.58rem;
    }

    .af-pinned-item {
        padding: 18px 14px;
    }

    .af-pinned-title {
        font-size: 0.88rem;
    }

    .af-item-link {
        padding: 20px 0;
    }

    .af-item-title {
        font-size: 0.95rem;
    }

    .af-item-excerpt {
        font-size: 0.78rem;
    }

    .af-item-top {
        flex-wrap: wrap;
        gap: 8px;
    }

    .af-cat-tag {
        font-size: 0.5rem;
        padding: 1px 6px;
    }
}

/* ═══════════════════════════════════════════
   RWA PROJECT DATABASE — Listing Page
   ═══════════════════════════════════════════ */

.rwa-db-section {
    padding: 48px 0 100px;
}

/* ── Page Header ── */
.rwa-db-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.rwa-db-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 14px;
}

.rwa-db-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-dim);
    border: 1px solid var(--border-gold);
    border-radius: 6px;
    font-size: 1.2rem;
}

.rwa-db-desc {
    font-size: 0.82rem;
    color: var(--text-ghost);
    font-family: var(--font-mono);
    letter-spacing: 0.04em;
    max-width: 550px;
}

.rwa-db-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}

.rwa-db-rwa100-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid var(--border-gold);
    border-radius: 4px;
    color: var(--gold-300);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: all var(--duration) var(--ease);
    text-decoration: none;
}

.rwa-db-rwa100-btn:hover {
    background: rgba(251, 191, 36, 0.16);
    border-color: var(--gold-400);
    color: var(--white);
    box-shadow: 0 0 16px rgba(251, 191, 36, 0.2);
    transform: translateY(-1px);
}

.rwa-db-rwa100-badge {
    font-size: 0.55rem;
    font-weight: 800;
    font-family: var(--font-mono);
    padding: 2px 6px;
    border-radius: 2px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    letter-spacing: 0.06em;
}

.rwa-db-rwa100-btn svg {
    opacity: 0.8;
    transition: transform var(--duration) var(--ease);
}

.rwa-db-rwa100-btn:hover svg {
    opacity: 1;
    transform: translate(1px, -1px);
}

.rwa-db-stat {
    text-align: right;
}

.rwa-db-stat-num {
    display: block;
    font-size: 2.4rem;
    font-weight: 300;
    color: var(--gold-400);
    line-height: 1;
    letter-spacing: -0.03em;
}

.rwa-db-stat-label {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-ghost);
    margin-top: 4px;
    display: block;
}

/* ── Search Bar ── */
.rwa-db-search-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 2px;
    margin-bottom: 20px;
    transition: border-color 0.3s ease;
}

.rwa-db-search-wrap:focus-within {
    border-color: var(--gold-400);
}

.rwa-db-search-icon {
    color: var(--text-ghost);
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.rwa-db-search-wrap:focus-within .rwa-db-search-icon {
    color: var(--gold-400);
}

.rwa-db-search {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
}

.rwa-db-search::placeholder {
    color: var(--text-ghost);
}

/* ── Filter Bar ── */
.rwa-db-filter-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.rwa-db-filter-tab {
    padding: 7px 16px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
    transition: all var(--duration) var(--ease);
    white-space: nowrap;
}

.rwa-db-filter-tab:hover {
    border-color: var(--text-ghost);
    color: var(--text-primary);
}

.rwa-db-filter-tab.active {
    background: var(--gold-400);
    color: var(--bg-primary);
    border-color: var(--gold-400);
}

/* ── Project Card Grid ── */
.rwa-db-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.rwa-db-card {
    display: flex;
    flex-direction: column;
    padding: 28px 24px;
    background: var(--bg-primary);
    transition: all var(--duration) var(--ease);
    text-decoration: none;
    color: inherit;
    position: relative;
}

.rwa-db-card:hover {
    background: var(--bg-elevated);
    color: inherit;
}

/* Card Header: Logo + Name */
.rwa-db-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.rwa-db-card-logo {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
}

.rwa-db-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.rwa-db-card-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold-dim), var(--bg-card));
}

.rwa-db-card-logo-placeholder span {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--gold-400);
    letter-spacing: 0.05em;
}

.rwa-db-card-identity {
    min-width: 0;
}

.rwa-db-card-name {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color var(--duration) var(--ease);
}

.rwa-db-card:hover .rwa-db-card-name {
    color: var(--gold-400);
}

.rwa-db-card-ticker {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-ghost);
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Card Description */
.rwa-db-card-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* Card Metrics */
.rwa-db-card-metrics {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
    padding: 12px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.rwa-db-metric {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rwa-db-metric-label {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-ghost);
}

.rwa-db-metric-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.rwa-db-apy {
    color: var(--accent-green);
}

/* Card Footer */
.rwa-db-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.rwa-db-asset-tag {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid var(--border-gold);
    color: var(--gold-400);
    background: var(--gold-dim);
    border-radius: 1px;
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--font-mono);
}

.rwa-db-card-chains {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.rwa-db-chain-pill {
    display: inline-block;
    padding: 2px 6px;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    border-radius: 1px;
    font-size: 0.5rem;
    font-weight: 600;
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
}

/* KYC Badge */
.rwa-db-kyc-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.7rem;
    opacity: 0.5;
}

/* Empty State */
.rwa-db-empty {
    text-align: center;
    padding: 100px 0;
}

.rwa-db-empty h2 {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 12px;
}

.rwa-db-empty p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════
   RWA PROJECT DETAIL PAGE
   ═══════════════════════════════════════════ */

.rwa-detail-section {
    padding: 32px 0 100px;
}

/* ── Breadcrumb ── */
.rwa-detail-breadcrumb {
    margin-bottom: 28px;
}

.rwa-detail-breadcrumb a {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-ghost);
    letter-spacing: 0.05em;
    transition: color var(--duration) var(--ease);
}

.rwa-detail-breadcrumb a:hover {
    color: var(--gold-400);
}

/* ── Hero Header ── */
.rwa-detail-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.rwa-detail-hero-left {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex: 1;
    min-width: 0;
}

.rwa-detail-logo {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
}

.rwa-detail-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.rwa-detail-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold-dim), var(--bg-card));
}

.rwa-detail-logo-placeholder span {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold-400);
}

.rwa-detail-identity {
    min-width: 0;
}

.rwa-detail-name {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--white);
    margin-bottom: 10px;
}

.rwa-detail-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.rwa-detail-ticker {
    display: inline-block;
    padding: 3px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 2px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.08em;
}

.rwa-detail-asset-badge {
    display: inline-block;
    padding: 3px 10px;
    background: var(--gold-dim);
    border: 1px solid var(--border-gold);
    border-radius: 2px;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 700;
    color: var(--gold-400);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.rwa-detail-kyc-badge {
    display: inline-block;
    padding: 3px 10px;
    background: var(--accent-red-dim);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 2px;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 700;
    color: var(--accent-red);
    letter-spacing: 0.08em;
}

.rwa-detail-tagline {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Hero Actions */
.rwa-detail-hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    flex-shrink: 0;
}

.rwa-detail-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 2px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: all var(--duration) var(--ease);
    text-decoration: none;
    white-space: nowrap;
}

.rwa-detail-btn.primary {
    background: var(--gold-400);
    color: var(--bg-void);
    border: 1px solid var(--gold-400);
}

.rwa-detail-btn.primary:hover {
    background: var(--gold-300);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.2);
    color: var(--bg-void);
}

.rwa-detail-social-row {
    display: flex;
    gap: 6px;
}

.rwa-detail-social {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 0.78rem;
    transition: all var(--duration) var(--ease);
    text-decoration: none;
}

.rwa-detail-social:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* ── Key Metrics Banner ── */
.rwa-detail-metrics-banner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 40px;
}

.rwa-metric-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px 24px;
    background: var(--bg-primary);
}

.rwa-metric-label {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-ghost);
}

.rwa-metric-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.rwa-metric-large {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
}

.rwa-metric-apy {
    color: var(--accent-green);
}

/* ── Content Grid: Main + Sidebar ── */
.rwa-detail-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

.rwa-detail-main {
    min-width: 0;
}

/* ── Detail Modules ── */
.rwa-detail-module {
    margin-bottom: 40px;
}

.rwa-module-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.rwa-module-icon {
    font-size: 0.82rem;
}

.rwa-module-body {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.rwa-module-body.entry-content {
    padding: 28px;
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-secondary);
}

/* ── Data Tables ── */
.rwa-detail-table {
    width: 100%;
    border-collapse: collapse;
}

.rwa-detail-table tr {
    border-bottom: 1px solid var(--border);
}

.rwa-detail-table tr:last-child {
    border-bottom: none;
}

.rwa-detail-table td {
    padding: 14px 20px;
    font-size: 0.88rem;
    color: var(--text-primary);
    vertical-align: middle;
}

.rwa-td-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text-ghost);
    white-space: nowrap;
    width: 180px;
}

.rwa-detail-table code {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--gold-400);
    background: var(--gold-dim);
    padding: 2px 6px;
    border-radius: 2px;
}

.rwa-address {
    word-break: break-all;
    font-size: 0.7rem !important;
}

.rwa-chain-tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

/* ── Sidebar Cards ── */
.rwa-detail-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 24px);
}

.rwa-sidebar-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 16px;
}

.rwa-sidebar-card-title {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-ghost);
    padding: 16px 20px;
    margin: 0;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-mono);
}

.rwa-sidebar-dl {
    padding: 4px 0;
    margin: 0;
}

.rwa-sidebar-dl dt {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-ghost);
    padding: 12px 20px 2px;
    text-transform: uppercase;
}

.rwa-sidebar-dl dd {
    font-size: 0.85rem;
    color: var(--text-primary);
    padding: 0 20px 12px;
    margin: 0;
    border-bottom: 1px solid var(--border);
}

.rwa-sidebar-dl dd:last-child {
    border-bottom: none;
}

/* Badges */
.rwa-badge-required {
    display: inline-block;
    padding: 2px 8px;
    background: var(--accent-red-dim);
    border: 1px solid rgba(220, 38, 38, 0.2);
    color: var(--accent-red);
    border-radius: 2px;
    font-size: 0.65rem;
    font-weight: 700;
    font-family: var(--font-mono);
}

.rwa-badge-optional {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(22, 163, 74, 0.08);
    border: 1px solid rgba(22, 163, 74, 0.2);
    color: var(--accent-green);
    border-radius: 2px;
    font-size: 0.65rem;
    font-weight: 700;
    font-family: var(--font-mono);
}

/* Fundraise Section */
.rwa-fundraise-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.rwa-fundraise-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--text-ghost);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rwa-fundraise-amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold-400);
    letter-spacing: -0.02em;
}

.rwa-investors-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 16px 20px;
}

.rwa-investor-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 2px;
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.rwa-investor-pill.lead {
    border-color: var(--border-gold);
    color: var(--gold-400);
}

.rwa-investor-pill small {
    font-family: var(--font-mono);
    font-size: 0.5rem;
    font-weight: 700;
    color: var(--gold-400);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rwa-rounds-list {
    padding: 0;
}

.rwa-round-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 0.82rem;
}

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

.rwa-round-name {
    color: var(--text-secondary);
    font-weight: 500;
}

.rwa-round-amount {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.82rem;
}

/* ── Social Media Links Grid ── */
.rwa-social-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.rwa-social-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.25s ease;
}

.rwa-social-link-card:hover {
    border-color: var(--gold-400);
    background: rgba(212, 175, 55, 0.05);
    color: var(--gold-400);
    transform: translateY(-2px);
}

.rwa-social-link-card svg {
    opacity: 0.7;
    transition: opacity 0.2s;
}

.rwa-social-link-card:hover svg {
    opacity: 1;
    color: var(--gold-400);
}

.rwa-social-link-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
}

.rwa-social-link-handle {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Team Members Grid ── */
.rwa-team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.rwa-team-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    transition: border-color 0.2s;
}

.rwa-team-card:hover {
    border-color: var(--border-gold);
}

.rwa-team-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-400), #b08d30);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rwa-team-avatar span {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0a0a0a;
}

.rwa-team-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rwa-team-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rwa-team-role {
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rwa-team-twitter {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    transition: all 0.2s;
}

.rwa-team-twitter:hover {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold-400);
}

/* ── Related News Section ── */
.rwa-related-news-section {
    margin-top: 48px;
    padding-top: 36px;
    border-top: 1px solid var(--border);
}

.rwa-related-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--gold-400);
    color: #0a0a0a;
    font-size: 0.65rem;
    font-weight: 700;
    margin-left: 8px;
    vertical-align: middle;
}

.rwa-related-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.rwa-related-news-card {
    display: flex;
    flex-direction: column;
    padding: 18px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
    min-height: 140px;
}

.rwa-related-news-card:hover {
    border-color: var(--gold-400);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.rwa-related-news-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.rwa-related-news-type {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.rwa-related-news-time {
    font-size: 0.65rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.rwa-related-news-title {
    flex: 1;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    transition: color 0.2s;
}

.rwa-related-news-card:hover .rwa-related-news-title {
    color: var(--gold-400);
}

.rwa-related-news-bottom {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    flex-shrink: 0;
}

.rwa-related-news-cat {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    border-radius: 2px;
    color: var(--text-secondary);
}

.rwa-related-news-cat.rwa {
    border-color: var(--border-gold);
    color: var(--gold-400);
    background: rgba(212, 175, 55, 0.08);
}

.rwa-related-news-source {
    font-size: 0.62rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 120px;
}
/* ── Verified Badge ── */
.rwa-verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-400);
    vertical-align: middle;
    margin-left: 6px;
    position: relative;
    cursor: help;
    filter: drop-shadow(0 0 4px rgba(212, 175, 55, 0.4));
    transition: filter 0.2s;
}

.rwa-verified-badge:hover {
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.7));
}

.rwa-verified-badge::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 10px;
    background: var(--gold-400);
    color: #0a0a0a;
    font-size: 0.62rem;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.rwa-verified-badge:hover::after {
    opacity: 1;
}

.rwa-verified-badge-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-400);
    vertical-align: middle;
    margin-left: 4px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 3px rgba(212, 175, 55, 0.3));
}

/* ═══════════════════════════════════════════
   RWA DATABASE RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 1024px) {
    .rwa-db-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rwa-detail-grid {
        grid-template-columns: 1fr 300px;
        gap: 28px;
    }
}

@media (max-width: 768px) {
    .rwa-db-section {
        padding: 32px 0 60px;
    }

    .rwa-db-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .rwa-db-stats {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 16px;
    }

    .rwa-db-title {
        font-size: 1.5rem;
    }

    .rwa-db-stat {
        text-align: right;
    }

    .rwa-db-stat-num {
        font-size: 1.8rem;
    }

    .rwa-db-grid {
        grid-template-columns: 1fr;
    }

    .rwa-db-filter-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .rwa-db-filter-bar::-webkit-scrollbar {
        display: none;
    }

    .rwa-db-filter-tab {
        flex-shrink: 0;
    }

    /* Detail page */
    .rwa-detail-section {
        padding: 24px 0 60px;
    }

    .rwa-detail-hero {
        flex-direction: column;
        gap: 20px;
    }

    .rwa-detail-hero-left {
        flex-direction: column;
        align-items: flex-start;
    }

    .rwa-detail-hero-actions {
        align-items: flex-start;
        width: 100%;
    }

    .rwa-detail-btn {
        width: 100%;
        justify-content: center;
    }

    .rwa-detail-name {
        font-size: 1.5rem;
    }

    .rwa-detail-metrics-banner {
        grid-template-columns: repeat(2, 1fr);
    }

    .rwa-detail-grid {
        grid-template-columns: 1fr;
    }

    .rwa-detail-sidebar {
        position: static;
    }

    .rwa-social-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rwa-team-grid {
        grid-template-columns: 1fr;
    }

    .rwa-related-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rwa-td-label {
        width: 120px;
        font-size: 0.62rem;
    }

    .rwa-detail-table td {
        padding: 12px 16px;
        font-size: 0.82rem;
    }
}

@media (max-width: 480px) {
    .rwa-db-title {
        font-size: 1.2rem;
    }

    .rwa-db-desc {
        font-size: 0.72rem;
    }

    .rwa-db-card {
        padding: 20px 16px;
    }

    .rwa-db-card-name {
        font-size: 0.92rem;
    }

    .rwa-db-card-desc {
        font-size: 0.72rem;
    }

    .rwa-detail-name {
        font-size: 1.25rem;
    }

    .rwa-detail-metrics-banner {
        grid-template-columns: 1fr 1fr;
    }

    .rwa-metric-card {
        padding: 14px 16px;
    }

    .rwa-metric-value {
        font-size: 0.95rem;
    }

    .rwa-metric-large {
        font-size: 1.2rem;
    }

    .rwa-module-body.entry-content {
        padding: 20px 16px;
        font-size: 0.88rem;
    }

    .rwa-related-news-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════
   MARKET PULSE PANEL — Sidebar Widget
   ═══════════════════════════════════════════ */

.mp-panel {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 20px;
}

.mp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 14px;
    border-bottom: 1px solid var(--border);
}

.mp-title {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.mp-title-icon {
    width: 22px;
    height: 22px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.15);
}

.mp-live-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: mp-pulse 2s ease-in-out infinite;
}

@keyframes mp-pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

/* ── Fear & Greed Section ── */
.mp-fng {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.mp-fng-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.mp-fng-title {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-ghost);
}

.mp-fng-score {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.mp-fng-value {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1;
    transition: color 0.5s ease;
}

.mp-fng-label {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.5s ease;
}

/* Gauge bar */
.mp-fng-gauge {
    position: relative;
    height: 6px;
    border-radius: 3px;
    background: var(--bg-card);
    overflow: visible;
    margin-top: 4px;
}

.mp-fng-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #ef4444, #f97316, #eab308, #22c55e);
    width: 0%;
    transition: width 1s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.mp-fng-track {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg,
        rgba(239,68,68,0.12),
        rgba(249,115,22,0.12),
        rgba(234,179,8,0.12),
        rgba(34,197,94,0.12)
    );
}

.mp-fng-dot {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
    box-shadow: 0 0 8px rgba(0,0,0,0.4);
    transition: left 1s cubic-bezier(0.25, 0.1, 0.25, 1), background 0.5s ease;
    z-index: 1;
    left: 0%;
}

/* ── Coins List ── */
.mp-coins {
    padding: 0;
}

.mp-coins-header {
    display: flex;
    align-items: center;
    padding: 10px 20px 6px;
    font-size: 0.52rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-ghost);
    gap: 0;
}

.mp-coins-header span:nth-child(1) { width: 24px; flex-shrink: 0; }
.mp-coins-header span:nth-child(2) { flex: 1; min-width: 0; }
.mp-coins-header span:nth-child(3) { width: 56px; text-align: center; flex-shrink: 0; }
.mp-coins-header span:nth-child(4) { width: 72px; text-align: right; flex-shrink: 0; }
.mp-coins-header span:nth-child(5) { width: 60px; text-align: right; flex-shrink: 0; }

.mp-coins-list {
    display: flex;
    flex-direction: column;
}

a.mp-coin-row {
    display: flex;
    align-items: center;
    padding: 7px 20px;
    gap: 0;
    transition: background 0.15s ease;
    border-bottom: 1px solid rgba(255,255,255,0.02);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

a.mp-coin-row:last-child {
    border-bottom: none;
}

a.mp-coin-row:hover {
    background: var(--bg-card-hover);
    color: inherit;
}

.mp-coin-rank {
    width: 24px;
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 500;
    color: var(--text-ghost);
}

.mp-coin-info {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mp-coin-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
}

.mp-coin-symbol {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.mp-coin-spark {
    width: 56px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mp-sparkline {
    width: 100%;
    height: 100%;
}

.mp-coin-price {
    width: 72px;
    flex-shrink: 0;
    text-align: right;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-primary);
}

.mp-coin-change {
    width: 60px;
    flex-shrink: 0;
    text-align: right;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 600;
}

.mp-up { color: #22c55e; }
.mp-down { color: #ef4444; }

/* ── Global Stats Footer ── */
.mp-global {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    background: var(--bg-card);
}

.mp-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mp-stat:nth-child(2) {
    text-align: center;
}

.mp-stat:nth-child(3) {
    text-align: right;
}

.mp-stat-label {
    font-size: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-ghost);
}

.mp-stat-value {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ── Update timestamp ── */
.mp-footer {
    padding: 8px 20px;
    text-align: right;
    border-top: 1px solid var(--border);
}

.mp-updated {
    font-family: var(--font-mono);
    font-size: 0.5rem;
    color: var(--text-ghost);
    letter-spacing: 0.05em;
}

/* ── Error / Loading ── */
.mp-error {
    display: none;
    padding: 24px 20px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.mp-skeleton {
    padding: 16px 20px;
}

.mp-skel-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.mp-skel-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-card-hover);
    animation: mp-shimmer 1.5s infinite;
}

.mp-skel-bar {
    height: 10px;
    border-radius: 2px;
    background: var(--bg-card-hover);
    animation: mp-shimmer 1.5s infinite;
}

.mp-skel-bar-sm { width: 40px; }
.mp-skel-bar-md { width: 80px; flex: 1; }
.mp-skel-bar-lg { width: 60px; }

@keyframes mp-shimmer {
    0% { opacity: 0.3; }
    50% { opacity: 0.6; }
    100% { opacity: 0.3; }
}

/* ── Attribution ── */
.mp-attribution {
    padding: 6px 20px 10px;
    text-align: center;
}

.mp-attribution a {
    font-size: 0.45rem;
    color: var(--text-ghost);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.mp-attribution a:hover {
    color: var(--text-muted);
}

/* ── Mobile Responsive ── */
@media (max-width: 768px) {
    .mp-coin-spark {
        display: none;
    }

    .mp-coin-price {
        width: 65px;
        font-size: 0.62rem;
    }

    .mp-coin-change {
        width: 55px;
        font-size: 0.58rem;
    }

    .mp-global {
        padding: 10px 16px;
    }

    .mp-stat-value {
        font-size: 0.62rem;
    }
}

/* ═══════════════════════════════════════════
   NEWS DETAIL — Coin Chart Widgets
   ═══════════════════════════════════════════ */

.news-coin-charts {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.news-coin-charts-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.news-coin-charts-icon {
    font-size: 1rem;
}

.news-coin-charts-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.news-coin-charts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

/* When 2 or 3 charts, use 2 columns on wider screens */
.news-coin-charts-grid:has(.news-coin-chart-item:nth-child(2)) {
    grid-template-columns: 1fr 1fr;
}

.news-coin-chart-item {
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    background: var(--bg-card);
    min-height: 200px;
}

/* If only one chart, span full width */
.news-coin-chart-item:only-child {
    grid-column: 1 / -1;
}

/* If 3 charts, last one spans full */
.news-coin-charts-grid:has(.news-coin-chart-item:nth-child(3)) .news-coin-chart-item:nth-child(3) {
    grid-column: 1 / -1;
}

.news-coin-charts-footer {
    margin-top: 10px;
    text-align: center;
}

.news-coin-charts-footer a {
    font-size: 0.5rem;
    color: var(--text-ghost);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.news-coin-charts-footer a:hover {
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .news-coin-charts-grid,
    .news-coin-charts-grid:has(.news-coin-chart-item:nth-child(2)) {
        grid-template-columns: 1fr;
    }

    .news-coin-charts-grid:has(.news-coin-chart-item:nth-child(3)) .news-coin-chart-item:nth-child(3) {
        grid-column: auto;
    }
}


/* ═══════════════════════════════════════════
   WIN ECOSYSTEM
   ═══════════════════════════════════════════ */

/* Sidebar can be taller than the viewport — let it scroll on its own
   instead of hiding its lower modules behind the sticky position. */
@media (min-width: 769px) {
    .home-sidebar {
        max-height: calc(100vh - var(--header-h) - 48px);
        overflow-y: auto;
        scrollbar-width: none;
    }
    .home-sidebar::-webkit-scrollbar { display: none; }
}

.main-nav a.nav-win { color: var(--gold-400); font-weight: 700; }
.main-nav a.nav-win:hover { color: var(--gold-200); }

.win-badge {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    border: 1px solid var(--border-gold);
    background: var(--gold-dim);
    color: var(--gold-400);
    border-radius: 1px;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    font-family: var(--font-mono);
}
.news-category-tag.win {
    border-color: var(--border-gold);
    color: var(--gold-400);
    background: var(--gold-dim);
}

/* ── Homepage sidebar module ── */
.win-module { margin-bottom: 20px; border-color: var(--border-gold); }
.win-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border-bottom: 1px solid var(--border);
}
.win-quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 6px;
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 0.68rem;
    font-weight: 600;
    text-align: center;
    transition: all var(--duration) var(--ease);
}
.win-quick-item:hover { background: var(--bg-card-hover); color: var(--gold-300); }
.win-quick-icon { font-size: 1.1rem; line-height: 1; }
.win-quick-name { line-height: 1.2; }
.win-updates { padding: 12px 20px 4px; }
.win-updates-label,
.win-res-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.win-update-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
}
.win-update-item:last-child { border-bottom: none; }
.win-update-item:hover .win-update-title { color: var(--gold-300); }
.win-update-title { font-size: 0.8rem; line-height: 1.45; transition: color var(--duration) var(--ease); }
.win-update-time { font-size: 0.65rem; color: var(--text-muted); font-family: var(--font-mono); }
.win-module-desc { padding: 14px 20px 0; margin: 0; font-size: 0.78rem; line-height: 1.6; color: var(--text-secondary); }
.win-module-cta {
    display: block;
    margin: 14px 20px 18px;
    padding: 10px;
    text-align: center;
    border: 1px solid var(--border-gold);
    color: var(--gold-400);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    transition: all var(--duration) var(--ease);
}
.win-module-cta:hover { background: var(--gold-dim); color: var(--gold-200); }

/* ── Disclosure box (single pages) ── */
.win-disclosure {
    max-width: var(--container-narrow);
    margin: 28px auto 0;
    padding: 14px 18px;
    border: 1px solid var(--border-gold);
    background: var(--gold-dim);
    color: var(--text-secondary);
    font-size: 0.78rem;
    line-height: 1.7;
}
.win-disclosure a { color: var(--gold-400); margin-left: 6px; white-space: nowrap; }

/* ── Hub page ── */
.win-hub, .about-page { padding: 48px 0 96px; }
.win-hero { text-align: center; padding: 40px 0 56px; border-bottom: 1px solid var(--border); }
.win-eyebrow {
    display: inline-block;
    margin: 0 0 18px;
    padding: 4px 14px;
    border: 1px solid var(--border-gold);
    border-radius: 999px;
    color: var(--gold-400);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.25em;
}
.win-hero-title {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--gold-200), var(--gold-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.win-hero-sub { max-width: 640px; margin: 18px auto 0; color: var(--text-secondary); font-size: 0.95rem; line-height: 1.8; }
.win-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.win-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: 1px solid var(--border-hover);
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 600;
    transition: all var(--duration) var(--ease);
}
.win-btn:hover { border-color: var(--border-gold); color: var(--gold-300); }
.win-btn-primary { background: var(--gold-400); border-color: var(--gold-400); color: #0a0a0a; }
.win-btn-primary:hover { background: var(--gold-300); color: #0a0a0a; }

.win-block { padding: 56px 0 0; }
.win-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.win-block-title { margin: 0; font-size: 1.3rem; font-weight: 700; color: var(--white); }
.win-block-note { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.12em; color: var(--text-muted); text-transform: uppercase; }

.win-product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.win-product-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    transition: all var(--duration) var(--ease);
}
.win-product-card:hover { border-color: var(--border-gold); background: var(--bg-elevated); }
.win-product-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.win-product-icon { font-size: 1.4rem; }
.win-product-index { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-ghost); }
.win-product-name { margin: 0 0 8px; font-size: 0.95rem; font-weight: 700; color: var(--white); }
.win-product-desc { margin: 0 0 16px; font-size: 0.78rem; line-height: 1.65; color: var(--text-secondary); flex: 1; }
.win-product-links { display: flex; flex-wrap: wrap; gap: 6px; }
.win-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border: 1px solid var(--border-gold);
    border-radius: 999px;
    color: var(--gold-400);
    font-size: 0.68rem;
    font-weight: 600;
    transition: all var(--duration) var(--ease);
}
a.win-chip:hover, .win-product-card-link:hover .win-chip { background: var(--gold-dim); color: var(--gold-200); }
.win-chip-muted { border-color: var(--border-subtle); color: var(--text-muted); }

.win-update-list { border: 1px solid var(--border-subtle); }
.win-update-row {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
}
.win-update-row:last-child { border-bottom: none; }
.win-update-row:hover { background: var(--bg-elevated); }
.win-update-row:hover .win-update-row-title { color: var(--gold-300); }
.win-update-type { font-family: var(--font-mono); font-size: 0.62rem; color: var(--gold-400); letter-spacing: 0.1em; }
.win-update-row-title { font-size: 0.88rem; line-height: 1.5; }
.win-update-row-time { font-size: 0.68rem; color: var(--text-muted); font-family: var(--font-mono); white-space: nowrap; }
.win-empty { padding: 28px; border: 1px dashed var(--border-hover); color: var(--text-secondary); font-size: 0.85rem; text-align: center; }

.win-roadmap { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.win-roadmap-item { position: relative; padding: 22px 20px; border: 1px solid var(--border-subtle); border-top: 2px solid var(--gold-500); background: var(--bg-primary); }
.win-roadmap-phase { font-family: var(--font-mono); font-size: 0.65rem; color: var(--gold-400); letter-spacing: 0.1em; }
.win-roadmap-title { margin: 10px 0 8px; font-size: 0.95rem; font-weight: 700; color: var(--white); }
.win-roadmap-desc { margin: 0; font-size: 0.78rem; line-height: 1.7; color: var(--text-secondary); }

.win-res-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.win-res-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--border-subtle);
    margin-bottom: 10px;
    color: var(--text-primary);
    transition: all var(--duration) var(--ease);
}
.win-res-item:hover { border-color: var(--border-gold); background: var(--bg-elevated); }
.win-res-icon { font-size: 1.1rem; }
.win-res-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.win-res-name { font-size: 0.86rem; font-weight: 600; }
.win-res-desc { font-size: 0.72rem; color: var(--text-muted); }
.win-res-arrow { color: var(--text-muted); }
.win-res-item:hover .win-res-arrow { color: var(--gold-400); }

.win-follow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.win-follow-label { font-size: 0.8rem; color: var(--text-secondary); margin-right: 6px; }
.win-disclaimer { margin: 48px 0 0; padding-top: 20px; border-top: 1px solid var(--border); font-size: 0.72rem; line-height: 1.7; color: var(--text-muted); }
.win-disclaimer a { color: var(--gold-400); margin-left: 6px; }

.about-hero { padding-top: 24px; }
.about-body { padding-top: 32px; }
.about-body h2 { font-size: 1.1rem; margin: 32px 0 12px; color: var(--white); }
.about-body a { color: var(--gold-400); }

@media (max-width: 1024px) {
    .win-product-grid { grid-template-columns: repeat(2, 1fr); }
    .win-roadmap { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .win-hub, .about-page { padding: 24px 0 64px; }
    .win-res-cols { grid-template-columns: 1fr; }
    .win-update-row { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 480px) {
    .win-product-grid, .win-roadmap { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════
   WIN Ecosystem Project Library
   ═══════════════════════════════════════ */
.win-projects-hero { padding-bottom: 40px; }
.win-projects-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 28px; margin-top: 24px; font-size: 0.78rem; color: var(--text-muted); }
.win-projects-stats strong { color: var(--gold-300); font-family: var(--font-mono); font-size: 1.1rem; margin-right: 4px; }

.win-filter { display: flex; flex-wrap: wrap; gap: 8px; padding: 28px 0 22px; }
.win-filter-btn {
    padding: 7px 14px;
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}
.win-filter-btn span { margin-left: 4px; font-family: var(--font-mono); font-size: 0.66rem; color: var(--text-muted); }
.win-filter-btn:hover { border-color: var(--border-gold); color: var(--gold-300); }
.win-filter-btn.active { background: var(--gold-400); border-color: var(--gold-400); color: #0a0a0a; }
.win-filter-btn.active span { color: rgba(0,0,0,0.55); }

.win-project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.win-project-card {
    display: flex;
    flex-direction: column;
    padding: 22px;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    transition: all var(--duration) var(--ease);
}
.win-project-card[hidden] { display: none; }
.win-project-card:hover { border-color: var(--border-gold); background: var(--bg-elevated); transform: translateY(-2px); }
.win-project-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.win-project-logo {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-elevated);
    font-size: 1.35rem;
    overflow: hidden;
    flex-shrink: 0;
}
.win-project-logo img { width: 100%; height: 100%; object-fit: cover; }
.win-project-logo-lg { width: 72px; height: 72px; font-size: 2.1rem; }
.win-project-name { margin: 0 0 10px; font-size: 1rem; font-weight: 700; color: var(--white); }
.win-project-card:hover .win-project-name { color: var(--gold-300); }
.win-project-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.win-tag {
    padding: 2px 8px;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 0.66rem;
    font-weight: 600;
}
.win-tag-official { border-color: var(--border-gold); color: var(--gold-400); background: var(--gold-dim); }
.win-tag-mono { font-family: var(--font-mono); }
.win-project-desc { margin: 0 0 16px; font-size: 0.8rem; line-height: 1.7; color: var(--text-secondary); flex: 1; }
.win-project-more { font-size: 0.72rem; font-weight: 600; color: var(--gold-400); }
.win-project-grid-compact .win-project-desc { margin-bottom: 0; }

.win-status {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid currentColor;
}
.win-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.win-status-live    { color: #22c55e; background: rgba(34,197,94,0.08); }
.win-status-beta    { color: var(--accent-cyan); background: rgba(6,182,212,0.08); }
.win-status-testnet { color: #a78bfa; background: rgba(167,139,250,0.08); }
.win-status-coming  { color: var(--text-muted); background: transparent; }

.win-submit {
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    padding: 28px;
    border: 1px solid var(--border-gold);
    background: linear-gradient(135deg, var(--gold-dim), transparent);
}
.win-submit-desc { margin: 8px 0 0; font-size: 0.82rem; color: var(--text-secondary); line-height: 1.7; max-width: 560px; }

/* Single project */
.win-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.72rem; color: var(--text-muted); margin-bottom: 28px; }
.win-crumbs a { color: var(--text-secondary); }
.win-crumbs a:hover { color: var(--gold-300); }
.win-project-hero { display: flex; gap: 24px; align-items: flex-start; padding-bottom: 36px; border-bottom: 1px solid var(--border); }
.win-project-hero-body { flex: 1; min-width: 0; }
.win-project-title { margin: 4px 0 10px; font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; color: var(--white); letter-spacing: -0.01em; }
.win-project-lead { margin: 0; font-size: 0.95rem; line-height: 1.8; color: var(--text-secondary); max-width: 720px; }
.win-project-ctas { justify-content: flex-start; margin-top: 22px; }
.win-project-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
.win-project-content { font-size: 0.92rem; line-height: 1.9; color: var(--text-primary); }
.win-project-side { padding-top: 56px; display: flex; flex-direction: column; gap: 14px; }
.win-info-card { padding: 20px; border: 1px solid var(--border-subtle); background: var(--bg-primary); }
.win-info-list { margin: 10px 0 0; }
.win-info-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.78rem; }
.win-info-row:last-child { border-bottom: none; }
.win-info-row dt { color: var(--text-muted); }
.win-info-row dd { margin: 0; color: var(--text-primary); text-align: right; word-break: break-all; }
.win-info-row dd a { color: var(--gold-400); }
.win-info-safety p { margin: 10px 0 0; font-size: 0.74rem; line-height: 1.7; color: var(--text-secondary); }

@media (max-width: 1024px) {
    .win-project-grid { grid-template-columns: repeat(2, 1fr); }
    .win-project-layout { grid-template-columns: 1fr; gap: 0; }
    .win-project-side { padding-top: 40px; }
}
@media (max-width: 640px) {
    .win-project-grid { grid-template-columns: 1fr; }
    .win-project-hero { flex-direction: column; gap: 16px; }
    .win-projects-stats { gap: 16px; }
    .win-submit { padding: 22px; }
}

/* ═══════════════════════════════════════
   新云社成员计划 — Join / Columns / Member Center
   ═══════════════════════════════════════ */

/* Header CTA */
.header-join {
    display: inline-flex; align-items: center;
    padding: 7px 14px;
    border: 1px solid var(--gold-400);
    background: var(--gold-400);
    color: #0a0a0a;
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em;
    white-space: nowrap;
    transition: all var(--duration) var(--ease);
}
.header-join:hover, .header-join.active { background: var(--gold-300); border-color: var(--gold-300); color: #0a0a0a; }
.main-nav a.nav-join-mobile { display: none; }
@media (max-width: 1200px) { .main-nav a { padding: 8px 12px; } }
@media (max-width: 960px)  { .main-nav a { padding: 8px 8px; letter-spacing: 0.06em; } .header-join { padding: 6px 10px; } }
@media (max-width: 768px) {
    .header-join { display: none; }
    .main-nav a.nav-join-mobile { display: block; color: var(--gold-400); font-weight: 700; }
}

/* Shared bits */
.xys-note { margin: 16px 0 0; font-size: 0.76rem; line-height: 1.7; color: var(--text-muted); }
.xys-note a, .xys-auth-links a, .xys-checklist a { color: var(--gold-400); }
.xys-hint { display: block; margin-top: 6px; font-size: 0.7rem; color: var(--text-muted); line-height: 1.5; }
.xys-error { display: block; margin-top: 6px; font-size: 0.72rem; color: #f87171; line-height: 1.5; }
.xys-muted { color: var(--text-muted); font-size: 0.74rem; font-family: var(--font-mono); }
.xys-alert { margin: 0 0 18px; padding: 12px 16px; border: 1px solid rgba(248,113,113,0.35); background: rgba(220,38,38,0.08); color: #fca5a5; font-size: 0.82rem; line-height: 1.6; }
.xys-notice { margin: 0 0 18px; padding: 12px 16px; border: 1px solid rgba(34,197,94,0.3); background: rgba(34,197,94,0.07); color: #86efac; font-size: 0.82rem; line-height: 1.6; }
.xys-tag-warn { border-color: rgba(248,113,113,0.4); color: #fca5a5; background: rgba(220,38,38,0.08); }
.xys-panel { padding: 26px; border: 1px solid var(--border-subtle); background: var(--bg-primary); }
.xys-panel p { margin: 14px 0 0; font-size: 0.84rem; line-height: 1.8; color: var(--text-secondary); }
.xys-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.xys-disclosure { margin-top: 14px; }

/* Logo / avatar */
.xys-logo {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; flex-shrink: 0; overflow: hidden;
    border: 1px solid var(--border-subtle); background: var(--bg-elevated);
}
.xys-logo img { width: 100%; height: 100%; object-fit: cover; }
.xys-logo-lg { width: 72px; height: 72px; }
.xys-logo-initial { color: var(--gold-400); font-weight: 800; font-size: 1.15rem; background: linear-gradient(135deg, var(--gold-dim), var(--bg-elevated)); border-color: var(--border-gold); }
.xys-logo-lg.xys-logo-initial { font-size: 2rem; }

/* ── Join page ── */
.xys-benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.xys-benefit-card { padding: 24px 22px; border: 1px solid var(--border-subtle); background: var(--bg-primary); transition: border-color var(--duration) var(--ease); }
.xys-benefit-card:hover { border-color: var(--border-gold); }
.xys-benefit-icon { display: inline-flex; font-size: 1.5rem; line-height: 1; margin-bottom: 14px; }
.xys-benefit-card h3 { margin: 0 0 8px; font-size: 0.98rem; font-weight: 700; color: var(--white); }
.xys-benefit-card p { margin: 0; font-size: 0.8rem; line-height: 1.75; color: var(--text-secondary); }

.xys-flow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.xys-flow-card { padding: 26px; border: 1px solid var(--border-subtle); background: var(--bg-primary); }
.xys-flow-news { border-color: var(--border-gold); background: linear-gradient(135deg, var(--gold-dim), var(--bg-primary)); }
.xys-flow-tag { display: inline-block; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em; color: var(--gold-400); text-transform: uppercase; }
.xys-flow-card h3 { margin: 10px 0 14px; font-size: 1.1rem; color: var(--white); }
.xys-flow-card ul, .xys-checklist, .xys-rules { list-style: none; margin: 0; padding: 0; }
.xys-flow-card li, .xys-checklist li, .xys-rules li { position: relative; padding: 6px 0 6px 20px; font-size: 0.82rem; line-height: 1.7; color: var(--text-secondary); }
.xys-flow-card li::before, .xys-checklist li::before { content: '✓'; position: absolute; left: 0; top: 6px; color: var(--gold-400); font-weight: 700; }
.xys-rules li::before { content: '·'; position: absolute; left: 6px; top: 4px; color: var(--gold-400); font-weight: 800; }
.xys-checklist { margin-top: 12px; }

.xys-tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: stretch; }
.xys-tier { position: relative; display: flex; flex-direction: column; padding: 28px 24px; border: 1px solid var(--border-subtle); background: var(--bg-primary); }
.xys-tier.is-featured { border-color: var(--gold-400); background: linear-gradient(180deg, var(--gold-dim), var(--bg-primary) 45%); box-shadow: var(--shadow-gold); }
.xys-tier-badge { position: absolute; top: -1px; right: 20px; padding: 3px 10px; background: var(--gold-400); color: #0a0a0a; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.1em; }
.xys-tier-name { margin: 0; font-size: 1.15rem; font-weight: 800; color: var(--white); }
.xys-tier-tagline { margin: 6px 0 0; font-size: 0.78rem; color: var(--text-secondary); line-height: 1.6; min-height: 2.5em; }
.xys-tier-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin: 20px 0 18px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.xys-tier-price strong { font-family: var(--font-mono); font-size: 1.7rem; font-weight: 800; color: var(--gold-300); }
.xys-tier-price strong.xys-tier-ask { font-family: var(--font-body); font-size: 1.2rem; }
.xys-tier-price span { font-size: 0.74rem; color: var(--text-muted); }
.xys-tier-list { list-style: none; margin: 0 0 22px; padding: 0; flex: 1; }
.xys-tier-list li { display: flex; gap: 10px; padding: 7px 0; font-size: 0.8rem; line-height: 1.55; color: var(--text-primary); }
.xys-tier-list li b { color: var(--gold-300); font-weight: 700; }
.xys-tier-list li.is-no { color: var(--text-ghost); }
.xys-tick { flex-shrink: 0; width: 14px; color: var(--gold-400); font-weight: 800; }
.xys-tier-list li.is-no .xys-tick { color: var(--text-ghost); }
.xys-tier-cta { justify-content: center; }

.xys-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: none; }
.xys-step { padding: 20px 18px; border: 1px solid var(--border-subtle); border-top: 2px solid var(--gold-500); background: var(--bg-primary); }
.xys-step-num { font-family: var(--font-mono); font-size: 0.7rem; color: var(--gold-400); letter-spacing: 0.1em; }
.xys-step h3 { margin: 10px 0 6px; font-size: 0.92rem; color: var(--white); }
.xys-step p { margin: 0; font-size: 0.76rem; line-height: 1.7; color: var(--text-secondary); }

.xys-faq { border: 1px solid var(--border-subtle); }
.xys-faq-item { border-bottom: 1px solid var(--border); }
.xys-faq-item:last-child { border-bottom: none; }
.xys-faq-item summary { position: relative; padding: 16px 48px 16px 20px; cursor: pointer; list-style: none; font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }
.xys-faq-item summary::-webkit-details-marker { display: none; }
.xys-faq-item summary::after { content: '+'; position: absolute; right: 20px; top: 13px; font-size: 1.1rem; color: var(--gold-400); transition: transform var(--duration) var(--ease); }
.xys-faq-item[open] summary::after { transform: rotate(45deg); }
.xys-faq-item summary:hover { color: var(--gold-300); }
.xys-faq-item p { margin: 0; padding: 0 20px 18px; font-size: 0.82rem; line-height: 1.8; color: var(--text-secondary); }

/* ── Forms ── */
.xys-form { display: block; }
.xys-form fieldset { margin: 0 0 22px; padding: 24px; border: 1px solid var(--border-subtle); background: var(--bg-primary); }
.xys-form legend { padding: 0 8px; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; color: var(--gold-400); text-transform: uppercase; }
.xys-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.xys-field { display: flex; flex-direction: column; min-width: 0; margin-bottom: 0; }
.xys-form-compact .xys-field, .xys-write-main .xys-field, .xys-write-side .xys-field, .xys-account .xys-field { margin-bottom: 16px; }
.xys-field-full { grid-column: 1 / -1; }
.xys-field > label, .xys-editor-bar > label { margin-bottom: 7px; font-size: 0.76rem; font-weight: 600; color: var(--text-secondary); }
.xys-field label em, .xys-editor-bar label em { color: var(--gold-400); font-style: normal; }
.xys-field input[type="text"], .xys-field input[type="email"], .xys-field input[type="url"], .xys-field input[type="password"],
.xys-field select, .xys-field textarea {
    width: 100%; box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid var(--border-hover);
    border-radius: 0;
    background: var(--bg-void);
    color: var(--text-primary);
    font: inherit; font-size: 0.86rem; line-height: 1.6;
    transition: border-color var(--duration) var(--ease);
}
.xys-field textarea { resize: vertical; }
.xys-field input:focus, .xys-field select:focus, .xys-field textarea:focus { outline: none; border-color: var(--gold-400); box-shadow: 0 0 0 3px var(--gold-dim); }
.xys-field input:disabled { color: var(--text-muted); background: var(--bg-elevated); }
.xys-field.has-error input, .xys-field.has-error textarea, .xys-field.has-error select { border-color: #f87171; }
.xys-input-lg { font-size: 1.1rem !important; font-weight: 700; }
.xys-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.xys-chip-opt { position: relative; cursor: pointer; }
.xys-chip-opt input { position: absolute; opacity: 0; pointer-events: none; }
.xys-chip-opt span { display: inline-flex; padding: 7px 14px; border: 1px solid var(--border-hover); border-radius: 999px; font-size: 0.78rem; color: var(--text-secondary); transition: all var(--duration) var(--ease); }
.xys-chip-opt:hover span { border-color: var(--border-gold); color: var(--gold-300); }
.xys-chip-opt input:checked + span { background: var(--gold-400); border-color: var(--gold-400); color: #0a0a0a; font-weight: 700; }
.xys-chip-opt input:focus-visible + span, .xys-tier-opt input:focus-visible + span { outline: 2px solid var(--gold-300); outline-offset: 2px; }
.xys-tier-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.xys-tier-opt { position: relative; cursor: pointer; }
.xys-tier-opt input { position: absolute; opacity: 0; pointer-events: none; }
.xys-tier-opt span { display: flex; flex-direction: column; gap: 4px; height: 100%; box-sizing: border-box; padding: 14px 16px; border: 1px solid var(--border-hover); transition: all var(--duration) var(--ease); }
.xys-tier-opt strong { font-size: 0.88rem; color: var(--white); }
.xys-tier-opt small { font-size: 0.72rem; color: var(--text-muted); font-family: var(--font-mono); }
.xys-tier-opt:hover span { border-color: var(--border-gold); }
.xys-tier-opt input:checked + span { border-color: var(--gold-400); background: var(--gold-dim); }
.xys-tier-opt input:checked + span strong { color: var(--gold-300); }
.xys-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.xys-agree { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 6px; font-size: 0.78rem; line-height: 1.7; color: var(--text-secondary); cursor: pointer; }
.xys-agree input { margin-top: 4px; accent-color: var(--gold-400); flex-shrink: 0; }
.xys-agree.has-error span { color: #fca5a5; }
.xys-form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 20px; }
.xys-form-actions .xys-hint { margin: 0; }
.xys-submit, .xys-form button.win-btn { cursor: pointer; font-family: inherit; }
.xys-submit { padding: 12px 28px; font-size: 0.86rem; }
.xys-success { padding: 40px 28px; text-align: center; border: 1px solid var(--border-gold); background: linear-gradient(135deg, var(--gold-dim), transparent); }
.xys-success-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--gold-400); color: #0a0a0a; font-size: 1.4rem; font-weight: 800; }
.xys-success h3 { margin: 16px 0 8px; font-size: 1.3rem; color: var(--white); }
.xys-success p { max-width: 520px; margin: 0 auto; font-size: 0.86rem; line-height: 1.8; color: var(--text-secondary); }

/* ── Column hub / channel / single ── */
.xys-channel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.xys-channel-card { display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--border-subtle); background: var(--bg-primary); color: var(--text-primary); transition: all var(--duration) var(--ease); }
.xys-channel-card:hover { border-color: var(--border-gold); background: var(--bg-elevated); transform: translateY(-2px); }
.xys-channel-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.xys-channel-name { margin: 0 0 8px; font-size: 1rem; font-weight: 700; color: var(--white); }
.xys-channel-card:hover .xys-channel-name { color: var(--gold-300); }
.xys-channel-desc { margin: 0 0 14px; font-size: 0.78rem; line-height: 1.7; color: var(--text-secondary); flex: 1; }
.xys-channel-meta { margin-top: auto; font-size: 0.72rem; font-weight: 600; color: var(--gold-400); }

.xys-column-list { border: 1px solid var(--border-subtle); }
.xys-column-row { display: flex; gap: 20px; padding: 20px; border-bottom: 1px solid var(--border); }
.xys-column-row:last-child { border-bottom: none; }
.xys-column-row:hover { background: var(--bg-elevated); }
.xys-column-thumb { flex-shrink: 0; width: 168px; aspect-ratio: 1200 / 630; overflow: hidden; background: var(--bg-elevated); }
.xys-column-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.xys-column-body { flex: 1; min-width: 0; }
.xys-column-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 0.68rem; color: var(--text-muted); font-family: var(--font-mono); }
.xys-column-channel { color: var(--gold-400); font-weight: 700; font-family: var(--font-body); }
.xys-column-label { display: inline-flex; padding: 1px 7px; border: 1px solid rgba(6,182,212,0.35); color: var(--accent-cyan); background: rgba(6,182,212,0.07); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em; font-family: var(--font-body); }
.xys-column-title { margin: 8px 0 6px; font-size: 1rem; font-weight: 700; line-height: 1.5; }
.xys-column-title a { color: var(--white); }
.xys-column-title a:hover { color: var(--gold-300); }
.xys-column-excerpt { margin: 0; font-size: 0.8rem; line-height: 1.7; color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.xys-pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.xys-pager a, .xys-pager span { min-width: 34px; padding: 6px 10px; box-sizing: border-box; text-align: center; border: 1px solid var(--border-subtle); font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-secondary); }
.xys-pager a:hover { border-color: var(--border-gold); color: var(--gold-300); }
.xys-pager .current { background: var(--gold-400); border-color: var(--gold-400); color: #0a0a0a; font-weight: 700; }

.xys-channel-hero .win-hero-actions { justify-content: flex-start; margin-top: 22px; }
.xys-side-cta p { margin: 10px 0 14px; font-size: 0.78rem; line-height: 1.7; color: var(--text-secondary); }
.xys-side-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.xys-side-actions .win-btn { padding: 8px 14px; font-size: 0.74rem; }

.xys-column-header .win-crumbs { margin-bottom: 18px; }
.xys-byline { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; padding: 10px 16px 10px 10px; border: 1px solid var(--border-subtle); color: var(--text-primary); transition: border-color var(--duration) var(--ease); }
.xys-byline:hover { border-color: var(--border-gold); }
.xys-byline > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.xys-byline strong { font-size: 0.88rem; }
.xys-byline small { font-size: 0.68rem; color: var(--text-muted); }
.xys-cover-figure { max-width: var(--container-narrow); margin: 0 auto 28px; }
.xys-cover-figure img { width: 100%; height: auto; display: block; }
.xys-column-note { border-color: rgba(6,182,212,0.3); background: rgba(6,182,212,0.05); }
.xys-more { padding-top: 40px; padding-bottom: 8px; }
.xys-more .win-block-title { margin-bottom: 16px; font-size: 1.05rem; }

/* ── Member center ── */
.xys-auth { display: flex; justify-content: center; padding: 24px 0 40px; }
.xys-auth-card { width: 100%; max-width: 440px; padding: 36px 32px; border: 1px solid var(--border-subtle); background: var(--bg-primary); text-align: center; }
.xys-auth-card .xys-form { text-align: left; margin-top: 24px; }
.xys-auth-title { margin: 0; font-size: 1.6rem; font-weight: 800; color: var(--white); }
.xys-auth-sub { margin: 10px 0 0; font-size: 0.82rem; line-height: 1.7; color: var(--text-secondary); }
.xys-auth-card .xys-submit { width: 100%; justify-content: center; margin-top: 8px; }
.xys-auth-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 20px; font-size: 0.74rem; }

.xys-member-head { display: flex; align-items: center; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.xys-member-head-body { flex: 1; min-width: 0; }
.xys-member-head-body .win-project-tags { margin-bottom: 6px; }
.xys-member-title { margin: 0; font-size: 1.5rem; font-weight: 800; color: var(--white); }
.xys-member-meta { margin: 6px 0 0; font-size: 0.78rem; color: var(--text-secondary); }
.xys-member-meta strong { color: var(--gold-300); font-family: var(--font-mono); }
.xys-member-head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.xys-tabs { display: flex; gap: 4px; margin: 0 0 24px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.xys-tabs a { padding: 14px 18px; font-size: 0.82rem; font-weight: 600; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.xys-tabs a:hover { color: var(--text-primary); }
.xys-tabs a.active { color: var(--gold-400); border-bottom-color: var(--gold-400); }
.xys-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }

.xys-table { border: 1px solid var(--border-subtle); }
.xys-tr { display: grid; grid-template-columns: minmax(0, 1fr) 64px 96px 132px 150px; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: 0.8rem; color: var(--text-secondary); }
.xys-tr:last-child { border-bottom: none; }
.xys-th { padding-top: 10px; padding-bottom: 10px; background: var(--bg-elevated); font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.xys-td-title { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.xys-td-title strong { color: var(--text-primary); font-size: 0.86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xys-td-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; font-size: 0.76rem; }
.xys-td-actions a { color: var(--gold-400); }
.xys-inline-form { display: inline; margin: 0; }
.xys-link-danger { padding: 0; border: none; background: none; color: #f87171; font: inherit; font-size: 0.76rem; cursor: pointer; }
.xys-link-danger:hover { text-decoration: underline; }

.xys-write { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.xys-write-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: calc(var(--header-h) + 16px); }
.xys-write-side .win-res-label { margin-bottom: 14px; }
.xys-editor-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.xys-editor-bar > label { margin: 0; }
.xys-btn-chip { background: transparent; cursor: pointer; font-family: inherit; }
.xys-btn-chip:hover { background: var(--gold-dim); color: var(--gold-200); }
.xys-btn-chip:disabled { opacity: 0.6; cursor: progress; }
.xys-editor .wp-editor-wrap { border: 1px solid var(--border-hover); }
.xys-editor .wp-editor-container { border: none; }
.xys-editor .wp-editor-tabs { float: right; }
.xys-editor .wp-switch-editor { border-radius: 0; }
.xys-editor textarea.wp-editor-area { background: var(--bg-void); color: var(--text-primary); border: none; padding: 14px; font-size: 0.9rem; line-height: 1.8; }
.xys-editor .quicktags-toolbar { background: var(--bg-elevated); border-bottom: 1px solid var(--border-subtle); }
.xys-cover { display: flex; align-items: center; justify-content: center; aspect-ratio: 1200 / 630; overflow: hidden; border: 1px dashed var(--border-hover); background: var(--bg-void); color: var(--text-muted); font-size: 0.72rem; }
.xys-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.xys-cover-actions { display: flex; gap: 8px; margin-top: 10px; }
.xys-write-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.xys-write-actions .win-btn { justify-content: center; cursor: pointer; font-family: inherit; }
.xys-write-side .xys-hint { text-align: center; }
.xys-preview-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; padding: 10px 16px; border: 1px dashed var(--border-gold); color: var(--gold-400); font-size: 0.78rem; }
.xys-preview { max-width: var(--container-narrow); margin: 0 auto; }
.xys-preview .single-post-title { margin-bottom: 14px; }

.xys-profile { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; padding: 26px; border: 1px solid var(--border-subtle); background: var(--bg-primary); }
.xys-profile .xys-form-actions { grid-column: 2; margin-top: 0; }
.xys-profile-logo .xys-field { align-items: flex-start; gap: 10px; }
.xys-logo-edit .xys-logo { width: 96px; height: 96px; }
.xys-account { padding-top: 0; }

@media (max-width: 1024px) {
    .xys-benefit-grid, .xys-channel-grid { grid-template-columns: repeat(2, 1fr); }
    .xys-steps { grid-template-columns: repeat(3, 1fr); }
    .xys-tier-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
    .xys-tier-pick { grid-template-columns: repeat(2, 1fr); }
    .xys-write { grid-template-columns: 1fr; }
    .xys-write-side { position: static; }
    .xys-tr { grid-template-columns: minmax(0, 1fr) 56px 90px 130px; }
    .xys-tr > span:nth-child(4) { display: none; }
}
@media (max-width: 768px) {
    .xys-flow, .xys-two-col, .xys-grid { grid-template-columns: 1fr; }
    .xys-steps { grid-template-columns: 1fr 1fr; }
    .xys-form fieldset { padding: 18px 16px; }
    .xys-member-head { flex-wrap: wrap; }
    .xys-member-head-actions { width: 100%; }
    .xys-th { display: none; }
    .xys-tr { grid-template-columns: 1fr auto; gap: 8px 12px; }
    .xys-tr > span:nth-child(2), .xys-tr > span:nth-child(4) { display: none; }
    .xys-td-actions { grid-column: 1 / -1; justify-content: flex-start; }
    .xys-profile { grid-template-columns: 1fr; padding: 20px; }
    .xys-profile .xys-form-actions { grid-column: auto; }
    .xys-column-row { flex-direction: column; gap: 12px; padding: 16px; }
    .xys-column-thumb { width: 100%; }
}
@media (max-width: 480px) {
    .xys-benefit-grid, .xys-channel-grid, .xys-steps, .xys-tier-pick { grid-template-columns: 1fr; }
    .xys-auth-card { padding: 28px 20px; }
}

/* Footer: 4 link columns once the membership column is present */
.footer-links:has(> .footer-col:nth-child(4)) { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 768px) {
    .footer-links:has(> .footer-col:nth-child(4)) { grid-template-columns: repeat(2, 1fr); }
}
.win-module-join { display: block; margin: -6px 20px 18px; font-size: 0.7rem; line-height: 1.6; color: var(--text-muted); text-align: center; }
.win-module-join:hover { color: var(--gold-300); }

/* Homepage membership banner */
.xys-home-banner {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    margin-bottom: 28px; padding: 16px 20px;
    border: 1px solid var(--border-gold);
    background: linear-gradient(90deg, rgba(251,191,36,0.12), rgba(251,191,36,0.03) 60%, transparent);
}
.xys-home-banner-main { display: flex; align-items: center; gap: 16px; min-width: 0; }
.xys-home-banner-tag {
    flex-shrink: 0; padding: 3px 10px; border: 1px solid var(--border-gold); border-radius: 999px;
    color: var(--gold-400); font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em; white-space: nowrap;
}
.xys-home-banner-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.xys-home-banner-text strong { font-size: 0.98rem; font-weight: 800; color: var(--white); }
.xys-home-banner-text span { font-size: 0.78rem; line-height: 1.6; color: var(--text-secondary); }
.xys-home-banner-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.xys-home-banner-link { font-size: 0.74rem; color: var(--gold-400); white-space: nowrap; }
.xys-home-banner-link:hover { color: var(--gold-200); }
@media (max-width: 900px) {
    .xys-home-banner-tag { display: none; }
}
@media (max-width: 640px) {
    .xys-home-banner { flex-direction: column; align-items: stretch; gap: 12px; padding: 14px 16px; margin-bottom: 20px; }
    .xys-home-banner-actions { justify-content: space-between; }
    .xys-home-banner-actions .win-btn { flex: 1; justify-content: center; }
    .xys-home-banner-link { order: 2; }
}
