
:root {
    touch-action: manipulation;
    scroll-smooth;

    /* === Brand Colors === */
    --color-primary: #E91E7B;          /* 主色 Hot Pink */
    --color-primary-light: #FF5CA1;    /* 主色亮 - SVG icons, hover */
    --color-primary-bg: #FFF0F5;       /* 主色淡背景 Lavender Blush */

    /* === Neutral Colors === */
    --color-white: #FFFFFF;
    --color-gray-100: #FFF5F8;         /* hover state */
    --color-gray-200: #F5D5E0;         /* borders - rose light pink */
    --color-gray-300: #CDAAB5;         /* slider, inactive */
    --color-gray-400: #B08A99;         /* placeholder */
    --color-gray-600: #8B6578;         /* secondary text - rose gray */
    --color-gray-800: #3D1F2E;         /* primary text - dark wine */

    /* === Accent Colors === */
    --color-accent-pink: rgba(233, 30, 123, 0.9);  /* girl name highlight */
    --color-accent-blue: #FF5CA1;      /* active slider shadow */
    --color-accent-green: #2ECC71;     /* slider fill */

    /* === State Colors === */
    --color-success: #2ECC71;
    --color-warning: #F1C40F;
    --color-error: #E74C3C;
    --color-info: #FF5CA1;
}

.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 black;
  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-color: var(--color-primary);
}

.system-color
{
    color: var(--color-primary);
}

.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;}




/* 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;
}

/* === Romantic Pink Theme === */
.theme-card {
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(233, 30, 123, 0.08);
    transition: all 0.3s ease;
}
.theme-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(233, 30, 123, 0.18);
}
.theme-btn-primary {
    background: linear-gradient(135deg, #E91E7B, #FF5CA1);
    color: white;
    border-radius: 999px;
    box-shadow: 0 4px 15px rgba(233, 30, 123, 0.35);
    transition: all 0.3s ease;
}
.theme-btn-primary:hover {
    box-shadow: 0 6px 20px rgba(233, 30, 123, 0.5);
    transform: translateY(-1px);
}
.theme-nav {
    background: #FFFFFF;
    border-top: 1px solid #F5D5E0;
}
.theme-nav-active {
    color: #E91E7B;
}
.theme-input {
    background: #FFFFFF;
    border: 1.5px solid #F5D5E0;
    border-radius: 12px;
    transition: border-color 0.2s;
}
.theme-input:focus {
    border-color: #E91E7B;
    box-shadow: 0 0 0 3px rgba(233, 30, 123, 0.1);
}
.theme-section-title {
    background: linear-gradient(135deg, #E91E7B, #FF5CA1);
    color: white;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 8px;
}
.theme-tag {
    background: linear-gradient(135deg, #E91E7B, #FF5CA1);
    color: white;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
}
.theme-tag-outline {
    border: 1.5px solid #F5D5E0;
    color: #8B6578;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
}
.theme-tag-outline:hover {
    border-color: #E91E7B;
    color: #E91E7B;
}
.theme-skeleton {
    background: linear-gradient(90deg, #F5D5E0 25%, #FFF0F5 50%, #F5D5E0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* === Super App Layout === */

/* Carousel Section */
.carousel-section {
    padding: 0 16px;
    margin-bottom: 20px;
}
.carousel-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 0 4px;
}
.carousel-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-gray-800);
}
.carousel-section-more {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
}
.carousel-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 0 8px 0;
}
.carousel-track::-webkit-scrollbar {
    display: none;
}
.carousel-card {
    flex-shrink: 0;
    width: 150px;
    scroll-snap-align: start;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(233, 30, 123, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}
.carousel-card:active {
    transform: scale(0.97);
}
.carousel-card > img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

/* List Card for "fixed" section */
.list-card {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(233, 30, 123, 0.08);
    padding: 12px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    gap: 12px;
}
.list-card:active {
    transform: scale(0.98);
}
.list-card > img {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}
.list-card-info {
    flex: 1;
    min-width: 0;
}
.list-card-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--color-gray-800);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.list-card-detail {
    font-size: 12px;
    color: var(--color-gray-600);
    margin-top: 4px;
}
.list-card-price {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    margin-top: 4px;
}

/* Category Icon Row */
.category-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 8px 16px;
    min-height: 84px;
}
.category-row::-webkit-scrollbar {
    display: none;
}
.category-item {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 64px;
    cursor: pointer;
    transition: transform 0.2s;
}
.category-item:active {
    transform: scale(0.92);
}
.category-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: linear-gradient(135deg, #FFF0F5, #FFD6E8);
    box-shadow: 0 2px 8px rgba(233, 30, 123, 0.12);
    transition: all 0.3s;
}
.category-icon:hover {
    transform: scale(1.08);
}
.category-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-gray-800);
    text-align: center;
    white-space: nowrap;
}

/* Section Animations */
@keyframes carouselSlideIn {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes sectionFadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes iconBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}
@keyframes searchExpand {
    from { width: 173px; border-radius: 12px; }
    to { width: 100vw; border-radius: 0; }
}
@keyframes bannerFade {
    0% { opacity: 0; transform: scale(1.02); }
    100% { opacity: 1; transform: scale(1); }
}
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Search Fullscreen Overlay */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: white;
    transform: translateY(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}
.search-overlay.active {
    transform: translateY(0);
}
.search-overlay-header {
    display: flex;
    align-items: center;
    padding: 16px;
    gap: 12px;
    border-bottom: 1px solid var(--color-gray-200);
}
.search-overlay-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    font-weight: 500;
}
.search-overlay-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

/* Slide Panel (for profile detail) */
.slide-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 92%;
    height: 100dvh;
    z-index: 90;
    background: white;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}
.slide-panel.active {
    transform: translateX(0);
}
.panel-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 89;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.panel-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* Tab Indicator */
.tab-indicator {
    position: absolute;
    bottom: 0;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: left 0.3s ease, width 0.3s ease;
}

/* Banner Carousel */
.banner-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    margin: 0 16px;
}
.banner-carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}
.banner-carousel-slide {
    flex-shrink: 0;
    width: 100%;
    cursor: pointer;
}
.banner-carousel-slide img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
}
.banner-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}
.banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(233, 30, 123, 0.25);
    transition: all 0.3s;
    cursor: pointer;
}
.banner-dot.active {
    background: var(--color-primary);
    transform: scale(1.3);
}

/* Section Entrance */
.section-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.section-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Bottom Nav Enhanced */
.bottom-nav {
    position: fixed;
    bottom: 0;
    background: #FFFFFF;
    border-top: 1px solid var(--color-gray-200);
    height: 64px;
    width: 100dvw;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    justify-items: center;
    z-index: 80;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
}
@media (min-width: 768px) {
    .bottom-nav {
        width: 60dvw;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 24px 24px 0 0;
    }
}
.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 0;
    position: relative;
    cursor: pointer;
    border: none;
    background: transparent;
    transition: all 0.2s;
}
.nav-btn.active .nav-icon {
    animation: iconBounce 0.4s ease;
}
.nav-btn .nav-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-gray-400);
    transition: color 0.2s;
}
.nav-btn.active .nav-label {
    color: var(--color-primary);
}
.nav-indicator {
    position: absolute;
    bottom: 2px;
    height: 3px;
    width: 24px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: left 0.3s ease;
}

/* Guide Blocks */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 16px;
    margin-bottom: 24px;
}
.guide-block {
    padding: 20px 12px;
    border-radius: 16px;
    background: linear-gradient(135deg, #FFF0F5, #FFD6E8);
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-gray-800);
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(233, 30, 123, 0.08);
}
.guide-block:active {
    transform: scale(0.96);
}

/* Bottom Sheet (advance_search) */
.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 95;
    background: white;
    border-radius: 24px 24px 0 0;
    max-height: 85dvh;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
}
.bottom-sheet.active {
    transform: translateY(0);
}
.bottom-sheet-handle {
    width: 40px;
    height: 4px;
    background: var(--color-gray-300);
    border-radius: 4px;
    margin: 12px auto;
}
.bottom-sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 94;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.bottom-sheet-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* Member page gradient */
.member-banner {
    background: linear-gradient(135deg, var(--color-primary), #FF5CA1);
    border-radius: 0 0 32px 32px;
    padding: 32px 24px 24px;
    color: white;
    text-align: center;
}
.member-stat {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}
.member-stat-card {
    flex: 1;
    background: rgba(255,255,255,0.2);
    border-radius: 16px;
    padding: 16px;
    backdrop-filter: blur(4px);
}
.member-stat-value {
    font-size: 24px;
    font-weight: 700;
    animation: countUp 0.6s ease-out;
}
.member-stat-label {
    font-size: 12px;
    opacity: 0.9;
    margin-top: 4px;
}

/* iOS grouped menu */
.ios-menu-group {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    margin: 16px;
    box-shadow: 0 2px 12px rgba(233, 30, 123, 0.06);
}
.ios-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-gray-200);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-gray-800);
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
    text-align: left;
    background: transparent;
    border-left: none;
    border-right: none;
    border-top: none;
}
.ios-menu-item:last-child {
    border-bottom: none;
}
.ios-menu-item:active {
    background: var(--color-gray-100);
}
.ios-menu-chevron {
    color: var(--color-gray-300);
    font-size: 18px;
}

/* News hero layout */
.news-hero {
    position: relative;
    width: 100%;
    border-radius: 0 0 24px 24px;
    overflow: hidden;
}
.news-hero img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}
.news-content-card {
    background: white;
    border-radius: 24px 24px 0 0;
    margin-top: -32px;
    position: relative;
    z-index: 2;
    padding: 24px 20px;
    min-height: 50dvh;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}

/* OTP input boxes */
.otp-container {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.otp-box {
    width: 48px;
    height: 56px;
    border-radius: 12px;
    border: 2px solid var(--color-gray-200);
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    transition: border-color 0.2s;
    outline: none;
}
.otp-box:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(233, 30, 123, 0.1);
}

/* Segment control for sorting */
.segment-control {
    display: flex;
    background: #F5D5E0;
    border-radius: 12px;
    padding: 3px;
    position: relative;
}
.segment-btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    border-radius: 10px;
    color: var(--color-gray-600);
    cursor: pointer;
    transition: all 0.3s;
    z-index: 1;
    border: none;
    background: transparent;
}
.segment-btn.active {
    background: white;
    color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Tab pills for search_result categories */
.tab-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 8px 16px;
}
.tab-pills::-webkit-scrollbar {
    display: none;
}
.tab-pill {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid var(--color-gray-200);
    color: var(--color-gray-600);
    background: white;
    transition: all 0.2s;
    white-space: nowrap;
}
.tab-pill.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* Login card */
.login-card {
    background: white;
    border-radius: 24px;
    padding: 32px 24px;
    margin: 0 16px;
    box-shadow: 0 4px 24px rgba(233, 30, 123, 0.1);
}
.login-brand {
    text-align: center;
    margin-bottom: 32px;
}
.login-brand-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 16px;
}
.login-brand-sub {
    font-size: 14px;
    color: var(--color-gray-600);
    margin-top: 8px;
}

/* Sticky bottom button */
.sticky-bottom-btn {
    position: sticky;
    bottom: 0;
    padding: 16px;
    background: white;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
}

/* Favorite carousel */
.fav-carousel-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 16px 8px;
}
.fav-carousel-track::-webkit-scrollbar {
    display: none;
}

/* ==========================================================================
   Profile Beta — Card Flow Design (Hinge / Dating App style)
   ========================================================================== */

/* --- Header gradient bar --- */
.profile-beta-header {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    box-shadow: 0 2px 16px rgba(233, 30, 123, 0.25);
}

/* --- Alternating card animations --- */
@keyframes profileCardSlideLeft {
    from { opacity: 0; transform: translateX(-30px) rotate(-1deg); }
    to   { opacity: 1; transform: translateX(0) rotate(-0.3deg); }
}
@keyframes profileCardSlideRight {
    from { opacity: 0; transform: translateX(30px) rotate(1deg); }
    to   { opacity: 1; transform: translateX(0) rotate(0.3deg); }
}
@keyframes profileTagPop {
    0%   { transform: scale(0); }
    80%  { transform: scale(1.1); }
    100% { transform: scale(1); }
}
@keyframes profileShimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes profileCtaPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(233, 30, 123, 0.35); }
    50%      { box-shadow: 0 4px 25px rgba(233, 30, 123, 0.6); }
}

/* --- Card base: hidden until observed --- */
.profile-beta-card {
    opacity: 0;
    will-change: transform, opacity;
}
.profile-beta-card-left {
    transform: translateX(-30px) rotate(-0.8deg);
}
.profile-beta-card-right {
    transform: translateX(30px) rotate(0.8deg);
}

/* --- Card visible state (triggered by IntersectionObserver) --- */
.profile-beta-card-visible.profile-beta-card-left {
    animation: profileCardSlideLeft 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.profile-beta-card-visible.profile-beta-card-right {
    animation: profileCardSlideRight 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* --- Inner card styling for info cards --- */
.profile-beta-card .bg-white.rounded-2xl {
    border: 1px solid var(--color-gray-200);
    box-shadow: 0 4px 20px rgba(233, 30, 123, 0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.profile-beta-card .bg-white.rounded-2xl:hover {
    box-shadow: 0 8px 28px rgba(233, 30, 123, 0.14);
}

/* --- Price card accent bar --- */
.profile-beta-price-card {
    position: relative;
    overflow: hidden;
}
.profile-beta-price-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--color-primary), var(--color-primary-light));
    border-radius: 4px 0 0 4px;
}

/* --- Service tags pop animation --- */
.profile-beta-card-visible .theme-tag,
.profile-beta-card-visible .theme-tag-outline {
    animation: profileTagPop 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
.profile-beta-card-visible .theme-tag:nth-child(1) { animation-delay: 0.05s; }
.profile-beta-card-visible .theme-tag:nth-child(2) { animation-delay: 0.1s; }
.profile-beta-card-visible .theme-tag:nth-child(3) { animation-delay: 0.15s; }
.profile-beta-card-visible .theme-tag:nth-child(4) { animation-delay: 0.2s; }
.profile-beta-card-visible .theme-tag:nth-child(5) { animation-delay: 0.25s; }
.profile-beta-card-visible .theme-tag-outline:nth-child(1) { animation-delay: 0.05s; }
.profile-beta-card-visible .theme-tag-outline:nth-child(2) { animation-delay: 0.1s; }
.profile-beta-card-visible .theme-tag-outline:nth-child(3) { animation-delay: 0.15s; }
.profile-beta-card-visible .theme-tag-outline:nth-child(4) { animation-delay: 0.2s; }
.profile-beta-card-visible .theme-tag-outline:nth-child(5) { animation-delay: 0.25s; }

/* --- Sticky CTA bar --- */
.profile-beta-sticky-cta {
    position: fixed;
    bottom: 64px; /* above bottom-nav */
    left: 0;
    right: 0;
    z-index: 70;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--color-gray-200);
    box-shadow: 0 -4px 20px rgba(233, 30, 123, 0.08);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
.profile-beta-sticky-cta-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
@media (min-width: 768px) {
    .profile-beta-sticky-cta {
        width: 60dvw;
        left: 50%;
        transform: translateX(-50%) translateY(100%);
        border-radius: 16px 16px 0 0;
    }
    .profile-beta-sticky-cta-visible {
        transform: translateX(-50%) translateY(0);
    }
}

/* --- CTA button with shimmer + pulse --- */
.profile-beta-cta-btn {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    box-shadow: 0 4px 15px rgba(233, 30, 123, 0.35);
    animation: profileCtaPulse 2.5s ease-in-out infinite;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}
.profile-beta-cta-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.25),
        transparent
    );
    animation: profileShimmer 3s ease-in-out infinite;
}
.profile-beta-cta-btn:active {
    transform: scale(0.96);
    box-shadow: 0 2px 10px rgba(233, 30, 123, 0.4);
}

/* --- Gallery container override for beta layout --- */
#div_img_headshot_container .gallery-common,
#div_img_headshot_container .gallery-common-multiple {
    border-radius: 16px;
    overflow: hidden;
}

/* --- Banner thumbnail scroll in beta --- */
#div_banner_container .caipin-media-slides {
    border-radius: 12px;
    border: 2px solid transparent;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
#div_banner_container .caipin-media-slides:hover {
    border-color: var(--color-primary);
    transform: scale(1.05);
}

/* --- Review section horizontal scroll --- */
.profile-beta-reviews-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 8px 0;
}
.profile-beta-reviews-scroll::-webkit-scrollbar {
    display: none;
}
.profile-beta-review-card {
    flex-shrink: 0;
    width: 260px;
    scroll-snap-align: start;
    background: white;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid var(--color-gray-200);
    box-shadow: 0 2px 12px rgba(233, 30, 123, 0.06);
}

/* --- Reduced motion support --- */
@media (prefers-reduced-motion: reduce) {
    .profile-beta-card,
    .profile-beta-card-left,
    .profile-beta-card-right {
        opacity: 1;
        transform: none;
    }
    .profile-beta-card-visible.profile-beta-card-left,
    .profile-beta-card-visible.profile-beta-card-right {
        animation: none;
    }
    .profile-beta-cta-btn {
        animation: none;
    }
    .profile-beta-cta-btn::after {
        animation: none;
    }
    .profile-beta-sticky-cta {
        transition: none;
    }
    .profile-beta-card-visible .theme-tag,
    .profile-beta-card-visible .theme-tag-outline {
        animation: none;
    }
}