:root {
    --auralu-gold: #F4C2A1;
    --auralu-purple: #B19CD9;
    --auralu-rose: #E8B4CB;
    --auralu-cream: #FAF8F5;
    --auralu-dark: #2C2C2C;
    --auralu-light-gray: #F8F9FA;

    --header-height: 60px;
    --footer-height: 60px;
    --text-entry-height: 220px;
    --panel-width-desktop: 50vw;
    --panel-width-mobile: 100vw;
    --primary-bg: #ffffff;
    --secondary-bg: #f8f9fa;
    --text-color: #212529;
    --border-color: #dee2e6;
}

/* Light theme variables */
[data-bs-theme="light"] {
    --chat-bg: #FEFEFE;
    --chat-surface: var(--auralu-cream);
    --chat-surface-variant: #F8F9FA;
    --chat-border: rgba(0, 0, 0, 0.1);
    --chat-text: #2C2C2C;
    --chat-text-muted: #666;
    --companion-bubble: #FFFFFF;
    --companion-bubble-border: rgba(0, 0, 0, 0.05);
    --user-bubble: linear-gradient(135deg, var(--auralu-gold) 0%, var(--auralu-rose) 100%);
    --header-bg: rgba(255, 255, 255, 0.95);
    --input-bg: rgba(255, 255, 255, 0.95);
    --sidebar-bg: #FFFFFF;
    --sidebar-header-bg: linear-gradient(135deg, var(--auralu-cream) 0%, #FFFFFF 100%);
}

/* Dark theme variables */
[data-bs-theme="dark"] {
    --chat-bg: #0D1117;
    --chat-surface: #161B22;
    --chat-surface-variant: #21262D;
    --chat-border: rgba(255, 255, 255, 0.1);
    --chat-text: #E6EDF3;
    --chat-text-muted: #8D96A0;
    --companion-bubble: #21262D;
    --companion-bubble-border: rgba(255, 255, 255, 0.1);
    --user-bubble: linear-gradient(135deg, var(--auralu-gold) 0%, var(--auralu-rose) 100%);
    --header-bg: rgba(22, 27, 34, 0.95);
    --input-bg: rgba(22, 27, 34, 0.95);
    --sidebar-bg: #161B22;
    --sidebar-header-bg: linear-gradient(135deg, #21262D 0%, #161B22 100%);

    --primary-bg: #212529;
    --secondary-bg: #343a40;
    --text-color: #f8f9fa;
    --border-color: #495057;
}

/* Base Body Styles */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--auralu-dark);
    background: linear-gradient(135deg, var(--auralu-cream) 0%, #FFFFFF 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    margin: 0;
    padding-top: 60px;
    display: flex; 
    flex-direction: column;
    transition: background-color 0.3s ease, color 0.3s ease;
}


/* Fixed Header */
.header-app {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--secondary-bg);
    border-bottom: 1px solid var(--border-color);
    z-index: 1030; /* Bootstrap navbar z-index */
    display: flex;
    align-items: center;
    padding: 0 1rem;
}

/* Fixed Footer */
.footer-app {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--footer-height);
    background-color: var(--secondary-bg);
    border-top: 1px solid var(--border-color);
    color: var(--auralu-dark);
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}



/* Global Gradient Class */
.auralu-gradient {
    background: linear-gradient(135deg, var(--auralu-gold) 0%, var(--auralu-rose) 50%, var(--auralu-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auralu-font {
    font-family: 'Dancing Script', cursive; 
    font-size: 2rem;
}

/* Background Elements (General) */
.bg-element {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    z-index: 1;
    pointer-events: none;
}

.bg-element-1 {
    width: 300px; /* Adjusted from forge.css 400px to avoid overlap, keeping auth.css smaller size */
    height: 300px; /* Adjusted from forge.css 400px */
    background: linear-gradient(135deg, var(--auralu-gold) 0%, var(--auralu-rose) 100%);
    top: -150px; /* Adjusted from forge.css -200px */
    right: -150px; /* Adjusted from forge.css -200px */
    animation: float 8s ease-in-out infinite; /* Kept auth.css animation speed */
}

.bg-element-2 {
    width: 200px; /* Adjusted from forge.css 300px */
    height: 200px; /* Adjusted from forge.css 300px */
    background: linear-gradient(135deg, var(--auralu-purple) 0%, var(--auralu-rose) 100%);
    bottom: -100px; /* Adjusted from forge.css -150px */
    left: -100px; /* Adjusted from forge.css -150px */
    animation: float 10s ease-in-out infinite reverse; /* Kept auth.css animation speed */
}

.bg-element-3 {
    width: 150px; /* Adjusted from forge.css 200px */
    height: 150px; /* Adjusted from forge.css 200px */
    background: linear-gradient(135deg, var(--auralu-rose) 0%, var(--auralu-purple) 100%);
    top: 30%; /* Adjusted from forge.css 40% */
    left: 10%; /* Adjusted from forge.css 5% */
    animation: float 12s ease-in-out infinite; /* Kept auth.css animation speed */
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); } /* Auth.css's smaller translateY */
}

/* General Buttons */
.btn-auralu {
    background: linear-gradient(135deg, var(--auralu-gold) 0%, var(--auralu-purple) 100%);
    border: none;
    color: white;
    padding: 14px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 16px;
    width: 100%;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    text-decoration: none; /* Added for consistency with links */
    display: inline-block; /* Added for consistency with links */
}

.btn-auralu:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(244, 194, 161, 0.4);
    color: white;
}

.btn-auralu:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none; /* Ensure no shadow when disabled */
}

/* Logo Text (General) */
.logo-text {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem; /* Default from auth.css, adjusted in specific contexts */
    font-weight: 600;
    text-decoration: none; /* Ensure it behaves as a link */
}

/* Hero Section (Global) */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--auralu-cream) 0%, #FFFFFF 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(244, 194, 161, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 120px 0;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: #666;
    margin-bottom: 2rem;
}

/* Navbar */

.navbar-brand {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem !important;
    font-weight: 600;
}

/* Custom styles for the centered chat status text */
.chat-status-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--chat-text-muted);
    margin-left: auto; /* Push to center when flex-grow-1 is active */
    margin-right: auto; /* Push to center when flex-grow-1 is active */
    white-space: nowrap; /* Prevent wrapping for better centering */
}

.chat-status-text .companion-name {
    color: var(--chat-text);
    font-weight: 600;
}

/* Styles for mobile/collapsed menu chat status text */
.chat-status-text-mobile {
    font-size: 1rem;
    font-weight: 500;
    color: var(--chat-text); /* Use chat-text for better visibility in collapsed menu */
    padding-left: 1rem; /* Align with other nav links */
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    display: block; /* Ensure it takes full width in collapsed menu */
}
.chat-status-text-mobile .companion-name {
    color: var(--chat-text); /* Keep same color for companion name */
    font-weight: 600;
}

/* Section Titles & Subtitles */
.section-title {
    font-size: 3rem; /* Adjusted for larger, main titles */
    font-weight: 300;
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
}

/* Footer */
.footer {
    background: var(--auralu-dark);
    color: white;
    padding: 60px 0 30px;
}

/* --- Auth Page Styles --- */
.auth-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    display: flex; /* Added for body alignment */
    align-items: center; /* Added for body alignment */
    min-height: 100vh; /* Added for body alignment */
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Logo Area (Auth specific) */
.logo-container {
    text-align: center;
    margin-bottom: 40px;
}

.logo-placeholder {
    width: 120px;
    height: 60px;
    background: linear-gradient(135deg, var(--auralu-gold) 0%, var(--auralu-purple) 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-weight: 600;
    opacity: 0.8;
}

.logo-text.auth { /* Specific to auth page logo text */
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.logo-subtitle {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

/* Tab Navigation */
.auth-tabs {
    display: flex;
    background: var(--auralu-light-gray);
    border-radius: 15px;
    padding: 4px;
    margin-bottom: 30px;
    position: relative;
}

.tab-button {
    flex: 1;
    background: none;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.tab-button.active {
    color: white;
}

.tab-indicator {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: linear-gradient(135deg, var(--auralu-gold) 0%, var(--auralu-purple) 100%);
    border-radius: 12px;
    transition: transform 0.3s ease;
    z-index: 1;
}

.tab-indicator.register {
    transform: translateX(100%);
}

/* Form Styles */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

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

.form-group {
    margin-bottom: 20px;
}

.form-label {
    font-weight: 500;
    color: var(--auralu-dark);
    margin-bottom: 8px;
    display: block;
}

.form-control {
    border: 2px solid rgba(244, 194, 161, 0.3);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    width: 100%; /* Ensure full width */
}

.form-control:focus {
    border-color: var(--auralu-rose);
    box-shadow: 0 0 0 0.2rem rgba(232, 180, 203, 0.25);
    background: white;
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.form-control.is-valid {
    border-color: #28a745;
}

.password-toggle {
    cursor: pointer;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--auralu-rose);
}

/* Two Column Layout */
.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

/* Google Button */
.btn-google {
    background: white;
    border: 2px solid #ddd;
    color: #333;
    padding: 14px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 16px;
    width: 100%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-google:hover {
    border-color: #4285f4;
    background: #f8f9fa;
    color: #333;
    transform: translateY(-1px);
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: #666;
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ddd;
}

.divider span {
    padding: 0 15px;
    background: rgba(255, 255, 255, 0.95);
}

/* Checkbox */
.form-check {
    margin: 20px 0;
}

.form-check-input {
    border-radius: 4px;
    border: 2px solid rgba(244, 194, 161, 0.3);
}

.form-check-input:checked {
    background-color: var(--auralu-rose);
    border-color: var(--auralu-rose);
}

.form-check-label {
    font-size: 14px;
    color: #666;
}

.form-check-label a {
    color: var(--auralu-rose);
    text-decoration: none;
}

.form-check-label a:hover {
    text-decoration: underline;
}

/* Auth Links */
.auth-links {
    text-align: center;
    margin-top: 20px;
}

.auth-links a {
    color: var(--auralu-rose);
    text-decoration: none;
    font-size: 14px;
}

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

/* Validation Messages */
.invalid-feedback {
    display: block;
    font-size: 14px;
    color: #dc3545;
    margin-top: 5px;
}

.valid-feedback {
    display: block;
    font-size: 14px;
    color: #28a745;
    margin-top: 5px;
}

/* Loading States */
.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.hidden {
    display:none;
    visibility: hidden;
}

/* --- Chat Page Styles --- */
.main-content-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
/* Main content area, takes remaining vertical space */
/* Chat Feed Container */
#chat-feed-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    padding-bottom: var(--text-entry-height);
    overflow: hidden;
}
#chat-feed {
    max-width: 640px;
    width: 100%;
    background-color: var(--chat-bg); /* Use new variable */
    border-left: 1px solid var(--chat-border); /* Use new variable */
    border-right: 1px solid var(--chat-border); /* Use new variable */
    padding: 1rem;
    overflow-y: auto;
    scroll-behavior: smooth;
    height: calc(100vh - var(--header-height) - var(--footer-height) - var(--text-entry-height));
    margin-top: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
}

/* User Message Bubble */
#chat-feed .card.bg-primary.text-white {
    background: var(--user-bubble) !important; /* Use user-bubble variable */
    color: var(--chat-text) !important; /* Ensure text is readable on gradient */
    border: none;
}
#chat-feed .card.bg-primary.text-white small {
    color: rgba(255,255,255,0.7) !important; /* Keep muted text for user bubble */
}
/* Companion Message Bubble */
#chat-feed .card:not(.bg-primary) {
    background-color: var(--companion-bubble);
    border: 1px solid var(--companion-bubble-border);
}
#chat-feed .card:not(.bg-primary) small {
    color: var(--chat-text-muted);
}

/* Text Entry Container */
.text-entry-container {
    position: fixed;
    bottom: var(--footer-height);
    left: 0;
    width: 100%;
    background-color: var(--input-bg); /* Use new variable */
    border-top: 1px solid var(--chat-border); /* Use new variable */
    padding: 1rem;
    z-index: 1020;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#editorjs-container {
    width: 100%;
    max-width: 600px;
    background-color: var(--companion-bubble); /* Use companion bubble for editor surface */
    border-color: var(--chat-border) !important; /* Use new variable */
}

#editorjs-toolbar {
    border-color: var(--chat-border) !important; /* Use new variable */
}

#editorjs {
    min-height: 80px;
    padding: 0.5rem;
}

#send-btn {
    max-width: 600px;
}

/* Right-side panel buttons */
.panel-toggle-buttons {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 1040;
    padding-right: 0.5rem;
    transition: opacity 0.3s ease-in-out;
}

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

.panel-toggle-buttons .btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Slide-out Panels */
.slide-panel {
    position: fixed;
    top: var(--header-height);
    right: -100vw;
    width: var(--panel-width-mobile);
    height: calc(100vh - var(--header-height) - var(--footer-height));
    background-color: var(--sidebar-bg); /* Use new variable */
    border-left: 1px solid var(--chat-border); /* Use new variable */
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease-in-out;
    z-index: 1035;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    overflow-y: auto;
}

.slide-panel.show {
    right: 0;
}

.slide-panel .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--chat-border); /* Use new variable */
}

.slide-panel .panel-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--chat-text); /* Use new variable */
    cursor: pointer;
}

/* Responsive adjustments for panels */
@media (min-width: 768px) {
    .slide-panel {
        width: var(--panel-width-desktop);
    }
}

/* General button styling to use theme variables */
.btn-outline-secondary {
    color: var(--chat-text);
    border-color: var(--chat-border);
}
.btn-outline-secondary:hover {
    background-color: var(--chat-surface-variant);
    color: var(--chat-text);
}
.btn-primary {
    /* Keep Bootstrap primary blue or adjust if user-bubble is desired here too */
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}
.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Accordion specific styling to use theme variables */
.accordion-button {
    background-color: var(--chat-surface-variant); /* Example, could be chat-surface */
    color: var(--chat-text);
    border-radius: 0 !important;
}
.accordion-button:not(.collapsed) {
    background-color: var(--chat-surface); /* A slightly different shade when open */
    color: var(--chat-text);
    border-radius: 0 !important;
}
.accordion-body {
    background-color: var(--chat-surface); /* Example, could be chat-bg */
    color: var(--chat-text);
    border: 1px solid var(--chat-border);
    border-top: none;
    border-radius: 0 !important;
}
.accordion-item {
    border-color: var(--chat-border);
    border-radius: 0 !important;
}

/* Image Gallery Specific Styles */
#image-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 1rem;
}

.gallery-item {
    width: 100%;
    padding-top: 100%;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 0.25rem;
    background-color: var(--chat-surface-variant); /* Use new variable */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--chat-text); /* Use new variable */
    border: 1px solid var(--chat-border); /* Use new variable */
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease-in-out;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Loading Indicator */
.loading-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    font-size: 1.2rem;
    color: var(--chat-text); /* Use new variable */
}

.spinner-border {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.5rem;
    color: var(--chat-text); /* Spinner color can be themed too */
}

/* Fullscreen Modal Styles */
.fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    flex-direction: column;
}

.fullscreen-modal.show {
    opacity: 1;
    visibility: visible;
}

.fullscreen-modal .controls {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.fullscreen-modal .fullscreen-image-wrapper {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.fullscreen-modal img {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.fullscreen-modal .nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 2.5rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
}

.fullscreen-modal .nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.fullscreen-modal .close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.2s;
    z-index: 2001;
}

.fullscreen-modal .close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* General Chat Styling */
.chat-bubble
{
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 20px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.chat-bubble-user
{
    background-color: #0d6efd;
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 5px;
}

.chat-bubble-other
{
    background-color: #e9ecef;
    color: #212529;
    border-bottom-left-radius: 5px;
}

.chat-bubble .author
{
    font-weight: bold;
    font-size: 0.9em;
    margin-bottom: 5px;
}

/* Editor.js Custom Poem Block Styling */
.ce-block__content .cdx-block.poem-block
{
    font-style: italic;
    color: #555;
    /* Lighter than main text */
    padding-left: 20px;
    border-left: 3px solid #ced4da;
    /* Vertical rule */
    margin-left: 15px;
    /* Indentation */
}

/* Modal and Library Specifics */
#image-library .img-thumbnail,
#gif-results .gif-item
{
    cursor: pointer;
    transition: transform 0.2s;
}

#image-library .img-thumbnail:hover,
#gif-results .gif-item:hover
{
    transform: scale(1.05);
    border-color: #0d6efd;
}

.companion-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.companion-avatar-header {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--auralu-rose) 0%, var(--auralu-purple) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    position: relative;
}

.status-dot {
    width: 12px;
    height: 12px;
    background: #4CAF50;
    border-radius: 50%;
    position: absolute;
    bottom: -2px;
    right: -2px;
    border: 2px solid var(--chat-surface);
    transition: border-color 0.3s ease;
}

.companion-name {
    font-weight: 600;
    margin: 0;
    color: var(--chat-text);
}

.companion-status {
    font-size: 0.85rem;
    color: var(--chat-text-muted);
    margin: 0;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-toggle, .sidebar-toggle {
    background: none;
    border: none;
    color: var(--chat-text);
    font-size: 1.2rem;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover, .sidebar-toggle:hover {
    background: rgba(244, 194, 161, 0.1);
    color: var(--auralu-rose);
}

/* Chat Container */
.chat-container {
    display: flex;
    height: 100vh;
    padding-top: 80px;
}

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    transition: margin-right 0.3s ease;
}

.chat-main.sidebar-open {
    margin-right: 400px;
}

/* Messages Area */
.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 100px;
    display: flex;
    flex-direction: column-reverse; /* Puts newest messages at the bottom */
}

.messages-container::-webkit-scrollbar {
    width: 6px;
}

.messages-container::-webkit-scrollbar-track {
    background: transparent;
}

.messages-container::-webkit-scrollbar-thumb {
    background: var(--chat-text-muted);
    border-radius: 3px;
    opacity: 0.5;
}

.messages-container::-webkit-scrollbar-thumb:hover {
    background: var(--auralu-rose);
}

.message {
    display: flex;
    margin-bottom: 20px;
    animation: fadeInUp 0.3s ease;
}

.message.user {
    justify-content: flex-end;
}

.message.companion {
    justify-content: flex-start;
}

.message-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin: 0 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
}

.companion-avatar {
    background: linear-gradient(135deg, var(--auralu-rose) 0%, var(--auralu-purple) 100%);
}

.user-avatar {
    background: linear-gradient(135deg, var(--auralu-gold) 0%, var(--auralu-rose) 100%);
}

.message-bubble {
    max-width: 70%;
    padding: 16px 20px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.message.user .message-bubble {
    background: var(--user-bubble);
    color: white;
    border-bottom-right-radius: 5px;
}

.message.companion .message-bubble {
    background: var(--companion-bubble);
    border: 1px solid var(--companion-bubble-border);
    border-bottom-left-radius: 5px;
    color: var(--chat-text);
}

/* Light mode specific message bubble adjustment */
[data-bs-theme="light"] .message-bubble {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Dark mode specific message bubble adjustment */
[data-bs-theme="dark"] .message-bubble {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.message-time {
    font-size: 0.75rem;
    opacity: 0.6;
    margin-top: 8px;
}

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

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

/* Input Area */
.chat-input-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--input-bg);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--chat-border);
    padding: 20px;
    transition: right 0.3s ease, background-color 0.3s ease;
}

.chat-input-container.sidebar-open {
    right: 400px;
}

.message-input {
    border: 2px solid rgba(244, 194, 161, 0.3);
    border-radius: 25px;
    padding: 15px 20px;
    font-size: 16px;
    background: var(--chat-surface);
    color: var(--chat-text);
    transition: all 0.3s ease;
    width: 100%; /* Ensure input fills container */
}

.message-input:focus {
    border-color: var(--auralu-rose);
    box-shadow: 0 0 0 0.2rem rgba(232, 180, 203, 0.25);
    background: var(--chat-surface);
    color: var(--chat-text);
}

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

.send-btn {
    background: linear-gradient(135deg, var(--auralu-gold) 0%, var(--auralu-purple) 100%);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(244, 194, 161, 0.4);
}

/* Sidebar */
.companion-sidebar {
    position: fixed;
    top: 80px;
    right: -400px;
    width: 400px;
    height: calc(100vh - 80px);
    background: var(--sidebar-bg);
    border-left: 1px solid var(--chat-border);
    transition: right 0.3s ease, background-color 0.3s ease;
    overflow-y: auto;
    z-index: 999;
}

.companion-sidebar.open {
    right: 0;
}

.companion-sidebar::-webkit-scrollbar {
    width: 6px;
}

.companion-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.companion-sidebar::-webkit-scrollbar-thumb {
    background: var(--chat-text-muted);
    border-radius: 3px;
    opacity: 0.5;
}

.sidebar-header {
    padding: 30px;
    text-align: center;
    background: var(--sidebar-header-bg);
    transition: background 0.3s ease;
}

.sidebar-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--auralu-rose) 0%, var(--auralu-purple) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(232, 180, 203, 0.3);
}

.sidebar-content {
    padding: 0 30px 30px;
}

.info-section {
    margin-bottom: 30px;
}

.info-section h5 {
    color: var(--chat-text);
    margin-bottom: 15px;
    font-weight: 600;
}

.info-section p {
    color: var(--chat-text-muted);
}

.personality-tag {
    background: rgba(244, 194, 161, 0.15);
    border: 1px solid rgba(244, 194, 161, 0.3);
    border-radius: 20px;
    padding: 6px 14px;
    margin: 5px 5px 5px 0;
    display: inline-block;
    font-size: 0.85rem;
    color: var(--chat-text);
    transition: background-color 0.3s ease;
}

.activity-current {
    background: rgba(244, 194, 161, 0.15);
    border: 1px solid rgba(244, 194, 161, 0.3);
    border-radius: 10px;
    padding: 15px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--chat-border);
    transition: border-color 0.3s ease;
}

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

.activity-time {
    font-size: 0.8rem;
    color: var(--chat-text-muted);
    width: 60px;
    flex-shrink: 0;
}

.activity-desc {
    flex: 1;
    font-size: 0.9rem;
    color: var(--chat-text);
}

.gallery-btn {
    background: linear-gradient(135deg, var(--auralu-gold) 0%, var(--auralu-purple) 100%);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    width: 100%;
    font-weight: 500;
    transition: all 0.3s ease;
}

.gallery-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 194, 161, 0.4);
    color: white;
}



.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    color: var(--chat-text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--auralu-rose);
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 20px;
}

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

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

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

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Quirk Bubble (from global.css, assuming it's for chat) */
.quirk-bubble {
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.quirk-bubble:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.quirk-bubble:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* Image Container (from global.css, assuming for chat) */
.img-container {
  max-height: 70vh;
  width: 100%;
  text-align: center;
}

/* --- Content Page Specific Styles --- */
.content-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--auralu-cream) 0%, #FFFFFF 100%);
}

.content-hero {
    background: linear-gradient(135deg, var(--auralu-cream) 0%, #FFFFFF 100%);
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
}

.content-hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -20%;
    width: 50%;
    height: 120%;
    background: radial-gradient(circle, rgba(244, 194, 161, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.content-hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
}

.content-logo {
    margin-bottom: 30px;
}

.logo-placeholder.content { /* Specific to content page logo placeholder */
    width: 80px;
    height: 40px;
    background: linear-gradient(135deg, var(--auralu-gold) 0%, var(--auralu-purple) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    opacity: 0.9;
}

.content-title {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 20px;
    line-height: 1.2;
}

.content-subtitle {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.content-meta {
    margin-top: 30px;
}

/* Content Body */
.content-body {
    padding: 60px 0;
}

.content-container {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 40px;
}

.content-section {
    margin-bottom: 40px;
}

.content-section:last-child {
    margin-bottom: 0;
}

/* Typography (Content specific) */
.content-container h1 {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--auralu-dark);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(244, 194, 161, 0.3);
}

.content-container h2 {
    font-size: 2rem;
    font-weight: 400;
    color: var(--auralu-dark);
    margin: 40px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(244, 194, 161, 0.2);
}

.content-container h2:first-child {
    margin-top: 0;
}

.content-container h3 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--auralu-dark);
    margin: 30px 0 15px 0;
}

.content-container h4 {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--auralu-dark);
    margin: 25px 0 15px 0;
}

.content-container p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--auralu-dark);
    margin-bottom: 20px;
}

.content-container ul,
.content-container ol {
    margin: 20px 0;
    padding-left: 30px;
}

.content-container li {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 8px;
    color: var(--auralu-dark);
}

.content-container a {
    color: var(--auralu-rose);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.content-container a:hover {
    color: var(--auralu-purple);
    border-bottom-color: var(--auralu-purple);
}

/* Quote Styling */
.content-quote {
    background: rgba(244, 194, 161, 0.1);
    border-left: 4px solid var(--auralu-rose);
    border-radius: 0 10px 10px 0;
    padding: 25px 30px;
    margin: 30px 0;
    font-style: italic;
}

.content-quote p {
    margin: 0;
    font-size: 1.2rem;
    color: var(--auralu-dark);
}

/* Actions (Content specific) */
.content-actions {
    padding: 30px 0;
    border-top: 1px solid rgba(244, 194, 161, 0.2);
    margin-top: 40px;
}

.content-actions-right {
    display: flex;
    gap: 10px;
}

/* Related Links */
.content-related {
    background: var(--auralu-light-gray);
    padding: 60px 0;
}

.related-links h4 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--auralu-dark);
}

.related-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 20px;
    background: white;
    border-radius: 15px;
    text-decoration: none;
    color: var(--auralu-dark);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.related-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(244, 194, 161, 0.2);
    color: var(--auralu-rose);
}

.related-link i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--auralu-rose);
}

.related-link span {
    font-weight: 500;
    text-align: center;
}

/* Contact Section (Content specific) */
.content-contact {
    padding: 60px 0;
}

.contact-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(244, 194, 161, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.contact-content h4 {
    margin-bottom: 10px;
    color: var(--auralu-dark);
}

.contact-content p {
    margin: 0;
    color: #666;
}

/* --- Forge Page Styles --- */
.forge-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.logo-text.forge { /* Specific to forge header */
    font-size: 2rem;
}

/* Progress Bar */
.progress-container {
    max-width: 600px;
    margin: 0 auto;
}

.progress {
    height: 8px;
    border-radius: 20px;
    background: rgba(244, 194, 161, 0.2);
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(135deg, var(--auralu-gold) 0%, var(--auralu-purple) 100%);
    border-radius: 20px;
    transition: width 0.6s ease;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    text-align: center;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
}

/* Main Container (Forge specific) */
.forge-container {
    position: relative;
    z-index: 10;
    padding-top: 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Question Cards */
.question-step {
    display: none;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

.question-step.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.question-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.question-number {
    color: var(--auralu-rose);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.question-title {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 20px;
    line-height: 1.2;
}

.question-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.5;
}

/* Choice Options */
.choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.choice-option {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(244, 194, 161, 0.3);
    border-radius: 16px;
    padding: 30px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.choice-option:hover {
    border-color: var(--auralu-rose);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(232, 180, 203, 0.2);
}

.choice-option.selected {
    border-color: var(--auralu-rose);
    background: rgba(232, 180, 203, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(232, 180, 203, 0.3);
}

.choice-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(232, 180, 203, 0.1), transparent);
    transition: left 0.5s ease;
}

.choice-option:hover::before {
    left: 100%;
}

.choice-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.choice-label {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.choice-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

/* Gender/Age specific styling */
.demographic-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.demographic-section h4 {
    margin-bottom: 20px;
    color: var(--auralu-dark);
    font-weight: 500;
}

.gender-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.gender-option {
    flex: 1;
    min-width: 120px;
    padding: 20px 15px;
    border: 2px solid rgba(244, 194, 161, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.gender-option:hover,
.gender-option.selected {
    border-color: var(--auralu-rose);
    background: rgba(232, 180, 203, 0.1);
}

.age-range-slider {
    margin: 20px 0;
}

.age-display {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--auralu-rose);
    margin-bottom: 15px;
}

.range-slider {
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: rgba(244, 194, 161, 0.3);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--auralu-gold) 0%, var(--auralu-purple) 100%);
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(232, 180, 203, 0.3);
}

.range-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--auralu-gold) 0%, var(--auralu-purple) 100%);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 10px rgba(232, 180, 203, 0.3);
}

/* Navigation Buttons */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
}

.btn-back {
    background: none;
    border: 2px solid rgba(244, 194, 161, 0.3);
    color: var(--auralu-dark);
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-back:hover {
    border-color: var(--auralu-rose);
    background: rgba(232, 180, 203, 0.1);
    color: var(--auralu-dark);
}

.btn-next {
    background: linear-gradient(135deg, var(--auralu-gold) 0%, var(--auralu-purple) 100%);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(244, 194, 161, 0.4);
    color: white;
}

.btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Final Step */
.final-step {
    text-align: center;
    padding: 60px 50px;
}

.final-step .question-title {
    font-size: 3rem;
    margin-bottom: 30px;
}

.final-step .question-subtitle {
    font-size: 1.3rem;
    margin-bottom: 50px;
}

.connection-preview {
    background: rgba(244, 194, 161, 0.1);
    border-radius: 20px;
    padding: 40px;
    margin: 40px 0;
    border: 1px solid rgba(244, 194, 161, 0.3);
}

.connection-preview h4 {
    color: var(--auralu-dark);
    margin-bottom: 20px;
}

.personality-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.personality-tag.preview { /* Specific for final step preview */
    background: rgba(232, 180, 203, 0.2);
    border: 1px solid rgba(232, 180, 203, 0.4);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.9rem;
    color: var(--auralu-dark);
}

.btn-forge {
    background: linear-gradient(135deg, var(--auralu-gold) 0%, var(--auralu-purple) 100%);
    border: none;
    color: white;
    padding: 18px 40px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-forge:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(244, 194, 161, 0.4);
    color: white;
}

/* --- Features Section (from global.css, potentially used on a 'features' page) --- */
.section-padding {
    padding: 100px 0;
}

.feature-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--auralu-gold) 0%, var(--auralu-purple) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
}

/* Specific Feature Icons (from global.css) */
.icon-personality {
    background: linear-gradient(135deg, var(--auralu-gold) 0%, #F7D794 100%);
}

.icon-matching {
    background: linear-gradient(135deg, var(--auralu-rose) 0%, #FFA7CA 100%);
}

.icon-heartbeat {
    background: linear-gradient(135deg, var(--auralu-purple) 0%, #D1C4E9 100%);
}

.icon-extension {
    background: linear-gradient(135deg, #87CEEB 0%, #B3E0FF 100%);
}

/* Testimonial Section */
.testimonial-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 40px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--auralu-rose);
}

.testimonial-quote {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.testimonial-author {
    font-weight: 600;
    color: var(--auralu-dark);
}

/* Call to Action Section */
.cta-section {
    background: linear-gradient(135deg, var(--auralu-light-gray) 0%, var(--auralu-cream) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -20%;
    width: 60%;
    height: 120%;
    background: radial-gradient(circle, rgba(177, 156, 217, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.floating-element {
    position: absolute;
    background: linear-gradient(135deg, var(--auralu-gold) 0%, var(--auralu-purple) 100%);
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    width: 100px;
    height: 100px;
    top: 20%;
    right: 10%;
    animation-delay: -2s;
}

.floating-element:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 20%;
    animation-delay: -4s;
}

.floating-element:nth-child(3) {
    width: 80px;
    height: 80px;
    top: 40%;
    left: 15%;
    animation-delay: -1s;
}

/* Stats Section */
.stats-section {
    background: rgba(255, 255, 255, 0.5);
}

.stat-number {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    color: #666;
}

/* Tech Spec (from global.css, likely for features/roadmap) */
.tech-spec {
    background: var(--auralu-light-gray);
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
}

/* Roadmap (from global.css) */
.roadmap-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
    border-left: 4px solid;
    position: relative;
}

.roadmap-item.phase1 {
    border-left-color: var(--auralu-gold);
}

.roadmap-item.phase2 {
    border-left-color: var(--auralu-rose);
}

.roadmap-item.phase3 {
    border-left-color: var(--auralu-purple);
}

.phase-badge {
    position: absolute;
    top: -10px;
    left: 20px;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.badge-phase1 {
    background: var(--auralu-gold);
}

.badge-phase2 {
    background: var(--auralu-rose);
}

.badge-phase3 {
    background: var(--auralu-purple);
}

.personality-trait { /* from global.css, similar to personality-tag but used in a different context (e.g., features) */
    background: rgba(244, 194, 161, 0.1);
    border-radius: 25px;
    padding: 8px 16px;
    margin: 5px;
    display: inline-block;
    font-size: 0.9rem;
    border: 1px solid rgba(244, 194, 161, 0.3);
}

.screen {
    display: none;
}
.screen.active {
    display: block;
    animation: fadeIn 0.8s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
.question-card {
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}
.fade-out {
    opacity: 0;
    transform: scale(0.95);
}
.fade-in {
    opacity: 1;
    transform: scale(1);
}
.option-btn {
    transition: background-color 0.2s, transform 0.2s, border-color 0.2s;
}
.option-btn.active {
        background-color: #e0e7ff; /* A custom light indigo for selection */
        border-color: #4f46e5; /* A custom indigo for border */
        color: #4f46e5;
}
.option-btn:hover:not(.active) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.results-card, .tab-pane {
    animation: fadeIn 1s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.nav-tabs .nav-link {
    border-bottom-width: 4px;
}


/* --- Mobile Responsiveness --- */

/* Auth page responsiveness */
@media (max-width: 768px) {
    .auth-card {
        margin: 20px;
        padding: 30px 25px;
    }

    .logo-text.auth {
        font-size: 2rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .bg-element-1,
    .bg-element-2,
    .bg-element-3 {
        display: none;
    }
}

/* Content page responsiveness */
@media (max-width: 768px) {
    .content-hero {
        padding: 100px 0 40px;
    }

    .content-title {
        font-size: 2.5rem;
    }

    .content-subtitle {
        font-size: 1.1rem;
    }

    .content-container {
        padding: 30px 25px;
        margin: 0 15px 30px;
    }

    .content-container h1 {
        font-size: 2rem;
    }

    .content-container h2 {
        font-size: 1.6rem;
    }

    .contact-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .content-actions {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .content-actions .d-flex {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .content-container {
        padding: 25px 20px;
        margin: 0 10px 20px;
    }

    .related-links .row {
        gap: 15px;
    }

    .related-link {
        padding: 20px 15px;
    }
}

/* Forge page responsiveness */
@media (max-width: 768px) {
    .question-card {
        padding: 30px 25px;
        margin: 20px;
    }

    .question-title {
        font-size: 2rem;
    }

    .demographic-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .gender-options {
        justify-content: center;
    }

    .gender-option {
        flex: 0 1 auto;
        min-width: 100px;
    }

    .navigation-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .final-step .question-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .forge-header {
        padding: 15px 0;
    }

    .question-card {
        padding: 25px 20px;
    }

    .choice-option {
        padding: 20px 15px;
    }

    .choice-icon {
        font-size: 2rem;
    }
}

/* General responsiveness from global.css */
@media (max-width: 768px) {
    .logo-text { /* General logo text, not specific to auth/forge */
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }
}
