* {
    box-sizing: border-box;
}

:root {
    --bg-dark: #09090b;
    /* Zinc 950 */
    --bg-panel: #18181b;
    /* Zinc 900 */
    --bg-subtle: #27272a;
    /* Zinc 800 */

    --border: #27272a;

    /* Professional Palette - Satan Red */
    --primary: #ef4444;
    /* Red 500 */
    --primary-hover: #dc2626;
    /* Red 600 */
    --primary-dim: rgba(239, 68, 68, 0.1);

    --accent: #f87171;
    /* Red 400 */

    --text: #ffffff;
    --text-dim: #a1a1aa;
    /* Zinc 400 */

    --success: #10b981;
    --danger: #ef4444;

    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    margin: 0;
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    height: 100vh;
    overflow: hidden;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
    background: #000;
}

/* Global Animated Background - Nether Nebula (Noir & Rouge profond) */
.background-animate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, #0f0000, #000000);
    overflow: hidden;
}

.background-animate::before {
    content: '';
    position: absolute;
    width: 250%;
    height: 250%;
    top: -75%;
    left: -75%;
    background:
        radial-gradient(circle at 30% 30%, rgba(220, 38, 38, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 70% 60%, rgba(153, 27, 27, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 40% 70%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
    filter: blur(60px);
    animation: nebula-shift 25s ease-in-out infinite alternate;
}

@keyframes nebula-shift {
    from {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    to {
        transform: translate(-5%, -5%) rotate(8deg) scale(1.1);
    }
}

.ember {
    position: absolute;
    background: radial-gradient(circle, #dc2626 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(1px);
    opacity: 0.3;
    animation: ember-float linear infinite;
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.2);
}

@keyframes ember-float {
    0% {
        transform: translateY(0) translateX(0) scale(0.5);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-80vh) translateX(100px) scale(1.2);
        opacity: 0;
    }
}

.glow-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.03) 0%, transparent 70%);
    animation: core-pulse 8s ease-in-out infinite;
}

@keyframes core-pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.8;
    }
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.025em;
}

p {
    line-height: 1.6;
    color: var(--text-dim);
}

/* --- UTILS --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    text-decoration: none;
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--bg-subtle);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: #3f3f46;
}

.btn-new-chat {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
    margin-bottom: 30px;
    width: 100%;
    justify-content: flex-start;
    white-space: nowrap;
}

.sidebar.collapsed .btn-new-chat {
    justify-content: center;
    padding: 12px 0;
}

.sidebar.collapsed .btn-new-chat span,
.sidebar.collapsed .btn-new-chat text {
    display: none;
}

.sidebar.collapsed .btn-new-chat {
    width: 44px;
    height: 44px;
    margin: 0 auto 30px auto;
    border-radius: 50%;
    padding: 0;
}

.sidebar.collapsed .btn-new-chat i {
    margin: 0;
}

/* Hide the text content of the button specifically if it's node text */
.sidebar.collapsed .btn-new-chat {
    font-size: 0;
}

.sidebar.collapsed .btn-new-chat i {
    font-size: 16px;
}

.btn-new-chat:hover {
    background: #dc2626;
}

/* --- LAYOUT --- */
.app-container {
    display: flex;
    height: 100vh;
}

/* --- SIDEBAR REWORK --- */
.sidebar {
    width: 260px;
    background: #09090b;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 20px;
    z-index: 20;
    transition: width 0.3s ease, padding 0.3s ease;
    overflow-x: hidden;
    position: relative;
    min-width: 80px;
    max-width: 500px;
}

.sidebar.is-resizing {
    transition: none !important;
    user-select: none;
}

.sidebar.collapsed {
    width: 80px;
    padding: 20px 10px;
}

.sidebar-resizer {
    position: absolute;
    top: 0;
    right: -5px;
    /* Half centered on the edge */
    width: 10px;
    height: 100%;
    cursor: col-resize;
    z-index: 50;
    transition: background 0.2s;
}

.sidebar-resizer:hover,
.sidebar.is-resizing .sidebar-resizer {
    background: rgba(239, 68, 68, 0.3);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    color: var(--text);
    font-weight: 700;
    font-size: 1.1em;
    min-height: 24px;
}

.sidebar.collapsed .brand {
    justify-content: center;
    gap: 0;
}

.sidebar.collapsed .brand span {
    display: none;
}

.sidebar.collapsed .brand i#sidebar-toggle {
    margin: 0 !important;
    position: absolute;
    right: 10px;
    top: 25px;
}

.sidebar.collapsed .brand img {
    margin: 0 auto;
}

.brand i {
    color: var(--primary);
    font-size: 1.25em;
}

.sidebar-section {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
}

.section-title {
    color: #a1a1aa;
    font-size: 0.75em;
    font-weight: 700;
    margin-bottom: 12px;
    padding-left: 12px;
    white-space: nowrap;
}

.sidebar.collapsed .section-title {
    display: none;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: #a1a1aa;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.2s;
    background: transparent;
    border: none;
    width: 100%;
    justify-content: flex-start;
    font-size: 0.95em;
    cursor: pointer;
    white-space: nowrap;
}

.sidebar.collapsed .nav-btn {
    justify-content: center;
    padding: 10px 0;
}

/* If the text is just text nodes, we need to hide it */
.sidebar.collapsed .nav-btn {
    font-size: 0;
}

.sidebar.collapsed .nav-btn i {
    font-size: 20px;
    margin: 0;
}

.sidebar.collapsed .history-list {
    text-align: center;
}

.sidebar.collapsed #history-container i {
    display: block;
    margin: 0 auto;
}

.sidebar.collapsed .history-item i.ph-dots-three {
    display: none;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.nav-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-btn.active i {
    color: var(--primary);
}

/* Specific style for history items to keep dots at the end */
.history-item {
    justify-content: space-between !important;
}

.status-indicator {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85em;
    color: var(--text-dim);
    padding: 12px;
    background: var(--bg-panel);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: 0.2s;
}

.status-indicator:hover {
    background: var(--bg-subtle);
    border-color: #3f3f46;
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
}

.sidebar-footer {
    margin-top: auto;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.user-profile-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 0;
    padding: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
}

/* --- THINKING INDICATOR UPGRADE --- */
.thinking-container {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.red-spinner {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 0, 0, 0.2);
    border-top: 3px solid #ff0000;
    border-radius: 50%;
    animation: spin-red 0.8s linear infinite;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

@keyframes spin-red {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.thinking-timer {
    color: #ff0000;
    font-weight: bold;
    min-width: 25px;
}

.avatar-mini {
    width: 32px;
    height: 32px;
    background: #27272a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a1a1aa;
}

.user-info-mini {
    display: flex;
    flex-direction: column;
}

.sidebar.collapsed .user-info-mini {
    display: none;
}

.sidebar.collapsed .user-profile-mini {
    justify-content: center;
    padding: 8px 0;
}

.username-mini {
    color: white;
    font-size: 0.9em;
    font-weight: 600;
}

.plan-mini {
    color: #ef4444;
    font-size: 0.8em;
}

/* --- MAIN CONTENT & CHAT --- */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.chat-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    overflow-x: hidden;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    color: #a1a1aa;
    font-size: 0.9em;
    z-index: 10;
}

.model-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: white;
    cursor: pointer;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-share {
    background: transparent;
    border: 1px solid var(--border);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s;
}

.btn-share:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* --- CHAT AREA --- */
.chat-container {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(12px);
    z-index: 10;
}

.badge {
    background: var(--primary-dim);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.75em;
    font-weight: 600;
}

/* Chat History */
.chat-area {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.message {
    display: flex;
    gap: 15px;
    max-width: 95%;
    margin-bottom: 24px;
    animation: fadeIn 0.3s ease-out;
}

.message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message.ai {
    align-self: flex-start;
}

.avatar {
    width: 36px;
    height: 36px;
    background: #09090b;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid rgba(239, 68, 68, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.bubble {
    font-size: 0.9rem;
    color: var(--text);
    padding: 10px 16px;
    border-radius: 14px;
    background: rgba(15, 15, 18, 0.7);
    border: 1px solid rgba(239, 68, 68, 0.15);
    line-height: 1.5;
    overflow-wrap: anywhere;
    word-break: break-word;
    position: relative;
    backdrop-filter: blur(12px);
}

.bubble pre {
    background: #000 !important;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 10px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bubble code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.85em;
}

.message.user .bubble {
    background: rgba(239, 68, 68, 0.1);
    border-radius: 14px;
    border-bottom-right-radius: 4px;
    border: 1px solid rgba(239, 68, 68, 0.3);
    max-width: fit-content;
    color: white;
}

.message.ai .bubble {
    background: rgba(20, 20, 23, 0.85);
    border-radius: 14px;
    border-top-left-radius: 4px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    flex: 1;
    max-width: 850px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* --- SATANGPT PREMIUM MARKDOWN STYLE (ONLY FOR OSINT) --- */
.premium-message h1 {
    color: #ef4444;
    font-size: 1.6em;
    font-weight: 900;
    margin: 20px 0 15px 0;
    text-shadow: 0 0 15px rgba(239, 68, 68, 0.6);
    border-bottom: 2px solid rgba(239, 68, 68, 0.3);
    padding-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.premium-message h2,
.premium-message h3,
.premium-message h4 {
    color: #ff3333;
    font-size: 1.25em;
    font-weight: 800;
    margin: 25px 0 10px 0;
    text-shadow: 0 0 10px rgba(255, 51, 51, 0.4);
    background: rgba(239, 68, 68, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-block;
}

.premium-message hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.5), transparent);
    margin: 20px 0;
}

.premium-message ol,
.premium-message ul {
    padding-left: 25px;
    margin: 15px 0;
}

.premium-message li {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #f4f4f5;
}

.premium-message ol li::marker {
    color: #ff0000;
    font-weight: 900;
    font-size: 1.1em;
}

.premium-message ul li::marker {
    color: #ff0000;
    content: "• ";
    font-size: 1.4em;
}

.premium-message strong {
    color: #ffffff;
    font-weight: 700;
    background: rgba(239, 68, 68, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* --- CHAT AREA SCROLLING & PADDING --- */
.chat-area {
    flex: 1;
    overflow-y: auto;
    padding: 20px 40px 140px 40px;
    /* Large bottom padding for the floating input bar */
    display: flex;
    flex-direction: column;
}

/* Scrollbar Style */
.chat-area::-webkit-scrollbar {
    width: 6px;
}

.chat-area::-webkit-scrollbar-track {
    background: transparent;
}

.chat-area::-webkit-scrollbar-thumb {
    background: rgba(239, 68, 68, 0.1);
    border-radius: 10px;
}

.chat-area::-webkit-scrollbar-thumb:hover {
    background: rgba(239, 68, 68, 0.3);
}

.chat-input-area {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
    z-index: 100;
}

.input-wrapper {
    background: rgba(18, 18, 21, 0.8);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 30px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
}

.input-wrapper:focus-within {
    border-color: #ef4444;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.1);
}

#user-input,
#osint-input {
    background: transparent !important;
    border: none !important;
    color: var(--text);
    flex: 1;
    height: 48px;
    line-height: 48px;
    padding: 0 10px;
    font-size: 1em;
    outline: none;
    margin-bottom: 0 !important;
}

#send-btn {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.2s;
}

#send-btn:hover {
    background: #18181b;
    border-color: #3f3f46;
}

/* --- INPUT AREA CENTERED --- */
.input-container-centered {
    padding: 0 20px 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 20;
}

.input-pill {
    background: #18181b;
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.2s;
}

.input-pill:focus-within {
    border-color: #52525b;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.5);
}

.input-pill input {
    background: transparent;
    border: none;
    color: white;
    flex: 1;
    font-size: 1em;
    outline: none;
    padding: 8px;
}

.icon-btn {
    background: transparent;
    border: none;
    color: #a1a1aa;
    font-size: 1.25em;
    cursor: pointer;
    padding: 0 5px;
    height: 48px;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.right-icons {
    display: flex;
    align-items: center;
    gap: 4px;
}

.send-btn-round {
    background: #000000;
    color: white;
    border: 1px solid #27272a;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    transition: 0.2s;
}

.send-btn-round:hover {
    background: #18181b;
    border-color: #3f3f46;
}

/* --- SETTINGS --- */
.settings-container {
    max-width: 600px;
    margin: 60px auto;
    padding: 0 24px;
}

.settings-panel {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    padding: 32px;
    border-radius: var(--radius-lg);
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9em;
    font-weight: 500;
    color: var(--text-dim);
}

input[type="text"],
input[type="password"],
select {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 12px;
    border-radius: var(--radius-md);
    width: 100%;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    margin-bottom: 20px;
    font-size: 0.95em;
}

input:focus,
select:focus {
    border-color: var(--primary);
    outline: none;
}

/* --- SUBSCRIPTION TAB RE-DESIGN --- */
.sub-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.sub-header-icon {
    width: 48px;
    height: 48px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    font-size: 1.5em;
}

.sub-header-text h3 {
    margin: 0;
    font-size: 1.25em;
    font-weight: 700;
    color: white;
}

.sub-header-text p {
    margin: 4px 0 0 0;
    font-size: 0.9em;
    color: var(--text-dim);
}

.subscription-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    transition: 0.2s;
}

.subscription-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.sub-card-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sub-card-icon {
    width: 56px;
    height: 56px;
    background: rgba(239, 68, 68, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    font-size: 1.8em;
}

.sub-card-info h4 {
    margin: 0;
    font-size: 1.4em;
    font-weight: 800;
    color: white;
}

.sub-card-info p {
    margin: 2px 0 0 0;
    font-size: 0.85em;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sub-card-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.sub-badge {
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sub-badge.active {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.sub-date {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.85em;
    color: var(--text);
    border: 1px solid var(--border);
}

.activation-section {
    margin-top: 48px;
}

.activation-section h3 {
    font-size: 1em;
    color: var(--text);
    margin-bottom: 16px;
}

.activation-box {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
}

/* --- ANIMATIONS --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- LANDING SPECIFIC --- */
.hero-modern {
    padding: 160px 20px 120px;
    text-align: center;
    background: transparent;
}

/* --- TABS VISIBILITY --- */
.tab-content {
    display: none;
    height: 100%;
    flex-direction: column;
    width: 100%;
}

.tab-content.active {
    display: flex;
    /* or block depending on child */
    animation: fadeIn 0.3s ease;
}

/* --- TOAST NOTIFICATION --- */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(9, 9, 11, 0.95);
    border: 1px solid var(--border);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.95em;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* --- CUSTOM SCROLLBAR --- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* --- CONTEXT MENU --- */
.context-menu {
    position: absolute;
    background: #18181b;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 100;
    min-width: 120px;
    overflow: hidden;
    display: none;
}

.context-menu.show {
    display: block;
    animation: fadeIn 0.1s ease;
}

.context-menu-item {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-size: 0.9em;
    cursor: pointer;
    transition: background 0.2s;
}

.context-menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.context-menu-item.danger {
    color: #ef4444;
}

.context-menu-item.danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* --- OSINT CHIPS --- */
.osint-chip {
    padding: 8px 16px;
    background: #18181b;
    border: 1px solid var(--border);
    border-radius: 20px;
    color: #a1a1aa;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.osint-chip:hover {
    border-color: #52525b;
    color: white;
}

.osint-chip.active {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

/* --- PREMIUM MESSAGES (OSINT) --- */
.premium-message h1 {
    color: #ff0000;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.8), 0 0 20px rgba(255, 0, 0, 0.4);
    text-transform: uppercase;
    font-size: 1.4rem;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 0, 0, 0.3);
    padding-bottom: 5px;
    letter-spacing: 1px;
    font-weight: 700;
}

.premium-message h2 {
    color: #ef4444;
    font-size: 1.1rem;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.premium-message pre {
    border-left: 3px solid #ff0000 !important;
    background: rgba(255, 0, 0, 0.05) !important;
    padding: 12px !important;
    border-radius: 4px;
}

.premium-message {
    border: 1px solid rgba(255, 0, 0, 0.2) !important;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.8) 0%, rgba(10, 10, 10, 0.9) 100%) !important;
}

.premium-message ul {
    list-style-type: none;
    padding-left: 10px;
}

.premium-message ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}

.premium-message ul li::before {
    content: "•";
    color: #ef4444;
    font-size: 1.5em;
    position: absolute;
    left: 0;
    top: -5px;
}

/* --- THINKING INDICATOR --- */
.thinking-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
}

.red-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 0, 0, 0.1);
    border-top: 2px solid #ff0000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

.thinking-timer {
    font-weight: 700;
    color: #ff0000;
    margin-left: 4px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Red Glow Refinements */
.premium-message h1 {
    color: #ff0000 !important;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.8), 0 0 20px rgba(255, 0, 0, 0.4) !important;
}

.premium-message strong {
    color: #ef4444 !important;
    font-weight: 700;
}

.premium-message ul li::before {
    color: #ef4444 !important;
}

.premium-message a {
    color: #ff4444 !important;
    text-decoration: underline;
}