/* ========== DESIGN SYSTEM & CONFIGS ========== */
:root {
    /* Color Palette */
    --bg-dark: #07090e;
    --bg-sidebar: rgba(12, 16, 26, 0.6);
    --bg-card: rgba(18, 24, 38, 0.45);
    --bg-card-hover: rgba(26, 34, 54, 0.65);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.15);

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Branding Colors */
    --bb-red: #e30613;
    --bb-red-glow: rgba(227, 6, 19, 0.35);

    /* Company Accent Colors */
    --color-celushop: #ff4d29;
    --glow-celushop: rgba(255, 77, 41, 0.25);

    --color-litech: #00f0ff;
    --glow-litech: rgba(0, 240, 255, 0.25);

    --color-dycar: #e1ad01;
    --glow-dycar: rgba(225, 173, 1, 0.2);

    --color-eurodycar: #0066ff;
    --glow-eurodycar: rgba(0, 102, 255, 0.2);

    --color-rada: #ffcc00;
    --glow-rada: rgba(255, 204, 0, 0.2);

    --color-global: #a855f7;
    --glow-global: rgba(168, 85, 247, 0.2);

    /* Typography */
    --font-display: 'Bebas Neue', sans-serif;
    --font-ui: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Animations */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========== RESET & BASICS ========== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    height: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

/* ========== PRELOADER ========== */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: #07090e;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-inner {
    text-align: center;
    padding: 2rem;
}

.preloader-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.logo-bb {
    font-family: var(--font-display);
    font-size: 2.8rem;
    letter-spacing: 0.15em;
    color: #fff;
    line-height: 1;
}

.logo-accent {
    color: var(--bb-red);
}

.logo-sub {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    letter-spacing: 0.4em;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-weight: 600;
}

.preloader-line {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    margin: 0 auto 1.5rem;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.preloader-line::after {
    content: '';
    position: absolute;
    left: -50%;
    top: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--bb-red), transparent);
    animation: loading-bar 1.5s infinite var(--ease-out);
}

@keyframes loading-bar {
    0% {
        left: -50%;
    }

    100% {
        left: 100%;
    }
}

.preloader-text {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
}

/* ========== BACKGROUND VISUAL EFFECTS ========== */
.bg-effects {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-glow {
    position: absolute;
    width: clamp(300px, 40vw, 800px);
    height: clamp(300px, 40vw, 800px);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.12;
    mix-blend-mode: screen;
}

.bg-glow-1 {
    top: -10%;
    right: 5%;
    background: radial-gradient(circle, var(--color-litech) 0%, transparent 80%);
    animation: float-glow-1 25s infinite alternate ease-in-out;
}

.bg-glow-2 {
    bottom: -10%;
    left: 10%;
    background: radial-gradient(circle, var(--bb-red) 0%, transparent 80%);
    animation: float-glow-2 20s infinite alternate ease-in-out;
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 80%);
}

@keyframes float-glow-1 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-80px, 50px) scale(1.1);
    }
}

@keyframes float-glow-2 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(100px, -60px) scale(0.9);
    }
}

/* ========== PORTAL LAYOUT ========== */
.dashboard {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 360px 1fr;
    min-height: 100vh;
    width: 100%;
}

/* ========== SIDEBAR SYSTEM ========== */
.sidebar {
    background: linear-gradient(180deg, rgba(12, 16, 26, 0.75) 0%, rgba(8, 12, 22, 0.85) 50%, rgba(12, 16, 26, 0.75) 100%);
    border-right: none;
    backdrop-filter: blur(30px) saturate(1.4);
    -webkit-backdrop-filter: blur(30px) saturate(1.4);
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: auto;
    position: relative;
}

/* Soft glowing edge separator instead of hard border */
.sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(227, 6, 19, 0.2) 15%,
        rgba(255, 255, 255, 0.06) 40%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.06) 60%,
        rgba(227, 6, 19, 0.2) 85%,
        transparent 100%
    );
    pointer-events: none;
}

/* Outer glow diffusion for the edge */
.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    right: -1px;
    width: 40px;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(227, 6, 19, 0.03) 0%,
        transparent 100%
    );
    pointer-events: none;
    z-index: -1;
}

/* Custom slim scrollbar for sidebar */
.sidebar::-webkit-scrollbar {
    width: 4px;
}

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

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

.sidebar-header {
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--bb-red), #930007);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 8px 24px rgba(227, 6, 19, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-icon svg {
    width: 22px;
    height: 22px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 1.7rem;
    letter-spacing: 0.08em;
    line-height: 0.9;
}

.brand-accent {
    color: var(--bb-red);
}

.brand-portal {
    font-family: var(--font-ui);
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    color: var(--text-muted);
    font-weight: 700;
    margin-top: 0.25rem;
}

/* Sidebar Widgets (Control Cards) */
.control-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0.008) 100%);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    padding: 1.15rem 1.1rem;
    margin-bottom: 1rem;
    transition: var(--transition-smooth);
    position: relative;
}

.control-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, transparent 50%, rgba(255, 255, 255, 0.02) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

.control-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.015) 100%);
    border-color: rgba(255, 255, 255, 0.08);
}

.control-card:hover::before {
    opacity: 1;
}

/* Digital Clock Widget */
.widget-clock {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(227, 6, 19, 0.04) 0%, rgba(255, 255, 255, 0.008) 100%);
    border-color: rgba(227, 6, 19, 0.1);
}

.clock-time {
    font-family: var(--font-ui);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    line-height: 1;
    background: linear-gradient(135deg, #fff 60%, rgba(227, 6, 19, 0.6));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.clock-date {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.clock-greeting {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 0.6rem;
}

/* Search Engine Widget */
.widget-search {
    display: flex;
    flex-direction: column;
}

.search-label {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-ui);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.search-shortcut {
    opacity: 0.7;
    background: rgba(255, 255, 255, 0.05);
    padding: 1px 6px;
    border-radius: 4px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
    pointer-events: none;
    transition: var(--transition-fast);
}

.widget-search:focus-within .search-icon {
    color: var(--bb-red);
}

#search-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.7rem 0.7rem 0.7rem 2.5rem;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

#search-input::placeholder {
    color: var(--text-muted);
}

#search-input:focus {
    outline: none;
    border-color: rgba(227, 6, 19, 0.4);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 15px rgba(227, 6, 19, 0.1);
}

.search-clear-btn {
    position: absolute;
    right: 10px;
    width: 20px;
    height: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    transition: var(--transition-fast);
}

.search-clear-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

.search-clear-btn svg {
    width: 12px;
    height: 12px;
}

.search-results-info {
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    display: none;
}

/* Status Monitor Widget */
.widget-status {
    display: flex;
    flex-direction: column;
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-ui);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 0.5rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.65rem;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 2px 8px;
    border-radius: 100px;
}

.ping-dot {
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 50%;
    animation: ping-pulse 1.8s infinite;
}

@keyframes ping-pulse {
    0% {
        transform: scale(0.9);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1);
        opacity: 0.8;
        box-shadow: 0 0 0 6px transparent;
    }

    100% {
        transform: scale(0.9);
        opacity: 0;
    }
}

.status-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 500;
}

.status-indicator.online {
    color: #34d399;
}

.status-indicator.online span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #34d399;
}

.status-indicator.speed {
    color: var(--text-muted);
}

/* Global Core Button Links */
.sidebar-globals {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: auto;
    margin-bottom: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.global-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.7rem;
    border-radius: 10px;
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    transition: var(--transition-smooth);
}

.btn-outline-glow {
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(255, 255, 255, 0.015);
    color: var(--text-secondary);
}

.btn-outline-glow:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-outline-glow svg {
    width: 16px;
    height: 16px;
}

.btn-webmail {
    background: linear-gradient(135deg, rgba(227, 6, 19, 0.85) 0%, rgba(153, 0, 5, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    box-shadow: 0 2px 10px rgba(227, 6, 19, 0.12);
}

.btn-webmail:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(227, 6, 19, 0.3);
    background: linear-gradient(135deg, rgba(255, 23, 38, 0.9) 0%, rgba(179, 0, 6, 0.95) 100%);
}

.btn-webmail svg {
    width: 16px;
    height: 16px;
}

/* Sidebar Footer */
.sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 0.85rem;
    text-align: center;
    font-size: 0.65rem;
    color: var(--text-muted);
    opacity: 0.7;
}

.footer-sub {
    margin-top: 0.15rem;
    font-size: 0.6rem;
    opacity: 0.5;
}

/* ========== MAIN CONTENT AREA ========== */
.main-content {
    padding: clamp(2rem, 4vw, 3.5rem);
    overflow-y: auto;
    height: 100vh;
}

.section-title-wrapper {
    margin-bottom: 2rem;
    border-left: 3px solid var(--bb-red);
    padding-left: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    letter-spacing: 0.05em;
    color: #fff;
    line-height: 1.1;
}

.section-subtitle {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: block;
    margin-top: 0.25rem;
    font-weight: 500;
}

/* ========== SYSTEMS GRID SYSTEM ========== */
.systems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.8rem;
}

.company-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.8rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.company-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.015) 0%, transparent 100%);
    pointer-events: none;
}

.card-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 100% 0%, var(--card-glow-color, transparent) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.company-card:hover {
    border-color: var(--card-border-hover, var(--border-hover));
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4),
        0 0 30px var(--card-shadow-color, transparent);
}

.company-card:hover .card-glow {
    opacity: 1;
}

/* Card Header */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.8rem;
    position: relative;
    z-index: 2;
}

.brand-tag {
    font-family: var(--font-ui);
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.2rem;
}

.company-title-text {
    font-family: var(--font-display);
    font-size: 2.1rem;
    letter-spacing: 0.08em;
    color: #fff;
    line-height: 1;
}

.company-icon-glow {
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.company-icon-glow svg {
    width: 22px;
    height: 22px;
    transition: transform 0.4s ease;
}

.company-card:hover .company-icon-glow {
    background: var(--card-accent-color);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 0 15px var(--card-shadow-color);
}

.company-card:hover .company-icon-glow svg {
    transform: scale(1.1) rotate(5deg);
}

/* Links List within Cards */
.card-links-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    z-index: 2;
}

.link-item {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    transition: var(--transition-smooth);
    position: relative;
}

.link-main {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.9rem;
    overflow: hidden;
}

.link-icon-wrapper {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.link-icon-wrapper svg {
    width: 18px;
    height: 18px;
}

.link-details {
    display: flex;
    flex-direction: column;
}

.link-title {
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    letter-spacing: 0.02em;
    line-height: 1.2;
    transition: var(--transition-fast);
}

.link-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
    transition: var(--transition-fast);
}

/* Hover effects for link items */
.link-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

.link-item:hover .link-icon-wrapper {
    background: var(--card-accent-color);
    color: #fff;
    box-shadow: 0 0 10px var(--card-shadow-color);
    border-color: transparent;
}

.link-item:hover .link-title {
    color: var(--card-accent-color);
}

.link-item:hover .link-desc {
    color: var(--text-primary);
}

/* Pin Buttons */
.pin-btn {
    padding: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition-fast);
    border-left: 1px solid rgba(255, 255, 255, 0.02);
}

.pin-btn:hover {
    color: #ffd700;
    transform: scale(1.1);
}

.pin-btn.active {
    color: #ffd700;
}

.pin-btn.active svg {
    fill: #ffd700;
}

.pin-btn svg {
    width: 16px;
    height: 16px;
}

/* ========== CARD SPECIFIC THEMING ========== */
.card-celushop {
    --card-glow-color: rgba(255, 77, 41, 0.15);
    --card-border-hover: rgba(255, 77, 41, 0.4);
    --card-accent-color: var(--color-celushop);
    --card-shadow-color: var(--glow-celushop);
}

.card-celushop .brand-tag {
    color: var(--color-celushop);
}

.card-litech {
    --card-glow-color: rgba(0, 240, 255, 0.15);
    --card-border-hover: rgba(0, 240, 255, 0.4);
    --card-accent-color: var(--color-litech);
    --card-shadow-color: var(--glow-litech);
}

.card-litech .brand-tag {
    color: var(--color-litech);
}

.card-dycar {
    --card-glow-color: rgba(225, 173, 1, 0.12);
    --card-border-hover: rgba(225, 173, 1, 0.4);
    --card-accent-color: var(--color-dycar);
    --card-shadow-color: var(--glow-dycar);
}

.card-dycar .brand-tag {
    color: var(--color-dycar);
}

.card-eurodycar {
    --card-glow-color: rgba(0, 102, 255, 0.12);
    --card-border-hover: rgba(0, 102, 255, 0.4);
    --card-accent-color: var(--color-eurodycar);
    --card-shadow-color: var(--glow-eurodycar);
}

.card-eurodycar .brand-tag {
    color: var(--color-eurodycar);
}

.card-rada {
    --card-glow-color: rgba(255, 204, 0, 0.12);
    --card-border-hover: rgba(255, 204, 0, 0.4);
    --card-accent-color: var(--color-rada);
    --card-shadow-color: var(--glow-rada);
}

.card-rada .brand-tag {
    color: var(--color-rada);
}

/* ========== ACCESOS FRECUENTES / FAVORITES SECTION ========== */
.fav-section {
    margin-bottom: 2.8rem;
}

.fav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.2rem;
}

.fav-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    position: relative;
    transition: var(--transition-smooth);
}

.fav-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.fav-card-main {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
}

.fav-card-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.fav-card-icon svg {
    width: 16px;
    height: 16px;
}

.fav-card-details {
    display: flex;
    flex-direction: column;
}

.fav-card-title {
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
    line-height: 1.2;
}

.fav-card-company {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.1rem;
}

.fav-unpin-btn {
    padding: 0.8rem;
    color: #ffd700;
    transition: var(--transition-fast);
}

.fav-unpin-btn:hover {
    color: var(--text-muted);
    transform: scale(1.1);
}

.fav-unpin-btn svg {
    width: 14px;
    height: 14px;
    fill: #ffd700;
}

.fav-card:hover .fav-card-icon {
    background: var(--fav-accent, var(--bb-red));
    color: #fff;
    box-shadow: 0 0 10px var(--fav-glow, var(--bb-red-glow));
}

.fav-card:hover .fav-card-title {
    color: var(--fav-accent, #fff);
}

/* ========== DYNAMIC SEARCH INTERACTION STATES ========== */
.company-card.search-fade-out {
    opacity: 0.25;
    transform: scale(0.96);
    filter: blur(1px);
    pointer-events: none;
}

.link-item.search-fade-out {
    opacity: 0.15;
    transform: scale(0.98);
}

.link-item.search-highlight {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--card-accent-color);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    animation: pulse-border 1.5s infinite alternate;
}

.link-item.search-highlight .link-title {
    color: var(--card-accent-color);
    font-weight: 700;
}

@keyframes pulse-border {
    0% {
        border-color: rgba(255, 255, 255, 0.1);
    }

    100% {
        border-color: var(--card-accent-color);
    }
}

.search-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 5rem 2rem;
    background: rgba(255, 255, 255, 0.01);
    border: 1px dashed rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    margin-top: 1rem;
    animation: fadeInUp 0.4s ease;
}

.empty-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    color: var(--text-muted);
}

.empty-icon svg {
    width: 100%;
    height: 100%;
}

.search-empty-state h3 {
    font-family: var(--font-ui);
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.search-empty-state p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.8rem;
}

.btn-clear-search {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.6rem 1.5rem;
    border-radius: 100px;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    transition: var(--transition-fast);
}

.btn-clear-search:hover {
    background: var(--bb-red);
    border-color: var(--bb-red);
    box-shadow: 0 5px 15px rgba(227, 6, 19, 0.3);
}

/* ========== TOAST / SYSTEM NOTIFICATION ========== */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 380px;
}

.toast {
    background: rgba(18, 24, 38, 0.95);
    border-left: 4px solid var(--bb-red);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    animation: toast-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transition: var(--transition-smooth);
}

.toast.toast-remove {
    animation: toast-out 0.4s cubic-bezier(0.6, -0.28, 0.735, 0.045) forwards;
}

.toast-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.toast-icon svg {
    width: 100%;
    height: 100%;
}

.toast-success {
    border-left-color: #10b981;
}

.toast-success .toast-icon {
    color: #10b981;
}

.toast-info {
    border-left-color: var(--color-litech);
}

.toast-info .toast-icon {
    color: var(--color-litech);
}

.toast-body {
    display: flex;
    flex-direction: column;
}

.toast-title {
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 0.85rem;
}

.toast-message {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.1rem;
}

@keyframes toast-in {
    0% {
        transform: translateY(50px) scale(0.9);
        opacity: 0;
    }

    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes toast-out {
    0% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(100px) scale(0.9);
        opacity: 0;
    }
}

/* ========== RESPONSIVE MEDIA QUERIES ========== */
@media (max-width: 1200px) {
    .dashboard {
        grid-template-columns: 320px 1fr;
    }

    .sidebar {
        padding: 1.8rem 1.5rem;
    }
}

@media (max-width: 992px) {
    .dashboard {
        grid-template-columns: 1fr;
    }

    .sidebar {
        height: auto;
        position: relative;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
        padding: 2rem;
    }

    .sidebar::after {
        display: none;
    }

    .sidebar::before {
        display: none;
    }

    .main-content {
        height: auto;
        padding: 2rem;
    }

    .sidebar-globals {
        margin-top: 1.5rem;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .global-link-btn {
        flex: 1;
        min-width: 150px;
    }
}

@media (max-width: 576px) {
    .sidebar {
        padding: 1.5rem;
    }

    .main-content {
        padding: 1.5rem;
    }

    .sidebar-globals {
        flex-direction: column;
    }

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

    .company-card {
        padding: 1.3rem;
    }

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