/* Removes the blue outline from Blazor navigation and focus events */
*:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Specifically for headers that Blazor targets during navigation */
h1,
h2,
h3,
h4,
h5,
h6 {
    outline: none !important;
}

/* ------------------------------------------------
 * DESIGN TOKENS
 * ------------------------------------------------ */
:root {
    --primary-color: #FFFFFF;
    --secondary-color: #1B1B1B66;
    --accent-color: #f78c1d;
    --accent-color-red: #fc0400;
    --bg-main: #000000;
    --bg-card: #1B1B1B66;
    --text-color: #C2C2C2;
    --divider-color: #FFFFFF1A;
    --font-main: "DM Sans", sans-serif;
    --font-accent: "Anta", system-ui;
    --border-radius-lg: 30px;
    --transition-base: all 0.4s ease-in-out;

    --bs-primary: var(--accent-color);
    --bs-body-bg: var(--bg-main);
    --bs-body-color: var(--text-color);
    --bs-body-font-family: var(--font-main);
    --bs-heading-color: var(--primary-color);
    --bs-border-color: var(--divider-color);
}

/* ------------------------------------------------
 * TYPOGRAPHY & HEADINGS
 * ------------------------------------------------ */
body {
    font-family: var(--bs-body-font-family);
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1,
.h1,
.display-1 {
    font-size: 5rem !important;
}

h2,
.h2,
.display-2 {
    font-size: 4rem !important;
}

h3,
.h3,
.display-3 {
    font-size: 3rem !important;
}

h4,
.h4,
.display-4 {
    font-size: 2.2rem !important;
}

h5,
.h5,
.display-5 {
    font-size: 1.8rem !important;
}

h6,
.h6,
.display-6 {
    font-size: 1.2rem !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
[class^="display-"] {
    font-family: var(--font-accent) !important;
    color: var(--bs-heading-color) !important;
    text-transform: uppercase;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 0.8rem;
}

.popover-header {
    font-size: 1rem !important;
    background: var(--accent-color)
}

.popover {
    border: 1px solid var(--accent-color);
}

.bs-popover-auto[data-popper-placement^=top] > .popover-arrow::after, .bs-popover-top > .popover-arrow::after {
    border-top-color: var(--accent-color);
}
a {
    color: var(--accent-color) !important;
    text-decoration: none !important;
    transition: var(--transition-base);
    font-size: 1.2rem !important;
}
.nav-link {
    color: var(--text-color) !important;
    text-decoration: none !important;
    transition: var(--transition-base);
    font-size: 1.2rem !important;
}

a:hover {
    color: var(--accent-color) !important;
    opacity: 1;
    font-weight: bold;
}

.nav-link:hover,
.daisi-nav-link:hover,
.daisi-nav-link.active {
    color: var(--accent-color) !important;
    opacity: 1;
}

.text-accent {
    color: var(--accent-color) !important;
}

.text-danger {
    color: var(--accent-color-red) !important;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- BOTONES BASE (ESTRUCTURA) --- */
.btn-primary,
.btn-outline-secondary,
.btn-theme,
.btn-footer-cta,
.btn-outline-glass {
    border-radius: 100px !important;
    padding: 12px 35px !important;
    font-family: var(--font-accent) !important;
    text-transform: uppercase !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base) !important;
    letter-spacing: 0.5px;
}

.btn-primary,
.btn-theme {
    background: linear-gradient(135deg, var(--accent-color) 0%, #d43e08 100%) !important;
    color: #000000 !important;
    border: none !important;
    font-weight: 800 !important;
    box-shadow: 0 0 20px rgba(247, 140, 29, 0.2);
}

.btn-primary:hover,
.btn-theme:hover {
    background: linear-gradient(135deg, #ff9d33 0%, var(--accent-color) 100%) !important;
    color: #000000 !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(247, 140, 29, 0.4);
}

.btn-outline-secondary {
    background-color: transparent !important;
    border: 2px solid var(--primary-color) !important;
    color: var(--accent-color) !important;
    font-weight: 700 !important;
}

.btn-outline-glass {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

.btn-outline-glass:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* ------------------------------------------------
 * LAYOUT & CONTAINERS
 * ------------------------------------------------ */
.container {
    max-width: 1880px !important;
    margin: 0 auto;
}

.pt-160 {
    padding-top: 160px;
}

.pb-100 {
    padding-bottom: 100px;
}

.py-100 {
    padding: 100px 0 !important;
}

.mb-100 {
    margin-bottom: 100px;
}

.z-5 {
    z-index: 5 !important;
}

/* ------------------------------------------------
 * HERO & AURAS
 * ------------------------------------------------ */
.hero-main,
.bg-main,
.section-glow,
.daisi-download-page,
.daisi-news-page,
.daisi-news-detail-page,
.daisi-master-library {
    position: relative;
    overflow: hidden;
    background-color: var(--bg-main);
}

.hero-main {
    background-image: url('../images/circuit.png');
    background-size: cover;
    background-position: top center;
    padding: 200px 0;
}

.daisi-download-page,
.daisi-news-detail-page,
.daisi-master-privacy, .daisi-master-terms {
    background: radial-gradient(circle, rgba(31, 18, 3, 1) 0%, rgba(0, 0, 0, 1) 33%, rgba(41, 24, 0, 1) 100%);
    padding-top: 100px !important;
}

.daisi-news-page {
    background: linear-gradient(239deg, rgba(20, 20, 20, 1) 11%, rgba(20, 5, 5, 1) 38%, rgba(28, 16, 3, 1) 65%, rgba(0, 0, 0, 1) 100%);
    padding-top: 140px !important;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 2;
}

.hero-main::before,
.bg-main::before {
    content: "";
    position: absolute;
    top: -10%;
    right: -2%;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(247, 140, 29, 0.18) 0%, rgba(247, 140, 29, 0) 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    pointer-events: none;
    animation: pulseGlow 8s infinite ease-in-out;
}

/* ------------------------------------------------
 * GLASSMORPHISM & CARDS
 * ------------------------------------------------ */
.glass-card,
.daisi-glass-section,
.daisi-news-card,
.daisi-glass-card,
.daisi-card-glass {
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-base);
}

.glass-card {
    background: rgba(0, 0, 0, 0.75) !important;
    border-radius: 40px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    max-width: 550px;
    margin-left: auto;
}

.daisi-glass-section,
.daisi-news-card,
.daisi-glass-card,
.daisi-card-glass {
    background: rgba(12, 12, 12, 0.65) !important;
    border-radius: 30px;
}

.daisi-news-card:hover,
.daisi-glass-card:hover,
.daisi-card-glass:hover,
.bg-section:hover {
    border-color: var(--accent-color) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    transform: translateY(-8px);
}

.bg-section {
    background-color: var(--secondary-color) !important;
    border: 1px solid var(--divider-color) !important;
    border-radius: var(--border-radius-lg);
    transition: all 0.3s ease;
}

.daisi-glass-item {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    transition: var(--transition-base);
}

.daisi-glass-item:hover {
    border-color: rgba(247, 140, 29, 0.2);
    background: rgba(255, 255, 255, 0.04) !important;
}

.daisi-glass-card, .daisi-glass-section {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-lg); /* 30px */
    overflow: hidden !important; 
    transition: var(--transition-base);
}

/* ------------------------------------------------
 * FORMS & INPUTS
 * ------------------------------------------------ */
.daisi-input {
    background: rgba(0, 0, 0, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border-radius: 12px !important;
    padding: 18px 20px !important;
    width: 100% !important;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.daisi-input:focus {
    border-color: var(--accent-color) !important;
    background: rgba(0, 0, 0, 1) !important;
    box-shadow: 0 0 15px rgba(247, 140, 29, 0.2);
}

/* --- DAISI TOGGLE SWITCH --- */
.daisi-toggle {
    appearance: none;
    -webkit-appearance: none;
    width: 44px !important;
    height: 22px !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 50px !important;
    position: relative;
    cursor: pointer;
    transition: var(--transition-base);
    background-image: none !important;
    /* Removes default bootstrap icon */
}

.daisi-toggle::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background-color: white;
    border-radius: 50%;
    transition: var(--transition-base);
}

.daisi-toggle:checked {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
}

.daisi-toggle:checked::after {
    left: 24px;
    background-color: #000;
}

.toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.daisi-cta-card-v2 {
    min-height: 550px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    /* Fallback color */
}

.video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 1;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 2;
}

.content-wrapper {
    z-index: 5;
}

/* --- DAISI ALERT STYLING --- */
.alert-danger.daisi-alert {
    background: rgba(220, 53, 69, 0.1) !important;
    backdrop-filter: blur(10px);
    border-left: 4px solid var(--accent-color-red) !important;
    color: #fff !important;
    border-radius: 12px;
    font-family: var(--font-accent);
}

    .alert-danger.daisi-alert i {
        color: var(--accent-color-red);
        filter: drop-shadow(0 0 5px rgba(220, 53, 69, 0.5));
    }

@media (max-width: 991px) {
    .daisi-cta-card-v2 {
        min-height: 450px;
        padding: 2rem 1rem !important;
    }
}

/* ------------------------------------------------
 * IMAGE EFFECTS & UNIFORMITY
 * ------------------------------------------------ */
.uniform-image-wrapper,
.featured-img-container,
.card-img-container,
.daisi-img-frame,
.article-featured-img {
    width: 100%;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background: #000;
}

.uniform-image-wrapper,
.daisi-img-frame {
    aspect-ratio: 16 / 9;
    border-radius: 30px;
}

.card-img-container {
    aspect-ratio: 16 / 10;
    border-radius: 30px 30px 0 0;
}

.featured-img-container {
    aspect-ratio: 16 / 9;
    border-radius: 30px 0 0 30px;
}

.article-featured-img {
    aspect-ratio: 21 / 9;
    border-radius: 35px;
}

.daisi-img-fix,
.uniform-image-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.uniform-image-wrapper:hover img,
.daisi-news-card:hover .daisi-img-fix {
    transform: scale(1.08);
}

.image-glow-container {
    position: relative;
    width: 100%;
}

.image-glow-container::after {
    content: "";
    position: absolute;
    inset: 10%;
    background: var(--accent-color);
    filter: blur(60px);
    opacity: 0.12;
    z-index: -1;
    pointer-events: none;
}

/* ------------------------------------------------
 * NAVIGATION & FOOTER
 * ------------------------------------------------ */
.daisi-nav-container {
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(20px);
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 12px 12px 24px;
}

.daisi-nav-link {
    font-family: var(--font-accent);
    color: white !important;
    opacity: 0.7;
}

.daisi-footer-divider {
    height: 4px !important;
    background: linear-gradient(to right, rgba(247, 140, 29, 0) 0%, rgba(247, 140, 29, 0.8) 50%, rgba(247, 140, 29, 0) 100%) !important;
    box-shadow: 0 0 10px rgba(247, 140, 29, 0.2);
    margin: 40px 0 !important;
    border: 0 !important;
}

/* ------------------------------------------------
 * ANIMATIONS
 * ------------------------------------------------ */
@keyframes pulseGlow {

    0%,
    100% {
        opacity: 0.8;
        transform: translate(0, 0) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-20px, 20px) scale(1.1);
    }
}

@keyframes floatSphere {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -55%) scale(1.2);
    }
}

.daisi-sphere {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    filter: blur(120px);
    opacity: 0.3;
    animation: floatSphere 6s infinite ease-in-out;
}

/* ------------------------------------------------
 * RESPONSIVE ADJUSTMENTS
 * ------------------------------------------------ */
@media (min-width: 1400px) {
    .display-1 {
        font-size: 6.5rem !important;
    }

    .display-2 {
        font-size: 5.5rem !important;
    }
}

@media (max-width: 991px) {

    h1,
    .display-1 {
        font-size: 3.5rem !important;
    }

    h2,
    .display-2 {
        font-size: 2.5rem !important;
    }

    h2.display-3 {
        font-size: 2.2rem !important;
    }

    .glass-card {
        max-width: 100% !important;
        margin-top: 40px !important;
    }

    .btn-primary,
    .btn-outline-secondary {
        width: 100% !important;
        margin-bottom: 10px;
    }

    .py-100 {
        padding: 60px 0 !important;
    }

    .mb-100 {
        margin-bottom: 60px;
    }

    .daisi-nav-container {
        border-radius: 30px !important;
        margin: 10px !important;
    }

    .featured-img-container {
        aspect-ratio: 3 / 2;
        border-radius: 30px 30px 0 0;
    }

    .daisi-master-library h1,
    .daisi-master-library .display-1 {
        font-size: 2.8rem !important;
    }


    .hero-main {
        padding: 160px 0 !important;
    }
    
}

/* ------------------------------------------------
 * SCROLLBAR
 * ------------------------------------------------ */
::-webkit-scrollbar {
    width: 7px;
    background-color: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
}

/* ------------------------------------------------
 * MASTER KIT & UTILS
 * ------------------------------------------------ */
.daisi-timeline {
    border-left: 2px solid var(--divider-color);
    position: relative;
    padding-left: 25px;
}

.border-accent-glow {
    border: 1px solid rgba(247, 140, 29, 0.3) !important;
    box-shadow: 0 0 30px rgba(247, 140, 29, 0.1);
}

.bg-accent-glow {
    background: linear-gradient(135deg, rgba(247, 140, 29, 0.15) 0%, rgba(0, 0, 0, 1) 100%) !important;
    border: 1px solid rgba(247, 140, 29, 0.3) !important;
}

.daisi-badge-success {
    background: rgba(0, 255, 153, 0.1);
    color: #00ff99;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: bold;
}

.avatar-wrapper {
    width: 120px;
    height: 120px;
    padding: 8px;
    background: rgba(247, 140, 29, 0.05);
    border-radius: 50%;
}

.daisi-input::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
    font-weight: 400;
}

/* Chrome, Firefox, Opera, Safari 10.1+ */
.daisi-input::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
}

/* Microsoft Edge */
.daisi-input::-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
}

/* Firefox */
.daisi-input::-moz-placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
    opacity: 1;
}

.daisi-accordion .accordion-item {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.daisi-accordion .accordion-button {
    box-shadow: none !important;
}

.daisi-accordion .accordion-button::after {
    filter: invert(1) brightness(2);
}

.daisi-accordion .accordion-button:not(.collapsed) {
    color: var(--accent-color) !important;
    background-color: rgba(247, 140, 29, 0.05) !important;
}

.daisi-accordion .accordion-button:focus {
    border-color: rgba(247, 140, 29, 0.3) !important;
    box-shadow: 0 0 0 0.25rem rgba(247, 140, 29, 0.1) !important;
}

.daisi-partner-logo {
    transition: all 0.3s ease;
    opacity: 0.6;
}

.daisi-partner-logo:hover {
    filter: grayscale(0) brightness(1) !important;
    opacity: 1;
    transform: scale(1.05);
}

.daisi-glass-card {
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.daisi-glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(247, 140, 29, 0.4) !important;
}

/* --- ROADMAP TIMELINE STYLES --- */

.daisi-bg-vault {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to bottom, rgba(43, 34, 0, 0.9) 0%, rgba(0, 0, 0, 0.806) 100%),
        url('../images/circuit.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.4;
    z-index: 1;
}

.roadmap-vertical-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, transparent, var(--accent-color) 15%, var(--accent-color) 85%, transparent);
    transform: translateX(-50%);
    opacity: 0.4;
}

.roadmap-dot {
    width: 16px;
    height: 16px;
    background: #000;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    z-index: 10;
    position: relative;
    animation: pulseDot 3s infinite ease-in-out;
}

.roadmap-dot.active-glow {
    box-shadow: 0 0 15px var(--accent-color);
    background: var(--accent-color);
    animation: pulseActive 2s infinite ease-in-out;
}

@keyframes pulseDot {

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

    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

@keyframes pulseActive {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 10px var(--accent-color);
    }

    50% {
        transform: scale(1.3);
        box-shadow: 0 0 25px var(--accent-color);
    }
}

.letter-spacing {
    letter-spacing: 2px;
}

@media (max-width: 991px) {
    .roadmap-item {
        text-align: left !important;
        padding-bottom: 50px;
        border-left: 1px solid rgba(247, 140, 29, 0.3);
        padding-left: 25px;
        margin-left: 10px;
    }
}