/* Single advisor page — modern layout (frontend/single-psychic.blade.php).
   Everything is scoped to .spx / .spx-* so the rest of the frontend is untouched. */

:root {
    --spx-bg: #f6f6fb;
    --spx-card: #ffffff;
    --spx-ink: #16162a;
    --spx-muted: #6b6b80;
    --spx-line: #ececf3;
    --spx-accent: #6c5ce7;
    --spx-accent-2: #a66cff;
    --spx-online: #22c55e;
    --spx-busy: #ef4444;
    --spx-offline: #a1a1aa;
    --spx-radius: 22px;
    --spx-shadow: 0 10px 30px rgba(22, 22, 42, .06);
}

body.single-psychic, .spx { background: var(--spx-bg); }

.spx {
    color: var(--spx-ink);
    padding: 90px 0 120px;
    font-family: 'Inter', 'Poppins', system-ui, sans-serif;
}
.spx .container { max-width: 1080px; }

/* Breadcrumb */
.spx-crumb { display: flex; align-items: center; gap: 10px; font-size: 14px; margin-bottom: 18px; color: var(--spx-muted); }
.spx-crumb a { color: var(--spx-ink); text-decoration: none; font-weight: 500; }
.spx-crumb i { font-size: 10px; opacity: .5; }

/* ───── Hero ───── */
.spx-hero {
    position: relative;
    background: var(--spx-card);
    border-radius: var(--spx-radius);
    box-shadow: var(--spx-shadow);
    overflow: hidden;
}
.spx-hero-cover {
    height: 150px;
    background:
        radial-gradient(circle at 15% 30%, rgba(255,255,255,.35), transparent 40%),
        radial-gradient(circle at 85% 0%, rgba(255,255,255,.25), transparent 35%),
        linear-gradient(120deg, var(--spx-accent), var(--spx-accent-2) 60%, #ff8fab);
}
.spx-hero-body {
    display: flex;
    gap: 32px;
    padding: 0 36px 32px;
}
.spx-avatar-wrap {
    position: relative;
    flex: 0 0 auto;
    margin-top: -80px;
    text-align: center;
}
.spx-avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid var(--spx-card);
    box-shadow: 0 12px 30px rgba(22, 22, 42, .18);
    background: #eee;
}
.spx-status-pill {
    position: absolute;
    left: 50%;
    bottom: 6px;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--spx-card);
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(22, 22, 42, .12);
    white-space: nowrap;
}
.spx-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--spx-offline); }
.spx-status-online .spx-dot { background: var(--spx-online); box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: spx-pulse 1.8s infinite; }
.spx-status-busy .spx-dot { background: var(--spx-busy); }
@keyframes spx-pulse {
    0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); }
    70% { box-shadow: 0 0 0 9px rgba(34,197,94,0); }
    100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

.spx-hero-info { flex: 1; min-width: 0; padding-top: 22px; }
.spx-name-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.spx-name { font-size: 34px; font-weight: 800; letter-spacing: -.02em; margin: 0; line-height: 1.15; }
.spx-tagline { color: var(--spx-muted); font-size: 17px; margin: 4px 0 0; }

.spx-icon-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.spx-icon-btn {
    width: 42px; height: 42px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--spx-bg); color: var(--spx-ink); cursor: pointer;
    transition: background .2s, transform .2s;
}
.spx-icon-btn:hover { background: #ebe8ff; transform: translateY(-1px); }
.spx-icon-btn img { width: 26px; }
.spx-icon-btn i { font-size: 18px; }
.spx-share #social-links ul, .spx-share ul { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.spx-share a {
    width: 42px; height: 42px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--spx-bg); color: var(--spx-ink); text-decoration: none; font-size: 16px;
}
.spx-share a:hover { background: #ebe8ff; color: var(--spx-accent); }

/* Stats */
.spx-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 22px 0;
}
.spx-stats li {
    background: var(--spx-bg);
    border-radius: 16px;
    padding: 14px 16px;
}
.spx-stats strong { display: block; font-size: 20px; font-weight: 800; }
.spx-stats strong i { color: #f5b301; font-size: 16px; }
.spx-stats span { font-size: 13px; color: var(--spx-muted); }

/* Primary CTAs */
.spx-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.spx-cta {
    flex: 1 1 200px;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 54px; padding: 0 22px;
    border: 0; border-radius: 16px;
    font-size: 16px; font-weight: 700; color: #fff;
    background: var(--spx-offline);
    cursor: pointer;
    transition: transform .15s, box-shadow .2s, filter .2s;
}
.spx-cta i { font-size: 17px; }
.spx-cta.spx-online { background: linear-gradient(135deg, #22c55e, #16a34a); box-shadow: 0 10px 22px rgba(34,197,94,.3); }
.spx-cta.spx-online.spx-cta-chat { background: linear-gradient(135deg, var(--spx-accent), var(--spx-accent-2)); box-shadow: 0 10px 22px rgba(108,92,231,.3); }
.spx-cta.spx-busy { background: var(--spx-busy); }
.spx-cta:hover { transform: translateY(-2px); filter: brightness(1.05); }
.spx-cta.is-off { pointer-events: none; opacity: .75; box-shadow: none; }

/* Follow / subscribe / message */
.spx-social { display: flex; gap: 10px; margin-top: 14px; }
.spx-ghost {
    flex: 1;
    min-height: 46px; padding: 0 18px;
    border-radius: 14px;
    border: 1.5px solid var(--spx-line);
    background: var(--spx-card); color: var(--spx-ink);
    font-weight: 600; font-size: 15px;
    transition: border-color .2s, background .2s, color .2s;
}
.spx-ghost:hover { border-color: var(--spx-accent); color: var(--spx-accent); }
.spx-ghost.is-on { background: #ebe8ff; border-color: #ebe8ff; color: var(--spx-accent); }
.spx-ghost-accent i { color: #f5b301; }
.spx-ghost:disabled { opacity: .45; cursor: not-allowed; }

.spx-msg {
    display: flex; align-items: center; gap: 12px;
    margin-top: 12px; padding: 6px 6px 6px 18px;
    border-radius: 16px; background: var(--spx-bg);
    cursor: pointer;
}
.spx-msg > i { color: var(--spx-muted); }
.spx-msg input { flex: 1; border: 0; background: transparent; outline: 0; pointer-events: none; font-size: 15px; }
.spx-msg .psychic-msg-send {
    width: 42px; height: 42px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--spx-accent); color: #fff;
}

/* ───── Section nav ───── */
.spx-tabs {
    position: sticky; top: 64px; z-index: 5;
    display: flex; gap: 6px; overflow-x: auto;
    margin: 22px 0 18px; padding: 6px;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(10px);
    border-radius: 16px; box-shadow: var(--spx-shadow);
    scrollbar-width: none;
}
.spx-tabs::-webkit-scrollbar { display: none; }
.spx-tabs a {
    flex: 0 0 auto; padding: 9px 18px; border-radius: 12px;
    color: var(--spx-muted); text-decoration: none; font-weight: 600; font-size: 14px;
}
.spx-tabs a:hover { background: var(--spx-bg); color: var(--spx-ink); }
html { scroll-behavior: smooth; }
.spx-card { scroll-margin-top: 140px; }

/* ───── Section cards ───── */
.spx-card {
    background: var(--spx-card);
    border-radius: var(--spx-radius);
    box-shadow: var(--spx-shadow);
    padding: 28px 32px;
    margin-bottom: 18px;
}
.spx-h { font-size: 22px; font-weight: 800; letter-spacing: -.01em; margin: 0 0 14px; }
.spx-h-sm { font-size: 17px; margin-top: 24px; }
.spx-h-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.spx-h-row .spx-h { margin: 0; }
.spx-about { color: #44445a; font-size: 16px; line-height: 1.75; white-space: pre-line; margin: 0; }
.spx-cats .container { padding: 0; max-width: none; }
.spx-empty { color: var(--spx-muted); margin: 0; }

.spx-feed { max-height: 680px; overflow-y: auto; padding-right: 4px; }

/* Promotions */
.spx-promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 16px;
}
.spx-promo { text-decoration: none; color: var(--spx-ink); display: block; }
.spx-promo-media {
    position: relative; aspect-ratio: 4 / 5;
    border-radius: 18px; overflow: hidden; background: #eee;
}
.spx-promo-media img, .spx-promo-media video { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.spx-promo:hover .spx-promo-media img, .spx-promo:hover .spx-promo-media video { transform: scale(1.05); }
.spx-lock, .spx-play {
    position: absolute; inset: 0; margin: auto;
    width: 56px; height: 56px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(22,22,42,.55); color: #fff; font-size: 20px;
    backdrop-filter: blur(4px);
}
.spx-promo-title { font-weight: 600; font-size: 15px; padding: 10px 2px 0; }

/* Reviews */
.spx-rating-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 999px;
    background: #fff7db; color: #8a6400; font-weight: 700;
}
.spx-rating-chip i { color: #f5b301; }
.spx-reviews .review-inner-lists { display: grid; gap: 12px; }
.spx-reviews .review-list {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
    padding: 16px 18px; border-radius: 16px; background: var(--spx-bg);
    border: 0; margin: 0;
}
.spx-reviews .review-list img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; margin-right: 14px; }
.spx-reviews .review-list h2 { font-size: 15px; font-weight: 700; margin: 0 0 2px; }
.spx-reviews .review-list p { color: #44445a; margin: 0; font-size: 14px; }
.spx-reviews .review-list span { color: var(--spx-muted); font-size: 12px; white-space: nowrap; }
.spx-reviews .show-more-review { margin-top: 14px; width: 100%; }

/* ───── Sticky bars ───── */
.spx-sticky {
    background: rgba(255,255,255,.92) !important;
    backdrop-filter: blur(12px);
    border-top: 0 !important;
}
.spx-sticky-avatar img { border-radius: 50% !important; width: 46px !important; height: 46px !important; }
.spx-sticky-avatar { position: relative; margin-right: 14px; }
.spx-sticky-avatar img { margin: 0 !important; }
.spx-sticky h2 { font-size: 18px !important; }
.spx-sticky h4 { font-size: 14px !important; }
.spx-sticky .spx-cta { flex: 0 0 auto; min-height: 46px; font-size: 15px; }

.spx-mobilebar {
    top: auto !important; bottom: 0;
    background: rgba(255,255,255,.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 -6px 20px rgba(22,22,42,.08) !important;
}
.spx-mobilebar .spx-cta { flex: 1; min-height: 50px; font-size: 15px; }

/* ───── Responsive ───── */
@media (max-width: 991px) {
    .spx { padding-top: 80px; }
    .spx-hero-body { flex-direction: column; align-items: center; gap: 0; padding: 0 20px 24px; text-align: center; }
    .spx-avatar { width: 150px; height: 150px; }
    .spx-avatar-wrap { margin-top: -75px; }
    .spx-hero-info { width: 100%; }
    .spx-name-row { flex-direction: column; align-items: center; }
    .spx-icon-actions { justify-content: center; }
    .spx-stats { grid-template-columns: repeat(2, 1fr); text-align: left; }
}
@media (max-width: 575px) {
    .spx .container { padding-left: 16px; padding-right: 16px; }
    .spx-hero-cover { height: 110px; }
    .spx-name { font-size: 26px; }
    .spx-card { padding: 22px 18px; }
    .spx-cta { flex-basis: 100%; }
    .spx-promo-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .spx-tabs { top: 56px; }
}
