/* ==========================================
   VIRD.CLICK - MAIN STYLES
   ========================================== */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    height: 100%;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overscroll-behavior: none;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 4px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ==========================================
   SPLASH SCREEN
   ========================================== */
.splash-screen {
    position: fixed;
    inset: 0;
    background: var(--gradient-premium);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-splash);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.splash-screen.hide {
    opacity: 0;
    transform: scale(1.1);
    pointer-events: none;
}
.splash-content {
    text-align: center;
}
.splash-logo-img {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    margin-bottom: 16px;
    animation: bounceIn 0.8s ease;
}
.splash-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    color: white;
    letter-spacing: -1px;
}
.splash-tagline {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    margin-top: 4px;
}
.splash-loader {
    width: 200px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    margin: 32px auto 0;
    overflow: hidden;
}
.loader-bar {
    height: 100%;
    width: 0%;
    background: white;
    border-radius: 4px;
    animation: loadBar 2s ease forwards;
}

@keyframes loadBar {
    0% { width: 0%; }
    50% { width: 60%; }
    100% { width: 100%; }
}

@keyframes bounceIn {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

/* ==========================================
   APP CONTAINER
   ========================================== */
.app-container {
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* ==========================================
   TOP HEADER
   ========================================== */
.top-header {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    padding-top: calc(8px + var(--safe-top));
    background: var(--bg-primary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    height: var(--header-height);
    min-height: var(--header-height);
}
.header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}
.header-logo {
    width: 28px;
    height: 28px;
    border-radius: 8px;
}
.header-brand {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.header-tabs {
    display: flex;
    gap: 4px;
}
.tab-btn {
    background: none;
    border: none;
    padding: 6px 14px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--border-radius-full);
    transition: all var(--transition-fast);
    font-family: var(--font-primary);
    white-space: nowrap;
}
.tab-btn.active {
    background: var(--primary-light);
    color: var(--primary-dark);
}
.tab-btn:hover {
    background: var(--bg-hover);
}
.header-right {
    display: flex;
    align-items: center;
    gap: 6px;
}
.header-icon-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: none;
    border-radius: var(--border-radius-full);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 1.1rem;
    position: relative;
}
.header-icon-btn:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}
.notification-btn .notif-badge,
.chat-badge,
.cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--error-dark);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--bg-primary);
}
#coins-display {
    width: auto;
    padding: 4px 10px;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--gradient-card);
    border: 1px solid var(--border-light);
}
.coin-free, .coin-paid {
    display: flex;
    align-items: center;
    gap: 2px;
}

/* ==========================================
   STORIES BAR
   ========================================== */
.stories-bar {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    min-height: var(--stories-height);
    padding: 8px 0;
}
.stories-scroll {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 0 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.stories-scroll::-webkit-scrollbar {
    display: none;
}
.stories-list {
    display: flex;
    gap: 12px;
}
.story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    flex-shrink: 0;
}
.story-avatar-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    padding: 2px;
    background: var(--gradient-primary);
}
.story-avatar-wrapper.add {
    background: var(--bg-secondary);
    border: 2px dashed var(--border-medium);
}
.story-avatar-wrapper.viewed {
    background: var(--border-light);
}
.story-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--bg-primary);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
}
.story-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.story-username {
    font-size: 0.7rem;
    color: var(--text-secondary);
    max-width: 64px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

/* ==========================================
   MAIN CONTENT
   ========================================== */
.main-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: y proximity;
    padding-bottom: var(--nav-height);
}
.feed-container {
    display: none;
    min-height: 100%;
}
.feed-container.active {
    display: block;
}
.posts-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
}

/* ==========================================
   POST CARD
   ========================================== */
.post-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    transition: transform var(--transition-fast);
    position: relative;
}
.post-card:active {
    transform: scale(0.995);
}

/* Post Header */
.post-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 10px;
}
.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    border: 2px solid var(--primary-light);
}
.post-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.post-user-info {
    flex: 1;
    min-width: 0;
}
.post-username {
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}
.post-username .verified-badge {
    color: var(--verified-color);
    font-size: 0.9rem;
}
.post-username .verified-badge.glow-verified {
    filter: drop-shadow(0 0 6px rgba(96, 165, 250, 0.8));
}

/* User Tags */
.user-tag {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    border-radius: var(--border-radius-full);
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 4px;
}
.user-tag.admin {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: white;
    display: none; /* Hidden from normal users */
}
.user-tag.moderator {
    background: linear-gradient(135deg, #a8d8ea, #60a5fa);
    color: white;
}
.user-tag.vip {
    background: var(--gradient-gold);
    color: #5c3d00;
}
.user-tag.custom {
    background: var(--gradient-premium);
    color: white;
}

.post-meta {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 4px;
}
.post-level-badge {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 0 4px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
}
.post-more-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
}

/* Post Content */
.post-content {
    padding: 0 16px;
}
.post-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 12px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.post-text .mention {
    color: var(--primary-dark);
    font-weight: 600;
    cursor: pointer;
}
.post-text .hashtag {
    color: var(--info-dark);
    font-weight: 500;
    cursor: pointer;
}

/* Post Media */
.post-media {
    position: relative;
    width: 100%;
    background: var(--bg-secondary);
    overflow: hidden;
}
.post-media img,
.post-media video {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    display: block;
}
.post-media-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.post-media-carousel::-webkit-scrollbar {
    display: none;
}
.carousel-item {
    min-width: 100%;
    scroll-snap-align: center;
}
.carousel-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 4px;
    padding: 8px;
}
.carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border-medium);
    transition: all var(--transition-fast);
}
.carousel-dot.active {
    background: var(--primary);
    width: 18px;
    border-radius: 3px;
}

/* Buy Button on Post (Yellow Bag) */
.post-buy-btn {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #FFC107;
    color: #333;
    border: none;
    border-radius: var(--border-radius-full);
    padding: 8px 16px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(255, 193, 7, 0.4);
    animation: buyBtnPulse 2s ease-in-out infinite;
    z-index: 10;
}
.post-buy-btn i {
    font-size: 1.1rem;
}
.post-buy-btn:hover {
    background: #FFB300;
    transform: scale(1.05);
}

@keyframes buyBtnPulse {
    0%, 100% { box-shadow: 0 2px 10px rgba(255, 193, 7, 0.4); }
    50% { box-shadow: 0 2px 20px rgba(255, 193, 7, 0.6); }
}

/* Post Actions */
.post-actions {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    gap: 4px;
}
.post-action-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: var(--border-radius-full);
    transition: all var(--transition-fast);
    font-family: var(--font-primary);
}
.post-action-btn:hover {
    background: var(--bg-hover);
}
.post-action-btn.liked {
    color: var(--error-dark);
}
.post-action-btn.liked i {
    animation: likeHeart 0.3s ease;
}
.post-action-btn i {
    font-size: 1.2rem;
}
.post-action-btn .action-count {
    font-weight: 600;
    font-size: 0.8rem;
}

@keyframes likeHeart {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.post-action-spacer {
    flex: 1;
}

/* Post Boost Badge */
.post-boosted-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: var(--border-radius-full);
    margin: 0 16px 8px;
}

/* Live Badge on Feed */
.post-live-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--gradient-live);
    color: white;
    padding: 4px 10px;
    border-radius: var(--border-radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    animation: livePulse 1.5s ease-in-out infinite;
}
.post-live-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ==========================================
   BOTTOM NAVIGATION
   ========================================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    padding-bottom: var(--safe-bottom);
    background: var(--bg-card);
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: var(--z-fixed);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 8px 16px;
    position: relative;
    transition: all var(--transition-fast);
    font-family: var(--font-primary);
}
.nav-item.active {
    color: var(--primary-dark);
}
.nav-item.active .nav-icon {
    transform: scale(1.1);
}
.nav-icon {
    font-size: 1.4rem;
    transition: transform var(--transition-spring);
}
.nav-label {
    font-size: 0.65rem;
    font-weight: 600;
}
.nav-create {
    position: relative;
}
.create-btn-wrapper {
    width: 44px;
    height: 30px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    box-shadow: 0 2px 10px rgba(248, 164, 208, 0.4);
    transition: all var(--transition-fast);
}
.nav-create:hover .create-btn-wrapper {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(248, 164, 208, 0.5);
}
.nav-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}
.nav-item.active .nav-avatar {
    border-color: var(--primary);
}
.nav-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Floating Action Button */
.fab-create {
    display: none; /* Show on tablet/desktop */
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg), 0 4px 20px rgba(248, 164, 208, 0.4);
    z-index: var(--z-fixed);
    transition: all var(--transition-spring);
}
.fab-create:hover {
    transform: scale(1.1) rotate(90deg);
}

/* ==========================================
   MODALS & OVERLAYS
   ========================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-overlay);
    z-index: var(--z-modal-backdrop);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}
.modal-full {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: var(--z-modal);
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
    overflow-y: auto;
}
.modal-center {
    background: var(--bg-card);
    border-radius: var(--border-radius-xl);
    max-width: 400px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 24px;
    animation: scaleIn 0.3s var(--transition-spring);
    box-shadow: var(--shadow-xl);
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    z-index: 10;
}
.modal-header h2 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
}
.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Back Button */
.back-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.3rem;
    cursor: pointer;
    border-radius: 50%;
    transition: background var(--transition-fast);
}
.back-btn:hover {
    background: var(--bg-hover);
}

/* Primary Button */
.primary-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: var(--border-radius-full);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-primary);
}
.primary-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
.primary-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}
.text-btn {
    background: none;
    border: none;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: var(--font-primary);
}

/* Bottom Sheet */
.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-radius: var(--border-radius-xl) var(--border-radius-xl) 0 0;
    z-index: var(--z-modal);
    padding: 16px;
    max-height: 70vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}
.sheet-handle {
    width: 36px;
    height: 4px;
    background: var(--border-medium);
    border-radius: 2px;
    margin: 0 auto 16px;
}
.sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.sheet-header h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
}

/* Slide Panel */
.slide-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 420px;
    background: var(--bg-primary);
    z-index: var(--z-modal);
    animation: slideLeft 0.3s ease;
    overflow-y: auto;
}
.panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    z-index: 10;
}
.panel-header h2 {
    flex: 1;
    font-family: var(--font-display);
    font-size: 1.1rem;
}

/* ==========================================
   PAGE CONTAINERS
   ========================================== */
.page-container {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: var(--z-modal);
    overflow-y: auto;
    animation: slideRight 0.3s ease;
}
.page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    padding-top: calc(12px + var(--safe-top));
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    z-index: 10;
}
.page-header h2 {
    flex: 1;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
}

/* ==========================================
   FORM ELEMENTS
   ========================================== */
.auth-input, .form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1.5px solid var(--border-light);
    border-radius: var(--border-radius-md);
    font-size: 0.95rem;
    color: var(--text-primary);
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    font-family: var(--font-primary);
    margin-bottom: 12px;
}
.auth-input:focus, .form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-select {
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1.5px solid var(--border-light);
    border-radius: var(--border-radius-md);
    font-size: 0.95rem;
    color: var(--text-primary);
    outline: none;
    font-family: var(--font-primary);
    cursor: pointer;
}
.inline-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: var(--font-primary);
    text-align: right;
}
textarea.form-input,
#post-text, #image-caption, #video-caption {
    resize: none;
    min-height: 100px;
}
#post-text, #image-caption, #video-caption {
    width: 100%;
    padding: 16px;
    background: var(--bg-input);
    border: none;
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    color: var(--text-primary);
    outline: none;
    font-family: var(--font-primary);
    line-height: 1.6;
}

/* Auth Buttons */
.auth-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: var(--border-radius-md);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-primary);
    margin-bottom: 12px;
}
.auth-btn.primary {
    background: var(--gradient-primary);
    color: white;
}
.auth-btn.primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
.auth-btn.text {
    background: none;
    color: var(--primary-dark);
}
.auth-btn.google {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1.5px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.auth-btn.google img {
    width: 20px;
    height: 20px;
}
.auth-btn.google:hover {
    background: var(--bg-secondary);
}
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-light);
}
.auth-divider span {
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-switch .slider {
    position: absolute;
    inset: 0;
    background: var(--border-light);
    border-radius: var(--border-radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}
.toggle-switch .slider::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform var(--transition-fast);
    box-shadow: var(--shadow-sm);
}
.toggle-switch input:checked + .slider {
    background: var(--primary);
}
.toggle-switch input:checked + .slider::before {
    transform: translateX(20px);
}

.toggle-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    font-size: 0.9rem;
}
.toggle-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background: var(--border-light);
    border-radius: var(--border-radius-full);
    transition: all var(--transition-fast);
    flex-shrink: 0;
}
.toggle-slider::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform var(--transition-fast);
}
input:checked + .toggle-slider {
    background: var(--primary);
}
input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

/* ==========================================
   PROFILE PAGE
   ========================================== */
.profile-header-section {
    position: relative;
}
.profile-cover {
    height: 200px;
    background: var(--gradient-premium);
    position: relative;
    overflow: hidden;
}
.profile-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, var(--bg-primary));
}
.profile-back {
    position: absolute;
    top: 12px;
    left: 12px;
    color: white;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
}
.settings-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.profile-info-section {
    padding: 0 20px 16px;
    margin-top: -40px;
    position: relative;
}
.profile-avatar-container {
    position: relative;
    display: inline-block;
}
.profile-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--bg-primary);
    background: var(--bg-card);
    box-shadow: var(--shadow-lg);
}
.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-level-badge {
    position: absolute;
    bottom: 0;
    right: -4px;
    background: var(--gradient-primary);
    color: white;
    padding: 2px 8px;
    border-radius: var(--border-radius-full);
    font-size: 0.65rem;
    font-weight: 800;
    border: 2px solid var(--bg-primary);
}
.profile-name-section {
    margin-top: 8px;
}
.profile-display-name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
}
.profile-username {
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.profile-titles {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}
.title-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: var(--border-radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}
.title-badge.rare {
    background: linear-gradient(135deg, #d5aaff, #a8d8ea);
    color: white;
    border: none;
}
.title-badge.legendary {
    background: var(--gradient-gold);
    color: #5c3d00;
    border: none;
}
.profile-stats {
    display: flex;
    gap: 24px;
    margin: 16px 0;
}
.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}
.stat-number {
    font-weight: 800;
    font-size: 1.1rem;
    font-family: var(--font-display);
}
.stat-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}
.profile-bio {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 12px;
    line-height: 1.5;
}
.profile-actions {
    display: flex;
    gap: 8px;
}
.btn-edit-profile {
    flex: 1;
    padding: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-md);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--text-primary);
    font-family: var(--font-primary);
    transition: all var(--transition-fast);
}
.btn-edit-profile:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}
.btn-share-profile {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    color: var(--text-primary);
    font-size: 1.1rem;
}

/* Follow/Unfollow buttons for other profiles */
.btn-follow {
    flex: 1;
    padding: 10px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--border-radius-md);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    color: white;
    font-family: var(--font-primary);
}
.btn-following {
    flex: 1;
    padding: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-md);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--text-primary);
    font-family: var(--font-primary);
}

/* XP Progress */
.xp-progress-section {
    margin-top: 12px;
}
.xp-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}
.xp-level {
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--primary-dark);
}
.xp-text {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}
.xp-bar {
    height: 6px;
    background: var(--bg-secondary);
    border-radius: 3px;
    overflow: hidden;
}
.xp-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* Profile Tabs */
.profile-content-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    z-index: 5;
}
.profile-tab {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-tertiary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.profile-tab.active {
    color: var(--primary-dark);
    border-bottom-color: var(--primary);
}
.profile-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    padding: 2px;
}
.profile-posts-grid .grid-item {
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}
.profile-posts-grid .grid-item img,
.profile-posts-grid .grid-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.grid-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transition: opacity var(--transition-fast);
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
}
.grid-item:hover .grid-item-overlay {
    opacity: 1;
}

/* ==========================================
   CHAT STYLES
   ========================================== */
.chat-list {
    padding: 0 16px;
}
.chat-search {
    padding: 12px 0;
}
.chat-search input {
    width: 100%;
    padding: 10px 16px;
    background: var(--bg-secondary);
    border: none;
    border-radius: var(--border-radius-full);
    font-size: 0.9rem;
    color: var(--text-primary);
    outline: none;
    font-family: var(--font-primary);
}
.message-requests {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--primary-light);
    border-radius: var(--border-radius-md);
    margin-bottom: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-dark);
}
.request-count {
    margin-left: auto;
    background: var(--primary);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}
.conversation-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: background var(--transition-fast);
}
.conversation-item:hover {
    background: var(--bg-hover);
    margin: 0 -16px;
    padding: 12px 16px;
    border-radius: var(--border-radius-md);
}
.conv-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}
.conv-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.conv-online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: var(--success-dark);
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
}
.conv-info {
    flex: 1;
    min-width: 0;
}
.conv-name {
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 4px;
}
.conv-preview {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.conv-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}
.conv-time {
    font-size: 0.7rem;
    color: var(--text-tertiary);
}
.conv-unread {
    background: var(--primary);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
}

/* Chat Room */
.chat-room-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    padding-top: calc(12px + var(--safe-top));
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-primary);
}
.chat-user-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}
.chat-room-actions {
    display: flex;
    gap: 4px;
}
.chat-room-actions button {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 50%;
}
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.message-bubble {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.5;
    position: relative;
    animation: messageIn 0.2s ease;
}
.message-bubble.sent {
    align-self: flex-end;
    background: var(--gradient-primary);
    color: white;
    border-bottom-right-radius: 4px;
}
.message-bubble.received {
    align-self: flex-start;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}
.message-time {
    font-size: 0.65rem;
    opacity: 0.7;
    margin-top: 4px;
    text-align: right;
}
.message-sticker {
    max-width: 150px;
}
.message-sticker img {
    width: 100%;
    height: auto;
}

@keyframes messageIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-input-area {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 8px 12px;
    padding-bottom: calc(8px + var(--safe-bottom));
    border-top: 1px solid var(--border-light);
    background: var(--bg-card);
}
.sticker-btn, .attach-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.3rem;
    cursor: pointer;
}
.chat-input-wrapper {
    flex: 1;
    background: var(--bg-input);
    border-radius: 20px;
    padding: 4px 16px;
}
.chat-input-wrapper textarea {
    width: 100%;
    background: none;
    border: none;
    outline: none;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-family: var(--font-primary);
    resize: none;
    max-height: 100px;
    line-height: 1.5;
    padding: 6px 0;
}
.send-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform var(--transition-spring);
}
.send-btn:hover {
    transform: scale(1.1);
}

/* ==========================================
   DISCOVER GRID
   ========================================== */
.discover-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 8px;
}
.discover-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    cursor: pointer;
    transition: transform var(--transition-fast);
}
.discover-card:hover {
    transform: translateY(-2px);
}
.discover-card-media {
    aspect-ratio: 1;
    overflow: hidden;
}
.discover-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.discover-card-info {
    padding: 10px 12px;
}
.discover-card-info .user-mini {
    display: flex;
    align-items: center;
    gap: 6px;
}
.discover-card-info .user-mini img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}
.discover-card-info .user-mini span {
    font-size: 0.8rem;
    font-weight: 600;
}

/* ==========================================
   WALLET STYLES
   ========================================== */
.wallet-content {
    padding: 16px;
}
.wallet-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}
.wallet-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: var(--border-radius-lg);
    background: var(--bg-card);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
}
.wallet-card.free-card {
    background: linear-gradient(135deg, rgba(255,215,0,0.1), rgba(255,215,0,0.05));
    border-color: rgba(255,215,0,0.3);
}
.wallet-card.paid-card {
    background: linear-gradient(135deg, rgba(255,149,0,0.1), rgba(255,149,0,0.05));
    border-color: rgba(255,149,0,0.3);
}
.wallet-card.earnings-card {
    background: linear-gradient(135deg, rgba(76,175,80,0.1), rgba(76,175,80,0.05));
    border-color: rgba(76,175,80,0.3);
}
.wallet-card-icon {
    font-size: 2rem;
}
.wallet-card-info {
    flex: 1;
}
.wallet-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-tertiary);
}
.wallet-amount {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-display);
}
.earn-btn, .buy-btn, .withdraw-btn {
    padding: 8px 16px;
    border: none;
    border-radius: var(--border-radius-full);
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    font-family: var(--font-primary);
}
.earn-btn {
    background: var(--coin-free);
    color: #5c3d00;
}
.buy-btn {
    background: var(--coin-paid);
    color: white;
}
.withdraw-btn {
    background: var(--success-dark);
    color: white;
}
.wallet-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 24px;
}
.wallet-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    font-family: var(--font-primary);
    transition: all var(--transition-fast);
}
.wallet-action:hover {
    background: var(--primary-light);
    border-color: var(--primary);
}
.wallet-action i {
    font-size: 1.5rem;
    color: var(--primary);
}
.wallet-action span {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
}

/* Transaction History */
.transaction-history h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    margin-bottom: 12px;
}
.transaction-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}
.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.transaction-icon.credit {
    background: rgba(76,175,80,0.1);
    color: var(--success-dark);
}
.transaction-icon.debit {
    background: rgba(244,67,54,0.1);
    color: var(--error-dark);
}
.transaction-info {
    flex: 1;
}
.transaction-title {
    font-weight: 600;
    font-size: 0.85rem;
}
.transaction-time {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}
.transaction-amount {
    font-weight: 800;
    font-size: 0.9rem;
}
.transaction-amount.positive {
    color: var(--success-dark);
}
.transaction-amount.negative {
    color: var(--error-dark);
}

/* ==========================================
   GIFT GRID
   ========================================== */
.gift-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.gift-tab {
    flex: 1;
    padding: 8px;
    background: var(--bg-secondary);
    border: none;
    border-radius: var(--border-radius-full);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: var(--font-primary);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}
.gift-tab.active {
    background: var(--primary-light);
    color: var(--primary-dark);
}
.gift-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}
.gift-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-fast);
}
.gift-item:hover, .gift-item.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}
.gift-emoji {
    font-size: 2rem;
}
.gift-name {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
}
.gift-price {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary-dark);
}
.gift-send-section {
    display: flex;
    gap: 8px;
}
.gift-send-section input {
    width: 80px;
    padding: 10px;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-md);
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: var(--font-primary);
}
.send-gift-btn {
    flex: 1;
    padding: 10px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--border-radius-md);
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-primary);
}

/* Gift Animation */
.gift-animation-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 100;
}
.gift-float {
    position: absolute;
    bottom: 20%;
    left: 50%;
    font-size: 3rem;
    animation: giftFloat 2s ease-out forwards;
    pointer-events: none;
}

@keyframes giftFloat {
    0% {
        transform: translateX(-50%) scale(0);
        opacity: 0;
    }
    20% {
        transform: translateX(-50%) scale(1.5);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(-200px) scale(0.5);
        opacity: 0;
    }
}

/* ==========================================
   LIVE STYLES
   ========================================== */
.live-viewer {
    height: 100vh;
    height: 100dvh;
    background: #000;
    position: relative;
}
.live-video-container {
    width: 100%;
    height: 100%;
    position: relative;
}
.live-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.live-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, transparent 30%, transparent 70%, rgba(0,0,0,0.5) 100%);
}
.live-top-bar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding-top: var(--safe-top);
}
.live-host-info {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    padding: 6px 12px 6px 6px;
    border-radius: var(--border-radius-full);
}
.live-host-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary);
}
.live-host-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.live-host-name {
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
}
.live-badge {
    background: var(--gradient-live);
    color: white;
    padding: 2px 8px;
    border-radius: var(--border-radius-full);
    font-size: 0.65rem;
    font-weight: 800;
    animation: livePulse 1.5s infinite;
}
.follow-btn-small {
    background: var(--primary);
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: var(--border-radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
}
.live-stats {
    display: flex;
    align-items: center;
    gap: 8px;
}
.live-viewers {
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    color: white;
    padding: 6px 12px;
    border-radius: var(--border-radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}
.close-live-btn {
    width: 32px;
    height: 32px;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Battle */
.live-battle-container {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
}
.battle-vs {
    color: var(--coin-free);
    font-weight: 900;
    font-size: 1.2rem;
    font-family: var(--font-display);
    text-shadow: 0 0 10px rgba(255,215,0,0.5);
}
.battle-side {
    flex: 1;
    text-align: center;
}
.battle-score {
    color: white;
    font-weight: 800;
    font-size: 1.5rem;
    font-family: var(--font-display);
}
.battle-timer {
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 4px;
}

/* Live Chat */
.live-chat-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    max-height: 40%;
}
.live-chat-messages {
    overflow-y: auto;
    padding: 8px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    scrollbar-width: none;
}
.live-chat-messages::-webkit-scrollbar {
    display: none;
}
.live-chat-msg {
    display: inline-flex;
    gap: 6px;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    padding: 6px 10px;
    border-radius: 14px;
    max-width: 80%;
    align-self: flex-start;
}
.live-chat-msg .msg-user {
    font-weight: 700;
    color: var(--primary-light);
    font-size: 0.8rem;
    flex-shrink: 0;
}
.live-chat-msg .msg-text {
    color: white;
    font-size: 0.8rem;
}
.live-chat-input {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
.live-chat-input input {
    flex: 1;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: none;
    padding: 10px 16px;
    border-radius: var(--border-radius-full);
    color: white;
    font-size: 0.85rem;
    outline: none;
    font-family: var(--font-primary);
}
.live-chat-input input::placeholder {
    color: rgba(255,255,255,0.6);
}
.live-chat-input button {
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.live-bottom-bar {
    padding-bottom: var(--safe-bottom);
}
.live-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}
.live-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.5rem;
    font-family: var(--font-primary);
}
.live-action-btn span {
    font-size: 0.65rem;
    font-weight: 600;
}

/* ==========================================
   SEARCH MODAL
   ========================================== */
.search-modal {
    background: var(--bg-primary);
}
.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
    padding: 8px 16px;
    border-radius: var(--border-radius-full);
}
.search-input-wrapper i {
    color: var(--text-tertiary);
}
.search-input-wrapper input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-size: 0.95rem;
    color: var(--text-primary);
    font-family: var(--font-primary);
}
.search-clear {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    font-size: 1rem;
}
.search-results {
    padding: 16px;
}
.search-trending h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    margin-bottom: 12px;
}
.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    cursor: pointer;
}
.search-result-item img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

/* ==========================================
   SHOP STYLES
   ========================================== */
.shop-content {
    padding: 16px;
}
.shop-categories {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: 16px;
}
.shop-categories::-webkit-scrollbar {
    display: none;
}
.shop-cat {
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    font-family: var(--font-primary);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}
.shop-cat.active {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary-dark);
}
.shop-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.shop-item {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    cursor: pointer;
    transition: transform var(--transition-fast);
}
.shop-item:hover {
    transform: translateY(-2px);
}
.shop-item-image {
    aspect-ratio: 1;
    overflow: hidden;
}
.shop-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.shop-item-info {
    padding: 12px;
}
.shop-item-name {
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.shop-item-price {
    color: var(--error-dark);
    font-weight: 800;
    font-size: 1rem;
}
.shop-item-seller {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}
.affiliate-badge {
    background: var(--accent-mint);
    color: #2d5a3e;
    padding: 1px 6px;
    border-radius: var(--border-radius-full);
    font-size: 0.6rem;
    font-weight: 700;
}

/* ==========================================
   LOGIN PAGE
   ========================================== */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    padding: 20px;
}
.login-container {
    max-width: 400px;
    width: 100%;
}
.login-logo {
    text-align: center;
    margin-bottom: 40px;
}
.login-logo-img {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    margin-bottom: 16px;
}
.login-logo h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.login-logo p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ==========================================
   SPIN WHEEL
   ========================================== */
.spin-wheel-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}
.spin-pointer {
    position: absolute;
    top: -5px;
    z-index: 10;
    font-size: 2rem;
    color: var(--primary-dark);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
.spin-btn {
    width: 100%;
    padding: 14px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--border-radius-md);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    font-family: var(--font-primary);
    transition: all var(--transition-fast);
}
.spin-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.spin-info {
    text-align: center;
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ==========================================
   ACHIEVEMENTS
   ========================================== */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px;
}
.achievement-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 16px;
    text-align: center;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}
.achievement-card.locked {
    opacity: 0.5;
    filter: grayscale(0.5);
}
.achievement-card.level-5 {
    border-color: var(--accent-purple);
    box-shadow: 0 0 10px rgba(213,170,255,0.3);
}
.achievement-card.level-10 {
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255,215,0,0.4);
    background: linear-gradient(135deg, #fffef0, #fff8e1);
}
.achievement-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
}
.achievement-name {
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 4px;
}
.achievement-desc {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}
.achievement-level {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}
.achievement-star {
    font-size: 0.7rem;
    color: var(--border-medium);
}
.achievement-star.filled {
    color: #ffd700;
}
.achievement-progress {
    height: 4px;
    background: var(--bg-secondary);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}
.achievement-progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* ==========================================
   LEADERBOARD
   ========================================== */
.leaderboard-tabs {
    display: flex;
    gap: 4px;
    padding: 0 16px;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid var(--border-light);
}
.leaderboard-tabs::-webkit-scrollbar {
    display: none;
}
.lb-tab {
    padding: 12px 16px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    font-family: var(--font-primary);
}
.lb-tab.active {
    color: var(--primary-dark);
    border-bottom-color: var(--primary);
}
.leaderboard-content {
    padding: 16px;
}
.lb-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--border-radius-md);
    margin-bottom: 8px;
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
}
.lb-item.top-1 {
    background: linear-gradient(135deg, #ffd700, #ffed4a);
    box-shadow: 0 4px 15px rgba(255,215,0,0.3);
}
.lb-item.top-2 {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
}
.lb-item.top-3 {
    background: linear-gradient(135deg, #cd7f32, #daa520);
    color: white;
}
.lb-rank {
    width: 32px;
    font-weight: 900;
    font-size: 1.1rem;
    text-align: center;
    font-family: var(--font-display);
}
.lb-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
}
.lb-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.lb-info {
    flex: 1;
}
.lb-name {
    font-weight: 700;
    font-size: 0.9rem;
}
.lb-stat {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}
.lb-value {
    font-weight: 800;
    font-size: 1rem;
    font-family: var(--font-display);
}

/* ==========================================
   SETTINGS STYLES
   ========================================== */
.settings-content {
    padding: 16px;
}
.settings-section {
    margin-bottom: 24px;
}
.settings-section h3 {
    font-family: var(--font-display);
    font-size: 0.8rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.setting-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: background var(--transition-fast);
    font-size: 0.95rem;
}
.setting-item:hover {
    background: var(--bg-hover);
    margin: 0 -16px;
    padding: 14px 16px;
}
.setting-item i:first-child {
    width: 24px;
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
}
.setting-item span {
    flex: 1;
}
.setting-item i:last-child {
    color: var(--text-tertiary);
}
.setting-badge {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 2px 8px;
    border-radius: var(--border-radius-full);
    font-size: 0.75rem;
    font-weight: 700;
}
.verified-setting i:first-child {
    color: var(--verified-color);
}
.logout-btn {
    width: 100%;
    padding: 14px;
    background: rgba(244,67,54,0.1);
    color: var(--error-dark);
    border: none;
    border-radius: var(--border-radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-primary);
}

/* ==========================================
   DAILY REWARD
   ========================================== */
.daily-reward-content {
    text-align: center;
}
.daily-reward-content h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 20px;
}
.reward-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 20px;
}
.reward-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 4px;
    border-radius: var(--border-radius-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
}
.reward-day.claimed {
    background: var(--primary-light);
    border-color: var(--primary);
}
.reward-day.today {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}
.reward-day .day-num {
    font-size: 0.7rem;
    color: var(--text-tertiary);
}
.reward-day .day-reward {
    font-size: 1.2rem;
}
.reward-day .day-amount {
    font-size: 0.65rem;
    font-weight: 700;
}
.claim-btn {
    width: 100%;
    padding: 14px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--border-radius-md);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    font-family: var(--font-primary);
}
.claim-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.reward-note {
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

/* ==========================================
   MINI GAMES
   ========================================== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px;
}
.game-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-card);
    cursor: pointer;
    transition: all var(--transition-spring);
    border: 1px solid var(--border-light);
}
.game-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.game-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
}
.game-card h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    margin-bottom: 4px;
}
.game-card p {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}
.game-reward {
    display: inline-block;
    background: var(--coin-free-bg);
    color: #b8860b;
    padding: 2px 10px;
    border-radius: var(--border-radius-full);
    font-size: 0.75rem;
    font-weight: 700;
}

/* ==========================================
   CREATE POST STYLES
   ========================================== */
.create-content {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
}
.create-type-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    overflow-x: auto;
    scrollbar-width: none;
}
.create-type-tabs::-webkit-scrollbar {
    display: none;
}
.type-tab {
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-family: var(--font-primary);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}
.type-tab.active {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary-dark);
}
.post-type-content {
    margin-bottom: 16px;
}
.char-count {
    text-align: right;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: 4px;
}
.media-upload-area {
    margin-bottom: 12px;
}
.upload-placeholder {
    border: 2px dashed var(--border-medium);
    border-radius: var(--border-radius-lg);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.upload-placeholder:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}
.upload-placeholder i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 8px;
}
.upload-placeholder p {
    color: var(--text-tertiary);
    font-size: 0.9rem;
}
.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin-top: 8px;
}
.preview-item {
    aspect-ratio: 1;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    position: relative;
}
.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.remove-media {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}
.post-options {
    border-top: 1px solid var(--border-light);
    padding-top: 12px;
}
.option-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
}
.option-row i {
    font-size: 1.2rem;
    color: var(--primary);
}
.boost-option {
    background: var(--primary-light);
    margin: 0 -16px;
    padding: 12px 16px;
    border-radius: var(--border-radius-md);
}
.boost-btn {
    margin-left: auto;
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: var(--border-radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-primary);
}

/* Sell Form */
.sell-form {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.price-input-wrapper {
    display: flex;
    gap: 8px;
}
.price-input-wrapper .form-select {
    width: 100px;
    margin-bottom: 12px;
}
.price-input-wrapper .form-input {
    flex: 1;
}
.affiliate-toggle {
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-md);
}

/* ==========================================
   STICKER PICKER
   ========================================== */
.sticker-categories {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: 12px;
}
.sticker-categories::-webkit-scrollbar {
    display: none;
}
.sticker-cat {
    padding: 6px 14px;
    background: var(--bg-secondary);
    border: none;
    border-radius: var(--border-radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    font-family: var(--font-primary);
    color: var(--text-secondary);
}
.sticker-cat.active {
    background: var(--primary-light);
    color: var(--primary-dark);
}
.sticker-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    max-height: 250px;
    overflow-y: auto;
}
.sticker-item {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: var(--border-radius-md);
    transition: background var(--transition-fast);
    font-size: 2rem;
}
.sticker-item:hover {
    background: var(--bg-hover);
}
.sticker-item img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

/* ==========================================
   TOAST NOTIFICATIONS
   ========================================== */
.toast-container {
    position: fixed;
    top: calc(var(--safe-top) + 16px);
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 90%;
    max-width: 400px;
    pointer-events: none;
}
.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-card);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-xl);
    animation: toastIn 0.3s var(--transition-spring);
    pointer-events: auto;
    border-left: 4px solid var(--primary);
}
.toast.success { border-left-color: var(--success-dark); }
.toast.error { border-left-color: var(--error-dark); }
.toast.warning { border-left-color: var(--warning-dark); }
.toast.info { border-left-color: var(--info-dark); }
.toast-icon {
    font-size: 1.2rem;
}
.toast-message {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 500;
}
.toast.hide {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes toastOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-20px); }
}

/* ==========================================
   LOADING
   ========================================== */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-toast);
    backdrop-filter: blur(4px);
}
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Shimmer Loading */
.shimmer-card {
    height: 300px;
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    margin-bottom: 8px;
    overflow: hidden;
    position: relative;
}
.shimmer-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(248, 164, 208, 0.08) 50%,
        transparent 100%
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ==========================================
   BUY OVERLAY (Yellow Bag)
   ========================================== */
.buy-overlay {
    position: fixed;
    bottom: 80px;
    right: 16px;
    z-index: var(--z-fixed);
}
.buy-bag-icon {
    width: 50px;
    height: 50px;
    background: #FFC107;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
    animation: bounce 2s ease infinite;
    color: #333;
}
.buy-bag-icon i {
    font-size: 1.3rem;
}
.buy-bag-label {
    font-size: 0.55rem;
    font-weight: 800;
}
.buy-product-list {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 280px;
    max-height: 400px;
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    overflow-y: auto;
    padding: 12px;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* Clear Display Button */
.clear-display-btn {
    position: fixed;
    top: 50%;
    right: 8px;
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: var(--z-fixed);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Clear Display Mode */
.clear-display .top-header,
.clear-display .bottom-nav,
.clear-display .stories-bar,
.clear-display .post-actions,
.clear-display .post-header {
    display: none !important;
}
.clear-display .main-content {
    padding: 0;
}
.clear-display .post-card {
    border-radius: 0;
    box-shadow: none;
    border: none;
}

/* ==========================================
   STORY VIEWER
   ========================================== */
.story-viewer-overlay {
    background: #000;
    z-index: var(--z-modal);
}
.story-viewer-content {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}
.story-progress-bar {
    display: flex;
    gap: 3px;
    padding: 8px 12px;
    padding-top: calc(8px + var(--safe-top));
}
.story-progress-segment {
    flex: 1;
    height: 2px;
    background: rgba(255,255,255,0.3);
    border-radius: 1px;
    overflow: hidden;
}
.story-progress-fill {
    height: 100%;
    background: white;
    border-radius: 1px;
    width: 0%;
    transition: width linear;
}
.story-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
}
.story-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
}
.close-story-btn {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.story-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.story-content img,
.story-content video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.story-actions {
    display: flex;
    gap: 8px;
    padding: 12px;
    padding-bottom: calc(12px + var(--safe-bottom));
}
.story-reply-input {
    flex: 1;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--border-radius-full);
    padding: 10px 16px;
    color: white;
    font-size: 0.9rem;
    outline: none;
    font-family: var(--font-primary);
}
.story-reply-input::placeholder {
    color: rgba(255,255,255,0.5);
}

/* ==========================================
   EMPTY STATES
   ========================================== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}
.empty-state i {
    font-size: 3rem;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}
.empty-state h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 8px;
}
.empty-state p {
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

/* ==========================================
   OVERRIDE ANY BROKEN IMAGE STYLES
   ========================================== */

/* Ensure images in tiktok posts don't stretch */
.tiktok-post .tiktok-avatar-btn {
    width: 44px !important;
    height: 44px !important;
    flex-shrink: 0 !important;
}

.tiktok-post .tiktok-avatar-btn img {
    width: 44px !important;
    height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
}

/* Ensure verified icon doesn't grow */
.tiktok-info .verified {
    font-size: 1rem !important;
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
}

/* Post images fill properly */
.tiktok-post > img:first-child {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    z-index: 1 !important;
}

/* Videos same */
.tiktok-post > video {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    z-index: 1 !important;
}

/* ==========================================
   CRITICAL FIXES FOR TIKTOK LAYOUT
   ========================================== */

/* Prevent avatar images from stretching */
.tiktok-avatar-btn {
    width: 44px !important;
    height: 44px !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
}

.tiktok-avatar-btn img {
    width: 44px !important;
    height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
}

/* Verified badge icon size */
.tiktok-info .verified {
    font-size: 1rem !important;
    width: auto !important;
    height: auto !important;
    display: inline-block !important;
}

/* Post images fill the entire post */
.tiktok-post > img:first-child,
.tiktok-post > video:first-child {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    z-index: 1 !important;
}

/* Hide any story bar when in TikTok mode */
body.tiktok-mode #stories-bar,
body.tiktok-mode #top-header {
    display: none !important;
}

/* Force full screen in TikTok mode */
body.tiktok-mode {
    overflow: hidden !important;
}

body.tiktok-mode #app {
    height: 100vh !important;
    height: 100dvh !important;
    overflow: hidden !important;
}

body.tiktok-mode .main-content {
    height: 100vh !important;
    height: 100dvh !important;
    overflow: hidden !important;
}

