:root {
  --gx-bg: #080808;
  --gx-card: #141414;
  --gx-border: #2a2a2a;
  --gx-primary: #d8791f;
  --gx-primary-dark: #9f5014;
  --gx-text: #ffffff;
  --gx-muted: #b8b8b8;
  --gx-shadow: 0 16px 42px rgba(216, 121, 31, 0.24);
}

.gxcc-root,
.gxcc-modal,
.gxcc-media-placeholder {
  font-family: "Saira Condensed", "Montserrat", "Helvetica Neue", sans-serif;
}

.gxcc-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: min(780px, calc(100vw - 40px));
  z-index: 99990;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.gxcc-banner.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
}

.gxcc-banner-inner {
  background:
    radial-gradient(circle at 100% 0, rgba(216, 121, 31, 0.15), transparent 48%),
    linear-gradient(140deg, #1a1a1a 0%, var(--gx-card) 65%);
  border: 1px solid var(--gx-border);
  border-radius: 16px;
  color: var(--gx-text);
  box-shadow: var(--gx-shadow);
  padding: 20px;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr auto;
}

.gxcc-title {
  margin: 0 0 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 20px;
}

.gxcc-banner-copy p {
  margin: 0;
  color: var(--gx-muted);
  line-height: 1.45;
}

.gxcc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.gxcc-links a {
  color: var(--gx-primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(216, 121, 31, 0.5);
}

.gxcc-banner-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.gxcc-btn {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 14px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: 0.2s ease;
}

.gxcc-btn:hover {
  transform: translateY(-1px);
}

.gxcc-btn-primary {
  background: linear-gradient(160deg, var(--gx-primary) 0%, var(--gx-primary-dark) 100%);
  color: #fff;
  border-color: rgba(216, 121, 31, 0.7);
}

.gxcc-btn-secondary {
  background: #101010;
  border-color: var(--gx-border);
  color: #fff;
}

.gxcc-floating-trigger {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 99980;
  border: 1px solid var(--gx-border);
  border-radius: 100px;
  padding: 10px 15px;
  color: var(--gx-text);
  background: linear-gradient(160deg, #1a1a1a, #0f0f0f);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.gxcc-floating-trigger:hover {
  border-color: var(--gx-primary);
}

.gxcc-modal {
  position: fixed;
  inset: 0;
  z-index: 99995;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.gxcc-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.gxcc-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(3px);
}

.gxcc-modal-panel {
  position: relative;
  margin: 5vh auto;
  width: min(920px, calc(100vw - 26px));
  max-height: 90vh;
  overflow: auto;
  background:
    radial-gradient(circle at 90% 0, rgba(216, 121, 31, 0.18), transparent 45%),
    linear-gradient(160deg, #191919 0%, #111 65%);
  color: var(--gx-text);
  border: 1px solid var(--gx-border);
  border-radius: 16px;
  box-shadow: var(--gx-shadow);
  padding: 22px;
}

.gxcc-close {
  position: absolute;
  right: 10px;
  top: 8px;
  color: var(--gx-muted);
  font-size: 28px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.gxcc-modal-header h3 {
  margin: 0;
  font-size: 23px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gxcc-modal-header p {
  margin: 8px 0 16px;
  color: var(--gx-muted);
}

.gxcc-category-list {
  display: grid;
  gap: 12px;
}

.gxcc-category {
  border: 1px solid var(--gx-border);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  padding: 12px;
}

.gxcc-category-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.gxcc-category h4 {
  margin: 0;
}

.gxcc-category p {
  margin: 5px 0 0;
  color: var(--gx-muted);
}

.gxcc-switch {
  width: 48px;
  height: 28px;
  display: inline-block;
  position: relative;
}

.gxcc-switch input {
  position: absolute;
  opacity: 0;
  inset: 0;
}

.gxcc-switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #3a3a3a;
  border: 1px solid var(--gx-border);
  transition: 0.2s ease;
}

.gxcc-switch span::after {
  content: "";
  width: 20px;
  height: 20px;
  position: absolute;
  left: 4px;
  top: 3px;
  border-radius: 100%;
  background: #fff;
  transition: 0.2s ease;
}

.gxcc-switch input:checked + span {
  background: var(--gx-primary-dark);
  border-color: var(--gx-primary);
}

.gxcc-switch input:checked + span::after {
  transform: translateX(20px);
  background: #fff;
}

.gxcc-switch input:disabled + span {
  background: #474747;
}

.gxcc-service-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.gxcc-service-item {
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  padding-top: 10px;
}

.gxcc-service-item p {
  margin: 4px 0;
}

.gxcc-service-item a {
  color: var(--gx-primary);
}

.gxcc-service-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--gx-muted);
  font-size: 13px;
}

.gxcc-modal-footer {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.gxcc-settings-link {
  border: 0;
  background: transparent;
  color: var(--gx-primary);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font: inherit;
}

.gxcc-media-placeholder {
  border: 1px solid var(--gx-border);
  background:
    radial-gradient(circle at 95% 0, rgba(216, 121, 31, 0.18), transparent 55%),
    linear-gradient(140deg, #171717 0%, #0f0f0f 100%);
  border-radius: 12px;
  padding: 16px;
  margin: 12px 0;
  color: var(--gx-text);
}

.gxcc-media-placeholder-inner p {
  margin: 6px 0 12px;
  color: var(--gx-muted);
}

.gxcc-media-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.gxcc-media-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--gx-primary);
}

html.gxcc-modal-open,
html.gxcc-modal-open body {
  overflow: hidden;
}

@media (max-width: 900px) {
  .gxcc-banner {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }

  .gxcc-banner-inner {
    grid-template-columns: 1fr;
  }

  .gxcc-banner-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .gxcc-banner {
    right: 0;
    left: 0;
    bottom: 0;
    width: 100vw;
  }

  .gxcc-banner-inner {
    border-radius: 16px 16px 0 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    padding: 16px;
  }

  .gxcc-banner-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .gxcc-btn {
    width: 100%;
  }

  .gxcc-floating-trigger {
    left: 12px;
    bottom: 98px;
    font-size: 13px;
  }

  .gxcc-modal-panel {
    margin: 10px auto;
    max-height: calc(100vh - 20px);
    border-radius: 12px;
    padding: 18px;
  }
}
