:root {
  --pf-accent: #ffffff;
  --pf-accent-rgb: 255, 255, 255;
  --pf-glow: 1;
  --pf-bg-brightness: 1;
  --pf-bg-blur: 0px;
}

body.pf-editing,
body.pf-editing * {
  cursor: auto !important;
}

body.pf-editing .custom-cursor {
  display: none !important;
}

body.pf-native-cursor,
body.pf-native-cursor * {
  cursor: auto !important;
}

body.pf-native-cursor .custom-cursor,
body.pf-native-cursor .cursor-trail {
  display: none !important;
}

body.pf-editing input,
body.pf-editing textarea,
body.pf-editing select {
  cursor: text !important;
}

body.pf-editing button,
body.pf-editing a,
body.pf-editing input[type="color"],
body.pf-editing input[type="range"],
body.pf-editing input[type="checkbox"],
body.pf-editing label {
  cursor: pointer !important;
}

.pf-manage-btn,
.pf-gate button,
.pf-dashboard button,
.pf-dashboard a,
.pf-preview-bar {
  cursor: pointer !important;
}

.pf-manage-btn {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 100001;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(8, 8, 12, 0.72);
  color: #fff;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  letter-spacing: 0.4px;
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.pf-manage-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--pf-accent-rgb), 0.85);
  background: rgba(16, 16, 22, 0.9);
  box-shadow: 0 0 24px rgba(var(--pf-accent-rgb), 0.25);
}

.pf-manage-btn svg {
  width: 15px;
  height: 15px;
}

#pf-bg-image {
  position: fixed;
  inset: -3%;
  z-index: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
  filter: brightness(var(--pf-bg-brightness)) blur(var(--pf-bg-blur));
  transform: scale(1.02);
  transition: filter 0.35s ease, opacity 0.35s ease;
}

.pf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pf-tag {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(var(--pf-accent-rgb), 0.4);
  background: rgba(var(--pf-accent-rgb), 0.1);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: 'Courier New', monospace;
}

.pf-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 8px 15px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
}

.pf-location svg {
  width: 16px;
  height: 16px;
  color: #fff;
}

.pf-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: stretch;
}

.pf-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.pf-link svg {
  width: 13px;
  height: 13px;
  opacity: 0.8;
}

.pf-link:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--pf-accent-rgb), 0.7);
  background: rgba(var(--pf-accent-rgb), 0.14);
  box-shadow: 0 0 18px rgba(var(--pf-accent-rgb), 0.22);
}

#profile-block.pf-accented {
  animation: none !important;
  border-color: rgba(var(--pf-accent-rgb), 0.62) !important;
  box-shadow:
    0 0 calc(18px * var(--pf-glow)) rgba(var(--pf-accent-rgb), calc(0.34 * var(--pf-glow))),
    0 0 calc(48px * var(--pf-glow)) rgba(var(--pf-accent-rgb), calc(0.16 * var(--pf-glow))) !important;
}

#profile-block.pf-accented:hover {
  border-color: rgba(var(--pf-accent-rgb), 0.95) !important;
  box-shadow:
    0 0 calc(26px * var(--pf-glow)) rgba(var(--pf-accent-rgb), calc(0.5 * var(--pf-glow))),
    0 0 calc(70px * var(--pf-glow)) rgba(var(--pf-accent-rgb), calc(0.24 * var(--pf-glow))) !important;
}

#profile-block.pf-accented #profile-name {
  background-image: linear-gradient(90deg, var(--pf-accent), #000, var(--pf-accent)) !important;
}

#profile-block.pf-accented .pf-tag {
  border-color: rgba(var(--pf-accent-rgb), 0.5);
  background: rgba(var(--pf-accent-rgb), 0.12);
}

.pf-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3, 3, 7, 0.74);
  backdrop-filter: blur(16px);
  color: #fff;
  font-family: 'Courier New', monospace;
}

.pf-overlay.pf-hidden,
.pf-hidden {
  display: none !important;
}

.pf-gate {
  z-index: 100002;
}

.pf-gate-card {
  width: min(400px, 100%);
  padding: 34px 30px 28px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(160deg, rgba(24, 24, 32, 0.97), rgba(9, 9, 13, 0.98));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7), 0 0 50px rgba(var(--pf-accent-rgb), 0.08);
  text-align: center;
  animation: pf-pop 0.25s ease both;
}

.pf-gate-card.pf-shake {
  animation: pf-shake 0.4s ease;
}

@keyframes pf-pop {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pf-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(3px); }
}

.pf-gate-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  border: 1px solid rgba(var(--pf-accent-rgb), 0.36);
  background: rgba(var(--pf-accent-rgb), 0.08);
  color: var(--pf-accent);
}

.pf-gate-icon svg {
  width: 25px;
  height: 25px;
}

.pf-gate-card h2 {
  font-size: 22px;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.pf-gate-card p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 20px;
  line-height: 1.5;
}

.pf-gate-card p strong {
  color: #fff;
}

.pf-gate-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pf-password-wrap {
  position: relative;
}

.pf-gate-form input {
  width: 100%;
  padding: 13px 44px 13px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-family: 'Courier New', monospace;
  font-size: 15px;
  letter-spacing: 2px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pf-gate-form input:focus {
  border-color: rgba(var(--pf-accent-rgb), 0.7);
  box-shadow: 0 0 0 3px rgba(var(--pf-accent-rgb), 0.12);
}

.pf-eye-btn {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
}

.pf-eye-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.pf-eye-btn svg {
  width: 17px;
  height: 17px;
}

.pf-gate-error {
  min-height: 16px;
  margin-top: 8px;
  font-size: 12px;
  color: #ff7a8a;
}

.pf-gate-cancel {
  margin-top: 14px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font-family: 'Courier New', monospace;
  font-size: 12px;
}

.pf-gate-cancel:hover {
  color: #fff;
}

.pf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(var(--pf-accent-rgb), 0.5);
  background: rgba(var(--pf-accent-rgb), 0.14);
  color: #fff;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.pf-btn:hover {
  background: rgba(var(--pf-accent-rgb), 0.24);
  border-color: rgba(var(--pf-accent-rgb), 0.85);
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(var(--pf-accent-rgb), 0.18);
}

.pf-btn-primary {
  background: var(--pf-accent);
  color: #08080c;
  border-color: transparent;
}

.pf-btn-primary:hover {
  background: var(--pf-accent);
  color: #08080c;
  box-shadow: 0 0 26px rgba(var(--pf-accent-rgb), 0.45);
}

.pf-btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
}

.pf-btn-sm {
  padding: 8px 12px;
  font-size: 12px;
}

.pf-btn-danger {
  border-color: rgba(255, 96, 112, 0.45);
  background: rgba(255, 96, 112, 0.12);
  color: #ffb3bc;
}

.pf-btn-danger:hover {
  background: rgba(255, 96, 112, 0.22);
  box-shadow: 0 0 20px rgba(255, 96, 112, 0.16);
}

.pf-shell {
  width: min(1180px, 100%);
  height: min(820px, 100%);
  display: flex;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(150deg, rgba(19, 19, 26, 0.98), rgba(8, 8, 12, 0.99));
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.72);
  animation: pf-pop 0.28s ease both;
}

.pf-sidebar {
  width: 236px;
  flex: 0 0 236px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.018);
}

.pf-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 6px;
}

.pf-brand-logo {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(var(--pf-accent-rgb), 0.35);
  background: rgba(var(--pf-accent-rgb), 0.1);
  color: var(--pf-accent);
  font-size: 18px;
}

.pf-brand-logo svg {
  width: 20px;
  height: 20px;
}

.pf-brand strong {
  display: block;
  font-size: 14px;
  letter-spacing: 0.6px;
}

.pf-brand span {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.pf-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pf-nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
  font-family: 'Courier New', monospace;
  font-size: 13px;
  text-align: left;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.pf-nav-btn svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.pf-nav-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.pf-nav-btn.is-active {
  color: #fff;
  border-color: rgba(var(--pf-accent-rgb), 0.28);
  background: rgba(var(--pf-accent-rgb), 0.1);
}

.pf-nav-btn.is-active svg {
  color: var(--pf-accent);
}

.pf-sidebar-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pf-save-state {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 4px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.42);
}

.pf-save-state::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #47d18a;
  box-shadow: 0 0 8px rgba(71, 209, 138, 0.6);
}

.pf-save-state.is-saving::before {
  background: #f1c75b;
  box-shadow: 0 0 8px rgba(241, 199, 91, 0.6);
}

.pf-save-state.is-error::before {
  background: #ff606f;
  box-shadow: 0 0 8px rgba(255, 96, 111, 0.6);
}

.pf-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.pf-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pf-topbar h1 {
  font-size: 20px;
  letter-spacing: 0.6px;
}

.pf-topbar p {
  margin-top: 3px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.42);
}

.pf-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pf-icon-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  font-size: 19px;
  line-height: 1;
}

.pf-icon-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.pf-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px 26px 40px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.pf-content::-webkit-scrollbar {
  width: 8px;
}

.pf-content::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
}

.pf-panel {
  display: none;
  animation: pf-fade 0.2s ease both;
}

.pf-panel.is-active {
  display: block;
}

@keyframes pf-fade {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.pf-section {
  margin-bottom: 26px;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.pf-section:last-child {
  margin-bottom: 0;
}

.pf-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.pf-section-head h3 {
  font-size: 14px;
  letter-spacing: 0.5px;
}

.pf-section-head p {
  margin-top: 3px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
}

.pf-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.pf-field + .pf-field {
  margin-top: 14px;
}

.pf-field > label,
.pf-label {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.pf-field input[type="text"],
.pf-field input[type="url"],
.pf-field input[type="password"],
.pf-field input[type="number"],
.pf-field textarea,
.pf-field select,
.pf-link-row input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.pf-field textarea {
  min-height: 84px;
  resize: vertical;
  line-height: 1.5;
}

#pf-lrc {
  font-family: 'Courier New', monospace;
  font-size: 12px;
}

.pf-field input:focus,
.pf-field textarea:focus,
.pf-field select:focus,
.pf-link-row input:focus {
  border-color: rgba(var(--pf-accent-rgb), 0.65);
  box-shadow: 0 0 0 3px rgba(var(--pf-accent-rgb), 0.1);
}

.pf-field input::placeholder,
.pf-field textarea::placeholder,
.pf-link-row input::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.pf-field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.45) 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.45) 50%, transparent 50%);
  background-position: calc(100% - 16px) 17px, calc(100% - 11px) 17px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.pf-hint {
  font-size: 11px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.36);
}

.pf-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pf-row + .pf-field {
  margin-top: 14px;
}

.pf-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.pf-toggle:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.pf-toggle:first-of-type {
  padding-top: 0;
}

.pf-toggle-text strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.pf-toggle-text span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.37);
}

.pf-switch {
  position: relative;
  flex: 0 0 auto;
  width: 42px;
  height: 24px;
}

.pf-switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}

.pf-switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.pf-switch span::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease, background 0.2s ease;
}

.pf-switch input:checked + span {
  border-color: rgba(var(--pf-accent-rgb), 0.6);
  background: var(--pf-accent);
}

.pf-switch input:checked + span::after {
  transform: translateX(18px);
  background: #08080c;
}

.pf-avatar-editor {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.pf-avatar-preview {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(var(--pf-accent-rgb), 0.45);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 22px rgba(var(--pf-accent-rgb), 0.16);
}

.pf-avatar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pf-file-btn {
  position: relative;
  overflow: hidden;
}

.pf-file-btn input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.pf-color-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pf-color-row input[type="color"] {
  width: 44px;
  height: 38px;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
}

.pf-color-row input[type="text"] {
  flex: 1;
}

.pf-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.pf-swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  padding: 0;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.pf-swatch:hover {
  transform: scale(1.12);
  border-color: #fff;
}

.pf-swatch.is-active {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(var(--pf-accent-rgb), 0.25);
}

.pf-range-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pf-range-row input[type="range"] {
  flex: 1;
  accent-color: var(--pf-accent);
}

.pf-range-value {
  flex: 0 0 auto;
  min-width: 42px;
  padding: 4px 8px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.25);
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
}

.pf-link-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pf-link-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr) 36px;
  gap: 8px;
  align-items: center;
}

.pf-link-row .pf-icon-btn {
  width: 36px;
  height: 36px;
  font-size: 15px;
}

.pf-empty {
  padding: 18px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}

.pf-notice {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(var(--pf-accent-rgb), 0.22);
  background: rgba(var(--pf-accent-rgb), 0.06);
  font-size: 11px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
}

.pf-toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translate(-50%, 16px);
  z-index: 100003;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid rgba(var(--pf-accent-rgb), 0.45);
  background: rgba(10, 10, 14, 0.96);
  color: #fff;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.pf-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.pf-preview-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100001;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid rgba(var(--pf-accent-rgb), 0.55);
  background: rgba(8, 8, 12, 0.9);
  color: #fff;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  letter-spacing: 0.4px;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 30px rgba(var(--pf-accent-rgb), 0.18);
}

.pf-preview-bar:hover {
  border-color: rgba(var(--pf-accent-rgb), 0.95);
  box-shadow: 0 0 40px rgba(var(--pf-accent-rgb), 0.3);
}

.pf-preview-bar svg {
  width: 15px;
  height: 15px;
}

@media (max-width: 820px) {
  .pf-overlay {
    padding: 0;
  }

  .pf-shell {
    height: 100%;
    width: 100%;
    border-radius: 0;
    border: 0;
    flex-direction: column;
  }

  .pf-sidebar {
    width: 100%;
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 12px 12px 10px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .pf-sidebar::-webkit-scrollbar {
    display: none;
  }

  .pf-brand {
    flex: 0 0 auto;
    padding: 0;
  }

  .pf-brand div:last-child {
    display: none;
  }

  .pf-nav {
    flex-direction: row;
    gap: 5px;
    flex: 1;
  }

  .pf-nav-btn {
    flex: 0 0 auto;
    padding: 9px 11px;
    white-space: nowrap;
  }

  .pf-nav-btn svg {
    width: 15px;
    height: 15px;
  }

  .pf-sidebar-footer {
    display: none;
  }

  .pf-topbar {
    padding: 14px 16px;
  }

  .pf-topbar h1 {
    font-size: 17px;
  }

  .pf-topbar p {
    display: none;
  }

  .pf-content {
    padding: 16px 14px 40px;
  }

  .pf-section {
    padding: 15px;
  }

  .pf-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .pf-link-row {
    grid-template-columns: 1fr 36px;
    grid-template-areas:
      "label remove"
      "url url";
  }

  .pf-link-row input[data-link="label"] {
    grid-area: label;
  }

  .pf-link-row input[data-link="url"] {
    grid-area: url;
  }

  .pf-link-row .pf-icon-btn {
    grid-area: remove;
  }

  .pf-gate-card {
    padding: 28px 22px 22px;
  }

  .pf-manage-btn {
    top: 12px;
    right: 12px;
    padding: 8px 12px;
    font-size: 12px;
  }
}
