/* ── SD Profile ─────────────────────────────────────────────
   Profile page, edit modal, user profile view, settings.
   Matches UI screenshots for Special Dating platform.
   ───────────────────────────────────────────────────────── */

/* ═══════════════════════════════════════════════════════════
   1. OWN PROFILE PAGE (mobile)
   ═══════════════════════════════════════════════════════════ */

.sd-profile {
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
}

/* ── Header (gradient) ───────────────────────────────────── */
.sd-profile__header {
    background: linear-gradient(91deg, #ff62a5 0% 22%, #ff8961) !important;
    padding: 20px 20px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 0 0 24px 24px;
}

.sd-profile__title {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.sd-profile__edit-btn {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    text-decoration: none;
    position: relative;
    z-index: 2;
}

.sd-profile__edit-btn svg {
    stroke: #fff;
}
.sd-profile__edit-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    color: white;
}

/* ── Buy Credits Button (Profile Page) ──────────────────── */
.sd-profile__buy-credits {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: none;
    border-radius: 24px;
    background: linear-gradient(135deg, #FFD700, #FFA500, #FF8C00);
    background-size: 200% 100%;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    animation: sdProfileBoostShift 3s ease infinite;
}
.sd-profile__buy-credits:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 16px rgba(255, 165, 0, 0.4);
    color: #fff !important;
}
.sd-profile__buy-credits::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: sdProfileBoostShimmer 2.5s ease-in-out infinite;
    pointer-events: none;
}
.sd-profile__buy-credits svg {
    flex-shrink: 0;
    vertical-align: middle;
    margin-top: -3px;
}
@keyframes sdProfileBoostShimmer {
    0% { left: -100%; }
    50% { left: 150%; }
    100% { left: 150%; }
}
@keyframes sdProfileBoostShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ── Profile Card ────────────────────────────────────────── */
.sd-profile__card {
    text-align: center;
    padding: 0 20px 20px;
    margin-top: -40px;
    position: relative;
}

.sd-profile__avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 12px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: #e0e0e0;
}

.sd-profile__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sd-profile__avatar--link {
    display: block;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.sd-profile__avatar--link:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.sd-profile__name {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #333;
}

.sd-profile__age {
    font-weight: 400;
    color: #666;
}

.sd-profile__location {
    color: #999;
    font-size: 14px;
    margin: 0;
}

/* ── Quick Stats Row ─────────────────────────────────────── */
.sd-profile__stats {
    display: flex;
    justify-content: space-around;
    margin-top: 16px;
    padding: 16px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.sd-profile__stat {
    text-align: center;
}

.sd-profile__stat-label {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.sd-profile__stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

/* ── Menu Items ──────────────────────────────────────────── */
.sd-profile__menu {
    padding: 8px 0;
}

.sd-profile__menu-item {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    text-decoration: none;
    color: #333;
    transition: background 0.15s;
}

.sd-profile__menu-item:hover {
    background: #f9f9f9;
}

.sd-profile__menu-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 12px;
}

.sd-profile__menu-label {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
}

.sd-profile__menu-count {
    font-size: 15px;
    color: #999;
    font-weight: 500;
}

/* ── GET PREMIUM CTA ─────────────────────────────────────── */
.sd-profile__premium-cta {
    padding: 16px 24px 32px;
}

.sd-profile__premium-btn {
    display: block;
    text-align: center;
    padding: 14px;
    background: var(--sd-gradient, linear-gradient(135deg, #ff9a9e, #ffa07a));
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
    border-radius: 12px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.sd-profile__premium-btn:hover {
    opacity: 0.9;
    color: #fff;
}


/* ═══════════════════════════════════════════════════════════
   2. PROFILE EDIT PAGE
   ═══════════════════════════════════════════════════════════ */

.sd-profile-edit {
    background: #fff;
    padding-bottom: 40px;
}

/* ── Cover Photo ──────────────────────────────────────────── */
.sd-profile-edit__cover {
    position: relative;
    width: 100%;
    height: 200px;
    background: var(--sd-gray-200, #eee);
    overflow: hidden;
}

.sd-profile-edit__cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sd-profile-edit__cover-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.sd-profile-edit__cover-btn:hover {
    background: rgba(0, 0, 0, 0.6);
}

/* ── Profile Avatar (overlapping cover) ──────────────────── */
.sd-profile-edit__avatar-wrap {
    width: 100px;
    height: 100px;
    margin: -50px auto 0;
    position: relative;
    z-index: 2;
    transition: opacity 0.2s;
}

.sd-profile-edit__avatar-wrap img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid #fff;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.sd-profile-edit__avatar-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    background: var(--sd-primary, #ff4081);
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: transform 0.15s;
}

.sd-profile-edit__avatar-btn:hover {
    transform: scale(1.1);
}

/* ── Identity (name + age) ───────────────────────────────── */
.sd-profile-edit__identity {
    text-align: center;
    padding: 12px 0 8px;
}

.sd-profile-edit__display-name {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.sd-profile-edit__display-age {
    font-size: 18px;
    color: #999;
    font-weight: 400;
}

/* ── Form Sections ───────────────────────────────────────── */
.sd-profile-edit__section {
    margin-bottom: 28px;
    padding: 0 20px;
}

.sd-profile-edit__section-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #999;
}

/* ── Photo Grid (responsive: 2→3→4 col) ─────────────────── */
.sd-profile-edit__photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.sd-profile-edit__photo-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 12px;
    background: var(--sd-gray-100, #f5f5f5);
    cursor: pointer;
}

.sd-profile-edit__photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Drag-and-drop reorder states */
.sd-profile-edit__photo-item[draggable="true"] {
    cursor: grab;
    touch-action: none;
}
.sd-profile-edit__photo-item[draggable="true"]:active {
    cursor: grabbing;
}
.sd-profile-edit__photo-item--dragging {
    opacity: 0.4;
    transform: scale(0.95);
    transition: opacity 0.2s, transform 0.2s;
}
.sd-profile-edit__photo-item--drag-over {
    outline: 3px solid var(--sd-primary, #ff4081);
    outline-offset: -3px;
    transform: scale(1.03);
    transition: transform 0.15s;
}
.sd-profile-edit__photo-item--drag-handle::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    width: 22px;
    height: 22px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M12 2l0 20M2 12l20 0M7 7l-5 5 5 5M17 7l5 5-5 5M7 7l5-5 5 5M7 17l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px;
    pointer-events: none;
    z-index: 2;
}

.sd-profile-edit__photo-item--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #ccc;
    color: #999;
    font-size: 28px;
    transition: border-color 0.2s, color 0.2s;
}

.sd-profile-edit__photo-item--empty:hover {
    border-color: var(--sd-primary, #ff4081);
    color: var(--sd-primary, #ff4081);
}

.sd-profile-edit__photo-badge {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
}

.sd-profile-edit__photo-actions {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
}

.sd-profile-edit__photo-item:hover .sd-profile-edit__photo-actions {
    display: flex;
}

.sd-profile-edit__photo-action {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: transform 0.15s;
}

.sd-profile-edit__photo-action:hover {
    transform: scale(1.1);
}

.sd-profile-edit__photo-action--delete {
    background: rgba(244, 67, 54, 0.9);
    color: white;
}

.sd-profile-edit__photo-input {
    display: none;
}

/* ═══════════════════════════════════════════════════════════
   MY REELS SECTION (Profile Edit)
   ═══════════════════════════════════════════════════════════ */

.sd-profile-edit__reel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.sd-profile-edit__reel-item {
    position: relative;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-radius: 12px;
    background: #1a1a1a;
    cursor: pointer;
}

.sd-profile-edit__reel-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.sd-profile-edit__reel-item:hover .sd-profile-edit__reel-thumb {
    transform: scale(1.04);
}

.sd-profile-edit__reel-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, transparent 35%, transparent 55%, rgba(0,0,0,0.55) 100%);
    pointer-events: none;
    z-index: 1;
    border-radius: 12px;
}

/* Delete button */
.sd-profile-edit__reel-delete {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    background: rgba(220, 38, 38, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.15s;
    padding: 0;
}

.sd-profile-edit__reel-item:hover .sd-profile-edit__reel-delete {
    opacity: 1;
    transform: scale(1);
}

.sd-profile-edit__reel-delete:hover {
    background: rgba(185, 28, 28, 0.95);
}

.sd-profile-edit__reel-delete svg {
    width: 12px;
    height: 12px;
    pointer-events: none;
}

/* Anonymous badge */
.sd-profile-edit__reel-anon {
    position: absolute;
    top: 6px;
    left: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 7px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    z-index: 3;
    white-space: nowrap;
}

.sd-profile-edit__reel-anon svg {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
}

/* Lock badge */
.sd-profile-edit__reel-lock {
    position: absolute;
    bottom: 6px;
    right: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 7px;
    border-radius: 50px;
    z-index: 3;
    cursor: default;
}

.sd-profile-edit__reel-lock svg {
    width: 14px;
    height: 14px;
    display: block;
}

.sd-profile-edit__reel-lock--open {
    background: rgba(34, 197, 94, 0.25);
    border: 1px solid rgba(34, 197, 94, 0.5);
    color: #4ade80;
}

.sd-profile-edit__reel-lock--closed {
    background: rgba(255, 64, 129, 0.2);
    border: 1px solid rgba(255, 64, 129, 0.6);
    color: #ff4081;
    animation: sd-reel-lock-pulse 2.4s ease-in-out infinite;
}

@keyframes sd-reel-lock-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 64, 129, 0); }
    50% { box-shadow: 0 0 0 4px rgba(255, 64, 129, 0.25); }
}

/* Duration badge */
.sd-profile-edit__reel-duration {
    position: absolute;
    bottom: 6px;
    left: 6px;
    padding: 2px 6px;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 10px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    z-index: 3;
}

/* Processing overlay */
.sd-profile-edit__reel-processing {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 4;
    border-radius: 12px;
}

.sd-profile-edit__reel-processing-spinner {
    width: 28px;
    height: 28px;
    border: 2.5px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--sd-primary, #ff4081);
    border-radius: 50%;
    animation: sd-profile-reel-spin 0.85s linear infinite;
}

@keyframes sd-profile-reel-spin {
    to { transform: rotate(360deg); }
}

/* ── Photo upload overlay (spinner + checking text) ── */
.sd-upload-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: inherit;
    z-index: 5;
}

.sd-upload-overlay__spinner {
    width: 28px;
    height: 28px;
    border: 2.5px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: sd-profile-reel-spin 0.85s linear infinite;
}

.sd-upload-overlay__text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Toast notification ── */
.sd-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    z-index: 100000;
    padding: 14px 24px;
    border-radius: var(--sd-radius-md, 12px);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-width: 400px;
    text-align: center;
}

.sd-toast--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.sd-toast--error {
    background: #d32f2f;
}

.sd-toast--success {
    background: #2e7d32;
}

.sd-toast--info {
    background: var(--sd-gray-800, #424242);
}

.sd-profile-edit__reel-processing-label {
    color: rgba(255, 255, 255, 0.75);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Empty state */
.sd-profile-edit__reel-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 36px 20px;
    text-align: center;
    background: #f9f9f9;
    border: 2px dashed #e0e0e0;
    border-radius: 12px;
}

.sd-profile-edit__reel-empty svg {
    width: 44px;
    height: 44px;
    color: #ccc;
    margin-bottom: 12px;
}

.sd-profile-edit__reel-empty-title {
    font-size: 15px;
    font-weight: 600;
    color: #666;
    margin: 0 0 6px;
}

.sd-profile-edit__reel-empty-sub {
    font-size: 13px;
    color: #999;
    margin: 0 0 16px;
}

.sd-profile-edit__reel-empty-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--sd-primary, #ff4081);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    transition: opacity 0.2s, transform 0.2s;
    border: none;
    cursor: pointer;
}

.sd-profile-edit__reel-empty-link:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    color: #fff;
}

.sd-profile-edit__reel-empty-link svg {
    width: 14px;
    height: 14px;
    color: #fff;
    margin-bottom: 0;
}

/* Loading placeholder */
.sd-profile-edit__reel-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 32px;
    color: #bbb;
    font-size: 13px;
}

/* Mobile: delete always visible */
@media (max-width: 768px) {
    .sd-profile-edit__reel-delete {
        opacity: 1;
        transform: scale(1);
    }
}

/* Desktop: 4 columns */
@media (min-width: 1024px) {
    .sd-profile-edit__reel-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ── Reel Lightbox ───────────────────────────────────────── */
.sd-reel-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.sd-reel-lightbox--visible {
    opacity: 1;
}

.sd-reel-lightbox__wrap {
    position: relative;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    aspect-ratio: 9 / 16;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.sd-reel-lightbox__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sd-reel-lightbox__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.15s;
    padding: 0;
}

.sd-reel-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.sd-reel-lightbox__close svg {
    width: 14px;
    height: 14px;
    pointer-events: none;
}

@media (max-width: 768px) {
    .sd-reel-lightbox__wrap {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
}

/* ── Form Fields ─────────────────────────────────────────── */
.sd-profile-edit__field {
    margin-bottom: 16px;
}

.sd-profile-edit__label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
    font-weight: 500;
}

.sd-profile-edit__select,
.sd-profile-edit__textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    color: #333;
    background: #fff;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.sd-profile-edit__select:focus,
.sd-profile-edit__textarea:focus {
    outline: none;
    border-color: var(--sd-primary, #ff4081);
}

.sd-profile-edit__textarea {
    min-height: 100px;
    resize: vertical;
}

/* ── Profile Detail Row (dropdown fields) ────────────────── */
.sd-profile-edit__detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}

.sd-profile-edit__detail-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sd-profile-edit__detail-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.sd-profile-edit__detail-label {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.sd-profile-edit__detail-right {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    min-width: 0;
}

.sd-profile-edit__detail-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.sd-profile-edit__detail-value--empty {
    color: var(--sd-primary, #ff4081);
    font-weight: 600;
}

.sd-profile-edit__detail-chevron {
    font-size: 20px;
    color: #bbb;
    line-height: 1;
    font-weight: 300;
}

/* ── Inline text input ───────────────────────────────────── */
.sd-profile-edit__inline-input {
    padding: 6px 10px;
    border: 1px solid var(--sd-primary, #ff4081);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    max-width: 160px;
    color: #333;
}

/* ── Interest Chips ──────────────────────────────────────── */
.sd-profile-edit__interests-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sd-profile-edit__interest-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.sd-profile-edit__interest-chip:hover {
    border-color: var(--sd-primary-light, #ff80ab);
}

.sd-profile-edit__interest-chip--active {
    background: var(--sd-primary, #ff4081);
    border-color: var(--sd-primary, #ff4081);
    color: #fff;
}

.sd-profile-edit__interest-chip-icon {
    display: inline-flex;
    align-items: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.sd-profile-edit__interest-chip-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
}


/* ═══════════════════════════════════════════════════════════
   3. USER PROFILE VIEW (desktop & mobile)
   ═══════════════════════════════════════════════════════════ */

/* ── Desktop view ────────────────────────────────────────── */
.sd-user-profile--desktop {
    max-width: 100%;
}

.sd-user-profile__hero {
    position: relative;
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    border-radius: 0 0 16px 16px;
}

.sd-user-profile__hero img {
    width: 100%;
    height: auto;
    display: block;
}

.sd-user-profile__hero-close {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

/* ── Profile info section ────────────────────────────────── */
.sd-user-profile__info {
    padding: 20px;
}

.sd-user-profile__name {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sd-user-profile__age-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--sd-primary, #ff4081);
    color: #fff;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.sd-user-profile__location {
    color: #999;
    font-size: 14px;
    margin: 4px 0 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ── Action buttons ──────────────────────────────────────── */
.sd-user-profile__actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 20px 0;
}

.sd-user-profile__action-btn {
    width: 52px;
    height: 52px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: all 0.2s;
}

.sd-user-profile__action-btn:hover {
    border-color: var(--sd-primary, #ff4081);
}

/* ── Chat / Gift CTA buttons ────────────────────────────── */
.sd-user-profile__cta {
    padding: 0 20px;
}

.sd-user-profile__chat-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: #4caf50;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: background 0.2s;
    margin-bottom: 8px;
}

.sd-user-profile__chat-btn:hover {
    background: #43a047;
}

.sd-user-profile__chat-sub {
    text-align: center;
    color: #999;
    font-size: 13px;
    margin: 4px 0 12px;
}

.sd-user-profile__gift-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: #fff;
    color: #333;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: border-color 0.2s;
}

.sd-user-profile__gift-btn:hover {
    border-color: #999;
}

/* ── About Me ────────────────────────────────────────────── */
.sd-user-profile__about {
    padding: 20px;
}

.sd-user-profile__section-title {
    font-size: 18px;
    font-weight: 600;
    color: #999;
    margin: 0 0 8px;
}

.sd-user-profile__bio {
    color: #666;
    font-size: 14px;
    font-style: italic;
    line-height: 1.5;
}

/* ── Photos section ──────────────────────────────────────── */
.sd-user-profile__photos {
    padding: 0 20px 20px;
}

.sd-user-profile__photos-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px;
}

/* ── Private Photos ──────────────────────────────────────── */
.sd-user-profile__private-photos {
    padding: 0 20px 20px;
}

/* ── See More People ─────────────────────────────────────── */
.sd-user-profile__more {
    padding: 20px;
}

.sd-user-profile__more-title {
    font-size: 18px;
    font-weight: 600;
    color: #999;
    margin: 0 0 12px;
}

.sd-user-profile__more-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.sd-user-profile__more-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 3/4;
}

.sd-user-profile__more-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sd-user-profile__more-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    color: #fff;
}

.sd-user-profile__more-name {
    font-weight: 600;
    font-size: 14px;
}

.sd-user-profile__more-age {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: var(--sd-primary, #ff4081);
    color: #fff;
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 4px;
}

.sd-user-profile__photo-count {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ── Report / Block footer ───────────────────────────────── */
.sd-user-profile__footer {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 20px;
    border-top: 1px solid #f0f0f0;
}

.sd-user-profile__report-btn,
.sd-user-profile__block-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s;
}

.sd-user-profile__report-btn {
    background: #f5f5f5;
    color: #666;
}

.sd-user-profile__block-btn {
    background: #fff;
    color: var(--sd-primary, #ff4081);
    border: 1px solid #eee;
}

/* ── Back to search ──────────────────────────────────────── */
.sd-user-profile__back-btn {
    display: block;
    text-align: center;
    padding: 14px;
    background: #555;
    color: #fff;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    margin: 20px;
    letter-spacing: 0.5px;
}


/* ═══════════════════════════════════════════════════════════
   4. SETTINGS PAGE
   ═══════════════════════════════════════════════════════════ */

.sd-settings {
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
    padding: 0 20px 40px;
}

.sd-settings__section {
    margin-bottom: 32px;
}

.sd-settings__section-title {
    font-size: 22px;
    font-weight: 700;
    color: #999;
    margin: 0 0 16px;
}

/* Language */
.sd-settings__language-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.sd-settings__language-label {
    font-size: 15px;
    color: #333;
}

.sd-settings__language-value {
    font-size: 15px;
    color: #999;
}

/* Notification toggles */
.sd-settings__toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #f5f5f5;
}

.sd-settings__toggle-label {
    font-size: 15px;
    color: #333;
}

/* Toggle switch */
.sd-settings__switch {
    position: relative;
    width: 48px;
    height: 28px;
}

.sd-settings__switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.sd-settings__switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #e0e0e0;
    border-radius: 28px;
    transition: 0.3s;
}

.sd-settings__switch-slider::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 50%;
    bottom: 3px;
    left: 3px;
    transition: 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.sd-settings__switch input:checked + .sd-settings__switch-slider {
    background: var(--sd-gradient, linear-gradient(135deg, #ff9a9e, #ffa07a));
}

.sd-settings__switch input:checked + .sd-settings__switch-slider::before {
    transform: translateX(20px);
}

/* Legal links */
.sd-settings__legal-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    text-decoration: none;
    color: #333;
    font-size: 15px;
    border-bottom: 1px solid #f5f5f5;
}

.sd-settings__legal-link::after {
    content: '›';
    font-size: 20px;
    color: #ccc;
}


/* ═══════════════════════════════════════════════════════════
   5. DESKTOP OVERRIDES
   ═══════════════════════════════════════════════════════════ */

@media (min-width: 769px) {
    .sd-profile {
        max-width: 100%;
        min-height: auto;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    }

    .sd-profile__header {
        border-radius: 12px 12px 0 0;
    }

    .sd-user-profile--desktop .sd-user-profile__hero {
        max-height: 400px;
    }

    .sd-profile-edit {
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    }

    .sd-profile-edit__cover {
        border-radius: 12px 12px 0 0;
    }

    .sd-profile-edit__photo-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .sd-settings {
        border-radius: 12px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        min-height: auto;
        padding-bottom: 20px;
    }
}

@media (min-width: 1024px) {
    .sd-profile-edit__photo-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ── Loading Spinner ─────────────────────────────────────── */
.sd-profile-edit__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}
