﻿:root {
  --profile-bg: #101923;
  --profile-surface: rgba(23, 28, 35, 0.94);
  --profile-border: rgba(242, 231, 214, 0.12);
  --profile-text: #f5e9d7;
  --profile-muted: #c1b4a4;
  --profile-accent: var(--brand-orange);
  --profile-shadow: 0 22px 46px rgba(0, 0, 0, 0.28);
}

body.profile-page {
  background:
    radial-gradient(circle at 16% 8%, rgba(242, 231, 214, 0.12), transparent 22rem),
    radial-gradient(circle at 84% 14%, rgba(47, 158, 163, 0.14), transparent 26rem),
    linear-gradient(180deg, #030508 0%, #071014 54%, #05070a 100%);
  color: var(--profile-text);
}

.profile-shell {
  width: min(1240px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 104px 0 52px;
  display: grid;
  gap: 18px;
}

.profile-hero,
.profile-panel,
.profile-empty-card,
.profile-order-card,
.profile-registration-card {
  border: 1px solid var(--profile-border);
  background: var(--profile-surface);
  box-shadow: var(--profile-shadow);
  backdrop-filter: blur(10px);
}

.profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(260px, 0.82fr);
  gap: 22px;
  padding: clamp(20px, 3vw, 30px);
  border-radius: 8px;
}

.profile-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(214, 109, 36, 0.14);
  color: var(--brand-sand);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--profile-accent);
}

.profile-hero h1 {
  margin: 18px 0 12px;
  max-width: 11ch;
  font-size: clamp(2.2rem, 4.4vw, 3.9rem);
  line-height: 1;
}

.profile-hero p,
.profile-photo-copy p,
.profile-photo-meta,
.profile-order-card p,
.profile-registration-card p,
.profile-empty-card p {
  color: var(--profile-muted);
}

.profile-hero-meta {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
}

.profile-hero-meta strong {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.profile-hero-meta a {
  color: var(--brand-sand);
  text-decoration: none;
  font-weight: 700;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  gap: 22px;
}

.profile-panel {
  border-radius: 8px;
  padding: clamp(16px, 2.2vw, 22px);
}

.profile-panel-side {
  display: grid;
  gap: 18px;
  align-content: start;
}

.profile-photo-section {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-avatar-shell {
  width: 128px;
  height: 128px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top, rgba(214, 109, 36, 0.32), transparent 48%),
    linear-gradient(135deg, #172033 0%, #0f1725 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.12);
}

.profile-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.profile-avatar-image.is-visible {
  display: block;
}

.profile-avatar-fallback {
  color: white;
  font-size: 44px;
  font-weight: 800;
}

.profile-photo-copy h2 {
  margin: 0 0 8px;
}

.profile-photo-actions,
.profile-order-items {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.profile-primary-button,
.profile-secondary-button,
.profile-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 16px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

.profile-primary-button,
.profile-action-button {
  background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-rust) 100%);
  color: #151515;
  border-radius: 999px;
}

.profile-secondary-button {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--profile-text);
  border-radius: 999px;
}

.profile-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.profile-security-section {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-security-copy {
  margin: 10px 0 0;
  color: var(--profile-muted);
}

.profile-form-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.profile-field {
  display: grid;
  gap: 8px;
}

.profile-field span {
  color: #dbe3ef;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-field input,
.profile-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--profile-text);
  font: inherit;
}

.profile-inline-message {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.profile-activity-section {
  display: grid;
  gap: 14px;
}

.profile-section-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
}

.profile-section-head h2 {
  margin: 0;
}

.profile-activity-list {
  display: grid;
  gap: 12px;
}

.profile-order-card,
.profile-registration-card,
.profile-empty-card {
  padding: 16px;
  border-radius: 18px;
}

.profile-order-card header,
.profile-registration-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.profile-order-card h3,
.profile-registration-card h3 {
  margin: 0 0 6px;
}

.profile-order-items span,
.profile-registration-card span {
  color: var(--brand-sand);
  font-size: 0.86rem;
  font-weight: 700;
}

@media (max-width: 980px) {
  .profile-hero,
  .profile-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .profile-shell {
    width: min(100vw - 20px, 100%);
    padding-top: 96px;
  }

  .profile-photo-section,
  .profile-form-columns {
    grid-template-columns: 1fr;
  }

  .profile-section-head,
  .profile-order-card header,
  .profile-registration-card header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Perfil público do rider, inspirado em atividade real */
.profile-rider-meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.profile-rider-meta span{padding:7px 10px;border:1px solid rgba(255,255,255,.14);border-radius:999px;background:rgba(3,5,8,.45);font-size:.72rem;font-weight:850}
.profile-overview-side .profile-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-overview-actions button.is-following{border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.07);color:var(--profile-text)}
.profile-tabs{position:sticky;top:88px;z-index:30;display:flex;gap:5px;max-width:100%;padding:6px;border:1px solid var(--profile-border);border-radius:14px;background:rgba(8,13,16,.94);overflow-x:auto;backdrop-filter:blur(18px)}.profile-tabs button{flex:1 0 auto;min-height:40px;padding:0 15px;border:0;border-radius:9px;background:transparent;color:var(--profile-muted);font:inherit;font-size:.75rem;font-weight:900;cursor:pointer}.profile-tabs button.is-active{background:var(--brand-sand);color:#111}.profile-tab-panel[hidden]{display:none!important}
.profile-personal-map{width:100%;height:min(620px,68vh);min-height:420px;margin-top:18px;border-radius:14px;overflow:hidden;background:#071014}.profile-personal-map .leaflet-popup-content-wrapper,.profile-personal-map .leaflet-popup-tip{background:#10181c;color:#fff}.profile-personal-map .leaflet-popup-content a{color:#f5d7b5;font-weight:800}
.profile-visual-stats{display:grid;gap:28px;margin-top:22px}.profile-stats-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.profile-stats-summary article{display:grid;gap:5px;padding:20px;border:1px solid var(--profile-border);border-radius:16px;background:rgba(255,255,255,.035)}.profile-stats-summary strong{font-size:clamp(1.7rem,4vw,2.8rem)}.profile-stats-summary span{color:var(--profile-muted);font-size:.75rem;font-weight:800;text-transform:uppercase}.profile-sport-bars{display:grid;gap:16px}.profile-sport-bars>div{display:grid;gap:8px}.profile-sport-bars header{display:flex;justify-content:space-between;gap:20px}.profile-sport-bars header span{color:var(--profile-muted);font-size:.75rem}.profile-sport-bars i{height:9px;overflow:hidden;border-radius:999px;background:rgba(255,255,255,.08)}.profile-sport-bars b{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--brand-orange),var(--brand-sand))}
.profile-badge-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:20px}.profile-badge-card{display:grid;grid-template-columns:48px 1fr;gap:13px;padding:18px;border:1px solid var(--profile-border);border-radius:16px;background:linear-gradient(145deg,rgba(214,109,36,.12),rgba(255,255,255,.025))}.profile-badge-card>span{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:var(--brand-sand);color:#111}.profile-badge-card strong{font-size:.9rem}.profile-badge-card p{margin:5px 0;color:var(--profile-muted);font-size:.78rem;line-height:1.4}.profile-badge-card small{color:var(--brand-sand);font-size:.65rem}
.profile-badge-card>div{display:grid;align-content:start;gap:4px;min-width:0}.profile-badge-card>div>small{text-transform:uppercase;letter-spacing:.08em}.profile-badge-card em{color:var(--profile-muted);font-size:.65rem;font-style:normal}.profile-badge-card i{display:block;height:5px;margin-top:5px;overflow:hidden;border-radius:999px;background:rgba(255,255,255,.08)}.profile-badge-card i b{display:block;height:100%;background:var(--brand-sand)}.profile-badge-card.is-locked{background:rgba(255,255,255,.018);opacity:.72}.profile-badge-card.is-locked>span{background:rgba(255,255,255,.08);color:var(--profile-muted);filter:grayscale(1)}
.profile-network-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:30px}.profile-network-grid>div{min-width:0}.profile-network-grid .profile-section-head{margin-bottom:15px}.profile-network-grid .profile-follower-card{color:inherit;text-decoration:none}
@media(max-width:800px){.profile-tabs{top:76px}.profile-stats-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-badge-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-network-grid{grid-template-columns:1fr}}
@media(max-width:520px){.profile-shell{width:100%;padding-inline:10px}.profile-overview-side .profile-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-tabs{margin-inline:-4px}.profile-badge-grid{grid-template-columns:1fr}.profile-personal-map{height:58vh;min-height:340px}.profile-overview-actions>*{flex:1 1 calc(50% - 8px)}}

.profile-overview-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(290px, 0.72fr);
  gap: clamp(20px, 3.5vw, 42px);
  min-height: clamp(390px, 48svh, 560px);
  align-items: end;
  padding: clamp(24px, 4.4vw, 52px);
  border-radius: 8px;
  border: 1px solid var(--profile-border);
  background:
    linear-gradient(90deg, rgba(3, 5, 8, 0.9), rgba(3, 5, 8, 0.46)),
    url("../assets/images/cover-skate.png") center/cover;
  box-shadow: var(--profile-shadow);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.profile-overview-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 80% 22%, rgba(214, 109, 36, 0.22), transparent 22%),
    linear-gradient(180deg, transparent, rgba(3, 5, 8, 0.78));
}

.profile-overview-head {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.profile-overview-avatar {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  border: 2px solid rgba(245, 233, 215, 0.42);
  box-shadow: 0 0 0 12px rgba(214, 109, 36, 0.08), 0 28px 58px rgba(0, 0, 0, 0.38);
}

.profile-overview-copy h1 {
  margin: 18px 0 10px;
  max-width: 12ch;
  font-family: var(--ui-font-display);
  font-size: clamp(2.7rem, 5.7vw, 5.9rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.profile-overview-copy p {
  margin: 0;
  color: var(--profile-muted);
  max-width: 58ch;
  line-height: 1.75;
}

.profile-overview-side {
  display: grid;
  gap: 16px;
  align-content: start;
}

.profile-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.profile-stat-card,
.profile-publication-card,
.profile-follower-card,
.profile-message-card {
  border: 1px solid var(--profile-border);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
}

.profile-stat-card {
  padding: 16px;
}

.profile-stat-card strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 8px;
}

.profile-stat-card span {
  color: var(--profile-muted);
  font-size: 0.92rem;
}

.profile-xp-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(214, 109, 36, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(214, 109, 36, 0.14), rgba(47, 158, 163, 0.08)),
    rgba(255, 255, 255, 0.04);
}

.profile-xp-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.profile-xp-head span,
.profile-xp-head strong {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--brand-sand);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-xp-card h2 {
  margin: 0;
  font-family: var(--ui-font-display);
  font-size: 1.55rem;
  text-transform: uppercase;
}

.profile-xp-bar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
}

.profile-xp-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-orange), #ffd166, #2fa3a3);
  transition: width 0.35s ease;
}

.profile-xp-card p {
  margin: 0;
  color: var(--profile-muted);
  font-size: 0.92rem;
}

.profile-overview-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.profile-overview-role {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.profile-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(310px, 0.92fr);
  gap: 18px;
}

.profile-publication-list,
.profile-follower-list,
.profile-message-list {
  display: grid;
  gap: 14px;
}

.profile-publication-card {
  padding: 18px;
  display: grid;
  gap: 12px;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.profile-publication-card:hover,
.profile-follower-card:hover,
.profile-message-card:hover {
  transform: translateY(-3px);
  border-color: rgba(214, 109, 36, 0.28);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.28);
}

.profile-publication-top,
.profile-publication-footer,
.profile-message-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.profile-publication-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(214, 109, 36, 0.14);
  color: var(--brand-sand);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-publication-card h3 {
  margin: 0;
}

.profile-publication-card p {
  margin: 0;
  color: var(--profile-muted);
  line-height: 1.7;
}
.profile-publication-card p{display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.5}.profile-publication-card{gap:10px}.profile-hero-avatar img,.profile-mini-avatar img{object-fit:cover}

.profile-publication-footer span {
  color: var(--brand-sand);
  font-size: 0.9rem;
}

.profile-follower-card {
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.profile-follower-copy {
  display: grid;
  gap: 4px;
}

.profile-follower-copy strong {
  font-size: 0.98rem;
}

.profile-follower-copy span,
.profile-message-card p {
  color: var(--profile-muted);
}

.profile-mini-avatar {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(214, 109, 36, 0.24), transparent 48%),
    linear-gradient(135deg, #172033 0%, #0f1725 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-mini-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-mini-avatar-fallback {
  color: #fff;
  font-weight: 800;
}

.profile-message-form {
  display: grid;
  gap: 14px;
}

.profile-message-card {
  padding: 16px;
  display: grid;
  gap: 10px;
}

.profile-message-card.is-sent {
  border-color: rgba(214, 109, 36, 0.18);
}

.profile-message-card.is-received {
  border-color: rgba(47, 158, 163, 0.2);
}

.profile-message-head strong {
  font-size: 0.95rem;
}

.profile-message-head small,
.profile-publication-top small {
  color: var(--profile-muted);
}

@media (max-width: 980px) {
  .profile-overview-hero,
  .profile-overview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .profile-shell {
    width: min(100% - 18px, 560px);
    padding-top: 88px;
    padding-bottom: calc(128px + env(safe-area-inset-bottom));
    gap: 18px;
  }

  .profile-overview-head {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .profile-overview-avatar {
    width: 104px;
    height: 104px;
  }

  .profile-stat-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .profile-shell {
    width: min(100% - 12px, 380px);
    padding-top: 76px;
    gap: 14px;
  }

  .profile-overview-hero,
  .profile-panel {
    padding: 15px;
  }

  .profile-overview-copy h1,
  .profile-hero h1 {
    font-size: 2.05rem;
    line-height: 0.98;
  }
}
