/*
Theme Name: SelfChatter Theme
Theme URI: https://selfchatter.com
Description: SelfChatter v1 - Consciousness elevation platform
Version: 1.0.18
Author: Attila
Text Domain: selfchatter
*/

/* ==================== */
/* CSS Variables */
/* ==================== */
:root {
    /* Background colors */
    --sc-bg-body: #0a0a0a;
    --sc-bg-primary: #0a0a0a;
    --sc-bg-secondary: #111111;
    --sc-bg-tertiary: #1a1a1a;
    --sc-bg-elevated: #252525;
    
    /* Borders */
    --sc-border: #1a1a1a;
    --sc-border-light: #2a2a2a;
    
    /* Text colors */
    --sc-text-primary: #ffffff;
    --sc-text-secondary: #cccccc;
    --sc-text-muted: #888888;
    --sc-text-subtle: #555555;
    
    /* Accent */
    --sc-accent: #22c55e;
    --sc-accent-hover: #16a34a;
    
    /* Journal warm tones */
    --sc-journal-bg: #1a1916;
    --sc-journal-bg-dark: #12110f;
    --sc-journal-border: #2a2820;
    --sc-journal-text: #d4d0c8;
    --sc-journal-muted: #8a8070;
    
    /* Spacing */
    --sc-spacing-xs: 4px;
    --sc-spacing-sm: 8px;
    --sc-spacing-md: 16px;
    --sc-spacing-lg: 24px;
    --sc-spacing-xl: 32px;
    
    /* Border radius */
    --sc-radius-sm: 8px;
    --sc-radius-md: 12px;
    --sc-radius-lg: 16px;
    
    /* Typography */
    --sc-font-ui: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --sc-font-content: 'Georgia', serif;
    
    /* Layout */
    --sc-max-width: 700px;
    --sc-header-height: 56px;
}

/* ==================== */
/* Reset & Base */
/* ==================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--sc-font-ui);
    background-color: var(--sc-bg-body);
    color: var(--sc-text-secondary);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

input, textarea {
    font-family: inherit;
}

/* ==================== */
/* Typography */
/* ==================== */
h1, h2, h3, h4, h5, h6 {
    color: var(--sc-text-primary);
    font-weight: 500;
}

.font-content {
    font-family: var(--sc-font-content);
}

.font-italic {
    font-style: italic;
}

/* ==================== */
/* Layout */
/* ==================== */
.container {
    max-width: var(--sc-max-width);
    margin: 0 auto;
    padding: 0 var(--sc-spacing-md);
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

/* ==================== */
/* Header */
/* ==================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--sc-bg-primary);
    border-bottom: 1px solid var(--sc-border);
    height: var(--sc-header-height);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: var(--sc-max-width);
    margin: 0 auto;
    padding: 0 var(--sc-spacing-md);
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--sc-spacing-md);
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--sc-spacing-sm);
}

.site-logo {
    font-family: var(--sc-font-content);
    font-size: 18px;
    color: var(--sc-text-primary);
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: var(--sc-text-muted);
    font-size: 14px;
    padding: 6px 10px;
    margin-left: -10px;
    border-radius: var(--sc-radius-sm);
    transition: all 0.2s;
}

.back-btn:hover {
    color: var(--sc-text-primary);
    background: var(--sc-bg-tertiary);
}

.back-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* ==================== */
/* Buttons */
/* ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--sc-radius-sm);
    font-size: 14px;
    font-weight: 500;
    border: none;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--sc-text-primary);
    color: var(--sc-bg-primary);
}

.btn-primary:hover {
    background: #e5e5e5;
}

.btn-secondary {
    background: var(--sc-bg-elevated);
    color: var(--sc-text-secondary);
    border: 1px solid var(--sc-border-light);
}

.btn-secondary:hover {
    background: #2a2a2a;
    color: var(--sc-text-primary);
}

.btn-ghost {
    background: var(--sc-bg-tertiary);
    border: 1px solid var(--sc-border-light);
    color: var(--sc-text-muted);
    padding: 8px 14px;
    border-radius: 18px;
    font-size: 13px;
    transition: all 0.2s;
}

.btn-ghost:hover {
    color: var(--sc-text-primary);
    background: var(--sc-bg-elevated);
    border-color: #333;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--sc-radius-sm);
}

/* Capture Button */
.btn-capture {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sc-bg-tertiary);
    border: 1px solid var(--sc-border-light);
    color: var(--sc-text-muted);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    padding: 0;
    font-size: 20px;
    line-height: 1;
    text-decoration: none;
}

.btn-capture:hover {
    background: var(--sc-bg-elevated);
    color: var(--sc-text-primary);
    border-color: #333;
}

/* ==================== */
/* Cards */
/* ==================== */
.card {
    background: var(--sc-bg-secondary);
    border: 1px solid var(--sc-border);
    border-radius: var(--sc-radius-lg);
    padding: var(--sc-spacing-lg);
}

.card-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--sc-text-muted);
    margin-bottom: var(--sc-spacing-md);
}

/* ==================== */
/* Dashboard Sections */
/* ==================== */
.dashboard {
    padding: var(--sc-spacing-lg) 0;
    padding-bottom: 100px;
}

.dashboard-section {
    margin-bottom: var(--sc-spacing-xl);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--sc-spacing-md);
}

.section-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--sc-text-muted);
}

.section-action {
    font-size: 13px;
    color: var(--sc-text-subtle);
}

.section-action:hover {
    color: var(--sc-text-secondary);
}

.section-meta {
    font-size: 12px;
    color: var(--sc-text-subtle);
}

/* ==================== */
/* REMINDERS SECTION - Primary Focus */
/* ==================== */
.dashboard-section--reminders {
    margin-bottom: 48px;
    background: var(--sc-bg-secondary);
    border: 1px solid var(--sc-border);
    border-radius: var(--sc-radius-lg);
    padding: 20px;
}

.reminders-display {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reminder-card {
    font-family: var(--sc-font-content);
    font-size: 18px;
    font-style: italic;
    line-height: 1.5;
    color: #c9c5bd;
    padding: 16px;
    background: var(--sc-bg-tertiary);
    border-radius: var(--sc-radius-md);
}

.reminders-footer {
    margin-top: 16px;
    text-align: right;
}

.manage-link {
    font-size: 13px;
    color: var(--sc-text-subtle);
    text-decoration: none;
    transition: color 0.2s;
}

.manage-link:hover {
    color: var(--sc-text-primary);
}

/* Empty reminders state */
.reminders-empty {
    background: var(--sc-bg-secondary);
    border: 1px solid var(--sc-border);
    border-radius: var(--sc-radius-lg);
    padding: 24px;
}

.reminders-empty-text {
    font-size: 15px;
    color: var(--sc-text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.reminder-examples {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--sc-border-light);
}

.examples-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--sc-text-subtle);
    margin-bottom: 12px;
}

.reminder-example {
    font-family: var(--sc-font-content);
    font-size: 14px;
    font-style: italic;
    color: var(--sc-text-muted);
    padding: 6px 0;
}

.reminder-example:nth-child(2) { opacity: 0.7; }
.reminder-example:nth-child(3) { opacity: 0.5; }

/* ==================== */
/* CHAPTERS SECTION */
/* ==================== */
.journal-empty {
    padding: 32px 0;
    text-align: center;
}

.journal-empty-lead {
    font-family: var(--sc-font-content);
    font-size: 18px;
    font-style: italic;
    color: var(--sc-text-primary);
    margin-bottom: 8px;
}

.journal-empty-text {
    font-size: 14px;
    color: var(--sc-text-muted);
    margin-bottom: 24px;
}

.chapter-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chapter-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--sc-bg-tertiary);
    border-radius: var(--sc-radius-md);
    text-decoration: none;
    transition: all 0.2s;
}

.chapter-card:hover {
    background: var(--sc-bg-elevated);
}

.chapter-title {
    font-family: var(--sc-font-content);
    font-size: 15px;
    font-style: italic;
    color: var(--sc-text-primary);
}

.chapter-meta {
    font-size: 12px;
    color: var(--sc-text-subtle);
    flex-shrink: 0;
    margin-left: 12px;
}

.new-chapter-link {
    display: block;
    margin-top: 12px;
    padding: 14px;
    text-align: center;
    font-size: 14px;
    color: var(--sc-text-muted);
    border: 1px dashed #2a2a2a;
    border-radius: var(--sc-radius-md);
    text-decoration: none;
    transition: all 0.2s;
}

.new-chapter-link:hover {
    color: var(--sc-text-primary);
    border-color: #444;
    background: var(--sc-bg-tertiary);
}

/* ==================== */
/* INSIGHTS SECTION */
/* ==================== */
.insights-empty {
    font-size: 14px;
    color: var(--sc-text-subtle);
    padding: 8px 0;
}

.insight-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.insight-card {
    padding: 14px 16px;
    background: var(--sc-bg-tertiary);
    border-radius: var(--sc-radius-md);
    font-family: var(--sc-font-content);
    font-size: 14px;
    color: var(--sc-text-secondary);
    line-height: 1.5;
    cursor: pointer;
    transition: all 0.2s;
}

.insight-card:hover {
    background: var(--sc-bg-elevated);
}

/* ==================== */
/* COLLECTIVE SECTION */
/* ==================== */
.collective-intro {
    font-size: 14px;
    color: var(--sc-text-muted);
    margin-bottom: 16px;
}

.collective-posts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.collective-post {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: var(--sc-bg-tertiary);
    border-radius: var(--sc-radius-md);
    text-decoration: none;
    transition: all 0.2s;
}

.collective-post:hover {
    background: var(--sc-bg-elevated);
}

.collective-post-content {
    flex: 1;
    min-width: 0;
}

.collective-post-title {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--sc-text-primary);
    margin-bottom: 4px;
}

.collective-post-excerpt {
    display: block;
    font-size: 13px;
    color: var(--sc-text-muted);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.collective-post-arrow {
    color: var(--sc-text-subtle);
    margin-left: 12px;
    flex-shrink: 0;
}

.collective-explore {
    display: block;
    font-size: 13px;
    color: var(--sc-text-subtle);
    text-decoration: none;
    transition: color 0.2s;
}

.collective-explore:hover {
    color: var(--sc-text-primary);
}

/* ==================== */
/* AI Pyramid FAB */
/* ==================== */
.ai-pyramid-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 90;
}

.ai-pyramid-btn {
    position: relative;
    width: 52px;
    height: 52px;
    background: var(--sc-bg-tertiary);
    border: 1px solid var(--sc-border-light);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.ai-pyramid-btn:hover {
    background: var(--sc-bg-elevated);
    border-color: #333;
}

.ai-pyramid-btn svg {
    width: 24px;
    height: 22px;
    fill: none;
    stroke: #666;
    stroke-width: 1.5;
    transition: all 0.2s;
}

.ai-pyramid-btn:hover svg {
    stroke: #999;
}

.ai-pyramid-btn .pyramid-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #666;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 2px);
}

.ai-pyramid-btn.has-notification .pyramid-dot {
    background: var(--sc-accent);
}

/* ==================== */
/* Menu Panel */
/* ==================== */
.menu-wrapper {
    position: relative;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 998;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.menu-panel {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    width: 200px;
    background: var(--sc-bg-secondary);
    border: 1px solid var(--sc-border);
    border-radius: var(--sc-radius-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 999;
    overflow: hidden;
}

.menu-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-nav {
    padding: 8px 0;
}

.menu-item {
    display: block;
    padding: 12px 20px;
    font-size: 15px;
    color: var(--sc-text-secondary);
    text-decoration: none;
    transition: all 0.15s ease;
}

.menu-item:hover {
    background: var(--sc-bg-tertiary);
    color: var(--sc-text-primary);
}

.menu-logout {
    color: var(--sc-text-muted);
    border-top: 1px solid var(--sc-border-light);
    margin-top: 4px;
    padding-top: 12px;
}

.menu-user {
    padding: 12px 20px;
    font-size: 12px;
    color: var(--sc-text-subtle);
    border-top: 1px solid var(--sc-border-light);
    background: var(--sc-bg-tertiary);
}

/* ==================== */
/* Journal Chat Page */
/* ==================== */
.journal-chat-page {
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--sc-header-height));
    overflow: hidden;
}

/* Chapter Bar */
.chapter-bar {
    background: var(--sc-bg-primary);
    padding: var(--sc-spacing-lg) var(--sc-spacing-md);
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.chapter-bar:hover {
    background: var(--sc-bg-secondary);
}

.chapter-bar-inner {
    max-width: var(--sc-max-width);
    margin: 0 auto;
}

.chapter-bar-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--sc-spacing-md);
}

.chapter-bar-title {
    font-family: var(--sc-font-content);
    font-size: 20px;
    font-style: italic;
    color: var(--sc-text-primary);
    flex: 1;
    line-height: 1.4;
}

.chapter-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    border-radius: var(--sc-radius-sm);
    transition: background 0.2s;
}

.chapter-bar:hover .chapter-toggle {
    background: var(--sc-bg-tertiary);
}

.chapter-toggle-count {
    background: var(--sc-bg-elevated);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 13px;
    color: var(--sc-text-muted);
}

.chapter-toggle-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chapter-toggle-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--sc-text-muted);
    transition: transform 0.3s;
}

.chapter-bar.expanded .chapter-toggle-icon svg {
    transform: rotate(180deg);
}

.chapter-bar-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--sc-spacing-sm);
}

.chapter-bar-stats {
    font-size: 13px;
    color: var(--sc-text-subtle);
}

/* Journal Panel */
.journal-panel {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
    flex-shrink: 0;
    margin: 0 var(--sc-spacing-md);
}

.journal-panel.expanded {
    max-height: 50vh;
}

.journal-panel-inner {
    max-width: var(--sc-max-width);
    margin: 0 auto;
    background: linear-gradient(180deg, var(--sc-journal-bg) 0%, var(--sc-journal-bg-dark) 100%);
    border: 1px solid var(--sc-journal-border);
    border-radius: var(--sc-radius-lg);
    display: flex;
    flex-direction: column;
    max-height: 50vh;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    margin-bottom: var(--sc-spacing-md);
}

.journal-panel-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--sc-journal-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.journal-panel-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--sc-journal-muted);
}

.journal-panel-count {
    font-size: 12px;
    color: #6a6050;
}

.journal-entries {
    flex: 1;
    overflow-y: auto;
    padding: var(--sc-spacing-md) 18px;
    min-height: 0;
}

.journal-entry {
    padding: var(--sc-spacing-md) 18px;
    background: #0f0e0c;
    border: 1px solid #252318;
    border-radius: var(--sc-radius-md);
    margin-bottom: 10px;
    font-family: var(--sc-font-content);
    font-size: 15px;
    color: var(--sc-journal-text);
    line-height: 1.7;
}

.journal-entry:last-child {
    margin-bottom: 0;
}

.journal-add {
    padding: 14px 18px 18px;
    border-top: 1px solid var(--sc-journal-border);
    background: var(--sc-journal-bg-dark);
    border-radius: 0 0 var(--sc-radius-lg) var(--sc-radius-lg);
}

.journal-add-input {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.journal-add-input textarea {
    flex: 1;
    background: var(--sc-journal-bg);
    border: 1px solid var(--sc-journal-border);
    border-radius: var(--sc-radius-md);
    padding: 12px 14px;
    color: var(--sc-journal-text);
    font-family: var(--sc-font-content);
    font-size: 14px;
    font-style: italic;
    resize: none;
    outline: none;
    transition: border-color 0.2s;
}

.journal-add-input textarea::placeholder {
    color: #5a5548;
}

.journal-add-input textarea:focus {
    border-color: #3a3830;
}

.journal-add-btn {
    width: 44px;
    height: 44px;
    background: #2a2820;
    border: none;
    border-radius: 10px;
    color: var(--sc-journal-muted);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.journal-add-btn:hover {
    background: #3a3830;
    color: var(--sc-journal-text);
}

/* Chat Area */
.chat-area {
    flex: 1;
    overflow-y: auto;
    padding: var(--sc-spacing-lg) var(--sc-spacing-md);
    min-height: 0;
}

.chat-container {
    max-width: var(--sc-max-width);
    margin: 0 auto;
}

.chat-message {
    margin-bottom: var(--sc-spacing-md);
    max-width: 85%;
}

.chat-message.ai {
    margin-right: auto;
}

.chat-message.user {
    margin-left: auto;
}

.chat-bubble {
    padding: 14px 16px;
    border-radius: var(--sc-radius-lg);
    font-size: 15px;
    line-height: 1.6;
}

.chat-message.ai .chat-bubble {
    background: var(--sc-bg-tertiary);
    border: 1px solid var(--sc-border-light);
    color: var(--sc-text-secondary);
    border-bottom-left-radius: 4px;
}

.chat-message.user .chat-bubble {
    background: var(--sc-bg-elevated);
    color: var(--sc-text-primary);
    border-bottom-right-radius: 4px;
}

/* Reflection Suggestion */
.reflection-suggestion {
    background: var(--sc-bg-tertiary);
    border: 1px solid var(--sc-border-light);
    border-radius: var(--sc-radius-lg);
    padding: var(--sc-spacing-md) 18px;
    margin-bottom: var(--sc-spacing-md);
    max-width: 90%;
    cursor: pointer;
    transition: all 0.2s;
}

.reflection-suggestion:hover {
    border-color: #3a3a3a;
    background: #1e1e1e;
}

.reflection-prompt {
    font-size: 12px;
    color: var(--sc-text-muted);
    margin-bottom: 8px;
}

.reflection-text {
    font-family: var(--sc-font-content);
    font-size: 16px;
    font-style: italic;
    color: var(--sc-text-primary);
    line-height: 1.5;
    margin-bottom: 10px;
}

.reflection-action {
    font-size: 11px;
    color: var(--sc-text-subtle);
}

/* Chat Input Area */
.chat-input-area {
    border-top: 1px solid var(--sc-border);
    background: var(--sc-bg-primary);
    flex-shrink: 0;
}

.chat-input-inner {
    max-width: var(--sc-max-width);
    margin: 0 auto;
    padding: 0 var(--sc-spacing-md);
}

.reflection-strip {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 10px 0;
}

.reflection-strip-label {
    font-size: 12px;
    color: var(--sc-text-subtle);
}

.toggle-switch {
    position: relative;
    width: 36px;
    height: 20px;
    background: #333;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.toggle-switch.active {
    background: var(--sc-accent);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}

.toggle-switch.active::after {
    transform: translateX(16px);
}

.chat-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    padding-bottom: var(--sc-spacing-md);
}

.chat-input {
    flex: 1;
    background: var(--sc-bg-tertiary);
    border: 1px solid var(--sc-border-light);
    border-radius: 14px;
    padding: 14px 16px;
    color: var(--sc-text-primary);
    font-size: 15px;
    resize: none;
    outline: none;
    transition: border-color 0.2s;
    min-height: 48px;
    max-height: 120px;
}

.chat-input::placeholder {
    color: var(--sc-text-subtle);
}

.chat-input:focus {
    border-color: #444;
}

.chat-send-btn {
    width: 48px;
    height: 48px;
    background: var(--sc-text-primary);
    border: none;
    border-radius: var(--sc-radius-md);
    color: var(--sc-bg-primary);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.chat-send-btn:hover {
    background: #e5e5e5;
}

.chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Thinking indicator */
.chat-thinking {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    font-size: 13px;
    color: var(--sc-text-muted);
}

.chat-thinking.visible {
    display: flex;
}

.chat-thinking-dots {
    display: flex;
    gap: 4px;
}

.chat-thinking-dots span {
    width: 6px;
    height: 6px;
    background: var(--sc-text-muted);
    border-radius: 50%;
    animation: thinking-bounce 1.4s infinite ease-in-out both;
}

.chat-thinking-dots span:nth-child(1) { animation-delay: -0.32s; }
.chat-thinking-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes thinking-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* ==================== */
/* Capture Modal */
/* ==================== */
.capture-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 200;
    align-items: flex-start;
    justify-content: center;
    padding-top: 20vh;
}

.capture-modal-overlay.open {
    display: flex;
}

.capture-modal {
    background: var(--sc-bg-secondary);
    border: 1px solid var(--sc-border);
    border-radius: var(--sc-radius-lg);
    width: 100%;
    max-width: 500px;
    margin: 0 var(--sc-spacing-md);
}

.capture-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--sc-spacing-md) var(--sc-spacing-lg);
    border-bottom: 1px solid var(--sc-border);
}

.capture-modal-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--sc-text-primary);
}

.capture-modal-close {
    background: transparent;
    border: none;
    color: var(--sc-text-muted);
    font-size: 24px;
    line-height: 1;
    padding: 4px;
    cursor: pointer;
}

.capture-modal-close:hover {
    color: var(--sc-text-primary);
}

.capture-modal-body {
    padding: var(--sc-spacing-lg);
}

.capture-input {
    width: 100%;
    background: var(--sc-bg-tertiary);
    border: 1px solid var(--sc-border-light);
    border-radius: var(--sc-radius-md);
    padding: var(--sc-spacing-md);
    color: var(--sc-text-primary);
    font-family: var(--sc-font-content);
    font-size: 16px;
    resize: none;
    outline: none;
    min-height: 100px;
}

.capture-input::placeholder {
    color: var(--sc-text-muted);
}

.capture-input:focus {
    border-color: #444;
}

.capture-type-selector {
    display: flex;
    gap: var(--sc-spacing-sm);
    margin-top: var(--sc-spacing-md);
}

.capture-type-btn {
    flex: 1;
    padding: var(--sc-spacing-sm) var(--sc-spacing-md);
    background: var(--sc-bg-tertiary);
    border: 1px solid var(--sc-border-light);
    border-radius: var(--sc-radius-sm);
    color: var(--sc-text-muted);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.capture-type-btn:hover {
    background: var(--sc-bg-elevated);
    color: var(--sc-text-secondary);
}

.capture-type-btn.active {
    background: var(--sc-bg-elevated);
    border-color: #444;
    color: var(--sc-text-primary);
}

.capture-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--sc-spacing-sm);
    padding: var(--sc-spacing-md) var(--sc-spacing-lg);
    border-top: 1px solid var(--sc-border);
}

/* ==================== */
/* Scrollbar */
/* ==================== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #444;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}

/* ==================== */
/* Utilities */
/* ==================== */
.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ==================== */
/* Safe area for mobile */
/* ==================== */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .chat-input-wrapper {
        padding-bottom: max(var(--sc-spacing-md), env(safe-area-inset-bottom));
    }
}

/* ==================== */
/* Responsive */
/* ==================== */
@media (max-width: 480px) {
    :root {
        --sc-header-height: 52px;
    }
    
    .site-logo {
        font-size: 16px;
    }
    
    .back-btn span {
        display: none;
    }
    
    .chapter-bar-title {
        font-size: 17px;
    }
    
    .chat-bubble {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .chat-input {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .chat-send-btn {
        width: 44px;
        height: 44px;
    }
    
    .ai-pyramid-fab {
        bottom: 16px;
        right: 16px;
    }
}

/* ==================== */
/* Auth Pages */
/* ==================== */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--sc-header-height) - 80px);
    padding: 40px 20px;
}

.auth-container {
    width: 100%;
    max-width: 440px;
}

.auth-card {
    background: #111111;
    border: 1px solid #1a1a1a;
    border-radius: 16px;
    padding: 40px 32px;
}

.auth-title {
    font-family: var(--sc-font-content);
    font-size: 28px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 8px;
    text-align: center;
}

.auth-subtitle {
    color: #888888;
    font-size: 15px;
    margin-bottom: 28px;
    text-align: center;
}

.auth-error {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #f87171;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.auth-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    background: transparent;
    color: #ffffff;
    border: 1px solid #333333;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-google:hover {
    background: #1a1a1a;
    border-color: #444444;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: #666666;
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #2a2a2a;
}

.auth-divider span {
    padding: 0 16px;
}

.auth-form {
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 8px;
}

input.form-input,
input.form-input[type="email"],
input.form-input[type="password"],
input.form-input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    background: #1a1a1a;
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    color: #ffffff;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

input.form-input::placeholder {
    color: #666666;
}

input.form-input:focus {
    border-color: #444444;
    background: #1a1a1a;
    background-color: #1a1a1a;
}

.form-checkbox {
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #ffffff;
    cursor: pointer;
}

.checkbox-text {
    font-size: 14px;
    color: #cccccc;
}

.recaptcha-container {
    display: flex;
    justify-content: center;
    margin: 24px 0;
}

.btn-submit {
    width: 100%;
    padding: 14px 20px;
    background: #000000;
    color: #ffffff;
    border: 1px solid #333333;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-submit:hover {
    background: #1a1a1a;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    font-size: 14px;
    color: #888888;
}

.auth-links a {
    color: #ffffff;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

.auth-links-separator {
    color: #444444;
}

.auth-footer-link {
    text-align: center;
    padding: 20px 0 40px;
    margin-top: -20px;
}

.auth-footer-link a {
    font-size: 13px;
    color: #666666;
    text-decoration: none;
}

.auth-footer-link a:hover {
    color: #888888;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 32px 24px;
    }
    
    .auth-title {
        font-size: 24px;
    }
    
    .g-recaptcha {
        transform: scale(0.9);
        transform-origin: center;
    }
}

/* ==================== */
/* Page Content Styling */
/* ==================== */
.page-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}

.page-title {
    font-family: 'Georgia', serif;
    font-size: 36px;
    color: #ffffff;
    margin-bottom: 32px;
}

.page-content h2,
.entry-content h2 {
    font-family: 'Georgia', serif;
    font-size: 24px;
    color: #ffffff;
    margin-top: 48px;
    margin-bottom: 16px;
}

.page-content h3,
.entry-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-top: 32px;
    margin-bottom: 12px;
}

.page-content p,
.entry-content p {
    font-size: 16px;
    line-height: 1.7;
    color: #b0b0b0;
    margin-bottom: 20px;
}

.page-content ul,
.page-content ol,
.entry-content ul,
.entry-content ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.page-content li,
.entry-content li {
    font-size: 16px;
    line-height: 1.7;
    color: #b0b0b0;
    margin-bottom: 8px;
}

.page-content strong,
.entry-content strong {
    color: #ffffff;
}

.page-content a,
.entry-content a {
    color: #ffffff;
    text-decoration: underline;
}

.page-content hr,
.entry-content hr {
    border: none;
    border-top: 1px solid #2a2a2a;
    margin: 32px 0;
}

/* WPForms Dark Theme */
div.wpforms-container-full .wpforms-form input[type="text"],
div.wpforms-container-full .wpforms-form input[type="email"],
div.wpforms-container-full .wpforms-form input[type="tel"],
div.wpforms-container-full .wpforms-form input[type="url"],
div.wpforms-container-full .wpforms-form input[type="password"],
div.wpforms-container-full .wpforms-form input[type="number"],
div.wpforms-container-full .wpforms-form textarea,
div.wpforms-container-full .wpforms-form select {
    background: #1a1a1a !important;
    background-color: #1a1a1a !important;
    border: 1px solid #2a2a2a !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    padding: 14px 16px !important;
    font-size: 15px !important;
}

div.wpforms-container-full .wpforms-form input:focus,
div.wpforms-container-full .wpforms-form textarea:focus {
    border-color: #444 !important;
    outline: none !important;
    background: #1a1a1a !important;
}

div.wpforms-container-full .wpforms-form .wpforms-field-label {
    color: #ffffff !important;
    font-size: 14px !important;
    margin-bottom: 8px !important;
}

div.wpforms-container-full .wpforms-form .wpforms-required-label {
    color: #f87171 !important;
}

div.wpforms-container-full .wpforms-form button[type="submit"],
div.wpforms-container-full .wpforms-form .wpforms-submit {
    background: #ffffff !important;
    color: #0a0a0a !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 14px 28px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
}

div.wpforms-container-full .wpforms-form button[type="submit"]:hover,
div.wpforms-container-full .wpforms-form .wpforms-submit:hover {
    background: #e5e5e5 !important;
}

/* ==================== */
/* Cookie Notice */
/* ==================== */

/* CookieYes specific styles (.cli- classes) */
.cli-bar-container,
.cli-style-v2 {
    background: #1a1a1a !important;
    border-top: 1px solid #2a2a2a !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.cli-bar-message {
    color: #888 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
}

.cli-bar-message a {
    color: #ccc !important;
    text-decoration: underline !important;
}

.cli-bar-message a:hover {
    color: #fff !important;
}

.cli-bar-btn_container .medium,
.cli-bar-btn_container button,
.cli-bar-btn_container [class*="cookie"] {
    background: #fff !important;
    color: #0a0a0a !important;
    border: none !important;
    border-radius: 20px !important;
    padding: 10px 20px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
}

.cli-bar-btn_container .medium:hover,
.cli-bar-btn_container button:hover {
    background: #e5e5e5 !important;
}

/* CookieYes .cky- classes (newer versions) */
.cky-consent-container,
.cky-consent-bar {
    background: var(--sc-bg-secondary) !important;
    border-top: 1px solid var(--sc-border) !important;
    color: var(--sc-text-secondary) !important;
    font-family: inherit !important;
}

.cky-notice-des {
    color: var(--sc-text-muted) !important;
    font-size: 13px !important;
}

.cky-notice-des a,
.cky-policy a {
    color: var(--sc-text-primary) !important;
    text-decoration: underline !important;
}

.cky-btn {
    border-radius: 20px !important;
    padding: 10px 20px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}

.cky-btn-accept,
.cky-btn.cky-btn-accept {
    background: #fff !important;
    color: #0a0a0a !important;
    border: none !important;
}

.cky-btn-accept:hover {
    background: #e5e5e5 !important;
}

.cky-btn-reject,
.cky-btn.cky-btn-reject,
.cky-btn-customize {
    background: transparent !important;
    color: var(--sc-text-muted) !important;
    border: 1px solid var(--sc-border-light) !important;
}

.cky-btn-reject:hover,
.cky-btn-customize:hover {
    background: var(--sc-bg-tertiary) !important;
    color: var(--sc-text-primary) !important;
}

/* CookieYes modal/preferences */
.cky-preference-center,
.cky-modal {
    background: var(--sc-bg-secondary) !important;
    color: var(--sc-text-secondary) !important;
}

.cky-preference-title,
.cky-modal-title {
    color: var(--sc-text-primary) !important;
}

.cky-accordion-btn {
    color: var(--sc-text-secondary) !important;
    background: var(--sc-bg-tertiary) !important;
}

/* Generic cookie notice fallback */
.cookie-notice-container,
.cc-window,
#cookie-notice,
.cookie-popup,
[class*="cookie-notice"],
[class*="cookie-consent"] {
    background: var(--sc-bg-secondary) !important;
    border-top: 1px solid var(--sc-border) !important;
    color: var(--sc-text-secondary) !important;
    font-size: 13px !important;
    padding: 16px 20px !important;
    font-family: inherit !important;
}

.cookie-notice-container a,
.cc-window a,
#cookie-notice a,
.cookie-popup a {
    color: var(--sc-text-primary) !important;
}

/* Cookie notice button */
.cookie-notice-container button,
.cookie-notice-container .button,
.cookie-notice-container [class*="accept"],
.cc-window .cc-btn,
#cookie-notice button,
#cookie-notice .button,
.cookie-popup button,
[class*="cookie-notice"] button,
[class*="cookie-consent"] button {
    background: var(--sc-text-primary) !important;
    color: var(--sc-bg-primary) !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 8px 16px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
    margin-left: 12px !important;
}

.cookie-notice-container button:hover,
.cookie-notice-container .button:hover,
.cc-window .cc-btn:hover,
#cookie-notice button:hover,
.cookie-popup button:hover,
[class*="cookie-notice"] button:hover,
[class*="cookie-consent"] button:hover {
    background: #e5e5e5 !important;
}

/* Specific styling for common cookie plugins */
.cn-button {
    background: var(--sc-text-primary) !important;
    color: var(--sc-bg-primary) !important;
}

#cn-notice-text {
    color: var(--sc-text-muted) !important;
}

/* Cookie notice on light backgrounds (landing page) */
body.home .cookie-notice-container,
body.home #cookie-notice,
body.page-template-default .cookie-notice-container {
    background: #1a1a1a !important;
    color: #ccc !important;
}

body.home .cookie-notice-container button,
body.home #cookie-notice button {
    background: #fff !important;
    color: #1a1a1a !important;
}

/* ==================== */
/* CAPTURE PAGE */
/* ==================== */
.capture-page {
    min-height: calc(100vh - var(--sc-header-height));
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 20px 40px;
    background: var(--sc-bg-primary);
}

.capture-container {
    width: 100%;
    max-width: 520px;
}

.capture-box {
    background: var(--sc-bg-tertiary);
    border: 1px solid var(--sc-border-light);
    border-radius: 20px;
    overflow: hidden;
}

.capture-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--sc-border-light);
}

.capture-title {
    font-size: 14px;
    color: var(--sc-text-muted);
}

.capture-close {
    background: transparent;
    border: none;
    color: var(--sc-text-muted);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
}

.capture-close:hover {
    color: var(--sc-text-primary);
    background: var(--sc-bg-elevated);
}

.capture-body {
    padding: 24px;
}

.capture-input {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--sc-text-primary);
    font-family: var(--sc-font-content);
    font-size: 20px;
    font-style: italic;
    resize: none;
    outline: none;
    min-height: 120px;
    line-height: 1.5;
}

.capture-input::placeholder {
    color: var(--sc-text-subtle);
}

.capture-help {
    font-size: 13px;
    color: var(--sc-text-subtle);
    margin-top: 20px;
    line-height: 1.5;
}

.capture-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--sc-border-light);
    background: var(--sc-bg-secondary);
}

.capture-save {
    width: 100%;
    padding: 14px 24px;
    background: #fff;
    color: #0a0a0a;
    border: none;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.capture-save:hover {
    background: #e5e5e5;
}

.capture-save:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.capture-hint {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: var(--sc-text-subtle);
}

.capture-hint kbd {
    background: var(--sc-bg-tertiary);
    border: 1px solid var(--sc-border-light);
    border-radius: 4px;
    padding: 2px 6px;
    font-family: inherit;
    font-size: 11px;
}

@media (max-width: 480px) {
    .capture-page {
        padding: 20px 16px;
    }
    
    .capture-box {
        border-radius: 16px;
    }
    
    .capture-input {
        font-size: 18px;
        min-height: 100px;
    }
    
    .capture-hint {
        display: none;
    }
}

/* ==================== */
/* INSIGHTS PAGE */
/* ==================== */
.insights-page {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.insights-page .page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--sc-border);
}

.insights-page .back-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--sc-text-muted);
    text-decoration: none;
    font-size: 14px;
}

.insights-page .back-link:hover {
    color: var(--sc-text-primary);
}

.insights-page .page-title {
    font-family: var(--sc-font-content);
    font-size: 20px;
    font-weight: normal;
    color: var(--sc-text-primary);
}

.insights-page .header-action {
    color: var(--sc-text-muted);
    text-decoration: none;
    font-size: 14px;
}

.insights-page .header-action:hover {
    color: var(--sc-text-primary);
}

.insights-intro {
    color: var(--sc-text-muted);
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.5;
}

.insights-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.insight-item {
    background: var(--sc-bg-tertiary);
    border-radius: var(--sc-radius-md);
    padding: 16px;
    position: relative;
}

.insight-content {
    padding-right: 100px;
}

.insight-text {
    font-family: var(--sc-font-content);
    font-size: 16px;
    font-style: italic;
    color: var(--sc-text-secondary);
    line-height: 1.5;
    margin-bottom: 8px;
}

.insight-date {
    font-size: 12px;
    color: var(--sc-text-subtle);
}

.insight-actions {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
}

.insight-action-btn {
    background: transparent;
    border: none;
    color: var(--sc-text-subtle);
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: all 0.15s;
}

.insight-action-btn:hover {
    background: var(--sc-bg-elevated);
    color: var(--sc-text-primary);
}

.insight-action-btn.delete-btn:hover {
    color: #f87171;
}

/* Convert dropdown */
.convert-dropdown {
    position: absolute;
    top: 48px;
    right: 16px;
    background: var(--sc-bg-secondary);
    border: 1px solid var(--sc-border-light);
    border-radius: var(--sc-radius-md);
    padding: 8px 0;
    min-width: 180px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.convert-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    background: transparent;
    border: none;
    color: var(--sc-text-secondary);
    font-size: 14px;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s;
}

.convert-option:hover {
    background: var(--sc-bg-tertiary);
    color: var(--sc-text-primary);
}

/* Empty state */
.insights-empty {
    text-align: center;
    padding: 60px 20px;
}

.insights-empty .empty-message {
    font-size: 16px;
    color: var(--sc-text-muted);
    margin-bottom: 8px;
}

.insights-empty .empty-hint {
    font-size: 14px;
    color: var(--sc-text-subtle);
    margin-bottom: 24px;
}

.insights-empty .btn-primary {
    display: inline-block;
    padding: 12px 24px;
    background: #fff;
    color: #0a0a0a;
    text-decoration: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
}

/* ==================== */
/* MODALS (shared) */
/* ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-box {
    background: var(--sc-bg-secondary);
    border: 1px solid var(--sc-border-light);
    border-radius: var(--sc-radius-lg);
    width: 100%;
    max-width: 480px;
    overflow: hidden;
}

.modal-box-small {
    max-width: 360px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--sc-border-light);
}

.modal-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--sc-text-primary);
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--sc-text-muted);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--sc-text-primary);
}

.modal-body {
    padding: 20px;
}

.modal-body p {
    color: var(--sc-text-muted);
    font-size: 14px;
}

.modal-input {
    width: 100%;
    background: var(--sc-bg-tertiary);
    border: 1px solid var(--sc-border-light);
    border-radius: var(--sc-radius-sm);
    padding: 12px;
    color: var(--sc-text-primary);
    font-family: var(--sc-font-content);
    font-size: 16px;
    font-style: italic;
    resize: vertical;
}

.modal-input:focus {
    outline: none;
    border-color: #444;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid var(--sc-border-light);
    background: var(--sc-bg-tertiary);
}

.btn-secondary {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--sc-border-light);
    color: var(--sc-text-muted);
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--sc-bg-tertiary);
    color: var(--sc-text-primary);
}

.btn-primary {
    padding: 10px 20px;
    background: #fff;
    border: none;
    color: #0a0a0a;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.btn-primary:hover {
    background: #e5e5e5;
}

.btn-danger {
    padding: 10px 20px;
    background: #dc2626;
    border: none;
    color: #fff;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.btn-danger:hover {
    background: #b91c1c;
}

/* ==================== */
/* DASHBOARD INSIGHTS SECTION */
/* ==================== */
.dashboard-section--insights {
    margin-bottom: 48px;
}

.insights-empty-text {
    color: var(--sc-text-muted);
    font-size: 14px;
}

.insight-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.insight-card {
    font-family: var(--sc-font-content);
    font-size: 15px;
    font-style: italic;
    color: var(--sc-text-muted);
    padding: 12px 16px;
    background: var(--sc-bg-tertiary);
    border-radius: var(--sc-radius-md);
    line-height: 1.4;
}

.insights-footer {
    margin-top: 12px;
    text-align: right;
}