/* ==========================================================================
   Dinner Party — Art Deco CSS
   Gold-on-midnight palette, Poiret One + Raleway typography, beveled edges
   ========================================================================== */

/* --- Skip Navigation --- */
.dp-skip-nav {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: #d4af37;
    color: #0f1b2e;
    padding: 8px 24px;
    border-radius: 0 0 4px 4px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 9999;
    text-decoration: none;
    transition: top 0.2s ease;
}
.dp-skip-nav:focus {
    top: 0;
    outline: none;
}

/* --- Focus Visible --- */
:focus-visible {
    outline: 3px solid #d4af37;
    outline-offset: 2px;
}
button:focus-visible,
.btn:focus-visible,
a:focus-visible,
textarea:focus-visible,
input:focus-visible {
    outline: 3px solid #d4af37;
    outline-offset: 2px;
    box-shadow: none;
}

/* --- Base --- */
body {
    background: linear-gradient(135deg, #0a0f1a 0%, #0f1b2e 50%, #111d2b 100%);
    min-height: 100vh;
    color: #faf5ef;
    font-family: 'Raleway', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* --- Art Deco Geometric Overlay --- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 40px,
            rgba(212, 175, 55, 0.015) 40px,
            rgba(212, 175, 55, 0.015) 41px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 40px,
            rgba(212, 175, 55, 0.015) 40px,
            rgba(212, 175, 55, 0.015) 41px
        );
}

/* --- Diamond Divider Ornament --- */
.dp-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
    color: rgba(212, 175, 55, 0.3);
}
.dp-divider::before,
.dp-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
    max-width: 120px;
}
.dp-divider::before {
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3));
}
.dp-divider::after {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.3), transparent);
}

/* --- Gold Shimmer Hover on Buttons --- */
.btn-success,
.btn-primary,
.dp-intro-btn {
    position: relative;
    overflow: hidden;
}
.btn-success::after,
.btn-primary::after,
.dp-intro-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
    pointer-events: none;
}
.btn-success:hover::after,
.btn-primary:hover::after,
.dp-intro-btn:hover::after {
    left: 100%;
}

/* --- Header --- */
.header {
    background: rgba(15, 27, 46, 0.85);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding: 1rem 0;
    margin-bottom: 2rem;
}
.brand-link {
    color: rgba(250, 245, 239, 0.5);
    text-decoration: none;
    font-size: 0.9rem;
}
.brand-link:hover {
    color: #d4af37;
}
.app-title {
    font-family: 'Poiret One', 'Raleway', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.app-subtitle {
    font-family: 'Raleway', sans-serif;
    color: rgba(250, 245, 239, 0.6);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* --- Cards --- */
.card {
    background: rgba(15, 27, 46, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 4px;
}
.card-header {
    background: rgba(212, 175, 55, 0.08);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    color: #faf5ef;
    font-weight: 600;
}

/* --- Forms --- */
.form-control {
    background: rgba(15, 27, 46, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.25);
    color: #faf5ef;
    border-radius: 4px;
}
.form-control:focus {
    background: rgba(15, 27, 46, 0.8);
    border-color: #d4af37;
    color: #faf5ef;
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.2);
}
.form-control::placeholder {
    color: rgba(250, 245, 239, 0.4);
}

/* --- Buttons --- */
.btn-primary {
    background: linear-gradient(135deg, #d4af37, #b5a642);
    border-color: #d4af37;
    color: #0f1b2e;
    font-weight: 600;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #e0bf4a, #c4b44e);
    border-color: #e0bf4a;
    color: #0f1b2e;
}
.btn-primary:disabled {
    background: #8a7a2a;
    border-color: #8a7a2a;
    color: rgba(15, 27, 46, 0.6);
}
.btn-success {
    background: linear-gradient(135deg, #d4af37, #b5a642);
    border-color: #d4af37;
    color: #0f1b2e;
    font-weight: 600;
}
.btn-success:hover {
    background: linear-gradient(135deg, #e0bf4a, #c4b44e);
    border-color: #e0bf4a;
    color: #0f1b2e;
}
.btn-success:disabled {
    background: #8a7a2a;
    border-color: #8a7a2a;
    color: rgba(15, 27, 46, 0.6);
}
.btn-outline-primary {
    color: #d4af37;
    border-color: #d4af37;
}
.btn-outline-primary:hover {
    background: rgba(212, 175, 55, 0.15);
    color: #e8d48b;
    border-color: #d4af37;
}
.btn-outline-light {
    color: rgba(250, 245, 239, 0.7);
    border-color: rgba(212, 175, 55, 0.3);
}
.btn-outline-light:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #faf5ef;
    border-color: rgba(212, 175, 55, 0.5);
}
.btn-outline-secondary {
    color: rgba(250, 245, 239, 0.6);
    border-color: rgba(212, 175, 55, 0.3);
}
.btn-outline-secondary:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #faf5ef;
    border-color: rgba(212, 175, 55, 0.5);
}
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* --- Alerts --- */
.alert-info {
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #e8d48b;
}
.alert-success {
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #e8d48b;
}
.alert-danger {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #f5a0a8;
}
.alert-secondary {
    background: rgba(250, 245, 239, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.15);
    color: rgba(250, 245, 239, 0.7);
}
.text-muted {
    color: rgba(250, 245, 239, 0.6) !important;
}

/* --- Badges --- */
.badge.bg-warning {
    background: rgba(212, 175, 55, 0.35) !important;
    color: #faf5ef !important;
}
.badge.bg-secondary {
    background: rgba(212, 175, 55, 0.2) !important;
    color: #e8d48b !important;
}

/* --- Horizontal Step Indicator --- */
.dp-step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    background: rgba(15, 27, 46, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 4px;
}
.dp-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    color: rgba(250, 245, 239, 0.35);
}
.dp-step-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(212, 175, 55, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    background: transparent;
}
.dp-step-label {
    font-size: 0.75rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}
.dp-step-connector {
    flex: 1;
    height: 2px;
    background: rgba(212, 175, 55, 0.15);
    margin: 0 8px;
    margin-bottom: 22px;
    transition: background 0.3s ease;
    min-width: 20px;
    max-width: 80px;
}
.dp-step.active {
    color: #d4af37;
}
.dp-step.active .dp-step-icon {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.15);
    color: #d4af37;
}
.dp-step.completed {
    color: #e8d48b;
}
.dp-step.completed .dp-step-icon {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.25);
    color: #d4af37;
}
.dp-step-connector.completed {
    background: #d4af37;
}

/* --- Concierge Button + Panel --- */
.dp-concierge-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid rgba(212, 175, 55, 0.5);
    background: rgba(15, 27, 46, 0.95);
    color: #d4af37;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.dp-concierge-btn:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: #d4af37;
    transform: scale(1.05);
}
.dp-concierge-panel {
    position: fixed;
    bottom: 88px;
    right: 24px;
    width: 300px;
    background: rgba(15, 27, 46, 0.95);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 4px;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.2s ease;
}
.dp-concierge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    font-family: 'Poiret One', sans-serif;
    font-size: 1.1rem;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.dp-concierge-close {
    background: none;
    border: none;
    color: rgba(250, 245, 239, 0.5);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.dp-concierge-close:hover {
    color: #faf5ef;
}
.dp-concierge-list {
    padding: 16px 16px 16px 32px;
    margin: 0;
    color: rgba(250, 245, 239, 0.7);
    font-size: 0.9rem;
    line-height: 1.8;
}
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Shared Response Text --- */
.response-text {
    color: rgba(250, 245, 239, 0.9);
    font-size: 0.95rem;
    line-height: 1.7;
    letter-spacing: 0.01em;
}
.response-text h2, .response-text h3, .response-text h4 {
    color: #faf5ef;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
}
.response-text h2 { font-size: 1.2rem; }
.response-text h3 { font-size: 1.1rem; }
.response-text h4 { font-size: 1rem; }
.response-text p { margin-bottom: 0.75rem; }
.response-text ul, .response-text ol {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
}
.response-text li { margin-bottom: 0.4rem; }
.response-text strong {
    color: #faf5ef;
    font-weight: 600;
}

/* --- Pre-formatted Text --- */
.pre-formatted {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: inherit;
    line-height: 1.7;
    font-size: 0.95rem;
    color: rgba(250, 245, 239, 0.9);
}
.pre-formatted h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #faf5ef;
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
}
.pre-formatted h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #faf5ef;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}
.pre-formatted p { margin-bottom: 0.75rem; }
.pre-formatted ul, .pre-formatted ol {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
}
.pre-formatted li { margin-bottom: 0.4rem; }
.pre-formatted strong {
    color: #faf5ef;
    font-weight: 600;
}

/* --- Expert Result Cards (Custom Accordion) --- */
.dp-expert-result {
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-left: 4px solid #d4af37;
    border-radius: 4px;
    margin-bottom: 12px;
    overflow: hidden;
    background: rgba(15, 27, 46, 0.6);
}
.dp-expert-result-specialist {
    border-left-color: var(--tier-specialist-color);
}
.dp-expert-result-eccentric {
    border-left-color: var(--tier-eccentric-color);
}
.dp-expert-result-custom {
    border-left-color: var(--tier-custom-color);
}

.dp-expert-result-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    transition: background 0.2s ease;
    background: rgba(212, 175, 55, 0.05);
}
.dp-expert-result-header:hover {
    background: rgba(212, 175, 55, 0.1);
}
.dp-expert-result-info {
    flex: 1;
}
.dp-expert-result-role {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #faf5ef;
}
.dp-expert-result-desc {
    font-size: 0.9em;
    color: rgba(250, 245, 239, 0.6);
    margin-bottom: 6px;
}
.dp-expert-result-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.dp-expert-result-chevron {
    color: rgba(212, 175, 55, 0.5);
    font-size: 0.9rem;
    transition: transform 0.3s ease;
    margin-left: 12px;
    flex-shrink: 0;
}
.dp-expanded .dp-expert-result-chevron {
    transform: rotate(180deg);
}

.dp-expert-result-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.dp-expanded .dp-expert-result-body {
    max-height: 5000px;
}
.dp-expert-result-content {
    padding: 20px;
    background: rgba(10, 15, 26, 0.5);
}
.dp-expert-result-content .pre-formatted {
    color: rgba(250, 245, 239, 0.9);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Legacy accordion styles (kept for any remaining Bootstrap usage) */
.accordion-item {
    background: rgba(15, 27, 46, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 4px !important;
    margin-bottom: 12px;
    overflow: hidden;
}
.accordion-body {
    padding: 20px;
    background: rgba(10, 15, 26, 0.5);
    color: #faf5ef;
}
.expert-full-response {
    padding: 0;
}
.expert-full-response .pre-formatted {
    color: rgba(250, 245, 239, 0.9);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --- Expert Summary (in accordion header) --- */
.expert-summary {
    width: 100%;
    text-align: left;
}
.expert-role-title {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 5px;
}
.expert-description-brief {
    font-size: 0.9em;
    opacity: 0.9;
    margin-bottom: 8px;
}
.expert-focus-areas .badge {
    font-size: 0.75em;
    margin-right: 4px;
}
.focus-area-tag {
    display: inline-block;
    background-color: rgba(212, 175, 55, 0.25);
    color: #e8d48b;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    margin-right: 5px;
    margin-bottom: 3px;
}

/* --- Expert Header (card-based results) --- */
.expert-header {
    background: rgba(212, 175, 55, 0.1);
    color: #faf5ef;
    padding: 15px;
}
.expert-role {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 5px;
    color: #faf5ef;
}
.expert-description {
    opacity: 0.8;
    font-size: 0.9em;
    color: rgba(250, 245, 239, 0.7);
}
.expert-response {
    padding: 20px;
    background: rgba(10, 15, 26, 0.5);
    color: #faf5ef;
}

/* --- Host Synthesis (closing remarks) --- */
.synthesis-preamble {
    text-align: center;
    margin-bottom: 24px;
    padding: 16px 0 8px;
}
.synthesis-ornament {
    color: rgba(212, 175, 55, 0.5);
    font-size: 1.6rem;
    margin-bottom: 10px;
    letter-spacing: 0.2em;
}
.synthesis-intro {
    font-family: 'Poiret One', 'Raleway', sans-serif;
    font-size: 1.1rem;
    color: rgba(212, 175, 55, 0.7);
    font-style: italic;
    letter-spacing: 0.02em;
}
.synthesis-section {
    background: rgba(10, 15, 26, 0.5);
    border-left: 3px solid rgba(212, 175, 55, 0.4);
    border-radius: 4px;
    padding: 20px 24px;
    margin-bottom: 16px;
}
.synthesis-section-title {
    font-family: 'Poiret One', 'Raleway', sans-serif;
    font-size: 1.1rem;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}
.synthesis-section-content {
    color: rgba(250, 245, 239, 0.9);
    font-size: 0.95rem;
    line-height: 1.7;
}
.synthesis-section-content p {
    margin-bottom: 0.75rem;
}
.synthesis-section-content strong {
    color: #faf5ef;
    font-weight: 600;
}

/* Legacy synthesis-content kept for any remaining usage */
.synthesis-content {
    background: rgba(212, 175, 55, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 4px;
    padding: 24px;
    margin-bottom: 24px;
}
.synthesis-content h2 {
    color: #e8d48b;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}
.synthesis-content .pre-formatted {
    color: rgba(250, 245, 239, 0.9);
    font-size: 0.95rem;
    line-height: 1.7;
}
.synthesis-content h3 {
    color: #faf5ef;
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* --- Follow-up Questions --- */
.follow-up-question {
    background: rgba(15, 27, 46, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
}
.follow-up-question label {
    font-weight: 600;
    color: rgba(250, 245, 239, 0.9);
    margin-bottom: 8px;
    display: block;
}
.follow-up-question textarea {
    background: rgba(15, 27, 46, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: #faf5ef;
    border-radius: 4px;
    resize: vertical;
}
.follow-up-question textarea:focus {
    background: rgba(15, 27, 46, 0.8);
    border-color: #d4af37;
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.2);
}

/* --- Expert Selection (Card-Based Tier Groups) --- */

/* Tier colors */
:root {
    --tier-regular-color: #d4af37;
    --tier-specialist-color: #0db5cb;
    --tier-eccentric-color: #d8934f;
    --tier-custom-color: #8B5CF6;
}

/* Tier groups */
.dp-tier-group {
    margin-bottom: 20px;
}
.dp-tier-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    user-select: none;
    transition: background 0.2s ease;
}
.dp-tier-header:hover {
    background: rgba(212, 175, 55, 0.05);
}
.dp-tier-label {
    font-family: 'Poiret One', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #d4af37;
}
.dp-tier-regular .dp-tier-label { color: var(--tier-regular-color); }
.dp-tier-specialist .dp-tier-label { color: var(--tier-specialist-color); }
.dp-tier-eccentric .dp-tier-label { color: var(--tier-eccentric-color); }
.dp-tier-custom .dp-tier-label { color: var(--tier-custom-color); }

.dp-tier-badge {
    font-size: 0.75rem;
    color: var(--tier-eccentric-color);
    background: rgba(216, 147, 79, 0.12);
    padding: 2px 10px;
    border-radius: 4px;
    border: 1px solid rgba(216, 147, 79, 0.25);
}
.dp-tier-chevron {
    margin-left: auto;
    font-size: 0.8rem;
    color: rgba(250, 245, 239, 0.4);
    transition: transform 0.2s ease;
}
.dp-tier-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    padding: 12px 0;
    transition: opacity 0.2s ease;
}
.dp-tier-cards.dp-tier-hidden {
    display: none;
}

/* Expert cards */
.dp-expert-card {
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 4px;
    background: rgba(15, 27, 46, 0.4);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}
.dp-expert-card:hover {
    border-color: rgba(212, 175, 55, 0.4);
    background: rgba(212, 175, 55, 0.05);
}
.dp-expert-card.selected {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.1);
}
.dp-tier-specialist .dp-expert-card.selected {
    border-color: var(--tier-specialist-color);
    background: rgba(13, 181, 203, 0.1);
}
.dp-tier-eccentric .dp-expert-card.selected {
    border-color: var(--tier-eccentric-color);
    background: rgba(216, 147, 79, 0.1);
}
.dp-tier-custom .dp-expert-card.selected {
    border-color: var(--tier-custom-color);
    background: rgba(139, 92, 246, 0.1);
}

.dp-expert-card-inner {
    padding: 14px;
}
.dp-expert-card-header {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}
.dp-expert-card-check {
    flex-shrink: 0;
    font-size: 1.1rem;
    color: rgba(250, 245, 239, 0.25);
    padding-top: 2px;
}
.dp-expert-card.selected .dp-expert-card-check {
    color: #d4af37;
}
.dp-tier-specialist .dp-expert-card.selected .dp-expert-card-check {
    color: var(--tier-specialist-color);
}
.dp-tier-eccentric .dp-expert-card.selected .dp-expert-card-check {
    color: var(--tier-eccentric-color);
}
.dp-tier-custom .dp-expert-card.selected .dp-expert-card-check {
    color: var(--tier-custom-color);
}
.dp-expert-card-role {
    font-weight: 600;
    color: #faf5ef;
    margin-bottom: 4px;
    font-size: 0.95rem;
}
.dp-expert-card-desc {
    font-size: 0.85rem;
    color: rgba(250, 245, 239, 0.55);
    line-height: 1.4;
}
.dp-expert-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 0 14px 12px 14px;
}
.dp-expert-tag {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 3px;
    background: rgba(212, 175, 55, 0.12);
    color: rgba(250, 245, 239, 0.6);
    letter-spacing: 0.02em;
}

/* Legacy form-check styles (kept for Bootstrap form elements) */
.form-check {
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 4px;
    padding: 15px;
    transition: all 0.2s ease;
    background: rgba(15, 27, 46, 0.4);
}

/* --- Custom Expert Form --- */
.custom-expert-form {
    background: rgba(212, 175, 55, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 4px;
    padding: 20px;
    margin-top: 15px;
}
.custom-expert-form h6 {
    color: #e8d48b;
    margin-bottom: 15px;
}
.custom-expert-form .form-label {
    color: rgba(250, 245, 239, 0.7);
    font-size: 0.9rem;
    margin-bottom: 5px;
}
.custom-expert-form .form-control {
    background: rgba(10, 15, 26, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: #faf5ef;
    border-radius: 4px;
}
.custom-expert-form .form-control:focus {
    background: rgba(10, 15, 26, 0.7);
    border-color: #d4af37;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
    color: #faf5ef;
}
.custom-expert-form .form-control::placeholder {
    color: rgba(250, 245, 239, 0.3);
}

/* --- Art Deco Toasts --- */
#dp-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 400px;
}
.dp-toast {
    background: rgba(15, 27, 46, 0.95);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 4px;
    overflow: hidden;
    animation: dp-toast-in 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.dp-toast-exit {
    animation: dp-toast-out 0.3s ease forwards;
}
.dp-toast-content {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    color: #faf5ef;
    font-size: 0.9rem;
}
.dp-toast-icon {
    color: #d4af37;
    margin-top: 2px;
    flex-shrink: 0;
}
.dp-toast-error .dp-toast-icon,
.dp-toast-danger .dp-toast-icon {
    color: #dc3545;
}
.dp-toast-error,
.dp-toast-danger {
    border-color: rgba(220, 53, 69, 0.4);
}
.dp-toast-success .dp-toast-icon {
    color: #d4af37;
}
.dp-toast-message {
    flex: 1;
    line-height: 1.4;
}
.dp-toast-close {
    background: none;
    border: none;
    color: rgba(250, 245, 239, 0.4);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}
.dp-toast-close:hover {
    color: #faf5ef;
}
.dp-toast-progress {
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #b5a642);
    animation: dp-toast-shrink 5s linear forwards;
}
.dp-toast-error .dp-toast-progress,
.dp-toast-danger .dp-toast-progress {
    background: linear-gradient(90deg, #dc3545, #b02a37);
}
@keyframes dp-toast-in {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes dp-toast-out {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(40px); }
}
@keyframes dp-toast-shrink {
    from { width: 100%; }
    to { width: 0%; }
}

/* --- Loading Overlay --- */
.dp-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 26, 0.92);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.dp-loading-content {
    max-width: 600px;
    width: 90%;
    padding: 40px 20px;
}

/* Sunburst Spinner */
.dp-sunburst-spinner {
    width: 80px;
    height: 80px;
    position: relative;
    margin: 0 auto;
    animation: dp-sunburst-rotate 8s linear infinite;
}
.dp-sunburst-ray {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3px;
    height: 32px;
    margin-left: -1.5px;
    margin-top: -32px;
    background: linear-gradient(to top, transparent, #d4af37);
    border-radius: 2px;
    transform-origin: 50% 100%;
    opacity: 0.3;
    animation: dp-ray-pulse 1.5s ease-in-out infinite;
}
.dp-sunburst-ray:nth-child(1)  { transform: rotate(0deg); animation-delay: 0s; }
.dp-sunburst-ray:nth-child(2)  { transform: rotate(30deg); animation-delay: 0.125s; }
.dp-sunburst-ray:nth-child(3)  { transform: rotate(60deg); animation-delay: 0.25s; }
.dp-sunburst-ray:nth-child(4)  { transform: rotate(90deg); animation-delay: 0.375s; }
.dp-sunburst-ray:nth-child(5)  { transform: rotate(120deg); animation-delay: 0.5s; }
.dp-sunburst-ray:nth-child(6)  { transform: rotate(150deg); animation-delay: 0.625s; }
.dp-sunburst-ray:nth-child(7)  { transform: rotate(180deg); animation-delay: 0.75s; }
.dp-sunburst-ray:nth-child(8)  { transform: rotate(210deg); animation-delay: 0.875s; }
.dp-sunburst-ray:nth-child(9)  { transform: rotate(240deg); animation-delay: 1s; }
.dp-sunburst-ray:nth-child(10) { transform: rotate(270deg); animation-delay: 1.125s; }
.dp-sunburst-ray:nth-child(11) { transform: rotate(300deg); animation-delay: 1.25s; }
.dp-sunburst-ray:nth-child(12) { transform: rotate(330deg); animation-delay: 1.375s; }

@keyframes dp-sunburst-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes dp-ray-pulse {
    0%, 100% { opacity: 0.2; height: 28px; }
    50% { opacity: 0.9; height: 34px; }
}

.dp-progress-list {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}
.progress-messages-list {
    max-height: 200px;
    overflow-y: auto;
    background: rgba(10, 15, 26, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 4px;
    padding: 10px;
}
/* Enhanced progress rows */
.dp-progress-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 6px;
    border-radius: 4px;
    border-left: 3px solid rgba(212, 175, 55, 0.3);
    background: rgba(212, 175, 55, 0.03);
    transition: all 0.3s ease;
    animation: slideIn 0.3s ease;
}
.dp-progress-row:last-child {
    margin-bottom: 0;
}
.dp-progress-active {
    border-left-color: #d4af37;
    background: rgba(212, 175, 55, 0.06);
}
.dp-progress-done {
    border-left-color: rgba(212, 175, 55, 0.5);
    opacity: 0.7;
}
.dp-progress-icon {
    flex-shrink: 0;
    width: 20px;
    text-align: center;
    padding-top: 1px;
}
.dp-progress-icon i {
    color: #d4af37;
}
.dp-progress-done .dp-progress-icon i {
    color: rgba(212, 175, 55, 0.6);
}
.dp-progress-text {
    color: rgba(250, 245, 239, 0.85);
    font-size: 0.9rem;
    line-height: 1.4;
}
.dp-progress-done .dp-progress-text {
    color: rgba(250, 245, 239, 0.6);
}

/* Legacy .progress-message kept as fallback */
.progress-message {
    color: rgba(250, 245, 239, 0.9);
    font-size: 0.9em;
    margin-bottom: 8px;
    padding: 5px 8px;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 4px;
    border-left: 3px solid #d4af37;
    animation: slideIn 0.3s ease;
}
.progress-message:last-child {
    margin-bottom: 0;
}
.progress-message i {
    color: #d4af37;
}

/* --- Expert Chat --- */
.expert-chat-window {
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 4px;
    background: rgba(15, 27, 46, 0.6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.chat-header {
    background: rgba(212, 175, 55, 0.08);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 4px 4px 0 0;
    color: #faf5ef;
}
.chat-messages {
    max-height: 300px;
    overflow-y: auto;
    padding: 1rem;
    background: rgba(10, 15, 26, 0.4);
}
.chat-message {
    margin-bottom: 1rem;
    animation: fadeIn 0.3s ease-out;
}
.user-message {
    text-align: right;
}
.expert-message {
    text-align: left;
}
.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}
.user-message .message-header {
    justify-content: flex-end;
}
.expert-message .message-header {
    justify-content: flex-start;
}
.sender-name {
    font-weight: 600;
}
.user-message .sender-name {
    color: #d4af37;
}
.expert-message .sender-name {
    color: #e8d48b;
}
.message-time {
    color: rgba(250, 245, 239, 0.4);
    font-size: 0.75rem;
}
.message-content {
    padding: 0.75rem;
    border-radius: 4px;
    display: inline-block;
    max-width: 80%;
    word-wrap: break-word;
}
.user-message .message-content {
    background: linear-gradient(135deg, #d4af37, #b5a642);
    color: #0f1b2e;
    border-bottom-right-radius: 2px;
}
.expert-message .message-content {
    background: rgba(250, 245, 239, 0.08);
    color: #faf5ef;
    border-bottom-left-radius: 2px;
}
.chat-input-area {
    padding: 1rem;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    background: rgba(15, 27, 46, 0.5);
    border-radius: 0 0 4px 4px;
}
.chat-input {
    resize: none;
    border-radius: 4px;
    background: rgba(15, 27, 46, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: #faf5ef;
}
.chat-input:focus {
    background: rgba(15, 27, 46, 0.8);
    border-color: #d4af37;
    color: #faf5ef;
}
.chat-welcome-message {
    color: rgba(250, 245, 239, 0.5) !important;
    font-style: italic;
}
/* Blinking cursor while expert is streaming */
.message-content.streaming::after {
    content: '\25CB';
    color: #d4af37;
    margin-left: 2px;
    animation: cursor-blink 1s step-end infinite;
}
@keyframes cursor-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .message-content.streaming::after { animation: none; opacity: 1; }
}

.expert-actions {
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    padding-top: 1rem;
}

/* --- Status Indicators --- */
.success-indicator {
    color: #e8d48b;
}
.error-indicator {
    color: #dc3545;
}
.warning-indicator {
    color: #ffc107;
}

/* --- Misc --- */
ol.small {
    color: rgba(250, 245, 239, 0.7);
}
.text-monospace {
    font-family: 'Courier New', Courier, monospace;
}

/* --- Intro Cards --- */
.dp-intro-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #0a0f1a 0%, #0f1b2e 50%, #111d2b 100%);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.dp-intro-card-container {
    position: relative;
    width: 100%;
    max-width: 520px;
}
.dp-intro-card {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.dp-intro-card.dp-intro-active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}
.dp-intro-card-content {
    background: rgba(15, 27, 46, 0.9);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 4px;
    padding: 40px 36px;
    text-align: center;
}
.dp-intro-ornament {
    color: #d4af37;
    font-size: 1.5rem;
    margin-bottom: 16px;
    opacity: 0.6;
}
.dp-intro-title {
    font-family: 'Poiret One', sans-serif;
    font-size: 1.8rem;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}
.dp-intro-heading {
    font-family: 'Poiret One', sans-serif;
    font-size: 1.4rem;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}
.dp-intro-divider {
    width: 60px;
    height: 1px;
    background: rgba(212, 175, 55, 0.4);
    margin: 16px auto 20px;
}
.dp-intro-text {
    color: rgba(250, 245, 239, 0.85);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 8px;
}
.dp-intro-subtext {
    color: rgba(250, 245, 239, 0.5);
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 24px;
}
.dp-intro-btn {
    display: inline-block;
    background: linear-gradient(135deg, #d4af37, #b5a642);
    color: #0f1b2e;
    border: none;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.02em;
}
.dp-intro-btn:hover {
    background: linear-gradient(135deg, #e0bf4a, #c4b44e);
    transform: translateY(-1px);
}
.dp-intro-btn-begin {
    font-size: 1.05rem;
    padding: 14px 32px;
}
.dp-intro-skip {
    display: block;
    margin: 16px auto 0;
    background: none;
    border: none;
    color: rgba(250, 245, 239, 0.35);
    font-size: 0.8rem;
    cursor: pointer;
    transition: color 0.2s ease;
}
.dp-intro-skip:hover {
    color: rgba(250, 245, 239, 0.6);
}

/* Intro Steps */
.dp-intro-steps {
    text-align: left;
    margin: 20px 0 24px;
}
.dp-intro-step {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    color: rgba(250, 245, 239, 0.8);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.08);
}
.dp-intro-step:last-child {
    border-bottom: none;
}
.dp-intro-step-num {
    font-family: 'Poiret One', sans-serif;
    color: #d4af37;
    font-size: 1.1rem;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}

/* Intro Tiers */
.dp-intro-tiers {
    text-align: left;
    margin: 20px 0 24px;
}
.dp-intro-tier {
    padding: 14px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.08);
}
.dp-intro-tier:last-child {
    border-bottom: none;
}
.dp-intro-tier-name {
    font-family: 'Poiret One', sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}
.dp-intro-tier-desc {
    color: rgba(250, 245, 239, 0.55);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Intro Input */
.dp-intro-input-wrap {
    margin: 20px 0 24px;
}
.dp-intro-input {
    width: 100%;
    background: rgba(15, 27, 46, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 4px;
    color: #faf5ef;
    padding: 12px 14px;
    font-size: 1rem;
    font-family: 'Raleway', sans-serif;
    resize: vertical;
}
.dp-intro-input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}
.dp-intro-input::placeholder {
    color: rgba(250, 245, 239, 0.35);
}

/* Progress Dots */
.dp-intro-dots {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}
.dp-intro-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}
.dp-intro-dot-active {
    background: #d4af37;
    transform: scale(1.3);
}

/* --- Animations --- */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(15, 27, 46, 0.5);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.4);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.6);
}
.progress-messages-list::-webkit-scrollbar {
    width: 6px;
}
.progress-messages-list::-webkit-scrollbar-track {
    background: rgba(15, 27, 46, 0.5);
    border-radius: 3px;
}
.progress-messages-list::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.4);
    border-radius: 3px;
}
.progress-messages-list::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.6);
}

/* --- Chat Fullscreen (mobile) --- */
.dp-chat-fullscreen {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2500;
    margin: 0 !important;
    border-radius: 0 !important;
    display: flex !important;
    flex-direction: column;
    background: #0a0f1a;
}
.dp-chat-fullscreen .chat-header {
    border-radius: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.dp-chat-fullscreen .chat-messages {
    flex: 1;
    max-height: none;
}
.dp-chat-fullscreen .chat-input-area {
    border-radius: 0;
}
.dp-chat-fs-close {
    background: none;
    border: none;
    color: rgba(250, 245, 239, 0.6);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 8px;
}
.dp-chat-fs-close:hover {
    color: #faf5ef;
}

/* --- Responsive: Mobile --- */
@media (max-width: 768px) {
    .app-title {
        font-size: 1.5rem;
        letter-spacing: 0.04em;
    }
    .app-subtitle {
        font-size: 0.75rem;
    }

    /* Step indicator: icons only */
    .dp-step-label {
        display: none;
    }
    .dp-step-indicator {
        padding: 10px 12px;
    }
    .dp-step-icon {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }
    .dp-step-connector {
        margin-bottom: 0;
        min-width: 12px;
    }

    /* Expert cards: single column */
    .dp-tier-cards {
        grid-template-columns: 1fr;
    }

    /* Touch targets: min 48px */
    .dp-expert-card {
        min-height: 48px;
    }
    .dp-expert-result-header {
        padding: 14px 16px;
        min-height: 48px;
    }
    .btn {
        min-height: 44px;
    }

    /* Concierge panel full-width */
    .dp-concierge-panel {
        right: 8px;
        left: 8px;
        width: auto;
        max-width: none;
    }

    /* Loading overlay spacing */
    .dp-loading-content {
        padding: 24px 16px;
    }
    .dp-sunburst-spinner {
        width: 60px;
        height: 60px;
    }
    .dp-sunburst-ray {
        height: 24px;
        margin-top: -24px;
    }

    /* Intro cards: tighter padding */
    .dp-intro-card-content {
        padding: 28px 24px;
    }
    .dp-intro-title {
        font-size: 1.4rem;
    }
    .dp-intro-heading {
        font-size: 1.2rem;
    }

    /* Limit box-shadow on mobile */
    .card {
        box-shadow: none;
    }
    .dp-concierge-panel {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }

    /* Container padding */
    .container-fluid {
        padding: 10px;
    }

    /* Toasts full width */
    #dp-toast-container {
        right: 8px;
        left: 8px;
        max-width: none;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.2s !important;
    }
    .dp-sunburst-spinner {
        animation: none;
    }
    .dp-sunburst-ray {
        animation: none;
        opacity: 0.5;
    }
    .dp-intro-card {
        transition: opacity 0.2s ease;
    }
    .dp-toast {
        animation: none;
        opacity: 1;
    }
    .dp-toast-exit {
        animation: none;
        opacity: 0;
    }
    .fade-in {
        animation: none;
        opacity: 1;
    }
    /* Disable shimmer sweep */
    .btn-success::after,
    .btn-primary::after,
    .dp-intro-btn::after {
        display: none;
    }
}
