* {
    box-sizing: border-box;
}

:root {
    /* Colors - Midnight Theme */
    --c-bg-main: #0B1015;
    --c-bg-panel: #111822;
    --c-bg-editor: #0D1219;
    --c-border: #232D3A;

    --c-accent: #3B82F6;
    --c-accent-hover: #2563EB;
    --c-accent-alpha: rgba(59, 130, 246, 0.15);

    --c-text-primary: #E2E8F0;
    --c-text-secondary: #94A3B8;
    --c-text-tertiary: #64748B;

    --c-success: #10B981;
    --c-error: #EF4444;
    --c-warning: #F59E0B;

    /* Fonts */
    --f-ui: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --f-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Layout */
    --h-header: 48px;
    --h-footer: 180px;
    --w-sidebar: 400px;
    --w-sidebar-mobile: 100%;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--f-ui);
    background: var(--c-bg-main);
    color: var(--c-text-primary);
    height: 100vh;
    overflow: hidden;
}

/* App Shell */
.app-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Header */
.app-header {
    height: var(--h-header);
    background: var(--c-bg-panel);
    border-bottom: 1px solid var(--c-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    flex-shrink: 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-mark {
    width: 24px;
    height: 24px;
    background: var(--c-accent);
    color: white;
    border-radius: 4px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.logo-text {
    font-weight: 600;
    font-size: 14px;
    letter-spacing: -0.01em;
}

.badge {
    font-size: 10px;
    background: var(--c-accent-alpha);
    color: var(--c-accent);
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    font-weight: 700;
}

.badge {
    font-size: 10px;
    background: var(--c-accent-alpha);
    color: var(--c-accent);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    font-weight: 700;
}

/* Connection Status */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c-text-tertiary);
}

.status-indicator.connected .dot {
    background: var(--c-success);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.status-indicator.disconnected .dot {
    background: var(--c-error);
}

.status-indicator.connected .text {
    color: var(--c-success);
}

.status-indicator.disconnected .text {
    color: var(--c-error);
}

/* Workspace Layout */
.workspace {
    flex: 1;
    display: flex;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.panel {
    background: var(--c-bg-panel);
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--c-border);
    min-width: 0;
    /* Crucial for flex shrinking */
}

/* Sidebar */
.editor-panel {
    width: var(--w-sidebar);
    flex-shrink: 0;
    /* Prevent sidebar from shrinking */
    transition: width 0.2s;
}

.panel-header {
    height: 48px;
    border-bottom: 1px solid var(--c-border);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    flex-shrink: 0;
    gap: 8px;
}

@media (max-width: 600px) {
    .panel-header {
        padding: 0 0.5rem;
        gap: 4px;
    }
}

.tab {
    font-size: 12px;
    color: var(--c-text-secondary);
    border-bottom: 2px solid var(--c-accent);
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 4px;
    font-weight: 500;
    color: var(--c-text-primary);
}

.action-btn {
    background: transparent;
    border: 1px solid var(--c-border);
    color: var(--c-text-secondary);
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

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

.action-btn.primary:hover {
    background: var(--c-accent-hover);
}

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

.editor-container {
    flex: 1;
    background: var(--c-bg-editor);
    overflow: hidden;
    position: relative;
}

#editor {
    width: 100%;
    height: 100%;
    padding: 1rem;
    font-family: var(--f-mono);
    font-size: 13px;
    line-height: 1.5;
    color: var(--c-text-primary);
    overflow: auto;
    outline: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-corner {
    background: transparent;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #2B3544;
    border: 3px solid var(--c-bg-editor);
    /* simulate padding */
    border-radius: 10px;
}

.panel ::-webkit-scrollbar-thumb {
    border-color: var(--c-bg-panel);
}

/* Main Viz Panel */
.viz-panel {
    flex: 1;
    border-right: none;
    position: relative;
    width: 0;
    /* Forces flex child to default to 0 width and grow */
}

.controls-group {
    display: flex;
    gap: 4px;
    background: var(--c-bg-main);
    padding: 2px;
    border-radius: 6px;
    border: 1px solid var(--c-border);
}

.control-btn {
    background: transparent;
    border: none;
    color: var(--c-text-tertiary);
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

.control-btn.active {
    background: var(--c-bg-panel);
    color: var(--c-text-primary);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.toggle-switch {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: var(--c-text-secondary);
    gap: 8px;
    cursor: pointer;
    padding: 0 8px;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .toggle-switch .label {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .toggle-switch .label {
        font-size: 0;
    }

    .toggle-switch .label::before {
        content: 'Non-Py';
        font-size: 11px;
    }
}

.toggle-switch input {
    display: none;
}

.slider {
    width: 28px;
    height: 16px;
    background: var(--c-border);
    border-radius: 12px;
    position: relative;
    transition: 0.2s;
}

.slider:before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    left: 2px;
    top: 2px;
    transition: 0.2s;
}

input:checked+.slider {
    background: var(--c-accent);
}

input:checked+.slider:before {
    transform: translateX(12px);
}

.metrics-group {
    display: flex;
    gap: 1rem;
}

@media (max-width: 550px) {
    .metrics-group {
        gap: 0.5rem;
    }

    .metric .lbl {
        display: none;
    }
}

.metric {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1;
}

.metric .lbl {
    font-size: 9px;
    color: var(--c-text-tertiary);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 2px;
}

.metric .val {
    font-size: 14px;
    font-weight: 600;
    color: var(--c-text-primary);
    font-family: var(--f-mono);
}

.viz-content {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at center, #161e29 0%, #111822 100%);
    width: 100%;
}

#viz-tree-container {
    width: 100%;
    height: 100%;
}

.viz-footer {
    height: var(--h-footer);
    border-top: 1px solid var(--c-border);
    background: var(--c-bg-main);
    padding: 1rem;
    position: relative;
    flex-shrink: 0;
}

#viz-depth-container {
    width: 100%;
    height: 100%;
}

/* Inspector Overlay */
.inspector {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(17, 24, 34, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid var(--c-border);
    border-radius: 8px;
    width: 200px;
    padding: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: opacity 0.2s;
    z-index: 100;
}

.hidden {
    opacity: 0;
    pointer-events: none;
}

.inspector-header {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--c-text-tertiary);
    font-weight: 700;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--c-border);
}

.inspector-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 4px;
}

.inspector-key {
    color: var(--c-text-secondary);
}

.inspector-val {
    color: var(--c-text-primary);
    font-family: var(--f-mono);
}

/* Toasts */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.toast {
    background: var(--c-bg-panel);
    border: 1px solid var(--c-border);
    padding: 12px 16px;
    border-radius: 6px;
    color: var(--c-text-primary);
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    min-width: 250px;
}

.toast.error {
    border-left: 3px solid var(--c-error);
}

.toast.success {
    border-left: 3px solid var(--c-success);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 900px) {
    .workspace {
        flex-direction: column;
        overflow-y: auto;
    }

    .panel {
        width: 100%;
        flex: none;
    }

    .editor-panel {
        height: 400px;
        border-right: none;
        border-bottom: 1px solid var(--c-border);
        width: 100%;
    }

    .viz-panel {
        height: 600px;
        width: 100%;
        border-left: none;
    }

    .modal-content {
        padding: 2rem 1.5rem;
        max-width: 90%;
    }

    .inspector {
        width: 180px;
        padding: 8px;
        font-size: 11px;
    }
}

@media (max-width: 600px) {
    .panel-header {
        padding: 0 1.5rem;
        gap: 8px;
    }

    .modal-content {
        padding: 2rem 1.25rem;
    }

    .modal-content h2 {
        font-size: 18px;
        margin-bottom: 1rem;
    }
}

/* Demo Mode (Embedded in Landing Page) */
body.demo-mode .editor-panel {
    display: none !important;
}

body.demo-mode .app-header {
    display: none !important;
}

body.demo-mode .viz-footer {
    display: none !important;
}

body.demo-mode .panel {
    border: none !important;
}

body.demo-mode .viz-panel {
    width: 100% !important;
    height: 100vh !important;
}

body.demo-mode .workspace {
    height: 100vh !important;
}

body.demo-mode .inspector {
    position: fixed;
}

/* Ensure it positions relative to window */
/* Pro Features & Tabs */
.pro-badge {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #fff;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-weight: 700;
}

.tab {
    cursor: pointer;
    transition: all 0.2s;
}

.tab:hover {
    color: var(--c-text-primary);
}

.tab.active {
    color: var(--c-text-primary);
    border-bottom-color: var(--c-accent);
}


/* Sidebar Sections */
.sidebar-section {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--c-border);
    transition: flex 0.3s;
}

.sidebar-section.flex-1 {
    flex: 1;
    min-height: 0;
    /* Enable scrolling in child */
    overflow: hidden;
}

.sidebar-section.collapsed .collapsible-content {
    display: none;
}

/* When scratchpad is collapsed, allow project section to grow even more if needed */
.sidebar-section.collapsed {
    flex: 0 0 auto !important;
}

.section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--c-text-tertiary);
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--c-border);
    letter-spacing: 0.05em;
    cursor: default;
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
}

.section-title.toggle-trigger {
    cursor: pointer;
}

.section-title.toggle-trigger:hover {
    color: var(--c-text-primary);
}

.section-title .chevron {
    transition: transform 0.2s;
}

.sidebar-section.collapsed .chevron {
    transform: rotate(-90deg);
}

.scratchpad-header {
    padding: 10px 16px;
    font-size: 13px;
    color: var(--c-text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border-bottom: 1px solid var(--c-border);
}

.scratchpad-header .file-name {
    display: flex;
    align-items: center;
    gap: 8px;
}

.scratchpad-header .tab-label {
    color: var(--c-text-primary);
    font-family: var(--f-mono);
}

.editor-container {
    background: var(--c-bg-editor);
    overflow: hidden;
    position: relative;
    /* Height is controlled inline or via min-height */
}

/* Ensure Project List Scrolls */
.pro-upsell-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.file-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

/* Upload Area - Compact for Split View */
.upload-area {
    padding: 20px 10px;
    text-align: center;
    border: 2px dashed var(--c-border);
    margin: 16px;
    border-radius: 8px;
    color: var(--c-text-mute);
    transition: all 0.2s;
    cursor: pointer;
}

.upload-area svg {
    color: var(--c-text-tertiary);
    margin-bottom: 6px;
    width: 32px;
    height: 32px;
}

.btn-upload {
    background: var(--c-accent);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    font-size: 13px;
}

.btn-upload:hover {
    background: var(--c-accent-hover);
}

.btn-upload.outline {
    background: transparent;
    border: 1px solid var(--c-border);
    color: var(--c-text-primary);
    margin-left: 8px;
    /* space between buttons */
}

.btn-upload.outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--c-accent);
}

.file-list-header {
    padding: 10px 20px;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--c-text-tertiary);
    font-weight: 700;
    border-bottom: 1px solid var(--c-border);
}

.file-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

/* File List Accordion */
.file-item-container {
    border-bottom: 1px solid var(--c-border);
}

.file-item-header {
    padding: 10px 16px;
    font-size: 13px;
    color: var(--c-text-secondary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    transition: background 0.2s;
}

.file-item-header:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--c-text-primary);
}

.file-item-header.expanded {
    background: rgba(255, 255, 255, 0.05);
    color: var(--c-text-primary);
    border-left: 2px solid var(--c-accent);
}

.file-name {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chevron {
    font-size: 8px;
    transition: transform 0.2s;
    color: var(--c-text-tertiary);
}

.file-item-header.expanded .chevron {
    transform: rotate(90deg);
}

.file-meta .badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 100px;
    font-family: var(--f-mono);
}

.file-meta .badge.low {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.file-meta .badge.high {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

.file-item-content {
    background: #0D1219;
    overflow: auto;
    max-height: 400px;
    /* Limit height */
    border-bottom: 1px solid var(--c-border);
}

.file-item-content.hidden {
    display: none;
}

.file-item-content pre {
    margin: 0;
    padding: 1rem;
    font-size: 11px;
    font-family: var(--f-mono);
}

/* Force Graph */
.node-project circle {
    stroke: #fff;
    stroke-width: 1.5px;
    transition: all 0.2s;
}

.node-project:hover circle {
    stroke: var(--c-accent);
    stroke-width: 3px;
}

.link-project {
    stroke-opacity: 0.4;
}

.lock-icon {
    font-size: 10px;
    margin-left: 4px;
}

/* Auth Section Styles */
.auth-section,
.user-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-btn {
    background: transparent;
    border: 1px solid var(--c-border);
    color: var(--c-text-secondary);
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
    font-family: var(--f-ui);
}

.auth-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--c-text-primary);
}

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

.auth-btn.primary:hover {
    background: var(--c-accent-hover);
}

.user-email {
    font-size: 12px;
    color: var(--c-text-secondary);
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: var(--c-bg-panel);
    border: 1px solid var(--c-border);
    border-radius: 8px;
    padding: 2rem;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 24px;
    color: var(--c-text-tertiary);
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--c-text-primary);
}

.modal-content h2 {
    margin: 0 0 1.5rem 0;
    color: var(--c-text-primary);
    font-size: 20px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 12px;
    color: var(--c-text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    background: var(--c-bg-editor);
    border: 1px solid var(--c-border);
    color: var(--c-text-primary);
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-family: var(--f-ui);
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--c-accent);
}

.modal-btn {
    width: 100%;
    background: var(--c-accent);
    border: none;
    color: white;
    padding: 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: var(--f-ui);
}

.modal-btn:hover {
    background: var(--c-accent-hover);
}

.modal-switch {
    text-align: center;
    margin-top: 1rem;
    font-size: 13px;
    color: var(--c-text-secondary);
}

.modal-switch a {
    color: var(--c-accent);
    text-decoration: none;
    font-weight: 500;
    margin-left: 4px;
}

.modal-switch a:hover {
    text-decoration: underline;
}

/* Upgrade Modal Styles */
.upgrade-modal-content {
    text-align: center;
    max-width: 450px;
}

.upgrade-icon {
    font-size: 48px;
    margin-bottom: 1rem;
}

.upgrade-modal-content h2 {
    margin: 0 0 1rem 0;
    color: var(--c-text-primary);
    font-size: 24px;
}

.upgrade-modal-content p {
    color: var(--c-text-secondary);
    margin: 0.5rem 0;
    line-height: 1.6;
}

.upgrade-benefits {
    font-size: 14px;
    margin-bottom: 1.5rem !important;
}

.upgrade-btn {
    display: inline-block;
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}

.upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.upgrade-btn-secondary {
    display: inline-block;
    width: 100%;
    background: transparent;
    color: var(--c-text-secondary);
    padding: 10px 24px;
    border: 1px solid var(--c-border);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.upgrade-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--c-text-primary);
}

/* Integrated Auth/Upgrade Modal Styles */
.auth-toggle-prompt {
    font-size: 13px;
    color: var(--c-text-secondary);
    margin: 1rem 0;
    text-align: center;
}

.auth-toggle-prompt a {
    color: var(--c-accent);
    text-decoration: none;
    font-weight: 600;
}

.auth-toggle-prompt a:hover {
    text-decoration: underline;
}

.modal-auth-form {
    text-align: left;
    margin-top: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--c-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    background: var(--c-bg-main);
    border: 1px solid var(--c-border);
    border-radius: 4px;
    padding: 10px 12px;
    color: var(--c-text-primary);
    font-size: 14px;
    font-family: var(--f-ui);
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--c-accent);
}

.modal-back-to-initial {
    margin-top: 0.5rem;
    font-size: 12px;
    opacity: 0.7;
}

.modal-back-to-initial:hover {
    opacity: 1;
}

/* Modal Content Transition Smoothing */
.upgrade-modal-content {
    transition: all 0.3s ease;
}

/* Header Auth */
.header-auth {
    margin-left: auto;
    margin-right: 1.5rem;
    display: flex;
    gap: 12px;
}

.header-auth button {
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.auth-btn-primary {
    background: var(--c-accent);
    border: none;
    color: white;
    padding: 6px 16px;
    border-radius: 4px;
}

.auth-btn-primary:hover {
    background: var(--c-accent-hover);
}

.auth-btn-text {
    background: transparent;
    border: none;
    color: var(--c-text-secondary);
    padding: 6px;
}

.auth-btn-text:hover {
    color: var(--c-text-primary);
}

.account-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--c-text-primary);
    background: var(--c-bg-panel);
    border: 1px solid var(--c-border);
    padding: 6px 12px;
    border-radius: 20px;
}

.account-btn:hover {
    border-color: var(--c-text-secondary);
}

.avatar-placeholder {
    width: 20px;
    height: 20px;
    background: var(--c-accent);
    color: white;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Account Modal Details */
.account-badge {
    background: var(--c-border);
    color: var(--c-text-main);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: inline-block;
}

.account-badge.pro {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
}

.account-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.account-actions button {
    width: 100%;
    margin-left: 0;
}

/* Highlight for Password Reset */
.highlight-section {
    animation: highlightFade 3s ease-out;
    border-radius: 8px;
}

@keyframes highlightFade {
    0% {
        background: rgba(59, 130, 246, 0.2);
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    }

    100% {
        background: transparent;
        box-shadow: none;
    }
}