/* Footer */

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links {
  display: flex;
  gap: 14px;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 1px;
}

.footer-links .nav-link {
  padding: 6px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}

.footer-links .nav-link:hover {
  background: #0f1420;
  border: 1px solid var(--border);
}

/* Master eye buttons (hide/show all) */
.btn-eye {
  width: 30px;
  height: 30px;
  margin: 0 10px 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--btn-primary);
  color: #e8eef8;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  padding: 0;
  box-shadow: none;
}
.btn-eye:hover {
  background: var(--btn-primary-hover);
}

/* icon */
.btn-eye::before {
  content: "";
  width: 18px;
  height: 18px;
  display: block;
  background: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5C21.27 7.61 17 4.5 12 4.5zm0 12a4.5 4.5 0 1 1 0-9 4.5 4.5 0 0 1 0 9z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5C21.27 7.61 17 4.5 12 4.5zm0 12a4.5 4.5 0 1 1 0-9 4.5 4.5 0 0 1 0 9z'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

/* active = “hide all” -> slashed eye + highlighted border */
.btn-eye.active {
  border-color: #00eaff;
  box-shadow: 0 0 0 2px #00eaff55;
}
.btn-eye.active::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2.1 3.51 20.49 21.9l1.41-1.41L3.51 2.1 2.1 3.51zM12 6c4.42 0 8.19 2.55 10 6-1 2.22-2.76 4.07-4.94 5.16l-2.2-2.2A4.5 4.5 0 0 0 9.03 10l-2.1-2.1A12.7 12.7 0 0 1 12 6zm0 12c-4.42 0-8.19-2.55-10-6 .83-1.84 2.23-3.42 3.98-4.56l2.16 2.16A4.5 4.5 0 0 0 14.4 14.3l2.36 2.36A12.6 12.6 0 0 1 12 18z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2.1 3.51 20.49 21.9l1.41-1.41L3.51 2.1 2.1 3.51zM12 6c4.42 0 8.19 2.55 10 6-1 2.22-2.76 4.07-4.94 5.16l-2.2-2.2A4.5 4.5 0 0 0 9.03 10l-2.1-2.1A12.7 12.7 0 0 1 12 6zm0 12c-4.42 0-8.19-2.55-10-6 .83-1.84 2.23-3.42 3.98-4.56l2.16 2.16A4.5 4.5 0 0 0 14.4 14.3l2.36 2.36A12.6 12.6 0 0 1 12 18z'/%3E%3C/svg%3E");
}

.toggle-color.color-hidden {
  opacity: 0.4;
  filter: grayscale(100%);
}

.toggle-color.color-hidden .hide-eye {
  opacity: 1;
}

.usage-item.hidden {
  opacity: 0.45;
  filter: grayscale(100%);
}

.usage-hide-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2.1 3.51 20.49 21.9l1.41-1.41L3.51 2.1 2.1 3.51zM12 6c4.42 0 8.19 2.55 10 6-1 2.22-2.76 4.07-4.94 5.16l-2.2-2.2A4.5 4.5 0 0 0 9.03 10l-2.1-2.1A12.7 12.7 0 0 1 12 6zm0 12c-4.42 0-8.19-2.55-10-6 .83-1.84 2.23-3.42 3.98-4.56l2.16 2.16A4.5 4.5 0 0 0 14.4 14.3l2.36 2.36A12.6 12.6 0 0 1 12 18z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2.1 3.51 20.49 21.9l1.41-1.41L3.51 2.1 2.1 3.51zM12 6c4.42 0 8.19 2.55 10 6-1 2.22-2.76 4.07-4.94 5.16l-2.2-2.2A4.5 4.5 0 0 0 9.03 10l-2.1-2.1A12.7 12.7 0 0 1 12 6zm0 12c-4.42 0-8.19-2.55-10-6 .83-1.84 2.23-3.42 3.98-4.56l2.16 2.16A4.5 4.5 0 0 0 14.4 14.3l2.36 2.36A12.6 12.6 0 0 1 12 18z'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

/* --- Advanced options (details/summary) --- */
.adv-card {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.02)
  );
  box-shadow: var(--shadow);
}
.adv-card > summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  outline: none;
}
.adv-card > summary::-webkit-details-marker {
  display: none;
}
.adv-card > summary::after {
  content: "";
  margin-left: auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  transform: rotate(45deg);
  opacity: 0.8;
}
.adv-card[open] > summary::after {
  transform: rotate(225deg);
}

.adv-card .adv-content {
  padding: 10px 14px 14px 14px;
  display: grid;
  gap: 8px;
}
.adv-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.98rem;
  color: var(--text);
}
.adv-check input {
  accent-color: var(--brand);
}

/* --- Master eye (small icon button in card header) --- */
.btn-eye {
  width: 28px;
  height: 28px;
  margin-left: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0f1420;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #e8eef8;
}

.btn-eye:hover {
  box-shadow: 0 0 0 2px #00eaff33;
}

.btn-eye::before {
  content: "";
  width: 16px;
  height: 16px;
  display: block;
  background: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5C21.27 7.61 17 4.5 12 4.5zm0 12a4.5 4.5 0 1 1 0-9 4.5 4.5 0 0 1 0 9z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5C21.27 7.61 17 4.5 12 4.5zm0 12a4.5 4.5 0 1 1 0-9 4.5 4.5 0 0 1 0 9z'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.btn-eye.active::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2.1 3.51 20.49 21.9l1.41-1.41L3.51 2.1 2.1 3.51zM12 6c4.42 0 8.19 2.55 10 6-1 2.22-2.76 4.07-4.94 5.16l-2.2-2.2A4.5 4.5 0 0 0 9.03 10l-2.1-2.1A12.7 12.7 0 0 1 12 6zm0 12c-4.42 0-8.19-2.55-10-6 .83-1.84 2.23-3.42 3.98-4.56l2.16 2.16A4.5 4.5 0 0 0 14.4 14.3l2.36 2.36A12.6 12.6 0 0 1 12 18z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2.1 3.51 20.49 21.9l1.41-1.41L3.51 2.1 2.1 3.51zM12 6c4.42 0 8.19 2.55 10 6-1 2.22-2.76 4.07-4.94 5.16l-2.2-2.2A4.5 4.5 0 0 0 9.03 10l-2.1-2.1A12.7 12.7 0 0 1 12 6zm0 12c-4.42 0-8.19-2.55-10-6 .83-1.84 2.23-3.42 3.98-4.56l2.16 2.16A4.5 4.5 0 0 0 14.4 14.3l2.36 2.36A12.6 12.6 0 0 1 12 18z'/%3E%3C/svg%3E");
}

/* When the toggle is OFF, hide all color-hiding UI */
body.hide-ui-off .hide-eye,
body.hide-ui-off .btn-eye {
  display: none !important;
}

/* Make the library card span BOTH columns of the homepage .app grid */
.container.app .gallery-shell {
  grid-column: 1 / -1; /* <-- spans both columns */
  width: 100%;
  max-width: none; /* kill any previous cap like 1100px/var(--container) */
  margin: 24px 0 40px;
  padding: 24px;
  box-sizing: border-box;
}
