body {
    background: #0b1220; /* dark background */
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #e6eef8;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Keyboard focus indicators for accessibility */
button:focus-visible,
textarea:focus-visible {
    outline: 2px solid #5aa8ff;
    outline-offset: 2px;
}

#newSessionBtn:focus-visible {
    outline: 2px solid #5aa8ff;
    box-shadow: 0 0 0 3px rgba(90, 168, 255, 0.3);
}

#sendBtnText:focus-visible {
    outline: 2px solid #5aa8ff;
    box-shadow: 0 0 0 3px rgba(90, 168, 255, 0.3);
}

#userInput:focus-visible {
    outline: 2px solid #5aa8ff;
    border-color: #5aa8ff;
}

/* Status indicator styles */
.status-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.status-indicator.visible {
    opacity: 1;
    transform: translateY(0);
}

.status-indicator.info {
    background: #1e88e5;
    color: #fff;
}

.status-indicator.success {
    background: #2e7d32;
    color: #fff;
}

.status-indicator.warning {
    background: #f57c00;
    color: #fff;
}

.status-indicator.error {
    background: #c62828;
    color: #fff;
}
.chat-container {
    /* Dark themed container that uses most of the laptop viewport */
    box-sizing: border-box;
    width: 90%;
    max-width: 1800px;
    margin: 12px auto;
    background: #0f1724; /* slightly lighter than page */
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
    padding: 16px;
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 8px;
    color: #cfe8ff;
    font-weight: 600;
    position: relative;
    max-width: 1800px;
    margin: 0 auto;
}

/* App title in center */
.app-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    font-weight: 700;
    color: #9fbfff;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-left: auto;
}

/* Guest Controls (Login/Sign Up buttons) */
.guest-only {
    display: flex;
    gap: 0.5rem;
}

.guest-only.hidden,
.hidden {
    display: none !important;
}

/* User Controls (when logged in) - 2 row layout */
.user-only {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.user-only.hidden {
    display: none !important;
}

/* Subscription Badge */
.subscription-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.subscription-badge.tier-premium {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.subscription-badge.tier-pro {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-color: #f093fb;
    box-shadow: 0 2px 8px rgba(240, 147, 251, 0.3);
}

.subscription-badge.tier-free {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.tier-icon {
    font-size: 1rem;
}

.tier-name {
    font-weight: 600;
    color: #fff;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Row 1: Account Info (Badge + Email) */
.user-info-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* User Email Display */
.user-email {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 400;
}

/* User Actions */
.user-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
    flex-wrap: nowrap;
    margin-top: 0.75rem;
}

/* Button Styles */
.btn-primary, .btn-secondary, .btn-upgrade {
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    white-space: nowrap;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: rgba(71, 85, 105, 0.6);
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.3);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(71, 85, 105, 0.8);
    border-color: rgba(148, 163, 184, 0.5);
    color: #f1f5f9;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-upgrade {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.btn-upgrade:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(240, 147, 251, 0.5);
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(240, 147, 251, 0.7); }
    50% { box-shadow: 0 0 0 8px rgba(240, 147, 251, 0); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .header-right {
        width: 100%;
        justify-content: center;
    }
    
    .user-email {
        max-width: 120px;
    }
    
    .user-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
}
.logo {
    font-weight: 700;
    color: #9fbfff;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
}

.logo-gif {
    width: 32px;
    height: 32px;
    vertical-align: middle;
    border-radius: 50%;
    animation: float 3s ease-in-out infinite;
}

.logo-gif:first-child {
    animation-delay: 0s;
}

.logo-gif:last-child {
    animation-delay: 1.5s;
}

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

/* Health indicator - fixed to bottom-right corner */
.health-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 16px;
    background: rgba(15, 23, 36, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.health-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    animation: pulse 2s infinite;
}

.health-indicator.healthy .health-dot {
    background-color: #4caf50;
}

.health-indicator.unhealthy .health-dot {
    background-color: #f44336;
    animation: pulse-error 1s infinite;
}

.health-text {
    color: #b8d4f0;
    font-weight: 500;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes pulse-error {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.2); }
}
.chat-box {
    /* Make the chat box take the available vertical space while keeping sensible bounds */
    height: calc(100vh - 340px);
    min-height: 240px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 8px;
    padding: 18px;
    background: #0b1220;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
}

/* Reduce outer padding on very small screens so layout doesn't feel cramped */
@media (max-width: 520px) {
    .chat-container { width: 96vw; padding: 12px; }
    .chat-box { min-height: 300px; }
}
.message { display:flex; align-items:flex-end; margin-bottom:10px; }
.message.user { justify-content:flex-end; }
.message.agent { justify-content:flex-start; }
.avatar { width:44px; height:44px; border-radius:8px; display:flex; align-items:center; justify-content:center; font-weight:600; margin:0 10px; }
.avatar.user { background:#0b63b7; color:#fff; }
.avatar.agent { background:#1f2937; color:#cfe8ff; }
.bubble { max-width:95%; padding:12px 14px; border-radius:12px; position:relative; font-size:0.98rem; line-height:1.35; }
.bubble { white-space: pre-wrap; word-break: break-word; }
.message.user .bubble { background:#1e88e5; color:#fff; border-bottom-right-radius:4px; }
.message.agent .bubble { background:#17212a; color:#dbeaf7; border-bottom-left-radius:4px; }
.bubble .meta { font-size:0.75rem; opacity:0.7; margin-top:8px; text-align:right; }
.error { align-self:center; background:#3b1e1e; color:#ffbdbd; border-radius:8px; padding:8px 10px; font-style:italic; }

/* Sending state indicator */
.message.sending .bubble {
    opacity: 0.7;
    position: relative;
}

.message.sending .bubble::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: sending-spinner 0.8s linear infinite;
}

@keyframes sending-spinner {
    to { transform: translateY(-50%) rotate(360deg); }
}

/* Markdown content styling in agent bubbles */
.bubble p { margin: 0; line-height: 1.3; }
.bubble p:last-of-type { margin-bottom: 0; }
.bubble strong { font-weight: 700; color: #e6f3ff; }
.bubble em { font-style: italic; color: #d4e8ff; }
.bubble code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #a8d5ff;
}
.bubble pre {
    background: rgba(0, 0, 0, 0.4);
    padding: 10px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 4px 0;
}
.bubble pre code {
    background: none;
    padding: 0;
    color: #cfe8ff;
}
.bubble a {
    color: #5aa8ff;
    text-decoration: underline;
    transition: color 0.2s;
}
.bubble a:hover {
    color: #7fc0ff;
}
.bubble ul, .bubble ol {
    margin: 0;
    padding-left: 24px;
    line-height: 1.3;
}
.bubble li {
    margin: 0;
    padding: 0;
    line-height: 1.3;
}
.bubble blockquote {
    border-left: 3px solid #5aa8ff;
    padding-left: 12px;
    margin: 6px 0;
    color: #c5e0ff;
    font-style: italic;
    line-height: 1.5;
}
.bubble h1, .bubble h2, .bubble h3, .bubble h4, .bubble h5, .bubble h6 {
    margin: 8px 0 4px 0;
    color: #cfe8ff;
    font-weight: 600;
    line-height: 1.3;
}
.bubble h1:first-child, .bubble h2:first-child, .bubble h3:first-child, 
.bubble h4:first-child, .bubble h5:first-child, .bubble h6:first-child {
    margin-top: 0;
}
.bubble h1 { font-size: 1.4em; }
.bubble h2 { font-size: 1.3em; }
.bubble h3 { font-size: 1.2em; }
.bubble h4 { font-size: 1.1em; }
.bubble h5 { font-size: 1.05em; }
.bubble h6 { font-size: 1em; }

/* Inline export button for flight messages */
.export-btn-inline {
    display: inline-block;
    margin: 12px 0 6px 0;
    padding: 6px 12px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.export-btn-inline:hover:not(:disabled) {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

.export-btn-inline:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.export-btn-inline:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Input disabled state styling */
#userInput:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #0a1218;
}

#sendBtnText:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #21485e;
}
.input-row {
    display: flex;
    gap: 8px;
}


.controls-row { display:flex; justify-content:flex-start; margin: 0 0 8px 0; }

#newSessionBtn { padding:6px 10px; border-radius:6px; border:none; background:#1f6fd9; color:#fff; font-size:0.9rem; cursor:pointer; }
#newSessionBtn:hover { background:#155faa; }
#userInput { padding:12px; border-radius:8px; border:1px solid #233140; background:#07101a; color:#e6eef8; font-size:1rem; }

/* Make the bottom message input centered and about half the screen on wide viewports */
.bottom-input-row { display:flex; gap:8px; align-items:flex-end; margin-top:8px; justify-content: center; }
.bottom-input-row textarea { width:50%; max-width:900px; min-width:320px; box-sizing:border-box; }
.bottom-input-row button { align-self:flex-end; }

@media (max-width: 720px) {
    .bottom-input-row { justify-content: space-between; padding: 0 8px; }
    .bottom-input-row textarea { width: calc(100% - 96px); min-width:120px; }
}
#sendBtn { padding:10px 18px; border-radius:8px; border:none; background:#0b63b7; color:#fff; font-size:1rem; cursor:pointer; transition:background 0.15s; }
#sendBtn:disabled { background:#21485e; cursor:not-allowed; }

/* Visible text Send button below chat */
#sendBtnText { padding:10px 20px; border-radius:8px; border:none; background:#0b63b7; color:#fff; font-size:1rem; cursor:pointer; }
#sendBtnText:hover { background:#155faa; }
.loading { text-align:center; color:#9fbfff; font-size:0.95rem; margin-top:8px; }

/* Fancy typing indicator: spinner + colored dots */
.typing-container { display:inline-flex; align-items:center; gap:10px; }
.typing-spinner { width:14px; height:14px; border-radius:50%; border:2px solid rgba(255,255,255,0.08); border-top-color:#9fbfff; border-right-color:#7fc0ff; border-bottom-color:#5aa8ff; animation: typing-spin 1s linear infinite; margin-right:8px; }
.typing-text { color:#cfe8ff; font-weight:600; font-size:0.95rem; margin-right:6px; }
.typing-dots { display:inline-flex; gap:4px; margin-left:6px; }
.typing-dots span { color:#9fbfff; font-weight:700; opacity:0.18; animation: typing-dot 1.2s infinite; }
.typing-dots span:nth-child(1) { animation-delay:0s; }
.typing-dots span:nth-child(2) { animation-delay:0.15s; }
.typing-dots span:nth-child(3) { animation-delay:0.3s; }

@keyframes typing-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes typing-dot {
    0% { opacity: 0.15; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-3px); }
    100% { opacity: 0.15; transform: translateY(0); }
}

/* Typing bubble inside chat mimics agent bubble but with slightly lighter background */
.typing-message .bubble.typing-bubble { background: linear-gradient(180deg, rgba(23,33,42,0.95), rgba(17,24,32,0.95)); color:#dbeaf7; padding:10px 12px; border-radius:10px; max-width:78%; }
.typing-message { margin-bottom:8px; }

/* Result card styles */
.result-card { background:#0f1b24; border-radius:8px; padding:12px; margin:8px 0; border:1px solid #20313c; }
.result-title { font-weight:700; color:#cfe8ff; margin-bottom:8px; }
.result-pre { white-space:pre-wrap; color:#dbeaf7; font-size:0.92rem; }

/* Prompt row (large textarea + send icon) */
.prompt-row { display:flex; gap:12px; align-items:flex-end; margin:8px 0; }
textarea#userInput { flex:1; min-height:68px; padding:14px 16px; resize:vertical; border-radius:10px; font-size:1rem; }
.icon-btn { width:46px; height:46px; border-radius:50%; border:none; background:#1f6fd9; color:#fff; display:flex; align-items:center; justify-content:center; font-size:18px; cursor:pointer; box-shadow:0 2px 6px rgba(0,0,0,0.4); }
.icon-btn:hover { background:#155faa; }

/* Suggestion cards */
.suggestions { display:flex; gap:12px; margin:10px 0 16px 0; }
.suggestion { flex:1; padding:16px 18px; border-radius:10px; background:#0f1724; color:#dbeaf7; border:1px solid #20313c; text-align:left; cursor:pointer; font-size:0.95rem; }
.suggestion:hover { background:#13232b; transform:translateY(-2px); transition:transform 0.12s ease; }

@media (max-width: 920px) {
    .suggestions { flex-direction:column; }
}

/* Profile Panel Styles */
.profile-panel {
    background: #0f1724;
    border: 1px solid #20313c;
    border-radius: 10px;
    padding: 20px;
    margin: 10px 0;
    max-height: 70vh;
    overflow-y: auto;
}

.profile-panel h3 {
    color: #cfe8ff;
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.2rem;
}

.profile-panel h4 {
    color: #a8c8e8;
    margin-bottom: 12px;
    font-size: 1rem;
}

.profile-section {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #20313c;
}

.profile-section:last-of-type {
    border-bottom: none;
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 300px));
    gap: 12px;
    margin-bottom: 16px;
}

.award-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 300px; /* Prevent single items from stretching too wide */
}

.award-item label {
    color: #dbeaf7;
    font-size: 0.85rem;
    font-weight: 500;
}

.award-item input[type="number"],
.award-item input[type="text"] {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #20313c;
    background: #0b1220;
    color: #e6eef8;
    font-size: 0.95rem;
}

.award-item input[type="number"]:focus,
.award-item input[type="text"]:focus {
    outline: 2px solid #5aa8ff;
    border-color: #5aa8ff;
}

/* Preferences Grid */
.preferences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.preference-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.preference-item label {
    color: #dbeaf7;
    font-size: 0.85rem;
    font-weight: 500;
}

.preference-item select,
.preference-item input[type="text"] {
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #20313c;
    background: #0b1220;
    color: #e6eef8;
    font-size: 0.95rem;
    cursor: pointer;
}

.preference-item select:focus,
.preference-item input[type="text"]:focus {
    outline: 2px solid #5aa8ff;
    border-color: #5aa8ff;
}

/* Slider Container for Minimum Point Value */
.slider-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 0;
}

.slider-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #5aa8ff;
    text-align: center;
    padding: 4px 0;
}

.preference-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, #1e3a5f 0%, #2c5f96 50%, #5aa8ff 100%);
    outline: none;
    cursor: pointer;
}

.preference-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #5aa8ff;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease;
}

.preference-slider::-webkit-slider-thumb:hover {
    background: #7bbfff;
    transform: scale(1.15);
    box-shadow: 0 3px 10px rgba(90, 168, 255, 0.6);
}

.preference-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #5aa8ff;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease;
}

.preference-slider::-moz-range-thumb:hover {
    background: #7bbfff;
    transform: scale(1.15);
    box-shadow: 0 3px 10px rgba(90, 168, 255, 0.6);
}

.preference-slider:focus {
    outline: 2px solid #5aa8ff;
    outline-offset: 2px;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #7a8fa8;
    padding: 0 2px;
}

/* Advanced Valuations Section */
.advanced-header {
    user-select: none;
}

.advanced-header:hover h4 {
    color: #5aa8ff;
}

#advancedToggleIcon {
    color: #7a8fa8;
}

.valuations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.valuation-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.valuation-item label {
    color: #dbeaf7;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.valuation-balance {
    color: #7a8fa8;
    font-size: 0.75rem;
    font-weight: normal;
}

.valuation-input-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

.valuation-input {
    flex: 1;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #20313c;
    background: #0b1220;
    color: #e6eef8;
    font-size: 0.95rem;
}

.valuation-input:focus {
    outline: 2px solid #5aa8ff;
    border-color: #5aa8ff;
}

.valuation-input.modified {
    border-color: #5aa8ff;
    background: #0d1826;
    font-weight: 600;
    color: #5aa8ff;
}

.valuation-unit {
    color: #7a8fa8;
    font-size: 0.85rem;
    min-width: 20px;
}

.valuation-default {
    color: #7a8fa8;
    font-size: 0.75rem;
    font-style: italic;
    margin-top: 2px;
}

.valuation-default a {
    margin-left: 4px;
}

.valuation-presets {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.preset-btn {
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid #20313c;
    background: #0b1220;
    color: #dbeaf7;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.preset-btn:hover {
    background: #1f6fd9;
    color: #fff;
    border-color: #1f6fd9;
}

.profile-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #20313c;
}

.profile-actions button {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    background: #1f6fd9;
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
}

.profile-actions button:hover {
    background: #155faa;
}

.profile-actions button:last-child {
    background: #2a3b4c;
}

.profile-actions button:last-child:hover {
    background: #3a4b5c;
}

#profileBtn {
    margin-left: 10px;
}

/* Valuations Grid Styles */
.valuations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.valuation-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #1a2332;
    border-radius: 6px;
    border: 1px solid #2a3b4c;
}

.valuation-item label {
    flex: 1;
    font-size: 0.85rem;
    color: #cfe8ff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.valuation-item input {
    width: 60px;
    padding: 4px 6px;
    border: 1px solid #4a5b6c;
    border-radius: 4px;
    background: #0f1724;
    color: #e6eef8;
    font-size: 0.85rem;
    text-align: center;
}

.valuation-item input:focus {
    outline: none;
    border-color: #5aa8ff;
    box-shadow: 0 0 0 2px rgba(90, 168, 255, 0.2);
}

.valuation-unit {
    font-size: 0.8rem;
    color: #7a8fa8;
    font-weight: 600;
}

.valuation-presets {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #2a3b4c;
}

.preset-btn {
    background: #2a3b4c;
    color: #cfe8ff;
    border: 1px solid #4a5b6c;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.preset-btn:hover {
    background: #3a4b5c;
    border-color: #5aa8ff;
}

.preset-btn:active {
    background: #1a2b3c;
}

