/* NexoContable Master Styles - Deep Tech Edition */
:root {
    --bg-deep: #020617;
    --bg-card: rgba(15, 23, 42, 0.8);
    --primary: #3b82f6;
    --accent: #0ea5e9;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
    --gradient: linear-gradient(135deg, #1d4ed8 0%, #0ea5e9 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: 'Outfit', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
header {
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.logo img {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: 0.3s;
}

nav a:hover,
nav a.active {
    color: var(--accent);
}

/* Buttons */
.btn-primary {
    background: var(--gradient);
    color: white;
    padding: 12px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: 0.3s;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

/* Index Grid (The Portal) */
.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.portal-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 3rem 2rem;
    border-radius: 24px;
    text-align: center;
    text-decoration: none;
    color: white;
    transition: 0.4s;
}

.portal-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
    background: rgba(59, 130, 246, 0.05);
}

.portal-card i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

/* Plan Cards */
.plan-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2.5rem;
    border-radius: 20px;
    margin-bottom: 2rem;
}

.featured {
    border: 2px solid var(--primary);
}

/* Footer */
footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border);
    margin-top: 4rem;
    text-align: center;
    color: var(--text-muted);
}

/* NexoBot Widget */
.nexo-bot-widget {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    z-index: 10000 !important;
    font-family: 'Inter', sans-serif;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.nexo-bot-launcher {
    width: 65px;
    height: 65px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nexo-bot-launcher:hover {
    transform: scale(1.1);
}

.nexo-bot-launcher i {
    color: white !important;
    font-size: 30px !important;
    display: block !important;
}

.nexo-bot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: #0f172a;
    border: 1px solid var(--border);
    border-radius: 20px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
}

.nexo-bot-window.active {
    display: flex !important;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nexo-bot-header {
    background: var(--gradient);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nexo-bot-header img,
.nexo-bot-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nexo-bot-header h4 {
    margin: 0;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
}

.nexo-bot-header .status {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    display: block;
}

.nexo-bot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.msg {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.msg.bot {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.msg.user {
    background: var(--primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.nexo-bot-options {
    padding: 0 20px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bot-option {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.2s;
}

.bot-option:hover {
    background: var(--primary);
    color: white;
}

.nexo-bot-input-area {
    padding: 15px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
}

.nexo-bot-input-area input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 15px;
    color: white;
    font-size: 0.9rem;
}

.nexo-bot-input-area button {
    background: var(--primary);
    border: none;
    color: white;
    width: 40px;
    border-radius: 10px;
    cursor: pointer;
}