
:root {
    touch-action: manipulation;
    scroll-smooth;

    /* === Brand Colors === */
    --color-primary: #6C5CE7;          /* 主色 violet */
    --color-primary-light: #A29BFE;    /* 主色亮 - SVG icons, hover */
    --color-primary-bg: #0F0C29;       /* 主色深背景 */

    /* === Neutral Colors === */
    --color-white: #ECEAF5;
    --color-gray-100: rgba(255,255,255,0.05);  /* hover state */
    --color-gray-200: rgba(255,255,255,0.12);  /* borders */
    --color-gray-300: #596275;         /* slider, inactive */
    --color-gray-400: #7B7B8E;         /* placeholder */
    --color-gray-600: #9B99B5;         /* secondary text */
    --color-gray-800: #ECEAF5;         /* primary text */

    /* === Accent Colors === */
    --color-accent-pink: rgba(108, 92, 231, 0.9);  /* girl name highlight */
    --color-accent-blue: #A29BFE;      /* active slider shadow */
    --color-accent-green: #00B894;     /* slider fill */

    /* === State Colors === */
    --color-success: #00B894;
    --color-warning: #FDCB6E;
    --color-error: #FF6B6B;
    --color-info: #A29BFE;
}

.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 #ECEAF5;
  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;
}

/* === Glassmorphism Theme === */
body {
    background: linear-gradient(135deg, #0F0C29 0%, #302B63 50%, #24243E 100%);
    background-attachment: fixed;
    color: #ECEAF5;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
}
h1, h2, h3, .text-xl, .text-2xl, .text-lg {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.system-bg-color
{
    background: transparent;
}

.system-bg-color-dark
{
    background: linear-gradient(135deg, #6C5CE7, #A29BFE);
    color: white;
}

.system-color
{
    color: #A29BFE;
}

.theme-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    transition: all 0.3s ease;
}
.theme-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(162, 155, 254, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(108, 92, 231, 0.15);
}

.theme-glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.theme-btn-primary {
    background: linear-gradient(135deg, #6C5CE7, #A29BFE);
    color: white;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
    transition: all 0.3s ease;
}
.theme-btn-primary:hover {
    box-shadow: 0 6px 25px rgba(108, 92, 231, 0.6);
    transform: translateY(-1px);
}

.theme-nav {
    background: rgba(15, 12, 41, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.theme-nav-active { color: #A29BFE; }

.theme-input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #ECEAF5;
    backdrop-filter: blur(10px);
    transition: all 0.2s;
}
.theme-input:focus {
    border-color: #6C5CE7;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}
.theme-input::placeholder {
    color: #7B7B8E;
}

.theme-section-title {
    background: linear-gradient(135deg, #6C5CE7, #A29BFE);
    color: white;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 8px;
}

.theme-tag {
    background: linear-gradient(135deg, #6C5CE7, #A29BFE);
    color: white;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
}

.theme-tag-outline {
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #9B99B5;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.2s;
}
.theme-tag-outline:hover {
    border-color: #A29BFE;
    color: #A29BFE;
    background: rgba(108, 92, 231, 0.1);
}

.theme-skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.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;
}


/* ============================================
   Masonry / Pinterest Layout
   ============================================ */
.masonry-grid {
    columns: 2;
    column-gap: 10px;
    padding: 0 10px;
}
.masonry-card {
    break-inside: avoid;
    margin-bottom: 10px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
.masonry-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 32px rgba(108, 92, 231, 0.2);
    border-color: rgba(162, 155, 254, 0.3);
}
.masonry-card img {
    width: 100%;
    display: block;
    object-fit: cover;
}
.masonry-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 12px;
    background: linear-gradient(transparent, rgba(15, 12, 41, 0.85));
    color: white;
}
.masonry-card-info .card-name {
    font-weight: 700;
    font-size: 14px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.masonry-card-info .card-price {
    font-size: 11px;
    opacity: 0.85;
    margin-top: 2px;
}
.masonry-card .card-like {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: transform 0.2s;
}
.masonry-card .card-like:hover {
    transform: scale(1.15);
}
.masonry-card .card-like img {
    width: 16px;
    height: 16px;
}

/* ============================================
   Stories Bar (IG-style)
   ============================================ */
.stories-bar {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 8px 12px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.stories-bar::-webkit-scrollbar { display: none; }
.story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
}
.story-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    padding: 3px;
    background: transparent;
    flex-shrink: 0;
    position: relative;
}
.story-avatar::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(#6C5CE7, #A29BFE, #fd79a8, #6C5CE7);
    animation: storyRing 3s linear infinite;
    z-index: 0;
    mask: repeating-conic-gradient(#000 0deg 35deg, transparent 35deg 45deg);
    -webkit-mask: repeating-conic-gradient(#000 0deg 35deg, transparent 35deg 45deg);
}
.story-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-primary-bg);
    position: relative;
    z-index: 1;
}
@keyframes storyRing {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.story-name {
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    color: var(--color-gray-600);
    margin-top: 4px;
    max-width: 68px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
}

/* ============================================
   Category Tabs with Sliding Underline
   ============================================ */
.category-tabs {
    display: flex;
    position: relative;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid var(--color-gray-200);
}
.category-tabs::-webkit-scrollbar { display: none; }
.category-tab {
    flex-shrink: 0;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-gray-600);
    transition: color 0.3s;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
    white-space: nowrap;
}
.category-tab.active {
    color: var(--color-primary-light);
}
.tab-indicator {
    position: absolute;
    bottom: -1px;
    height: 3px;
    background: linear-gradient(90deg, #6C5CE7, #A29BFE);
    border-radius: 2px;
    transition: left 0.3s ease, width 0.3s ease;
}

/* ============================================
   Fullscreen Overlay (FLIP animation)
   ============================================ */
.fullscreen-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: var(--color-primary-bg);
    opacity: 0;
    transition: opacity 0.35s;
    overflow-y: auto;
    pointer-events: none;
}
.fullscreen-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.overlay-image-section {
    height: 55dvh;
    position: relative;
    overflow: hidden;
}
.overlay-image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.overlay-info-section {
    min-height: 45dvh;
    padding: 20px 16px;
    background: var(--color-primary-bg);
}
.overlay-close {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 110;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}
.overlay-close:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* ============================================
   Masonry Card Entrance Animation
   ============================================ */
@keyframes masonryFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.masonry-card.animate-in {
    animation: masonryFadeIn 0.5s ease forwards;
}

/* ============================================
   Image Progressive Blur-In Load
   ============================================ */
@keyframes imageBlurIn {
    from { filter: blur(20px); transform: scale(1.1); }
    to { filter: blur(0); transform: scale(1); }
}
.img-blur-load {
    animation: imageBlurIn 0.6s ease forwards;
}

/* ============================================
   Heart Fill Animation
   ============================================ */
@keyframes heartFill {
    from { clip-path: inset(100% 0 0 0); }
    to { clip-path: inset(0 0 0 0); }
}
.heart-animate {
    animation: heartFill 0.3s ease forwards;
}

/* ============================================
   Infinite Scroll Spinner
   ============================================ */
.scroll-sentinel {
    width: 100%;
    height: 1px;
}
.scroll-spinner {
    display: flex;
    justify-content: center;
    padding: 20px;
    column-span: all;
}
.scroll-spinner::after {
    content: '';
    width: 30px;
    height: 30px;
    border: 3px solid var(--color-gray-200);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================
   Bottom Nav Dot Indicator
   ============================================ */
.nav-dot {
    position: absolute;
    bottom: 2px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary);
    transition: left 0.3s ease;
}

/* ============================================
   Glass-morphism Login Card
   ============================================ */
.glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ============================================
   IG-style Member Profile
   ============================================ */
.member-cover {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #6C5CE7, #302B63, #0F0C29);
    position: relative;
}
.member-avatar-wrap {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 3px solid var(--color-primary);
    overflow: hidden;
    margin-top: -44px;
    background: var(--color-primary-bg);
}
.member-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.member-stats {
    display: flex;
    justify-content: space-around;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.member-stat-item {
    text-align: center;
}
.member-stat-item .stat-num {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary-light);
}
.member-stat-item .stat-label {
    font-size: 11px;
    color: var(--color-gray-600);
    margin-top: 2px;
}

/* ============================================
   FAB (Floating Action Button) for Search
   ============================================ */
.fab-filter {
    position: fixed;
    bottom: 80px;
    right: 16px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6C5CE7, #A29BFE);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.5);
    cursor: pointer;
    z-index: 50;
    border: none;
    transition: transform 0.3s, box-shadow 0.3s;
}
.fab-filter:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(108, 92, 231, 0.7);
}
.fab-filter.open {
    transform: rotate(45deg);
}
.fab-panel {
    position: fixed;
    bottom: 140px;
    right: 16px;
    width: calc(100vw - 32px);
    max-width: 380px;
    max-height: 60vh;
    overflow-y: auto;
    background: rgba(15, 12, 41, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 20px;
    z-index: 50;
    transform: scale(0.8) translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}
.fab-panel.open {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* ============================================
   News Hero Card
   ============================================ */
.news-hero {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
}
.news-hero img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.news-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(transparent, rgba(15, 12, 41, 0.9));
    color: white;
}

/* ============================================
   Glass OTP Input
   ============================================ */
.otp-input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #ECEAF5;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.otp-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.3);
}

/* ============================================
   PROFILE GAMMA — Split Screen Layout
   Netflix / Spotify Artist Page design
   ============================================ */

/* --- Wrapper --- */
.profile-gamma-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    min-height: 100dvh;
    overflow-x: hidden;
}

/* --- Top Photo Area (sticky, 50dvh) --- */
.profile-gamma-photo {
    position: sticky;
    top: 0;
    z-index: 1;
    width: 100%;
    height: 50dvh;
    overflow: hidden;
    background: var(--color-primary-bg);
}

.profile-gamma-photo-skeleton {
    width: 100%;
    height: 100%;
}

/* Override gallery styles inside gamma photo area */
.profile-gamma-photo .gallery-common {
    width: 100% !important;
    max-width: 100% !important;
    height: 50dvh !important;
    max-height: 50dvh !important;
    grid-template: 1fr / 1fr !important;
    gap: 0 !important;
}

/* In gamma layout, show only first image full-bleed, hide others */
.profile-gamma-photo .gallery-common > div {
    grid-column: 1 / -1 !important;
    grid-row: 1 / -1 !important;
    width: 100% !important;
    height: 100% !important;
}
.profile-gamma-photo .gallery-common > div:not(:first-child) {
    display: none;
}

.profile-gamma-photo .gallery-common > div > img,
.profile-gamma-photo .gallery-common > div > video {
    width: 100%;
    height: 50dvh;
    object-fit: cover;
    object-position: center top;
}

/* Gallery active state (after JS processes) */
.profile-gamma-gallery-active > div:first-child {
    position: relative;
}

/* Ken Burns slow zoom animation on hero image */
.profile-gamma-ken-burns {
    animation: profileKenBurns 20s ease-in-out infinite !important;
    will-change: transform;
}

/* Prevent gallery hover blur in gamma layout */
.profile-gamma-photo .gallery-common > div:hover img {
    filter: none !important;
}

/* --- Gradient Overlay at bottom of photo --- */
.profile-gamma-photo-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50dvh;
    z-index: 3;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 40%,
        rgba(15, 12, 41, 0.15) 60%,
        rgba(15, 12, 41, 0.5) 80%,
        rgba(15, 12, 41, 0.85) 100%
    );
}

/* Floating name row at bottom of photo */
.profile-gamma-name-row {
    padding: 0 20px 16px;
    pointer-events: auto;
}

.profile-gamma-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #ECEAF5;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 14px;
    background: rgba(108, 92, 231, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    border: 1px solid rgba(162, 155, 254, 0.25);
}

/* --- Floating Toolbar (back, share, heart) --- */
.profile-gamma-toolbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    max-width: 600px;
    margin: 0 auto;
    pointer-events: none;
}

.profile-gamma-toolbar > * {
    pointer-events: auto;
}

.profile-gamma-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ECEAF5;
    cursor: pointer;
    transition: all 0.25s ease;
}

.profile-gamma-icon-btn:hover {
    background: rgba(108, 92, 231, 0.5);
    border-color: rgba(162, 155, 254, 0.4);
    transform: scale(1.08);
}

.profile-gamma-icon-btn:active {
    transform: scale(0.95);
}

/* --- Bottom Panel (tabbed, 50dvh+) --- */
.profile-gamma-panel {
    position: relative;
    z-index: 5;
    min-height: 50dvh;
    background: rgba(15, 12, 41, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(162, 155, 254, 0.15);
    border-radius: 24px 24px 0 0;
    margin-top: -20px;
    padding-bottom: 140px;
}

.profile-gamma-panel-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* --- Tab Bar --- */
.profile-gamma-tabs {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: rgba(15, 12, 41, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px 24px 0 0;
    position: relative;
}

.profile-gamma-tab {
    flex: 1;
    padding: 14px 0;
    text-align: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-gray-300);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
    -webkit-tap-highlight-color: transparent;
}

.profile-gamma-tab.active {
    color: var(--color-primary-light);
}

.profile-gamma-tab:hover:not(.active) {
    color: var(--color-gray-600);
}

/* Sliding violet underline indicator */
.profile-gamma-tab-indicator {
    position: absolute;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    border-radius: 3px 3px 0 0;
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 12px rgba(108, 92, 231, 0.5);
}

/* --- Scrollable Content Area --- */
.profile-gamma-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 16px 20px;
}

/* Section containers */
.profile-gamma-section {
    animation: profileTabFadeIn 0.4s ease forwards;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 16px;
}

.profile-gamma-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Section headers */
.profile-gamma-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--color-primary-light);
    margin-bottom: 14px;
    padding: 8px 0;
}

.profile-gamma-section-header svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

/* --- Banner / Thumbnail Scroll Row --- */
.profile-gamma-banner-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.profile-gamma-banner-row > div {
    flex-shrink: 0;
    scroll-snap-align: start;
}

.profile-gamma-banner-row img,
.profile-gamma-banner-row video {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.profile-gamma-banner-row img:hover,
.profile-gamma-banner-row video:hover {
    border-color: rgba(162, 155, 254, 0.4);
    transform: scale(1.03);
}

/* --- Sticky CTA (fixed at bottom of viewport) --- */
.profile-gamma-cta {
    position: fixed;
    bottom: 60px;
    left: 0;
    right: 0;
    z-index: 20;
    padding: 12px 16px;
    background: rgba(15, 12, 41, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(162, 155, 254, 0.12);
    max-width: 600px;
    margin: 0 auto;
}

.profile-gamma-cta button {
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.45), 0 0 40px rgba(108, 92, 231, 0.15);
}

/* --- Bottom Navigation (profile variant) --- */
.profile-gamma-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 45px 12px;
    height: 60px;
    background: rgba(15, 12, 41, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    max-width: 600px;
    margin: 0 auto;
}

.profile-gamma-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: none;
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.2s;
}

.profile-gamma-nav button:active {
    transform: scale(0.9);
}

/* ============================================
   PROFILE GAMMA — Animations
   ============================================ */

/* Ken Burns slow zoom — cinematic feel */
@keyframes profileKenBurns {
    0% {
        transform: scale(1) translate(0, 0);
    }
    25% {
        transform: scale(1.06) translate(-1%, -0.5%);
    }
    50% {
        transform: scale(1.1) translate(-1.5%, -1%);
    }
    75% {
        transform: scale(1.06) translate(-0.5%, -1.5%);
    }
    100% {
        transform: scale(1) translate(0, 0);
    }
}

/* Tab content fade in */
@keyframes profileTabFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Split reveal */
@keyframes profileSplitReveal {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Price highlight shimmer */
@keyframes profilePriceHighlight {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Star sparkle */
@keyframes profileStarSparkle {
    0%, 100% {
        opacity: 0.5;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Photo cross-fade */
@keyframes profileCrossFade {
    0% { opacity: 0; }
    10% { opacity: 1; }
    40% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 0; }
}

/* ============================================
   PROFILE GAMMA — Content Styling Overrides
   Style the injected profile.js content
   ============================================ */

/* Price containers in gamma layout */
.profile-gamma-section #div_in_price_container,
.profile-gamma-section #div_out_price_container {
    background: rgba(108, 92, 231, 0.08);
    border: 1px solid rgba(162, 155, 254, 0.12);
    border-radius: 12px;
    padding: 10px 14px;
    margin-top: 10px;
}

/* Service type pills */
.profile-gamma-section #caipin_info_service_type {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Star rating in gamma */
.profile-gamma-section .gl-star-rating {
    margin-top: 2px;
}

/* Comment section styling */
.profile-gamma-section #div_scoring_container > div {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.2s;
}

.profile-gamma-section #div_scoring_container > div:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* ============================================
   PROFILE GAMMA — Responsive
   ============================================ */

@media (min-width: 768px) {
    .profile-gamma-photo {
        height: 55dvh;
    }

    .profile-gamma-photo .gallery-common {
        height: 55dvh !important;
        max-height: 55dvh !important;
    }

    .profile-gamma-photo .gallery-common > div > img,
    .profile-gamma-photo .gallery-common > div > video {
        height: 55dvh;
    }

    .profile-gamma-photo-overlay {
        height: 55dvh;
    }

    .profile-gamma-panel {
        min-height: 45dvh;
    }

    .profile-gamma-name {
        font-size: 26px;
        padding: 6px 18px;
    }

    .profile-gamma-tab {
        font-size: 15px;
        padding: 16px 0;
    }

    .profile-gamma-content {
        padding: 20px 24px 24px;
    }
}

/* ============================================
   PROFILE GAMMA — Dark frosted glass specifics
   Extra polish
   ============================================ */

/* Subtle glow on panel top edge */
.profile-gamma-panel::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(162, 155, 254, 0.4),
        rgba(108, 92, 231, 0.6),
        rgba(162, 155, 254, 0.4),
        transparent
    );
    border-radius: 1px;
    z-index: 1;
}

/* Glow effect behind CTA button */
.profile-gamma-cta::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to top, rgba(15, 12, 41, 0.92), transparent);
    pointer-events: none;
}

/* Smooth entrance for the panel */
.profile-gamma-panel {
    animation: profileSplitReveal 0.5s ease forwards;
}