/*
Theme Name: Bian MB1
Author: Bian Team
Description: A modern, responsive WordPress theme for cryptocurrency trading platform with dark theme design.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bian_mb1
Tags: cryptocurrency, trading, dark-theme, responsive, custom-menu
*/

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

:root {
    --primary: #F0B90B;
    --primary-hover: #d4a30a;
    --bg-dark: #0B0E11;
    --bg-card: #1E2329;
    --bg-card-hover: #2B3139;
    --text-primary: #EAECEF;
    --text-secondary: #848E9C;
    --text-muted: #5E6673;
    --border-color: #2B3139;
    --green: #0ECB81;
    --red: #F6465D;
    --gradient-gold: linear-gradient(135deg, #F0B90B 0%, #F8D12F 50%, #F0B90B 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(11, 14, 17, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.logo svg {
    width: 28px;
    height: 28px;
}

nav ul {
    display: flex;
    gap: 32px;
}

nav a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

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

/* Hamburger Menu Button */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-line:nth-child(1) {
    margin-bottom: 6px;
}

.hamburger-line:nth-child(2) {
    margin-bottom: 6px;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    background: var(--bg-dark);
    z-index: 999;
    padding: 80px 24px 24px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu nav ul {
    flex-direction: column;
    gap: 0;
}

.mobile-menu nav ul li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu nav ul li a {
    display: block;
    padding: 16px 0;
    font-size: 16px;
    color: var(--text-primary);
}

.mobile-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary);
    color: #181A20;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--text-secondary);
}

.btn-large {
    padding: 12px 32px;
    font-size: 16px;
    border-radius: 8px;
}

/* Hero */
.hero {
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(240, 185, 11, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-content h1 span {
    color: var(--primary);
}

.hero-content p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.hero-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.hero-stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.chart-container {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border-color);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-pair {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chart-pair-name {
    font-weight: 600;
    font-size: 16px;
}

.chart-price {
    font-size: 24px;
    font-weight: 700;
}

.chart-change {
    color: var(--green);
    font-size: 14px;
}

.chart-svg {
    width: 100%;
    height: 200px;
}

/* Ticker */
.ticker-bar {
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.ticker-scroll {
    display: flex;
    gap: 48px;
    animation: scroll 30s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.ticker-name {
    font-weight: 600;
    font-size: 14px;
}

.ticker-price {
    font-size: 14px;
    color: var(--text-secondary);
}

.ticker-change {
    font-size: 13px;
    font-weight: 500;
}

.ticker-change.up {
    color: var(--green);
}

.ticker-change.down {
    color: var(--red);
}

/* Section Common */
section {
    padding: 80px 0;
}

.section-label {
    display: inline-block;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .section-subtitle {
    margin: 0 auto;
}

/* Stats */
.global-stats {
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(240, 185, 11, 0.03) 50%, var(--bg-dark) 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.stat-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, border-color 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.stat-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    background: rgba(240, 185, 11, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--primary);
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 32px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: var(--primary);
    background: var(--bg-card-hover);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(240, 185, 11, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--primary);
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Mobile App */
.mobile-app {
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(240, 185, 11, 0.05) 100%);
}

.app-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.app-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.app-content p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.app-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.app-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.app-feature-item svg {
    width: 20px;
    height: 20px;
    fill: var(--green);
    flex-shrink: 0;
}

.app-buttons {
    display: flex;
    gap: 16px;
}

.app-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s;
}

.app-btn:hover {
    border-color: var(--primary);
}

.app-btn svg {
    width: 24px;
    height: 24px;
    fill: var(--text-primary);
}

.app-btn-text small {
    font-size: 11px;
    color: var(--text-secondary);
}

.app-btn-text span {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

.app-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: var(--bg-card);
    border-radius: 36px;
    border: 3px solid var(--border-color);
    padding: 12px;
    position: relative;
    overflow: hidden;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1a1d23 0%, #0B0E11 100%);
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.qr-code {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

/* Crypto Grid */
.crypto-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.crypto-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    cursor: pointer;
}

.crypto-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.crypto-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.crypto-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.crypto-symbol {
    font-size: 12px;
    color: var(--text-secondary);
}

.crypto-price {
    font-size: 14px;
    font-weight: 600;
    margin-top: 8px;
}

.crypto-change {
    font-size: 12px;
    margin-top: 4px;
}

.crypto-change.up {
    color: var(--green);
}

.crypto-change.down {
    color: var(--red);
}

/* Security */
.security {
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(240, 185, 11, 0.03) 100%);
    padding: 80px 0;
}

.security-inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.security-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.shield-icon {
    width: 120px;
    height: 120px;
    background: rgba(240, 185, 11, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.shield-icon::before {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    border: 2px solid rgba(240, 185, 11, 0.2);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

.shield-icon::after {
    content: '';
    position: absolute;
    width: 240px;
    height: 240px;
    border: 1px solid rgba(240, 185, 11, 0.1);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite 0.5s;
}

.shield-icon svg {
    width: 60px;
    height: 60px;
    z-index: 1;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.security-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.security-content .section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.security-content h2 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.security-content > p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.security-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 8px;
}

.security-feature {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: rgba(240, 185, 11, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(240, 185, 11, 0.1);
    align-items: flex-start;
}

.security-feature svg {
    width: 24px;
    height: 24px;
    fill: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.security-feature h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.security-feature p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step-card {
    text-align: center;
    padding: 40px 32px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #181A20;
    margin: 0 auto 20px;
}

.step-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.step-card p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Users */
.users-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.user-card {
    padding: 28px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.user-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.user-name {
    font-weight: 600;
    font-size: 15px;
}

.user-location {
    font-size: 12px;
    color: var(--text-secondary);
}

.user-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.user-stars {
    display: flex;
    gap: 4px;
    margin-top: 12px;
}

.user-stars svg {
    width: 16px;
    height: 16px;
    fill: var(--primary);
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.3s;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question svg {
    width: 20px;
    height: 20px;
    fill: var(--text-secondary);
    transition: transform 0.3s;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding-bottom: 24px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* CTA */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(240, 185, 11, 0.15) 0%, rgba(240, 185, 11, 0.05) 100%);
    text-align: center;
}

.cta h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Footer */
footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
}

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

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 36px;
    height: 36px;
    background: var(--bg-card);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--primary);
}

.social-link svg {
    width: 18px;
    height: 18px;
    fill: var(--text-secondary);
}

.social-link:hover svg {
    fill: #181A20;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

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

.footer-col a {
    font-size: 13px;
    color: var(--text-secondary);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

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

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

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

.footer-bottom-links a:hover {
    color: var(--text-secondary);
}

/* ==================== List Page ==================== */

/* Page Header */
.page-header {
    padding: 120px 0 60px;
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(240, 185, 11, 0.05) 100%);
    text-align: center;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.breadcrumb a {
    color: var(--text-secondary);
    transition: color 0.3s;
}

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

.breadcrumb-separator {
    color: var(--text-muted);
}

.breadcrumb-current {
    color: var(--text-primary);
}

.page-header h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.page-header p {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Category Filter */
.category-filter {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 64px;
    background: rgba(11, 14, 17, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.filter-tabs {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.filter-tab {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    white-space: nowrap;
    transition: all 0.3s;
}

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

.filter-tab.active {
    color: #181A20;
    background: var(--primary);
    border-color: var(--primary);
}

/* News List Layout */
.news-list {
    padding: 40px 0 80px;
}

.news-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

/* Featured Post */
.news-featured {
    margin-bottom: 40px;
}

.news-featured-link {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.news-featured-link:hover {
    border-color: var(--primary);
}

.news-featured-image {
    position: relative;
    min-height: 300px;
    overflow: hidden;
}

.news-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-featured-image .news-image-placeholder {
    width: 100%;
    height: 100%;
}

.news-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-card-hover) 0%, var(--bg-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
}

/* Override for img tags that have the placeholder class */
img.news-image-placeholder {
    display: block;
    background: none;
}

.news-image-placeholder svg {
    width: 48px;
    height: 48px;
    fill: var(--text-muted);
}

.news-image-placeholder span {
    font-size: 14px;
    color: var(--text-muted);
}

.news-image-placeholder.small {
    min-height: 160px;
}

.news-image-placeholder.small svg {
    width: 32px;
    height: 32px;
}

.news-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.news-badge.featured {
    background: var(--primary);
    color: #181A20;
}

.news-featured-content {
    padding: 32px 32px 32px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.news-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.news-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.news-card-link {
    display: flex;
    gap: 20px;
}

.news-card-image {
    flex: 0 0 200px;
    overflow: hidden;
}

.news-card-image img,
.news-card-image .news-image-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-card-content {
    flex: 1;
    padding: 20px 20px 20px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 12px 0 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* News Meta */
.news-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.news-category {
    padding: 2px 8px;
    background: rgba(240, 185, 11, 0.1);
    color: var(--primary);
    border-radius: 4px;
    font-weight: 500;
}

.news-date {
    color: var(--text-muted);
}

/* News Footer */
.news-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.news-read-more {
    font-size: 14px;
    color: var(--primary);
    font-weight: 500;
}

.news-views {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-muted);
}

.news-views svg {
    width: 16px;
    height: 16px;
    fill: var(--text-muted);
}

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

.pagination-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.pagination-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #181A20;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.pagination-ellipsis {
    color: var(--text-muted);
    padding: 0 8px;
}

/* Sidebar */
.news-sidebar,
.article-sidebar {
    position: sticky;
    top: 140px;
}

.sidebar-widget {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.widget-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

/* Hot News List */
.hot-news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hot-news-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    transition: background 0.3s;
}

.hot-news-item:hover {
    background: var(--bg-card-hover);
}

.hot-news-rank {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card-hover);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
}

.hot-news-item:nth-child(1) .hot-news-rank {
    background: var(--primary);
    color: #181A20;
}

.hot-news-item:nth-child(2) .hot-news-rank {
    background: rgba(240, 185, 11, 0.6);
    color: #181A20;
}

.hot-news-item:nth-child(3) .hot-news-rank {
    background: rgba(240, 185, 11, 0.3);
    color: var(--text-primary);
}

.hot-news-content h4 {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hot-news-views {
    font-size: 12px;
    color: var(--text-muted);
}

/* Category List */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 14px;
    color: var(--text-secondary);
}

.category-item:hover {
    background: var(--bg-card-hover);
    color: var(--primary);
}

.category-count {
    background: var(--bg-card-hover);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    color: var(--text-muted);
}

.category-item:hover .category-count {
    background: rgba(240, 185, 11, 0.1);
    color: var(--primary);
}

/* Sidebar CTA */
.sidebar-cta {
    text-align: center;
    background: linear-gradient(135deg, rgba(240, 185, 11, 0.15) 0%, rgba(240, 185, 11, 0.05) 100%);
    border-color: rgba(240, 185, 11, 0.3);
}

.sidebar-cta h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.sidebar-cta p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* ==================== Content Page ==================== */

/* Article Section */
.article-section {
    padding: 40px 0 80px;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

.article-main {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 40px;
    border: 1px solid var(--border-color);
}

/* Article Header */
.article-header {
    margin-bottom: 32px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    font-size: 14px;
}

.article-category {
    padding: 4px 12px;
    background: rgba(240, 185, 11, 0.1);
    color: var(--primary);
    border-radius: 4px;
    font-weight: 500;
}

.article-date,
.article-views {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
}

.article-date svg,
.article-views svg {
    width: 16px;
    height: 16px;
    fill: var(--text-muted);
}

.article-header h1 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 16px;
}

.article-summary {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    padding: 20px;
    background: rgba(240, 185, 11, 0.05);
    border-left: 3px solid var(--primary);
    border-radius: 0 8px 8px 0;
}

/* Article Image */
.article-image {
    margin-bottom: 32px;
}

.article-image-placeholder {
    width: 100%;
    min-height: 300px;
    background: linear-gradient(135deg, var(--bg-card-hover) 0%, var(--bg-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
}

.article-image-placeholder svg {
    width: 64px;
    height: 64px;
    fill: var(--text-muted);
}

.article-image-placeholder span {
    font-size: 14px;
    color: var(--text-muted);
}

/* Article Body */
.article-body {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-primary);
}

.article-body h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 32px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.article-body h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 24px 0 12px;
}

.article-body p {
    margin-bottom: 16px;
    color: var(--text-secondary);
}

/* Article Table */
.article-table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
}

.article-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.article-table th,
.article-table td {
    padding: 12px 16px;
    text-align: left;
    border: 1px solid var(--border-color);
}

.article-table th {
    background: var(--bg-card-hover);
    font-weight: 600;
    color: var(--text-primary);
}

.article-table td {
    color: var(--text-secondary);
}

.article-table tbody tr:hover {
    background: rgba(240, 185, 11, 0.05);
}

/* Article Notice */
.article-notice {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: rgba(246, 70, 93, 0.1);
    border: 1px solid rgba(246, 70, 93, 0.3);
    border-radius: 8px;
    margin: 24px 0;
}

.notice-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.notice-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--red);
}

.notice-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--red);
    margin-bottom: 8px;
}

.notice-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* Article Tags */
.article-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.tags-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.article-tag {
    padding: 4px 12px;
    background: var(--bg-card-hover);
    border-radius: 4px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.article-tag:hover {
    background: rgba(240, 185, 11, 0.1);
    color: var(--primary);
}

/* Article Share */
.article-share {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.share-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.share-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card-hover);
    border-radius: 8px;
    transition: all 0.3s;
}

.share-btn:hover {
    background: var(--primary);
}

.share-btn svg {
    width: 18px;
    height: 18px;
    fill: var(--text-secondary);
}

.share-btn:hover svg {
    fill: #181A20;
}

/* Article Navigation */
.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.article-nav-prev,
.article-nav-next {
    padding: 16px;
    background: var(--bg-card-hover);
    border-radius: 8px;
    transition: all 0.3s;
}

.article-nav-prev:hover,
.article-nav-next:hover {
    background: rgba(240, 185, 11, 0.1);
}

.nav-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.nav-title {
    font-size: 14px;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Article Author */
.article-author {
    text-align: center;
}

.author-avatar {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: rgba(240, 185, 11, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-avatar svg {
    width: 32px;
    height: 32px;
    fill: var(--primary);
}

.article-author h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.article-author p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Related Articles */
.related-articles {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.related-article {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    transition: background 0.3s;
}

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

.related-article-image {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

.related-image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-card-hover);
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-image-placeholder svg {
    width: 20px;
    height: 20px;
    fill: var(--text-muted);
}

.related-article-content h4 {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

/* Responsive */
@media (max-width: 1024px) {

    .hero-inner,
    .app-inner,
    .security-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .features-grid,
    .steps-grid,
    .users-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .crypto-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .news-layout,
    .article-layout {
        grid-template-columns: 1fr;
    }

    .news-featured-link {
        grid-template-columns: 1fr;
    }

    .news-featured-content {
        padding: 24px;
    }

    .news-sidebar,
    .article-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 32px;
    }

    .section-title {
        font-size: 28px;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .article-header h1 {
        font-size: 22px;
    }

    .article-main {
        padding: 24px;
    }

    /* Show hamburger menu on mobile */
    .hamburger-menu {
        display: flex;
    }

    /* Hide desktop nav on mobile */
    .main-nav {
        display: none;
    }

    .header-actions {
        display: none;
    }

    /* Show mobile menu */
    .mobile-menu {
        display: block;
    }

    .stats-grid,
    .features-grid,
    .steps-grid,
    .users-grid {
        grid-template-columns: 1fr;
    }

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

    .crypto-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .app-buttons {
        flex-direction: column;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .article-nav {
        grid-template-columns: 1fr;
    }

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

    .article-tags {
        flex-direction: column;
        align-items: flex-start;
    }

    .pagination {
        flex-wrap: wrap;
    }
}

/* WordPress Content Styles */
.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
    color: var(--text-primary);
    margin: 24px 0 16px;
    line-height: 1.4;
}

.article-body h1 { font-size: 28px; }
.article-body h2 { font-size: 24px; }
.article-body h3 { font-size: 20px; }
.article-body h4 { font-size: 18px; }

.article-body p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.article-body ul,
.article-body ol {
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 16px 0;
    padding-left: 24px;
}

.article-body li {
    margin-bottom: 8px;
}

.article-body a {
    color: var(--primary);
    text-decoration: none;
}

.article-body a:hover {
    text-decoration: underline;
}

.article-body blockquote {
    border-left: 4px solid var(--primary);
    padding: 16px 20px;
    margin: 20px 0;
    background: var(--bg-card);
    border-radius: 8px;
    color: var(--text-secondary);
}

.article-body pre {
    background: var(--bg-card);
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 16px 0;
}

.article-body code {
    background: var(--bg-card);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.article-body table th,
.article-body table td {
    padding: 12px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.article-body table th {
    background: var(--bg-card);
    color: var(--text-primary);
}

.article-body table td {
    color: var(--text-secondary);
}

/* WordPress Tag Links */
.article-tags a {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-card);
    color: var(--text-secondary);
    border-radius: 16px;
    font-size: 13px;
    margin: 4px 4px 4px 0;
    transition: all 0.2s;
}

.article-tags a:hover {
    background: var(--primary);
    color: var(--bg-dark);
    text-decoration: none;
}

/* WordPress Pagination */
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-card);
    transition: all 0.2s;
}

.pagination a:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    text-decoration: none;
}

.pagination span.current,
.pagination a.active {
    background: var(--primary);
    color: var(--bg-dark);
}

.pagination .prev,
.pagination .next {
    padding: 0 8px;
}

.pagination .prev svg,
.pagination .next svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Fallback Menu */
.main-nav ul {
    display: flex;
    gap: 32px;
    list-style: none;
}

.main-nav ul li a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

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

.mobile-menu nav ul {
    list-style: none;
}