.profile-page [hidden],
.admin-panel [hidden],
.public-profile-page [hidden] {
  display: none !important;
}

.standalone-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #485b60;
  font-size: 13px;
  font-weight: 600;
}

.standalone-nav a:hover,
.public-profile-create:hover {
  color: #4d9d7e;
}

.profile-page {
  max-width: 900px;
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: 90px;
}

.profile-intro {
  max-width: 670px;
  margin: 0 auto 32px;
  text-align: center;
}

.profile-intro h1 {
  margin: 17px 0;
  font-family: var(--display);
  font-size: clamp(38px, 7vw, 64px);
  line-height: 1.05;
  letter-spacing: -3px;
}

.profile-intro h1 span {
  color: #4d9d7e;
}

.profile-intro p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.profile-panel {
  padding: clamp(22px, 5vw, 42px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 16px 50px rgba(16, 45, 54, 0.07);
}

.profile-panel-heading,
.profile-links-heading,
.admin-request-heading,
.admin-request-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.profile-panel-heading h2 {
  margin: 8px 0 0;
  font-family: var(--display);
  font-size: clamp(24px, 4vw, 32px);
  letter-spacing: -1px;
}

.beta-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  color: #286249;
  background: #e1f3e9;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.profile-security-note {
  margin: 20px 0 28px;
  padding: 13px 15px;
  color: #36564c;
  background: #edf6f0;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.6;
}

.profile-builder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(270px, 0.9fr);
  align-items: start;
  gap: 26px;
}

.profile-live-preview {
  position: sticky;
  top: 104px;
  min-width: 0;
  padding: 20px;
  background: #f1f6f2;
  border: 1px solid #dfe9e2;
  border-radius: 16px;
}

.profile-preview-heading {
  margin-bottom: 17px;
}

.profile-preview-heading h3 {
  margin: 8px 0 5px;
  font-family: var(--display);
  font-size: 21px;
}

.profile-preview-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.profile-live-preview .public-profile-content {
  padding: 24px 18px 19px;
  border-radius: 17px;
  box-shadow: 0 8px 26px rgba(16, 45, 54, 0.07);
}

.public-profile-content-preview .public-profile-avatar {
  width: 76px;
  height: 76px;
  margin-top: -42px;
}

.public-profile-content-preview .public-profile-cover {
  width: calc(100% + 36px);
  height: 90px;
  margin: -24px -18px 0;
}

.public-profile-content-preview h1 {
  font-size: 22px;
}

.public-profile-placeholder {
  color: #8b9a94 !important;
}

.public-profile-content-preview .public-profile-links {
  gap: 8px;
  margin-top: 18px;
}

.public-profile-content-preview .public-profile-link {
  min-height: 44px;
}

.profile-social-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.public-profile-link {
  gap: 10px;
}

.profile-social-icon-whatsapp {
  color: #63d68a;
}

.profile-social-icon-instagram {
  color: #f2a1c2;
}

.profile-social-icon-facebook,
.profile-social-icon-linkedin {
  color: #93c7ff;
}

.profile-social-icon-youtube {
  color: #ff7777;
}

.profile-social-icon-tiktok,
.profile-social-icon-x {
  color: #fff;
}

.profile-social-icon-telegram {
  color: #7dcfff;
}

.profile-social-icon-website {
  color: var(--mint);
}

.profile-social-icon-maps {
  color: #f6c56c;
}

.profile-social-icon-catalog,
.profile-social-icon-booking {
  color: #c9efd8;
}

.profile-social-icon-email,
.profile-social-icon-phone {
  color: #d6e8dc;
}

.profile-social-icon-spotify {
  color: #71e09a;
}

.profile-feedback {
  margin: 16px 0;
  padding: 13px 15px;
  color: var(--ink);
  background: #eef2ef;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.profile-feedback[data-type="success"] {
  color: #22583e;
  background: #e7f5eb;
}

.profile-feedback[data-type="info"] {
  color: #435b54;
  background: #eef2ef;
}

.profile-feedback[data-type="error"] {
  color: #8b302b;
  background: #fff0ed;
}

.profile-field input:disabled,
.profile-field textarea:disabled,
.profile-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.profile-button:disabled:hover {
  transform: none;
}

.email-retry {
  display: flex;
  margin-top: 10px;
}

.profile-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.profile-field input,
.profile-field textarea {
  width: 100%;
  min-height: 45px;
  padding: 11px 13px;
  color: var(--ink);
  background: #fbfcfa;
  border: 1px solid #d8e3dc;
  border-radius: 9px;
  outline: none;
  font: 500 13px var(--sans);
}

.profile-field input[type="file"] {
  min-height: 48px;
  padding: 8px;
  font-size: 11px;
}

.profile-field input[type="file"]::file-selector-button {
  margin-right: 10px;
  padding: 8px 11px;
  color: var(--ink);
  background: #e8f1eb;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font: 700 11px var(--sans);
}

.profile-field textarea {
  min-height: 105px;
  resize: vertical;
}

.profile-field input:focus,
.profile-field textarea:focus {
  border-color: #62a987;
  box-shadow: 0 0 0 3px rgba(98, 169, 135, 0.14);
}

.profile-field small,
.profile-links-heading p {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.55;
}

.slug-preview {
  overflow-wrap: anywhere;
}

.profile-links-heading {
  align-items: flex-start;
  margin: 28px 0 16px;
}

.profile-links-heading h3 {
  margin: 0 0 5px;
  font-family: var(--display);
  font-size: 18px;
}

.profile-links-heading p {
  margin-bottom: 0;
}

.profile-link-fields {
  display: grid;
  gap: 10px;
}

.profile-link-row {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr 1fr 35px;
  align-items: start;
  gap: 10px;
  padding: 15px 12px 0;
  background: #f7f9f6;
  border: 1px solid #e4ebe6;
  border-radius: 11px;
}

.profile-link-icon-control {
  display: flex;
  min-height: 45px;
  align-items: center;
  gap: 9px;
  padding: 5px 9px;
  background: #fbfcfa;
  border: 1px solid #d8e3dc;
  border-radius: 9px;
}

.profile-link-icon-control select {
  width: 100%;
  min-width: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: none;
  font: 500 12px var(--sans);
}

.profile-link-icon-preview {
  display: inline-flex;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #edf3ef;
}

.remove-profile-link {
  width: 30px;
  height: 30px;
  margin-top: 23px;
  color: #667873;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
}

.remove-profile-link:hover {
  color: #963e38;
  background: #fff0ed;
}

.profile-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font: 700 12px var(--sans);
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.profile-button:hover {
  transform: translateY(-1px);
}

.profile-button-primary {
  color: var(--white);
  background: var(--ink-deep);
}

.profile-button-primary:hover {
  background: #28515a;
}

.profile-button-secondary {
  color: var(--ink);
  background: var(--white);
  border-color: #d2e1d8;
}

.profile-button-secondary:hover {
  background: #edf6f0;
}

.profile-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 22px;
  font-size: 14px;
}

.profile-status {
  margin-top: 14px;
}

.profile-pending-label {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 700;
}

.admin-login {
  display: flex;
  align-items: flex-end;
  gap: 14px;
}

.admin-login .profile-field {
  flex: 1;
  margin-bottom: 0;
}

.admin-requests {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.admin-request-card {
  padding: 20px;
  background: #fbfcfa;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.admin-request-heading h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 20px;
}

.admin-request-slug,
.admin-request-email {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.admin-public-profile-link {
  display: inline-flex;
  margin-top: 9px;
  color: #28714e;
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.admin-public-profile-link[aria-disabled="true"] {
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
}

.admin-preview {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.admin-preview summary {
  padding: 14px 0;
  color: #39775e;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.admin-preview .public-profile-content {
  max-width: 340px;
  margin: 0 auto 14px;
}

.admin-request-actions {
  justify-content: flex-start;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.admin-empty {
  padding: 18px;
  color: var(--muted);
  background: #f7f9f6;
  border-radius: 10px;
  font-size: 13px;
  text-align: center;
}

.profile-footer .footer-inner {
  flex-wrap: wrap;
}

.public-profile-page {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 18px 24px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(137, 224, 188, 0.24), transparent 50%),
    #f0f5f1;
}

.public-profile-brand,
.public-profile-create {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #526763;
  font-size: 12px;
  font-weight: 700;
}

.public-profile-brand {
  margin-bottom: 20px;
}

.public-profile-brand img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
}

.public-feedback {
  width: min(100%, 480px);
  text-align: center;
}

.public-profile-card {
  width: min(100%, 480px);
}

.public-profile-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 26px 24px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(210, 225, 216, 0.8);
  border-radius: 24px;
  box-shadow: 0 18px 60px rgba(16, 45, 54, 0.1);
  overflow: hidden;
  text-align: center;
}

.public-profile-cover {
  width: calc(100% + 52px);
  height: 112px;
  flex: 0 0 auto;
  margin: -32px -26px 0;
  overflow: hidden;
  background: linear-gradient(135deg, #17434a, #63a787 58%, #bcebd3);
}

.public-profile-cover-empty {
  background:
    radial-gradient(ellipse at 75% 20%, rgba(188, 235, 211, 0.45), transparent 42%),
    linear-gradient(135deg, #17434a, #39775e);
}

.public-profile-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.public-profile-avatar {
  position: relative;
  width: 96px;
  height: 96px;
  margin: -50px 0 17px;
  object-fit: cover;
  border: 4px solid #e4f3e9;
  border-radius: 50%;
  background: #fff;
}

.public-profile-initials {
  display: grid;
  place-items: center;
  color: #286249;
  background: #d8f0e1;
  font-family: var(--display);
  font-size: 38px;
  font-weight: 800;
}

.public-profile-content h1 {
  margin: 0;
  font-family: var(--display);
  font-size: 27px;
  letter-spacing: -1px;
}

.public-profile-tagline {
  margin: 8px 0 0;
  color: #4d9d7e;
  font-size: 14px;
  font-weight: 700;
}

.public-profile-bio {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.public-profile-links {
  display: grid;
  width: 100%;
  gap: 11px;
  margin-top: 24px;
}

.public-profile-link {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  color: var(--white);
  background: var(--ink-deep);
  border: 1px solid var(--ink-deep);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
  transition: transform 160ms ease, background 160ms ease;
}

.public-profile-link:hover {
  background: #28515a;
  transform: translateY(-1px);
}

.public-profile-signature {
  margin-top: 24px;
  color: #71827d;
  font-size: 10px;
  font-weight: 700;
}

.public-profile-create {
  margin-top: 18px;
}

.public-profile-create span {
  color: #4d9d7e;
  font-size: 9px;
}

@media (max-width: 640px) {
  .standalone-nav {
    gap: 12px;
    font-size: 11px;
  }

  .profile-page {
    padding-top: 45px;
  }

  .profile-builder-grid {
    grid-template-columns: 1fr;
  }

  .profile-live-preview {
    position: static;
    grid-row: 1;
  }

  .profile-intro h1 {
    letter-spacing: -1.8px;
  }

  .profile-form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .profile-link-row {
    grid-template-columns: 1fr 35px;
  }

  .profile-link-row .profile-field:first-child {
    grid-column: 1;
    grid-row: 1;
  }

  .profile-link-row .profile-field:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }

  .profile-link-row .profile-link-icon-field {
    grid-column: 1;
    grid-row: 3;
  }

  .remove-profile-link {
    grid-column: 2;
    grid-row: 1 / span 3;
  }

  .profile-links-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-login {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-request-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-request-actions .profile-button {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .standalone-nav {
    gap: 8px;
    font-size: 10px;
  }

  .profile-panel {
    padding: 20px 16px;
  }
}


/* --- Sección de datos de transferencia en crear perfil --- */
.profile-bank-section {
  margin: 28px 0;
  padding: 20px;
  background: #f7fbf8;
  border: 1px solid #d8e8dc;
  border-radius: 14px;
}

.profile-bank-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  color: #17434a;
  user-select: none;
}

.profile-bank-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #2b7458;
  cursor: pointer;
}

.profile-bank-fields {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed #d0e2d5;
}

/* --- Botón y tarjeta de datos de transferencia en perfil público --- */
.public-profile-bank-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  transition: all 200ms ease;
}

.public-profile-bank-toggle {
  width: 100%;
  cursor: pointer;
  position: relative;
  justify-content: space-between;
  text-decoration: none;
  font-family: inherit;
  box-sizing: border-box;
}

.public-profile-bank-toggle-icon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.profile-social-icon-bank {
  color: #71e09a;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.public-profile-bank-toggle-arrow {
  font-size: 10px;
  opacity: 0.8;
  transition: transform 200ms ease;
  flex: 0 0 auto;
}

.public-profile-bank-card.is-open .public-profile-bank-toggle {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.public-profile-bank-card.is-open .public-profile-bank-toggle-arrow {
  transform: rotate(180deg);
}

.public-profile-bank-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fdfefe;
  border: 1.5px solid var(--ink-deep);
  border-top: none;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 8px 24px rgba(16, 45, 54, 0.08);
  animation: fadeInBank 200ms ease;
  box-sizing: border-box;
}

@keyframes fadeInBank {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.public-bank-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  border-bottom: 1px solid #f0f4f1;
  padding-bottom: 8px;
}

.public-bank-row:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.public-bank-label {
  color: #637772;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.public-bank-value {
  color: #17434a;
  font-weight: 700;
  text-align: right;
  word-break: break-word;
}

.public-bank-copy-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
  padding: 11px 16px;
  background: #17434a;
  color: #fff;
  border: 0;
  border-radius: 9px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.public-bank-copy-all:hover {
  background: #255d67;
  transform: translateY(-1px);
}

.public-bank-copy-all.copied {
  background: #2b7458;
}
