/* --- SIYORO PROFILE PAGE --- */

#profile-view {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: 4500;
  background: var(--bg-main, #FAF9F6);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.profile-header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: var(--bg-main, #FAF9F6);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main, #1F1F1F);
  z-index: 2;
}

.profile-back {
  appearance: none;
  border: 0;
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-main, #1F1F1F);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.profile-header-spacer {
  width: 36px;
}

.profile-main {
  flex: 1;
  padding: 8px 20px 120px;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
}

.profile-hero {
  text-align: center;
  padding: 28px 0 20px;
}

.profile-hero img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent, #2F6F6A);
  box-shadow: 0 0 0 4px rgba(200, 74, 58, 0.12);
  margin-bottom: 12px;
}

.profile-hero h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.profile-hero p {
  color: var(--text-muted, #5E5E5E);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.profile-since {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent, #2F6F6A);
  background: rgba(47, 111, 106, 0.1);
  padding: 5px 14px;
  border-radius: 999px;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 30px;
}

.profile-stat-card {
  background: var(--bg-card, #fff);
  border-radius: var(--radius-md, 16px);
  box-shadow: var(--shadow-soft, 0 8px 30px rgba(0,0,0,0.04));
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.profile-stat-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary, #C84A3A);
}

.profile-stat-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted, #5E5E5E);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-align: center;
}

.profile-section {
  margin-bottom: 26px;
}

.profile-section h3 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.profile-trips-list {
  background: var(--bg-card, #fff);
  border-radius: var(--radius-md, 16px);
  box-shadow: var(--shadow-soft, 0 8px 30px rgba(0,0,0,0.04));
  overflow: hidden;
}

.profile-trip-item {
  padding: 14px 16px;
}

.profile-trip-item:not(:last-child) {
  border-bottom: 1px solid #f5f5f5;
}

.profile-empty {
  padding: 22px 16px;
  text-align: center;
  color: var(--text-muted, #5E5E5E);
  font-size: 0.85rem;
}

.profile-menu {
  background: var(--bg-card, #fff);
  border-radius: var(--radius-md, 16px);
  box-shadow: var(--shadow-soft, 0 8px 30px rgba(0,0,0,0.04));
  overflow: hidden;
}

.profile-menu-item {
  appearance: none;
  border: 0;
  background: transparent;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main, #1F1F1F);
  cursor: pointer;
  text-align: left;
}

.profile-menu-item:not(:last-child) {
  border-bottom: 1px solid #f5f5f5;
}

.profile-menu-chevron {
  color: var(--text-muted, #5E5E5E);
  font-size: 1.1rem;
}

.profile-logout {
  appearance: none;
  border: 1.5px solid var(--primary, #C84A3A);
  background: transparent;
  color: var(--primary, #C84A3A);
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  width: 100%;
  padding: 14px;
  border-radius: 999px;
  cursor: pointer;
}

.profile-logout:hover {
  background: rgba(200, 74, 58, 0.08);
}

@media (min-width: 768px) {
  .profile-main {
    padding-bottom: 60px;
  }
}

@media (max-width:768px){.site-header .logo img{display:none;}}
