/* Brand Exchange — Premium Dark Theme */
:root {
  --bg: #0a0a0f;
  --bg2: #12121a;
  --bg3: #1a1a26;
  --bg4: #222233;
  --border: #2a2a3a;
  --border2: #3a3a4a;
  --text: #e8e8f0;
  --text2: #9999aa;
  --text3: #666678;
  --primary: #6c5ce7;
  --primary2: #8b7cf7;
  --green: #00d68f;
  --green2: #0a2e1f;
  --red: #ff6b6b;
  --red2: #2e0a0a;
  --orange: #ffa726;
  --orange2: #2e1f0a;
  --blue: #54a0ff;
  --gold: #ffd700;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --font: 'Inter', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; min-height: 100vh; }
a { color: var(--primary2); text-decoration: none; cursor: pointer; }
img { max-width: 100%; }
input, select, button { font-family: var(--font); }
.text-green { color: var(--green) !important; }
.text-red { color: var(--red) !important; }
.text-orange { color: var(--orange) !important; }
.text-blue { color: var(--blue) !important; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border: none; border-radius: var(--radius-sm); font-weight: 600; font-size: 14px; cursor: pointer; transition: all 0.2s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary2); transform: translateY(-1px); }
.btn-outline { background: transparent; border: 1px solid var(--border2); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary2); }
.btn-ghost { background: rgba(108,92,231,0.1); color: var(--primary2); }
.btn-ghost:hover { background: rgba(108,92,231,0.2); }
.btn-green { background: var(--green); color: #000; font-weight: 700; }
.btn-green:hover { opacity: 0.9; }
.btn-red { background: var(--red); color: #fff; font-weight: 700; }
.btn-red:hover { opacity: 0.9; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(10,10,15,0.92); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1400px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; gap: 32px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); }
.logo-icon { width: 32px; height: 32px; background: var(--primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; color: #fff; }
.logo-highlight { color: var(--primary2); }
.nav-links { display: flex; gap: 8px; flex: 1; justify-content: flex-end; }
.nav-link { padding: 8px 16px; border-radius: var(--radius-sm); color: var(--text2); font-weight: 500; font-size: 14px; transition: all 0.2s; }
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--bg3); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-search { position: relative; }
.nav-search input { width: 220px; padding: 8px 16px; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-size: 13px; outline: none; transition: all 0.2s; }
.nav-search input:focus { border-color: var(--primary); width: 300px; }
.search-results { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-top: 4px; display: none; max-height: 400px; overflow-y: auto; z-index: 200; }
.search-results.active { display: block; }
.search-item { padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; border-bottom: 1px solid var(--border); }
.search-item:hover { background: var(--bg3); }
.search-item-left { display: flex; align-items: center; gap: 10px; }
.search-item .ticker { font-family: var(--mono); font-weight: 600; color: var(--primary2); font-size: 13px; }
.nav-balance { font-family: var(--mono); font-weight: 600; font-size: 13px; color: var(--gold); padding: 6px 12px; background: rgba(255,215,0,0.1); border-radius: var(--radius-sm); }
.nav-avatar { position: relative; width: 36px; height: 36px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; cursor: pointer; color: #fff; }
.user-menu { display: none; position: absolute; top: 100%; right: 0; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-top: 8px; min-width: 160px; z-index: 200; }
.user-menu.active { display: block; }
.user-menu a { display: block; padding: 10px 16px; color: var(--text2); font-size: 14px; }
.user-menu a:hover { background: var(--bg3); color: var(--text); }
.nav-mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-mobile-toggle span { display: block; width: 20px; height: 2px; background: var(--text); margin: 4px 0; }

/* Pages */
.page { display: none; }
.page.active { display: block; }

/* Hero Slider */
.hero-slider { position: relative; max-width: 1400px; margin: 12px auto 0; padding: 0 24px; height: 480px; overflow: hidden; }
.hero-slides { position: relative; width: 100%; height: 100%; }
.hero-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-slide-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 10; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.3s; }
.dot.active { background: #fff; transform: scale(1.2); }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.4); border: none; color: #fff; font-size: 24px; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; z-index: 10; transition: background 0.2s; display: flex; align-items: center; justify-content: center; }
.hero-arrow:hover { background: rgba(0,0,0,0.7); }
.hero-arrow-l { left: 20px; }
.hero-arrow-r { right: 20px; }

/* Stats Bar */
.hero-stats-bar { padding: 24px 0 8px; }
.hero-stats-inner { max-width: 1400px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.hero-stat { text-align: center; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 28px; min-width: 140px; }
.stat-num { display: block; font-size: 26px; font-weight: 800; font-family: var(--mono); animation: stat-shine 3s ease infinite; background: linear-gradient(90deg, #00d68f, #54a0ff, #ffd700, #00d68f); background-size: 300% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: 1.5px; margin-top: 2px; }
.hero-actions { display: flex; gap: 12px; margin-left: 12px; }

@media (max-width: 768px) {
  .hero-slider { height: 280px; }
  .hero-arrow { width: 36px; height: 36px; font-size: 18px; }
  .hero-stats-inner { gap: 24px; }
  .stat-num { font-size: 20px; }
  .hero-actions { flex-direction: column; align-items: center; }
}

/* Sections */
.section { max-width: 1400px; margin: 0 auto; padding: 48px 24px; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 28px; }
.section-header h2 { font-size: 28px; font-weight: 700; }
.section-sub { color: var(--text2); font-size: 15px; margin-top: 4px; }
.section-link { font-size: 14px; font-weight: 600; color: var(--primary2); white-space: nowrap; }
.page-title { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.page-sub { color: var(--text2); margin-bottom: 32px; }

/* Top Brands List */
.top-brands-list { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.top-brand-list-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background 0.2s; }
.top-brand-list-item:last-child { border-bottom: none; }
.top-brand-list-item:hover { background: var(--bg3); }
.top-list-rank { font-family: var(--mono); font-weight: 800; font-size: 14px; color: var(--text3); flex-shrink: 0; width: 24px; text-align: center; }
.top-list-info { display: contents; }
.top-list-name { font-weight: 600; font-size: 13px; white-space: nowrap; flex-shrink: 0; }
.top-list-ticker { font-family: var(--mono); font-size: 11px; color: var(--text3); font-weight: 400; flex-shrink: 0; }
.top-list-story { font-size: 12px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.top-list-scores { display: flex; gap: 4px; flex-shrink: 0; align-items: center; }
.top-list-scores .score { font-size: 10px; padding: 2px 6px; }
.top-list-price-wrap { flex-shrink: 0; display: flex; align-items: center; gap: 8px; }
.top-list-price { font-family: var(--mono); font-weight: 700; font-size: 13px; }
.top-list-change { font-family: var(--mono); font-weight: 600; font-size: 12px; }
@media (max-width: 768px) { .top-list-scores { display: none; } .top-list-story { display: none; } }

/* Brand Cards */
.brand-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.brand-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; cursor: pointer; transition: all 0.2s; position: relative; overflow: hidden; }
.brand-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.brand-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.brand-card-info { display: flex; align-items: center; gap: 12px; }
.brand-card-icon { width: 44px; height: 44px; background: var(--bg4); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; color: var(--primary2); flex-shrink: 0; }
.brand-logo { border-radius: 10px; object-fit: contain; background: var(--bg4); padding: 4px; flex-shrink: 0; }
.brand-card-name { font-weight: 700; font-size: 16px; }
.brand-card-ticker { font-family: var(--mono); font-size: 12px; color: var(--text3); }
.brand-card-meta { font-size: 12px; color: var(--text3); }
.brand-card-price { text-align: right; }
.brand-card-price .price { font-family: var(--mono); font-weight: 700; font-size: 18px; }
.brand-card-price .change { font-family: var(--mono); font-size: 13px; font-weight: 600; }
.brand-card-story { font-size: 13px; color: var(--text2); margin-bottom: 12px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.brand-card-scores { display: flex; gap: 12px; }
.brand-card-scores .score { font-size: 11px; padding: 4px 8px; border-radius: 4px; font-weight: 600; }
.score-brand { background: rgba(108,92,231,0.15); color: var(--primary2); }
.score-momentum { background: rgba(0,214,143,0.15); color: var(--green); }
.score-sentiment { background: rgba(84,160,255,0.15); color: var(--blue); }
.score-controversy { background: rgba(255,167,38,0.15); color: var(--orange); }
.brand-card-tag { position: absolute; top: 12px; right: 12px; font-size: 10px; padding: 3px 8px; border-radius: 4px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.tag-featured { background: var(--gold); color: #000; }
.tag-rising { background: var(--green); color: #000; }
.tag-controversial { background: var(--orange); color: #000; }

/* News Grid */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.news-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; cursor: pointer; transition: all 0.2s; }
.news-card:hover { border-color: var(--primary); }
.news-card-sentiment { font-size: 11px; padding: 3px 8px; border-radius: 4px; font-weight: 700; text-transform: uppercase; display: inline-block; margin-bottom: 12px; }
.sentiment-positive { background: var(--green2); color: var(--green); }
.sentiment-negative { background: var(--red2); color: var(--red); }
.sentiment-neutral { background: var(--bg4); color: var(--text2); }
.sentiment-mixed { background: var(--orange2); color: var(--orange); }
.news-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.news-card .summary { font-size: 13px; color: var(--text2); margin-bottom: 12px; line-height: 1.5; }
.news-card .ai-tag { font-size: 11px; font-weight: 600; color: var(--primary2); margin-bottom: 8px; }
.news-card .ai-analysis { font-size: 13px; color: var(--text2); background: rgba(108,92,231,0.06); border-left: 3px solid var(--primary); padding: 10px 14px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; line-height: 1.5; }
.news-card .brands-tag { margin-top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.news-card .brand-tag { font-size: 11px; padding: 2px 8px; background: var(--bg4); border-radius: 4px; font-family: var(--mono); color: var(--text2); }
.news-full-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 16px; }

/* Mini List (gainers/losers) */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.two-col h3 { margin-bottom: 16px; font-size: 18px; }
.mini-list { display: flex; flex-direction: column; gap: 8px; }
.mini-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--bg2); border-radius: var(--radius-sm); cursor: pointer; transition: background 0.2s; }
.mini-item:hover { background: var(--bg3); }
.mini-item-left { display: flex; align-items: center; gap: 10px; }
.mini-item .name { font-weight: 600; font-size: 14px; }
.mini-item .ticker-small { font-family: var(--mono); font-size: 12px; color: var(--text3); }
.mini-item .change { font-family: var(--mono); font-weight: 700; font-size: 14px; }

/* Ranking Table */
.ranking-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.tab { padding: 8px 18px; border-radius: var(--radius-sm); background: var(--bg3); border: 1px solid transparent; color: var(--text2); font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.tab:hover, .tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.ranking-filters { display: flex; gap: 12px; margin-bottom: 20px; }
.ranking-filters select, .market-filters select, .market-filters input { padding: 8px 14px; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-size: 13px; outline: none; }
.ranking-table-wrap { overflow-x: auto; }
.ranking-table { width: 100%; border-collapse: collapse; }
.ranking-table th { text-align: left; padding: 12px 16px; font-size: 12px; color: var(--text3); text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.ranking-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 14px; white-space: nowrap; }
.ranking-table tr { cursor: pointer; transition: background 0.2s; }
.ranking-table tbody tr:hover { background: var(--bg3); }
.ranking-table tr.rank-1,
.ranking-table tr.rank-2,
.ranking-table tr.rank-3 { border-radius: var(--radius-sm); }
.ranking-table tr.rank-1 td,
.ranking-table tr.rank-2 td,
.ranking-table tr.rank-3 td { padding-top: 18px; padding-bottom: 18px; border-bottom: 8px solid var(--bg); }
.ranking-table tr.rank-1 td { background: rgba(255,230,0,0.15); border-top: 2px solid rgba(255,230,0,0.7); border-bottom: 8px solid var(--bg) !important; }
.ranking-table tr.rank-1 td:first-child { border-left: 4px solid #ffe600; }
.ranking-table tr.rank-1 td:last-child { border-right: 4px solid #ffe600; }
.ranking-table tr.rank-2 td { background: rgba(160,180,210,0.1); border-top: 1px solid rgba(160,180,210,0.4); border-bottom: 8px solid var(--bg) !important; }
.ranking-table tr.rank-2 td:first-child { border-left: 4px solid #8ab4f8; }
.ranking-table tr.rank-2 td:last-child { border-right: 4px solid #8ab4f8; }
.ranking-table tr.rank-3 td { background: rgba(230,126,34,0.1); border-top: 1px solid rgba(230,126,34,0.4); border-bottom: 8px solid var(--bg) !important; }
.ranking-table tr.rank-3 td:first-child { border-left: 4px solid #e67e22; }
.ranking-table tr.rank-3 td:last-child { border-right: 4px solid #e67e22; }
@keyframes glow-gold { 0%,100% { box-shadow: 0 0 15px rgba(255,230,0,0.3); } 50% { box-shadow: 0 0 35px rgba(255,230,0,0.6); } }
@keyframes glow-silver { 0%,100% { box-shadow: 0 0 15px rgba(138,180,248,0.2); } 50% { box-shadow: 0 0 30px rgba(138,180,248,0.4); } }
@keyframes glow-bronze { 0%,100% { box-shadow: 0 0 15px rgba(230,126,34,0.2); } 50% { box-shadow: 0 0 30px rgba(230,126,34,0.4); } }
.ranking-table tr.rank-1 { animation: glow-gold 3s ease infinite; }
.ranking-table tr.rank-2 { animation: glow-silver 3s ease infinite; }
.ranking-table tr.rank-3 { animation: glow-bronze 3s ease infinite; }
.ranking-table .brand-cell { display: flex; align-items: center; gap: 10px; }
.ranking-table .brand-cell .icon { width: 36px; height: 36px; background: var(--bg4); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: var(--primary2); flex-shrink: 0; }
.ranking-table .brand-cell .name { font-weight: 600; }
.ranking-table .brand-cell .ticker { font-family: var(--mono); font-size: 12px; color: var(--text3); }
.ranking-table .price { font-family: var(--mono); font-weight: 600; }
.ranking-table .story-cell { max-width: 250px; font-size: 12px; color: var(--text2); white-space: normal; line-height: 1.4; }

/* Market Grid */
.market-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 28px; }
.market-stat-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; }
.market-stat-card .label { font-size: 12px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.5px; }
.market-stat-card .value { font-size: 22px; font-weight: 700; font-family: var(--mono); margin-top: 4px; }
.market-filters { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.market-filters input { flex: 1; min-width: 200px; }
.brand-table-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }

/* Brand Detail Page */
.brand-hero { padding: 24px 0 20px; background: linear-gradient(180deg, rgba(108,92,231,0.06) 0%, transparent 100%); }
.brand-hero-inner { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.brand-hero-top { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.brand-header { display: flex; align-items: center; gap: 14px; }
.brand-header-icon { width: 48px; height: 48px; background: var(--bg4); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; color: var(--primary2); }
.brand-header-info h1 { font-size: 22px; font-weight: 800; line-height: 1.2; }
.brand-header-info .tagline { color: var(--text2); font-size: 13px; }
.brand-header-info .meta { display: flex; gap: 12px; margin-top: 4px; font-size: 12px; color: var(--text3); }
.brand-price-section { display: flex; align-items: baseline; gap: 12px; margin-left: auto; flex-shrink: 0; }
.brand-current-price { font-size: 28px; font-weight: 800; font-family: var(--mono); }
.brand-price-change { font-size: 15px; font-weight: 700; font-family: var(--mono); }
.brand-stats-bar { display: flex; gap: 0; margin-top: 16px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.brand-quick-stat { flex: 1; text-align: center; padding: 10px 8px; border-right: 1px solid var(--border); }
.brand-quick-stat:last-child { border-right: none; }
.brand-quick-stat .val { font-family: var(--mono); font-weight: 700; font-size: 14px; }
.brand-quick-stat .lbl { font-size: 10px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.5px; }
@media (max-width: 768px) {
  .brand-hero-top { flex-direction: column; align-items: flex-start; }
  .brand-price-section { margin-left: 0; }
  .brand-stats-bar { flex-wrap: wrap; }
  .brand-quick-stat { min-width: 33%; }
}

.brand-body { max-width: 1400px; margin: 0 auto; padding: 0 24px 48px; display: grid; grid-template-columns: 1fr 380px; gap: 32px; }
.brand-main { display: flex; flex-direction: column; gap: 24px; }
.brand-sidebar { display: flex; flex-direction: column; gap: 16px; }

.info-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.info-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.info-card .ai-badge { font-size: 10px; padding: 2px 8px; background: rgba(108,92,231,0.2); border-radius: 4px; color: var(--primary2); font-weight: 700; }
.info-card p { font-size: 14px; color: var(--text2); line-height: 1.7; }
.info-card .ai-text { background: rgba(108,92,231,0.06); border-left: 3px solid var(--primary); padding: 12px 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 14px; color: var(--text2); line-height: 1.6; }

.score-bars { display: flex; flex-direction: column; gap: 12px; }
.score-bar-item { display: flex; align-items: center; gap: 12px; }
.score-bar-label { font-size: 12px; color: var(--text3); width: 90px; text-transform: uppercase; letter-spacing: 0.5px; }
.score-bar-track { flex: 1; height: 8px; background: var(--bg4); border-radius: 4px; overflow: hidden; }
.score-bar-fill { height: 100%; border-radius: 4px; transition: width 0.5s ease; }
.score-bar-value { font-family: var(--mono); font-weight: 700; font-size: 13px; width: 40px; text-align: right; }

/* Trade Panel */
.trade-panel { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.trade-panel h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.trade-tabs { display: flex; gap: 0; margin-bottom: 20px; }
.trade-tab { flex: 1; padding: 10px; text-align: center; font-weight: 700; font-size: 14px; cursor: pointer; border: 1px solid var(--border); transition: all 0.2s; }
.trade-tab:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.trade-tab:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.trade-tab.active-buy { background: var(--green); color: #000; border-color: var(--green); }
.trade-tab.active-sell { background: var(--red); color: #fff; border-color: var(--red); }
.trade-type-tabs { display: flex; gap: 0; margin-bottom: 16px; }
.trade-type-tab { flex: 1; padding: 7px; text-align: center; font-weight: 600; font-size: 12px; cursor: pointer; border: 1px solid var(--border); color: var(--text3); transition: all 0.2s; text-transform: uppercase; letter-spacing: 0.5px; }
.trade-type-tab:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.trade-type-tab:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.trade-type-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.trade-input-group { margin-bottom: 16px; }
.trade-input-group label { font-size: 12px; color: var(--text3); margin-bottom: 6px; display: block; text-transform: uppercase; letter-spacing: 0.5px; }
.trade-input-group input { width: 100%; padding: 10px 14px; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-family: var(--mono); font-size: 15px; outline: none; }
.trade-input-group input:focus { border-color: var(--primary); }
.trade-summary { padding: 12px 0; border-top: 1px solid var(--border); margin-top: 12px; }
.trade-summary-row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.trade-summary-row .label { color: var(--text3); }
.trade-summary-row .value { font-family: var(--mono); font-weight: 600; }
.trade-warning { font-size: 11px; color: var(--text3); text-align: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }

/* Chart placeholder */
.chart-container { width: 100%; height: 300px; background: var(--bg3); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--text3); position: relative; overflow: hidden; }
.chart-canvas { width: 100%; height: 100%; }

/* Portfolio */
.portfolio-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 32px; }
.portfolio-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.portfolio-card .label { font-size: 12px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.5px; }
.portfolio-card .value { font-size: 24px; font-weight: 800; font-family: var(--mono); margin-top: 4px; }
.holdings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-bottom: 32px; }
.holding-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; cursor: pointer; transition: all 0.2s; }
.holding-card:hover { border-color: var(--primary); }
.holding-card-top { display: flex; justify-content: space-between; margin-bottom: 8px; }
.holding-card .name { font-weight: 700; }
.holding-card .ticker { font-family: var(--mono); font-size: 12px; color: var(--text3); }
.holding-card-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 13px; }
.holding-card-stats .stat-label { color: var(--text3); }
.holding-card-stats .stat-value { font-family: var(--mono); font-weight: 600; text-align: right; }

/* Watchlist */
.watchlist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.watchlist-empty { text-align: center; padding: 60px 20px; color: var(--text3); }

/* Live Ticker */
.live-ticker { background: var(--bg2); border-bottom: 1px solid var(--border); height: 36px; }
.live-ticker-inner { max-width: 1400px; margin: 0 auto; padding: 0 24px; height: 100%; display: flex; align-items: center; gap: 12px; }
.live-ticker-label { background: var(--red); color: #fff; font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 4px; letter-spacing: 1px; flex-shrink: 0; animation: pulse-live 2s infinite; }
@keyframes stat-shine { 0% { background-position: 200% center; } 100% { background-position: -200% center; } }
@keyframes pulse-live { 0%,100% { opacity: 1; } 50% { opacity: 0.6; } }
.live-ticker-scroll { display: flex; flex: 1; overflow: hidden; }
.live-ticker-item { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 11px; font-family: var(--mono); border-right: 1px solid var(--border); white-space: nowrap; flex: 1; min-width: 0; }
.live-ticker-item:last-child { border-right: none; }
.live-ticker-item .ticker-name { font-weight: 700; color: var(--text); }

/* Chart Timeframe Tabs */
.chart-tabs { display: flex; gap: 4px; margin-bottom: 12px; }
.chart-tab { padding: 4px 12px; border-radius: 4px; background: var(--bg4); border: none; color: var(--text3); font-size: 12px; font-weight: 600; cursor: pointer; font-family: var(--mono); }
.chart-tab.active { background: var(--primary); color: #fff; }
.chart-type-toggle { margin-left: auto; display: flex; gap: 4px; }

/* Recent Trades Panel */
.recent-trades { max-height: 300px; overflow-y: auto; }
.recent-trades table { width: 100%; border-collapse: collapse; }
.recent-trades th { text-align: left; padding: 6px 10px; font-size: 11px; color: var(--text3); text-transform: uppercase; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--bg2); }
.recent-trades td { padding: 6px 10px; font-size: 12px; font-family: var(--mono); border-bottom: 1px solid rgba(255,255,255,0.03); }
.trade-buy { color: var(--green); }
.trade-sell { color: var(--red); }

/* Community */
.community-sort { display: flex; gap: 8px; margin-bottom: 20px; }
.post-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 12px; cursor: pointer; transition: border-color 0.2s; }
.post-card:hover { border-color: var(--primary); }
.post-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 12px; color: var(--text3); }
.post-card-header .author { font-weight: 600; color: var(--text2); }
.post-card-header .rank { font-size: 10px; padding: 2px 6px; background: var(--bg4); border-radius: 4px; }
.post-card-brand { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px 2px 2px; background: rgba(108,92,231,0.1); border-radius: 6px; cursor: pointer; transition: background 0.2s; }
.post-card-brand:hover { background: rgba(108,92,231,0.2); }
.post-card-brand .brand-logo { border-radius: 4px; padding: 1px; }
.post-card-header .brand-tag { font-family: var(--mono); font-size: 11px; padding: 2px 6px; background: none; border-radius: 4px; color: var(--primary2); font-weight: 600; }
.post-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.post-card .post-preview { font-size: 14px; color: var(--text2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 12px; }
.post-card-footer { display: flex; align-items: center; gap: 16px; font-size: 13px; }
.vote-btn { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 6px; border: 1px solid var(--border); background: none; color: var(--text3); cursor: pointer; font-size: 13px; font-weight: 600; transition: all 0.2s; }
.vote-btn:hover { border-color: var(--text2); color: var(--text); }
.vote-btn.voted-up { border-color: var(--green); color: var(--green); background: var(--green2); }
.vote-btn.voted-down { border-color: var(--red); color: var(--red); background: var(--red2); }
.comment-count { color: var(--text3); display: flex; align-items: center; gap: 4px; }

/* Post Detail */
.post-detail { max-width: 1400px; margin: 0 auto; }
.post-detail .post-body { font-size: 15px; line-height: 1.8; color: var(--text); margin: 20px 0; white-space: pre-wrap; }
.post-detail .post-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text3); margin-bottom: 16px; }
.post-detail .post-actions { display: flex; gap: 12px; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 24px; }

/* Comments */
.comments-section h3 { margin-bottom: 16px; }
.comment-form { display: flex; gap: 10px; margin-bottom: 24px; }
.comment-form textarea { flex: 1; padding: 10px 14px; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-size: 14px; font-family: var(--font); resize: none; min-height: 44px; outline: none; }
.comment-form textarea:focus { border-color: var(--primary); }
.comment-item { padding: 14px 0; border-bottom: 1px solid var(--border); }
.comment-item:last-child { border-bottom: none; }
.comment-header { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text3); margin-bottom: 6px; }
.comment-header .author { font-weight: 600; color: var(--text2); }
.comment-body { font-size: 14px; line-height: 1.6; color: var(--text); margin-bottom: 8px; }
.comment-actions { display: flex; gap: 10px; }
.comment-actions .vote-btn { padding: 2px 8px; font-size: 12px; }

/* Brand Detail Main Tabs */
.brand-main-tabs { display: flex; margin-top: 20px; border-bottom: 2px solid var(--border); }
.brand-sidebar-tab { padding: 12px 28px; font-weight: 600; font-size: 15px; color: var(--text3); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.2s; }
.brand-sidebar-tab:hover { color: var(--text); }
.brand-sidebar-tab.active { color: var(--primary2); border-bottom-color: var(--primary); }

/* Wallet */
.wallet-balances { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 32px; }
.wallet-balance-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.wallet-balance-card .currency { font-size: 13px; color: var(--text3); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.wallet-balance-card .amount { font-size: 32px; font-weight: 800; font-family: var(--mono); }
.wallet-balance-card .usd-equiv { font-size: 13px; color: var(--text3); margin-top: 4px; }
.wallet-sections { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 32px; }
.wallet-section { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.wallet-section h3 { margin-bottom: 16px; font-size: 18px; }
.wallet-input-group { margin-bottom: 14px; }
.wallet-input-group label { display: block; font-size: 12px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.wallet-input-group input, .wallet-input-group select { width: 100%; padding: 10px 14px; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-size: 14px; font-family: var(--mono); outline: none; }
.wallet-input-group input:focus { border-color: var(--primary); }
.wallet-rate { font-size: 12px; color: var(--text3); margin-bottom: 12px; padding: 8px 12px; background: var(--bg3); border-radius: var(--radius-sm); }
.wallet-preview { padding: 12px 0; border-top: 1px solid var(--border); margin-top: 8px; }
.wallet-preview-row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; }
.wallet-preview-row .label { color: var(--text3); }
.wallet-preview-row .value { font-family: var(--mono); font-weight: 600; }
.wallet-history { margin-top: 32px; }
.wallet-history table { width: 100%; border-collapse: collapse; }
.wallet-history th { text-align: left; padding: 10px 14px; font-size: 12px; color: var(--text3); text-transform: uppercase; border-bottom: 1px solid var(--border); }
.wallet-history td { padding: 10px 14px; font-size: 13px; border-bottom: 1px solid var(--border); }
.status-pending { color: var(--orange); }
.status-completed { color: var(--green); }
.status-rejected { color: var(--red); }
.status-processing { color: var(--blue); }
@media (max-width: 768px) { .wallet-balances, .wallet-sections { grid-template-columns: 1fr; } }

/* Help Center */
.help-tabs { display: flex; gap: 8px; margin-bottom: 24px; }
.notice-item { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 12px; cursor: pointer; transition: border-color 0.2s; }
.notice-item:hover { border-color: var(--primary); }
.notice-item.pinned { border-left: 3px solid var(--gold); }
.notice-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.notice-title { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.notice-pin { font-size: 10px; padding: 2px 8px; background: rgba(255,215,0,0.15); color: var(--gold); border-radius: 4px; font-weight: 700; }
.notice-date { font-size: 12px; color: var(--text3); }
.notice-body { font-size: 14px; color: var(--text2); line-height: 1.7; white-space: pre-line; display: none; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.notice-item.open .notice-body { display: block; }

.faq-category { margin-bottom: 24px; }
.faq-category-title { font-size: 14px; font-weight: 700; color: var(--primary2); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.faq-item { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 8px; overflow: hidden; }
.faq-question { padding: 14px 18px; font-weight: 600; font-size: 14px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background 0.2s; }
.faq-question:hover { background: var(--bg3); }
.faq-question .arrow { color: var(--text3); transition: transform 0.2s; }
.faq-item.open .faq-question .arrow { transform: rotate(180deg); }
.faq-answer { display: none; padding: 0 18px 14px; font-size: 14px; color: var(--text2); line-height: 1.7; white-space: pre-line; }
.faq-item.open .faq-answer { display: block; }

.qna-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.qna-item { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 10px; }
.qna-item-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.qna-item-title { font-weight: 600; font-size: 15px; }
.qna-item-meta { font-size: 12px; color: var(--text3); display: flex; gap: 10px; }
.qna-status { font-size: 11px; padding: 2px 8px; border-radius: 4px; font-weight: 600; }
.qna-status.waiting { background: rgba(255,167,38,0.15); color: var(--orange); }
.qna-status.answered { background: rgba(0,214,143,0.15); color: var(--green); }
.qna-content { font-size: 14px; color: var(--text2); line-height: 1.6; }
.qna-answer-box { margin-top: 12px; padding: 12px 16px; background: rgba(108,92,231,0.06); border-left: 3px solid var(--primary); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.qna-answer-label { font-size: 11px; font-weight: 700; color: var(--primary2); margin-bottom: 4px; }
.qna-answer-text { font-size: 14px; color: var(--text2); line-height: 1.6; white-space: pre-line; }

/* Guide Modal */
.guide-content { font-size: 14px; line-height: 1.7; color: var(--text2); }
.guide-content h3 { font-size: 16px; font-weight: 700; color: var(--text); margin: 24px 0 12px; display: flex; align-items: center; gap: 8px; }
.guide-content h3:first-child { margin-top: 8px; }
.guide-content p { margin-bottom: 10px; }
.guide-content strong { color: var(--text); }
.guide-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 16px; }
.guide-card { background: var(--bg3); border-radius: var(--radius-sm); padding: 14px; border-left: 3px solid var(--primary); }
.guide-card .gc-icon { font-size: 20px; margin-bottom: 6px; }
.guide-card .gc-title { font-weight: 700; font-size: 13px; color: var(--text); margin-bottom: 4px; }
.guide-card .gc-desc { font-size: 12px; color: var(--text2); line-height: 1.5; }
.guide-card.green { border-left-color: var(--green); }
.guide-card.red { border-left-color: var(--red); }
.guide-card.orange { border-left-color: var(--orange); }
.guide-card.blue { border-left-color: var(--blue); }
.guide-card.gold { border-left-color: var(--gold); }
.guide-flow { display: flex; gap: 0; margin: 12px 0 16px; flex-wrap: wrap; }
.guide-flow-step { flex: 1; min-width: 100px; text-align: center; padding: 12px 8px; position: relative; }
.guide-flow-step::after { content: '→'; position: absolute; right: -6px; top: 50%; transform: translateY(-50%); color: var(--text3); font-size: 16px; }
.guide-flow-step:last-child::after { display: none; }
.guide-flow-step .gf-icon { font-size: 24px; margin-bottom: 6px; }
.guide-flow-step .gf-label { font-size: 11px; font-weight: 600; color: var(--text); }
.guide-tip { display: flex; gap: 10px; align-items: flex-start; background: rgba(108,92,231,0.08); border-radius: var(--radius-sm); padding: 12px 14px; margin: 6px 0; font-size: 13px; }
.guide-tip::before { content: '💡'; flex-shrink: 0; }
@media (max-width: 768px) { .guide-cards { grid-template-columns: 1fr; } }

/* Introduce Page */
.intro-hero { text-align: center; padding: 40px 0 32px; }
.intro-badge { display: inline-block; padding: 6px 16px; background: rgba(108,92,231,0.15); border: 1px solid rgba(108,92,231,0.3); border-radius: 20px; font-size: 13px; font-weight: 600; color: var(--primary2); margin-bottom: 20px; letter-spacing: 0.5px; }
.intro-hero h1 { font-size: 42px; font-weight: 800; margin-bottom: 16px; }
.intro-subtitle { font-size: 18px; color: var(--text2); max-width: 640px; margin: 0 auto; line-height: 1.6; }
.intro-section { margin-top: 48px; }
.intro-section h2 { font-size: 24px; font-weight: 700; margin-bottom: 20px; }
.intro-section > p { font-size: 15px; color: var(--text2); line-height: 1.7; margin-bottom: 12px; }
.intro-highlight { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
.intro-highlight-item { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-align: center; }
.intro-icon { font-size: 32px; margin-bottom: 12px; }
.intro-highlight-item h4 { font-size: 15px; margin-bottom: 8px; }
.intro-highlight-item p { font-size: 13px; color: var(--text2); line-height: 1.5; }
.intro-steps { display: flex; flex-direction: column; gap: 16px; }
.intro-step { display: flex; gap: 16px; align-items: flex-start; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.step-num { width: 36px; height: 36px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; color: #fff; flex-shrink: 0; }
.intro-step h4 { font-size: 15px; margin-bottom: 4px; }
.intro-step p { font-size: 13px; color: var(--text2); line-height: 1.5; }
.intro-guides { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.intro-guide { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; cursor: pointer; transition: border-color 0.2s; }
.intro-guide:hover { border-color: var(--primary); }
.intro-guide h4 { font-size: 15px; margin-bottom: 8px; }
.intro-guide p { font-size: 13px; color: var(--text2); line-height: 1.5; }
.intro-scores { display: flex; flex-direction: column; gap: 12px; }
.intro-score-item { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.intro-score-item .score { flex-shrink: 0; width: 120px; text-align: center; }
.intro-score-item p { font-size: 13px; color: var(--text2); line-height: 1.5; }
@media (max-width: 768px) { .intro-highlight { grid-template-columns: 1fr 1fr; } .intro-guides { grid-template-columns: 1fr; } .intro-hero h1 { font-size: 28px; } }

/* Brand News Detail */
.brand-news-list { max-height: 600px; overflow-y: auto; }
.news-detail-item { padding: 16px 0; border-bottom: 1px solid var(--border); transition: background 0.2s; }
.news-detail-item:hover { background: rgba(108,92,231,0.03); margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-radius: 8px; }
.news-detail-item:last-child { border-bottom: none; }

/* Trade History */
.trade-history { overflow-x: auto; }
.trade-history table { width: 100%; border-collapse: collapse; }
.trade-history th { text-align: left; padding: 10px 14px; font-size: 12px; color: var(--text3); text-transform: uppercase; border-bottom: 1px solid var(--border); }
.trade-history td { padding: 10px 14px; font-size: 13px; border-bottom: 1px solid var(--border); }

/* Profile */
.profile-info { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; max-width: 600px; }
.profile-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); }
.profile-row:last-child { border-bottom: none; }
.profile-row .label { color: var(--text3); font-size: 14px; }
.profile-row .value { font-weight: 600; }

/* Disclaimer */
.disclaimer-section { padding-top: 0; }
.disclaimer-box { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; font-size: 13px; color: var(--text3); line-height: 1.6; }

/* Modals */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); z-index: 500; align-items: center; justify-content: center; }
.modal-overlay.active { display: flex; }
.modal { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; max-width: 420px; width: 90%; position: relative; }
.modal-trade { max-width: 480px; }
.modal-close { position: absolute; top: 12px; right: 16px; background: none; border: none; color: var(--text3); font-size: 24px; cursor: pointer; }
.modal h2 { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.modal .modal-sub { color: var(--text2); font-size: 14px; margin-bottom: 24px; }
.modal form input { width: 100%; padding: 12px 16px; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-size: 14px; margin-bottom: 12px; outline: none; }
.modal form input:focus { border-color: var(--primary); }
.modal form button { margin-top: 8px; }
.modal-switch { text-align: center; font-size: 13px; color: var(--text3); margin-top: 16px; }
.modal-switch a { color: var(--primary2); cursor: pointer; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.pagination button { padding: 8px 14px; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text2); cursor: pointer; font-size: 13px; }
.pagination button.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Footer */
.footer { background: var(--bg2); border-top: 1px solid var(--border); margin-top: 48px; }
.footer-inner { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.footer-top { display: flex; gap: 48px; padding: 40px 0 32px; border-bottom: 1px solid var(--border); }
.footer-company { flex: 1; min-width: 240px; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; margin-bottom: 12px; }
.footer-tagline { font-size: 13px; color: var(--text3); line-height: 1.5; margin-bottom: 16px; }
.footer-contact { font-size: 13px; color: var(--text2); margin-bottom: 12px; }
.footer-operator { font-size: 12px; color: var(--text3); }
.footer-nav { display: flex; gap: 48px; flex: 2; }
.footer-nav-col { display: flex; flex-direction: column; gap: 8px; }
.footer-nav-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text3); margin-bottom: 4px; }
.footer-nav-col a { font-size: 13px; color: var(--text2); transition: color 0.2s; }
.footer-nav-col a:hover { color: var(--primary2); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; }
.footer-copyright { font-size: 12px; color: var(--text3); }
.footer-legal-links { display: flex; gap: 20px; }
.footer-legal-links a { font-size: 12px; color: var(--text3); transition: color 0.2s; }
.footer-legal-links a:hover { color: var(--text); }
.footer-disclaimer-bar { background: var(--bg); padding: 14px 24px; text-align: center; font-size: 11px; color: var(--text3); line-height: 1.6; }

/* Legal content */
.legal-content { font-size: 14px; color: var(--text2); line-height: 1.7; }
.legal-content h3 { font-size: 16px; font-weight: 700; color: var(--text); margin: 20px 0 8px; }
.legal-content p { margin-bottom: 10px; }
.legal-content strong { color: var(--text); }

/* Notification toast */
.toast { position: fixed; bottom: 24px; right: 24px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 20px; z-index: 1000; transform: translateY(100px); opacity: 0; transition: all 0.3s; max-width: 400px; font-size: 14px; }
.toast.active { transform: translateY(0); opacity: 1; }
.toast.success { border-color: var(--green); }
.toast.error { border-color: var(--red); }

/* Mobile */
@media (max-width: 768px) {
  .hero h1 { font-size: 28px; }
  .hero-sub { font-size: 15px; }
  .hero-stats { gap: 24px; }
  .stat-num { font-size: 20px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .nav-links { display: none; position: fixed; top: 64px; left: 0; right: 0; background: var(--bg2); padding: 16px; flex-direction: column; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-mobile-toggle { display: block; }
  .nav-search input { width: 140px; }
  .nav-search input:focus { width: 180px; }
  .two-col { grid-template-columns: 1fr; }
  .brand-body { grid-template-columns: 1fr; }
  .brand-cards { grid-template-columns: 1fr; }
  .news-grid, .news-full-grid { grid-template-columns: 1fr; }
  .brand-table-grid { grid-template-columns: 1fr; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-nav { flex-wrap: wrap; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-legal-links { justify-content: center; }
  .ranking-tabs { overflow-x: auto; flex-wrap: nowrap; }
  .brand-current-price { font-size: 28px; }
  .market-filters { flex-direction: column; }
}
