/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #fff5f8;
    --text-main: #2b1c23;
    --text-muted: #735e68;
    --accent-pink: #ff5f9e;
    --accent-pink-gradient: linear-gradient(135deg, #ff5f9e 0%, #ff3b80 100%);
    --flat-border: 1px solid #ffd3e2;
    --flat-shadow: 0 4px 16px rgba(255, 95, 158, 0.08);
    --flat-shadow-hover: 0 8px 24px rgba(255, 95, 158, 0.16);
    --neon-pink-glow: 0 0 10px rgba(255, 95, 158, 0.35);
    
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-secondary);
    color: var(--text-main);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
}

/* Background animated circles for sub-texture */
.bg-mesh {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    opacity: 0.5;
    pointer-events: none;
    overflow: hidden;
}
.bg-mesh::before, .bg-mesh::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
}
.bg-mesh::before {
    background: rgba(255, 95, 158, 0.08);
    width: 400px;
    height: 400px;
    top: -10%;
    left: 10%;
}
.bg-mesh::after {
    background: rgba(255, 255, 255, 0.8);
    width: 500px;
    height: 500px;
    bottom: -10%;
    right: 10%;
}

/* Full-Screen Neomorphic App Wrapper */
.app-container {
    width: 100%;
    height: 100vh;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    flex: 1;
}

/* Header */
.app-header {
    padding: 1.1rem 2.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    background: var(--bg-primary);
    box-shadow: 0 4px 10px rgba(229, 212, 220, 0.15);
    z-index: 10;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.logo-text {
    font-size: 1.9rem;
    font-weight: 850;
    letter-spacing: -0.8px;
    background: var(--accent-pink-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(229, 212, 220, 0.5);
}

.logo-dot {
    width: 9px;
    height: 9px;
    background: var(--accent-pink);
    border-radius: 50%;
    box-shadow: var(--neon-pink-glow);
}

.logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
    display: block;
}

.online-counter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    background: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: var(--flat-border);
    box-shadow: var(--flat-shadow);
}

.online-pulse {
    width: 7px;
    height: 7px;
    background: var(--accent-pink);
    border-radius: 50%;
    box-shadow: var(--neon-pink-glow);
    animation: pulse-pink 1.8s infinite;
}

@keyframes pulse-pink {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 95, 158, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(255, 95, 158, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 95, 158, 0); }
}

/* Page Layout (Ad sidebars + main content area) */
.app-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
    width: 100%;
}

.ad-sidebar {
    width: 180px;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
    flex-shrink: 0;
    z-index: 5;
}

.ad-sidebar.left {
    border-right: 1px solid rgba(255, 255, 255, 0.4);
}

.ad-sidebar.right {
    border-left: 1px solid rgba(255, 255, 255, 0.4);
}

.ad-placeholder {
    width: 100%;
    height: 600px;
    max-height: 90%;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    box-shadow: inset 4px 4px 8px var(--dark-shadow), inset -4px -4px 8px var(--light-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-align: center;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.5px;
}

.ad-placeholder svg {
    margin-bottom: 0.8rem;
    color: var(--text-muted);
    opacity: 0.7;
}

.ad-placeholder span {
    font-size: 0.65rem;
    color: var(--accent-pink);
    margin-top: 10px;
    text-transform: uppercase;
}

/* Middle Main Workspace Area */
.main-content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    background: var(--bg-primary);
}

.app-content {
    flex: 1;
    display: flex;
    overflow: hidden;
    position: relative;
}

/* 1. Landing View */
.landing-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
    padding: 1.5rem 1rem;
    z-index: 10;
    background: var(--bg-primary);
    transition: var(--transition-smooth);
    overflow-y: auto;
}

@media (min-width: 1025px) {
    .landing-view {
        grid-template-columns: 1.2fr 1fr;
        align-items: center;
        padding: 3rem 4.5rem;
        gap: 3rem;
    }
}


.landing-view.hide {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
}

.landing-seo-content {
    text-align: left;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 850;
    margin-bottom: 0.2rem;
    color: var(--text-main);
    letter-spacing: -1.5px;
    line-height: 1;
}

.hero-tagline {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--accent-pink);
    margin-bottom: 1.5rem;
    line-height: 1.35;
}

.seo-text-paragraphs {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.seo-text-paragraphs p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.safety-box-neo {
    margin-top: 1.4rem;
    padding: 1.1rem 1.4rem;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    border: var(--flat-border);
    text-align: left;
}

.safety-box-neo h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-pink);
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.safety-box-neo ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.safety-box-neo li {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
    position: relative;
    padding-left: 1rem;
    line-height: 1.4;
}

.safety-box-neo li:last-child {
    margin-bottom: 0;
}

.safety-box-neo li::before {
    content: "•";
    color: var(--accent-pink);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.hero-subtitle {
    display: none;
}

/* Neomorphic Start Card */
.start-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 2.2rem;
    width: 100%;
    max-width: 450px;
    box-shadow: var(--flat-shadow);
    border: var(--flat-border);
    transition: var(--transition-smooth);
}

.start-card:hover {
    box-shadow: var(--flat-shadow-hover);
}

.form-group {
    margin-bottom: 1.4rem;
    text-align: left;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: block;
}

/* Username input and text fields (Recessed) */
.neo-text-input {
    width: 100%;
    padding: 0.8rem 1.1rem;
    border-radius: var(--radius-md);
    border: var(--flat-border);
    outline: none;
    background: #ffffff;
    color: var(--text-main);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}
.neo-text-input::placeholder {
    color: #b59fa8;
}
.neo-text-input:focus {
    border-color: var(--accent-pink);
    box-shadow: 0 0 0 3px rgba(255, 95, 158, 0.15);
}

/* Mode Selection (Neomorphic Toggle switches) */
.mode-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
    background: var(--bg-secondary);
    padding: 0.3rem;
    border-radius: var(--radius-md);
    border: var(--flat-border);
}

.mode-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.mode-btn.active {
    background: var(--accent-pink);
    color: #ffffff;
    transform: scale(1.02);
}

/* Interests tags list (Recessed container) */
.tags-input-container {
    background: #ffffff;
    border: var(--flat-border);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    min-height: 50px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    transition: var(--transition-smooth);
}
.tags-input-container:focus-within {
    border-color: var(--accent-pink);
    box-shadow: 0 0 0 3px rgba(255, 95, 158, 0.15);
}

.tags-input-container input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    flex: 1;
    min-width: 80px;
    font-size: 0.95rem;
    padding: 0.2rem;
}

.interest-tag {
    background: var(--bg-secondary);
    color: var(--text-main);
    border: 1px solid #ffd3e2;
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: var(--transition-smooth);
}

.interest-tag:hover {
    transform: translateY(-1px);
    border-color: var(--accent-pink);
}

.interest-tag span {
    cursor: pointer;
    font-weight: 700;
    color: var(--accent-pink);
}

.tags-helper {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
    display: block;
}

/* Action Start Button (Extruded glowing Pink) */
.btn-start {
    width: 100%;
    padding: 0.95rem;
    border-radius: var(--radius-md);
    border: none;
    background: var(--accent-pink-gradient);
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 14px rgba(255, 95, 158, 0.2);
    transition: var(--transition-smooth);
    margin-top: 0.8rem;
}

.btn-start:hover {
    box-shadow: 0 6px 20px rgba(255, 95, 158, 0.35);
    transform: translateY(-2px);
}

.btn-start:active {
    transform: translateY(1px) scale(0.98);
}

/* 2. Active Chat View */
.chat-view {
    display: flex;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    background: var(--bg-primary);
}

.chat-view.show {
    opacity: 1;
    pointer-events: auto;
}

/* Chat Sidebar */
.chat-sidebar {
    width: 285px;
    min-width: 285px;
    border-right: var(--flat-border);
    display: flex;
    flex-direction: column;
    padding: 1rem 1.2rem;
    background: var(--bg-primary);
    overflow-y: auto;
}

.status-box {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: var(--flat-border);
    padding: 0.75rem 1rem;
    text-align: center;
    margin-bottom: 0.75rem;
}

.status-indicator {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-pink);
    margin-bottom: 0.2rem;
}

.status-detail {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Voice Active Mic Visualizer */
.voice-visualizer {
    display: none;
    flex-direction: column;
    align-items: center;
    margin: 0.5rem 0;
    flex: 0 0 auto;
}

.voice-visualizer.active {
    display: flex;
}

.pulse-ring-container {
    position: relative;
    width: 90px;
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pulse-ring {
    position: absolute;
    width: 70px;
    height: 70px;
    border: 2px solid var(--accent-pink);
    border-radius: 50%;
    opacity: 0;
    animation: ring-pulse-pink 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}
.pulse-ring:nth-child(2) { animation-delay: 0.6s; }
.pulse-ring:nth-child(3) { animation-delay: 1.2s; }

.mic-icon-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: var(--flat-shadow);
    border: var(--flat-border);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-pink);
    cursor: pointer;
    font-size: 1.4rem;
    z-index: 5;
    transition: var(--transition-smooth);
}
.mic-icon-btn:hover {
    transform: scale(1.06);
    box-shadow: var(--flat-shadow-hover);
}
.mic-icon-btn:active {
    transform: scale(0.96);
}
.mic-icon-btn.muted {
    color: #ef4444;
}

.voice-status-lbl {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.8rem;
}

@keyframes ring-pulse-pink {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* Sidebar button rules */
.btn-sidebar {
    width: 100%;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    border: var(--flat-border);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    background: #ffffff;
    box-shadow: var(--flat-shadow);
    color: var(--text-main);
    transition: var(--transition-smooth);
}
.btn-sidebar:hover {
    box-shadow: var(--flat-shadow-hover);
    transform: translateY(-2px);
}
.btn-sidebar:active {
    transform: translateY(1px) scale(0.98);
}

.btn-new-chat {
    color: var(--accent-pink);
}

.btn-report {
    background: rgba(239, 68, 68, 0.05);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.1);
}

.btn-disconnect.warning {
    color: #ffffff;
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    box-shadow: 4px 4px 10px rgba(239, 68, 68, 0.2);
}

.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.kb-info {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.8rem;
    line-height: 1.3;
}

/* Main Chat Frame */
.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
}

.chat-history {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    background: var(--bg-primary);
}

/* Scrollbars */
.chat-history::-webkit-scrollbar {
    width: 6px;
}
.chat-history::-webkit-scrollbar-track {
    background: transparent;
}
.chat-history::-webkit-scrollbar-thumb {
    background: rgba(229, 212, 220, 0.8);
    border-radius: 10px;
}

/* Dialogue Bubble Styles */
.msg-row {
    display: flex;
    width: 100%;
}

.msg-row.sent { justify-content: flex-end; }
.msg-row.received { justify-content: flex-start; }
.msg-row.system { justify-content: center; }

.msg-bubble {
    max-width: 65%;
    padding: 0.8rem 1.1rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    line-height: 1.45;
    word-break: break-word;
    box-shadow: var(--flat-shadow);
    animation: msg-appear 0.25s cubic-bezier(0.18, 0.89, 0.32, 1.15);
}

.msg-row.sent .msg-bubble {
    background: #fff5f8;
    color: var(--accent-pink);
    border: 1px solid #ffe3ec;
    border-bottom-right-radius: 4px;
}

.msg-row.received .msg-bubble {
    background: #ffffff;
    color: var(--text-main);
    border: 1px solid #ffd8e5;
    border-bottom-left-radius: 4px;
}

.msg-row.system .msg-bubble {
    background: #fff0f4;
    border: 1px solid #ffe3ec;
    color: var(--text-muted);
    font-size: 0.82rem;
    border-radius: 50px;
    padding: 0.35rem 1.2rem;
    font-weight: 600;
}

.msg-row.system .msg-bubble.question-bubble {
    background: #ffffff;
    box-shadow: var(--flat-shadow);
    border: 1px dashed var(--accent-pink);
    border-radius: var(--radius-md);
    padding: 0.75rem 1.4rem;
    text-align: center;
    font-style: italic;
    color: var(--text-main);
    font-size: 0.92rem;
    max-width: 80%;
}

.msg-row.system.disconnect .msg-bubble {
    color: #ef4444;
}

@keyframes msg-appear {
    from { transform: translateY(6px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Typing bubble */
.typing-indicator {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 0.2rem 1.6rem;
    display: none;
    align-items: center;
    gap: 0.4rem;
}
.typing-dot {
    width: 4px;
    height: 4px;
    background: var(--accent-pink);
    border-radius: 50%;
    animation: typing-bounce 1.4s infinite ease-in-out both;
}
.typing-dot:nth-child(2) { animation-delay: .2s; }
.typing-dot:nth-child(3) { animation-delay: .4s; }

@keyframes typing-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Chat Input Bar */
.chat-input-bar {
    padding: 1.1rem;
    border-top: var(--flat-border);
    display: flex;
    gap: 0.8rem;
    align-items: center;
    position: relative;
    background: #ffffff;
}

.chat-input-wrap {
    flex: 1;
    display: flex;
    background: #faf5f7;
    border: var(--flat-border);
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
}
.chat-input-wrap:focus-within {
    border-color: var(--accent-pink);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 95, 158, 0.12);
}

.chat-input-wrap input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    padding: 0.8rem 1.1rem;
    font-size: 0.95rem;
}

/* Control buttons inside Input bar */
.btn-bar-control {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0 0.9rem;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}
.btn-bar-control:hover {
    color: var(--accent-pink);
    transform: scale(1.08);
}

.btn-send {
    color: var(--accent-pink);
}

/* Custom iPhone Emojis Picker Popup */
.emoji-popup-wrapper {
    position: absolute;
    bottom: 85px;
    right: 20px;
    width: 290px;
    height: 230px;
    background: #ffffff;
    box-shadow: var(--flat-shadow-hover);
    border: var(--flat-border);
    border-radius: var(--radius-lg);
    padding: 1rem;
    display: none;
    flex-direction: column;
    z-index: 100;
    animation: popup-slide 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.emoji-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 0.4rem;
}

.emoji-popup-header span.close-emoji {
    cursor: pointer;
    color: var(--accent-pink);
    font-size: 1.1rem;
}

.emoji-grid {
    flex: 1;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.4rem;
    padding-right: 0.2rem;
}

.emoji-grid::-webkit-scrollbar {
    width: 4px;
}
.emoji-grid::-webkit-scrollbar-thumb {
    background: rgba(229, 212, 220, 0.8);
    border-radius: 10px;
}

.emoji-item {
    font-size: 1.55rem;
    text-align: center;
    cursor: pointer;
    user-select: none;
    transition: transform 0.15s ease;
    display: inline-block;
    line-height: 1.8;
}
.emoji-item:hover {
    transform: scale(1.2);
}

/* Sticker Maker UI Styles */
.sticker-popup-wrapper {
    height: auto;
    max-height: 480px;
    width: 310px;
}

.sticker-maker-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow-y: auto;
    padding-right: 0.2rem;
}

.sticker-maker-body::-webkit-scrollbar {
    width: 4px;
}
.sticker-maker-body::-webkit-scrollbar-thumb {
    background: rgba(229, 212, 220, 0.8);
    border-radius: 10px;
}

.sticker-preview-container {
    background-color: #110e10;
    background-image: 
        linear-gradient(45deg, #181517 25%, transparent 25%), 
        linear-gradient(-45deg, #181517 25%, transparent 25%), 
        linear-gradient(45deg, transparent 75%, #181517 75%), 
        linear-gradient(-45deg, transparent 75%, #181517 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
    border: 1.5px dashed var(--accent-pink);
    overflow: hidden;
}

#sticker-canvas {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    background: transparent;
}

#sticker-text-input {
    width: 100%;
    background: var(--bg-secondary);
    color: var(--text-main);
    border: var(--flat-border);
    border-radius: var(--radius-md);
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-smooth);
}
#sticker-text-input:focus {
    border-color: var(--accent-pink);
    box-shadow: var(--neon-pink-glow);
}

.sticker-styles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
}

.btn-sticker-style {
    background: var(--bg-secondary);
    color: var(--text-main);
    border: var(--flat-border);
    border-radius: var(--radius-sm);
    padding: 0.35rem 0.2rem;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
}
.btn-sticker-style:hover, .btn-sticker-style.active {
    background: var(--accent-pink-gradient);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: var(--flat-shadow);
}
.btn-sticker-style:active {
    transform: translateY(0);
}

.sticker-color-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.1rem 0;
}

.sticker-colors {
    display: flex;
    gap: 0.4rem;
}

.sticker-color-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}
.sticker-color-dot:hover {
    transform: scale(1.15);
}
.sticker-color-dot.active {
    border-color: var(--text-main);
    transform: scale(1.1);
}

#sticker-color-picker {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    background: none;
    padding: 0;
    transition: var(--transition-smooth);
}
#sticker-color-picker:hover {
    transform: scale(1.15);
}
#sticker-color-picker::-webkit-color-swatch-wrapper {
    padding: 0;
}
#sticker-color-picker::-webkit-color-swatch {
    border: 2px solid transparent;
    border-radius: 50%;
}
#sticker-color-picker.active::-webkit-color-swatch {
    border-color: var(--text-main);
}

#sticker-border-color-picker::-webkit-color-swatch-wrapper {
    padding: 0;
}
#sticker-border-color-picker::-webkit-color-swatch {
    border: 2px solid transparent;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
}

#btn-send-sticker {
    background: var(--accent-pink-gradient);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.6rem;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--flat-shadow);
}
#btn-send-sticker:hover {
    transform: translateY(-2px);
    box-shadow: var(--flat-shadow-hover);
}
#btn-send-sticker:active {
    transform: translateY(0);
}

/* Chat bubble styling for stickers */
.msg-bubble.sticker-bubble {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    max-width: 260px !important;
    overflow: hidden;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
}

.msg-bubble.sticker-bubble img {
    display: block;
    width: 100%;
    height: auto;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    transition: var(--transition-smooth);
}

.msg-bubble.sticker-bubble img:hover {
    transform: scale(1.05);
}


@keyframes popup-slide {
    from { transform: translateY(12px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Reporting Dialog Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(43, 28, 35, 0.35);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--flat-shadow-hover);
    border: var(--flat-border);
    width: 90%;
    max-width: 400px;
    padding: 2.2rem;
    transform: scale(0.9) translateY(15px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.show .modal-content {
    transform: scale(1) translateY(0);
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.6rem;
}

.modal-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.4rem;
    line-height: 1.4;
}

/* Recessed select dropdown for neomorphism */
.neo-select {
    width: 100%;
    padding: 0.8rem 1.1rem;
    border-radius: var(--radius-md);
    border: none;
    outline: none;
    background: var(--bg-primary);
    box-shadow: inset 4px 4px 8px var(--dark-shadow), inset -4px -4px 8px var(--light-shadow);
    color: var(--text-main);
    font-size: 0.95rem;
    margin-bottom: 1.6rem;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23ff5f9e' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
}

/* Footer Style */
.app-footer {
    padding: 0.75rem 2.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    background: var(--bg-primary);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    z-index: 10;
    box-shadow: 0 -4px 10px rgba(229, 212, 220, 0.1);
}

.footer-attribution {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

/* Responsive UI */
@media (max-width: 1024px) {
    .ad-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .app-header {
        padding: 0.9rem 1.2rem;
    }

    .landing-view {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem 1rem;
        justify-content: flex-start;
        overflow-y: auto;
    }

    .hero-title {
        font-size: 2.6rem;
        margin-top: 0.5rem;
        text-align: center;
    }

    .hero-tagline {
        font-size: 1.1rem;
        text-align: center;
        margin-bottom: 1rem;
    }

    .landing-seo-content {
        text-align: center;
    }

    .safety-box-neo {
        padding: 0.9rem 1.1rem;
    }

    .start-card {
        padding: 1.4rem;
    }

    .chat-view {
        flex-direction: column;
    }

    .chat-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.4);
        padding: 0.8rem 1.2rem;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .status-box {
        margin-bottom: 0;
        padding: 0.4rem 0.8rem;
        flex: 1;
    }

    .status-indicator { font-size: 0.9rem; }
    .status-detail { display: none; }
    
    .voice-visualizer {
        margin: 0;
        flex: 0;
    }

    .pulse-ring-container {
        width: 46px;
        height: 46px;
    }
    .pulse-ring {
        width: 38px;
        height: 38px;
    }
    .mic-icon-btn {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }
    .voice-status-lbl { display: none; }

    .sidebar-actions {
        margin-top: 0;
        flex-direction: row;
        gap: 0.4rem;
    }

    .btn-sidebar {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }

    .kb-info { display: none; }

    .chat-history { padding: 1rem; }
    .msg-bubble { max-width: 80%; }
    .chat-input-bar { padding: 0.8rem; }
    
    .emoji-popup-wrapper {
        bottom: 75px;
        right: 10px;
        width: calc(100vw - 20px);
    }

    .app-footer {
        flex-direction: column;
        gap: 0.35rem;
        padding: 0.8rem 1.2rem;
        text-align: center;
    }
}

/* Audio Route and Earpiece Blackout Styles */
.audio-route-toggle {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    background: var(--bg-secondary);
    border: var(--flat-border);
    border-radius: var(--radius-md);
    padding: 0.35rem;
    width: 100%;
}

.route-btn {
    flex: 1;
    padding: 0.5rem;
    border: none;
    border-radius: calc(var(--radius-md) - 2px);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    transition: var(--transition-smooth);
}

.route-btn.active {
    background: var(--accent-pink-gradient);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(255, 95, 158, 0.15);
}

#earpiece-blackout {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000000;
    z-index: 999999;
    color: #333;
    text-align: center;
    justify-content: center;
    align-items: center;
    cursor: none;
    user-select: none;
    flex-direction: column;
    gap: 1.5rem;
}

#earpiece-blackout.show {
    display: flex;
}

.blackout-tip {
    font-size: 0.9rem;
    color: #555;
    font-family: sans-serif;
}

.blackout-pulse {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #111;
    box-shadow: 0 0 10px rgba(255, 95, 158, 0.2);
    animation: pulse-dark-fade 2s infinite;
}

@keyframes pulse-dark-fade {
    0% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(0.95); opacity: 0.5; }
}

/* Report Modal Enhancements */
.report-chips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}

.report-chip {
    padding: 0.6rem;
    border-radius: var(--radius-md);
    border: var(--flat-border);
    background: var(--bg-primary);
    color: var(--text-main);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: var(--transition-smooth);
    outline: none;
}

.report-chip.active {
    background: var(--accent-pink-gradient);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(255, 95, 158, 0.2);
}

.report-chip:hover:not(.active) {
    border-color: var(--accent-pink);
    transform: translateY(-1px);
}

.neo-textarea {
    width: 100%;
    padding: 0.8rem 1.1rem;
    border-radius: var(--radius-md);
    border: var(--flat-border);
    outline: none;
    background: var(--bg-primary);
    color: var(--text-main);
    font-size: 0.9rem;
    margin-bottom: 1.6rem;
    resize: none;
    font-family: inherit;
    transition: var(--transition-smooth);
}

.neo-textarea:focus {
    border-color: var(--accent-pink);
    box-shadow: 0 0 0 3px rgba(255, 95, 158, 0.15);
}

/* Footer Links & General Modal Body Scrolling Styles */
.footer-links {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--accent-pink);
}

.modal-body-scroll {
    max-height: 280px;
    overflow-y: auto;
    padding-right: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-main);
    text-align: left;
}

.modal-body-scroll::-webkit-scrollbar {
    width: 4px;
}

.modal-body-scroll::-webkit-scrollbar-thumb {
    background: rgba(229, 212, 220, 0.8);
    border-radius: 10px;
}

.modal-body-scroll h4 {
    margin: 1.1rem 0 0.4rem 0;
    color: var(--accent-pink);
    font-size: 0.95rem;
    font-weight: 700;
}

.modal-body-scroll p {
    margin-bottom: 0.8rem;
    color: var(--text-main);
}

/* Rich SEO Extended Sections */
.landing-seo-extended {
    grid-column: span 2;
    margin-top: 3.5rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 95, 158, 0.15);
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
    width: 100%;
}

.seo-section-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.seo-section-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.seo-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.seo-feature-card {
    background: #ffffff;
    border: var(--flat-border);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    box-shadow: var(--flat-shadow);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
}

.seo-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--flat-shadow-hover);
    border-color: var(--accent-pink);
}

.seo-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    color: var(--accent-pink);
    border-radius: 50%;
    font-size: 1.4rem;
}

.seo-feature-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.seo-feature-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.seo-steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.seo-step-card {
    background: #ffffff;
    border: var(--flat-border);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    position: relative;
    box-shadow: var(--flat-shadow);
}

.seo-step-num {
    position: absolute;
    top: -15px;
    left: 20px;
    width: 32px;
    height: 32px;
    background: var(--accent-pink-gradient);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: var(--neon-pink-glow);
}

.seo-step-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 0.5rem;
    margin-bottom: 0.6rem;
    color: var(--text-main);
}

.seo-step-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.seo-faq-container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.seo-faq-card {
    background: #ffffff;
    border: var(--flat-border);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.seo-faq-card:hover {
    border-color: var(--accent-pink);
    box-shadow: var(--flat-shadow);
}

.seo-faq-question {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.seo-faq-question::after {
    content: '+';
    font-size: 1.3rem;
    color: var(--accent-pink);
    transition: transform 0.3s ease;
}

.seo-faq-card.active .seo-faq-question::after {
    content: '−';
    transform: rotate(180deg);
}

.seo-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, margin-top 0.3s ease;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.seo-faq-card.active .seo-faq-answer {
    max-height: 200px;
    margin-top: 0.8rem;
}

/* Info Cards & SVG Micro-animations */
.seo-feature-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    transition: var(--transition-smooth);
}

.seo-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.seo-info-card {
    background: #ffffff;
    border: var(--flat-border);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    box-shadow: var(--flat-shadow);
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
}

.seo-info-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--flat-shadow-hover);
    border-color: var(--accent-pink);
}

.seo-info-card:hover .seo-feature-icon {
    background: var(--accent-pink-gradient);
    color: #ffffff;
    box-shadow: var(--neon-pink-glow);
}

.seo-info-card:hover .seo-feature-icon svg {
    transform: scale(1.1) rotate(5deg);
}

.seo-card-bullets {
    margin-left: 1.15rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-align: left;
}

.seo-card-bullets li {
    list-style-type: disc;
}

/* Scrollable layout for static pages */
body.static-layout {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: auto !important;
    min-height: 100vh !important;
}

body.static-layout .app-container {
    height: auto !important;
    min-height: 100vh !important;
    overflow: visible !important;
}

/* Dialer UI Styles */
.dialer-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.8rem;
    width: 100%;
}

.dialer-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent-pink-gradient);
    border: 3px solid #ffffff;
    box-shadow: var(--flat-shadow-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    position: relative;
    transition: var(--transition-smooth);
}

.dialer-avatar svg {
    width: 30px;
    height: 30px;
    stroke: currentColor;
    fill: none;
}

.dialer-peer-name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.3px;
    margin-top: 0.1rem;
}

.dialer-status {
    font-size: 0.78rem;
    color: var(--accent-pink);
    font-weight: 700;
    background: var(--bg-secondary);
    padding: 0.15rem 0.6rem;
    border-radius: 50px;
    border: var(--flat-border);
    letter-spacing: 0.5px;
}

.dialer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
    width: 100%;
    margin: 0.4rem 0 0.8rem 0;
}

.dialer-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
    transition: var(--transition-smooth);
}

.dialer-btn-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: var(--flat-border);
    box-shadow: var(--flat-shadow);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.dialer-btn-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    transition: var(--transition-smooth);
}

.dialer-btn-lbl {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
}

.dialer-btn:hover .dialer-btn-icon {
    border-color: var(--accent-pink);
    transform: translateY(-2px);
}

.dialer-btn.active .dialer-btn-icon {
    background: var(--accent-pink-gradient);
    color: #ffffff;
    border-color: transparent;
    box-shadow: var(--neon-pink-glow);
}

.dialer-btn.active .dialer-btn-icon svg {
    transform: scale(1.08);
}

.dialer-btn-icon.warning:hover {
    border-color: #ff3b30;
}

.dialer-btn-icon.warning svg {
    stroke: var(--text-main);
}

.dialer-btn.active .dialer-btn-icon.warning {
    background: linear-gradient(135deg, #ff9500 0%, #ff5e00 100%);
    box-shadow: 0 0 10px rgba(255, 149, 0, 0.35);
}

.dialer-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    width: 100%;
    margin-bottom: 0.5rem;
}

.dialer-btn-hangup {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ff3b30;
    border: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(255, 59, 48, 0.35);
    transition: var(--transition-smooth);
}

.dialer-btn-hangup svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.dialer-btn-hangup:hover {
    transform: scale(1.06) rotate(135deg);
    box-shadow: 0 6px 20px rgba(255, 59, 48, 0.5);
    background: #e02b20;
}

.hangup-btn-lbl {
    font-size: 0.72rem;
    color: #ff3b30;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* Dialer Proximity Sensor Ring Animation */
@keyframes dialer-avatar-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 95, 158, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(255, 95, 158, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 95, 158, 0); }
}

.dialer-avatar.calling {
    animation: dialer-avatar-pulse 1.8s infinite;
}

.msg-row.system.interests-glow .msg-bubble {
    background: #eef2ff !important;
    border: 1px solid #c7d2fe !important;
    color: #4f46e5 !important;
    box-shadow: 0 0 10px rgba(79, 70, 229, 0.15) !important;
}

.msg-row.system.like-glow .msg-bubble {
    background: #fff0f5 !important;
    border: 1px solid #fda4af !important;
    color: #e11d48 !important;
    box-shadow: 0 0 10px rgba(225, 29, 72, 0.15) !important;
}

/* ==========================================================================
   RICH FEATURE UPGRADES: FILE SHARING, SKETCHPAD, & LIVE CAPTIONS
   ========================================================================== */

/* 1. Chat input Relative Wrapper for overlay positioning */
.chat-main {
    position: relative;
}

/* 2. P2P File Sharing Styles */
.file-progress-container {
    width: 100%;
    min-width: 180px;
    margin-top: 0.4rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.file-progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.2rem;
    font-weight: 600;
}
.file-progress-bg {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}
.file-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent-pink-gradient);
    transition: width 0.1s ease-out;
}
.file-preview-img {
    max-width: 100%;
    max-height: 200px;
    border-radius: var(--radius-md);
    margin-top: 0.4rem;
    display: block;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.file-preview-img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(255, 95, 158, 0.15);
}
.file-download-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: var(--bg-secondary);
    border: var(--flat-border);
    border-radius: var(--radius-sm);
    color: var(--accent-pink);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}
.file-download-link:hover {
    background: var(--accent-pink);
    color: #ffffff;
    border-color: transparent;
    box-shadow: var(--neon-pink-glow);
}

/* 3. Shared Canvas Panel Styles */
.canvas-panel {
    position: absolute;
    top: 0; left: 0; right: 0;
    bottom: 60px; /* Sits exactly above the chat input bar */
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100;
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid rgba(255, 95, 158, 0.15);
    animation: canvasSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes canvasSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.canvas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.2rem;
    border-bottom: 1px solid rgba(255, 95, 158, 0.1);
    background: rgba(255, 255, 255, 0.9);
}
.canvas-title {
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.95rem;
}
.canvas-controls {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.canvas-controls input[type="color"] {
    border: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    outline: none;
    background: none;
}
.canvas-controls input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}
.canvas-controls input[type="color"]::-webkit-color-swatch {
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.canvas-controls select {
    padding: 0.3rem 0.6rem;
    border: var(--flat-border);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--text-main);
    font-size: 0.8rem;
    outline: none;
}
.btn-canvas-ctrl {
    padding: 0.3rem 0.8rem;
    background: var(--accent-pink-gradient);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--neon-pink-glow);
    transition: var(--transition-smooth);
}
.btn-canvas-ctrl:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(255, 95, 158, 0.4);
}
.btn-canvas-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-smooth);
}
.btn-canvas-close:hover {
    color: var(--accent-pink);
    transform: scale(1.1);
}
.canvas-wrapper {
    flex: 1;
    position: relative;
    background: #ffffff;
    cursor: crosshair;
    overflow: hidden;
}
#shared-canvas {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: block;
}

/* 4. Live Captions Overlay Styles */
.captions-overlay {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.78);
    color: #ffffff;
    padding: 0.65rem 1.3rem;
    border-radius: 50px;
    font-size: 0.85rem;
    max-width: 80%;
    text-align: center;
    z-index: 10;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: captionsFadeIn 0.25s ease-out;
    pointer-events: none;
}
@keyframes captionsFadeIn {
    from { opacity: 0; transform: translate(-50%, 10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}
.captions-text {
    font-weight: 500;
    letter-spacing: 0.2px;
    line-height: 1.4;
}

/* 5. Transcription Messages in Chat History */
.msg-row.transcription .msg-bubble {
    background: #fff5f8 !important;
    border: 1px dashed var(--accent-pink) !important;
    color: var(--text-main) !important;
    box-shadow: 0 2px 8px rgba(255, 95, 158, 0.04) !important;
}

/* 6. Active Dialer Controls States */
.dialer-btn.active .dialer-btn-icon {
    background: var(--accent-pink-gradient) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: var(--neon-pink-glow) !important;
}
.dialer-btn.active .dialer-btn-icon svg {
    stroke: #ffffff !important;
}





