.app-shell { 
  display: grid; 
  grid-template-columns: 72px 1fr; 
  height: 100vh; 
  transition: grid-template-columns 0.22s ease; 
  opacity: 1; 
  /* animation: fadeIn 0.8s ease forwards;  */
}


.app-shell.expanded { 
  grid-template-columns: 200px 1fr;                  /* надо думать как его оставлять прогруженным при смене страниц */
}


.sidebar {
  padding: 30px 16px 30px 16px;
  opacity: 1;
  /* animation: slideInLeft 0.6s ease 0.2s forwards; */
}


a {
  line-height: 0;
}

.sidebar { 
  display: flex; 
  flex-direction: column; 
  height: 100%; 
}


.logo-container { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  align-items: flex-start;
}


.logo-text { 
  line-height: 1; 
  font-size: 32px; 
  font-weight: 600; 
  opacity: 0; 
  visibility: hidden; 
  transition: opacity 0.18s ease; 
}


.app-shell.expanded .logo-text { 
  opacity: 1; 
  visibility: visible; 
}


.hamburger { 
  margin-bottom: 40px; 
  display: inline-flex; 
  width: 45px;
  height: 1px; 
  flex-direction: column; 
  justify-content: space-between; 
  cursor: pointer; 
  background: transparent; 
  border: 0px solid; 
}


.hamburger span { 
  height: 2px; 
  background: var(--text); 
  border-radius: 2px; 
}


.nav { 
  margin-top: 24px; 
  display: flex; 
  flex-direction: column; 
  gap: 10px; 
}


.nav-bottom { 
  margin-top: auto; 
  display: flex; 
  flex-direction: column; 
  gap: 10px; 
}


.nav a, .nav-bottom a { 
  color: var(--text); 
  padding: 10px 10px; 
  text-decoration: none; 
  gap: 20px;
  display: flex; 
  align-items: center;
  min-height: 45px;
}


/* .nav a:hover { background: var(--text); } */
/* .nav .active { background: color-mix(in oklab, var(--text) 14%, transparent); } */


.nav .icon, .nav-bottom .icon { 
  font-size: 25px; 
  width: 25px; 
  height: 25px; 
  color: var(--icon); 
  display: inline-flex; 
  align-items: center; 
  justify-content: center;
  flex-shrink: 0;
  text-align: center;
}

.nav a:hover .icon, .nav a.active .icon, .nav-bottom a:hover .icon, .nav-bottom a:active .icon, .nav-bottom a.active .icon { 
  color: var(--icon-activate); 
}

.nav a:active .icon, .nav a.active .icon, .nav-bottom a:active .icon, .nav-bottom a.active .icon { 
  color: var(--icon-activate); 
}


.nav .label, .nav-bottom .label { 
  font-weight: 500; 
  font-size: 17px; 
  opacity: 0; 
  visibility: hidden; 
  transition: opacity 0.18s ease; 
  color: var(--icon); 
}

.nav a:hover .label, .nav a.hover .label, .nav-bottom a:hover .label, .nav-bottom a.hover .label { 
  color: var(--icon-activate); 
}

.nav a:active .label, .nav a.active .label, .nav-bottom a:active .label, .nav-bottom a.active .label { 
  color: var(--icon-activate); 
}


.app-shell.expanded .nav .label, .app-shell.expanded .nav-bottom .label { 
  opacity: 1; 
  visibility: visible; 
}


.main {
  padding: 24px;
  overflow: hidden;
  margin: 30px 20px 20px 0px;
  border: 1px solid #272727;
  border-radius: 20px;
  background: #121212;
  opacity: 0;
  animation: fadeInUp 0.6s ease 0.4s forwards;
}


.main { 
  position: relative; 
}


.version-badge { 
  position: absolute; 
  top: 10px; 
  left: 12px; 
  padding: 4px 8px; 
  border-radius: 8px; 
  font-family: 'Jost', ui-sans-serif, system-ui; 
  font-size: 12px; 
  font-weight: 600;
  color: #bdbdbd; 
  background: #111111; 
  border: 1px solid #2a2a2a; 
}

/* Center hero toggle */
.toggle-hero { 
    position: absolute;
    top: 50px;
    right: 50%;
    transform: translateX(50%);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeInScale 1s ease 0.6s forwards;
 }
.toggle-hero .sphere-overlay { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 2; }
.sphere-title { 
  pointer-events: none; 
  position: absolute; 
  top: 30%; 
  transform: translateY(-50%);
  font-family: 'Inter', ui-sans-serif, system-ui; 
  font-weight: 700; 
  font-size: clamp(40px, 3vw, 56px); 
  color: var(--text);
  text-align: center;
  margin: 0px;
}
.sphere-toggle { 
  pointer-events: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 150px;
  height: 60px;
  border-radius: 999px;
  background: #00000087;
  border: 1px solid #202020;
  display: inline-flex;
  align-items: center;
  padding: 4px;
  cursor: pointer;
  z-index: 3;
}
.sphere-toggle .knob { 
  width: 54px;
  height: 52px;
  border-radius: 50%;
  background: #dadada;
  transform: translateX(0);
  transition: transform 0.22s ease;
}
.sphere-toggle[aria-pressed="true"] .knob { transform: translateX(87px);}
.sphere-hint { 
  pointer-events: none; 
  position: absolute; 
  top: 62%; 
  transform: translateY(-50%);
  font-family: 'Jost', ui-sans-serif, system-ui; 
  font-weight: 500; 
  font-size: clamp(14px, 1vw, 16px); 
  color: #9a9a9a; 
  text-align: center;
}
.toggle-hero .shere { position: relative; z-index: 1; filter: blur(60px) contrast(150%); scale: 1.2; }
.toggle-hero .tagcloud { pointer-events: none; user-select: none; -webkit-user-select: none; }

.toggle-hero .ring-wrap {
  position: relative;
  width: 1000px;
  height: 400px;
  filter: blur(40px);
}

.toggle-hero .ring-wrap svg { 
  display: block; 
  width: 100%; 
  height: 100%; 
}

/* Состояние: выключен/неактивен (синий) */
.toggle-hero .ring-wrap.состояние-неактивно #ring {
  stroke: #000bff !important;
  transition: stroke 0.25s ease, filter 0.25s ease;
  filter: drop-shadow(0 1px 4px #000bff);
}

/* Состояние: активен, ожидает команду (зеленый) */
.toggle-hero .ring-wrap.состояние-активно-ожидание-выполнено #ring {
  stroke: #2a8142 !important;
  transition: stroke 0.25s ease, filter 0.25s ease;
  filter: drop-shadow(0 1px 4px #00ff1e);
}

/* Состояние: слушает/выполняет команду (желтый) */
.toggle-hero .ring-wrap.состояние-активно-слушает-выполняет #ring {
  stroke: #80812a !important;
  transition: stroke 0.25s ease, filter 0.25s ease;
  filter: drop-shadow(0 1px 4px #c8ff00);
}

.sphere-toggle {
  transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.sphere-toggle[aria-pressed="true"] {
  background: #0d1d0d;
  border-color: #224822;
  box-shadow:
    0 0 0 1px rgba(57,255,0,0.12) inset,
    0 0 18px rgba(57,255,0,0.12);
}
.tagcloud {
  font-family: 'Jost', ui-sans-serif, system-ui;
  font-size: 30px;
  font-weight: 600;
  text-shadow: 0 1px 4px #000bff, 0 0 12px #000bff, 0 0 28px #000bff, 0 0 50px #000bff, 0 0 90px #000bff, 0 0 140px #000bff, 0 0 180px #000bff, 0 0 225px #000bff, 0 0 270px #000bff;
}

/* Bottom cards */
.bottom-cards { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 16px; 
  position: absolute; 
  left: 16px; 
  right: 16px; 
  bottom: 16px; 
}
.bottom-cards .card { 
  height: 80px;
  border-radius: 16px;
  background: #1e1e1eb5;
  border: 1px solid #272727; 
}

.card-content { 
  height: 100%;
  display: flex;
  flex-direction: row;
  position: relative;
  gap: 10px;
  padding: 0px 10px;
  align-items: center;
  overflow: hidden;
}

.card-header {
  font-size: 24px;
  line-height: 0.5;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 5px;
  margin-top: 10px;
}

.card-icon {
  display: flex;
  width: 60px;
  height: 60px;
  background: #76767621;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.card-icon i {
  font-size: 36px;
  color: #c6c6c6;
}

.card-description {
  display: flex;
  flex-direction: column;
}

.card-description-text {
  color: #8e8e8e;
}

.card-icon-right {
  position: absolute;
  right: 12px;
}

.card-icon-right i {
  font-size: 40px;
  color: #c6c6c6;
}

/* Diagonal stacked plugin images */
.card-imgs {
  position: absolute;
  right: 12px;
  bottom: 6px;
  width: 80px; /* space for overlap */
  height: 60px;
  pointer-events: none;
}

.card-imgs img {
  position: absolute;
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 10px;
  transition: transform 0.2s ease, filter 0.2s ease;
  filter: saturate(0.95) contrast(1.02);
}

.card-imgs img:nth-child(1) {
  left: 15px;
  bottom: 0;
  transform: translate(15px, -2px) rotate(0deg);
  z-index: 1;
}

.card-imgs img:nth-child(2) {
  left: 15px;
  bottom: 3px;
  transform: translate(0px, -5px) rotate(0deg);
  z-index: 2;
}

.card-imgs img:nth-child(3) {
  left: 15px;
  bottom: 7px;
  transform: translate(-15px, -8px) rotate(0deg);
  z-index: 3;
}

.card:hover .card-imgs img {
  filter: saturate(1.05) contrast(1.06);
}

.subscription-status {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.status-badge {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  width: fit-content;
}

.status-badge.active {
  background: linear-gradient(135deg, #ffd700, #ffb347);
  color: #000;
}

.status-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.status-text {
  font-size: 12px;
  color: var(--icon);
}

.status-days {
  font-size: 11px;
  color: #888;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from { 
    opacity: 0; 
    transform: translateX(-30px); 
  }
  to { 
    opacity: 1; 
    transform: translateX(0); 
  }
}

@keyframes fadeInUp {
  from { 
    opacity: 0; 
    transform: translateY(20px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

@keyframes fadeInScale {
  from { 
    opacity: 0; 
    transform: translateX(50%) scale(0.8); 
  }
  to { 
    opacity: 1; 
    transform: translateX(50%) scale(1); 
  }
}

.microphone-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.mic-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.mic-icon i {
  font-size: 16px;
  color: var(--icon);
}

.mic-name {
  font-size: 16px;
  color: var(--icon-activate);
  font-weight: 500;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.no-microphones {
  font-size: 16px;
  color: #888;
  font-style: italic;
  text-align: center;
}
