/* =========================================================
   COFLIX — Page profil (cfp-*)
   ========================================================= */

.cfp-page-wrap {
  max-width: 700px;
  margin: 60px auto 80px;
  padding: 0 16px;
}

/* ── Hero ── */
.cfp-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px 28px;
  background: var(--md-card-bg, rgba(255,255,255,0.04));
  border: 1px solid var(--md-border, rgba(255,255,255,0.08));
  border-radius: 16px;
  margin-bottom: 24px;
}

.cfp-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.cfp-avatar-img,
.cfp-avatar-placeholder {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--md-primary, #e50914);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--md-accent, rgba(255,255,255,0.08));
  color: var(--md-text-muted, #aaa);
}

.cfp-avatar-edit-btn {
  position: absolute;
  bottom: 0; right: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--md-primary, #e50914);
  border: 2px solid var(--md-bg, #141414);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.15s;
}
.cfp-avatar-edit-btn:hover { opacity: 0.85; }

.cfp-username {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--md-text-contrast, #fff);
  margin: 0 0 4px;
}
.cfp-email {
  font-size: 0.85rem;
  color: var(--md-text-muted, #aaa);
  margin: 0 0 8px;
}

.cfp-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.cfp-badge--vip {
  background: linear-gradient(135deg, #f5a623, #f76b1c);
  color: #fff;
}

/* ── Sections ── */
.cfp-section {
  background: var(--md-card-bg, rgba(255,255,255,0.04));
  border: 1px solid var(--md-border, rgba(255,255,255,0.08));
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 20px;
}
.cfp-section--danger {
  border-color: rgba(220, 38, 38, 0.3);
}

.cfp-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--md-text-contrast, #fff);
  margin: 0 0 20px;
}
.cfp-section-title--danger {
  color: #ef4444;
}
.cfp-section-title svg {
  flex-shrink: 0;
  opacity: 0.8;
}

.cfp-danger-desc {
  font-size: 0.85rem;
  color: var(--md-text-muted, #aaa);
  margin: 0 0 16px;
  line-height: 1.5;
}

/* ── Form ── */
.cfp-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cfp-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cfp-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--md-text-muted, #aaa);
  letter-spacing: 0.02em;
}

.cfp-input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  background: var(--md-accent, rgba(255,255,255,0.07));
  border: 1px solid var(--md-border, rgba(255,255,255,0.12));
  border-radius: 8px;
  color: var(--md-text-contrast, #fff);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.15s;
}
.cfp-input:focus {
  border-color: var(--md-primary, #e50914);
}
.cfp-input::placeholder {
  color: var(--md-text-muted, #aaa);
  opacity: 0.6;
}

/* ── Buttons ── */
.cfp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 8px;
  border: none;
  background: var(--md-primary, #e50914);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
  align-self: flex-start;
}
.cfp-btn:hover:not(:disabled) { opacity: 0.85; }
.cfp-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.cfp-btn--sm {
  padding: 8px 16px;
  font-size: 0.82rem;
}

.cfp-btn--danger {
  background: #dc2626;
}

/* ── Alert ── */
.cfp-alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  margin-bottom: 14px;
}
.cfp-alert--success {
  background: rgba(34,197,94,0.15);
  border: 1px solid rgba(34,197,94,0.3);
  color: #4ade80;
}
.cfp-alert--error {
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.3);
  color: #f87171;
}

/* ── Avatar options ── */
.cfp-avatar-options {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cfp-avatar-opt {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cfp-avatar-divider {
  text-align: center;
  color: var(--md-text-muted, #aaa);
  font-size: 0.82rem;
  position: relative;
}
.cfp-avatar-divider::before,
.cfp-avatar-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--md-border, rgba(255,255,255,0.1));
}
.cfp-avatar-divider::before { left: 0; }
.cfp-avatar-divider::after  { right: 0; }

.cfp-file-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--md-accent, rgba(255,255,255,0.07));
  border: 1px solid var(--md-border, rgba(255,255,255,0.12));
  border-radius: 8px;
  color: var(--md-text-contrast, #fff);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s;
  align-self: flex-start;
}
.cfp-file-label:hover { background: var(--md-accent-hover, rgba(255,255,255,0.12)); }

.cfp-file-name {
  font-size: 0.8rem;
  color: var(--md-text-muted, #aaa);
}

.cfp-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.cfp-input-row .cfp-input {
  flex: 1;
}

/* ── Responsive ── */
@media (max-width: 500px) {
  .cfp-hero {
    flex-direction: column;
    text-align: center;
    padding: 24px 16px;
  }
  .cfp-hero-info {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}



/* ── Sección VIP ── */
.cfp-section--vip {
  border-left: 3px solid #f5c518;
}
.cfp-section--vip .cfp-section-title {
  color: #f5c518;
}
.cfp-vip-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cfp-vip-row {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.95rem;
}
.cfp-vip-label {
  color: var(--cfp-muted, #888);
  min-width: 160px;
}
.cfp-vip-value {
  color: var(--cfp-text, #fff);
  font-weight: 600;
}
.cfp-vip-countdown {
  margin-top: 8px;
  padding: 14px 16px;
  background: rgba(245,197,24,.08);
  border: 1px solid rgba(245,197,24,.25);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cfp-vip-countdown--urgent {
  background: rgba(255,80,80,.08);
  border-color: rgba(255,80,80,.35);
}
.cfp-vip-days {
  font-size: 2rem;
  font-weight: 800;
  color: #f5c518;
  line-height: 1;
}
.cfp-vip-days--expired {
  font-size: 1.1rem;
  color: #ff5050;
}
.cfp-vip-countdown--urgent .cfp-vip-days {
  color: #ff5050;
}
.cfp-vip-days-label {
  font-size: 0.85rem;
  color: var(--cfp-muted, #888);
  margin-top: 2px;
}
.cfp-vip-progress-wrap {
  background: rgba(255,255,255,.1);
  border-radius: 99px;
  height: 6px;
  overflow: hidden;
  margin-top: 4px;
}
.cfp-vip-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #f5c518, #ff9900);
  border-radius: 99px;
  transition: width .5s ease;
}
.cfp-vip-countdown--urgent .cfp-vip-progress-bar {
  background: linear-gradient(90deg, #ff5050, #ff9900);
}
.cfp-vip-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--cfp-muted, #888);
  margin-top: 2px;
}