/* 
  AI Pro Main Stylesheet
  Strict Rule: NO !important tags allowed.
*/

:root {
    --bg-dark: #050a10;
    --text-light: #e0e6ed;
    --glass-bg: rgba(10, 20, 35, 0.4);
    --glass-border: rgba(88, 166, 255, 0.2);
    --accent-neon: #00f0ff;
    --accent-hover: #0088ff;
    --transition-speed: 0.4s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #050a10;
    color: #e0e0e0;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    /* Basic scroll setup; JS handles smooth scrolling */
}

/* Global Overlay for Modals to block phantom clicks */
body.modal-open #app-layer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 5, 10, 0.4);
    z-index: 900;
    pointer-events: auto;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    /* Fade in transition */
    animation: fadeInMask 0.4s ease forwards;
}

@keyframes fadeInMask {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* =========================================
   Intro Layer (Video)
   ========================================= */
#intro-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10;
    /* Video sits below the app-layer's z-index: 20 initially */
    transition: opacity 1.5s ease;
    background-color: var(--bg-dark);
    /* Black background while loading */
    display: flex;
    justify-content: center;
    align-items: center;
}

#intro-layer.hidden {
    /* opacity: 0; REMOVED so video stays visible */
    pointer-events: none;
    /* Ignore clicks when video is done */
    /* z-index: -1; REMOVED so it stays at z-index 10 (behind app-layer z-index 20) */
}

/* Unified flawless positioning for both video and fallback image to prevent any shifting */
#intro-fallback,
#intro-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
}

#intro-fallback {
    z-index: 1;
    background-image: url('media/DNA4.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#intro-fallback.blurred-bg {
    filter: blur(8px) brightness(0.35);
    transition: filter 2s ease-in-out;
}

#intro-video {
    z-index: 2;
    transition: opacity 2s ease-in-out;
}

#intro-video.glass-bg {
    filter: blur(1px) brightness(0.85);
}

#intro-video.hidden {
    opacity: 0;
}

.skip-btn {
    position: absolute;
    bottom: 30px;
    right: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: background var(--transition-speed), opacity var(--transition-speed);
    z-index: 100;
    /* Force it above everything including app-layer canvas */
    opacity: 0;
}

.skip-btn.visible {
    opacity: 0.7;
}

.skip-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    opacity: 1;
}

.lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
    height: 38px;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: #fff;
    border-radius: 20px;
    cursor: pointer;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    opacity: 0;
    pointer-events: none;
}

.lang-btn.visible {
    opacity: 1;
    pointer-events: auto;
    animation: fadeIn 1s ease 1s forwards;
}

.lang-btn:hover {
    background: rgba(0, 240, 255, 0.15);
    border-color: #00f0ff;
    color: #00f0ff;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.lang-btn svg {
    width: 18px;
    height: 18px;
}

/* =========================================
   App Layer (Main UI with Background)
   ========================================= */
#app-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;

    z-index: 20;
    /* ALWAYS ON TOP of video */
    opacity: 0;
    /* Initially transparent */
    pointer-events: none;
    /* Let clicks pass to the 'Skip' button */
    transition: opacity 2s ease-in-out;
}

#app-layer.visible {
    opacity: 1;
    pointer-events: auto; /* Resume normal clicks *after* visibility */
    transition: opacity 2s ease-in-out 0.5s;
}

/* Logo (Active Button) */
.logo-container {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    /* Restored to stay under modal but over DNA nodes */
    width: 100%;
    text-align: center;
    pointer-events: auto;
}

.main-logo-link {
    display: inline-flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    /* Anchor for absolute badge */
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

.main-logo-link:hover {
    transform: scale(1.05) translateY(-2px);
    filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.6));
}

.beta-badge {
    position: absolute;
    /* Take out of flow to prevent off-centering */
    right: -55px;
    /* Offset from logo */
    top: 5px;
    background: linear-gradient(135deg, #00f0ff, #0088ff);
    color: #050a10;
    font-size: 0.55rem;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.main-logo {
    max-height: 80px;
    width: auto;
    max-width: 250px;
    /* Strict logo width limit */
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

/* 
  Map Container for Perfect Overlay
  Forced to 16:9 Aspect Ratio to guarantee the image and canvas grid are locked
*/
.map-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Force exactly a 16:9 aspect ratio */
    aspect-ratio: 16 / 9;
    /* Scale gracefully without clipping top/bottom on iPads */
    width: 100vw;
    max-width: calc(100vh * (16 / 9));
    height: 100vh;
    max-height: calc(100vw * (9 / 16));
    z-index: 25;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

#dna-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: auto;
    /* Required to catch mouse movement for 3D interactions */
}

.interactive-nodes {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 10;
}

/* UI Nodes (Invisible buttons over glowing dots) */
.ui-node {
    position: absolute;
    pointer-events: auto;
    /* Re-enable clicks inside the pointer-event:none container */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    /* Glassmorphism to embed visually into the 3D plasma */
    background: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, rgba(0, 100, 255, 0.0) 70%);
    border-top: 1px solid rgba(0, 240, 255, 0.2);
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4), inset 0 0 15px rgba(0, 240, 255, 0.2);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    transform: translate(-50%, -50%);
    /* Centers the 120x120 container on the glowing dot */
    cursor: pointer;
    will-change: transform, box-shadow, border-color;
    z-index: 99999;
    /* Force extreme z-index */
}

/* Precise X/Y Mapping to the DNA4.webp Glowing White Nodes */
.node-2 {
    left: 31.5%;
    top: 42.8%;
}

.node-3 {
    left: 50.6%;
    top: 36.3%;
}

.node-4 {
    left: 45.4%;
    top: 82.9%;
}

.node-5 {
    left: 63.8%;
    top: 69.0%;
}

/* The SVG Icons */
.ui-node .node-icon {
    width: 24px;
    height: 24px;
    margin-top: 18px;
    color: #050a10;
    transition: all var(--transition-speed) ease;
    z-index: 2;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.8));
    /* Added hardware acceleration hint for the hover transform */
    transform: translateZ(0);
}

/* The Text Label (Positioned closely to the dot) */
.ui-node .text {
    position: absolute;
    bottom: -22px;
    /* Tighter fit below the node */
    font-size: 0.75rem;
    /* Slightly smaller text */
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 160px;
    color: #050a10;
    /* Dark text for contrast against background lines */
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.9), 0 0 15px rgba(255, 255, 255, 0.6);
    transition: all var(--transition-speed) ease;
    opacity: 0.95;
    /* Added hardware acceleration hint */
    transform: translateZ(0);
}

/* Hover Effects on Nodes */
.ui-node:hover {
    transform: translate(-50%, -50%) scale(1.05);
}

.ui-node:hover .node-icon {
    /* Icon turns glowing cyan on hover */
    color: var(--accent-neon);
    filter: drop-shadow(0 0 15px var(--accent-neon));
}

.ui-node:hover .text {
    opacity: 1;
    color: var(--accent-neon);
    text-shadow: 0 0 20px var(--accent-neon), 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Floating Animation for the Nodes to make them feel alive */
@keyframes float {
    0% {
        transform: translate(-50%, -50%) translateY(0px);
    }

    50% {
        transform: translate(-50%, -50%) translateY(-8px);
    }

    100% {
        transform: translate(-50%, -50%) translateY(0px);
    }
}

.node-1 {
    animation: float 4s ease-in-out infinite;
}

/* Precise Mapping to the DNA4.webp Glowing White Nodes */
.node-2 {
    left: 30.5%;
    top: 43.8%;
    animation: float 4s ease-in-out infinite 1s;
}

.node-3 {
    left: 51.1%;
    top: 35.3%;
    animation: float 4s ease-in-out infinite 0.5s;
}

.node-4 {
    left: 46.9%;
    top: 81.9%;
    animation: float 4s ease-in-out infinite 1.5s;
}

.node-5 {
    left: 62.8%;
    top: 71.0%;
    animation: float 4s ease-in-out infinite 0.8s;
}

/* Footer */
.app-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    z-index: 100;
    pointer-events: none;
}

.app-footer p {
    pointer-events: auto;
}

/* Animation keyframes */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(88, 166, 255, 0.2);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(88, 166, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(88, 166, 255, 0);
    }
}

/* Page Hiding/Showing Transitions */
@keyframes slideInRight {
    from { transform: translateX(30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOutLeft {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(-30px); opacity: 0; }
}
@keyframes slideInLeft {
    from { transform: translateX(-30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(30px); opacity: 0; }
}

.slide-in-right { animation: slideInRight 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards; }
.slide-out-left { animation: slideOutLeft 0.3s ease forwards; }
.slide-in-left { animation: slideInLeft 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards; }
.slide-out-right { animation: slideOutRight 0.3s ease forwards; }

.pulse-glow {
    animation: pulse 4s infinite;
}

/* --- CINEMATIC ZOOM & MODAL STYLES --- */
#dna-canvas {
    transition: opacity 1.5s ease;
}

.map-container.zoomed-in #dna-canvas {
    opacity: 0.08;
    /* Dim the DNA to create a background texture inside */
}

.interactive-nodes {
    transition: opacity 0.5s ease;
}

.map-container.hide-nodes .interactive-nodes {
    opacity: 0;
    pointer-events: none;
}

/* Force children to be unclickable when hidden */
.map-container.hide-nodes .interactive-nodes * {
    pointer-events: none;
}

.content-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Always centered on its exact origin */

    /* Start tiny, glowing, like a Canvas particle */
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(0, 240, 255, 1);
    border: none;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.8), inset 0 0 10px rgba(0, 240, 255, 0.5);

    z-index: 100;
    opacity: 0;
    pointer-events: none;

    /* Complex, buttery morph transition */
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1),
        height 1.2s cubic-bezier(0.16, 1, 0.3, 1),
        top 1.2s cubic-bezier(0.16, 1, 0.3, 1),
        left 1.2s cubic-bezier(0.16, 1, 0.3, 1),
        border-radius 1s ease,
        background 1s ease,
        box-shadow 1s ease,
        opacity 0.4s ease;

    overflow: hidden;
    /* Hide the giant text inside the tiny circle */
}

.content-modal.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1000 !important;

    /* Fly to center */
    top: 55% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important; /* Force override inline JS styles */

    /* Expand to window size */
    width: 90%;
    max-width: 800px;
    height: 80vh;
    border-radius: 20px;

    /* Morph into glass */
    background: rgba(4, 10, 15, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 240, 255, 0.2);
    box-shadow: 0 0 50px rgba(0, 240, 255, 0.05), inset 0 0 20px rgba(0, 240, 255, 0.1);
}

.content-modal .modal-content {
    width: 100%;
    height: 100%;
    padding: 50px 60px 80px 60px;
    /* Added 80px bottom padding to clear footer */
    overflow-y: auto;
    /* Enable vertical scrolling */

    /* Start invisible to avoid ugly wrapping during morph */
    opacity: 0;
    transition: opacity 0.4s ease;

    /* Sleek Custom Scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 240, 255, 0.5) transparent;
}

/* Center the OTP Modal vertically since it doesn't have much content */
#otp-modal .modal-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Specific styling for Language Modal to make it smaller and remove scrollbar */
#lang-modal.active {
    height: fit-content;
    max-height: 80vh;
}

#lang-modal .modal-content {
    overflow-y: hidden;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Unified Modal Typography explicitly resetting any defaults */
.content-modal .modal-content h2 {
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.content-modal .modal-content h3 {
    color: var(--accent-neon);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.content-modal .modal-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: 400;
}

.content-modal.active .modal-content {
    opacity: 1;
    transition-delay: 0.4s;
    /* Explode content ONLY after window is mostly formed */
}

/* Webkit specific scrollbar styling */
.content-modal .modal-content::-webkit-scrollbar {
    width: 8px;
}

.content-modal .modal-content::-webkit-scrollbar-track {
    background: transparent;
    margin: 15px 0;
    /* Gives some breathing room at top/bottom border */
}

.content-modal .modal-content::-webkit-scrollbar-thumb {
    background-color: rgba(0, 240, 255, 0.3);
    border-radius: 10px;
}

.content-modal .modal-content::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 240, 255, 0.7);
}

/* --- FORMS & INPUTS --- */
.ai-form .form-group {
    margin-bottom: 25px;
    position: relative;
}

.ai-form label {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(0, 240, 255, 0.8);
    margin-bottom: 8px;
    font-weight: 600;
}

.ai-form input[type="text"],
.ai-form input[type="email"],
.ai-form input[type="tel"],
.ai-form input[type="number"],
.ai-form input[type="password"],
.ai-form select,
.ai-form textarea {
    width: 100%;
    background: rgba(4, 10, 15, 0.8);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 8px;
    padding: 14px 18px;
    color: #fff;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.ai-form select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300f0ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}

.ai-form select option {
    background-color: #040a0f;
    color: #fff;
}

.ai-form textarea {
    resize: none;
    line-height: 1.4;
}

.ai-form input:focus,
.ai-form textarea:focus {
    outline: none;
    border-color: #00f0ff;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2), inset 0 0 10px rgba(0, 240, 255, 0.1);
    background: rgba(0, 240, 255, 0.05);
}

.ai-form select:focus {
    outline: none;
    border: 1px solid rgba(0, 240, 255, 0.5);
    box-shadow: none;
}

.ai-form input::placeholder,
.ai-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Custom Range Slider */
.slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 240, 255, 0.05);
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid rgba(0, 240, 255, 0.1);
}

.slider-label {
    font-size: 14px;
    color: #fff;
    min-width: 90px;
}

.slider-label span {
    color: #00f0ff;
    font-weight: 800;
}

.ai-form input[type="range"] {
    flex-grow: 1;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
    margin: 0;
}

.ai-form input[type="range"]::-webkit-slider-runnable-track {
    background: rgba(255, 255, 255, 0.1);
    height: 4px;
    border-radius: 2px;
}

.ai-form input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    background: #00f0ff;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    margin-top: -6px;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
    transition: transform 0.2s ease;
}

.ai-form input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

.content-modal .close-btn {
    position: absolute;
    top: 25px;
    right: 30px;
    background: none;
    border: none;
    color: rgba(0, 240, 255, 0.5);
    font-size: 36px;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    line-height: 1;
}

.content-modal .close-btn:hover {
    color: #fff;
    transform: scale(1.1);
}

.content-modal .modal-content h2 {
    color: #00f0ff;
    font-size: 36px;
    margin-bottom: 5px;
    font-weight: 800;
    letter-spacing: -1px;
}

.content-modal .modal-content h3 {
    font-size: 20px;
    margin-bottom: 25px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.content-modal .modal-content p,
.content-modal .modal-content ul {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
}

.content-modal .modal-content ul {
    padding-left: 20px;
    margin-bottom: 25px;
}

.content-modal .modal-content li {
    margin-bottom: 10px;
    position: relative;
    list-style-type: none;
}

.content-modal .modal-content li::before {
    content: '•';
    color: #00f0ff;
    position: absolute;
    left: -15px;
    font-weight: bold;
}

.action-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 14px 35px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.4);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    cursor: pointer;
}

.action-btn:hover {
    background: rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.4);
    border-color: #00f0ff;
}



/* --- SKIP INTRO TOGGLE --- */
.skip-toggle-container {
    pointer-events: auto;
    display: flex;
    align-items: center;
}

.cyber-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.8rem;
    color: rgba(0, 240, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.cyber-checkbox:hover {
    color: rgba(0, 240, 255, 1);
}

.cyber-checkbox input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.cyber-checkbox .checkmark {
    width: 16px;
    height: 16px;
    min-width: 16px;
    flex-shrink: 0;
    margin-right: 10px;
    border: 1px solid rgba(0, 240, 255, 0.5);
    background: rgba(0, 240, 255, 0.05);
    border-radius: 3px;
    position: relative;
    transition: all 0.3s ease;
}

.cyber-checkbox input:checked+.checkmark {
    background: rgba(0, 240, 255, 0.2);
    border-color: rgba(0, 240, 255, 1);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.cyber-checkbox input:checked+.checkmark::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid rgba(0, 240, 255, 1);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* --- TABLET (IPAD) RESPONSIVENESS OVERRIDES --- */
@media (max-width: 1024px) {
    .content-modal {
        width: 85%;
    }
}

/* --- MOBILE RESPONSIVENESS OVERRIDES --- */
@media (max-width: 768px) and (orientation: portrait),
(max-width: 480px) {
    .content-modal {
        width: 95%;
    }

    .modal-content {
        padding: 30px 20px;
    }

    .content-modal .modal-content {
        width: 100%;
        border-radius: 0;
        height: 100vh;
        max-height: none;
    }

    .app-footer {
        flex-direction: column;
        justify-content: center;
        gap: 15px;
        padding: 15px;
    }

    .app-footer p {
        font-size: 0.6rem;
    }

    .ui-node {
        transform: translate(-50%, -50%) scale(0.9);
    }

    .ui-node:hover {
        transform: translate(-50%, -50%) scale(1.05);
    }
}

.ui-node .text {
    bottom: -18px;
    font-size: 0.65rem;
}

.main-logo {
    max-width: 160px;
}


/* =========================================
   Desktop Loading Screen
   ========================================= */
#desktop-loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: radial-gradient(circle at center, #0a192f 0%, #03060a 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

#desktop-loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-logo {
    max-width: 250px;
    margin-bottom: 30px;
    filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.5));
    animation: loaderPulse 2s infinite ease-in-out;
}

.loader-bar-container {
    width: 30%;
    max-width: 300px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.loader-bar {
    width: 0%;
    height: 100%;
    background: var(--accent-neon);
    animation: loadingProgress 1.5s ease-out forwards;
}

@keyframes loaderPulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.3));
    }

    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.8));
    }
}

@keyframes loadingProgress {
    0% {
        width: 0%;
    }

    80% {
        width: 90%;
    }

    100% {
        width: 100%;
    }
}

/* Technology Logos Hover Effects */
.tech-logos img {
    opacity: 0.6;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tech-logos img:hover {
    opacity: 1;
    transform: scale(1.15);
}

/* --- INTL TEL INPUT DARK NEON OVERRIDES --- */
body .iti { width: 100%; display: block; }
body .iti__country-list {
    background-color: #050a10;
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    z-index: 3500;
}
body .iti__country-name { color: #fff; }
body .iti__dial-code { color: rgba(255, 255, 255, 0.6); }
body .iti__country.iti__highlight { background-color: rgba(0, 240, 255, 0.1); }
body .iti__selected-flag { background: transparent; padding-left: 18px; }
body .iti__arrow { border-top-color: rgba(0, 240, 255, 0.8); }
body .iti__arrow--up { border-bottom-color: rgba(0, 240, 255, 0.8); }
body .ai-form .iti--allow-dropdown input, 
body .ai-form .iti--allow-dropdown input[type=text], 
body .ai-form .iti--allow-dropdown input[type=tel], 
body .ai-form .iti--separate-dial-code input, 
body .ai-form .iti--separate-dial-code input[type=text], 
body .ai-form .iti--separate-dial-code input[type=tel] {
    padding-left: 125px;
}
body .iti__selected-dial-code { color: #00f0ff; }
body .iti__flag-container { border-right: 1px solid rgba(0,240,255,0.2); }
body .iti__flag { background-image: url("https://cdn.jsdelivr.net/npm/intl-tel-input@18.2.1/build/img/flags.png"); }
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  body .iti__flag { background-image: url("https://cdn.jsdelivr.net/npm/intl-tel-input@18.2.1/build/img/flags@2x.png"); }
}

/* Hide Google reCAPTCHA v3 badge */
.grecaptcha-badge {
    visibility: hidden;
    opacity: 0;
}

/* Translation Loader */
.translation-loader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(4, 10, 15, 0.95);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(10px);
}
.translation-loader.active {
    opacity: 1;
    pointer-events: auto;
}
.translation-loader .loader-logo {
    width: 60px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.5));
}
.translation-loader .progress-bar {
    width: 200px;
    height: 2px;
    background: rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}
.translation-loader .progress-fill {
    position: absolute;
    top: 0; left: 0; height: 100%;
    width: 0%;
    background: #00f0ff;
    box-shadow: 0 0 10px #00f0ff;
    transition: width 0.8s cubic-bezier(0.1, 0.8, 0.3, 1);
}
.translation-loader.active .progress-fill {
    width: 100%;
}
.translation-loader p {
    color: rgba(255,255,255,0.6);
    margin-top: 15px;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* ========================
   GLOBAL TOAST SYSTEM
   ======================== */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    max-width: 340px;
    line-height: 1.5;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    animation: toastIn 0.35s cubic-bezier(0.21,1.02,0.73,1) forwards;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    cursor: pointer;
}
.toast.toast-error {
    background: rgba(20,5,10,0.95);
    border: 1px solid rgba(255,0,68,0.5);
    color: #ff6b8a;
}
.toast.toast-success {
    background: rgba(5,20,10,0.95);
    border: 1px solid rgba(0,255,102,0.4);
    color: #4dffaa;
}
.toast.toast-info {
    background: rgba(5,10,20,0.95);
    border: 1px solid rgba(0,240,255,0.3);
    color: #7df3ff;
}
.toast.toast-exit {
    animation: toastOut 0.3s ease forwards;
}
@keyframes toastIn {
    from { opacity: 0; transform: translateX(50px) scale(0.95); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes toastOut {
    from { opacity: 1; transform: translateX(0); max-height: 100px; margin-bottom: 0; }
    to   { opacity: 0; transform: translateX(50px); max-height: 0; margin-bottom: -10px; }
}
@media (max-width: 480px) {
    .toast-container { top: 16px; right: 16px; left: 16px; }
    .toast { max-width: 100%; }
}

/* =========================================
   NEW UTILITY CLASSES (inline-style migration)
   ========================================= */

/* --- Schema / Solution Images --- */
.schema-image {
    margin: 30px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(0, 240, 255, 0.15);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.05);
    user-select: none;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
}

.schema-image img {
    width: 100%;
    display: block;
    filter: contrast(1.05) saturate(1.1);
    pointer-events: none;
}

.schema-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 20px rgba(4, 10, 15, 0.8);
    pointer-events: none;
}

/* --- Section Headings --- */
.section-heading {
    color: var(--accent-neon);
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 16px;
    letter-spacing: 1px;
}

.powered-by-heading {
    color: rgba(255, 255, 255, 0.4);
    margin-top: 35px;
    margin-bottom: 20px;
    font-size: 13px;
    text-align: center;
    letter-spacing: 3px;
}

.form-section-heading {
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 30px 0 15px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
    padding-bottom: 10px;
}

/* --- Tech Logos --- */
.tech-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.tech-logos img {
    height: 24px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}

/* --- Case Cards --- */
.case-card {
    background: rgba(0, 240, 255, 0.03);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.case-card h4 {
    color: var(--accent-neon);
    font-size: 16px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.case-industry {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.case-card p {
    font-size: 15.5px;
    margin-bottom: 12px;
    line-height: 1.6;
}

.case-results {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

.case-results p {
    font-size: 15.5px;
    color: #fff;
    font-weight: 600;
    margin-bottom: 10px;
}

.case-results ul {
    font-size: 15px;
    margin-left: 20px;
    line-height: 1.6;
}

.case-results li {
    margin-bottom: 8px;
}

/* --- Button Helpers --- */
.action-btn-full {
    width: 100%;
    text-align: center;
    border: none;
    cursor: pointer;
    display: block;
}

.action-btn-flex {
    flex: 1;
    text-align: center;
}

.action-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    text-align: center;
}

.btn-row {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.back-btn-full {
    width: 100%;
    margin-bottom: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.back-arrow {
    font-size: 18px;
    line-height: 1;
}

/* --- About Section Buttons --- */
.about-btn-row {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

/* --- Contact Fields --- */
.contact-fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-fields .form-group {
    margin-bottom: 0;
}

.form-group-phone {
    position: relative;
}

.phone-error-msg {
    color: #ff3366;
    font-size: 12px;
    margin-top: 5px;
}

.form-status-msg {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}

/* --- Skip Toggle (Footer) --- */
.skip-toggle-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* --- Desktop Video Overlay --- */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-overlay-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

.video-inner {
    width: 90%;
    max-width: 1000px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
}

.video-inner video {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* --- Login Modal --- */
.login-logo {
    height: 60px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.5));
}

#login-modal .modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#login-modal .ai-form {
    width: 100%;
    max-width: 400px;
    text-align: left;
}

#login-modal h3 {
    margin-bottom: 30px;
    letter-spacing: 4px;
}

#login-modal .cyber-checkbox {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.form-group-lg {
    margin-bottom: 30px;
}

.otp-input {
    text-align: center;
    font-size: 24px;
    letter-spacing: 8px;
    color: #00f0ff;
}

.login-back-link-wrap {
    text-align: center;
    margin-top: 15px;
}

.link-dim {
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    text-decoration: none;
}

.link-dim:hover {
    color: rgba(255, 255, 255, 0.7);
}

.link-accent {
    color: var(--accent-neon);
    text-decoration: none;
    font-weight: 600;
}

.form-footnote {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

/* --- OTP Modal --- */
#otp-modal .modal-content {
    text-align: center;
    max-width: 400px;
    padding: 40px 20px;
    margin: 0 auto;
    justify-content: center;
}

#otp-modal h3 {
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.otp-description {
    margin-bottom: 25px;
    color: #8a9bb3;
    font-size: 14px;
    line-height: 1.5;
}

.otp-description strong {
    color: #fff;
}

.otp-code-input {
    text-align: center;
    font-size: 32px;
    letter-spacing: 8px;
    font-weight: bold;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    color: #00f0ff;
    background: rgba(0, 240, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    display: block;
}

.otp-error-msg {
    margin-bottom: 20px;
    color: #ff3366;
    font-size: 14px;
}

/* --- Language Modal --- */
#lang-modal .modal-content {
    max-height: 400px;
    text-align: center;
}

.lang-options-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.lang-options-list .lang-option {
    width: 100%;
}

.lang-option-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* --- Translation Loader --- */
.loader-content {
    text-align: center;
}

/* --- Contact Info Block --- */
.contact-info {
    margin-top: 30px;
    padding: 20px;
    background: rgba(0, 240, 255, 0.05);
    border-left: 3px solid #00f0ff;
}

.contact-info p {
    margin-bottom: 5px;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

/* --- Error Messages --- */
.error-msg {
    display: none;
}

.error-msg.show {
    display: block;
}

/* --- Form Locked State --- */
.form-locked input, 
.form-locked textarea, 
.form-locked select, 
.form-locked .iti {
    opacity: 0.6;
    filter: blur(0.5px);
    pointer-events: none;
    transition: all 0.3s ease;
}

/* --- Tooltip Styles --- */
.tooltip-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 50%;
    background: rgba(0, 240, 255, 0.2);
    color: #00f0ff;
    font-size: 11px;
    margin-left: 6px;
    cursor: help;
    position: relative;
    vertical-align: middle;
}

.tooltip-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%);
    background: #050a10;
    border: 1px solid rgba(0, 240, 255, 0.4);
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: normal;
    width: max-content;
    max-width: 200px;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 10000;
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    text-transform: none;
    line-height: 1.4;
    letter-spacing: normal;
}

.tooltip-icon:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: 120%;
}

/* --- Multi-select Styles --- */
.multi-select-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
    padding: 15px;
    background: rgba(0, 240, 255, 0.03);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 8px;
}

.multi-select-container .cyber-checkbox.inline {
    display: inline-flex;
    margin-bottom: 0;
    width: auto;
}

/* --- Character Counter --- */
.char-counter {
    position: absolute;
    bottom: -18px;
    right: 0;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    transition: color 0.3s ease;
    letter-spacing: 1px;
}
.char-counter.limit-reached {
    color: #ff3366;
}
