@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --font-primary: 'Outfit', sans-serif;
    
    /* Standard Theme Colors */
    --bg-app: #0f0d1a;
    --bg-card: rgba(22, 20, 36, 0.7);
    --border-color: rgba(108, 92, 231, 0.2);
    --border-glow: rgba(108, 92, 231, 0.4);
    --text-primary: #f3f0ff;
    --text-secondary: #a29bfe;
    --accent: #6c5ce7;
    --accent-gradient: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    --accent-glow: 0 0 15px rgba(108, 92, 231, 0.5);
    
    /* System Colors */
    --color-male: #3498db;
    --color-female: #e84393;
    --color-other: #9b59b6;
    --color-secret: #8e44ad;
    --color-ad: #f1c40f;
    --color-vip-silver: #bdc3c7;
    --color-vip-gold: #f39c12;
    --color-success: #2ecc71;
    --transition-speed: 0.3s;
}

/* Hot Mode Theme Override */
body.hot-mode {
    --bg-app: #050005;
    --bg-card: rgba(18, 2, 10, 0.8);
    --border-color: rgba(255, 0, 127, 0.25);
    --border-glow: rgba(255, 0, 127, 0.5);
    --text-primary: #fff0f5;
    --text-secondary: #ff758c;
    --accent: #ff007f;
    --accent-gradient: linear-gradient(135deg, #ff007f 0%, #ff758c 100%);
    --accent-glow: 0 0 20px rgba(255, 0, 127, 0.7);
    --color-secret: #c0392b;
    --color-ad: #e67e22;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-primary);
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-app);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    transition: background-color var(--transition-speed) ease;
}

/* Mobile Container Shell */
.app-container {
    width: 100%;
    max-width: 480px;
    height: 100vh;
    height: 100dvh;
    background-color: var(--bg-app);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    transition: background-color var(--transition-speed) ease;
}

/* Header Area */
.app-header {
    height: 64px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 13, 26, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
}

body.hot-mode .app-header {
    background: rgba(5, 0, 5, 0.85);
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
    text-shadow: var(--accent-glow);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Hot Mode Toggle Switch */
.hot-mode-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-speed) ease;
}

.hot-mode-toggle.active {
    background: rgba(255, 0, 127, 0.15);
    border-color: var(--accent);
    box-shadow: var(--accent-glow);
}

.hot-mode-toggle span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.hot-mode-toggle i {
    font-size: 14px;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.hot-mode-toggle.active i {
    color: var(--accent);
    transform: scale(1.2);
}

/* Main Content Area */
.app-content {
    flex: 1;
    overflow-y: auto;
    position: relative;
    padding-bottom: 74px; /* Space for bottom nav */
}

/* Bottom Navigation */
.app-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(15, 13, 26, 0.9);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
    z-index: 100;
}

body.hot-mode .app-nav {
    background: rgba(5, 0, 5, 0.9);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    text-decoration: none;
    cursor: pointer;
    flex: 1;
    padding: 8px 0;
    transition: all 0.2s ease;
    opacity: 0.6;
}

.nav-item.active {
    color: var(--accent);
    opacity: 1;
    text-shadow: var(--accent-glow);
}

.nav-item i {
    font-size: 20px;
    transition: transform 0.2s ease;
}

.nav-item.active i {
    transform: translateY(-4px);
}

.nav-item span {
    font-size: 10px;
    font-weight: 600;
}

/* View Wrapper */
.view-panel {
    display: none;
    width: 100%;
    height: 100%;
    animation: fadeIn 0.3s ease-in-out forwards;
}

.view-panel.active {
    display: flex;
    flex-direction: column;
}

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

/* Glassmorphic Components */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px;
    margin: 15px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.glass-card:focus-within {
    border-color: var(--border-glow);
    box-shadow: var(--accent-glow);
}

/* Inputs & Buttons */
.input-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.text-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
    transition: all 0.2s ease;
}

.text-input:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: var(--accent-glow);
}

.btn-primary {
    background: var(--accent-gradient);
    border: none;
    border-radius: 12px;
    padding: 14px 20px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    box-shadow: var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 20px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-glow);
}

/* Badges & Verifications */
.badge-verified {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1da1f2;
    font-size: 14px;
    margin-left: 4px;
}

.badge-vip {
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
}

.badge-vip.gold {
    background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%);
    color: #000;
    box-shadow: 0 0 8px rgba(241, 196, 15, 0.5);
}

.badge-vip.silver {
    background: linear-gradient(135deg, #bdc3c7 0%, #95a5a6 100%);
    color: #000;
    box-shadow: 0 0 8px rgba(189, 195, 199, 0.5);
}

/* Onboarding Screen */
.onboarding-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.onboarding-step {
    display: none;
    animation: slideIn 0.3s ease-out forwards;
}

.onboarding-step.active {
    display: block;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.steps-indicator {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.step-dot.active {
    background: var(--accent);
    transform: scale(1.3);
    box-shadow: var(--accent-glow);
}

.interest-tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.interest-tag {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.interest-tag.selected {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: var(--accent-glow);
}

/* Stories Ring Area */
.stories-container {
    padding: 15px 0 10px 0;
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-left: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stories-container::-webkit-scrollbar {
    display: none;
}

.story-ring-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.story-ring {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 50%, #ff7675 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

body.hot-mode .story-ring {
    background: linear-gradient(135deg, #ff007f 0%, #ff758c 50%, #800020 100%);
}

.story-ring.watched {
    background: rgba(255, 255, 255, 0.15) !important;
}

.story-ring-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bg-app);
}

.story-ring-name {
    font-size: 11px;
    font-weight: 600;
    max-width: 68px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Create Story Ring Button */
.story-ring-create {
    position: relative;
}

.story-ring-create .story-ring {
    background: rgba(255, 255, 255, 0.1);
}

.story-ring-create .plus-icon {
    position: absolute;
    bottom: 20px;
    right: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--bg-app);
    font-size: 11px;
    color: #fff;
}

/* Story Viewer Modal */
.story-viewer-modal {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    z-index: 1000;
    display: none;
    flex-direction: column;
}

.story-progress-bars {
    display: flex;
    gap: 4px;
    padding: 10px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1010;
}

.story-progress-bg {
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    flex: 1;
    border-radius: 2px;
    overflow: hidden;
}

.story-progress-bar {
    height: 100%;
    width: 0%;
    background: #fff;
    transition: width 0.1s linear;
}

.story-viewer-header {
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1010;
    color: #fff;
}

.story-viewer-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.story-viewer-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #fff;
}

.story-viewer-media-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
}

.story-viewer-media {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.story-viewer-caption {
    position: absolute;
    bottom: 80px;
    left: 0;
    right: 0;
    text-align: center;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
}

.story-viewer-footer {
    height: 70px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #000;
    z-index: 1010;
}

.story-reaction-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 10px 16px;
    color: #fff;
    font-size: 14px;
    outline: none;
}

.story-reaction-emojis {
    display: flex;
    gap: 8px;
    font-size: 22px;
}

.story-reaction-emoji {
    cursor: pointer;
    transition: transform 0.1s ease;
}

.story-reaction-emoji:hover {
    transform: scale(1.3);
}

/* Secrets / Ads Card Grids */
.posts-feed {
    padding: 10px 5px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.post-card {
    border-radius: 16px;
    padding: 20px;
    margin: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.post-card:hover {
    transform: translateY(-2px);
}

.post-card.blue {
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
}

.post-card.pink {
    background: linear-gradient(135deg, #c02c6d 0%, #e84393 100%);
}

.post-card.purple {
    background: linear-gradient(135deg, #6c5ce7 0%, #8e44ad 100%);
}

.post-card.amber {
    background: linear-gradient(135deg, #d35400 0%, #e67e22 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.post-card.neon-red {
    background: linear-gradient(135deg, #800020 0%, #ff0055 100%);
    border: 1px solid rgba(255, 0, 127, 0.5);
    box-shadow: 0 0 10px rgba(255, 0, 127, 0.3);
}

.post-header {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.85;
}

.post-content {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    word-break: break-word;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    opacity: 0.8;
}

.post-nickname {
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.tab-selector {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 12px;
    margin: 15px;
}

.tab-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px;
    color: var(--text-secondary);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
}

.tab-btn.active {
    background: var(--accent);
    color: #fff;
    box-shadow: var(--accent-glow);
}

/* Shuffle Screen */
.shuffle-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
}

.shuffle-card-container {
    width: 100%;
    max-width: 360px;
    height: 480px;
    position: relative;
    perspective: 1000px;
}

.shuffle-card {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    position: absolute;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.shuffle-card-img {
    width: 100%;
    flex: 1;
    object-fit: cover;
}

.shuffle-card-fallback-avatar {
    width: 100%;
    flex: 1;
    background: linear-gradient(135deg, #1e1b2e 0%, #0d0b14 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 80px;
    color: var(--accent);
    text-shadow: var(--accent-glow);
}

.shuffle-card-info {
    padding: 20px;
    background: linear-gradient(to top, rgba(15,13,26,0.95) 0%, rgba(15,13,26,0.7) 100%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid var(--border-color);
}

.shuffle-name-age {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.shuffle-bio {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.shuffle-interests {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.shuffle-interest-tag {
    padding: 4px 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.shuffle-actions {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.shuffle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.2s ease;
}

.shuffle-btn:hover {
    transform: scale(1.1);
}

.shuffle-btn.pass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e74c3c;
}

.shuffle-btn.chat {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: var(--accent-glow);
}

/* Chat Screen */
.chat-rooms-list {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
}

.chat-room-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background 0.2s ease;
}

.chat-room-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.chat-room-avatar-wrapper {
    position: relative;
}

.chat-room-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.05);
}

.chat-room-badge-unread {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    background: var(--accent);
    border-radius: 50%;
    font-size: 9px;
    font-weight: 800;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--bg-app);
}

.chat-room-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chat-room-name-time {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-room-name {
    font-size: 15px;
    font-weight: 700;
}

.chat-room-time {
    font-size: 11px;
    color: var(--text-secondary);
}

.chat-room-last-msg-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.chat-room-last-msg {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.reveal-progress-pill {
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    background: rgba(108, 92, 231, 0.15);
    color: var(--text-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

body.hot-mode .reveal-progress-pill {
    background: rgba(255, 0, 127, 0.15);
}

/* Active Chat Screen */
.active-chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-header {
    height: 60px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    background: rgba(22, 20, 36, 0.3);
}

.chat-header-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-header-info {
    display: flex;
    flex-direction: column;
}

.chat-header-name {
    font-size: 15px;
    font-weight: 700;
}

.chat-reveal-bar-wrapper {
    padding: 8px 15px;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chat-reveal-label {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
}

.chat-reveal-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.chat-reveal-bar-fill {
    height: 100%;
    background: var(--accent-gradient);
    width: 0%;
    transition: width 0.3s ease;
}

.chat-messages-area {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.msg-bubble-wrapper {
    display: flex;
    width: 100%;
}

.msg-bubble-wrapper.sent {
    justify-content: flex-end;
}

.msg-bubble-wrapper.received {
    justify-content: flex-start;
}

.msg-bubble {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    word-break: break-word;
}

.msg-bubble-wrapper.sent .msg-bubble {
    background: var(--accent-gradient);
    color: #fff;
    border-bottom-right-radius: 4px;
    box-shadow: var(--accent-glow);
}

.msg-bubble-wrapper.received .msg-bubble {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(255,255,255,0.05);
}

/* Chat Media Message Blocker */
.media-lock-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px dashed var(--border-color);
    text-align: center;
}

.media-lock-icon {
    font-size: 24px;
    color: var(--accent);
}

.media-lock-text {
    font-size: 11px;
    color: var(--text-secondary);
}

.chat-msg-media {
    max-width: 200px;
    max-height: 200px;
    border-radius: 12px;
    object-fit: cover;
}

.chat-input-area {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-app);
}

.chat-input-box {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 12px 18px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.chat-input-box:focus {
    border-color: var(--border-glow);
    background: rgba(255, 255, 255, 0.08);
}

.chat-action-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s ease;
}

.chat-action-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-glow);
}

.chat-action-btn.send {
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    box-shadow: var(--accent-glow);
}

/* Audio Player Component */
.audio-msg-player {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 160px;
}

.audio-play-btn {
    cursor: pointer;
    font-size: 18px;
}

.audio-waveform-simulation {
    flex: 1;
    height: 16px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.waveform-bar {
    width: 2px;
    height: 100%;
    background: rgba(255,255,255,0.3);
    border-radius: 1px;
}

.waveform-bar.active {
    background: var(--text-primary);
}

/* Audio Recorder Panel */
.voice-recorder-overlay {
    background: rgba(15, 13, 26, 0.95);
    padding: 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideUp 0.2s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.recorder-timer {
    font-size: 16px;
    font-weight: 700;
    color: #e74c3c;
    display: flex;
    align-items: center;
    gap: 8px;
}

.recorder-timer i {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

/* Photo Gallery Grid */
.photo-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: rgba(255,255,255,0.02);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item-delete {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: #e74c3c;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 11px;
    border: 1px solid rgba(255,255,255,0.1);
}

.gallery-item-hot-badge {
    position: absolute;
    bottom: 5px;
    left: 5px;
    padding: 2px 6px;
    border-radius: 6px;
    background: #ff007f;
    font-size: 8px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
}

.gallery-upload-card {
    border: 2px dashed var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.gallery-upload-card:hover {
    border-color: var(--border-glow);
    color: var(--text-primary);
}

.gallery-upload-card i {
    font-size: 20px;
}

/* Hide Story Viewer Progress Bars (Instagram style indicator removed) */

/* Hot Interests tag customization */
.interest-tag.hot {
    border-color: rgba(255, 0, 127, 0.3) !important;
    color: #ff758c !important;
}
.interest-tag.hot.selected {
    background: linear-gradient(135deg, #ff007f 0%, #ff758c 100%) !important;
    color: #fff !important;
    border-color: #ff007f !important;
    box-shadow: 0 0 12px rgba(255, 0, 127, 0.4) !important;
}

/* Sidebar elements hidden by default on mobile */
.sidebar-logo, .sidebar-footer-toggle {
    display: none;
}

/* Stories responsive grid class */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 10px;
}

/* Desktop Responsiveness & Layout Compatibility (min-width: 768px) */
@media (min-width: 768px) {
    .app-container {
        width: 100%;
        height: 100vh;
        max-width: 100%;
        border-radius: 0;
        flex-direction: row-reverse; /* Places sidebar on the left, main content on the right */
        display: flex;
        border: none;
        box-shadow: none;
        overflow: hidden;
    }
    
    /* Hide top mobile header on desktop */
    .app-header {
        display: none !important;
    }
    
    .app-content {
        flex: 1;
        height: 100%;
        padding-bottom: 0 !important;
        overflow-y: auto;
        max-width: 820px;
        margin: 0 auto;
        width: 100%;
    }
    
    /* Transform bottom nav to left vertical sidebar */
    .app-nav {
        position: relative !important;
        width: 260px;
        height: 100%;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        padding: 40px 15px !important;
        border-top: none !important;
        border-right: 1px solid var(--border-color) !important;
        background: rgba(22, 20, 36, 0.95) !important;
        gap: 8px;
    }
    
    .sidebar-logo {
        display: block !important;
        font-size: 26px;
        font-weight: 800;
        background: var(--accent-gradient);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        margin-bottom: 35px;
        padding: 0 20px;
        letter-spacing: 1px;
        text-shadow: var(--accent-glow);
    }
    
    .sidebar-footer-toggle {
        display: block !important;
        margin-top: auto;
        width: 100%;
        padding: 0 10px;
    }
    
    .nav-item {
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 16px !important;
        width: 100% !important;
        padding: 14px 20px !important;
        border-radius: 12px;
        flex: none !important;
        opacity: 0.7;
    }

    .nav-item.active {
        background: rgba(108, 92, 231, 0.1);
        opacity: 1;
    }

    body.hot-mode .nav-item.active {
        background: rgba(255, 0, 127, 0.1);
    }

    .nav-item.active i {
        transform: none !important;
    }

    .nav-item span {
        font-size: 15px !important;
        font-weight: 600;
        display: inline !important;
    }

    /* Adjust grids for spacious wide layouts */
    .stories-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        padding: 0 15px;
    }

    .posts-feed {
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
        padding: 24px 0;
        width: 100% !important;
        max-width: 100% !important;
        align-items: start;
        align-content: start;
    }
    
    .post-card {
        margin: 0;
        min-height: auto;
        box-shadow: 0 8px 24px rgba(0,0,0,0.2);
        border: 1px solid rgba(255,255,255,0.05);
        transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    }

    .post-card:hover {
        transform: translateY(-5px) scale(1.02);
        box-shadow: 0 12px 30px rgba(0,0,0,0.35);
    }

    .photo-gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Custom Toast Notifications */
.custom-toast {
    background: rgba(15, 13, 26, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 12px 18px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
}

.custom-toast.success {
    border-left: 4px solid var(--color-success);
}
.custom-toast.success i {
    color: var(--color-success);
}

.custom-toast.error {
    border-left: 4px solid #e74c3c;
}
.custom-toast.error i {
    color: #e74c3c;
}

.custom-toast.info {
    border-left: 4px solid var(--accent);
}
.custom-toast.info i {
    color: var(--accent);
}

.custom-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.custom-toast.hide {
    opacity: 0;
    transform: translateY(-20px);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-content i {
    font-size: 18px;
}


