/* Custom styles for Genghis AI */

body {
    background: #000000;
    color: #e0e0e0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

/* Individual Model Response Styles */
.model-response-container {
    margin: 16px 0;
    padding: 16px;
    background: rgba(40, 40, 40, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border-left: 4px solid #007acc;
}

.model-response-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
}

.model-response-header i {
    color: #007acc;
    font-size: 1.1rem;
}

.model-name {
    color: #ffffff;
}

/* Response Toggle Button */
.response-toggle-btn {
    background: rgba(60, 60, 60, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    padding: 8px 16px;
    margin: 8px 0 16px 0;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    width: fit-content;
}

.response-toggle-btn:hover {
    background: rgba(80, 80, 80, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.response-toggle-btn i {
    color: #007acc;
}

/* Genghis Response Styling */
.genghis-response {
    border-left-color: #d4a574 !important;
}

.genghis-response .model-response-header i {
    color: #d4a574 !important;
}

/* Model Notification Toast */
.model-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(40, 40, 40, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    max-width: 320px;
    min-width: 280px;
}

.model-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.model-notification .notification-header {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.model-notification .notification-description {
    font-size: 0.85rem;
    color: #b0b0b0;
    line-height: 1.4;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .model-notification {
        right: 10px;
        left: 10px;
        max-width: none;
        min-width: auto;
    }
}

/* Full 5 Subscription Popup */
.full5-subscription-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 16px;
    min-width: 600px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1001;
}

.full5-subscription-popup.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.full5-subscription-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #333;
    background: #252525;
}

.full5-subscription-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
}

.full5-subscription-close {
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.full5-subscription-close:hover {
    background: #333;
    color: #fff;
}

/* Full 5 Popup Close Button */
.full5-popup-close {
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10002;
}

.full5-popup-close:hover {
    background: #333;
    color: #fff;
    transform: scale(1.1);
}

.full5-popup-close:active {
    transform: scale(0.95);
}

/* Full 5 Popup Header */
.full5-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #333;
    background: #252525;
    position: relative;
}

.full5-popup-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
}

.full5-subscription-content {
    padding: 32px;
}

.subscription-hero {
    text-align: center;
    margin-bottom: 32px;
}

.subscription-hero h3 {
    color: #fff;
    font-weight: 600;
}

.subscription-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.subscription-option {
    background: #252525;
    border: 2px solid #333;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.2s ease;
}

.subscription-option:hover {
    border-color: #4a9eff;
    transform: translateY(-2px);
}

.subscription-option.daily-pass {
    border-color: #28a745;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(34, 139, 58, 0.1) 100%);
}

.subscription-option.daily-pass:hover {
    border-color: #20c997;
}

.option-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.option-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

.option-price {
    margin-bottom: 20px;
}

.price-amount {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
}

.price-period {
    font-size: 14px;
    color: #888;
    display: block;
    margin-top: 4px;
}

.option-features {
    margin-bottom: 24px;
    line-height: 1.8;
    color: #ccc;
}

.option-features i {
    margin-right: 8px;
    width: 16px;
}

.subscription-footer {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #333;
}

@media (max-width: 768px) {
    .full5-subscription-popup {
        min-width: 95vw;
        max-width: 95vw;
    }
    
    .subscription-options {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .full5-subscription-content {
        padding: 24px;
    }
}

/* Response Mode Toggle */
.response-mode-toggle {
    background: rgba(40, 40, 40, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    min-height: 40px;
}

.toggle-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.toggle-left-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.models-button {
    background: #d4a574;
    border: none;
    border-radius: 8px;
    padding: 3px 6px;
    color: #000;
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 6px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    height: 24px;
}

.models-button:hover {
    background: #c8965f;
    transform: translateY(-1px);
}

/* Models Popup */
.models-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    z-index: 1000;
    max-width: 400px;
    width: 90%;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.models-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.models-popup-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.models-popup-close {
    background: none;
    border: none;
    color: #999;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
}

.models-popup-close:hover {
    color: #fff;
}

.models-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.model-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.model-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.model-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.model-icon.gpt4o {
    background: #10a37f;
}

.model-icon.claude {
    background: #ff6b35;
}

.model-icon.gemini {
    background: #4285f4;
}

.model-icon.grok {
    background: #1da1f2;
}

.model-icon.llama {
    background: #7c3aed;
}

.model-info {
    flex: 1;
}

.model-name {
    font-weight: 600;
    color: #fff;
    font-size: 0.9rem;
}

.model-description {
    font-size: 0.8rem;
    color: #bbb;
    margin-top: 2px;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* Model Notification Styles */
.model-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(40, 40, 40, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    max-width: 350px;
    z-index: 1001;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.model-notification.show {
    transform: translateX(0);
}

.notification-header {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.notification-description {
    color: #bbb;
    font-size: 0.8rem;
    line-height: 1.4;
}

.toggle-label {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
    color: #e0e0e0;
}

.toggle-switch-container {
    position: relative;
}

.toggle-switch {
    display: none;
}

.toggle-label-switch {
    display: flex;
    align-items: center;
    background: rgba(60, 60, 60, 0.8);
    border-radius: 16px;
    padding: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    min-width: 140px;
}

.toggle-text-genghis,
.toggle-text-full {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    flex: 1;
}

.toggle-text-genghis {
    background: #d4a574;
    color: #000;
}

.toggle-text-full {
    background: transparent;
    color: #e0e0e0;
}

.toggle-switch:checked + .toggle-label-switch .toggle-text-genghis {
    background: transparent;
    color: #e0e0e0;
}

.toggle-switch:checked + .toggle-label-switch .toggle-text-full {
    background: #0d6efd;
    color: #fff;
}

/* Trial Status Display */
.trial-status-container {
    background: rgba(40, 40, 40, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    text-align: center;
}

.trial-status {
    font-size: 0.85rem;
    font-weight: 500;
}

.trial-status.premium {
    color: #d4a574;
}

.trial-status.trial {
    color: #17a2b8;
}

.trial-status.free {
    color: #28a745;
}

.trial-status.expired {
    color: #dc3545;
}

/* Upgrade Prompt Toast */
.upgrade-prompt-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(40, 40, 40, 0.95);
    border: 2px solid rgba(255, 193, 7, 0.5);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1100;
    max-width: 400px;
    min-width: 320px;
}

.upgrade-prompt-toast.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.upgrade-prompt-toast .prompt-header {
    color: #ffc107;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.upgrade-prompt-toast .prompt-message {
    color: #e0e0e0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.upgrade-prompt-toast .prompt-actions {
    text-align: center;
    margin-top: 16px;
}

.upgrade-prompt-toast .btn {
    padding: 8px 20px;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.upgrade-prompt-toast .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Mobile responsive for upgrade prompt */
@media (max-width: 768px) {
    .upgrade-prompt-toast {
        left: 10px;
        right: 10px;
        transform: translateY(-50%) scale(0.9);
        max-width: none;
        min-width: auto;
    }
    
    .upgrade-prompt-toast.show {
        transform: translateY(-50%) scale(1);
    }
}

/* Silver headings */
h1, h2, h3, h4, h5, h6 {
    color: #c0c0c0;
    font-weight: 600;
}

/* Main title styling */
.main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #c0c0c0;
    text-shadow: 0 0 10px rgba(192, 192, 192, 0.3);
    margin-bottom: 0.5rem;
}

/* Tagline styling */
.tagline {
    font-size: 1.2rem;
    color: #a0a0a0;
    font-weight: 300;
    margin-bottom: 2rem;
}

/* Subscription page styling */
.subscription-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.subscription-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.popular-plan {
    transform: scale(1.05);
    position: relative;
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #d4a574;
    color: #000;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(212, 165, 116, 0.3);
}

/* AI Provider Footer Styling */
.ai-provider-link {
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: block;
    margin: 0 1rem;
}

.ai-provider-link:hover {
    transform: translateY(-5px);
    opacity: 0.8;
    color: inherit;
    text-decoration: none;
}

.ai-provider-logo {
    text-align: center;
    padding: 1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.ai-provider-logo:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.ai-provider-logo small {
    color: #a0a0a0;
    font-weight: 500;
}

.response-content h5 {
    border-left: 3px solid var(--bs-info);
    padding-left: 0.75rem;
}

.response-content p {
    margin-bottom: 1rem;
}

.history-item {
    cursor: pointer;
    transition: background-color 0.2s ease;
    padding: 0.5rem;
    border-radius: 0.375rem;
}

.history-item:hover {
    background-color: var(--bs-secondary-bg);
}

.cursor-pointer {
    cursor: pointer;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bs-body-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--bs-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bs-secondary-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container-fluid {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .response-content {
        font-size: 0.9rem;
    }
}

/* Footer styling */
.footer-section {
    background: rgba(20, 20, 20, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    backdrop-filter: blur(10px);
}

.footer-section p {
    color: #a0a0a0;
    font-size: 0.85rem;
}

/* Loading animation enhancement */
.spinner-border {
    animation-duration: 0.75s;
}

/* Card enhancements */
.card {
    border: 1px solid var(--bs-border-color);
    overflow: visible;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.15s ease-in-out;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Form enhancements */
.form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Button enhancements */
.btn {
    transition: all 0.15s ease-in-out;
}

/* Status badges */
.badge {
    font-size: 0.75em;
}

/* Typography improvements */

.text-muted {
    opacity: 0.7;
}

/* Accessibility improvements */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Animation for result cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.3s ease-out;
}

/* Error state styling */
.border-danger {
    border-color: var(--bs-danger) !important;
}

/* Success state for aggregated response */
.bg-success {
    background-color: var(--bs-success) !important;
}

/* Genghis AI Crown styling */
.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%) !important;
    border: 2px solid #ff8f00;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.bg-warning .card-header {
    position: relative;
    overflow: hidden;
}

.bg-warning .card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* AI Debate section styling */
.card-header .btn-outline-secondary {
    border-color: rgba(255, 255, 255, 0.3);
    color: inherit;
    transition: all 0.3s ease;
}

.card-header .btn-outline-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Model response cards with distinct colors */
.card.model-card {
    border-left: 4px solid var(--bs-primary);
    transition: all 0.3s ease;
}

.card.model-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card.model-card.gpt-4o {
    border-left-color: #00a2ff;
}

.card.model-card.claude {
    border-left-color: #ff6b35;
}

.card.model-card.gemini {
    border-left-color: #4285f4;
}

.card.model-card.grok {
    border-left-color: #28a745;
}

.card.model-card.llama {
    border-left-color: #dc3545;
}

/* Enhanced status badges */
.badge.model-status {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-weight: 500;
}

/* Loading state enhancements */
.loading-pulse {
    animation: pulse 1.5s ease-in-out infinite;
}

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

/* Genghis branding */
.genghis-title {
    background: linear-gradient(135deg, #ffc107, #ff8f00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Response content styling */
.response-content {
    max-height: none;
    overflow-y: visible;
    scrollbar-width: thin;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Collapse button animation */
.collapse-btn {
    transition: transform 0.3s ease;
}

.collapse-btn[aria-expanded="true"] {
    transform: rotate(180deg);
}

/* Hero section styling */
.hero-section {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(255, 193, 7, 0.1));
    border-radius: 1rem;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 193, 7, 0.3) 0%, transparent 50%);
    animation: gradientShift 10s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

.ai-model-icon {
    text-align: center;
    padding: 1rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.ai-model-icon:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

/* AI Models Badge Section */
.ai-models-badge-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-models-badge-section .badge {
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
}

/* Enhanced query form styling */
.query-card {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 1rem;
    overflow: hidden;
}

.query-input {
    border: 2px solid rgba(13, 110, 253, 0.1);
    border-radius: 0.75rem;
    padding: 1rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.query-input:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Enhanced header gradient */
.bg-gradient {
    background: linear-gradient(to bottom, #0B0F2D, #1A1A2E);
}

/* Sophisticated button styling */
.btn-primary {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #0056b3 100%);
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    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;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.3);
}

/* Enhanced loading animations */
.loading-pulse {
    animation: pulse 1.5s ease-in-out infinite;
}

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

/* Sophisticated modal styling */
.modal-content {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.modal-header {
    border-bottom: none;
    padding: 2rem 2rem 1rem;
}

.modal-body {
    padding: 1rem 2rem 2rem;
}

/* Enhanced card styling */
.card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 1rem 1rem 0 0 !important;
    padding: 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Badge enhancements */
.badge {
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 500;
    font-size: 0.85rem;
}

/* Custom typography */
h1 {
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
    font-weight: bold;
}

p {
    font-family: 'Inter', sans-serif;
}

/* Apply Inter font to body and most elements */
body {
    font-family: 'Inter', sans-serif;
}

/* Ensure headings use appropriate fonts */
h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

/* Special styling for Genghis title */
.genghis-title {
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
    font-weight: 700;
    position: relative;
}

/* Sword separator under title */
.genghis-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 20px;
    background: url('/static/images/sword-separator.svg') no-repeat center;
    background-size: contain;
    animation: swordGlow 3s ease-in-out infinite alternate;
}

@keyframes swordGlow {
    0% { opacity: 0.7; filter: brightness(1); }
    100% { opacity: 1; filter: brightness(1.2) drop-shadow(0 0 8px rgba(255, 215, 0, 0.5)); }
}

/* AI Model icon animations */
.ai-model-icon {
    text-align: center;
    padding: 1rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ai-model-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.ai-model-icon:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
    animation: modelGlow 2s ease-in-out infinite alternate;
}

.ai-model-icon:hover::before {
    width: 100px;
    height: 100px;
}

@keyframes modelGlow {
    0% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.3); }
    100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), 0 0 30px rgba(255, 215, 0, 0.3); }
}

/* Pulse animation for model icons */
.ai-model-icon i {
    animation: iconPulse 2s ease-in-out infinite;
}

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

/* Crowned answer mist animation */
.crowned-answer {
    position: relative;
    animation: riseFromMist 1.5s ease-out forwards;
    opacity: 0;
}

.crowned-answer::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.1), transparent);
    animation: mistFade 2s ease-out;
    pointer-events: none;
}

@keyframes riseFromMist {
    0% {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(2px);
    }
    50% {
        opacity: 0.7;
        transform: translateY(15px);
        filter: blur(1px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes mistFade {
    0% { opacity: 0.8; }
    100% { opacity: 0; }
}

/* Confetti burst animation */
.confetti {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #FFD700;
    animation: confettiFall 3s linear forwards;
}

.confetti-piece:nth-child(2n) { background: #FF6B35; }
.confetti-piece:nth-child(3n) { background: #4285F4; }
.confetti-piece:nth-child(4n) { background: #28A745; }
.confetti-piece:nth-child(5n) { background: #DC3545; }

@keyframes confettiFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Scroll panel styling for answers */
.scroll-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    position: relative;
    overflow: visible;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    word-wrap: break-word;
    white-space: pre-wrap;
    min-height: auto;
}

/* Ensure aggregated response card has proper spacing */
#aggregatedCard .card-body {
    padding: 1.5rem;
    overflow: visible;
}

#aggregatedResponse {
    overflow: visible;
    word-break: break-word;
    white-space: pre-wrap;
}

/* Model cards with banners */
.model-card-banner {
    position: relative;
    background: linear-gradient(135deg, var(--model-color, #0d6efd), rgba(0, 0, 0, 0.1));
    color: white;
    padding: 1rem;
    margin: -1.5rem -1.5rem 1rem -1.5rem;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%);
    text-align: center;
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.model-card-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: bannerShimmer 3s ease-in-out infinite;
}

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

/* Chat Input Form Styling */
.chat-input-form {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.input-container {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
    margin-bottom: 1rem;
}

.chat-input {
    background: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
    resize: none;
    border-radius: 8px;
    padding: 0.75rem;
    flex: 1;
}

.chat-input:focus {
    background: #2a2a2a;
    border-color: #ffc107;
    color: #e0e0e0;
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

.send-btn {
    background: linear-gradient(135deg, #ffc107 0%, #ff8f00 100%);
    border: none;
    border-radius: 8px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.send-btn:hover {
    background: linear-gradient(135deg, #ffb300 0%, #ff6f00 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

/* AI Toggles */
.ai-toggles {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.ai-toggle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ai-toggle-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    opacity: 0.5;
    transform: scale(0.9);
    position: relative;
}

/* Status Indicators */
.status-indicator {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #1a1a1a;
}

.status-working {
    background-color: #28a745;
}

.status-error {
    background-color: #dc3545;
}

/* File Upload Styles */
.attach-btn {
    border-right: none;
    border-radius: 0.375rem 0 0 0.375rem;
    background: #495057;
    border-color: #6c757d;
    color: #ffc107;
}

.attach-btn:hover {
    background: #5a6268;
    border-color: #545b62;
    color: #fff;
}

.input-group .chat-input {
    border-left: none;
    border-radius: 0;
}

.input-group .send-btn {
    border-left: none;
    border-radius: 0 0.375rem 0.375rem 0;
}

.file-item {
    background: #495057;
    border: 1px solid #6c757d;
    border-radius: 0.375rem;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 200px;
}

.file-item .file-icon {
    font-size: 1.2rem;
    color: #ffc107;
}

.file-item .file-name {
    font-size: 0.875rem;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.file-item .remove-file {
    color: #dc3545;
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.file-item .remove-file:hover {
    background: #dc3545;
    color: #fff;
}

#clearAllFiles {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* Mobile-First Design */
.mobile-optimized {
    font-family: 'Inter', sans-serif;
    background: #0d1117;
    color: #f0f6fc;
    overflow-x: hidden;
}

/* Mobile Header */
.mobile-header {
    background: linear-gradient(135deg, #1c2128 0%, #21262d 100%);
    border-bottom: 1px solid #30363d;
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Mobile Main Layout */
.mobile-main {
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 0; /* Remove gap - chat should touch header */
}

.chat-container-mobile {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    padding-bottom: 0;
    -webkit-overflow-scrolling: touch;
    margin-top: 60px; /* Account for fixed header height */
}

.chat-body {
    max-width: 100%;
    padding: 1rem;
    padding-bottom: 2rem;
}

/* Welcome Bubble */
.welcome-bubble {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(40, 40, 40, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.ai-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1f2937;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.welcome-content h5 {
    color: #fbbf24;
    font-weight: 600;
}

/* Input Section */
.input-section {
    background: #1c2128;
    border-top: 1px solid #30363d;
    padding: 1rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
}

/* Model Selector Mobile */
.model-selector-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.model-toggles {
    display: flex;
    gap: 0.5rem;
}

.model-toggle {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.7);
}

.model-toggle.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
    transform: scale(1.05);
}

.model-count {
    font-size: 0.875rem;
    color: #94a3b8;
    font-weight: 500;
}

/* Models Button */
.models-button {
    background: #d4a574;
    border: none;
    color: #000;
    padding: 3px 6px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 3px;
    height: 24px;
    margin-left: 6px;
}

.models-button:hover {
    background: #c8965f;
    transform: translateY(-1px);
}

.models-button:active {
    background: #c8965f;
    transform: translateY(0);
}

/* Models Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
}

.models-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    z-index: 1001;
    opacity: 0;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.models-popup.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.models-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #333;
    background: #2d2d2d;
    flex-shrink: 0;
}

.models-popup-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.models-popup-close {
    background: none;
    border: none;
    color: #888;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.models-popup-close:hover {
    color: #fff;
    background: #444;
}

.models-list {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.models-list::-webkit-scrollbar {
    width: 8px;
}

.models-list::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.models-list::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.models-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.model-item {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    margin-bottom: 16px;
    background: #2d2d2d;
    border: 1px solid #444;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.model-item:last-child {
    margin-bottom: 0;
}

.model-item:hover {
    background: #3d3d3d;
    border-color: #555;
    transform: translateY(-1px);
}

.model-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    margin-right: 16px;
    font-size: 16px;
    flex-shrink: 0;
}

.model-icon.gpt-4o {
    background: linear-gradient(135deg, #10a37f, #26d0ce);
}

.model-icon.claude {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
}

.model-icon.gemini {
    background: linear-gradient(135deg, #4285f4, #34a853);
}

.model-icon.grok {
    background: linear-gradient(135deg, #1da1f2, #657786);
}

.model-icon.llama {
    background: linear-gradient(135deg, #7c4dff, #3f51b5);
}

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

.model-name {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.model-description {
    font-size: 14px;
    color: #aaa;
    line-height: 1.4;
    margin-bottom: 12px;
}

.model-personality {
    font-size: 13px;
    color: #888;
    line-height: 1.5;
    padding: 12px;
    background: #222;
    border-radius: 6px;
    border-left: 3px solid #555;
}

/* Mobile responsive for models popup */
@media (max-width: 768px) {
    .models-popup {
        width: 95%;
        max-height: 90vh;
    }
    
    .models-popup-header {
        padding: 16px 20px;
    }
    
    .models-list {
        padding: 16px;
    }
    
    .model-item {
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .model-icon {
        margin-right: 0;
        margin-bottom: 12px;
    }
}

/* Input Form */
.input-form {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    background: #21262d;
    border: 1px solid #30363d;
    border-radius: 1rem;
    padding: 0.75rem;
    margin-top: 0.5rem;
}

.input-textarea {
    flex: 1;
    background: transparent;
    border: none;
    resize: none;
    font-size: 16px; /* Prevents zoom on iOS */
    line-height: 1.5;
    color: #f0f6fc;
    max-height: 150px;
    min-height: 20px;
}

.input-textarea::placeholder {
    color: #7d8590;
}

.input-textarea:focus {
    outline: none;
}

.input-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.attach-btn-mobile, .send-btn-mobile {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.attach-btn-mobile {
    background: rgba(255, 255, 255, 0.1);
    color: #7d8590;
}

.send-btn-mobile {
    background: #3b82f6;
    color: white;
}

.send-btn-mobile:disabled {
    background: rgba(59, 130, 246, 0.3);
    cursor: not-allowed;
}

/* Chat Messages Mobile */
.chat-message {
    margin-bottom: 1.5rem;
    animation: slideInUp 0.3s ease-out;
}

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

.user-message .message-bubble {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    margin-left: 20%;
    border-radius: 1rem 1rem 0.25rem 1rem;
    padding: 1rem 1.25rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.ai-message .message-bubble {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
    margin-right: 10%;
    border-radius: 1rem 1rem 1rem 0.25rem;
    padding: 1.25rem;
    box-shadow: 0 2px 10px rgba(30, 58, 138, 0.2);
}

/* Responsive Breakpoints */
@media (max-width: 576px) {
    .mobile-header .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .brand-title {
        font-size: 1.1rem;
    }
    
    .model-toggle {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }
    
    .model-toggles {
        gap: 0.375rem;
    }
}

@media (min-width: 768px) {
    .chat-container-mobile {
        max-width: 800px;
        margin: 0 auto;
    }
    
    .input-section {
        padding: 1.5rem;
    }
}

/* Loading States */
.thinking-indicator-mobile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #7d8590;
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
}

.dots-loader {
    display: flex;
    gap: 2px;
}

.dots-loader span {
    width: 4px;
    height: 4px;
    background: #3b82f6;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

.dots-loader span:nth-child(2) {
    animation-delay: 0.2s;
}

.dots-loader span:nth-child(3) {
    animation-delay: 0.4s;
}

/* Attached Files Mobile */
.attached-files-mobile {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 0.75rem;
}

.attached-files-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.file-count {
    font-size: 0.875rem;
    color: #94a3b8;
}

.btn-clear-all {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.btn-clear-all:hover {
    background: rgba(239, 68, 68, 0.1);
}

.attached-files-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.file-icon {
    color: #3b82f6;
}

.file-name {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.remove-file {
    color: #ef4444;
    cursor: pointer;
    font-size: 0.75rem;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.remove-file:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* Mobile Loading Overlay */
.mobile-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-content {
    text-align: center;
    padding: 2rem;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(59, 130, 246, 0.3);
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

.loading-text {
    color: #f0f6fc;
    font-size: 1rem;
    margin: 0;
}

/* Mobile Error Toast */
.mobile-error-toast {
    position: fixed;
    top: 80px;
    left: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
    z-index: 10000;
    transform: translateY(-100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-error-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.error-content {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Synthesis AI Selector */
.synthesis-selector-mobile {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.synthesis-label {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #94a3b8;
    font-weight: 500;
}

.synthesis-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: #f0f6fc;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    min-width: 100px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.synthesis-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.synthesis-select option {
    background: #1e1e2e;
    color: #f0f6fc;
    padding: 0.5rem;
}

@media (max-width: 576px) {
    .thinking-header span {
        font-size: 0.9rem;
    }
    
    .synthesis-header span {
        font-size: 0.9rem;
    }
    
    .ai-header span {
        font-size: 0.85rem;
    }
    
    .status-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
}

/* Chat Message Styling - Grey and Dark Blue Theme */
.chat-message {
    margin-bottom: 1.5rem;
}

.message-bubble {
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-size: 0.95rem;
    line-height: 1.6;
}

.user-message .message-bubble {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    margin-left: auto;
    margin-right: 0;
    max-width: 80%;
    border-bottom-right-radius: 0.3rem;
}

.ai-message .message-bubble {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #1d4ed8 100%);
    color: white;
    margin-left: 0;
    margin-right: auto;
    max-width: 95%;
    border: 1px solid #3b82f6;
}

/* Deep Research Styling */
.thinking-bubble {
    background: linear-gradient(135deg, #1f2937 0%, #374151 50%, #1e3a8a 100%);
    border: 1px solid #4b5563;
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.1);
}

.research-step {
    border-left: 3px solid #fbbf24;
    padding-left: 1rem;
    margin-left: 1rem;
}

.step-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1f2937;
    font-size: 1.1rem;
}

.thinking-indicator-step {
    background: rgba(75, 85, 99, 0.2);
    border: 1px solid rgba(107, 114, 128, 0.3);
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-left: 2rem;
}

.deep-thinking-result {
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.3) 0%, rgba(75, 85, 99, 0.3) 100%);
    border: 1px solid rgba(156, 163, 175, 0.3);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-left: 2rem;
}

.ai-icon.thinking {
    animation: thinkingPulse 2s ease-in-out infinite;
}

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

.thinking-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid rgba(59, 130, 246, 0.2);
    padding-bottom: 0.5rem;
}

.thinking-indicator {
    display: flex;
    align-items: center;
}

.thinking-dots {
    display: flex;
    gap: 4px;
}

.thinking-dots span {
    width: 6px;
    height: 6px;
    background: #3b82f6;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

.thinking-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.thinking-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes pulse {
    0%, 80%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    40% {
        opacity: 1;
        transform: scale(1);
    }
}

.thinking-step {
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.3) 0%, rgba(75, 85, 99, 0.3) 100%);
    border: 1px solid rgba(156, 163, 175, 0.3);
    border-radius: 0.75rem;
    padding: 1rem;
    transition: all 0.3s ease;
    margin-bottom: 0.75rem;
}

.thinking-step:hover {
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.4) 0%, rgba(75, 85, 99, 0.4) 100%);
    transform: translateX(5px);
    border-color: rgba(156, 163, 175, 0.5);
}

.thinking-step .ai-icon {
    width: 24px;
    height: 24px;
    font-size: 0.875rem;
    opacity: 1;
    transform: scale(1);
}

.status-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-weight: 600;
}

.badge-success {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid #22c55e;
}

.badge-error {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
}

.synthesis-phase {
    border-top: 2px solid rgba(251, 191, 36, 0.3);
    padding-top: 1rem;
    margin-top: 1rem;
}

.synthesis-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.synthesis-indicator {
    display: flex;
    align-items: center;
}

.synthesis-content {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(245, 158, 11, 0.15) 100%);
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-radius: 0.75rem;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.1);
}

.final-synthesis {
    border: 2px solid #fbbf24;
    border-radius: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%);
    margin-left: 2rem;
}

.consensus-result {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(16, 185, 129, 0.15) 100%);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

/* Mobile responsive adjustments for deep research */
@media (max-width: 768px) {
    .research-step {
        margin-left: 0.5rem;
        padding-left: 0.75rem;
    }
    
    .thinking-indicator-step, .deep-thinking-result, .final-synthesis {
        margin-left: 1rem;
    }
    
    .step-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
}

.response-content {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
}

/* Improved readability for mobile */
@media (max-width: 768px) {
    .response-content {
        font-size: 0.85rem;
        line-height: 1.7;
    }
    
    .response-content p {
        margin-bottom: 1rem;
    }
    
    .response-content h1, .response-content h2, .response-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
        margin-top: 1rem;
        color: #fbbf24;
    }
    
    .response-content ul, .response-content ol {
        padding-left: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .response-content li {
        margin-bottom: 0.5rem;
    }
}

.ai-toggle-icon.active {
    opacity: 1;
    transform: scale(1);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.ai-toggle-icon:hover {
    transform: scale(1.05);
}

.ai-toggle-icon.gpt-4o { background: linear-gradient(135deg, #00a2ff, #0078d4); }
.ai-toggle-icon.claude { background: linear-gradient(135deg, #ff6b35, #e55100); }
.ai-toggle-icon.gemini { background: linear-gradient(135deg, #4285f4, #1976d2); }
.ai-toggle-icon.grok { background: linear-gradient(135deg, #28a745, #1e7e34); }
.ai-toggle-icon.llama { background: linear-gradient(135deg, #dc3545, #c82333); }

.ai-toggle-icon i {
    color: white;
    font-size: 18px;
}

.ai-toggle-label {
    font-size: 0.75rem;
    color: #a0a0a0;
    transition: color 0.3s ease;
}

.ai-toggle-item:hover .ai-toggle-label,
.ai-toggle-icon.active + .ai-toggle-label {
    color: #e0e0e0;
}

.query-info {
    text-align: center;
    font-size: 0.875rem;
    color: #a0a0a0;
}

#selectedCount {
    color: #ffc107;
    font-weight: 600;
}

/* Chat Interface Styling */
.chat-container {
    max-height: 75vh;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #1a1a1a;
    border-radius: 12px;
}

.chat-body {
    padding: 0;
}

.chat-message {
    margin-bottom: 1rem;
    padding: 0 1rem;
}

.message-bubble {
    max-width: 85%;
    padding: 1rem;
    border-radius: 12px;
    position: relative;
}

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

.user-bubble {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    margin-left: auto;
    text-align: right;
}

.ai-message {
    display: flex;
    justify-content: flex-start;
}

.ai-bubble {
    background: linear-gradient(135deg, #ffc107, #ff8f00);
    color: #1a1a1a;
    margin-right: auto;
}

.ai-response-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
}

.ai-icons-row {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.ai-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.ai-icon:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.ai-icon.success {
    opacity: 1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.ai-icon.error {
    opacity: 0.5;
    filter: grayscale(50%);
}

.ai-icon.gpt-4o { background: linear-gradient(135deg, #00a2ff, #0078d4); }
.ai-icon.claude { background: linear-gradient(135deg, #ff6b35, #e55100); }
.ai-icon.gemini { background: linear-gradient(135deg, #4285f4, #1976d2); }
.ai-icon.grok { background: linear-gradient(135deg, #28a745, #1e7e34); }
.ai-icon.llama { background: linear-gradient(135deg, #dc3545, #c82333); }

.ai-icon i {
    color: white;
    font-size: 16px;
}

.genghis-title {
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.unified-response {
    line-height: 1.6;
    font-size: 0.95rem;
}

.ai-response-modal .modal-content {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-response-modal .modal-header {
    background: #2a2a2a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-response-modal .modal-title {
    color: #ffc107;
}

.ai-response-modal .modal-body {
    color: #e0e0e0;
    max-height: 60vh;
    overflow-y: auto;
}

.chat-body {
    height: 70vh;
    overflow-y: auto;
    padding: 1rem;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
}

/* Chat Bubbles */
.chat-message {
    margin-bottom: 1.5rem;
    animation: slideInUp 0.3s ease-out;
}

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

.ai-message {
    display: flex;
    justify-content: flex-start;
}

.message-bubble {
    max-width: 80%;
    padding: 1rem 1.5rem;
    border-radius: 20px;
    word-wrap: break-word;
    white-space: pre-wrap;
    position: relative;
}

.user-bubble {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border-bottom-right-radius: 5px;
}

.ai-bubble {
    background: linear-gradient(135deg, #ffc107 0%, #ff8f00 100%);
    color: #000;
    border-bottom-left-radius: 5px;
    border: 2px solid #ff8f00;
}

.ai-bubble.genghis {
    background: linear-gradient(135deg, #ffd700 0%, #ffb300 100%);
    border: 2px solid #ff8f00;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

/* AI Icons in Response */
.ai-icons {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ai-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.ai-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.ai-icon.gpt-4o { background: linear-gradient(135deg, #00a2ff, #0078d4); }
.ai-icon.claude { background: linear-gradient(135deg, #ff6b35, #e55100); }
.ai-icon.gemini { background: linear-gradient(135deg, #4285f4, #1976d2); }
.ai-icon.grok { background: linear-gradient(135deg, #28a745, #1e7e34); }
.ai-icon.llama { background: linear-gradient(135deg, #dc3545, #c82333); }

.ai-icon i {
    color: white;
    font-size: 16px;
}

/* Status indicators */
.ai-icon.processing {
    animation: pulse 1.5s infinite;
}

.ai-icon.success {
    border-color: #28a745;
}

.ai-icon.error {
    border-color: #dc3545;
    opacity: 0.5;
}

/* Individual AI Response Modal */
.ai-response-modal .modal-content {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-response-modal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-response-modal .modal-body {
    color: #e0e0e0;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Custom scrollbar for chat */
.chat-body::-webkit-scrollbar {
    width: 8px;
}

.chat-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.chat-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.chat-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Wax seal pricing */
.wax-seal-price {
    position: relative;
    background: url('/static/images/wax-seal.svg') no-repeat center;
    background-size: contain;
    width: 120px;
    height: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    animation: sealPulse 3s ease-in-out infinite;
}

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

/* Status Indicators for Model Toggles */
.status-indicator {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 4px rgba(16, 185, 129, 0.6);
    transition: all 0.2s ease;
    z-index: 2;
}

.model-toggle:not(.active) .status-indicator {
    background: #6b7280;
    box-shadow: none;
}

.model-toggle {
    position: relative;
}

/* Minimalist user bubbles only */
.message-bubble.user-bubble {
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.4;
    max-width: 85%;
    margin: 8px 0;
    background: #007bff;
    color: white;
    border-radius: 16px;
    align-self: flex-end;
}

/* Plain AI responses without bubbles */
.ai-response-plain {
    padding: 12px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #ffffff;
    margin: 8px 0;
    border-left: 3px solid #e9ecef;
    padding-left: 12px;
}

/* History Sidebar Styles */
.history-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: #1a1d23;
    border-left: 1px solid #2d3748;
    z-index: 1040;
    transition: right 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

.history-sidebar.show {
    right: 0;
}

.history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #2d3748;
    background: #1e2328;
}

.history-title {
    font-weight: 600;
    color: #fff;
    font-size: 16px;
}

.history-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}

.history-loading {
    text-align: center;
    padding: 40px 20px;
    color: #8892b0;
}

.history-loading .loading-spinner.small {
    width: 20px;
    height: 20px;
    margin: 0 auto 12px;
}

.history-empty {
    text-align: center;
    padding: 60px 20px;
    color: #8892b0;
}

.history-empty i {
    font-size: 32px;
    opacity: 0.5;
}

.history-item {
    background: #1e2328;
    border: 1px solid #2d3748;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.history-item:hover {
    background: #252a32;
    border-color: #4a5568;
}

.history-item-question {
    font-weight: 500;
    color: #fff;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.history-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #8892b0;
}

.history-item-time {
    opacity: 0.7;
}

.history-item-models {
    display: flex;
    gap: 4px;
}

.history-model-badge {
    background: #3182ce;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .history-sidebar {
        width: 100vw;
        right: -100vw;
    }
}

/* Full 5 popup styles */
.full5-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    z-index: 1001;
    opacity: 0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.full5-popup.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.full5-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #333;
    background: #252525;
}

.full5-popup-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
}

.full5-popup-close {
    background: none;
    border: none;
    color: #888;
    font-size: 22px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.full5-popup-close:hover {
    background: #333;
    color: #fff;
}

.full5-responses-container {
    padding: 20px;
    max-height: 75vh;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .full5-responses-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1200px) {
    .full5-responses-container {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.full5-model-response {
    background: #252525;
    border-radius: 12px;
    border: 1px solid #333;
    overflow: hidden;
    transition: all 0.2s ease;
}

.full5-model-response:hover {
    border-color: #4a9eff;
    transform: translateY(-2px);
}

.full5-model-header {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #2a2a2a;
    border-bottom: 1px solid #333;
}

.full5-model-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    margin-right: 12px;
    flex-shrink: 0;
}

.full5-model-response.gpt4o .full5-model-icon {
    background: linear-gradient(135deg, #10a37f, #1a7f64);
    color: white;
}

.full5-model-response.claude .full5-model-icon {
    background: linear-gradient(135deg, #cc785c, #9d5a47);
    color: white;
}

.full5-model-response.gemini .full5-model-icon {
    background: linear-gradient(135deg, #4285f4, #34a853);
    color: white;
}

.full5-model-response.grok .full5-model-icon {
    background: linear-gradient(135deg, #1d9bf0, #1a8cd8);
    color: white;
}

.full5-model-response.llama .full5-model-icon {
    background: linear-gradient(135deg, #405de6, #5b51d8);
    color: white;
}

.full5-model-name {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.full5-model-content {
    padding: 15px;
}

.model-response-text {
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 14px;
    white-space: pre-wrap;
}

.error-message {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 13px;
    border-left: 3px solid #ff6b6b;
}

/* Live Data Indicator */
.live-data-indicator {
    display: inline-flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 4px 8px;
    background: rgba(23, 162, 184, 0.1);
    border: 1px solid rgba(23, 162, 184, 0.3);
    border-radius: 6px;
    font-size: 0.8rem;
}

.live-data-indicator i {
    color: #17a2b8;
    margin-right: 4px;
}

.live-data-indicator small {
    color: #17a2b8;
}


/* Full 5 Subscription Popup Styles */
.full5-subscription-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    background: #1a1a1a;
    border: 2px solid #d4a574;
    border-radius: 15px;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.full5-subscription-popup.active {
    opacity: 1;
    visibility: visible;
}

.full5-subscription-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border-bottom: 1px solid #d4a574;
    flex-shrink: 0;
}

.full5-subscription-title {
    color: #d4a574;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: "Cinzel", serif;
}

.full5-subscription-close {
    background: none;
    border: none;
    color: #d4a574;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.full5-subscription-close:hover {
    background: rgba(212, 165, 116, 0.1);
    transform: scale(1.1);
}

.full5-subscription-content {
    padding: 20px;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
    color: #ffffff;
}

.subscription-hero {
    text-align: center;
    margin-bottom: 30px;
}

.subscription-hero h3 {
    color: #d4a574;
    font-family: "Cinzel", serif;
    font-weight: 600;
}

.subscription-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.subscription-option {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 165, 116, 0.3);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.subscription-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 165, 116, 0.1);
    border-color: #d4a574;
}

.subscription-option.daily-pass {
    border: 2px solid #28a745;
    background: rgba(40, 167, 69, 0.05);
    position: relative;
}

.subscription-option.daily-pass::before {
    content: "MOST POPULAR";
    position: absolute;
    top: -12px;
    left: 20px;
    background: #28a745;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.option-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.option-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #d4a574;
}

.option-price {
    margin-bottom: 15px;
}

.price-amount {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
}

.price-period {
    color: #aaa;
    font-size: 0.9rem;
    margin-left: 5px;
}

.option-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.option-features i {
    margin-right: 8px;
}

.subscription-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 165, 116, 0.3);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .full5-subscription-popup {
        width: 95%;
        max-height: 95vh;
    }
    
    .full5-subscription-header {
        padding: 15px;
    }
    
    .full5-subscription-title {
        font-size: 1.2rem;
    }
    
    .full5-subscription-content {
        padding: 15px;
        max-height: calc(95vh - 70px);
    }
    
    .subscription-hero h3 {
        font-size: 1.3rem;
    }
    
    .price-amount {
        font-size: 1.5rem;
    }
    
    .subscription-option {
        padding: 15px;
    }
}

/* Scrollbar styling for webkit browsers */
.full5-subscription-content::-webkit-scrollbar {
    width: 8px;
}

.full5-subscription-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.full5-subscription-content::-webkit-scrollbar-thumb {
    background: #d4a574;
    border-radius: 4px;
}

.full5-subscription-content::-webkit-scrollbar-thumb:hover {
    background: #b8935f;
}

