.dashboard { display: flex; gap: 14px; margin-top: 0; align-items: stretch; }

/* Balance card */
.balance-card {
  width: 44%; min-height: 246px; flex-shrink: 0;
  background: linear-gradient(145deg, rgba(16, 10, 36, 0.5) 0%, rgba(8, 5, 20, 0.65) 100%);
  border: none;
  border-radius: 26px; padding: 20px 18px; display: flex; flex-direction: column;
  justify-content: space-between;
  cursor: pointer; position: relative; overflow: hidden;
  box-shadow: 
    0 16px 40px rgba(0, 0, 0, 0.65), 
    inset 0 1px 0 0 rgba(255, 255, 255, 0.18),
    0 0 25px var(--p-purple-a12);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}
.balance-card:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 
    0 22px 48px rgba(0, 0, 0, 0.75), 
    0 0 35px rgba(168, 85, 247, 0.25),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.24);
}
.balance-card:active {
  transform: scale(0.99);
}
.balance-glow {
  position: absolute;
  top: -40px; right: -40px;
  width: 130px; height: 130px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.4) 0%, rgba(168, 85, 247, 0) 70%);
  z-index: 1;
  pointer-events: none;
}
.balance-planet-svg {
  position: absolute;
  right: -15px;
  bottom: -15px;
  width: 190px;
  height: 190px;
  z-index: 1;
  pointer-events: none;
}
.balance-card-logo {
  position: absolute;
  top: 18px; right: 18px;
  width: 34px; height: 34px;
  z-index: 3;
}
.balance-card-logo svg {
  width: 100%; height: 100%; display: block;
}
.balance-top-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.balance-label {
  font-size: 13px; font-weight: 600; color: var(--p-white-a40);
  line-height: 1; z-index: 2;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.balance-row {
  display: flex; align-items: center; gap: 8px; z-index: 2;
}
.balance-value {
  font-size: 48px; font-weight: 800; color: var(--color-text); line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 14px rgba(0,0,0,0.4);
}
.balance-icon-inline {
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.balance-icon-inline svg {
  width: 28px; height: 28px; display: block; color: var(--p-purple-200); fill: currentColor;
  filter: drop-shadow(0 0 10px rgba(192, 132, 252, 0.9));
}
.balance-plan-badge {
  display: inline-flex; align-items: center;
  background: var(--p-purple-a12);
  border: none;
  padding: 4px 12px; border-radius: 100px;
  font-size: 11px; font-weight: 700; color: var(--p-purple-200);
  letter-spacing: 0.06em; z-index: 2;
  width: fit-content;
  box-shadow: 0 2px 8px var(--p-purple-a15), inset 0 1px 0 0 rgba(255, 255, 255, 0.16);
}
.balance-plan-badge.plan-free { background: var(--p-white-a6); color: rgba(255, 255, 255, 0.6); }
.balance-plan-badge.plan-start { background: rgba(59,130,246,0.18); color: var(--color-info-light); }
.balance-plan-badge.plan-blogger { background: var(--p-purple-a20); color: var(--p-purple-200); }
.balance-plan-badge.plan-business { background: rgba(6,182,212,0.2); color: var(--p-cyan-400); }
.balance-plan-badge.plan-agency { background: rgba(249,115,22,0.2); color: var(--p-orange-400); }
.balance-plan-badge.plan-autopilot { background: rgba(34,197,94,0.2); color: var(--p-green-300); }

/* Right column layout */
.right-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-width: 0;
  justify-content: space-between;
}

/* 4 Grid buttons */
.right-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 100%;
}
.grid-card {
  width: 100%; height: 72px; min-height: 72px;
  border-radius: 20px;
  box-sizing: border-box;
  background: linear-gradient(145deg, rgba(16, 10, 36, 0.45) 0%, rgba(8, 5, 20, 0.55) 100%);
  border: none;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; cursor: pointer; padding: 8px;
  position: relative; overflow: hidden;
  box-shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.5), inset 0 1px 0 0 rgba(255, 255, 255, 0.16), 0 0 18px var(--accent-glow-shadow, transparent);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s, background 0.3s;
}
.grid-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.7; transition: opacity 0.3s ease;
  pointer-events: none; z-index: 1;
}
.grid-card:hover {
  transform: translateY(-2px) scale(1.02);
  background: linear-gradient(145deg, rgba(24, 15, 50, 0.55) 0%, rgba(12, 8, 30, 0.65) 100%);
  box-shadow: 
    0 14px 30px -4px rgba(0, 0, 0, 0.6), 
    0 0 24px var(--accent-glow-shadow),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.22);
}
.grid-card:hover::before {
  opacity: 1;
}
.grid-card:active {
  transform: scale(0.98);
}
.grid-card-icon {
  width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
  z-index: 2; transition: transform 0.3s ease, filter 0.3s ease;
}
.grid-card:hover .grid-card-icon {
  transform: scale(1.1);
}
.grid-card-label {
  font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, 0.75);
  text-align: center; line-height: 1.2; z-index: 2;
  transition: color 0.3s;
}
.grid-card:hover .grid-card-label {
  color: var(--color-text);
}

#subscribeCard {
  --accent-glow: rgba(168, 85, 247, 0.22);
  --accent-glow-shadow: rgba(168, 85, 247, 0.15);
}
#subscribeCard .grid-card-icon {
  color: #c084fc;
  filter: drop-shadow(0 0 8px rgba(192, 132, 252, 0.55));
}
#tokensCard {
  --accent-glow: rgba(59, 130, 246, 0.25);
  --accent-glow-shadow: rgba(59, 130, 246, 0.18);
}
#tokensCard .grid-card-icon {
  color: #60a5fa;
  filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.6));
}
#faqCard {
  --accent-glow: rgba(6, 182, 212, 0.25);
  --accent-glow-shadow: rgba(6, 182, 212, 0.18);
}
#faqCard .grid-card-icon {
  color: #22d3ee;
  filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.6));
}
#supportCard {
  --accent-glow: rgba(249, 115, 22, 0.25);
  --accent-glow-shadow: rgba(249, 115, 22, 0.18);
}
#supportCard .grid-card-icon {
  color: #fb923c;
  filter: drop-shadow(0 0 8px rgba(251, 146, 60, 0.6));
}

/* Wide Analytics Tile on Main Screen */
.analytics-card {
  width: 100%; height: 72px; min-height: 72px; border-radius: 20px;
  box-sizing: border-box;
  background: linear-gradient(145deg, rgba(16, 10, 36, 0.5) 0%, rgba(8, 5, 20, 0.65) 100%);
  border: none;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; cursor: pointer; text-decoration: none; color: inherit;
  position: relative; overflow: hidden;
  box-shadow: 
    0 12px 28px -4px rgba(0, 0, 0, 0.55), 
    inset 0 1px 0 0 rgba(255, 255, 255, 0.16),
    0 0 20px var(--p-purple-a12);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s, background 0.3s;
}
.analytics-card::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(var(--p-purple-a15) 1px, transparent 1px);
  background-size: 8px 8px;
  opacity: 0.6; pointer-events: none;
}
.analytics-card:hover {
  transform: translateY(-2px) scale(1.01);
  background: linear-gradient(145deg, rgba(24, 15, 50, 0.6) 0%, rgba(12, 8, 30, 0.75) 100%);
  box-shadow: 
    0 16px 36px -4px rgba(0, 0, 0, 0.65), 
    0 0 25px rgba(168, 85, 247, 0.25),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.22);
}
.analytics-card:active {
  transform: scale(0.99);
}
.analytics-card-left {
  display: flex; align-items: center; gap: 14px; z-index: 2;
}
.analytics-bars-icon {
  display: flex; align-items: flex-end; gap: 4px; height: 28px; width: 24px;
}
.analytics-bars-icon .bar {
  width: 5px; border-radius: 3px;
  background: linear-gradient(180deg, var(--color-accent-2) 0%, var(--color-accent-glow) 100%);
  box-shadow: 0 0 8px rgba(236, 72, 153, 0.6);
}
.analytics-bars-icon .bar-1 { height: 16px; }
.analytics-bars-icon .bar-2 { height: 26px; }
.analytics-bars-icon .bar-3 { height: 20px; }

.analytics-card-info {
  display: flex; flex-direction: column; gap: 2px;
}
.analytics-card-title {
  font-size: 15px; font-weight: 700; color: var(--color-text); line-height: 1.2;
}
.analytics-card-desc {
  font-size: 12px; font-weight: 400; color: rgba(255, 255, 255, 0.5); line-height: 1.2;
}
.analytics-card-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.3) 0%, rgba(236, 72, 153, 0.3) 100%);
  border: none;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; z-index: 2;
  box-shadow: 0 2px 10px rgba(168, 85, 247, 0.3);
  transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
}
.analytics-card:hover .analytics-card-btn {
  transform: scale(1.08);
  background: linear-gradient(135deg, var(--p-purple-a50) 0%, rgba(236, 72, 153, 0.5) 100%);
  box-shadow: 0 0 16px rgba(236, 72, 153, 0.6);
}
.analytics-card-btn svg {
  width: 16px; height: 16px; display: block;
}

/* LIO-354: сводка за 7 дней в плитке — реальные userStats, без данных блок скрыт.
   Метки сжимаются многоточием: на 320px колонка плитки узкая, перенос строки в
   9px-подписи читался бы как сломанная вёрстка. */
.analytics-card-stats {
  display: flex; flex-direction: column; align-items: flex-end; gap: 3px;
  min-width: 0; flex-shrink: 1; z-index: 2;
}
.analytics-card-period {
  font-size: 10px; font-weight: 500; line-height: 1;
  color: rgba(255, 255, 255, 0.45);
}
.analytics-card-stats-row {
  display: flex; align-items: flex-end; gap: 10px;
}
.analytics-tile-stat {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  min-width: 0;
}
.analytics-tile-stat-val {
  font-size: 15px; font-weight: 700; line-height: 1;
  color: var(--color-accent-2);
  text-shadow: 0 0 10px var(--p-purple-a50);
}
.analytics-tile-stat-label {
  font-size: 9px; font-weight: 400; line-height: 1;
  color: rgba(255, 255, 255, 0.45);
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* COMMUNITY BLOCK */
.community {
  width: 100%; height: 72px; min-height: 72px; border-radius: 20px; margin-top: 14px;
  box-sizing: border-box;
  background: var(--p-grad-community);
  border: none;
  background-clip: padding-box;
  -webkit-background-clip: padding-box;
  overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; padding: 0 20px; cursor: pointer;
  box-shadow: 0 10px 30px var(--p-purple-a35);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}
.community:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 14px 40px var(--p-purple-a50);
}
.community:active {
  transform: scale(0.99);
}
.community-left { display: flex; align-items: center; gap: 14px; }
.community-icon { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.community-icon svg { width: 34px; height: 34px; display: block; filter: drop-shadow(0 2px 8px var(--p-white-a25)); }
.community-text { font-size: 15px; font-weight: 600; color: var(--color-text); text-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.community-btn {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--p-white-a20); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 
    0 2px 10px rgba(0, 0, 0, 0.25), 
    0 0 10px var(--p-white-a15);
  transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
}
.community:hover .community-btn {
  background: var(--p-white-a35);
  transform: scale(1.05);
  box-shadow: 
    0 0 15px rgba(255, 255, 255, 0.5),
    0 2px 12px rgba(0, 0, 0, 0.25);
}
.community-btn svg { width: 16px; height: 16px; display: block; }

/* NEWS BLOCK (AI Updates Redesign) */
.news {
  width: 100%; height: 240px; border-radius: 30px; margin-top: 18px;
  position: relative; overflow: hidden; cursor: pointer;
  background: var(--color-bg-deep);
  border: none;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.7);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  user-select: none;
  -webkit-user-select: none;
}
.news:hover {
  transform: scale(1.01);
  box-shadow: 
    0 24px 56px rgba(0, 0, 0, 0.8), 
    0 0 30px var(--p-purple-a15);
}
.news:hover {
  transform: scale(1.01);
  box-shadow: 
    0 24px 56px rgba(0, 0, 0, 0.8), 
    0 0 30px var(--p-purple-a15);
}
.news:active {
  transform: scale(0.995);
}
.news-progress-container {
  position: absolute;
  top: 16px;
  left: 15%;
  right: 15%;
  height: 2px;
  display: flex;
  gap: 6px;
  z-index: 10;
  pointer-events: none;
}
.news-progress-segment {
  flex: 1;
  height: 2px;
  background: var(--p-white-a12);
  border-radius: 1px;
  overflow: hidden;
}
.news-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--p-white-a85);
  border-radius: 1px;
}
.news-progress-segment.completed .news-progress-fill {
  width: 100%;
  background: var(--p-white-a40);
}
.news-progress-segment.active .news-progress-fill {
  background: var(--p-purple-200);
  box-shadow: 0 0 8px var(--p-purple-200), 0 0 16px rgba(192, 132, 252, 0.7);
  animation: newsProgressAnimation 6s linear forwards;
}
@keyframes newsProgressAnimation {
  from { width: 0%; }
  to { width: 100%; }
}
.news-bg-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.news-bg-item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.news-bg-item.active {
  opacity: 1;
  transform: scale(1.05);
  animation: newsBgZoom 6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
@keyframes newsBgZoom {
  from { transform: scale(1.03); }
  to { transform: scale(1.06); }
}
.news-overlay-gradient {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, var(--color-bg-deep) 0%, rgba(4, 2, 9, 0.85) 30%, rgba(4, 2, 9, 0.3) 60%, rgba(4, 2, 9, 0) 100%);
}
.news-content-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 24px 20px;
  pointer-events: none;
  box-sizing: border-box;
}
.news-top-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}
.news-label-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1;
  padding: 5px 12px;
  border: 1.5px solid var(--p-purple-a50);
  border-radius: 100px;
  background: rgba(168, 85, 247, 0.08);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
.news-badge-icon {
  width: 14px;
  height: 14px;
  color: var(--color-text);
  filter: drop-shadow(0 0 6px var(--p-white-a70));
  animation: flameFlicker 2s infinite ease-in-out;
}
@keyframes flameFlicker {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.15); opacity: 1; filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.9)); }
}
.news-middle-section {
  margin-top: auto;
  margin-bottom: 8px;
}
.news-title-text {
  font-size: 26px;
  font-weight: 900;
  color: var(--color-text);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0;
  opacity: 0;
  transform: translateY(12px);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  animation: newsSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.05s;
}
@keyframes newsSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.news-bottom-section {
  display: flex;
  flex-direction: column;
}
.news-benefits-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.news-benefit-item {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(8px);
  animation: newsSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.news-benefit-bullet {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid currentColor;
  background: var(--p-white-a5);
}
.news-benefit-bullet svg {
  width: 9px;
  height: 9px;
  stroke: currentColor;
  display: block;
}
.news-benefit-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--p-white-a70);
  line-height: 1.2;
  text-shadow: 0 1.5px 4px rgba(0, 0, 0, 0.85);
}
.news-more-btn {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--p-white-a4);
  border: 1px solid var(--p-white-a8);
  font-size: 11px;
  font-weight: 600;
  color: var(--p-white-a70);
  width: fit-content;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  pointer-events: auto;
}
.news:hover .news-more-btn {
  background: var(--p-white-a8);
  border-color: var(--p-white-a15);
  color: var(--color-text);
}
.news-more-btn svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  transition: transform 0.3s ease;
}
.news:hover .news-more-btn svg {
  transform: translateX(2px);
}

.payment-spinner-svg { width: 100%; height: 100%; animation: rotateSpinner 1.5s infinite linear; }
.payment-spinner-wrapper { position: relative; width: 80px; height: 80px; margin-bottom: 8px; }
.payment-spinner-glow { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(168, 85, 247, 0.3) 0%, transparent 70%); filter: blur(8px); animation: pulseGlow 2s infinite ease-in-out; }
.payment-poll-modal { max-width: 380px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 24px; gap: 20px; }
.z-1100 { z-index: 1100; }
.z-1200 { z-index: 1200; }
.oferta-modal { max-width: 540px; max-height: 85vh; }
.svg-icon-18 { width: 18px; height: 18px; }
.svg-icon-14 { width: 14px; height: 14px; margin-right: 4px; }
.settings-footer { /* see settings-core.css */ }
@keyframes rotateSpinner { 100% { transform: rotate(360deg); } }
@keyframes pulseGlow { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
.pos-relative { position: relative; }
.mt-12 { margin-top: 12px; }
.mb-12 { margin-bottom: 12px; }
.mt-6 { margin-top: 6px; }
.sr-only { position: absolute; width: 0; height: 0; overflow: hidden; }
.partner-warning { display: none; margin-bottom: 14px; padding: 10px 14px; border-radius: 12px; background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.2); font-size: 11px; color: rgba(255, 255, 255, 0.5); text-align: center; }
.payment-heading { font-size: 18px; font-weight: 700; color: var(--p-white); margin: 0; text-transform: uppercase; letter-spacing: 0.05em; background: linear-gradient(90deg, var(--p-white) 0%, var(--p-purple-200) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.payment-desc { font-size: 13.5px; color: var(--color-text-soft); line-height: 1.6; margin: 0; }
.payment-buttons { display: flex; flex-direction: column; width: 100%; gap: 10px; margin-top: 10px; }
.payment-cta-btn { background: var(--p-grad-pink-purple); box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4); margin: 0; width: 100%; }
.payment-cancel-btn { background: transparent; border: 1px solid var(--p-white-a15); color: var(--color-text-soft); padding: 12px; border-radius: 14px; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background 0.2s, color 0.2s; width: 100%; }
.modal-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.checkmark-hidden { display: none; width: 12px; height: 12px; color: var(--p-white); }
.niche-hint { font-size: 11px; color: var(--p-white-a30); }
.niche-row { margin-top: 6px; }

/* News Rocket Layer */
.news-rocket-layer {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 240px;
  z-index: 3;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.news-rocket-svg {
  width: 100%;
  height: 100%;
  max-width: 240px;
}
.news-flame-icon {
  display: inline-block;
  vertical-align: middle;
  width: 14px;
  height: 14px;
  margin-left: 4px;
  color: var(--p-orange-400);
  filter: drop-shadow(0 0 6px rgba(251, 146, 60, 0.7));
}

/* ═══ Адаптив (mobile-first) ═══ */

/* Телефоны и узкие планшеты: баланс на всю ширину, колонки стекаются */
@media (max-width: 600px) {
  .dashboard {
    flex-direction: column;
  }

  .balance-card {
    width: 100%;
  }
}

/* Компактные цифры баланса на маленьких экранах */
@media (max-width: 480px) {
  .balance-value {
    font-size: 36px;
  }

  .news {
    height: 210px;
  }
}


/* ── Плитки контента и секции главной (перенесено из partner.css, LIO-324) ── */
.dashboard.hidden {
  display: none;
}

.content-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.content-tile {
  background: linear-gradient(180deg, var(--p-cosmic-105-a50) 0%, var(--p-cosmic-ink-a70) 100%);
  border: none;
  border-radius: 20px;
  padding: 18px 16px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 10px 28px var(--p-black-a55),
    inset 0 1px 0 0 var(--p-white-a22),
    inset 0 -1px 0 0 var(--p-black-a60);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s,
    background 0.3s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

/* Фирменный точечный паттерн (как на карточке Аналитика, мягкий) */
.content-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    var(--tile-dot-color, rgba(168, 85, 247, 0.12)) 1px,
    transparent 1px
  );
  background-size: 8px 8px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 1;
}

/* Разноцветное фоновое свечение (мягкое, приглушённое) */
.content-tile::after {
  content: '';
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(
    circle at 25% 25%,
    var(--tile-glow-color, rgba(168, 85, 247, 0.08)) 0%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.3s ease;
  opacity: 0.45;
}@media (hover: hover) {
.content-tile:hover {
  transform: translateY(-2px) scale(1.01);
  background: linear-gradient(180deg, var(--p-cosmic-132-a60) 0%, var(--p-cosmic-74-a80) 100%);
  box-shadow:
    0 16px 40px var(--p-black-a65),
    0 0 18px var(--tile-glow-color, rgba(168, 85, 247, 0.15)),
    inset 0 1px 0 0 var(--p-white-a35),
    inset 0 -1px 0 0 var(--p-black-a70);
}
}
@media (hover: hover) {
.content-tile:hover::after {
  opacity: 0.7;
}
}


.content-tile:active {
  transform: scale(0.98);
}

/* 1. Аккаунты - Сине-лазурный */
#accountsTile {
  --tile-glow-color: var(--p-blue-500-a11);
  --tile-dot-color: var(--p-blue-500-a13);
  box-shadow:
    0 10px 28px var(--p-black-a55),
    inset 0 1px 0 0 var(--p-white-a22),
    inset 0 -1px 0 0 var(--p-black-a60),
    0 0 12px var(--p-blue-500-a6);
}
#accountsTile .content-tile-icon {
  color: var(--p-blue-400);
  filter: drop-shadow(0 0 5px var(--p-blue-400-a35));
}

/* 2. Календарь - Изумрудно-зеленый */
#calendarTile {
  --tile-glow-color: var(--p-green-500-a11);
  --tile-dot-color: var(--p-green-500-a13);
  box-shadow:
    0 10px 28px var(--p-black-a55),
    inset 0 1px 0 0 var(--p-white-a22),
    inset 0 -1px 0 0 var(--p-black-a60),
    0 0 12px var(--p-green-500-a6);
}
#calendarTile .content-tile-icon {
  color: var(--p-green-400);
  filter: drop-shadow(0 0 5px var(--p-green-400-a35));
}

/* 3. Черновики - Янтарно-оранжевый */
#draftsTile {
  --tile-glow-color: var(--p-amber-500-a11);
  --tile-dot-color: var(--p-amber-500-a13);
  box-shadow:
    0 10px 28px var(--p-black-a55),
    inset 0 1px 0 0 var(--p-white-a22),
    inset 0 -1px 0 0 var(--p-black-a60),
    0 0 12px var(--p-amber-500-a6);
}
#draftsTile .content-tile-icon {
  color: var(--p-amber-400);
  filter: drop-shadow(0 0 5px var(--p-amber-400-a35));
}

/* 4. Фирменный стиль - Пурпурно-розовый */
#brandTile {
  --tile-glow-color: var(--p-pink-500-a11);
  --tile-dot-color: var(--p-pink-500-a13);
  box-shadow:
    0 10px 28px var(--p-black-a55),
    inset 0 1px 0 0 var(--p-white-a22),
    inset 0 -1px 0 0 var(--p-black-a60),
    0 0 12px var(--p-pink-500-a6);
}
#brandTile .content-tile-icon {
  color: var(--p-pink-400);
  filter: drop-shadow(0 0 5px var(--p-pink-400-a35));
}

/* 5. Создать карусель - Циан / Неоновый бирюзовый */
#createCarouselTile {
  --tile-glow-color: var(--p-sky-500-a11);
  --tile-dot-color: var(--p-sky-500-a13);
  box-shadow:
    0 10px 28px var(--p-black-a55),
    inset 0 1px 0 0 var(--p-white-a22),
    inset 0 -1px 0 0 var(--p-black-a60),
    0 0 12px var(--p-sky-500-a6);
}
#createCarouselTile .content-tile-icon {
  color: var(--p-cyan-400);
  filter: drop-shadow(0 0 5px var(--p-cyan-400-a35));
}

/* 6. Выложить Reels - Розово-малиновый / Неоновый коралловый */
#reelsTile {
  --tile-glow-color: rgba(244, 63, 94, 0.15);
  --tile-dot-color: rgba(244, 63, 94, 0.18);
  box-shadow:
    0 10px 28px var(--p-black-a55),
    inset 0 1px 0 0 var(--p-white-a22),
    inset 0 -1px 0 0 var(--p-black-a60),
    0 0 12px rgba(244, 63, 94, 0.08);
}
#reelsTile .content-tile-icon {
  color: #fb7185;
  filter: drop-shadow(0 0 5px rgba(251, 113, 133, 0.45));
}

/* 7. ИИ-настройки - Фиолетовый индиго */
#aiSettingsTile {
  --tile-glow-color: var(--p-purple-300-a11);
  --tile-dot-color: var(--p-purple-300-a13);
  box-shadow:
    0 10px 28px var(--p-black-a55),
    inset 0 1px 0 0 var(--p-white-a22),
    inset 0 -1px 0 0 var(--p-black-a60),
    0 0 12px var(--p-purple-300-a6);
}
#aiSettingsTile .content-tile-icon {
  color: var(--p-purple-200);
  filter: drop-shadow(0 0 5px var(--p-purple-200-a35));
}

.content-tile-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 10px;
  transition:
    transform 0.25s ease,
    filter 0.25s ease;
  position: relative;
  z-index: 2;
}@media (hover: hover) {
.content-tile:hover .content-tile-icon {
  transform: scale(1.1);
}
}


.content-tile-icon svg {
  width: 32px;
  height: 32px;
}

.content-tile-label {
  font-size: var(--text-15);
  font-weight: var(--fw-700);
  margin-bottom: 4px;
  position: relative;
  z-index: 2;
  color: var(--p-white);
}

.content-tile-desc {
  font-size: var(--text-xs);
  color: var(--p-white-a55);
  line-height: var(--leading-snug);
  position: relative;
  z-index: 2;
}

/* Content subsections */
.content-section {
  display: none;
}
.content-section.active {
  display: block;
}
