

.igx-cc {
  position: fixed;
  inset: auto 16px 16px 16px;
  z-index: 90;
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .4s ease, transform .4s ease;
  pointer-events: none;
}
.igx-cc.is-open {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.igx-cc.is-closing {
  opacity: 0;
  transform: translateY(20px);
}

.igx-cc__bar {
  max-width: 1080px;
  margin: 0 auto;
  background: rgba(6, 11, 26, 0.92);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid rgba(0, 200, 255, 0.14);
  border-radius: 18px;
  box-shadow:
    0 24px 60px -20px rgba(0, 0, 0, .6),
    0 0 0 1px rgba(0, 200, 255, .04) inset;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}

.igx-cc__icon {
  width: 38px; height: 38px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(0, 200, 255, 0.1);
  border: 1px solid rgba(0, 200, 255, 0.22);
  color: #00C8FF;
  flex: 0 0 auto;
}

.igx-cc__txt {
  font-size: 13px;
  line-height: 1.55;
  color: #cbd5e1;
  min-width: 0;
}
.igx-cc__txt strong {
  color: #f1f5f9;
  font-weight: 600;
  display: block;
  font-size: 13.5px;
  margin-bottom: 2px;
}
.igx-cc__txt a {
  color: #00C8FF;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.igx-cc__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.igx-cc__btn {
  font: 600 12.5px/1 'Manrope', system-ui, sans-serif;
  letter-spacing: .01em;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .15s ease;
}
.igx-cc__btn:active { transform: scale(.97); }

.igx-cc__btn--ghost {
  background: transparent;
  color: #94a3b8;
  border-color: rgba(255, 255, 255, 0.1);
}
.igx-cc__btn--ghost:hover {
  color: #f1f5f9;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
}

.igx-cc__btn--secondary {
  background: rgba(255, 255, 255, 0.04);
  color: #f1f5f9;
  border-color: rgba(255, 255, 255, 0.14);
}
.igx-cc__btn--secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

.igx-cc__btn--primary {
  background: linear-gradient(135deg, #00C8FF 0%, #2563EB 100%);
  color: #02101f;
  border-color: rgba(0, 200, 255, 0.6);
  box-shadow: 0 6px 22px -6px rgba(0, 200, 255, 0.45);
}
.igx-cc__btn--primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 8px 26px -6px rgba(0, 200, 255, 0.55);
}


@media (max-width: 720px) {
  .igx-cc {
    inset: auto 10px 10px 10px;
  }
  .igx-cc__bar {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    
    background: rgba(6, 11, 26, 0.96);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .igx-cc__icon { width: 34px; height: 34px; }
  .igx-cc__actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .igx-cc__btn { padding: 11px 12px; font-size: 12px; text-align: center; justify-content: center; }
  .igx-cc__btn--primary { grid-column: 1 / -1; }
  .igx-cc__txt { font-size: 12.5px; }
}


.igx-cc__panel {
  display: none;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  grid-column: 1 / -1;
}
.igx-cc__panel.is-open { display: block; }

.igx-cc__cat {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}
.igx-cc__cat:last-child { border-bottom: 0; }
.igx-cc__cat-info { min-width: 0; flex: 1; }
.igx-cc__cat-name {
  font-weight: 600;
  font-size: 13px;
  color: #f1f5f9;
  margin-bottom: 3px;
}
.igx-cc__cat-desc {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
}


.igx-cc__switch {
  position: relative;
  width: 38px; height: 22px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  flex: 0 0 auto;
  transition: background .2s ease;
}
.igx-cc__switch::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  background: #94a3b8;
  border-radius: 50%;
  transition: transform .2s ease, background .2s ease;
}
.igx-cc__switch.is-on {
  background: rgba(0, 200, 255, 0.25);
  border-color: rgba(0, 200, 255, 0.6);
}
.igx-cc__switch.is-on::after {
  transform: translateX(16px);
  background: #00C8FF;
}
.igx-cc__switch.is-locked {
  background: rgba(0, 229, 168, 0.18);
  border-color: rgba(0, 229, 168, 0.5);
  cursor: not-allowed;
  opacity: .85;
}
.igx-cc__switch.is-locked::after {
  transform: translateX(16px);
  background: #00E5A8;
}

.igx-cc__panel-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 14px;
}
@media (max-width: 720px) {
  .igx-cc__panel-actions { flex-direction: column-reverse; }
  .igx-cc__panel-actions .igx-cc__btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .igx-cc { transition: none; }
}
