:root { --bg:#0b1020; --fg:#e8ecf1; --muted:#9aa4b2; --card:#121a2f; }
*{box-sizing:border-box} body{margin:0; font-family:system-ui,Segoe UI,Roboto,Ubuntu; background:var(--bg); color:var(--fg)}
.wrap{max-width:1100px; margin:auto; padding:1.25rem}
.page-layout{
  display:grid;
  grid-template-columns: 220px minmax(0, 1100px) 220px;
  gap:1.25rem;
  max-width:1600px;
  margin:0 auto;
  padding:1.25rem;
  align-items:start;
}
.content{min-width:0}
.banner-column{display:block}
.banner-stack{
  display:flex;
  flex-direction:column;
  gap:5.75rem;
  position:sticky;
  top:1rem;
}
.banner-card{
  background:var(--card);
  border-radius:12px;
  overflow:hidden;
  padding:.5rem;
}
.banner-card img{
  display:block;
  width:100%;
  height:auto;
  border-radius:8px;
}
@media (max-width: 1200px){
  .page-layout{
    grid-template-columns: minmax(0, 1fr);
  }
  .banner-column{
    display:none;
  }
}
header.wrap{display:flex; align-items:center; justify-content:space-between; gap:1.5rem; flex-wrap:wrap}
header.wrap h1{margin:0; font-size:2rem; letter-spacing:.02em}
header.wrap h1 a{
  color:var(--fg);
  text-decoration:none;
  display:inline-block;
  padding:.25rem .6rem;
  border-radius:10px;
  transition:background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
header.wrap h1 a:hover,
header.wrap h1 a:focus-visible{
  background:rgba(255,255,255,.08);
  color:#fff;
  transform:translateY(-1px);
  box-shadow:0 6px 14px rgba(0,0,0,.25);
}
nav{display:flex; flex-wrap:wrap; gap:.6rem 1.1rem; align-items:center}
nav a{
  color:var(--fg);
  text-decoration:none;
  padding:.35rem .6rem;
  border-radius:8px;
  transition:background-color .2s ease, color .2s ease, transform .2s ease;
}
nav a:hover,
nav a:focus-visible{
  background:rgba(255,255,255,.1);
  color:#fff;
  transform:translateY(-1px);
}
.cards{display:flex; gap:.75rem; flex-wrap:wrap}
.card{background:var(--card); padding:1rem; border-radius:12px; min-width:140px}
.grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:1rem}
.news-card{display:block; background:var(--card); border-radius:12px; overflow:hidden; color:inherit; text-decoration:none}
.news-card img{width:100%; height:150px; object-fit:cover}
.news-card h3{margin:.5rem 0}
.article .hero{width:100%; max-height:360px; object-fit:cover; border-radius:12px}
.prose{line-height:1.6}
.profile-page{
  background:linear-gradient(135deg, rgba(255,255,255,.04), rgba(255,255,255,0));
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  padding:1.5rem;
}
.profile-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  margin-bottom:1.5rem;
  flex-wrap:wrap;
}
.profile-header h2{
  margin:0 0 .35rem;
  font-size:1.9rem;
}
.profile-subtitle{
  margin:0;
  color:var(--muted);
}
.profile-cta{
  display:inline-flex;
  align-items:center;
  padding:.55rem 1.1rem;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.2);
  color:var(--fg);
  text-decoration:none;
  transition:transform .2s ease, background-color .2s ease, border-color .2s ease;
}
.profile-cta:hover,
.profile-cta:focus-visible{
  background:rgba(255,255,255,.2);
  border-color:rgba(255,255,255,.35);
  transform:translateY(-1px);
}
.profile-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
  gap:1.25rem;
}
.profile-card{
  background:var(--card);
  border-radius:14px;
  padding:1.25rem;
  border:1px solid rgba(255,255,255,.06);
  box-shadow:0 10px 30px rgba(0,0,0,.25);
}
.profile-card h3{
  margin:0 0 .75rem;
  font-size:1.1rem;
}
.profile-list{
  display:grid;
  gap:.75rem;
  margin:0;
}
.profile-list div{
  display:flex;
  justify-content:space-between;
  gap:1rem;
  border-bottom:1px dashed rgba(255,255,255,.08);
  padding-bottom:.5rem;
}
.profile-list div:last-child{
  border-bottom:none;
  padding-bottom:0;
}
.profile-list dt{
  color:var(--muted);
  font-weight:500;
}
.profile-list dd{
  margin:0;
  text-align:right;
}
.plan-pill{
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  padding:.25rem .75rem;
  border-radius:999px;
  font-size:.85rem;
  font-weight:600;
  letter-spacing:.02em;
  margin-bottom:1rem;
  border:1px solid rgba(255,255,255,.15);
}
.plan-free{
  background:rgba(255,255,255,.08);
  color:var(--fg);
}
.plan-paid{
  background:rgba(46, 196, 182, .25);
  color:#9bf2e7;
}
.card-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}
.card-content {
  padding: 15px;
}
.card-content h4 {
  margin: 0 0 10px;
}
.card-content p {
  margin: 0 0 10px;
  color: #555;
}
.card-content small {
  color: #888;
}
.cards-posts {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
    }
.card-post {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  width: 300px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.tag-list{
  display:flex;
  flex-wrap:wrap;
  gap:.5rem;
  margin:.75rem 0 1rem;
}
.tag-link{
  display:inline-flex;
  align-items:center;
  padding:.25rem .6rem;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  color:var(--fg);
  text-decoration:none;
  font-size:.85rem;
  border:1px solid rgba(255,255,255,.15);
  transition:background-color .2s ease, color .2s ease, transform .2s ease;
}
.tag-link:hover,
.tag-link:focus-visible{
  background:rgba(255,255,255,.18);
  color:#fff;
  transform:translateY(-1px);
}
.logo-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin: 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:.75rem;
}

.logo {
  max-width: 80px; /* Ограничение ширины логотипа */
  height: auto; /* Автоматическая высота для сохранения пропорций */
  display: block; /* Убираем лишние отступы */
}

.controls {
  margin-bottom: 20px;
  padding: 15px;
  background-color: #2a2a2a;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}
.controls label {
  font-weight: bold;
}
.symbol-search-container {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 300px;
}
.symbol-search {
  width: 100%;
  padding: 8px 12px;
  background-color: #3a3a3a;
  color: #fff;
  border: 1px solid #555;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}
.symbol-search:focus {
  outline: none;
  border-color: #00ff00;
}
.symbol-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 300px;
  overflow-y: auto;
  background-color: #3a3a3a;
  border: 1px solid #555;
  border-top: none;
  border-radius: 0 0 4px 4px;
  display: none;
  z-index: 100;
  margin-top: -1px;
}
.symbol-dropdown.active {
  display: block;
}
.symbol-option {
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid #2a2a2a;
}
.symbol-option:last-child {
  border-bottom: none;
}
.symbol-option:hover {
  background-color: #4a4a4a;
}
.symbol-option.selected {
  background-color: #005500;
  color: #00ff00;
  font-weight: bold;
}
.symbol-option.top-symbol {
  background-color: #2a4a2a;
}
.symbol-option.top-symbol:hover {
  background-color: #3a5a3a;
}
.timeframe-select {
  padding: 8px 12px;
  background-color: #3a3a3a;
  color: #fff;
  border: 1px solid #555;
  border-radius: 4px;
  cursor: pointer;
}
.upgrade-link {
  margin-left: auto;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #5a5a5a;
  background: #1f1f1f;
  color: #ffd700;
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
}
.upgrade-link:hover {
  border-color: #ffd700;
  color: #fff;
}
.chart-container {
  position: relative;
  background-color: #2a2a2a;
  padding: 20px;
  border-radius: 8px;
  height: 500px;
}
.depth-chart-container {
  margin-top: 30px;
  height: 420px;
}
.chart-title {
  margin: 0 0 12px;
  font-size: 1.3rem;
  color: #fff;
}
.chart-loader {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 15, 16, 0.8);
  z-index: 10;
  pointer-events: none;
}
.chart-loader.active {
  display: flex;
}
.loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  z-index: 10;
}
.loader.active {
  display: block;
}
.spinner {
  border: 4px solid #3a3a3a;
  border-top: 4px solid #00ff00;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
canvas {
  opacity: 1;
  transition: opacity 0.3s;
}
canvas.loading {
  opacity: 0.3;
}
.error-message {
  color: #ff4444;
  padding: 10px;
  background-color: #331111;
  border-radius: 4px;
  margin-top: 10px;
  display: none;
}
.error-message.active {
  display: block;
}

.header-actions{display:flex; align-items:center; gap:1rem; margin-left:auto; flex-wrap:wrap; justify-content:flex-end}
.search-form{display:flex; align-items:center; gap:.5rem}
.search-form input{background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.2); color:var(--fg); padding:.4rem .6rem; border-radius:8px; min-width:180px}
.search-form input:focus{outline:none; border-color:#fff; box-shadow:0 0 0 2px rgba(255,255,255,.15)}
.search-form button{background:rgba(255,255,255,.12); color:var(--fg); border:1px solid rgba(255,255,255,.2); padding:.4rem .7rem; border-radius:8px; cursor:pointer; transition:background-color .2s ease, transform .2s ease}
.search-form button:hover,.search-form button:focus-visible{background:rgba(255,255,255,.2); transform:translateY(-1px)}
.crypto-payment .card{
  color:var(--fg);
  background:var(--card);
  border:1px solid rgba(255,255,255,.08);
}
.crypto-payment .text-muted{
  color:var(--muted) !important;
}
