/* Single profile page. Tokens come from main.css. */
.sp-page { background: var(--cream); padding: clamp(24px, 4vw, 40px) var(--sm-gutter) clamp(48px, 7vw, 80px); font-family: var(--font-body); color: var(--charcoal); }
.sp-container { max-width: 1060px; margin: 0 auto; }

/* ── Breadcrumb ── */
.sp-breadcrumb {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--muted); margin-bottom: 24px;
}
.sp-breadcrumb a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.sp-breadcrumb a:hover { color: var(--rose); }
.sp-breadcrumb-sep { color: var(--muted-light); }

/* ── Layout ── */
.sp-layout { display: grid; grid-template-columns: 320px 1fr; gap: 28px; align-items: start; }

/* ── Left sidebar ── */
.sp-sidebar {}

/* Photo card */
.sp-photo-card {
    background: var(--white);
    border: 1px solid var(--border-mid);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}
.sp-photo-wrap {
    aspect-ratio: 4/5;
    background: var(--cream-dark);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    position: relative;
}
.sp-photo-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-photo-initials {
    font-family: var(--font-display);
    font-size: 72px; font-weight: 500;
    color: var(--rose-light);
    user-select: none;
}
.sp-photo-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
}

/* Action card */
.sp-action-card {
    background: var(--white);
    border: 1px solid var(--border-mid);
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}
.sp-action-card-title {
    font-size: 12px; font-weight: 500; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--gold);
    margin-bottom: 14px;
    display: flex; align-items: center; gap: 6px;
}
.sp-action-card-title::before { content: ''; display: inline-block; width: 20px; height: 1.5px; background: var(--gold); }

/* Buttons */
.sp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px; border-radius: 8px;
    font-family: var(--font-body); font-size: 14px; font-weight: 500;
    cursor: pointer; border: none; text-decoration: none;
    transition: all 0.2s; width: 100%; margin-bottom: 10px;
}
.sp-btn:last-child { margin-bottom: 0; }
.sp-btn-primary { background: var(--rose); color: white; }
.sp-btn-primary:hover { background: var(--rose-dark); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(230,57,70,0.3); }
.sp-btn-outline { background: transparent; color: var(--brown); border: 1.5px solid var(--border-mid); }
.sp-btn-outline:hover { background: var(--cream); border-color: var(--gold); }
.sp-btn-ghost { background: transparent; color: var(--sm-danger); border: 1px dashed rgba(180, 35, 24, 0.35); font-size: 0.9rem; }
.sp-btn-ghost:hover { background: var(--sm-danger-soft); }
.sp-btn-gold { background: var(--gold); color: var(--brown); }
.sp-btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(212,175,55,0.35); }
.sp-btn-success { background: #2d9e5f; color: white; }
.sp-btn-success:hover { background: #237a49; }
.sp-btn-disabled { background: var(--cream-dark); color: var(--muted-light); cursor: not-allowed; }

/* Mutual badge */
.sp-mutual-badge {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: #e8f7ee; border: 1px solid #a8d5bc;
    border-radius: 10px; padding: 10px 16px;
    font-size: 14px; font-weight: 500; color: #1a6640;
    margin-bottom: 10px;
}

/* Quick stats */
.sp-quick-stats {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    margin-bottom: 20px;
}
.sp-qs {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 12px; padding: 14px 12px;
    text-align: center;
}
.sp-qs-icon { font-size: 20px; margin-bottom: 5px; }
.sp-qs-val { font-size: 15px; font-weight: 500; color: var(--brown); margin-bottom: 2px; }
.sp-qs-lbl { font-size: 11px; color: var(--muted-light); }

/* ── Main content ── */
.sp-main {}
.sp-section-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.sp-section-nav a { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border-mid); background: #fff; font-size: 0.82rem; color: var(--brown); text-decoration: none; }
.sp-section-nav a:hover { background: var(--rose-pale); }
.sp-card { scroll-margin-top: 96px; }
.sp-sub-title { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 0 0 6px; font-family: var(--sm-font-body); font-weight: 600; }
.sp-about-text + .sp-sub-title { margin-top: 18px; }

/* Profile hero */
.sp-hero {
    background: var(--white);
    border: 1px solid var(--border-mid);
    border-radius: 20px;
    padding: 28px 32px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}
.sp-hero-top {
    display: flex; align-items: flex-start;
    justify-content: space-between; gap: 16px;
    margin-bottom: 18px; flex-wrap: wrap;
}
.sp-hero-name {
    font-family: var(--font-display);
    font-size: 28px; font-weight: 500;
    color: var(--brown); margin: 0 0 6px;
    line-height: 1.2;
}
.sp-hero-sub {
    font-size: 14px; color: var(--muted);
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.sp-hero-sub span { display: flex; align-items: center; gap: 4px; }
.sp-hero-sub .sep { color: var(--border-mid); }

.sp-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.sp-badge {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 12px; font-weight: 500;
    padding: 4px 12px; border-radius: 20px;
}
.sp-badge-verified { background: #EDE7F6; color: #4527A0; border: 1px solid #B39DDB; }
.sp-badge-premium  { background: var(--gold-pale); color: #6B4E00; border: 1px solid var(--gold-light); }
.sp-badge-approved { background: #e8f7ee; color: #1a6640; border: 1px solid #a8d5bc; }

/* Tags row */
.sp-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.sp-tag {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--cream); border: 1px solid var(--border-mid);
    color: var(--brown-light); font-size: 13px;
    padding: 5px 14px; border-radius: 20px;
    transition: all 0.2s;
}
.sp-tag:hover { border-color: var(--gold); background: var(--gold-pale); }

/* ── Detail cards ── */
.sp-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    transition: border-color 0.2s;
}
.sp-card:hover { border-color: var(--border-mid); }

.sp-card-head {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 22px; padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.sp-card-icon {
    width: 38px; height: 38px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; flex-shrink: 0;
}
.sp-card-title {
    font-family: var(--font-display);
    font-size: 17px; font-weight: 500; color: var(--brown); margin: 0;
}
.sp-card-sub { font-size: 12px; color: var(--muted); margin: 2px 0 0; }

/* Detail grid */
.sp-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
}
.sp-detail-item {}
.sp-detail-label {
    font-size: 11px; font-weight: 500; letter-spacing: 0.8px;
    text-transform: uppercase; color: var(--muted-light); margin-bottom: 4px;
}
.sp-detail-value {
    font-size: 14px; font-weight: 500; color: var(--brown);
}

/* About text */
.sp-about-text {
    font-size: 15px; color: var(--muted);
    line-height: 1.8; margin: 0;
}

/* Locked card */
.sp-card-locked {
    background: var(--cream);
    border: 1.5px dashed var(--border-mid);
}
.sp-card-locked:hover { border-color: var(--gold-light); }
.sp-lock-body {
    display: flex; gap: 18px; align-items: flex-start;
}
.sp-lock-icon-wrap {
    width: 52px; height: 52px; border-radius: 14px;
    background: var(--white); border: 1px solid var(--border-mid);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; flex-shrink: 0;
}
.sp-lock-text h3, .sp-lock-text h4 { font-family: var(--font-display); font-size: 16px; font-weight: 500; color: var(--brown); margin: 0 0 5px; }
.sp-lock-text p  { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0 0 14px; }

/* Religion practice bar */
.sp-practice-bar { margin-top: 6px; }
.sp-practice-track {
    height: 6px; background: var(--cream-dark); border-radius: 3px; overflow: hidden; margin-bottom: 4px;
}
.sp-practice-fill { height: 100%; border-radius: 3px; background: var(--rose); transition: width 0.4s ease; }
.sp-practice-label { font-size: 11px; color: var(--muted-light); }

/* No access */
.sp-no-access {
    text-align: center; padding: 80px 20px;
    background: var(--white); border-radius: 20px; border: 1px solid var(--border);
}
.sp-no-access-icon { font-size: 56px; margin-bottom: 16px; }
.sp-no-access h2 { font-family: var(--font-display); font-size: 24px; color: var(--brown); margin: 0 0 10px; }
.sp-no-access p  { font-size: 15px; color: var(--muted); margin: 0 0 24px; }

/* Divider */
.sp-divider { height: 1px; background: var(--border); margin: 18px 0; }

/* Responsive */
@media (max-width: 860px) {
    .sp-layout { grid-template-columns: 1fr; }
    .sp-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .sp-photo-card { grid-column: span 2; }
    .sp-quick-stats { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 560px) {
    .sp-sidebar { grid-template-columns: 1fr; }
    .sp-photo-card { grid-column: span 1; }
    .sp-quick-stats { grid-template-columns: 1fr 1fr; }
    .sp-hero { padding: 20px; }
    .sp-card { padding: 18px 16px; }
    .sp-hero-name { font-size: 22px; }
}

/* 1.1 additions */
.sp-container { max-width: var(--sm-container); }
.sp-detail-grid { margin: 0; }
.sp-detail-item { min-width: 0; }
.sp-detail-value { margin: 0; overflow-wrap: anywhere; }
.sp-tags { list-style: none; padding: 0; margin: 16px 0 0; }
.sp-hero-name { margin-bottom: 6px; }
.sp-hero-sub { margin: 0; }
.sp-card-title { font-size: 1.1rem; }
.sp-card-sub { margin: 2px 0 0; }
.sp-card-icon { background: var(--sm-primary-soft); color: var(--sm-primary); }
.sp-card-locked .sp-card-icon { background: var(--cream-dark); color: var(--sm-muted); }
.sp-lock-icon-wrap { color: var(--sm-muted); }
.sp-lock-text .sp-btn { width: auto; padding: 10px 22px; }
.sp-action-card-title { font-family: var(--sm-font-body); margin: 0 0 14px; }
.sp-action-note { font-size: 0.88rem; color: var(--sm-muted); margin: 0 0 14px; }
.sp-btn { min-height: 44px; }
.sp-btn:focus-visible { box-shadow: var(--sm-focus); outline: none; }
.sp-btn-gold { color: var(--sm-ink); }
.sp-btn-success { background: var(--sm-success); }
.sp-btn-success:hover { background: #1b5f39; }
.sp-btn-disabled { opacity: 1; color: var(--sm-muted); }
.sp-photo-wrap .sm-photo { position: absolute; inset: 0; }
.sp-qs { padding: 12px 8px; }
.sp-qs-val { overflow-wrap: anywhere; }
.sp-badges { margin-top: 0; }
@media (max-width: 860px) {
	.sp-quick-stats { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
}
