.app-shell { 
  display: grid; 
  grid-template-columns: 72px 1fr; 
  height: 100vh; 
  transition: grid-template-columns 0.22s ease; 
  opacity: 1; 
  position: relative;
  /* animation: fadeIn 0.8s ease forwards;  */
}

.window-controls {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  gap: 0;
  z-index: 1000;
}

.window-control-btn {
  width: 46px;
  height: 30px;
  border: none;
  background: transparent;
  color: #ffffff6e;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background-color 0.2s ease;
  -webkit-app-region: no-drag;
}

.window-control-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.close-btn:hover {
  background-color: rgba(232, 17, 35, 0.9);
  color: #ffffff;
}


.app-shell.expanded { 
  grid-template-columns: 200px 1fr;              
}


.sidebar {
  padding: 30px 15px 20px 15px;
  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;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
}


.logo-text { 
  line-height: 1; 
  font-size: 35px; 
  font-weight: 600; 
  opacity: 0; 
  visibility: hidden; 
  transition: opacity 0.18s ease; 
}


.app-shell.expanded .logo-text { 
  opacity: 1; 
  visibility: visible; 
}


.hamburger { 
  display: inline-flex; 
  width: 48px;
  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: 15px; 
  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;
}

.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 25px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

/* Beta badge on sidebar icons */
.icon-wrapper.beta-badge {
  position: relative;
  display: inline-flex;
}

.icon-wrapper.beta-badge .beta-symbol {
  position: absolute;
  top: -4px;
  right: -6px;
  font-size: 10px;
  font-weight: 700;
  color: #ffce54;
}

.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 15px 15px 0px;
  border: 1px solid var(--border);
  /* border-radius: 20px; */
  border-radius: 8px;
  background: var(--bg2);
  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 var(--border); 
}

/* 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-family: 'Jost', ui-sans-serif, system-ui; 
  font-weight: 600; 
  font-size: 50px; 
  color: var(--text);
  text-align: center;
  margin: 0px;
}
.sphere-toggle { 
  pointer-events: auto;
  position: absolute;
  top: 47%;
  transform: translateY(-50%);
  width: 120px;
  height: 50px;
  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: 46px;
  height: 46px;
  border-radius: 50%;
  background: #dadada;
  transform: translateX(0);
  transition: transform 0.35s ease-in-out;
}

.sphere-toggle[aria-pressed="true"] .knob { 
  transform: translateX(66px);
}

.sphere-hint { 
  pointer-events: none; 
  position: absolute; 
  top: 57%; 
  transform: translateY(-50%);
  font-family: 'Jost', ui-sans-serif, system-ui; 
  font-weight: 500; 
  font-size: 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: 900px;
  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: #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: 8px;
  background: #151515;
  border: 1px solid #ffffff0a; 
}

.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: 20px;
  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: 8px;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.card-icon i {
  font-size: 36px;
  color: #b4b4b4;
}

.card-description {
  display: flex;
  flex-direction: column;
}

.card-description-text {
  color: #8e8e8e;
  display: flex;
  flex-direction: row;
  font-weight: 500;
  font-size: 13px;
}


.subscription-type {
  color: #ffffff;
  font-weight: 600;
}

.subscription-days {
  font-size: 13px;
  font-weight: 500;
}

.days-ok {
  color: #28a745;
}

.days-warning {
  color: #ffc107;
}

.subscription-expired {
  color: #dc3545;
  font-weight: 500;
}

.card-icon-right {
  position: absolute;
  right: 20px;
  transition: transform 0.3s ease;
}

.card-icon-right i {
  font-size: 40px;
  color: #c6c6c6;
  transition: transform 0.3s ease;
}

.subscription-card {
  cursor: pointer;
}

.subscription-card:hover .card-icon-right {
  transform: translateX(4px);
  color: #ffffff;
}

.subscription-card:hover .card-icon-right i {
  transform: translateX(2px);
  color: #ffffff;
}

/* 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;
}

@media (max-width: 910px) {
  .sphere-title{
    font-size: 40px;
  }
  
  .toggle-hero{
    top: 20px;
  }
  
}