* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables for theming */
:root {
    /* Light mode (default) */
    --bg-primary: #fcf9ea;
    --bg-secondary: #f5f0d8;
    --bg-tertiary: #fffef5;
    --bg-quaternary: #ebe6ce;
    --bg-white: white;
    --bg-card: #ffffff;
    
    --text-primary: #333;
    --text-secondary: #5f7496;
    --text-tertiary: #4a5568;
    --text-muted: #718096;
    --text-light: #a0aec0;
    
    --border-color: #cbd5e0;
    --border-secondary: #ebe6ce;
    
    --accent-primary: #4da4a0;
    --accent-hover: #3d8480;
}

/* Dark mode */
[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #3a3a3a;
    --bg-quaternary: #404040;
    --bg-white: #2d2d2d;
    --bg-card: #2d2d2d;
    
    --text-primary: #e5e5e5;
    --text-secondary: #a1a1a1;
    --text-tertiary: #d0d0d0;
    --text-muted: #a0a0a0;
    --text-light: #808080;
    
    --border-color: #404040;
    --border-secondary: #404040;
    
    --accent-primary: #B46065;
    --accent-hover: #B46065;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-primary);
    min-height: 100vh;
    padding: 2rem;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

@media (max-width: 768px) {
    body {
        padding: 16px;
    }
}

/* Link styles for dark mode compatibility */
a {
    color: var(--accent-primary);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-hover);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: opacity 0.2s ease;
    color: inherit;
}

.header-content:hover {
    opacity: 0.7;
}

.header-content:visited {
    color: inherit;
}

.mascot-logo {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    object-fit: contain;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.site-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin: 0;
    letter-spacing: -0.01em;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* Dark mode toggle */
.dark-mode-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0.5rem;
    transition: transform 0.2s ease, opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
    opacity: 0.7;
}

.dark-mode-icon {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

[data-theme="dark"] .dark-mode-icon {
    color: #f0e68c;
}

/* Navigation */
.nav-wrapper {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.hamburger-menu {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--accent-primary);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.hamburger-menu:hover {
    color: var(--accent-hover);
}

.main-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
    position: static;
    background: transparent;
    border: none;
    padding: 0;
    flex-direction: row;
    box-shadow: none;
    transform: none;
    transition: none;
}

.nav-backdrop {
    display: none;
}

.nav-btn {
    padding: 0.5rem 0;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.nav-btn:hover {
    color: var(--accent-hover);
    border-bottom-color: var(--accent-hover);
}

.nav-btn.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}


.upload-section {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.upload-area {
    border: 3px dashed var(--border-color);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: var(--accent-primary);
    background: var(--bg-tertiary);
}

.upload-area.dragover {
    border-color: var(--accent-primary);
    background: var(--bg-tertiary);
    transform: scale(1.02);
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.upload-area h3 {
    color: var(--accent-primary);
    font-size: 36px;
}

@media screen and (max-width: 768px) {
    .upload-area h3 {
        font-size: 24px;
    }
}

.upload-area p {
    color: var(--text-muted);
    margin: 0.5rem 0;
}

.file-info {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 1rem;
}

.file-name {
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--bg-quaternary);
    border-radius: 8px;
    text-align: center;
    color: var(--text-tertiary);
    font-weight: 500;
    display: none;
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(77, 164, 160, 0.4);
    color: white;
}

.btn-secondary {
    background: var(--bg-quaternary);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background: var(--border-secondary);
}

.loading {
    text-align: center;
}

.spinner {
    border: 4px solid var(--bg-quaternary);
    border-top: 4px solid var(--accent-primary);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    color: var(--text-tertiary);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.loading-subtext {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: var(--bg-quaternary);
    border-radius: 6px;
    overflow: hidden;
    margin: 1.5rem 0 0.5rem;
}

.progress-fill {
    height: 100%;
    background: var(--accent-primary);
    border-radius: 6px;
    transition: width 0.3s ease;
    width: 0%;
}

.group-status {
    margin-top: 1.5rem;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.group-item {
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    color: var(--text-tertiary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.group-item.extracting {
    background: var(--bg-tertiary);
    border-left: 4px solid var(--accent-primary);
}

.group-item.completed {
    background: var(--bg-tertiary);
    border-left: 4px solid var(--accent-primary);
}

.group-item small {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.spinner-small {
    display: inline-block;
    border: 2px solid var(--bg-quaternary);
    border-top: 2px solid var(--accent-primary);
    border-radius: 50%;
    width: 14px;
    height: 14px;
    animation: spin 1s linear infinite;
}

.error {
    background: #fed7d7;
    border: 2px solid #fc8181;
    color: #742a2a;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 500;
}

[data-theme="dark"] .error {
    background: #7f1d1d;
    border: 2px solid #dc2626;
    color: #fecaca;
}

.results {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-secondary);
}

.results-header h2 {
    color: var(--accent-primary);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.results-actions {
    display: flex;
    gap: 1rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.insurance-type {
    margin-bottom: 2rem;
    text-align: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 2.5rem;
}

.badge-health {
    background: #c6f6d5;
    color: #22543d;
}

[data-theme="dark"] .badge-health {
    background: #22543d;
    color: #c6f6d5;
}

.badge-dental {
    background: #bee3f8;
    color: #2c5282;
}

[data-theme="dark"] .badge-dental {
    background: #2c5282;
    color: #bee3f8;
}

.badge-vision {
    background: #feebc8;
    color: #7c2d12;
}

[data-theme="dark"] .badge-vision {
    background: #7c2d12;
    color: #feebc8;
}

.entity-section {
    margin-bottom: 2.5rem;
}

.entity-section h3 {
    color: var(--accent-primary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-secondary);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.entity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.entity-item {
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border-left: 4px solid var(--accent-primary);
}

.entity-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.entity-value {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 500;
    word-break: break-word;
}

.entity-list {
    list-style: none;
    padding: 0;
}

.entity-list li {
    padding: 0.875rem 1rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    border-left: 4px solid var(--accent-primary);
    color: var(--text-tertiary);
    line-height: 1.6;
}

.entity-list li:before {
    content: "•";
    color: var(--accent-primary);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    margin-right: 0.5em;
}

/* My Documents Page */
.my-documents-page {
}

@media screen and (max-width: 768px) {
    .my-documents-page {
        padding: 0;
        background: none;
        box-shadow: none;
    }
}

.plans-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 2rem;
}

@media screen and (max-width: 768px) {
    .plans-header {
        margin-bottom: 16px;
        justify-content: space-between;
    }
}


.plans-header h2 {
    color: var(--accent-primary);
    font-size: 2rem;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.btn-add-plan {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-add-plan:hover {
    color: var(--accent-hover);
    transform: scale(1.1);
}

.btn-add-plan i {
    font-size: 1.5rem;
}

.chat-icon {
    display: inline-block;
    margin-right: 0.5rem;
}

.documents-list h2 {
    color: var(--accent-primary);
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

#documentsGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
    font-size: 1.125rem;
}

.document-card {
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid var(--accent-primary);
    transition: all 0.3s ease;
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: inherit;
    height: fit-content;
    align-self: center;
}

.document-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    text-decoration: none;
}

.doc-card-header {
    margin-bottom: 1rem;
}

.doc-card-title {
    color: var(--text-secondary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.doc-card-filename {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.doc-card-date {
    color: var(--text-light);
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.doc-card-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.doc-card-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Document Detail View */
.document-detail {
    padding: 0;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-secondary);
}

.detail-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.detail-content-full {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.detail-content-full h2 {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    color: var(--accent-primary);
}

.detail-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-secondary);
    text-align: center;
}

.detail-left {
    overflow-y: auto;
}

.detail-left h2 {
    color: var(--accent-primary);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.detail-right {
    position: sticky;
    top: 0;
    height: fit-content;
}

/* Chat/Notes Container */
.chat-container {
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid var(--accent-primary);
    height: 600px;
    display: flex;
    flex-direction: column;
}

.chat-container h3 {
    color: var(--accent-primary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-secondary);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 1rem;
    padding-right: 0.5rem;
}

.empty-messages {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-light);
    font-style: italic;
}

.chat-message {
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.875rem;
    max-width: 85%;
}

.chat-message.user {
    background: var(--accent-primary);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.chat-message.assistant {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    margin-right: auto;
    border-bottom-left-radius: 4px;
}

.message-header {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chat-message.user .message-header {
    color: rgba(255, 255, 255, 0.9);
}

.chat-message.assistant .message-header {
    color: var(--accent-primary);
}

.message-content {
    line-height: 1.6;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
}

.chat-message.user .message-content {
    color: white;
}

.chat-message.assistant .message-content {
    color: var(--text-secondary);
}

.message-time {
    font-size: 0.7rem;
    opacity: 0.7;
}

.chat-message.user .message-time {
    color: rgba(255, 255, 255, 0.8);
    text-align: right;
}

.chat-message.assistant .message-time {
    color: var(--text-muted);
}

/* Typing indicator */
.typing-indicator .message-content {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    padding: 0.5rem 0;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    30% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Suggested questions */
.suggested-questions {
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.suggested-questions-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.suggested-questions-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.suggested-question-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-secondary);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    text-align: left;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggested-question-btn:hover {
    background: var(--bg-quaternary);
    border-color: var(--border-secondary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

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

.suggestions-loading {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.suggestion-loading-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-secondary);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.suggestion-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-secondary);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: suggestion-spin 0.8s linear infinite;
}

.suggestion-loading-text {
    color: var(--text-light);
    font-size: 0.9rem;
    font-style: italic;
}

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

.chat-input-container {
    display: flex;
    gap: 0.75rem;
}

.chat-input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--border-secondary);
    border-radius: 8px;
    font-size: 0.95rem;
    background: var(--bg-white);
    color: var(--text-secondary);
    transition: border-color 0.3s ease;
}

.chat-input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

@media (max-width: 768px) {

    .header-wrapper {
        gap: 1rem;
    }

    .hamburger-menu {
        display: block;
    }

    .nav-backdrop {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s ease-out;
    }

    .nav-backdrop.active {
        display: block;
        opacity: 1;
    }

    .main-nav {
        display: none;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--bg-card);
        border-top: 2px solid var(--border-color);
        border-radius: 24px 24px 0 0;
        padding: 1.5rem;
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
        flex-direction: column;
        gap: 0.25rem;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15), 
                    0 -4px 16px rgba(0, 0, 0, 0.1),
                    0 -2px 8px rgba(0, 0, 0, 0.06);
        z-index: 1000;
        transform: translateY(100%);
        transition: transform 0.3s ease-out;
    }

    [data-theme="dark"] .main-nav {
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5), 
                    0 -4px 16px rgba(0, 0, 0, 0.3),
                    0 0 0 1px rgba(255, 255, 255, 0.05);
    }

    .main-nav.nav-open {
        display: flex;
        transform: translateY(0);
    }

    .nav-btn {
        width: 100%;
        text-align: left;
        padding: 0.875rem 1rem;
        border-bottom: none !important;
        border-radius: 10px;
        transition: all 0.2s ease;
        font-size: 0.95rem;
        display: block;
    }

    .nav-btn:hover {
        background-color: var(--bg-secondary);
        color: var(--accent-primary);
        border-bottom: none !important;
        transform: translateX(2px);
    }

    .nav-btn.active {
        background-color: var(--bg-secondary);
        color: var(--accent-primary);
        border-bottom: none !important;
        font-weight: 600;
    }

    .header-content {
        gap: 0.75rem;
    }

    .mascot-logo {
        width: 40px;
        height: 40px;
    }

    header h1 {
        font-size: 2rem;
    }

    .upload-section {
        padding: 0;
    }

    .upload-area {
        padding: 2rem 1rem;
    }

    .entity-grid {
        grid-template-columns: 1fr;
    }

    .results-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .results-actions {
        flex-direction: column;
        width: 100%;
    }

    #documentsGrid {
        grid-template-columns: 1fr;
    }

    .detail-content {
        grid-template-columns: 1fr;
    }

    .detail-right {
        position: static;
    }

    .chat-container {
        height: 400px;
    }
}

/* Full-page chat styles */
.fullpage-chat {
    min-height: 600px;
    display: flex;
    flex-direction: column;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-secondary);
}

.chat-header h2 {
    color: var(--accent-primary);
    font-size: 36px;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.plans-selector {
    position: relative;
}

.plans-count {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    user-select: none;
}

.plans-count:hover {
    background: var(--bg-quaternary);
}

.plans-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 300px;
    max-width: 400px;
    z-index: 100;
    animation: dropdownSlideIn 0.2s ease-out;
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.plans-dropdown-header {
    padding: 1rem;
    border-bottom: 2px solid var(--border-secondary);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 1rem;
}

.plans-dropdown-list {
    padding: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.plan-checkbox-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
    gap: 0.75rem;
}

.plan-checkbox-item:hover {
    background: var(--bg-tertiary);
}

.plan-checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-primary);
}

.plan-checkbox-label {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    cursor: pointer;
}

.plan-checkbox-name {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

.plan-checkbox-filename {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.plans-dropdown-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.chat-container-full {
    background: var(--bg-tertiary);
    border-radius: 12px;
    border-left: 4px solid var(--accent-primary);
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-messages-full {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-input-wrapper {
    background: var(--bg-secondary);
    border-top: 2px solid var(--border-secondary);
}

.chat-input-container-full {
    display: flex;
    gap: 0;
    padding: 1.5rem;
    align-items: stretch;
}

.chat-input-full {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-secondary);
    border-radius: 0;
    border-right: none;
    border-left: none;
    font-size: 1rem;
    background: var(--bg-white);
    color: var(--text-secondary);
    resize: none;
    overflow-y: auto;
    min-height: 48px;
    max-height: 200px;
    line-height: 1.5;
    font-family: inherit;
    transition: height 0.15s ease-out;
}

.chat-input-full:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.chat-input-full:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.chat-input-full:focus + #sendBtn {
    border-color: var(--accent-primary);
}

@media (min-width: 769px) {
    /* Hide backdrop on desktop */
    .plans-dropdown-backdrop {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .fullpage-chat {
        padding:0;
        background: none;
        box-shadow: none;
        height: unset;
        min-height: 500px;
    }

    .chat-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .chat-header h2 {
        font-size: 2rem;
    }

    .plans-count {
        font-size: 0.9rem;
    }

    /* Mobile bottom sheet style */
    .plans-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        min-width: auto;
        border-radius: 16px 16px 0 0;
        border: none;
        border-top: 2px solid var(--border-color);
        box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
        max-height: 70vh;
        animation: slideUpFromBottom 0.3s ease-out;
        z-index: 1001;
    }

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

    .plans-dropdown-header {
        padding: 1.25rem 1rem;
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .plans-dropdown-header::after {
        content: "\f00d";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        cursor: pointer;
        opacity: 0.6;
        font-size: 1.25rem;
    }

    .plans-dropdown-list {
        max-height: calc(70vh - 80px);
        padding: 0.5rem 1rem 1.5rem 1rem;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.modal-content {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h2 {
    margin: 0 0 1rem 0;
    color: var(--accent-primary);
    font-size: 1.5rem;
}

.modal-content p {
    margin: 0 0 1rem 0;
    color: var(--text-tertiary);
    line-height: 1.6;
}

.duplicate-details {
    background: var(--bg-tertiary);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.duplicate-info ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
}

.duplicate-info li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-tertiary);
}

.duplicate-info li:last-child {
    border-bottom: none;
}

.modal-hint {
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-options-help {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 0.5rem 0;
}

.modal-options-help li {
    padding: 0.4rem 0;
    border-bottom: none;
    color: var(--text-tertiary);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.modal-actions .btn {
    flex: 1;
    min-width: 150px;
}

@media (max-width: 768px) {
    .modal-content {
        padding: 1.5rem;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions .btn {
        width: 100%;
    }
}

/* Below the Fold Section */
.below-fold-section {
    margin-top: 5rem;
    padding-top: 4rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.info-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.info-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 16px;
}

.info-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-tertiary);
}

/* Privacy Section */
.privacy-section {
    background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent-primary) 100%);
    border-radius: 16px;
    padding: 3rem 2rem;
    margin-bottom: 4rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 2px solid rgba(77, 164, 160, 0.1);
}

[data-theme="dark"] .privacy-section {
    background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent-primary) 100%);
    opacity: 0.8;
    border-color: rgba(77, 164, 160, 0.2);
}

.privacy-icon {
    font-size: 3rem;
    color: #fcf9ea;
    margin-bottom: 1rem;
}

.privacy-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #fcf9ea;
    margin-bottom: 2.5rem;
    letter-spacing: -0.02em;
}

.privacy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.privacy-point {
    text-align: left;
}

.privacy-point h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fcf9ea;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 16px;
}

.privacy-point p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #fcf9ea;
}

.cta-section {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-secondary);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.cta-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.cta-section p {
    font-size: 1.2rem;
    color: var(--text-tertiary);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .below-fold-section {
        margin-top: 3rem;
        padding-top: 2rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .info-card {
        padding: 1.5rem;
    }
    
    .info-card h3 {
        font-size: 1.3rem;
    }
    
    .privacy-section {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .privacy-icon {
        font-size: 2.5rem;
    }
    
    .privacy-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .privacy-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .privacy-point h4 {
        font-size: 1.1rem;
    }
    
    .privacy-point p {
        font-size: 0.9rem;
    }
    
    .cta-section {
        padding: 2rem 1.5rem;
    }
    
    .cta-section h2 {
        font-size: 1.5rem;
    }
    
    .cta-section p {
        font-size: 1rem;
    }
}


#sendBtn {
    margin: 0;
    border-radius: 0 8px 8px 0;
    border: 2px solid var(--border-secondary);
    border-left: none;
    padding: 0.875rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-upload-btn {
    font-size: 32px;
}

/* Settings Page */
.settings-page {
    max-width: 900px;
    margin: 0 auto;
}

.settings-header {
    margin-bottom: 3rem;
}

.settings-header h2 {
    color: var(--accent-primary);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.settings-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin: 0;
}

.settings-section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.section-header i {
    font-size: 1.5rem;
    color: var(--accent-primary);
}

.section-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.settings-card {
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 2rem;
    border-left: 4px solid var(--accent-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.settings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-secondary);
}

.settings-row:last-child {
    border-bottom: none;
}

.setting-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.setting-value {
    color: var(--text-tertiary);
    font-size: 0.95rem;
}

.badge-admin {
    background: #fbbf24;
    color: #78350f;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

[data-theme="dark"] .badge-admin {
    background: #78350f;
    color: #fbbf24;
}

/* Integration Items */
.integration-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-secondary);
}

.integration-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.integration-item:first-child {
    padding-top: 0;
}

.integration-info {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    flex: 1;
}

.integration-logo {
    width: 60px;
    height: 60px;
    background: var(--bg-secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.integration-details {
    flex: 1;
}

.integration-details h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0 0 0.5rem 0;
}

.integration-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 0.75rem 0;
}

.integration-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
}

.integration-status.connected {
    background: #d1fae5;
    color: #065f46;
}

[data-theme="dark"] .integration-status.connected {
    background: #065f46;
    color: #d1fae5;
}

.integration-status.disconnected {
    background: var(--bg-secondary);
    color: var(--text-muted);
}

.integration-status i {
    font-size: 1rem;
}

.integration-actions {
    flex-shrink: 0;
}

.integration-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.integration-actions .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.integration-coming-soon {
    opacity: 0.6;
}

.coming-soon-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg-quaternary);
    color: var(--text-muted);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.privacy-info {
    color: var(--text-tertiary);
    line-height: 1.6;
}

.privacy-info p {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.privacy-info p:last-child {
    margin-bottom: 0;
}

.privacy-info i {
    color: var(--accent-primary);
    font-size: 1.1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

/* User badge in nav - make it clickable */
.user-badge {
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-badge:hover {
    color: var(--accent-primary) !important;
    border-bottom-color: var(--accent-primary) !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .settings-header h2 {
        font-size: 2rem;
    }

    .settings-subtitle {
        font-size: 1rem;
    }

    .settings-card {
        padding: 1.5rem;
    }

    .integration-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .integration-info {
        flex-direction: column;
        gap: 1rem;
    }

    .integration-logo {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .integration-actions {
        width: 100%;
    }

    .integration-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .settings-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Voice Chat Styles */
:root {
    --ring-scale: 1;
    --ring-opacity: 0.18;
}

/* Voice toggle button - left side of input */
.btn-voice-toggle {
    background: var(--accent-primary);
    border: 0px solid var(--border-secondary);
    border-right: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.875rem 1.5rem;
    border-radius: 8px 0 0 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0;
}

.btn-voice-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(77, 164, 160, 0.4);
}

.btn-voice-toggle:active {
    transform: translateY(-1px);
}

/* Voice mode container - replaces text input when active */
.voice-mode-container {
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    gap: 1.5rem;
    padding-top: 0;
}

.voice-mode-container .voice-avatar-wrap {
    width: 150px;
    height: 150px;
    margin-bottom: 0;
}

.voice-mode-container .voice-avatar {
    width: 120px;
    height: 120px;
}

.voice-mode-container .voice-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
}

.voice-mode-container canvas.voice-viz {
    width: 150px;
    height: 150px;
}

.voice-mode-container .voice-subtitle {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
}

.voice-mode-container .voice-log {
    width: 100%;
    max-width: 700px;
    min-height: 150px;
    max-height: 300px;
    overflow-y: auto;
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 1rem;
    border-radius: 12px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.8rem;
    line-height: 1.6;
    white-space: pre-wrap;
    box-shadow: inset 0 0 0 1px var(--border-color);
}

.voice-controls-inline {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-voice-ptt-inline {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    border: 2px solid var(--accent-primary);
    background: var(--bg-white);
    color: var(--accent-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    user-select: none;
}

.btn-voice-ptt-inline:hover:not(:disabled) {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(77, 164, 160, 0.3);
}

.btn-voice-ptt-inline:active:not(:disabled),
.btn-voice-ptt-inline.active {
    background: var(--accent-primary);
    color: white;
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(77, 164, 160, 0.4);
}

.btn-voice-ptt-inline:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-voice-ptt-inline i {
    font-size: 1.05rem;
}

.voice-chat-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.voice-avatar-wrap {
    position: relative;
    width: 220px;
    height: 220px;
    display: grid;
    place-items: center;
    margin-bottom: 2rem;
}

.voice-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: var(--bg-white);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
    display: grid;
    place-items: center;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.voice-avatar img {
    width: 140px;
    height: 140px;
    object-fit: contain;
}

.voice-pulse-ring {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    transform: scale(var(--ring-scale));
    pointer-events: none;
    background: radial-gradient(
        circle at 50% 50%,
        transparent 58%,
        hsla(180 60% 50% / var(--ring-opacity)) 59%,
        hsla(180 60% 50% / var(--ring-opacity)) 61%,
        transparent 62%
    );
    transition: transform 0.2s ease, opacity 0.2s ease;
    z-index: 1;
}

canvas.voice-viz {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.voice-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: center;
}

.voice-subtitle {
    margin: 0 0 2rem 0;
    font-size: 1rem;
    color: var(--text-secondary);
    text-align: center;
}

.voice-controls {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.voice-control-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
}

.voice-control-row input[type="text"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.voice-control-row input[type="text"]:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(77, 164, 160, 0.1);
}

.btn-voice-ptt {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    border: 2px solid var(--accent-primary);
    background: var(--bg-white);
    color: var(--accent-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    user-select: none;
}

.btn-voice-ptt:hover:not(:disabled) {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(77, 164, 160, 0.3);
}

.btn-voice-ptt:active:not(:disabled),
.btn-voice-ptt.active {
    background: var(--accent-primary);
    color: white;
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(77, 164, 160, 0.4);
}

.btn-voice-ptt:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-voice-ptt i {
    font-size: 1.1rem;
}

.voice-log {
    width: 100%;
    max-width: 800px;
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 1rem;
    border-radius: 12px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    white-space: pre-wrap;
    box-shadow: inset 0 0 0 1px var(--border-color);
}

@media (max-width: 768px) {
    .voice-chat-stage {
        padding: 1rem;
    }
    
    .voice-avatar-wrap {
        width: 180px;
        height: 180px;
        margin-bottom: 1.5rem;
    }
    
    .voice-avatar {
        width: 150px;
        height: 150px;
    }
    
    .voice-avatar img {
        width: 110px;
        height: 110px;
    }
    
    .voice-title {
        font-size: 1.25rem;
    }
    
    .voice-subtitle {
        font-size: 0.9rem;
    }
    
    .voice-control-row {
        flex-direction: column;
        width: 100%;
    }
    
    .voice-control-row button,
    .voice-control-row input[type="text"] {
        width: 100%;
    }
    
    .voice-log {
        font-size: 0.8rem;
        min-height: 150px;
        max-height: 300px;
    }
}