:root {
  --bg-color: #0b0813;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --text-tertiary: rgba(255, 255, 255, 0.4);
  --glass-bg: rgba(255, 255, 255, 0.07);
  --glass-bg-hover: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-hover: rgba(255, 255, 255, 0.25);
  --accent-glow: rgba(139, 0, 0, 0.35);
  /* Gothic deep red glow */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-color);
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-x: hidden;
  position: relative;
  padding: 40px 16px;
}


/* Degradado: foto visible solo arriba, negro desde la mitad */
.bg-bottom-fade {
  position: fixed;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, transparent 30%, #0b0813 58%, #0b0813 100%);
  z-index: -2;
  pointer-events: none;
}


/* Overlay negro que sube al hacer scroll */
.bg-scroll-overlay {
  position: fixed;
  inset: 0;
  background: #0b0813;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
  animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header */
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 24px;
}

.avatar-container {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  padding: 3px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.profile-name {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile-name span {
  font-size: 20px;
}

.profile-username {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.profile-bio {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 16px;
  max-width: 320px;
}

/* Online Status */
.online-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 12px;
}

.online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e, 0 0 12px rgba(34, 197, 94, 0.5);
  animation: pulse-dot 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 6px #22c55e, 0 0 12px rgba(34, 197, 94, 0.5);
  }

  50% {
    opacity: 0.6;
    box-shadow: 0 0 3px #22c55e, 0 0 6px rgba(34, 197, 94, 0.3);
  }
}

.online-text {
  color: #22c55e;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.online-divider {
  color: rgba(255, 255, 255, 0.25);
}

.online-reply {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
}

.badges {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.badge {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

/* Social Row */
.social-row {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
}

.social-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.social-icon-btn:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
}

/* Links Container & Buttons */
.links-container {
  width: 100%;
  margin-bottom: 36px;
}

.btn-glass {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  height: 160px;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.btn-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.82) 0%,
      rgba(0, 0, 0, 0.35) 55%,
      rgba(0, 0, 0, 0.1) 100%);
  pointer-events: none;
}

.btn-bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: none;
  pointer-events: none;
}

.btn-text-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.btn-exclusive {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.btn-glass:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-label-main {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 3px;
  letter-spacing: -0.2px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  gap: 14px;
}

.of-logo-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  overflow: hidden;
}

.of-logo-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  /* recolorize: remove blue, shift to white/pink palette */
  filter: brightness(0) invert(1) sepia(1) saturate(0.3) hue-rotate(300deg);
}

.btn-label-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 400;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

/* Media Section */
.media-section {
  width: 100%;
  margin-bottom: 36px;
}

.section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.carousel-wrapper {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 10px;
  position: relative;
}

.carousel-wrapper::-webkit-scrollbar {
  display: none;
}


.carousel {
  display: flex;
  gap: 12px;
  scroll-snap-type: x mandatory;
}

.carousel-item {
  flex: 0 0 160px;
  height: 220px;
  border-radius: 16px;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.carousel-item:hover img {
  transform: scale(1.05);
}

/* Signup Section */
.signup-section {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: 40px;
}

.signup-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.signup-form {
  display: flex;
  gap: 8px;
}

.signup-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}

.signup-input:focus {
  border-color: rgba(255, 255, 255, 0.3);
}

.signup-submit {
  background: var(--text-primary);
  color: var(--bg-color);
  border: none;
  border-radius: 12px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.signup-submit:hover {
  opacity: 0.9;
}

/* Footer */
.footer {
  font-size: 11px;
  color: var(--text-tertiary);
  text-align: center;
}