/* ===== БИРЖА ПРОМПТОВ — ЗОЛОТАЯ ТЕМА (ТЁМНАЯ ПО УМОЛЧАНИЮ) ===== */

:root {
  --bg-dark: #0d0d0d;
  --bg-card: #1a1a1a;
  --gold: #D4AF37;
  --gold-light: #FFD700;
  --gold-dark: #B8860B;
  --gold-gradient: linear-gradient(180deg, #FFD700 0%, #D4AF37 30%, #FFF8DC 50%, #D4AF37 70%, #B8860B 100%);
  --text: #e0e0e0;
  --text-muted: #999;
  --border: #333;
  --accent-red: #ff4444;
  --accent-green: #44ff44;
  /* Дополнительные переменные для новых тем */
  --bg-hover: #222;
  --border-glow: #D4AF37;
  --accent: #D4AF37;
  --accent-hover: #B8860B;
  --accent-glow: rgba(212, 175, 55, 0.15);
  --danger: #ff4444;
  --danger-hover: #cc3333;
  --warning: #ffaa00;
  --success: #44ff44;
  --chart-grid: rgba(255,255,255,0.05);
  --chart-line: #FFD700;
  --chart-fill: rgba(255,215,0,0.1);
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 20px rgba(212,175,55,0.1);
  --modal-overlay: rgba(0,0,0,0.8);
  --terminal-bg: #050510;
  --terminal-text: #FFD700;
  --badge-bg: rgba(212,175,55,0.1);
  --badge-text: #FFD700;
  --theme-toggle-bg: #1a1a1a;
  --theme-toggle-text: #FFD700;
}

/* ===== ПЛАТИНОВАЯ ТЕМА ===== */
[data-theme="platinum"] {
  --bg-dark: #1a1a24;
  --bg-card: #2a2a3a;
  --gold: #c0a0ff;
  --gold-light: #e0c8ff;
  --gold-dark: #a080e0;
  --gold-gradient: linear-gradient(180deg, #e0c8ff 0%, #c0a0ff 30%, #f0e8ff 50%, #c0a0ff 70%, #a080e0 100%);
  --text: #f0e8ff;
  --text-muted: #9088b0;
  --border: #4a4a6a;
  --accent-red: #ff6688;
  --accent-green: #88ddbb;
  --bg-hover: #333348;
  --border-glow: #c0a0ff;
  --accent: #c0a0ff;
  --accent-hover: #a080e0;
  --accent-glow: rgba(192,160,255,0.2);
  --danger: #ff6688;
  --danger-hover: #cc4477;
  --warning: #ffcc44;
  --success: #88ddbb;
  --chart-grid: rgba(192,160,255,0.08);
  --chart-line: #c0a0ff;
  --chart-fill: rgba(192,160,255,0.12);
  --shadow: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 24px rgba(192,160,255,0.15);
  --modal-overlay: rgba(10,10,20,0.85);
  --terminal-bg: #161626;
  --terminal-text: #c0a0ff;
  --badge-bg: rgba(192,160,255,0.15);
  --badge-text: #c0a0ff;
  --theme-toggle-bg: #2a2a3a;
  --theme-toggle-text: #c0a0ff;
}

/* ===== ГРАФИТОВАЯ ТЕМА ===== */
[data-theme="graphite"] {
  --bg-dark: #1a1d23;
  --bg-card: #282c34;
  --gold: #ff6b6b;
  --gold-light: #ff9999;
  --gold-dark: #cc4444;
  --gold-gradient: linear-gradient(180deg, #ff9999 0%, #ff6b6b 30%, #ffcccc 50%, #ff6b6b 70%, #cc4444 100%);
  --text: #e8ecf0;
  --text-muted: #6b7280;
  --border: #3e4450;
  --accent-red: #ff4444;
  --accent-green: #5cb890;
  --bg-hover: #313640;
  --border-glow: #ff6b6b;
  --accent: #ff6b6b;
  --accent-hover: #e05555;
  --accent-glow: rgba(255,107,107,0.2);
  --danger: #ff4444;
  --danger-hover: #cc3333;
  --warning: #ffa040;
  --success: #5cb890;
  --chart-grid: rgba(255,107,107,0.06);
  --chart-line: #ff6b6b;
  --chart-fill: rgba(255,107,107,0.12);
  --shadow: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 20px rgba(255,107,107,0.12);
  --modal-overlay: rgba(8,10,14,0.88);
  --terminal-bg: #15181d;
  --terminal-text: #ff6b6b;
  --badge-bg: rgba(255,107,107,0.12);
  --badge-text: #ff6b6b;
  --theme-toggle-bg: #282c34;
  --theme-toggle-text: #ff6b6b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { font-family: 'Segoe UI', 'Inter', sans-serif; background: var(--bg-dark); color: var(--text); line-height: 1.6; }

.gold-text { background: var(--gold-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.5)); font-weight: 800; }

.header { background: var(--bg-card); border-bottom: 1px solid var(--border); }

.header-gold-line { height: 3px; background: var(--gold-gradient); }

.header-content { max-width: 1400px; margin: 0 auto; padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }

.logo { font-size: 1.8rem; margin: 0; }

.logo-subtitle { font-size: 0.9rem; color: var(--text-muted); font-style: italic; }

.btn-login, .btn-register { padding: 0.5rem 1.2rem; border-radius: 6px; cursor: pointer; font-weight: 600; transition: all 0.3s; }

.btn-login { background: transparent; border: 1px solid var(--gold); color: var(--gold); }

.btn-register { background: var(--gold); border: none; color: var(--bg-dark); }

.btn-gold { background: var(--gold-gradient); border: none; color: var(--bg-dark); padding: 0.7rem 2rem; border-radius: 8px; font-weight: 700; cursor: pointer; font-size: 1rem; transition: all 0.3s; box-shadow: 0 0 20px rgba(212, 175, 55, 0.3); }

.btn-gold:hover { box-shadow: 0 0 40px rgba(255, 215, 0, 0.5); transform: translateY(-2px); }

.btn-large { padding: 1rem 3rem; font-size: 1.2rem; width: 100%; }

.btn-outline { background: transparent; border: 1px solid var(--gold); color: var(--gold); padding: 0.7rem 2rem; border-radius: 8px; font-weight: 600; cursor: pointer; }

.btn-outline:hover { background: rgba(212, 175, 55, 0.1); }

.hypeman-bar { background: linear-gradient(90deg, #1a0000, #2a1a00, #1a0000); border-bottom: 1px solid var(--gold-dark); padding: 0.5rem 2rem; display: flex; align-items: center; gap: 1rem; overflow: hidden; }

.hypeman-avatar { font-size: 1.5rem; animation: bounce 1s infinite; }

@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

.hypeman-text { color: var(--gold-light); font-weight: 600; white-space: nowrap; animation: marquee 20s linear infinite; }

@keyframes marquee { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

.main-content { max-width: 1400px; margin: 0 auto; padding: 2rem; }

.section-title { font-size: 2rem; margin-bottom: 0.5rem; }

.side-nav { position: fixed; left: 0; top: 50%; transform: translateY(-50%); z-index: 998; display: flex; align-items: center; }

.side-nav-tab { width: 36px; height: 80px; background: rgba(26,26,26,0.85); border: 1px solid var(--gold-dark); border-left: none; border-radius: 0 12px 12px 0; color: var(--gold-light); font-size: 1.2rem; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s; writing-mode: vertical-lr; letter-spacing: 2px; }

.side-nav-tab:hover { background: var(--gold); color: var(--bg-dark); }

.side-nav-items { display: none; flex-direction: column; gap: 6px; margin-left: 6px; }

.side-nav-items a { width: 42px; height: 42px; background: rgba(26,26,26,0.85); border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: 1.1rem; transition: all 0.3s; }

.side-nav-items a:hover { background: var(--gold); transform: scale(1.1); }

.scroll-top-btn { position: fixed; bottom: 30px; right: 20px; z-index: 99; width: 44px; height: 44px; border-radius: 50%; background: var(--bg-card); border: 1px solid var(--gold); color: var(--gold-light); font-size: 1.3rem; cursor: pointer; display: none; transition: all 0.3s; }

.scroll-top-btn:hover { background: var(--gold); color: var(--bg-dark); }

/* ===== CD-КОРОБКА ===== */
.prompt-card {
  background: #0d0d0d; border-radius: 4px; position: relative;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1.2);
  border: 1px solid #222; cursor: pointer; min-height: 360px;
  display: flex; flex-direction: column;
  background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.05) 20%, rgba(255,255,255,0.01) 40%, rgba(255,255,255,0.06) 60%, rgba(255,255,255,0.02) 80%, rgba(255,255,255,0.04) 100%), #0d0d0d;
  background-size: 200% 200%;
  animation: cardSheen 6s ease-in-out infinite;
  z-index: 1;
  box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset, 0 4px 15px rgba(0,0,0,0.5), 6px 6px 0 #0a0a0a, 7px 7px 0 #111;
}

@keyframes cardSheen { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.prompt-card::after { content: ''; position: absolute; bottom: -12px; left: 5%; right: 5%; height: 40px; border-radius: 50%; z-index: -1; pointer-events: none; opacity: 0; transition: all 0.5s ease; filter: blur(20px); }

.prompt-card[data-category="business"]::after { background: #0066ff; }
.prompt-card[data-category="creative"]::after { background: #ff00aa; }
.prompt-card[data-category="psychology"]::after { background: #00cc88; }
.prompt-card[data-category="friend"]::after { background: #ffaa00; }
.prompt-card[data-category="coach"]::after { background: #ff4444; }

.prompt-card:hover::after { opacity: 0.8; bottom: -18px; height: 50px; filter: blur(25px); }

.prompt-card:hover { transform: translateY(-10px) translateX(3px); border-color: rgba(255,255,255,0.4); box-shadow: 0 20px 60px rgba(0,0,0,0.8), 8px 8px 0 #0a0a0a, 9px 9px 0 #111; z-index: 10; }

.flip-container { width: 100%; height: 100%; position: relative; perspective: 800px; }

.flip-inner { position: relative; width: 100%; height: 100%; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); transform-style: preserve-3d; }

.flip-container:hover .flip-inner { transform: rotateY(180deg); }

.flip-front, .flip-back { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; border-radius: 4px; overflow: hidden; border: 1px solid #222; }

.flip-front { background: inherit; z-index: 2; }

.flip-back { background: #0a0a0a; transform: rotateY(180deg); display: flex; align-items: center; justify-content: center; padding: 1.5rem; text-align: center; flex-direction: column; gap: 0.6rem; overflow-y: auto; }

.flip-back p { color: #e0c878; font-size: 0.9rem; line-height: 1.6; font-weight: 500; }

.flip-back .author-msg { font-style: italic; color: var(--gold-light); font-size: 0.85rem; font-weight: 600; }

.flip-back .reviews-teaser { color: var(--gold); font-size: 0.8rem; cursor: pointer; font-weight: 700; }

.prompt-card-content { position: relative; z-index: 3; padding: 1.5rem; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }

.prompt-card-cover { width: 100%; height: 160px; display: flex; align-items: center; justify-content: center; border-radius: 2px 2px 0 0; font-size: 4rem; position: relative; overflow: hidden; }

.cover-business { background: linear-gradient(135deg, #001a33, #003366, #001a33); }
.cover-creative { background: linear-gradient(135deg, #33001a, #660033, #33001a); }
.cover-psychology { background: linear-gradient(135deg, #00331a, #006633, #00331a); }
.cover-friend { background: linear-gradient(135deg, #332200, #664400, #332200); }
.cover-coach { background: linear-gradient(135deg, #330000, #660000, #330000); }

.prompt-card-cover::before { content: ''; position: absolute; top: -30%; left: -30%; width: 160%; height: 160%; background: radial-gradient(circle at 30% 30%, rgba(212,175,55,0.1) 0%, transparent 60%), radial-gradient(circle at 70% 70%, rgba(212,175,55,0.05) 0%, transparent 60%); animation: coverPulse 4s ease-in-out infinite; }

@keyframes coverPulse { 0%, 100% { transform: scale(1); opacity: 0.5; } 50% { transform: scale(1.1); opacity: 0.8; } }

.prompt-card-title { font-weight: 700; margin: 0.5rem 0; font-size: 1.1rem; color: #e0e0e0; }

.prompt-card-author { color: #777; font-size: 0.8rem; }

.prompt-card-price { font-weight: 700; font-size: 1.4rem; color: var(--gold-light); }

.prompt-card-badge { position: absolute; top: 10px; right: 10px; z-index: 5; background: var(--gold); color: #000; padding: 0.3rem 0.7rem; border-radius: 6px; font-weight: 700; font-size: 0.75rem; }

.gold-hall { margin-bottom: 3rem; }

.gold-hall-grid { display: flex; gap: 1.2rem; overflow-x: auto; padding: 1.5rem 0.5rem 2.5rem; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }

.gold-hall-grid::-webkit-scrollbar { height: 6px; }
.gold-hall-grid::-webkit-scrollbar-track { background: #111; border-radius: 3px; }
.gold-hall-grid::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }

.gold-hall-grid .prompt-card { flex: 0 0 240px; scroll-snap-align: start; }

.oracle-nft-card { border: 2px solid var(--gold) !important; background: linear-gradient(145deg, #0d0d0d, #1a1a0a, #0d0d0d, #0a0a0a) !important; }
.oracle-nft-card::after { display: none !important; }
.oracle-nft-card:hover { transform: translateY(-10px) scale(1.03) !important; box-shadow: 0 0 60px rgba(212,175,55,0.5), 0 0 100px rgba(255,215,0,0.2) !important; border-color: #fff !important; }

.marketplace { margin-bottom: 3rem; }

.marketplace-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }

.filters { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.filters select, .filters input { padding: 0.5rem 1rem; background: var(--bg-card); border: 1px solid var(--border); color: var(--text); border-radius: 6px; }

.prompts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }

.teaser-card { animation: teasePulse 2s infinite; cursor: default; }
.teaser-card::after { display: none !important; }
.teaser-card:hover { transform: none; box-shadow: 0 0 30px rgba(212,175,55,0.2); }

@keyframes teasePulse { 0%,100% { box-shadow: 0 0 20px rgba(212,175,55,0.1); } 50% { box-shadow: 0 0 40px rgba(212,175,55,0.3); } }

.exchange-section { margin-bottom: 3rem; }

.index-widget { background: var(--bg-card); border-radius: 12px; padding: 1.2rem 1.5rem; margin-bottom: 1.5rem; border: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }

.index-value { display: flex; align-items: baseline; gap: 0.8rem; flex-wrap: wrap; }

.index-label-link { color: #B0B0B0; text-decoration: none; font-size: 0.85rem; letter-spacing: 1px; transition: color 0.3s; }
.index-label-link:hover { color: #D4AF37; }

.index-number { font-size: 2rem; font-weight: 800; color: var(--gold-light); }

.index-change { font-weight: 600; font-size: 1rem; }
.change-positive { color: var(--accent-green); }
.change-negative { color: var(--accent-red); }

.index-mini-chart { flex-shrink: 0; }
.index-mini-chart svg { display: block; max-width: 120px; height: auto; }

.bet-widget { background: var(--bg-card); border-radius: 12px; padding: 1rem 1.5rem; border: 1px solid var(--border); display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; position: relative; }

.bet-select, .bet-input { padding: 0.5rem 0.8rem; background: var(--bg-dark); border: 1px solid var(--border); color: var(--text); border-radius: 6px; font-family: inherit; flex: 1; min-width: 120px; }

.info-tip { display: inline-block; width: 22px; height: 22px; background: var(--gold-dark); color: var(--bg-dark); border-radius: 50%; text-align: center; line-height: 22px; font-size: 0.75rem; font-weight: 700; cursor: help; animation: tipPulse 2s infinite; margin-left: 0.5rem; position: relative; z-index: 5; }
.info-tip:hover { background: var(--gold-light); animation: none; transform: scale(1.2); }

@keyframes tipPulse { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }

.reviews-section { margin-top: 1rem; padding: 1rem; background: var(--bg-card); border-radius: 12px; border: 1px solid var(--border); max-height: 300px; overflow-y: auto; }

.review-item { padding: 0.8rem 0; border-bottom: 1px solid var(--border); }
.review-item:last-child { border-bottom: none; }

.review-stars { color: var(--gold-light); }
.review-text { color: var(--text); font-size: 0.9rem; margin-top: 0.3rem; }
.review-author { color: var(--text-muted); font-size: 0.75rem; }
.review-reply { margin-left: 1.5rem; padding-left: 1rem; border-left: 2px solid var(--gold-dark); color: var(--text-muted); font-size: 0.85rem; margin-top: 0.3rem; }

.review-form { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.review-form textarea { width: 100%; padding: 0.7rem; background: var(--bg-dark); border: 1px solid var(--border); color: var(--text); border-radius: 6px; resize: vertical; font-family: inherit; }
.review-form select { padding: 0.5rem; background: var(--bg-dark); border: 1px solid var(--border); color: var(--text); border-radius: 6px; }

.create-section { margin-bottom: 3rem; }
.create-form { background: var(--bg-card); border-radius: 12px; padding: 2rem; max-width: 800px; margin: 0 auto; border: 1px solid var(--border); }

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.5rem; color: var(--gold-light); }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 0.7rem 1rem; background: var(--bg-dark); border: 1px solid var(--border); color: var(--text); border-radius: 6px; font-family: inherit; }
.form-group textarea { resize: vertical; }

.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 100; justify-content: center; align-items: center; }
.modal.active { display: flex; }

.modal-content { background: var(--bg-card); border-radius: 12px; padding: 2rem; max-width: 500px; width: 90%; border: 1px solid var(--border); position: relative; max-height: 90vh; overflow-y: auto; }
.modal-large { max-width: 900px; }

.close-modal { position: absolute; top: 1rem; right: 1rem; font-size: 1.5rem; cursor: pointer; color: var(--text-muted); }

.auth-buttons { display: flex; flex-direction: column; gap: 0.8rem; margin: 1.5rem 0; }
.btn-auth-yandex { padding: 0.8rem; border-radius: 8px; border: none; font-weight: 600; cursor: pointer; background: #FC3F1D; color: white; }
.auth-divider { text-align: center; color: var(--text-muted); margin: 1rem 0; }

.footer { background: #1a1a1a; border-top: 2px solid #c0c0c0; padding: 2rem 2rem 1.5rem; margin-top: 3rem; box-shadow: 0 -8px 20px rgba(0,0,0,0.4); }
.footer-links { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 2rem; max-width: 1200px; margin: 0 auto 1.5rem; }
.footer-col { min-width: 160px; }
.footer-col h4 { color: #c0c0c0; margin-bottom: 0.7rem; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px; }
.footer-col a { display: block; color: #999; text-decoration: none; margin-bottom: 0.4rem; transition: color 0.3s, transform 0.2s; font-size: 0.9rem; }
.footer-col a:hover { color: #fff; transform: translateX(4px); }
.footer-copy { text-align: center; color: #666; font-size: 0.8rem; margin-top: 1rem; }

.nav { display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; }
.nav-btn { display: inline-block; padding: 0.5rem 1rem; background: transparent; border: 1px solid var(--gold-dark); color: var(--gold-light); border-radius: 6px; text-decoration: none; font-weight: 600; font-size: 0.85rem; transition: all 0.3s; }
.nav-btn:hover { background: var(--gold); color: var(--bg-dark); border-color: var(--gold); }

@media (max-width: 768px) {
  .index-widget { flex-direction: column; text-align: center; }
  .index-value { justify-content: center; }
  .index-mini-chart { margin: 0 auto; }
  .bet-widget { flex-direction: column; }
  .bet-widget .btn-gold { width: 100%; }
  .gold-hall-grid .prompt-card { flex: 0 0 200px; }
  .header-content { flex-direction: column; text-align: center; }
  .nav { justify-content: center; }
  .prompts-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

/* ===== ДВА БАНЕРА ===== */
.banner-row { display: flex; gap: 1rem; padding: 1rem; max-width: 1400px; margin: 0 auto; }
.banner-box { flex: 1; min-width: 280px; border-radius: 12px; padding: 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; }
.banner-zaзывала { background: linear-gradient(135deg, #1a0000, #2a1a00); border: 1px solid var(--gold-dark); }
.banner-book { background: linear-gradient(135deg, #0a0a1a, #1a1a2a); border: 1px solid #888; }
.banner-box-title { font-weight: 800; font-size: 0.9rem; letter-spacing: 1px; }
.banner-box-text { color: var(--gold-light); font-weight: 700; font-size: 0.95rem; text-align: center; }
.banner-box-subtitle { color: #aaa; font-size: 0.75rem; text-align: center; }

.silver-text { color: #c0c0c0; text-shadow: 0 0 8px rgba(192,192,192,0.4); }

.chat-input-row { display: flex; border: 1px solid #444; border-radius: 6px; overflow: hidden; }
.chat-input-row input { flex: 1; padding: 0.4rem; background: #0a0a0a; border: none; color: var(--text); font-size: 0.8rem; font-family: inherit; }
.chat-input-row button { border-radius: 0; font-size: 0.75rem; padding: 0.4rem 0.8rem; }
.chat-mini-messages { max-height: 60px; overflow-y: auto; font-size: 0.75rem; }
.chat-mini-messages div { padding: 0.2rem 0; border-bottom: 1px solid #1a1a1a; color: var(--text-muted); }

@media (max-width: 768px) { .banner-row { flex-direction: column; } }

/* ===== ТЕРМИНАЛ БИРЖИ ===== */
.terminal-top-bar { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.5rem; margin-bottom: 1rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

.index-link { color: var(--gold-light); font-weight: 700; text-decoration: none; font-size: 1rem; white-space: nowrap; }
.index-link:hover { text-decoration: underline; }

.terminal-select { padding: 0.5rem 1rem; background: var(--bg-dark); border: 1px solid var(--gold-dark); color: var(--text); border-radius: 6px; font-family: inherit; flex: 1; min-width: 200px; }

.terminal-price-block { display: flex; align-items: baseline; gap: 0.5rem; }
.terminal-price { font-size: 1.8rem; font-weight: 800; color: var(--gold-light); }
.terminal-change { font-weight: 600; font-size: 1rem; }
.terminal-change.positive { color: var(--accent-green); }
.terminal-change.negative { color: var(--accent-red); }

.terminal-chart-container { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1rem; margin-bottom: 1rem; }
.terminal-chart-container canvas { width: 100%; height: auto; border-radius: 8px; }
.chart-indicators { display: flex; gap: 2rem; margin-top: 0.5rem; font-size: 0.8rem; color: var(--text-muted); }

.terminal-trade-panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; margin-bottom: 1rem; }
.trade-tabs { display: flex; gap: 0; margin-bottom: 1rem; }
.trade-tab { flex: 1; padding: 0.5rem; background: var(--bg-dark); border: 1px solid var(--border); color: var(--text); cursor: pointer; font-weight: 600; }
.trade-tab:first-child { border-radius: 6px 0 0 6px; }
.trade-tab:last-child { border-radius: 0 6px 6px 0; }
.trade-tab.active { background: var(--gold); color: var(--bg-dark); }
.trade-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.8rem; }
.trade-row label { color: var(--text-muted); font-size: 0.85rem; }
.trade-row input { width: 150px; padding: 0.4rem; background: var(--bg-dark); border: 1px solid var(--border); color: var(--text); border-radius: 4px; text-align: right; }
.trade-total { font-weight: 700; color: var(--gold-light); font-size: 1.2rem; }

.terminal-portfolio { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.5rem; }
.terminal-portfolio h4 { color: var(--gold-light); margin-bottom: 0.5rem; }
.mini-portfolio-item { display: flex; justify-content: space-between; padding: 0.4rem 0; border-bottom: 1px solid #1a1a1a; font-size: 0.85rem; }
.mini-portfolio-item span { color: var(--text); }
.mini-portfolio-item span:first-child { flex: 2; }
.mini-portfolio-item span:last-child { text-align: right; color: var(--gold-light); }

/* ===== КОМПАКТНЫЙ ТЕРМИНАЛ ===== */
.terminal-compact { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1rem; margin-bottom: 2rem; }
.terminal-compact-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.terminal-compact-header h2 { font-size: 1.2rem; margin: 0; }
.btn-sm { padding: 0.3rem 0.8rem; font-size: 0.75rem; }

.terminal-top-bar { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 0.8rem; }

.terminal-chart-compact { background: #0a0a0a; border-radius: 8px; padding: 0.5rem; margin-bottom: 0.8rem; }
.terminal-chart-compact canvas { width: 100%; height: auto; }

.terminal-actions { display: flex; gap: 0.5rem; margin-bottom: 0.8rem; }
.terminal-portfolio-mini { border-top: 1px solid var(--border); padding-top: 0.5rem; }
.portfolio-mini-header { display: flex; justify-content: space-between; cursor: pointer; color: var(--gold-light); font-weight: 600; font-size: 0.85rem; padding: 0.3rem 0; }
.portfolio-mini-list { max-height: 200px; overflow-y: auto; }
.mini-portfolio-item { display: grid; grid-template-columns: 2fr 1fr 1fr 0.8fr; gap: 0.5rem; padding: 0.3rem 0; border-bottom: 1px solid #1a1a1a; font-size: 0.75rem; }
.mini-portfolio-item span:last-child { text-align: right; color: var(--text-muted); }

.install-pwa-btn {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  z-index: 999; background: var(--gold); color: var(--bg-dark);
  padding: 0.8rem 2rem; border-radius: 30px; border: none;
  font-weight: 700; font-size: 1rem; cursor: pointer;
  box-shadow: 0 0 30px rgba(212,175,55,0.5); animation: pulseBtn 2s infinite;
}

@keyframes pulseBtn { 0%,100% { box-shadow: 0 0 20px rgba(212,175,55,0.4); } 50% { box-shadow: 0 0 50px rgba(255,215,0,0.8); } }

/* ===== ТАБЛИЦА ПОРТФЕЛЯ ===== */
.portfolio-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.portfolio-table th { text-align: left; padding: 0.5rem; color: var(--gold-light); border-bottom: 1px solid var(--gold-dark); font-size: 0.75rem; text-transform: uppercase; }
.portfolio-table td { padding: 0.5rem; border-bottom: 1px solid #1a1a1a; }
.portfolio-table tr:hover { background: rgba(212,175,55,0.05); }

/* ===== ХАЙПМАН-ЧАТ ===== */
.hypeman-chat-row { display: flex; gap: 0.5rem; padding: 0.5rem 1rem; background: #0a0a0a; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.hypeman-teaser-box { flex: 1; min-width: 200px; background: linear-gradient(135deg, #1a0000, #2a1a00); border: 1px solid var(--gold-dark); border-radius: 8px; padding: 0.8rem; display: flex; align-items: center; justify-content: center; color: var(--gold-light); font-weight: 700; font-size: 0.9rem; text-align: center; }
.hypeman-chat-box { flex: 2; min-width: 280px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; display: flex; flex-direction: column; max-height: 150px; }
.chat-messages { flex: 1; overflow-y: auto; padding: 0.5rem; font-size: 0.8rem; }
.chat-input-row { display: flex; border-top: 1px solid var(--border); }
.chat-input-row input { flex: 1; padding: 0.4rem; background: var(--bg-dark); border: none; color: var(--text); font-family: inherit; }
.chat-input-row button { border-radius: 0 0 8px 0; }

a { color: inherit; }
.nav-btn { color: var(--gold-light) !important; }
.footer-col a { color: #999 !important; }

/* ===== КНОПКА ТУРА ===== */
.tour-start-btn { position: fixed; bottom: 20px; left: 20px; z-index: 999; background: var(--gold-gradient); color: var(--bg-dark); padding: 0.7rem 1.5rem; border-radius: 30px; border: none; font-weight: 700; cursor: pointer; box-shadow: 0 0 20px rgba(212,175,55,0.4); }

/* ===== ПОДСКАЗКИ ТУРА ===== */
.tour-tooltip { position: absolute; z-index: 1000; background: #1a1a1a; border: 2px solid var(--gold); border-radius: 12px; padding: 1rem; max-width: 350px; box-shadow: 0 0 40px rgba(212,175,55,0.4); }
.tour-tooltip-text { color: var(--text); font-size: 0.9rem; margin-bottom: 0.8rem; line-height: 1.5; }
.tour-tooltip-btns { display: flex; gap: 0.5rem; justify-content: flex-end; }

/* ===== СВЕТЛАЯ ТЕМА ===== */
[data-theme="light"] {
  --bg-dark: #f5f5f5;
  --bg-card: #ffffff;
  --text: #1a1a1a;
  --text-muted: #555;
  --border: #ddd;
  --gold: #b8860b;
  --gold-light: #8b6508;
  --gold-dark: #6b4c04;
  --gold-gradient: linear-gradient(180deg, #8b6508 0%, #6b4c04 100%);
}

[data-theme="light"] body { background: #f5f5f5; color: #1a1a1a; }
[data-theme="light"] .header { background: #fff; border-color: #ddd; }
[data-theme="light"] .prompt-card { background: #fff; border-color: #ddd; }
[data-theme="light"] .prompt-card::after { border-color: rgba(0,0,0,0.1); }
[data-theme="light"] .prompt-card-cover { background: #eee; }
[data-theme="light"] .hypeman-bar { background: linear-gradient(90deg, #ffe0e0, #fff0e0, #ffe0e0); border-color: #ccc; }
[data-theme="light"] .hypeman-text { color: #333; }
[data-theme="light"] .footer { background: #fff; border-top-color: #ddd; }
[data-theme="light"] .footer-col h4 { color: #555; }
[data-theme="light"] .footer-col a { color: #555; }
[data-theme="light"] .footer-col a:hover { color: #000; }
[data-theme="light"] .portfolio-table th { color: #555; border-color: #ddd; }
[data-theme="light"] .portfolio-table td { border-color: #ddd; color: #333; }
[data-theme="light"] .modal-content { background: #fff; border-color: #ddd; }
[data-theme="light"] .terminal-chart-compact { background: #eee; }
[data-theme="light"] .terminal-compact { background: #fff; border-color: #ddd; }
[data-theme="light"] .chat-input-row input { background: #f5f5f5; color: #333; }
[data-theme="light"] .chat-mini-messages div { border-color: #ddd; }
[data-theme="light"] .banner-zaзывала { background: linear-gradient(135deg, #ffe0e0, #fff0e0); border-color: #ccc; }
[data-theme="light"] .banner-book { background: linear-gradient(135deg, #e8e8f0, #f0f0f8); border-color: #ccc; }
[data-theme="light"] .banner-box-text { color: #8b6508; }
[data-theme="light"] .gold-text { background: none; color: #8b6508; -webkit-text-fill-color: #8b6508; font-weight: 800; }
[data-theme="light"] .silver-text { color: #666; text-shadow: none; }
[data-theme="light"] .nav-btn { color: #8b6508; border-color: #8b6508; }
[data-theme="light"] .nav-btn:hover { background: #8b6508; color: #fff; }
[data-theme="light"] .btn-gold { background: #8b6508; color: #fff; }
[data-theme="light"] .btn-outline { border-color: #8b6508; color: #8b6508; }
[data-theme="light"] .btn-outline:hover { background: #8b6508; color: #fff; }
[data-theme="light"] .index-link { color: #8b6508; }
[data-theme="light"] .index-label-link { color: #666; }
[data-theme="light"] .index-number { color: #8b6508; }
[data-theme="light"] .terminal-price { color: #8b6508; }
[data-theme="light"] .prompt-card-price { color: #8b6508; }
[data-theme="light"] .prompt-card-badge { background: #8b6508; color: #fff; }
[data-theme="light"] .oracle-nft-card { background: linear-gradient(145deg, #fff, #f5f0e0, #fff, #f0f0f0) !important; }
[data-theme="light"] .info-tip { background: #8b6508; color: #fff; }
[data-theme="light"] .teaser-card { background: #fff !important; border-color: #8b6508 !important; }
[data-theme="light"] .teaser-card-text { color: #8b6508 !important; }

/* ===== ЗОЛОТАЯ МОНЕТА ТУРА ===== */
.tour-coin-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffd700, #b8860b);
  border: 2px solid #8b6508;
  color: #4a3000;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(212,175,55,0.5), inset 0 2px 0 rgba(255,255,255,0.3);
  transition: all 0.3s;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.tour-coin-btn:hover {
  box-shadow: 0 0 30px rgba(255,215,0,0.8), inset 0 2px 0 rgba(255,255,255,0.4);
  transform: scale(1.1);
}

/* ===== СЕТКА БЛОКОВ ===== */
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.grid-item-terminal { grid-column: 1; grid-row: 1 / 3; }
.grid-item-banners { grid-column: 2; grid-row: 1; }
.grid-item-marketplace { grid-column: 1 / -1; }
.grid-item-top { grid-column: 1 / -1; }
.grid-item-header { display: flex; justify-content: space-between; align-items: center; padding: 0.8rem 1rem; border-bottom: 1px solid var(--border); }
.grid-item-header h2 { font-size: 1.1rem; margin: 0; }
.grid-item-body { padding: 1rem; }

/* ===== ПРОФЕССИОНАЛЬНЫЙ ГРАФИК ===== */
.terminal-chart-pro { position: relative; background: #0a0a0a; border-radius: 8px; padding: 0.5rem; margin-bottom: 0.5rem; }
.terminal-chart-pro canvas { width: 100%; height: auto; display: block; }
.chart-crosshair { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.chart-legend { display: flex; gap: 1.5rem; font-size: 0.75rem; color: var(--text-muted); margin-top: 0.3rem; justify-content: center; }

/* ===== ФУТЕР ===== */
.footer { text-align: center; }
.footer-links { justify-content: center; text-align: center; }
.footer-col { text-align: center; }
.footer-copy { text-align: center !important; }

/* ===== АДАПТИВ ===== */
@media (max-width: 768px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .grid-item-terminal { grid-column: 1; grid-row: auto; }
  .grid-item-banners { grid-column: 1; grid-row: auto; }
}

[data-theme="light"] .tour-tooltip { background: #fff !important; border-color: #8b6508 !important; }
[data-theme="light"] .tour-tooltip-text { color: #1a1a1a !important; }