/* ================================================================
   MindDistil - Unified Stylesheet
   All page-specific styles extracted from Razor views
   ================================================================ */

/* ================================================================
   PROFILE PAGE (Account/Profile)
   ================================================================ */
.profile-page {
    max-width: 640px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .profile-page {
        max-width: 720px;
    }
}

.profile-page h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
}

.profile-page h1 .accent {
    background: linear-gradient(135deg, #F59E0B, #FBBF24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-card {
    position: relative;
    background: linear-gradient(145deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 50%, rgba(255,255,255,0.01) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-top-color: rgba(255,255,255,0.2);
    border-left-color: rgba(255,255,255,0.15);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.2), inset 0 1px 1px rgba(255,255,255,0.08);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    border-radius: 24px 24px 60% 60%;
    background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 40%, transparent 100%);
    pointer-events: none;
}

.profile-card > * { position: relative; z-index: 1; }

.card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-title i {
    color: var(--accent-amber);
}

.profile-identity {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    border: 2px solid rgba(245,158,11,0.3);
    object-fit: cover;
}

.profile-avatar-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(245,158,11,0.2), rgba(249,115,22,0.1));
    border: 2px solid rgba(245,158,11,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-amber);
}

.profile-email {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.profile-name {
    font-size: 1.1rem;
    font-weight: 700;
}

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

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

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s;
    box-sizing: border-box;
}

.form-input:focus {
    background: rgba(255,255,255,0.08);
    border-color: rgba(245,158,11,0.4);
    box-shadow: 0 0 0 3px rgba(245,158,11,0.1);
    outline: none;
}

.form-input::placeholder {
    color: var(--text-muted);
}

.btn-primary-glass {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: linear-gradient(135deg, #F59E0B, #F97316);
    color: #111;
    font-weight: 700;
    font-size: 0.85rem;
    font-family: inherit;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 4px 20px rgba(245,158,11,0.3);
    text-decoration: none;
}

.btn-primary-glass:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(245,158,11,0.45);
    color: #111;
}

.btn-secondary-glass {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    font-family: inherit;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-secondary-glass:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: var(--text-primary);
}

.btn-danger-glass {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: rgba(244,63,94,0.08);
    border: 1px solid rgba(244,63,94,0.2);
    color: rgba(244,63,94,0.9);
    font-weight: 600;
    font-size: 0.85rem;
    font-family: inherit;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-danger-glass:hover {
    background: rgba(244,63,94,0.15);
    border-color: rgba(244,63,94,0.35);
    color: #FB7185;
    box-shadow: 0 4px 16px rgba(244,63,94,0.15);
}

.toast-success {
    padding: 0.75rem 1.25rem;
    background: rgba(34,197,94,0.12);
    border: 1px solid rgba(34,197,94,0.25);
    border-radius: 12px;
    color: #4ADE80;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.data-section p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

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

.setting-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    line-height: 1.5;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: rgba(255,255,255,0.08);
    border-radius: 26px;
    transition: background 0.25s ease;
}

.toggle-slider::before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: transform 0.25s ease, background 0.25s ease;
}

.toggle-switch input:checked + .toggle-slider {
    background: rgba(245, 158, 11, 0.3);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(22px);
    background: #F59E0B;
}

.danger-zone {
    border-color: rgba(244,63,94,0.15) !important;
    border-top-color: rgba(244,63,94,0.25) !important;
}

.danger-zone .card-title i {
    color: rgba(244,63,94,0.8);
}

.member-since {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

/* Delete confirmation modal */
.delete-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1050;
    align-items: center;
    justify-content: center;
}

.delete-modal.show {
    display: flex;
}

.delete-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1040;
}

.delete-modal-content {
    position: relative;
    z-index: 1050;
    max-width: 420px;
    width: 100%;
    margin: 1rem;
    background: linear-gradient(145deg, rgba(16,22,36,0.97), rgba(10,15,26,0.98));
    border: 1px solid rgba(244,63,94,0.2);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 24px 80px rgba(0,0,0,0.6);
    text-align: center;
}

.delete-modal-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #FB7185;
}

.delete-modal-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.delete-modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

/* ================================================================
   LANDING PAGE (Home/Landing)
   ================================================================ */

/* HERO SECTION */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--md-text-muted);
    margin-bottom: 2rem;
    animation: fadeSlideUp 0.8s ease-out;
}

.hero-badge i {
    color: var(--md-accent);
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    animation: fadeSlideUp 0.8s ease-out 0.1s both;
}

.hero-title .line {
    display: block;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 30%, #F97316 70%, #F59E0B 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    color: var(--md-text-muted);
    max-width: 620px;
    margin: 0 auto 3rem;
    line-height: 1.7;
    animation: fadeSlideUp 0.8s ease-out 0.2s both;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    animation: fadeSlideUp 0.8s ease-out 0.3s both;
}

.btn-primary-glow {
    background: linear-gradient(135deg, #F59E0B 0%, #F97316 100%);
    border: none;
    color: #111;
    font-weight: 700;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(245, 158, 11, 0.3);
}

.btn-primary-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 60px rgba(245, 158, 11, 0.5);
    color: #111;
}

.btn-primary-glow:hover::before {
    opacity: 1;
}

.btn-primary-glow span {
    position: relative;
    z-index: 1;
}

.btn-primary-glow i {
    position: relative;
    z-index: 1;
    font-size: 1.25rem;
}

.btn-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    color: var(--md-text);
    font-weight: 600;
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--md-text);
    transform: translateY(-2px);
}

/* Floating decorative shapes */
.hero-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
}

.shape-1 {
    width: 120px;
    height: 120px;
    top: 15%;
    left: 8%;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 80px;
    height: 80px;
    top: 25%;
    right: 12%;
    animation: float 6s ease-in-out infinite reverse;
}

.shape-3 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 15%;
    animation: float 7s ease-in-out infinite 1s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    bottom: 25%;
    right: 8%;
    animation: float 9s ease-in-out infinite 0.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* DEMO SECTION */
.demo-section {
    padding: 0 2rem 6rem;
    position: relative;
}

.demo-window {
    max-width: 820px;
    margin: 0 auto;
    background: linear-gradient(145deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.03) 50%, rgba(255,255,255,0.01) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.1);
    border-top-color: rgba(255,255,255,0.18);
    border-left-color: rgba(255,255,255,0.14);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 60px rgba(0,0,0,0.35), inset 0 1px 1px rgba(255,255,255,0.08);
    position: relative;
}

.demo-window::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 40%;
    border-radius: 24px 24px 50% 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, transparent 100%);
    pointer-events: none;
}

.demo-titlebar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: relative;
    z-index: 1;
}

.demo-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.demo-dot.red { background: #F87171; }
.demo-dot.yellow { background: #FBBF24; }
.demo-dot.green { background: #34D399; }

.demo-body {
    padding: 2rem 2rem 2.5rem;
    position: relative;
    z-index: 1;
}

.demo-recording {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.demo-play-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F59E0B, #F97316);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(245,158,11,0.35);
}

.demo-play-btn i {
    color: #111;
    font-size: 1.2rem;
    margin-left: 2px;
}

.demo-rec-info {
    flex: 1;
    min-width: 0;
}

.demo-rec-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.demo-rec-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Waveform */
.demo-waveform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    height: 48px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.wave-bar {
    flex: 1;
    min-width: 3px;
    max-width: 6px;
    border-radius: 3px;
    background: linear-gradient(180deg, #F59E0B, #F97316);
    opacity: 0.8;
    animation: wavePulse 2s ease-in-out infinite alternate;
}

@keyframes wavePulse {
    0% { transform: scaleY(1); opacity: 0.7; }
    100% { transform: scaleY(0.6); opacity: 1; }
}

/* Cards row */
.demo-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.demo-card-raw {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
}

.demo-card-raw .demo-card-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.demo-card-raw .demo-card-text {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-secondary);
    font-style: italic;
}

.demo-card-distilled {
    background: linear-gradient(145deg, rgba(245,158,11,0.1), rgba(249,115,22,0.05));
    border: 1px solid rgba(245,158,11,0.2);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
}

.demo-card-distilled .demo-card-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-amber);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.demo-card-distilled .demo-card-text {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-primary);
}

@media (max-width: 640px) {
    .demo-cards {
        grid-template-columns: 1fr;
    }

    .demo-body {
        padding: 1.5rem;
    }

    .demo-waveform {
        height: 36px;
    }
}

/* FLOW SECTION */
.flow-section {
    padding: 6rem 2rem;
    position: relative;
}

/* Landing page section header */
.landing-section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--md-accent);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-desc {
    color: var(--md-text-muted);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

.flow-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

/* Connector line */
.flow-grid::before {
    content: '';
    position: absolute;
    top: 80px;
    left: calc(16.666% + 1rem);
    right: calc(16.666% + 1rem);
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--md-accent), transparent);
    opacity: 0.3;
}

.flow-card {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.02) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.1),
        inset 0 -1px 1px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top-color: rgba(255, 255, 255, 0.3);
    border-left-color: rgba(255, 255, 255, 0.2);
}

/* Top shine reflection */
.flow-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    border-radius: 35px 35px 100% 100%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.05) 30%,
        transparent 100%
    );
    pointer-events: none;
}

/* Accent glow on hover */
.flow-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 25px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), transparent 50%);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
}

.flow-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(245, 158, 11, 0.15),
        inset 0 1px 2px rgba(255, 255, 255, 0.15),
        inset 0 -1px 1px rgba(0, 0, 0, 0.1);
}

.flow-card:hover::after {
    opacity: 1;
}

.flow-step {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.05) 100%
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--md-text);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.flow-card:nth-child(1) .flow-step {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.4), rgba(99, 102, 241, 0.2));
    border-color: rgba(59, 130, 246, 0.4);
    color: #93C5FD;
}

.flow-card:nth-child(2) .flow-step {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.4), rgba(249, 115, 22, 0.2));
    border-color: rgba(245, 158, 11, 0.4);
    color: #FCD34D;
}

.flow-card:nth-child(3) .flow-step {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.4), rgba(52, 211, 153, 0.2));
    border-color: rgba(16, 185, 129, 0.4);
    color: #6EE7B7;
}

.flow-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    position: relative;
    z-index: 1;
}

.flow-card:nth-child(1) .flow-icon {
    background: linear-gradient(135deg, #3B82F6 0%, #6366F1 100%);
    color: white;
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.3);
}

.flow-card:nth-child(2) .flow-icon {
    background: linear-gradient(135deg, #F59E0B 0%, #F97316 100%);
    color: #111;
    box-shadow: 0 10px 40px rgba(245, 158, 11, 0.3);
}

.flow-card:nth-child(3) .flow-icon {
    background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
    color: white;
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.3);
}

.flow-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.flow-desc {
    color: var(--md-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* DISTILLATION VISUAL SECTION */
.distillation-section {
    padding: 6rem 2rem;
    position: relative;
    background: linear-gradient(180deg, transparent, rgba(245, 158, 11, 0.02), transparent);
}

.distillation-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 0;
}

.distill-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    min-width: 140px;
}

.stage-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-amber);
    opacity: 0.8;
}

.stage-count {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 100px;
}

/* Notes stage - microphone icons */
.mics-container {
    position: relative;
    width: 110px;
    height: 100px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
}

.mic {
    font-size: 1rem;
    color: rgba(139, 92, 246, 0.7);
    animation: micFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.4));
}

.mic.m1 { animation-delay: 0s; }
.mic.m2 { animation-delay: 0.25s; }
.mic.m3 { animation-delay: 0.5s; }
.mic.m4 { animation-delay: 0.75s; }
.mic.m5 { animation-delay: 1s; }
.mic.m6 { animation-delay: 1.25s; }
.mic.m7 { animation-delay: 1.5s; }
.mic.m8 { animation-delay: 1.75s; }

@keyframes micFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
    50% { transform: translateY(-3px) scale(1.1); opacity: 1; }
}

/* Flow connectors */
.distill-flow {
    position: relative;
    width: 60px;
    height: 4px;
    display: flex;
    align-items: center;
}

.flow-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.5), rgba(245, 158, 11, 0.2));
    border-radius: 1px;
}

.flow-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent-amber);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    animation: particleMove 2s linear infinite;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.particle.p1 { animation-delay: 0s; }
.particle.p2 { animation-delay: 0.7s; }
.particle.p3 { animation-delay: 1.4s; }

@keyframes particleMove {
    0% { left: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

/* Ponds stage - droplet clusters */
.ponds-container {
    position: relative;
    width: 110px;
    height: 100px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pond {
    display: flex;
    gap: 2px;
    padding: 8px 10px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 16px;
    animation: pondPulse 4s ease-in-out infinite;
}

.pond i {
    font-size: 0.7rem;
    color: rgba(59, 130, 246, 0.8);
    filter: drop-shadow(0 0 4px rgba(59, 130, 246, 0.4));
}

.pond.pond1 { animation-delay: 0s; }
.pond.pond2 { animation-delay: 1s; }
.pond.pond3 { animation-delay: 2s; }

@keyframes pondPulse {
    0%, 100% { transform: scale(1); border-color: rgba(59, 130, 246, 0.25); }
    50% { transform: scale(1.05); border-color: rgba(59, 130, 246, 0.45); box-shadow: 0 0 15px rgba(59, 130, 246, 0.15); }
}

.faded-notes {
    position: absolute;
    bottom: 0;
    right: 0;
    display: flex;
    gap: 6px;
    opacity: 0.25;
}

.faded-notes i {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    animation: noteFade 3s ease-in-out infinite;
}

.faded-notes i:nth-child(2) { animation-delay: 0.5s; }

@keyframes noteFade {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 0.1; transform: translateY(2px); }
}

/* Ideas stage - lightbulbs */
.ideas-container {
    width: 110px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.idea-bulb {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bulbGlow 3s ease-in-out infinite;
}

.idea-bulb i {
    font-size: 1.5rem;
    color: rgba(34, 197, 94, 0.85);
    filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.5));
}

.idea-bulb.b1 { animation-delay: 0s; }
.idea-bulb.b2 { animation-delay: 1.2s; }
.idea-bulb.b2 i { font-size: 1.3rem; }

@keyframes bulbGlow {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

@keyframes bulbGlow {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.1);
        filter: brightness(1.2);
    }
}

/* Outcomes stage - distillation flask */
.flask-container {
    width: 110px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.flask {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flask-neck {
    width: 16px;
    height: 20px;
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-bottom: none;
    border-radius: 4px 4px 0 0;
}

.flask-body {
    width: 50px;
    height: 45px;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.08) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px 8px 50% 50%;
    position: relative;
    overflow: hidden;
}

.flask-liquid {
    position: absolute;
    bottom: 0;
    left: 2px;
    right: 2px;
    height: 60%;
    background: linear-gradient(180deg,
        rgba(245, 158, 11, 0.6) 0%,
        rgba(249, 115, 22, 0.8) 100%
    );
    border-radius: 0 0 50% 50%;
    animation: liquidBubble 3s ease-in-out infinite;
}

@keyframes liquidBubble {
    0%, 100% { height: 55%; }
    50% { height: 65%; }
}

.flask-bubbles {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 25px;
}

.bubble {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: bubbleRise 2s ease-in-out infinite;
}

.bubble:nth-child(1) { left: 5px; animation-delay: 0s; }
.bubble:nth-child(2) { left: 15px; animation-delay: 0.7s; width: 4px; height: 4px; }
.bubble:nth-child(3) { left: 22px; animation-delay: 1.4s; width: 5px; height: 5px; }

@keyframes bubbleRise {
    0% { bottom: 0; opacity: 0.8; }
    100% { bottom: 25px; opacity: 0; }
}

.flask-glow {
    position: absolute;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    animation: flaskGlow 4s ease-in-out infinite;
    pointer-events: none;
}

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

.distillation-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.distillation-note i {
    color: var(--accent-amber);
}

/* Responsive */
@media (max-width: 768px) {
    .distillation-visual {
        flex-direction: column;
        gap: 0.5rem;
    }

    .distill-flow {
        width: 4px;
        height: 40px;
        flex-direction: column;
    }

    .flow-line {
        width: 2px;
        height: 100%;
        background: linear-gradient(180deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.5), rgba(245, 158, 11, 0.2));
    }

    .particle {
        animation: particleMoveVertical 2s linear infinite;
    }

    @keyframes particleMoveVertical {
        0% { top: 0; opacity: 0; transform: translateX(-50%); }
        10% { opacity: 1; }
        90% { opacity: 1; }
        100% { top: 100%; opacity: 0; transform: translateX(-50%); }
    }

    .distill-stage {
        min-width: auto;
        padding: 1rem;
    }
}

/* FEATURES SECTION */
.features-section {
    padding: 6rem 2rem;
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.03) 100%
    );
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top-color: rgba(255, 255, 255, 0.2);
    border-left-color: rgba(255, 255, 255, 0.15);
}

/* Top shine reflection */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.02) 40%,
        transparent 100%
    );
    pointer-events: none;
    border-radius: 20px 20px 50% 50%;
}

/* Accent top bar on hover */
.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--md-accent), #F97316);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(245, 158, 11, 0.08),
        inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

.feature-card:hover::after {
    transform: scaleX(1);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(249, 115, 22, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.35rem;
    color: var(--md-accent);
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-desc {
    color: var(--md-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* QUOTE SECTION */
.quote-section {
    padding: 8rem 2rem;
    position: relative;
}

.quote-card {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.04) 50%,
        rgba(255, 255, 255, 0.02) 100%
    );
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top-color: rgba(255, 255, 255, 0.3);
    border-left-color: rgba(255, 255, 255, 0.2);
    border-radius: 32px;
    padding: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 12px 48px rgba(0, 0, 0, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.1),
        inset 0 -1px 1px rgba(0, 0, 0, 0.05);
}

/* Top shine */
.quote-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 100%
    );
    border-radius: 32px 32px 50% 50%;
    pointer-events: none;
}

.quote-card::before {
    content: '\201C';
    position: absolute;
    top: -40px;
    left: 40px;
    font-size: 200px;
    font-weight: 800;
    color: var(--md-accent);
    opacity: 0.1;
    line-height: 1;
}

.quote-text {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.quote-highlight {
    color: var(--md-accent);
    font-weight: 700;
}

.quote-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--md-accent);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
}

.quote-cta:hover {
    gap: 1rem;
    color: #FBBF24;
}

/* CTA SECTION (Landing) */
.cta-section {
    padding: 6rem 2rem 8rem;
}

.landing-cta-card {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(249, 115, 22, 0.1));
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 32px;
    padding: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.landing-cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(245, 158, 11, 0.15), transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(249, 115, 22, 0.1), transparent 50%);
    pointer-events: none;
}

.cta-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.cta-desc {
    color: var(--md-text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.cta-form {
    position: relative;
    z-index: 1;
}

/* FOOTER */
.landing-footer {
    padding: 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--md-text);
}

.footer-brand i {
    color: var(--md-accent);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--md-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--md-text);
}

.footer-copy {
    color: var(--md-text-muted);
    font-size: 0.85rem;
}

/* ANIMATIONS */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* LANDING RESPONSIVE */
@media (max-width: 1024px) {
    .flow-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .flow-grid::before {
        display: none;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 4rem 1.5rem 3rem;
    }

    .hero-badge {
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        margin-bottom: 2rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary-glow,
    .btn-glass {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .shape-1, .shape-2, .shape-3, .shape-4 {
        display: none;
    }

    .flow-section,
    .features-section {
        padding: 4rem 1.5rem;
    }

    .flow-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .flow-card {
        padding: 2rem 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .quote-section {
        padding: 4rem 1.5rem;
    }

    .quote-card {
        padding: 2.5rem 1.5rem;
        border-radius: 24px;
    }

    .quote-card::before {
        font-size: 120px;
        top: -20px;
        left: 20px;
    }

    .cta-section {
        padding: 4rem 1.5rem;
    }

    .landing-cta-card {
        padding: 2.5rem 1.5rem;
        border-radius: 24px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3rem 1rem 2rem;
    }

    .hero-title {
        letter-spacing: -0.02em;
    }

    .flow-section,
    .features-section {
        padding: 3rem 1rem;
    }

    .landing-section-header {
        margin-bottom: 2.5rem;
    }

    .quote-section,
    .cta-section {
        padding: 3rem 1rem;
    }

    .footer-links {
        gap: 1.5rem;
    }
}

/* ================================================================
   DASHBOARD PAGE (Home/Dashboard)
   ================================================================ */

/* Dashboard Layout */
.dashboard-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Workbench */
.workbench {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Welcome Header */
.welcome-header {
    margin-bottom: 0;
}

.welcome-header h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.welcome-header h1 .gradient-text {
    background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 50%, #F97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-header p {
    color: var(--text-muted);
    margin: 0;
    font-size: 1.05rem;
}

/* Pipeline Section */
.pipeline-section {
    position: relative;
}

/* Dashboard section label */
.dashboard-section-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.dashboard-section-label i {
    color: var(--accent-amber);
}

.pipeline-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 1200px) {
    .pipeline-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.pipeline-column {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.25rem;
    min-height: 320px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.pipeline-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: 0;
    transition: opacity 0.3s;
}

.pipeline-column:hover::before {
    opacity: 1;
}

.pipeline-column.raw::before { background: linear-gradient(90deg, #6B7280, #9CA3AF); }
.pipeline-column.refining::before { background: linear-gradient(90deg, #F59E0B, #FBBF24); }
.pipeline-column.refined::before { background: linear-gradient(90deg, #3B82F6, #60A5FA); }
.pipeline-column.ready::before { background: linear-gradient(90deg, #10B981, #34D399); }

.pipeline-column:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.pipeline-column.col-drag-over {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.06);
}

.idea-card.dragging {
    opacity: 0.4;
}

.idea-card.drag-over {
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.15);
}

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

.pipeline-title {
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pipeline-column.raw .pipeline-title { color: #9CA3AF; }
.pipeline-column.refining .pipeline-title { color: #F59E0B; }
.pipeline-column.refined .pipeline-title { color: #60A5FA; }
.pipeline-column.ready .pipeline-title { color: #34D399; }

.pipeline-count {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25em 0.7em;
    border-radius: 10px;
}

/* Idea Cards (Dashboard) */
.ideas-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.idea-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
}

.idea-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
    color: inherit;
}

.idea-card h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 0 0.35rem 0;
    line-height: 1.4;
}

.idea-card .meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Dashboard empty states */
.dashboard-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    height: 200px;
}

.dashboard-empty-state i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    opacity: 0.3;
}

/* Recent Notes Section (Dashboard) */
.dashboard-notes-section {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
}

/* Dashboard section header */
.dashboard-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.dashboard-section-header h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-section-header h3 i {
    color: var(--accent-amber);
}

.btn-glass-sm {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-glass-sm:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

.notes-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.note-item {
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    border-radius: 12px;
    transition: all 0.2s;
}

.note-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

a.note-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.dashboard-note-text {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.dashboard-note-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dashboard-note-meta span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Outpost cards (below main content) */

.outpost-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.outpost-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.outpost-card h3 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.outpost-card h3 i {
    color: var(--accent-amber);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.stat-item {
    text-align: center;
    padding: 1rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    transition: all 0.2s;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-amber), #F97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-top: 0.25rem;
}

/* Active Style Card */
.style-card {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(249, 115, 22, 0.1));
    border: 1px solid rgba(245, 158, 11, 0.3);
    position: relative;
    overflow: hidden;
}

.style-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.2), transparent 70%);
    pointer-events: none;
}

.style-card h3 {
    color: var(--accent-amber);
}

.style-content {
    position: relative;
    z-index: 1;
}

.style-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.style-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.style-badge {
    background: rgba(245, 158, 11, 0.2);
    color: var(--accent-amber);
    padding: 0.35em 0.9em;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

/* Quick Publish Card */
.publish-card {
    opacity: 0.7;
}

.publish-card h3 .badge {
    font-size: 0.6rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 0.25em 0.6em;
    border-radius: 6px;
    margin-left: 0.5rem;
}

.publish-preview {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.publish-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.2s;
}

.publish-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.publish-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.publish-icon.linkedin {
    background: linear-gradient(135deg, rgba(10, 102, 194, 0.2), rgba(10, 102, 194, 0.1));
    color: #0A66C2;
}
.publish-icon.twitter {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    color: var(--text-primary);
}
.publish-icon.threads {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    color: var(--text-primary);
}

.publish-info {
    flex: 1;
}

.publish-info strong {
    font-size: 0.875rem;
    display: block;
    font-weight: 600;
}

.publish-info small {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Dashboard Responsive */
@media (max-width: 768px) {
    .welcome-header h1 {
        font-size: 1.5rem;
    }

    .pipeline-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .pipeline-column {
        min-height: 220px;
        padding: 1rem;
    }

    .dashboard-notes-section {
        padding: 1.25rem;
    }

    .dashboard-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .dashboard-section-header .btn-glass-sm {
        width: 100%;
        text-align: center;
    }

    .outpost-card {
        border-radius: 16px;
    }
}

@media (max-width: 640px) {
    .pipeline-column {
        min-height: 180px;
        border-radius: 16px;
    }

    .dashboard-empty-state {
        padding: 1.5rem 0.75rem;
        height: 120px;
    }

    .dashboard-empty-state i {
        font-size: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }

    .stat-item {
        padding: 0.75rem 0.5rem;
    }

    .stat-number {
        font-size: 1.35rem;
    }

    .stat-label {
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    .welcome-header h1 {
        font-size: 1.35rem;
    }

    .welcome-header p {
        font-size: 0.9rem;
    }

    .pipeline-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .pipeline-column {
        min-height: auto;
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .publish-preview {
        gap: 0.5rem;
    }

    .publish-item {
        padding: 0.625rem;
    }

    .publish-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

/* ================================================================
   LEGAL PAGES (Terms & Privacy)
   ================================================================ */
.legal-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.legal-header {
    margin-bottom: 2rem;
}

.legal-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--md-text);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.legal-header h1 i {
    color: var(--md-accent);
}

.legal-date {
    color: var(--md-text-muted);
    font-size: 0.9rem;
}

.legal-card {
    background: var(--md-card);
    border: 1px solid var(--md-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.legal-card.highlight {
    border-color: var(--md-accent);
}

.legal-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--md-border);
}

.legal-card-header i {
    color: var(--md-accent);
    font-size: 1.25rem;
}

.legal-card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--md-text);
    margin: 0;
}

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

.legal-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--md-text);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legal-section h2 i {
    color: var(--md-accent);
}

.legal-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--md-text);
    margin: 1.25rem 0 0.75rem;
}

.legal-section p, .legal-section li {
    color: var(--md-text-muted);
    line-height: 1.7;
}

.legal-section ul {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
}

.legal-section strong {
    color: var(--md-text);
}

.legal-section a {
    color: var(--md-accent);
    text-decoration: none;
}

.legal-section a:hover {
    text-decoration: underline;
}

.alert-box {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.alert-box.info {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.alert-box.warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
}

.alert-box.danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

.alert-box p {
    color: var(--md-text);
    margin: 0;
}

.alert-box i {
    margin-right: 0.5rem;
}

.alert-box ul {
    margin-top: 0.5rem;
    margin-bottom: 0;
    padding-left: 1.25rem;
}

.alert-box li {
    color: var(--md-text);
}

/* Legal CTA card (Terms/Privacy) */
.legal-cta-card {
    background: var(--md-card);
    border: 1px solid var(--md-border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
}

.legal-cta-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--md-text);
    margin-bottom: 0.5rem;
}

.legal-cta-card p {
    color: var(--md-text-muted);
    margin-bottom: 1rem;
}

.legal-cta-card .btn-outline {
    border: 1px solid var(--md-border);
    color: var(--md-text);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.legal-cta-card .btn-outline:hover {
    border-color: var(--md-accent);
    color: var(--md-accent);
}

.legal-cta-card .btn-primary {
    background: linear-gradient(135deg, var(--md-accent) 0%, #FBBF24 100%);
    border: none;
    color: #111827;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.legal-cta-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

@media (max-width: 768px) {
    .legal-container {
        padding: 1.5rem 1rem;
    }

    .legal-header h1 {
        font-size: 1.5rem;
    }

    .legal-section h2 {
        font-size: 1.1rem;
    }

    .legal-card {
        padding: 1rem;
    }
}

/* ================================================================
   SUBSCRIPTION INDEX PAGE
   ================================================================ */
.progress {
    background-color: var(--md-border);
}

.subscription-section-title {
    margin-top: 2rem;
}

/* ================================================================
   PRICING PAGE (Subscription/Pricing)
   ================================================================ */

/* Pricing Hero */
.pricing-hero {
    text-align: center;
    padding: 4rem 2rem 3rem;
}

.pricing-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--md-text-muted);
    margin-bottom: 1.5rem;
}

.pricing-badge i {
    color: var(--md-accent);
}

.pricing-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.pricing-title .gradient-text {
    background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 50%, #F97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-subtitle {
    color: var(--md-text-muted);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Alert */
.alert-glass {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.alert-glass .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.5;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

/* Pricing Card */
.pricing-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--card-accent), var(--card-accent-end));
    opacity: 0;
    transition: opacity 0.3s;
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
}

.pricing-card:hover::before {
    opacity: 1;
}

/* Card accents */
.pricing-card.droplet {
    --card-accent: #6B7280;
    --card-accent-end: #9CA3AF;
}

.pricing-card.stream {
    --card-accent: #3B82F6;
    --card-accent-end: #60A5FA;
}

.pricing-card.river {
    --card-accent: #F59E0B;
    --card-accent-end: #FBBF24;
}

.pricing-card.ocean {
    --card-accent: #6366F1;
    --card-accent-end: #818CF8;
    opacity: 0.7;
}

/* Popular card */
.pricing-card.popular {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(249, 115, 22, 0.08));
    border-color: rgba(245, 158, 11, 0.3);
}

.pricing-card.popular::before {
    opacity: 1;
}

.popular-badge {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    background: linear-gradient(135deg, #F59E0B, #F97316);
    color: #111;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 1.25rem;
    border-radius: 0 0 12px 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Current plan indicator */
.pricing-card.current {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.15);
}

.current-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(16, 185, 129, 0.2);
    color: #34D399;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Card header */
.card-header-area {
    text-align: center;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.plan-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.75rem;
}

.pricing-card.droplet .plan-icon {
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.2), rgba(156, 163, 175, 0.1));
    color: #9CA3AF;
}

.pricing-card.stream .plan-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(96, 165, 250, 0.1));
    color: #60A5FA;
}

.pricing-card.river .plan-icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(251, 191, 36, 0.1));
    color: var(--md-accent);
}

.pricing-card.ocean .plan-icon {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(129, 140, 248, 0.1));
    color: #818CF8;
}

.plan-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.price-period {
    color: var(--md-text-muted);
    font-size: 0.9rem;
}

.price-free {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--md-text);
}

.price-coming {
    font-size: 1.1rem;
    color: var(--md-text-muted);
}

/* Features list */
.features-list {
    flex: 1;
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0;
    font-size: 0.9rem;
    color: var(--md-text);
}

.features-list li i {
    font-size: 1rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.features-list li i.bi-check-circle-fill {
    color: #34D399;
}

.features-list li i.bi-x-circle-fill {
    color: #6B7280;
}

.features-list li.disabled {
    color: var(--md-text-muted);
}

/* CTA buttons */
.btn-pricing {
    width: 100%;
    padding: 0.875rem 1.5rem;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.btn-pricing-primary {
    background: linear-gradient(135deg, #F59E0B, #F97316);
    border: none;
    color: #111;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.btn-pricing-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4);
    color: #111;
}

.btn-pricing-secondary {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60A5FA;
}

.btn-pricing-secondary:hover {
    background: rgba(59, 130, 246, 0.25);
    color: #60A5FA;
}

.btn-pricing-ghost {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--md-text-muted);
}

.btn-pricing-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--md-text);
}

.btn-pricing-current {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34D399;
    cursor: default;
}

.btn-pricing-disabled {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--md-text-muted);
    cursor: not-allowed;
}

/* FAQ Section */
.faq-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
}

.faq-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--md-text);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-question i {
    color: var(--md-accent);
    font-size: 1.25rem;
    transition: transform 0.3s;
}

.faq-item.open .faq-question i {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.open .faq-answer {
    max-height: 200px;
}

.faq-answer-content {
    padding: 0 1.5rem 1.25rem;
    color: var(--md-text-muted);
    line-height: 1.6;
}

/* Pricing Responsive */
@media (max-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    .pricing-hero {
        padding: 3rem 1.5rem 2rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        padding: 0 1.5rem 3rem;
    }

    .pricing-card {
        padding: 1.5rem;
    }

    .pricing-card.popular {
        order: 0;
    }

    .faq-section {
        padding: 2rem 1.5rem 4rem;
    }
}

@media (max-width: 480px) {
    .pricing-hero {
        padding: 2rem 1rem 1.5rem;
    }

    .pricing-title {
        font-size: 1.75rem;
    }

    .pricing-grid {
        padding: 0 1rem 2rem;
    }

    .plan-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }

    .price-amount {
        font-size: 2rem;
    }

    .features-list li {
        font-size: 0.85rem;
    }
}

/* ================================================================
   IDEAS INDEX PAGE (Ideas/Index - Kanban)
   ================================================================ */

/* Ideas Header */
.ideas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
}

.ideas-header h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.ideas-header h1 .accent {
    background: linear-gradient(135deg, #F59E0B, #FBBF24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ideas-count {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 0.5rem;
}

.btn-new-idea {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #F59E0B, #F97316);
    color: #111;
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.btn-new-idea:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.45);
    color: #111;
}

/* Ideas Empty State */
.ideas-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5rem 2rem;
    position: relative;
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    border: 1px dashed rgba(255,255,255,0.12);
    border-radius: 24px;
}

.ideas-empty-state::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    border-radius: 24px 24px 60% 60%;
    background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, transparent 100%);
    pointer-events: none;
}

.ideas-empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(249,115,22,0.08));
    border: 1px solid rgba(245,158,11,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent-amber);
    margin-bottom: 1.5rem;
    position: relative;
}

.ideas-empty-state h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    position: relative;
}

.ideas-empty-state p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 340px;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    position: relative;
}

.ideas-empty-state .btn-new-idea {
    position: relative;
}

/* Kanban Grid */
.ideas-kanban {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

/* Kanban Column */
.kanban-col {
    position: relative;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.07) 0%,
        rgba(255, 255, 255, 0.02) 50%,
        rgba(255, 255, 255, 0.01) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top-color: rgba(255, 255, 255, 0.18);
    border-left-color: rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    padding: 1.25rem;
    min-height: 380px;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* Top accent bar */
.kanban-col::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    transition: opacity 0.3s;
}

.kanban-raw::before { background: linear-gradient(90deg, #6B7280, #9CA3AF); }
.kanban-refining::before { background: linear-gradient(90deg, #F59E0B, #FBBF24); }
.kanban-refined::before { background: linear-gradient(90deg, #3B82F6, #60A5FA); }
.kanban-ready::before { background: linear-gradient(90deg, #10B981, #34D399); }

/* Top shine overlay */
.kanban-col::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 0;
    right: 0;
    height: 40%;
    border-radius: 20px 20px 60% 60%;
    background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.01) 40%, transparent 100%);
    pointer-events: none;
}

.kanban-col:hover {
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-3px);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(245, 158, 11, 0.04),
        inset 0 1px 2px rgba(255, 255, 255, 0.08);
}

/* Column Header */
.kanban-col-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1;
}

.kanban-col-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.kanban-col-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.kanban-col-dot.raw { background: #9CA3AF; box-shadow: 0 0 8px rgba(156,163,175,0.4); }
.kanban-col-dot.refining { background: #F59E0B; box-shadow: 0 0 8px rgba(245,158,11,0.4); }
.kanban-col-dot.refined { background: #60A5FA; box-shadow: 0 0 8px rgba(96,165,250,0.4); }
.kanban-col-dot.ready { background: #34D399; box-shadow: 0 0 8px rgba(52,211,153,0.4); }

.kanban-col-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.kanban-raw .kanban-col-title { color: #9CA3AF; }
.kanban-refining .kanban-col-title { color: #F59E0B; }
.kanban-refined .kanban-col-title { color: #60A5FA; }
.kanban-ready .kanban-col-title { color: #34D399; }

.kanban-col-count {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2em 0.65em;
    border-radius: 8px;
    min-width: 1.5em;
    text-align: center;
}

/* Column Body */
.kanban-col-body {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    position: relative;
    z-index: 1;
    min-height: 60px;
    border-radius: 14px;
    border: 2px dashed transparent;
    transition: border-color 0.2s, background 0.2s;
}

.kanban-col-body.col-drag-over {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.04);
}

/* Kanban Card */
.kanban-card {
    display: block;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: grab;
}

.kanban-card:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    color: inherit;
}

.kanban-card:active {
    cursor: grabbing;
}

.kanban-card-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 0.4rem;
}

.kanban-card-meta {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.kanban-card-meta i {
    font-size: 0.7rem;
}

/* Drag States */
.kanban-card.drag-over {
    outline: 2px solid rgba(245, 158, 11, 0.6);
    outline-offset: 2px;
    background: rgba(245, 158, 11, 0.08);
    transform: scale(1.02);
}

.kanban-card.dragging {
    opacity: 0.35;
    transform: scale(0.97);
}

/* Column Empty */
.kanban-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 2.5rem 1rem;
    color: var(--text-muted);
    text-align: center;
    opacity: 0.5;
}

.kanban-empty i {
    font-size: 1.75rem;
    opacity: 0.6;
}

.kanban-empty span {
    font-size: 0.82rem;
    font-weight: 500;
}

/* Staggered Entrance */
@keyframes kanbanSlideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.kanban-col {
    animation: kanbanSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.kanban-col:nth-child(1) { animation-delay: 0s; }
.kanban-col:nth-child(2) { animation-delay: 0.06s; }
.kanban-col:nth-child(3) { animation-delay: 0.12s; }
.kanban-col:nth-child(4) { animation-delay: 0.18s; }

/* Ideas Responsive */
@media (max-width: 1024px) {
    .ideas-kanban {
        grid-template-columns: repeat(2, 1fr);
    }

    .kanban-col {
        min-height: 280px;
    }
}

@media (max-width: 768px) {
    .ideas-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .ideas-header h1 {
        font-size: 1.5rem;
    }

    .btn-new-idea {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .ideas-kanban {
        grid-template-columns: 1fr;
    }

    .kanban-col {
        min-height: auto;
        border-radius: 16px;
    }

    .ideas-empty-state {
        padding: 3rem 1.5rem;
    }
}

/* Ideas Merge Modal - Glassmorphism */
.merge-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.merge-modal-overlay.show {
    display: block;
}
.merge-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1050;
    align-items: center;
    justify-content: center;
}
.merge-modal.show {
    display: flex;
}
.merge-modal-dialog {
    width: 100%;
    max-width: 520px;
    margin: 1rem;
}
.merge-modal-content {
    background: linear-gradient(145deg, rgba(16, 22, 36, 0.97) 0%, rgba(10, 15, 26, 0.98) 100%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top-color: rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.08);
    overflow: hidden;
}
.merge-modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.merge-modal-title {
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.merge-modal-title i {
    color: var(--accent-amber, #F59E0B);
}
.merge-modal-body {
    padding: 1.75rem;
}
.merge-modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 1.75rem;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}
.merge-source-labels {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.merge-source-label {
    padding: 0.35rem 0.85rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-amber, #F59E0B);
}
.merge-form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary, #aaa);
    margin-bottom: 0.5rem;
    display: block;
}
.merge-form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary, #eee);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}
.merge-form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
    outline: none;
}
.merge-form-control::placeholder {
    color: var(--text-muted, #666);
}
.modal-btn {
    padding: 0.65rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}
.modal-btn.cancel {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary, #aaa);
}
.modal-btn.cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary, #eee);
}
.modal-btn.confirm {
    background: linear-gradient(135deg, #F59E0B, #F97316);
    color: #111;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}
.modal-btn.confirm:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(245, 158, 11, 0.4);
}
.merge-close-btn {
    border: none;
    background: none;
    padding: 0.25rem;
    cursor: pointer;
    color: var(--text-secondary, #aaa);
    font-size: 1.1rem;
}
.merge-close-btn:hover {
    color: var(--text-primary, #eee);
}

/* ================================================================
   IDEAS DETAILS PAGE (Ideas/Details - Promote Modal)
   ================================================================ */
.promote-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.promote-overlay.show { display: block; }
.promote-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1050;
    align-items: center;
    justify-content: center;
}
.promote-modal.show { display: flex; }
.promote-modal-dialog {
    width: 100%;
    max-width: 460px;
    margin: 1rem;
}
.promote-modal-content {
    background: linear-gradient(145deg, rgba(16, 22, 36, 0.97) 0%, rgba(10, 15, 26, 0.98) 100%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top-color: rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.08);
    overflow: hidden;
}
.promote-modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.promote-modal-title {
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.promote-modal-title i { color: var(--accent-amber, #F59E0B); }
.promote-modal-body { padding: 1.75rem; }
.promote-modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 1.75rem;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}
.promote-close-btn {
    border: none;
    background: none;
    padding: 0.25rem;
    cursor: pointer;
    color: var(--text-secondary, #aaa);
    font-size: 1.1rem;
}
.promote-close-btn:hover { color: var(--text-primary, #eee); }
.promote-form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary, #aaa);
    margin-bottom: 0.5rem;
    display: block;
}
.promote-form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary, #eee);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}
.promote-form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
    outline: none;
}
.promote-hint {
    color: var(--text-muted, #666);
    font-size: 0.8rem;
    margin-top: 0.75rem;
}
/* Details page confirm button (green) */
.modal-btn.confirm-green {
    background: linear-gradient(135deg, #10B981, #059669);
    color: #fff;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}
.modal-btn.confirm-green:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.4);
}

/* ================================================================
   NOTES INDEX PAGE (Notes/Index)
   ================================================================ */

/* Page Header */
.notes-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
}

.notes-header h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.notes-header h1 .accent {
    background: linear-gradient(135deg, #F59E0B, #FBBF24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.notes-count {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 0.5rem;
}

.btn-new-note {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #F59E0B, #F97316);
    color: #111;
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.btn-new-note:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.45);
    color: #111;
}

/* Date Group */
.date-group {
    margin-bottom: 2.5rem;
}

.date-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.date-label i {
    color: var(--accent-amber);
    font-size: 0.85rem;
}

/* Note Card - True Glass */
.note-card {
    position: relative;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.03) 50%,
        rgba(255, 255, 255, 0.01) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top-color: rgba(255, 255, 255, 0.2);
    border-left-color: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* Top shine */
.note-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    border-radius: 20px 20px 60% 60%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.02) 40%,
        transparent 100%
    );
    pointer-events: none;
}

.note-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-3px);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(245, 158, 11, 0.06),
        inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

/* Note Content */
.note-body {
    position: relative;
    z-index: 1;
}

.note-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.note-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.note-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.note-time {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.note-time i {
    font-size: 0.85rem;
}

.note-tag {
    padding: 0.2em 0.65em;
    background: rgba(245, 158, 11, 0.12);
    color: var(--accent-amber);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Action Buttons - Glass Pill Style */
.note-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Toggle raw/polished button */
.toggle-raw-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.65rem;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-raw-btn:hover {
    background: rgba(139, 92, 246, 0.25);
    color: rgba(255, 255, 255, 0.85);
}

.toggle-raw-btn i {
    font-size: 0.6rem;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.4;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
    box-sizing: border-box;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.action-btn i {
    font-size: 0.9rem;
}

/* Promote - amber accent */
.action-btn.promote {
    border-color: rgba(245, 158, 11, 0.2);
    background: rgba(245, 158, 11, 0.08);
    color: var(--accent-amber);
}

.action-btn.promote:hover {
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(245, 158, 11, 0.35);
    color: #FBBF24;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.15);
}

/* Delete - rose accent */
.action-btn.delete {
    border-color: rgba(244, 63, 94, 0.15);
    background: rgba(244, 63, 94, 0.06);
    color: rgba(244, 63, 94, 0.8);
}

.action-btn.delete:hover {
    background: rgba(244, 63, 94, 0.15);
    border-color: rgba(244, 63, 94, 0.3);
    color: #FB7185;
    box-shadow: 0 4px 16px rgba(244, 63, 94, 0.12);
}

/* Notes Empty State */
.empty-state {
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.06) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top-color: rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

.empty-state::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), transparent);
    border-radius: 24px 24px 50% 50%;
    pointer-events: none;
}

.empty-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(249,115,22,0.08));
    border: 1px solid rgba(245,158,11,0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--accent-amber);
    position: relative;
    z-index: 1;
}

.empty-state h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

.empty-state .btn-new-note {
    position: relative;
    z-index: 1;
}

/* Notes Modal - Glass (no Bootstrap) */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1050;
    overflow: auto;
    outline: 0;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1040;
}

.modal-dialog {
    position: relative;
    width: 100%;
    max-width: 460px;
    margin: 1rem;
    z-index: 1050;
}

.modal-content.glass-modal {
    background: linear-gradient(
        145deg,
        rgba(16, 22, 36, 0.97) 0%,
        rgba(10, 15, 26, 0.98) 100%
    );
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top-color: rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.6),
        inset 0 1px 1px rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.glass-modal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem 1.75rem;
}

.glass-modal .modal-title {
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.glass-modal .modal-title i {
    color: var(--accent-amber);
}

.glass-modal .modal-body {
    padding: 1.75rem;
}

.glass-modal .form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.glass-modal .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.glass-modal .form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
    outline: none;
    color: var(--text-primary);
}

.glass-modal .form-control::placeholder {
    color: var(--text-muted);
}

.glass-modal .modal-footer {
    display: flex;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 1.75rem;
    justify-content: center;
    gap: 0.75rem;
}

.modal-hint {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.modal-hint i {
    color: var(--accent-amber);
    font-size: 0.85rem;
}

/* Notes Drag and Drop */
.note-card[draggable="true"] {
    cursor: grab;
}
.note-card[draggable="true"]:active {
    cursor: grabbing;
}
.note-card.drag-over {
    outline: 2px solid rgba(245, 158, 11, 0.6);
    outline-offset: 2px;
    background: linear-gradient(
        145deg,
        rgba(245, 158, 11, 0.12) 0%,
        rgba(245, 158, 11, 0.04) 100%
    ) !important;
    transform: scale(1.01);
}
.note-card.dragging {
    opacity: 0.4;
}

/* Notes Merge/Promote Modal */
.merge-modal-wrap {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1050;
    align-items: center;
    justify-content: center;
}
.merge-modal-wrap.show { display: flex; }
.merge-preview {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
}
.merge-preview-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-amber);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.4rem;
}
.merge-preview-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    white-space: pre-wrap;
    max-height: 80px;
    overflow-y: auto;
}
.merge-action-choice {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.merge-choice-btn {
    flex: 1;
    padding: 1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}
.merge-choice-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}
.merge-choice-btn.active {
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-amber);
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.15);
}
.merge-choice-btn i {
    display: block;
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
}
.merge-choice-btn span {
    font-size: 0.85rem;
    font-weight: 600;
}
.merge-title-input {
    display: none;
    margin-top: 1rem;
}
.merge-title-input.show { display: block; }

/* Notes Animations */
.note-card {
    animation: noteSlideIn 0.4s ease-out both;
}

.date-group:nth-child(1) .note-card:nth-child(2) { animation-delay: 0.05s; }
.date-group:nth-child(1) .note-card:nth-child(3) { animation-delay: 0.1s; }
.date-group:nth-child(1) .note-card:nth-child(4) { animation-delay: 0.15s; }
.date-group:nth-child(1) .note-card:nth-child(5) { animation-delay: 0.2s; }
.date-group:nth-child(2) .note-card { animation-delay: 0.25s; }
.date-group:nth-child(3) .note-card { animation-delay: 0.35s; }

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

/* Notes Responsive */
@media (max-width: 768px) {
    .notes-header {
        margin-bottom: 2rem;
    }

    .notes-header h1 {
        font-size: 1.5rem;
    }

    .btn-new-note {
        padding: 0.65rem 1.15rem;
        font-size: 0.85rem;
    }

    .note-card {
        padding: 1.25rem;
        border-radius: 16px;
    }

    .note-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .note-actions {
        width: 100%;
    }

    .action-btn {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .notes-header h1 {
        font-size: 1.35rem;
    }

    .notes-count {
        display: none;
    }

    .btn-new-note span {
        display: none;
    }

    .note-card {
        padding: 1rem;
    }

    .note-text {
        font-size: 0.95rem;
    }

    .action-btn {
        padding: 0.4rem 0.65rem;
        font-size: 0.75rem;
    }

    .action-btn .label {
        display: none;
    }
}


/* ================================================================
   CREATE / EDIT FORM PAGES
   ================================================================ */

.create-page {
    max-width: 720px;
    margin: 0 auto;
}

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

.create-page-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.create-form-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
}

.create-form-card .form-group {
    margin-bottom: 1.5rem;
}

.create-form-card .form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.create-form-card .form-control {
    width: 100%;
    box-sizing: border-box;
}

.create-form-card textarea.form-control {
    resize: vertical;
    min-height: 160px;
}

.polished-preview {
    padding: 1rem 1.25rem;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-primary);
    white-space: pre-wrap;
}

.create-form-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

@media (max-width: 640px) {
    .create-page-header h1 {
        font-size: 1.4rem;
    }

    .create-form-card {
        padding: 1.25rem;
        border-radius: 16px;
    }

    .create-form-actions {
        flex-direction: column;
    }

    .create-form-actions .btn-new-idea {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}


/* ================================================================
   VOICE RECORD SECTION (Notes Create)
   ================================================================ */

.record-section-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 2rem 0;
}

.record-btn-hero {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.record-btn-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid rgba(245, 158, 11, 0.3);
    transition: all 0.3s ease;
}

.record-btn-hero:hover .record-btn-ring {
    border-color: rgba(245, 158, 11, 0.6);
    transform: scale(1.08);
}

.record-btn-inner {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F59E0B, #F97316);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #111;
    transition: all 0.3s ease;
    box-shadow: 0 4px 24px rgba(245, 158, 11, 0.3);
}

.record-btn-hero:hover .record-btn-inner {
    transform: scale(1.05);
    box-shadow: 0 6px 32px rgba(245, 158, 11, 0.4);
}

.record-btn-hero:active .record-btn-inner {
    transform: scale(0.95);
}

/* Recording state */
.record-btn-hero.recording .record-btn-ring {
    border-color: rgba(239, 68, 68, 0.5);
    animation: recordRingPulse 1.5s ease-in-out infinite;
}

.record-btn-hero.recording .record-btn-inner {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 4px 24px rgba(239, 68, 68, 0.4);
}

@keyframes recordRingPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.5; }
}

.record-timer {
    font-size: 1.1rem;
    font-variant-numeric: tabular-nums;
    color: var(--text-muted);
    opacity: 0;
    transition: opacity 0.2s ease;
    margin: 0;
}

.record-timer.visible {
    opacity: 1;
}

.record-status {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
    letter-spacing: 0.02em;
}

/* Mobile: keep record button accessible but compact */
@media (max-width: 768px) {
    .record-section-hero {
        padding: 1rem 0;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
}


/* ================================================================
   IDEA DETAIL PAGE
   ================================================================ */

.idea-detail {
    max-width: 800px;
    margin: 0 auto;
}

.idea-detail-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.idea-detail-topbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.idea-status-form {
    display: inline-flex;
}

.idea-status-select {
    padding: 0.4rem 2rem 0.4rem 0.75rem;
    font-size: 0.85rem;
    border-radius: 10px;
    min-width: 0;
}

.btn-sm-action {
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
    border-radius: 10px;
}

.btn-danger-glass {
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.25);
}

.btn-danger-glass:hover {
    background: rgba(248, 113, 113, 0.15);
    border-color: rgba(248, 113, 113, 0.4);
    color: #fca5a5;
}

.btn-promote {
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.25);
}

.btn-promote:hover {
    background: rgba(52, 211, 153, 0.15);
    border-color: rgba(52, 211, 153, 0.4);
    color: #6ee7b7;
}

.idea-detail-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1.5rem 0;
}

.idea-detail-content {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.idea-detail-text {
    white-space: pre-wrap;
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.7;
}

.idea-detail-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.idea-detail-info i {
    margin-right: 0.3rem;
}

@media (max-width: 640px) {
    .idea-detail-topbar {
        gap: 0.75rem;
    }

    .idea-detail-topbar-right .action-label {
        display: none;
    }

    .idea-detail-topbar-right {
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .idea-detail-topbar-right .btn-sm-action {
        padding: 0.45rem 0.75rem;
        font-size: 0.8rem;
    }

    .idea-detail-title {
        font-size: 1.4rem;
        word-break: break-word;
    }

    .idea-detail-content {
        padding: 1.25rem;
        border-radius: 16px;
        overflow-x: hidden;
    }

    .idea-detail-text {
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .idea-detail-info {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ================================================================
   PROJECT DETAIL
   ================================================================ */
.project-detail {
    max-width: 800px;
    margin: 0 auto;
}

.project-detail-context {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.project-context-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.project-context-tag i {
    font-size: 0.78rem;
    opacity: 0.7;
}

.project-detail-section {
    margin-top: 2rem;
}

.project-detail-section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-detail-section-title i {
    opacity: 0.6;
}

.project-detail-notes {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.project-detail-note {
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
}

.project-detail-note p {
    margin: 0 0 0.4rem;
    font-size: 0.88rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.project-detail-note-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.project-detail-note-date i {
    margin-right: 0.25rem;
}

/* ================================================================
   BRAINSTORM PAGE
   ================================================================ */
.brainstorm-page {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 80px);
    max-width: 800px;
    margin: 0 auto;
}

.brainstorm-topbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    flex-shrink: 0;
}

.brainstorm-topbar-title {
    flex: 1;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.brainstorm-topbar-title span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brainstorm-icon {
    color: #A78BFA;
    font-size: 1.2rem;
}

.brainstorm-topbar-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.brainstorm-insight-btn {
    color: #A78BFA !important;
    border-color: rgba(167, 139, 250, 0.3) !important;
}

.brainstorm-insight-btn:hover {
    background: rgba(167, 139, 250, 0.15) !important;
}

.brainstorm-confirm-btn {
    background: linear-gradient(135deg, #7C3AED, #A78BFA) !important;
}

.brainstorm-confirm-btn:hover {
    background: linear-gradient(135deg, #6D28D9, #8B5CF6) !important;
}

/* Chat area */
.brainstorm-chat {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.brainstorm-msg {
    display: flex;
    gap: 0.75rem;
    max-width: 85%;
    animation: brainstormFadeIn 0.3s ease;
}

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

.brainstorm-msg-user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.brainstorm-msg-assistant {
    align-self: flex-start;
}

.brainstorm-msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.brainstorm-msg-assistant .brainstorm-msg-avatar {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(167, 139, 250, 0.2));
    color: #A78BFA;
    border: 1px solid rgba(167, 139, 250, 0.3);
}

.brainstorm-msg-user .brainstorm-msg-avatar {
    background: rgba(255,255,255,0.08);
    color: var(--text-muted);
    border: 1px solid rgba(255,255,255,0.1);
}

.brainstorm-msg-bubble {
    background: linear-gradient(145deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 0.85rem 1.1rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.brainstorm-msg-user .brainstorm-msg-bubble {
    background: linear-gradient(145deg, rgba(124, 58, 237, 0.2) 0%, rgba(167, 139, 250, 0.1) 100%);
    border-color: rgba(167, 139, 250, 0.2);
}

.brainstorm-msg-content {
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.brainstorm-msg-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
    opacity: 0.7;
}

/* Typing indicator */
.brainstorm-typing {
    display: flex;
    gap: 4px;
    padding: 4px 0;
}

.brainstorm-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #A78BFA;
    opacity: 0.4;
    animation: brainstormTyping 1.4s infinite;
}

.brainstorm-typing span:nth-child(2) { animation-delay: 0.2s; }
.brainstorm-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes brainstormTyping {
    0%, 60%, 100% { opacity: 0.4; transform: scale(1); }
    30% { opacity: 1; transform: scale(1.2); }
}

/* Input area */
.brainstorm-input-area {
    padding: 1rem 0;
    flex-shrink: 0;
}

.brainstorm-input-wrap {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    background: linear-gradient(145deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    transition: border-color 0.2s;
}

.brainstorm-input-wrap:focus-within {
    border-color: rgba(167, 139, 250, 0.4);
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.1);
}

.brainstorm-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.5;
    resize: none;
    outline: none;
    max-height: 120px;
    padding: 0.35rem 0;
}

.brainstorm-input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.brainstorm-send-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #7C3AED, #A78BFA);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.brainstorm-send-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #6D28D9, #8B5CF6);
    transform: scale(1.05);
}

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

.brainstorm-mic-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #D97706, #F59E0B);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.brainstorm-mic-btn:hover {
    background: linear-gradient(135deg, #B45309, #D97706);
    transform: scale(1.05);
}

.brainstorm-stop-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #DC2626, #EF4444);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.brainstorm-stop-btn:hover {
    background: linear-gradient(135deg, #B91C1C, #DC2626);
    transform: scale(1.05);
}

.brainstorm-record-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    justify-content: center;
}

.brainstorm-record-timer {
    font-size: 0.9rem;
    font-weight: 600;
    color: #EF4444;
    font-variant-numeric: tabular-nums;
}

.brainstorm-record-status {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    min-height: 1.2em;
    margin-top: 0.35rem;
}

.brainstorm-input-wrap.recording {
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15), 0 0 15px rgba(239, 68, 68, 0.1);
}

/* Mobile */
@media (max-width: 768px) {
    .brainstorm-page {
        height: calc(100vh - 60px);
    }

    .brainstorm-topbar-title span {
        display: none;
    }

    .brainstorm-msg {
        max-width: 92%;
    }

    .brainstorm-topbar-actions .action-label {
        display: none;
    }
}

/* ================================================================
   REFINE PAGE
   ================================================================ */
.refine-page {
    max-width: 1100px;
    margin: 0 auto;
}

.refine-topbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0 1.5rem;
}

.refine-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.refine-icon {
    color: #F59E0B;
}

.refine-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 1.5rem;
    align-items: start;
}

.refine-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 50%, rgba(255,255,255,0.01) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-top-color: rgba(255,255,255,0.2);
    border-left-color: rgba(255,255,255,0.15);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.2), inset 0 1px 1px rgba(255,255,255,0.08);
}

.refine-card-header {
    padding: 1rem 1.25rem;
    font-weight: 700;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.refine-card-body {
    padding: 1.25rem;
}

.refine-content-text {
    white-space: pre-wrap;
    line-height: 1.7;
    font-size: 0.95rem;
}

.refine-result-card {
    border-color: rgba(245, 158, 11, 0.3);
}

.refine-result-header {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
    color: #FBBF24;
}

.refine-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    background: rgba(245, 158, 11, 0.2);
    color: #FBBF24;
    margin-left: auto;
}

.refine-badge-muted {
    background: rgba(255,255,255,0.08);
    color: var(--text-muted);
}

.refine-result-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.refine-apply-btn {
    color: #34D399 !important;
    border-color: rgba(52, 211, 153, 0.3) !important;
}

.refine-apply-btn:hover {
    background: rgba(52, 211, 153, 0.15) !important;
}

.refine-history-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.refine-history-item:last-child {
    border-bottom: none;
}

.refine-history-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.refine-history-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.refine-history-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Refinement options (checkboxes) */
.refine-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.refine-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.refine-option {
    display: flex;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    cursor: pointer;
    transition: all 0.2s;
}

.refine-option:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.15);
}

.refine-option:has(.refine-checkbox:checked) {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.3);
}

.refine-option-check {
    flex-shrink: 0;
    position: relative;
    width: 22px;
    height: 22px;
    margin-top: 2px;
}

.refine-checkbox {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 1;
}

.refine-checkmark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    transition: all 0.2s;
    font-size: 0.75rem;
    color: transparent;
}

.refine-checkbox:checked + .refine-checkmark {
    background: linear-gradient(135deg, #F59E0B, #FBBF24);
    border-color: #F59E0B;
    color: #000;
}

.refine-option-body {
    flex: 1;
    min-width: 0;
}

.refine-option-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.refine-option-header i {
    color: #F59E0B;
    font-size: 0.85rem;
}

.refine-option-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin: 0;
}

.refine-submit-btn {
    width: 100%;
    padding: 0.85rem 1.25rem;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #F59E0B, #FBBF24);
    color: #000;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.refine-submit-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

.refine-submit-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(255,255,255,0.1);
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .refine-layout {
        grid-template-columns: 1fr;
    }

    .refine-sidebar {
        order: -1;
    }
}

/* ================================================================
   PROCESSING MODAL
   ================================================================ */
.processing-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.processing-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.processing-modal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 3rem;
}

/* Logo with spinning ring */
.processing-logo {
    position: relative;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.processing-logo-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.08);
    border-top-color: #F59E0B;
    border-right-color: rgba(245, 158, 11, 0.4);
    animation: processingRingSpin 1.8s cubic-bezier(0.6, 0.15, 0.35, 0.85) infinite;
}

.processing-logo-ring::after {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.04);
    border-top-color: rgba(167, 139, 250, 0.6);
    border-left-color: rgba(167, 139, 250, 0.3);
    animation: processingRingSpin 2.4s cubic-bezier(0.6, 0.15, 0.35, 0.85) infinite reverse;
}

@keyframes processingRingSpin {
    to { transform: rotate(360deg); }
}

.processing-logo-icon {
    font-size: 2rem;
    background: linear-gradient(135deg, #F59E0B, #FBBF24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: processingPulse 2s ease-in-out infinite;
}

@keyframes processingPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* Phrase text */
.processing-phrase {
    font-size: 1.15rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    letter-spacing: -0.01em;
    transition: opacity 0.3s, transform 0.3s;
    min-height: 1.5em;
}

.processing-phrase-exit {
    opacity: 0;
    transform: translateY(-8px);
}

.processing-phrase-enter {
    animation: processingPhraseIn 0.4s ease forwards;
}

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

/* Bouncing dots */
.processing-dots {
    display: flex;
    gap: 6px;
}

.processing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    animation: processingBounce 1.4s ease-in-out infinite;
}

.processing-dots span:nth-child(2) { animation-delay: 0.16s; }
.processing-dots span:nth-child(3) { animation-delay: 0.32s; }

@keyframes processingBounce {
    0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-8px); }
}

/* ================================================================
   DISTILLATION HISTORY PAGE
   ================================================================ */
.history-page {
    max-width: 700px;
    margin: 0 auto;
}

.history-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.history-topbar-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #60A5FA;
}

.history-icon {
    font-size: 1.2rem;
}

.history-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
}

.history-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--md-text-muted);
}

.history-empty p {
    margin-top: 1rem;
    font-size: 0.95rem;
}

.history-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.history-step {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    min-height: 80px;
}

.history-step-track {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 48px;
}

.history-droplet {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #60A5FA;
    flex-shrink: 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.history-connector {
    width: 2px;
    flex: 1;
    min-height: 24px;
    background: linear-gradient(180deg, rgba(96,165,250,0.4) 0%, rgba(96,165,250,0.1) 100%);
    margin: 4px 0;
}

.history-card {
    flex: 1;
    background: linear-gradient(145deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 50%, rgba(255,255,255,0.01) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(96,165,250,0.15);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15), inset 0 1px 1px rgba(255,255,255,0.06);
}

.history-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.history-event-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #60A5FA;
}

.history-step-number {
    font-size: 0.75rem;
    color: var(--md-text-muted);
    opacity: 0.7;
}

.history-card-meta {
    font-size: 0.8rem;
    color: var(--md-text-muted);
}

.history-content-toggle {
    margin-top: 0.75rem;
}

.history-content-toggle summary {
    font-size: 0.8rem;
    color: #60A5FA;
    cursor: pointer;
    user-select: none;
    font-weight: 500;
}

.history-content-toggle summary:hover {
    text-decoration: underline;
}

.history-content-snapshot {
    margin-top: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
    font-size: 0.85rem;
    color: var(--md-text-muted);
    line-height: 1.6;
    white-space: pre-wrap;
    max-height: 300px;
    overflow-y: auto;
}

@media (max-width: 600px) {
    .history-step {
        gap: 0.75rem;
    }
    .history-step-track {
        width: 36px;
    }
    .history-card {
        padding: 0.75rem 1rem;
    }
}

/* ================================================================
   COOKIE CONSENT BANNER
   ================================================================ */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 1rem;
    background: linear-gradient(145deg, rgba(30, 30, 40, 0.98) 0%, rgba(20, 20, 30, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-consent-text {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 280px;
}

.cookie-consent-text i {
    font-size: 1.5rem;
    color: #F59E0B;
}

.cookie-consent-text p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--md-text-muted, #a0a0a0);
    line-height: 1.5;
}

.cookie-consent-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: #fff;
}

.cookie-btn-accept:hover {
    background: linear-gradient(135deg, #FBBF24, #F59E0B);
    transform: translateY(-1px);
}

.cookie-btn-essential {
    background: rgba(255, 255, 255, 0.1);
    color: var(--md-text, #fff);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn-essential:hover {
    background: rgba(255, 255, 255, 0.15);
}

.cookie-link {
    color: var(--md-text-muted, #a0a0a0);
    font-size: 0.85rem;
    text-decoration: none;
}

.cookie-link:hover {
    color: var(--md-text, #fff);
    text-decoration: underline;
}

@media (max-width: 600px) {
    .cookie-consent {
        padding: 1rem;
    }
    
    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-consent-text {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-consent-actions {
        justify-content: center;
    }
}

/* ================================================================
   FAQ SECTION (Landing Page)
   ================================================================ */
.faq-section {
    padding: 4rem 0;
}

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

.faq-item {
    margin-bottom: 1rem;
    background: linear-gradient(145deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(255,255,255,0.2);
}

.faq-item.open {
    background: linear-gradient(145deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
    border-color: rgba(245, 158, 11, 0.3);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--md-text, #fff);
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.faq-question:hover {
    color: #F59E0B;
}

.faq-question span {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.faq-icon {
    color: #F59E0B;
    font-size: 1.1rem;
}

.faq-chevron {
    transition: transform 0.3s ease;
    color: var(--md-text-muted, #888);
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
    color: #F59E0B;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    margin: 0;
    color: var(--md-text-muted, #a0a0a0);
    line-height: 1.7;
}

.faq-answer a {
    color: #F59E0B;
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .faq-section {
        padding: 3rem 1rem;
    }

    .faq-question {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }

    .faq-answer p {
        padding: 0 1.25rem 1.25rem;
        font-size: 0.9rem;
    }
}
