
:root {
    touch-action: manipulation;
    scroll-smooth;

    /* === Brand Colors === */
    --color-primary: #D4AF37;          /* 主色 Gold */
    --color-primary-light: #E8C84A;    /* 主色亮 - SVG icons, hover */
    --color-primary-bg: #0A0A0F;       /* 主色淡背景 - near-black */

    /* === Neutral Colors === */
    --color-white: #E8E4DD;
    --color-gray-100: #141420;         /* hover state / card bg */
    --color-gray-200: #2A2A38;         /* borders */
    --color-gray-300: #4A4A5A;         /* slider, inactive */
    --color-gray-400: #6A6A7A;         /* placeholder */
    --color-gray-600: #9B9BAA;         /* secondary text */
    --color-gray-800: #E8E4DD;         /* primary text */

    /* === Accent Colors === */
    --color-accent-pink: rgba(212, 175, 55, 0.9);  /* gold highlight */
    --color-accent-blue: #E8C84A;      /* active slider shadow */
    --color-accent-green: #50C878;     /* slider fill */

    /* === State Colors === */
    --color-success: #50C878;
    --color-warning: #FFB347;
    --color-error: #FF4444;
    --color-info: #D4AF37;
}

.triangle-right {
	width: 0;
	height: 0;
	border-top: 15px solid transparent;
	border-left: 30px solid var(--color-white);
	border-bottom: 15px solid transparent;
}

.triangle-left {
	width: 0;
	height: 0;
	border-top: 15px solid transparent;
	border-right: 30px solid var(--color-white);
	border-bottom: 15px solid transparent;
}

.arrow {
  border: solid #E8E4DD;
  border-width: 0 2px 2px 0;
  /* display: inline-block; */
  padding: 2px;
}

.up {
  transform: rotate(-135deg);
  -webkit-transform: rotate(-135deg);
}

.down {
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
}

.hidden-scrollbar
{
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    scrollbar-width: none;  /* Firefox */
}

.hidden-scrollbar::-webkit-scrollbar
{
    display:none;
}

.system-bg-color
{
    background-color: var(--color-primary-bg);
}

.system-bg-color-dark
{
    background: linear-gradient(135deg, #D4AF37, #E8C84A);
    color: #0A0A0F;
}

.system-color
{
    color: var(--color-primary);
}

/* === Dark Luxury Theme === */
body {
    background: #0A0A0F;
    color: #E8E4DD;
}
.theme-card {
    background: #141420;
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}
.theme-card:hover {
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 4px 24px rgba(212, 175, 55, 0.15);
    transform: translateY(-2px);
}
.theme-btn-primary {
    background: linear-gradient(135deg, #D4AF37, #E8C84A);
    color: #0A0A0F;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}
.theme-btn-primary:hover {
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.5);
    transform: translateY(-1px);
}
.theme-nav {
    background: #0A0A0F;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
}
.theme-nav-active { color: #D4AF37; }
.theme-input {
    background: #141420;
    border: 1px solid #2A2A38;
    border-radius: 12px;
    color: #E8E4DD;
    transition: all 0.2s;
}
.theme-input:focus {
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}
.theme-section-title {
    background: linear-gradient(135deg, #D4AF37, #E8C84A);
    color: #0A0A0F;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 8px;
}
.theme-tag {
    background: linear-gradient(135deg, #D4AF37, #E8C84A);
    color: #0A0A0F;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
}
.theme-tag-outline {
    border: 1px solid #2A2A38;
    color: #9B9BAA;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    background: transparent;
    transition: all 0.2s;
}
.theme-tag-outline:hover {
    border-color: #D4AF37;
    color: #D4AF37;
}
.theme-surface {
    background: #141420;
    border: 1px solid #2A2A38;
}
.theme-skeleton {
    background: linear-gradient(90deg, #1E1E2E 25%, #2A2A3A 50%, #1E1E2E 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
/* Override white backgrounds for dark theme */
.system-bg-color-dark { background: linear-gradient(135deg, #D4AF37, #E8C84A); color: #0A0A0F; }

.swipe-up
{
    transition: height 0.5s ease-in-out;
    height: 80dvh;
}

.swipe-down
{
    transition: height 0.5s ease-in-out;
}

/* .index-swipe { */
   /* opacity: 1; */
   /* visibility: visible; */
   /* display: flex; */
   /* transition: visibility 2s ease-in; */
   /* -moz-transition: visibility 2s ease-in; */
   /* -webkit-transition: visibility 2s ease-in; */
/* } */

/* .index-swipe-hidden { */
   /* opacity: 0; */
   /* display: none; */
   /* visibility: hidden; */
/* } */



input:focus {outline:none;}
input::placeholder { color: #6A6A7A; }




/* profile headshot gallery */


.gallery-container
{
    height: 100dvw;
    width: 100dvw;
    max-width: 428px;
    max-height: 428px;
}


.gallery-scroll
{
    margin-top: 0.1 em;
    width: 100dvw;
    max-width: 428px;
    display: grid;
    grid-auto-columns: calc(100dvw/3);
    grid-auto-flow: column;
    grid-gap: 0.1em;
    overflow-x: auto;
}

.gallery-scroll > div
{
    width: calc(var(--wused, 100dvw)/3);
    height: calc(var(--wused, 100dvw)/3);
    max-width: 428px;
}

.gallery-scroll > div > img
{
    object-position: left top;
    object-fit: fill;
    width: 100%;    
    height: 100%;
}

.gallery-common-multiple
{
    display: grid;
    margin-top:5dvh;
    height: calc(var(--w, 100dvw) - (var(--wused, 100dvw)/3));
    width: 100dvw;
    max-width: 428px;
    max-height: 428px;
    background-color: black;
    grid-template: repeat(4, 1fr)/repeat(6, 1fr);
    grid-gap: 0.1em;
}

.gallery-common
{
    display: grid;
    height: 100dvw;
    width: 100dvw;
    max-width: 428px;
    max-height: 428px;
    background-color: black;
    grid-template: repeat(4, 1fr) / repeat(6, 1fr);
    grid-gap: 0.1em;
}

.gallery1-h > div:nth-child(1) {
    grid-column: span 6;
    grid-row: span 4;
}

.gallery1-v > div:nth-child(1) {
    grid-column: 2 / 6;
    grid-row: span 4;
}


.gallery2-h > div:nth-child(2n+1) {
    grid-column: span 6;
    grid-row: span 2;
}
.gallery2-h > div:nth-child(2n+2) {
    grid-column: span 6;
    grid-row: span 2;
}

.gallery2-v > div:nth-child(2n+1) {
    grid-column: span 3;
    grid-row: span 4;
}
.gallery2-v > div:nth-child(2n+2) {
    grid-column: span 3;
    grid-row: span 4;
}

.gallery3-h > div:nth-child(3n+1)
{
    grid-column: span 6;
    grid-row: span 2;
}
.gallery3-h > div:nth-child(3n+2)
{
    grid-column: span 3;
    grid-row: span 2;
}
.gallery3-h > div:nth-child(3n+3)
{
    grid-column: span 3;
    grid-row: span 2;
}

.gallery3-v > div:nth-child(3n+1)
{
    grid-column: span 3;
    grid-row: span 4;
}
.gallery3-v > div:nth-child(3n+2)
{
    grid-column: span 3;
    grid-row: span 2;
}
.gallery3-v > div:nth-child(3n+3)
{
    grid-column: span 3;
    grid-row: span 2;
}

.gallery4-h > div:nth-child(4n+1)
{
    grid-column: span 4;
    grid-row: span 2;
}
.gallery4-h > div:nth-child(4n+2)
{
    grid-column: span 2;
    grid-row: span 2;
}
.gallery4-h > div:nth-child(4n+3)
{
    grid-column: span 2;
    grid-row: span 2;
}
.gallery4-h > div:nth-child(4n+4)
{
    grid-column: span 4;
    grid-row: span 2;
}

.gallery4-v > div:nth-child(4n+1)
{
    grid-column: span 3;
    grid-row: span 2;
}
.gallery4-v > div:nth-child(4n+2)
{
    grid-column: span 3;
    grid-row: span 2;
}
.gallery4-v > div:nth-child(4n+3)
{
    grid-column: span 3;
    grid-row: span 2;
}
.gallery4-v > div:nth-child(4n+4)
{
    grid-column: span 3;
    grid-row: span 2;
}


.gallery5-h > div:nth-child(5n+1)
{
    grid-column: span 3;
    grid-row: span 2;
}
.gallery5-h > div:nth-child(5n+2)
{
    grid-column: span 3;
    grid-row: span 2;
}
.gallery5-h > div:nth-child(5n+3)
{
    grid-column: span 2;
    grid-row: span 2;
}
.gallery5-h > div:nth-child(5n+4)
{
    grid-column: span 2;
    grid-row: span 2;
}
.gallery5-h > div:nth-child(5n+5)
{
    grid-column: span 2;
    grid-row: span 2;
}


.gallery5-v > div:nth-child(5n+1)
{
    grid-column: span 3;
    grid-row: span 2;
}
.gallery5-v > div:nth-child(5n+2)
{
    grid-column: span 3;
    grid-row: span 2;
}
.gallery5-v > div:nth-child(5n+3)
{
    grid-column: span 2;
    grid-row: span 2;
}
.gallery5-v > div:nth-child(5n+4)
{
    grid-column: span 2;
    grid-row: span 2;
}
.gallery5-v > div:nth-child(5n+5)
{
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-common-multiple > div > img,
.gallery-common > div > img 
{
    width: 100%;
    height: 100%;
    /* min-height: 100%; */
    object-fit: cover;
    transition: all ease 1s;
    object-position: left top;
}

.gallery-common-multiple > div:hover img,
.gallery-common > div:hover img
{
    filter: blur(4px);
}

.gallery-common-multiple > div,
.gallery-common > div
{
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.2), 0 3px 20px 0 rgba(0, 0, 0, 0.19);
}

.gallery-common-multiple div,
.gallery-common div
{
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

/* ====================================================
   Swipe Card Layout — Dark Luxury Gold Theme
   ==================================================== */

.swipe-stack {
    position: relative;
    width: 340px;
    height: 420px;
    margin: 0 auto;
    perspective: 800px;
}

@media (max-width: 380px) {
    .swipe-stack { width: 300px; height: 380px; }
}
@media (min-width: 768px) {
    .swipe-stack { width: 380px; height: 460px; }
}

.swipe-card {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    cursor: grab;
    touch-action: pan-y;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s, filter 0.3s;
    will-change: transform;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(212,175,55,0.15);
}
.swipe-card:active { cursor: grabbing; }
.swipe-card img.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 20px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: #E8E4DD;
    pointer-events: none;
}
.card-overlay .card-name {
    font-family: "Playfair Display", serif;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.card-overlay .card-details {
    font-size: 13px;
    color: rgba(232,228,221,0.8);
    margin-top: 4px;
}
.card-overlay .card-price {
    display: inline-block;
    background: rgba(212,175,55,0.25);
    border: 1px solid rgba(212,175,55,0.5);
    border-radius: 999px;
    padding: 3px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #D4AF37;
    margin-top: 6px;
}

/* Card stack depth */
.swipe-card[data-index="0"] { z-index: 3; }
.swipe-card[data-index="1"] { transform: scale(0.95) translateX(10px); filter: blur(1px); z-index: 2; pointer-events: none; }
.swipe-card[data-index="2"] { transform: scale(0.9) translateX(20px); filter: blur(2px); z-index: 1; pointer-events: none; }

/* Swipe animations */
@keyframes cardFlyLeft {
    to { transform: translateX(-150%) rotate(-30deg); opacity: 0; }
}
@keyframes cardFlyRight {
    to { transform: translateX(150%) rotate(30deg); opacity: 0; }
}
@keyframes cardEnter {
    from { transform: scale(0.85) translateX(40px); opacity: 0; }
    to { transform: scale(1) translateX(0); opacity: 1; }
}
@keyframes heartBurst {
    0% { transform: scale(0); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.8; }
    100% { transform: translateY(-60px) scale(0); opacity: 0; }
}

.card-fly-left {
    animation: cardFlyLeft 0.4s cubic-bezier(0.4,0,0.2,1) forwards;
}
.card-fly-right {
    animation: cardFlyRight 0.4s cubic-bezier(0.4,0,0.2,1) forwards;
}
.card-enter-anim {
    animation: cardEnter 0.35s cubic-bezier(0.4,0,0.2,1) forwards;
}

/* Action buttons */
.action-row {
    display: flex;
    justify-content: center;
    gap: 18px;
    padding: 8px 0;
}
.action-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    background: none;
}
.action-btn:hover { transform: scale(1.15); }
.action-btn:active { transform: scale(0.9); }
.action-btn.pass { background: rgba(255,68,68,0.15); border: 2px solid #FF4444; color: #FF4444; }
.action-btn.like { background: rgba(212,175,55,0.2); border: 2px solid #D4AF37; color: #D4AF37; }
.action-btn.chat { background: rgba(80,200,120,0.15); border: 2px solid #50C878; color: #50C878; }
.action-btn.book { background: rgba(100,100,200,0.15); border: 2px solid #6464C8; color: #6464C8; }

/* Bottom Sheet */
.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 85dvh;
    z-index: 90;
    background: var(--color-gray-100);
    border-radius: 24px 24px 0 0;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
    overflow-y: auto;
    box-shadow: 0 -4px 30px rgba(0,0,0,0.5);
}
.bottom-sheet.active { transform: translateY(0); }
.bottom-sheet-handle {
    width: 40px;
    height: 5px;
    border-radius: 3px;
    background: var(--color-gray-300);
    margin: 12px auto 8px;
    cursor: grab;
}
.sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 89;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.sheet-backdrop.active { opacity: 1; pointer-events: auto; }

/* Swipe feedback indicators */
.swipe-label {
    position: absolute;
    top: 40px;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 28px;
    font-weight: 800;
    opacity: 0;
    z-index: 10;
    pointer-events: none;
    letter-spacing: 2px;
}
.swipe-label.like {
    right: 20px;
    border: 4px solid #D4AF37;
    color: #D4AF37;
    transform: rotate(-15deg);
    text-shadow: 0 0 20px rgba(212,175,55,0.5);
}
.swipe-label.nope {
    left: 20px;
    border: 4px solid #FF4444;
    color: #FF4444;
    transform: rotate(15deg);
    text-shadow: 0 0 20px rgba(255,68,68,0.5);
}

/* Heart burst animation */
.heart-burst {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 80px;
    pointer-events: none;
    z-index: 20;
    animation: heartBurst 0.6s ease-out forwards;
}

/* Nav auto-hide */
.nav-hidden {
    transform: translateY(100%) !important;
}

/* Dark Luxury Login Card */
.login-card {
    background: #141420;
    border: 1px solid rgba(212,175,55,0.2);
    border-radius: 24px;
    padding: 40px 28px 32px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 60px rgba(212,175,55,0.05);
}
.floating-label-group {
    position: relative;
    margin-bottom: 20px;
}
.floating-label-group input {
    width: 100%;
    background: #0A0A0F;
    border: 1px solid #2A2A38;
    border-radius: 12px;
    padding: 20px 16px 8px;
    color: #E8E4DD;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.floating-label-group input:focus {
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
    outline: none;
}
.floating-label-group label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #6A6A7A;
    font-size: 14px;
    pointer-events: none;
    transition: all 0.2s;
}
.floating-label-group input:focus ~ label,
.floating-label-group input:not(:placeholder-shown) ~ label {
    top: 10px;
    transform: translateY(0);
    font-size: 11px;
    color: #D4AF37;
}
.btn-gold-large {
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, #D4AF37, #E8C84A);
    color: #0A0A0F;
    font-size: 17px;
    font-weight: 700;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(212,175,55,0.3);
    transition: all 0.3s;
}
.btn-gold-large:hover {
    box-shadow: 0 6px 30px rgba(212,175,55,0.5);
    transform: translateY(-1px);
}
.btn-gold-large:disabled {
    background: #2A2A38;
    color: #6A6A7A;
    box-shadow: none;
    cursor: not-allowed;
}

/* Member page arc background */
.member-arc-bg {
    background: linear-gradient(180deg, #141420 0%, #0A0A0F 100%);
    position: relative;
}
.member-arc-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 180px;
    background: linear-gradient(135deg, rgba(212,175,55,0.15), rgba(212,175,55,0.05));
    border-radius: 0 0 50% 50%;
}

/* Card group menus for member */
.card-group-menu {
    background: #141420;
    border: 1px solid #2A2A38;
    border-radius: 16px;
    overflow: hidden;
}
.card-group-menu button {
    width: 100%;
    text-align: left;
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #E8E4DD;
    border-bottom: 1px solid #2A2A38;
    transition: background 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card-group-menu button:last-child { border-bottom: none; }
.card-group-menu button:hover { background: rgba(212,175,55,0.05); }
.card-group-menu button::after {
    content: '';
    width: 7px;
    height: 7px;
    border-right: 2px solid #6A6A7A;
    border-bottom: 2px solid #6A6A7A;
    transform: rotate(-45deg);
}

/* OTP input boxes */
.otp-input {
    width: 48px;
    height: 56px;
    background: #141420;
    border: 2px solid #2A2A38;
    border-radius: 12px;
    color: #D4AF37;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.otp-input:focus {
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212,175,55,0.2);
    outline: none;
}

/* Favorite horizontal swipe */
.fav-scroll-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 8px 0;
    scroll-snap-type: x mandatory;
}
.fav-scroll-container::-webkit-scrollbar { display: none; }
.fav-card {
    flex-shrink: 0;
    width: 260px;
    height: 340px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    scroll-snap-align: center;
    border: 1px solid rgba(212,175,55,0.15);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}


/* ================================================================
   Profile Page — Alpha Immersive Hero + Pull-Up Panel
   ================================================================ */

/* --- Animations --- */
@keyframes profileHeroReveal {
    from { opacity: 0; transform: scale(1.08); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes profilePanelSlideUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes profilePriceCardStagger {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes profileCtaGoldPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(212,175,55,0.4); }
    50% { box-shadow: 0 4px 35px rgba(212,175,55,0.7); }
}
@keyframes profileKenBurns {
    0% { transform: scale(1) translate(0,0); }
    50% { transform: scale(1.06) translate(-1%,-1%); }
    100% { transform: scale(1) translate(0,0); }
}
@keyframes profileDragHandlePulse {
    0%, 100% { opacity: 0.5; width: 48px; }
    50% { opacity: 1; width: 56px; }
}
@keyframes profileFadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Hero Wrapper --- */
.profile-hero-wrapper {
    position: relative;
    width: 100%;
    height: 65dvh;
    overflow: hidden;
    animation: profileHeroReveal 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* --- Floating Header (transparent over image) --- */
.profile-floating-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    padding-top: max(12px, env(safe-area-inset-top));
    background: linear-gradient(180deg, rgba(10,10,15,0.6) 0%, transparent 100%);
}

.profile-float-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(20,20,32,0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(232,228,221,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.profile-float-btn:hover {
    background: rgba(20,20,32,0.8);
    border-color: rgba(212,175,55,0.4);
}
.profile-float-btn:active {
    transform: scale(0.92);
}

/* --- Hero Image Area --- */
.profile-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Override gallery-common styles inside hero */
.profile-hero-image .gallery-common,
.profile-hero-image .gallery-common-multiple {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin-top: 0;
    animation: profileKenBurns 25s ease-in-out infinite;
}

.profile-hero-image .gallery-common > div > img,
.profile-hero-image .gallery-common-multiple > div > img {
    object-fit: cover;
    object-position: center top;
    width: 100%;
    height: 100%;
}

.profile-hero-image .gallery-common > div:hover img,
.profile-hero-image .gallery-common-multiple > div:hover img {
    filter: none;
}

/* Single gallery image fills entire hero */
.profile-hero-image .gallery1-h > div:nth-child(1),
.profile-hero-image .gallery1-v > div:nth-child(1) {
    grid-column: span 6;
    grid-row: span 4;
}

/* Placeholder shimmer */
.profile-hero-placeholder {
    width: 100%;
    height: 100%;
    background: #141420;
    display: flex;
    align-items: center;
    justify-content: center;
}
.profile-hero-placeholder-shimmer {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #141420 25%, #1E1E2E 50%, #141420 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* --- Gradient overlay at bottom of hero --- */
.profile-hero-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 140px;
    background: linear-gradient(transparent 0%, rgba(10,10,15,0.3) 30%, rgba(10,10,15,0.85) 70%, #0A0A0F 100%);
    display: flex;
    align-items: flex-end;
    padding: 0 20px 20px;
    z-index: 10;
    pointer-events: none;
}

.profile-hero-name-badge {
    font-family: "Playfair Display", serif;
    font-size: 26px;
    font-weight: 700;
    color: #E8E4DD;
    text-shadow: 0 2px 12px rgba(0,0,0,0.6);
    letter-spacing: 0.5px;
    pointer-events: auto;
}
.profile-hero-name-badge:empty {
    display: none;
}

/* --- Pull-Up Frosted Glass Panel --- */
.profile-pullup-panel {
    position: relative;
    z-index: 20;
    margin-top: -28px;
    background: rgba(20,20,32,0.88);
    backdrop-filter: blur(40px) saturate(1.2);
    -webkit-backdrop-filter: blur(40px) saturate(1.2);
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
    border-top: 1px solid rgba(212,175,55,0.15);
    min-height: calc(100dvh - 65dvh + 28px);
    padding-bottom: 120px; /* space for sticky CTA + nav */
    animation: profilePanelSlideUp 0.6s cubic-bezier(0.25,0.46,0.45,0.94) 0.3s both;
}

/* Drag handle */
.profile-drag-handle-row {
    display: flex;
    justify-content: center;
    padding: 14px 0 8px;
}
.profile-drag-handle {
    width: 48px;
    height: 5px;
    border-radius: 3px;
    background: rgba(212,175,55,0.4);
    animation: profileDragHandlePulse 3s ease-in-out infinite;
}

/* --- Thumbnail scroll row --- */
.profile-thumbnail-row {
    padding: 4px 16px 12px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}
.profile-thumbnail-row::-webkit-scrollbar {
    display: none;
}
/* Style thumbnails generated by gen_html_banner() */
.profile-thumbnail-row > div {
    flex-shrink: 0;
    scroll-snap-align: center;
}
.profile-thumbnail-row > div > img,
.profile-thumbnail-row > div > video {
    width: 68px !important;
    min-width: 68px !important;
    height: 68px !important;
    object-fit: cover;
    border-radius: 14px;
    border: 2px solid rgba(212,175,55,0.2);
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.profile-thumbnail-row > div > img:hover,
.profile-thumbnail-row > div > video:hover {
    border-color: #D4AF37;
    transform: scale(1.05);
    box-shadow: 0 2px 12px rgba(212,175,55,0.3);
}

/* --- Info Section --- */
.profile-info-section {
    padding: 0 16px;
}
.profile-info-content {
    padding: 0 0 16px;
    animation: profileFadeInUp 0.5s ease 0.5s both;
}

/* --- Price Card Skeleton --- */
.profile-price-card-skeleton {
    background: rgba(42,42,56,0.5);
    border: 1px solid rgba(212,175,55,0.1);
    border-radius: 16px;
    padding: 16px;
}

/* --- Sticky CTA --- */
.profile-sticky-cta {
    position: fixed;
    bottom: 56px; /* above nav */
    left: 0;
    right: 0;
    z-index: 40;
    padding: 10px 16px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    background: linear-gradient(transparent, rgba(10,10,15,0.95) 30%);
}
.profile-cta-inner {
    max-width: 428px;
    margin: 0 auto;
}
.profile-cta-pulse {
    animation: profileCtaGoldPulse 2.5s ease-in-out infinite;
}

/* Override .btn-gold-large inside profile CTA for extra presence */
.profile-sticky-cta .btn-gold-large {
    height: 54px;
    font-size: 18px;
    letter-spacing: 1px;
    border-radius: 999px;
}

/* --- Responsive adjustments --- */
@media (min-width: 768px) {
    .profile-hero-wrapper {
        max-width: 768px;
        margin: 0 auto;
    }
    .profile-pullup-panel {
        max-width: 768px;
        margin-left: auto;
        margin-right: auto;
    }
    .profile-sticky-cta {
        max-width: 768px;
        left: 50%;
        transform: translateX(-50%);
    }
    .profile-floating-header {
        max-width: 768px;
        margin: 0 auto;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (min-width: 1024px) {
    .profile-hero-wrapper {
        height: 70dvh;
    }
}

/* --- Profile-specific element overrides --- */

/* Style for the info section when populated by buildProfilePageHtml */
.profile-info-content .text-lg.font-bold {
    font-family: "Playfair Display", serif;
    font-size: 22px;
    color: #E8E4DD;
}

.profile-info-content .text-sm.font-semibold {
    color: #E8E4DD;
}

/* Gold accent on price rows within info */
.profile-info-content #div_in_price_container,
.profile-info-content #div_out_price_container {
    background: rgba(212,175,55,0.05);
    border: 1px solid rgba(212,175,55,0.12);
    border-radius: 14px;
    padding: 12px 14px;
    margin-top: 10px;
    animation: profilePriceCardStagger 0.5s ease 0.6s both;
}
.profile-info-content #div_out_price_container {
    animation-delay: 0.75s;
}

/* Comment section styling */
.profile-info-content #div_scoring_container {
    margin-top: 4px;
}

/* Service type pills */
.profile-info-content #caipin_info_service_type {
    flex-wrap: wrap;
    gap: 6px;
}

/* Star rating inside profile */
.profile-info-content .gl-star-rating {
    margin-top: 2px;
}

/* --- Zoom overlay refinements for dark theme --- */
#div_zoom_in_container .bg-black {
    background: #0A0A0F;
}

/* --- Comment box refinements --- */
#div_comment_box_content {
    border-color: rgba(212,175,55,0.15);
    box-shadow: 0 -4px 40px rgba(0,0,0,0.6), 0 0 60px rgba(212,175,55,0.05);
}