:root {
    --nad-purple: #6f54ff;
    --nad-purple-dark: #5940cc;
    --terminal-green: #00FF00;
    --terminal-white: #FFFFFF;
    --terminal-gray: #C0C0C0;
    --terminal-black: #000000;
    --shadow: rgba(111, 84, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: 
        linear-gradient(45deg, #000000 0%, #000000 90%, #0a0015 95%, #000000 100%),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 50px,
            rgba(111, 84, 255, 0.01) 50px,
            rgba(111, 84, 255, 0.01) 100px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 50px,
            rgba(111, 84, 255, 0.01) 50px,
            rgba(111, 84, 255, 0.01) 100px
        );
    background-size: 100% 100%, 100px 100px, 100px 100px;
    color: var(--terminal-white);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.4;
    position: relative;
    animation: vhs-heavy-glitch 0.05s infinite linear;
}

@keyframes vhs-heavy-glitch {
    0% { 
        filter: hue-rotate(0deg) saturate(1.1) brightness(1) contrast(1.08);
        transform: translate(0px, 0px) scale(1) skew(0deg);
    }
    50% { 
        filter: hue-rotate(1deg) saturate(0.9) brightness(1.1) contrast(1);
        transform: translate(-0.045px, 0.015px) scale(1.00005) skew(-0.007deg);
    }
    100% { 
        filter: hue-rotate(0deg) saturate(1.1) brightness(1) contrast(1.08);
        transform: translate(0px, 0px) scale(1) skew(0deg);
    }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 1px,
            rgba(111, 84, 255, 0.08) 1px,
            rgba(111, 84, 255, 0.08) 2px,
            transparent 2px,
            transparent 3px,
            rgba(255, 0, 255, 0.06) 3px,
            rgba(255, 0, 255, 0.06) 4px,
            transparent 4px,
            transparent 5px,
            rgba(0, 255, 255, 0.04) 5px,
            rgba(0, 255, 255, 0.04) 6px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(255, 0, 0, 0.04) 0px,
            rgba(255, 0, 0, 0.04) 1px,
            transparent 1px,
            transparent 2px,
            rgba(0, 255, 255, 0.05) 2px,
            rgba(0, 255, 255, 0.05) 3px,
            transparent 3px,
            transparent 4px,
            rgba(255, 255, 0, 0.03) 4px,
            rgba(255, 255, 0, 0.03) 5px,
            transparent 5px,
            transparent 6px
        );
    pointer-events: none;
    z-index: 1000;
    animation: vhs-extreme-noise 0.02s infinite;
    mix-blend-mode: screen;
}

@keyframes vhs-extreme-noise {
    0% { 
        opacity: 0.12;
        transform: translateX(0px) translateY(0px) scale(1);
    }
    50% { 
        opacity: 0.1;
        transform: translateX(-0.03px) translateY(0px) scale(1.0002);
    }
    100% { 
        opacity: 0.12;
        transform: translateX(0px) translateY(0px) scale(1);
    }
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(
            to right,
            transparent 0%,
            rgba(111, 84, 255, 0.15) 1%,
            transparent 2%,
            transparent 3%,
            rgba(0, 255, 255, 0.12) 4%,
            transparent 5%,
            transparent 94%,
            rgba(255, 255, 0, 0.1) 95%,
            transparent 96%,
            transparent 97%,
            rgba(255, 0, 0, 0.13) 98%,
            transparent 99%,
            transparent 100%
        ),
        repeating-linear-gradient(
            45deg,
            transparent 0px,
            rgba(111, 84, 255, 0.02) 1px,
            transparent 2px,
            transparent 20px
        );
    pointer-events: none;
    z-index: 999;
    animation: vhs-heavy-tracking 1.5s infinite ease-in-out;
}

@keyframes vhs-heavy-tracking {
    0%, 100% { 
        transform: translateY(0px) translateX(0px);
        opacity: 0.2;
    }
    50% { 
        transform: translateY(-0.35px) translateX(-0.05px);
        opacity: 0.15;
    }
}

.matrix-bg::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-conic-gradient(
            from 0deg at 25% 25%,
            transparent 0deg,
            rgba(111, 84, 255, 0.02) 90deg,
            transparent 180deg,
            rgba(0, 255, 255, 0.02) 270deg
        ),
        repeating-conic-gradient(
            from 45deg at 75% 75%,
            transparent 0deg,
            rgba(255, 0, 255, 0.02) 90deg,
            transparent 180deg,
            rgba(255, 255, 0, 0.02) 270deg
        );
    pointer-events: none;
    z-index: 997;
    animation: chaos-static 0.1s infinite;
}

@keyframes chaos-static {
    0% { 
        transform: rotate(0deg) scale(1);
        opacity: 0.3;
    }
    25% { 
        transform: rotate(0.5deg) scale(1.005);
        opacity: 0.6;
    }
    50% { 
        transform: rotate(-0.3deg) scale(0.998);
        opacity: 0.2;
    }
    75% { 
        transform: rotate(0.8deg) scale(1.002);
        opacity: 0.7;
    }
    100% { 
        transform: rotate(0deg) scale(1);
        opacity: 0.3;
    }
}

.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.05;
}

.container {
    max-width: 100%;
    padding: 0 40px;
    margin: 0;
    width: 100%;
}

header {
    background: rgba(0, 0, 0, 0.9);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1001;
    border-bottom: 2px solid var(--nad-purple);
    box-shadow: 0 2px 20px var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 40px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 900;
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 2px;
}

.header-logo-img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 8px var(--nad-purple));
    transition: all 0.3s ease;
}

.header-logo-img:hover {
    filter: drop-shadow(0 0 12px var(--nad-purple)) drop-shadow(0 0 20px var(--nad-purple-dark));
}

.logo::before {
    content: none;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    color: var(--terminal-white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav ul li a:hover {
    color: var(--nad-purple);
    text-shadow: 0 0 5px var(--nad-purple);
}

.main-content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 80px;

}

.logo-header {
    text-align: center;
    padding: 20px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.main-logo {
    max-width: 400px;
    width: 80%;
    height: auto;
    filter: drop-shadow(0 0 20px var(--nad-purple));
    animation: logoGlow 2s infinite alternate;
}

@keyframes logoGlow {
    0% { 
        filter: drop-shadow(0 0 20px var(--nad-purple));
        transform: scale(1);
    }
    100% { 
        filter: drop-shadow(0 0 30px var(--nad-purple)) drop-shadow(0 0 40px var(--nad-purple-dark));
        transform: scale(1.02);
    }
}

.logo-subtitle {
    font-size: 20px;
    color: var(--nad-purple);
    text-shadow: 0 0 15px var(--nad-purple);
    letter-spacing: 4px;
    font-weight: 700;
    text-transform: uppercase;
    animation: flicker 2s infinite alternate;
    margin: 0;
}

@keyframes flicker {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}

.welcome-section {
    text-align: center;
    padding: 20px 40px 150px;
    max-width: 1800px;
    margin: 0 auto;
}

.welcome-title {
    font-size: 48px;
    color: var(--nad-purple);
    margin-bottom: 15px;
    font-weight: 900;
    text-shadow: 0 0 20px var(--nad-purple);
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 6px;
}

.welcome-subtitle {
    font-size: 12px;
    color: var(--nad-purple);
    font-weight: 900;
    margin-bottom: 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--nad-purple);
}

/* Full Width Market Ticker Section */
.ticker-section {
    width: 100%;
    background: #6f54ff;
    border-top: 3px solid var(--nad-purple);
    border-bottom: 3px solid var(--nad-purple);
    margin-bottom: 0;
    padding: 0;
}

.market-ticker-fullwidth {
    background: #6f54ff;
    color: #fff;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 100%;
}

.market-ticker-fullwidth .ticker-label {
    background: var(--nad-purple);
    padding: 8px 20px;
    font-weight: 900;
    font-size: 14px;
    letter-spacing: 2px;
    margin-right: 30px;
    font-family: Arial, Helvetica, sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
}

.market-ticker-fullwidth .ticker-scroll {
    flex: 1;
    overflow: hidden;
}

.market-ticker-fullwidth {
    display: flex;
    align-items: center;
    gap: 20px;
    overflow: hidden;
}

.ticker-scroll-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
}

/* Newspaper Headlines Section */
.headlines-section {
    padding: 60px 40px;
    width: 100%;
    background: #ffffff;
}

.newspaper-container {
    max-width: 1800px;
    margin: 0 auto;
    background: transparent;
    color: #000;
    padding: 0;
    box-shadow: none;
    border: none;
}

.newspaper-header {
    text-align: left;
    border-bottom: 4px solid #000;
    padding-bottom: 15px;
    margin-bottom: 40px;
}

.paper-date {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000;
    margin-bottom: 8px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 400;
}

.paper-title {
    font-size: 64px;
    font-weight: 900;
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: -2px;
    margin: 8px 0;
    color: #000;
    line-height: 0.9;
}

.paper-tagline {
    font-size: 14px;
    font-weight: 400;
    color: #000;
    letter-spacing: 0px;
    font-family: Arial, Helvetica, sans-serif;
    margin-top: 8px;
}

/* Hero Headline */
.hero-headline {
    text-align: left;
    padding: 0 0 30px;
    border-bottom: 4px solid #000;
    margin-bottom: 40px;
}

.hero-headline h1 {
    font-size: 120px;
    font-weight: 900;
    line-height: 0.9;
    font-family: Arial, Helvetica, sans-serif;
    color: #000;
    letter-spacing: -3px;
    text-transform: uppercase;
    margin: 0;
    font-stretch: condensed;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px;
}

.article-block {
    background: #fff;
    padding: 0;
    border-top: 0;
    padding-top: 0;
}

.article-with-image {
    display: flex;
    flex-direction: column;
}

.article-video {
    display: flex;
    flex-direction: column;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin: 12px 0;
    border: 2px solid #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-logo-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10;
    opacity: 0.9;
    width: 40%;
    max-width: 150px;
}

.video-logo-overlay img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.8));
}

.article-image {
    width: 100%;
    height: auto;
    max-width: 300px;
    margin: 12px 0;
    border: 2px solid #000;
}

.article-label {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 12px;
    font-family: Arial, Helvetica, sans-serif;
}

.article-block h3 {
    font-size: 28px;
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 12px 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #000;
    letter-spacing: -0.5px;
}

.article-block p {
    font-size: 14px;
    line-height: 1.5;
    color: #000;
    font-family: Arial, Helvetica, sans-serif;
    margin-bottom: 12px;
}

/* Market Ticker */
.market-ticker {
    background: #000;
    color: #fff;
    padding: 15px;
    border: 2px solid var(--nad-purple);
    overflow: hidden;
}

.ticker-label {
    display: inline-block;
    background: var(--nad-purple);
    padding: 5px 15px;
    font-weight: 900;
    font-size: 12px;
    letter-spacing: 2px;
    margin-right: 20px;
    font-family: Arial, Helvetica, sans-serif;
}

.ticker-scroll {
    display: flex;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow: hidden;
    animation: scroll-left 25s linear infinite;
}

.ticker-scroll span {
    padding-right: 50px;
}

.ticker-item {
    display: inline-block;
    margin: 0 30px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 900;
    font-size: 16px;
}

.ticker-item.positive {
    color: #00ff00;
}

.ticker-item.negative {
    color: #ff4444;
}

.ticker-item.neutral {
    color: #ffffff;
}

.ticker-item.loading {
    color: #cccccc;
    font-style: italic;
}

.ticker-coming {
    color: #aaaaaa;
    font-size: 14px;
}

/* FIXED animation — scroll full width */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.ticker-scroll-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
}


.chat-section {
    padding: 60px 40px;
    width: 100%;
    background: #000000;
}

.chat-container-new {
    background: linear-gradient(135deg, rgba(111, 84, 255, 0.15) 0%, rgba(0, 0, 0, 0.95) 100%);
    border: none;
    border-left: 6px solid var(--nad-purple);
    border-right: 6px solid var(--nad-purple);
    box-shadow: 
        0 0 60px rgba(111, 84, 255, 0.4),
        inset 0 0 60px rgba(111, 84, 255, 0.1);
    overflow: hidden;
    max-width: 1800px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 600px;
    position: relative;
}

.chat-header {
    padding: 30px 40px;
    border-bottom: 3px solid var(--nad-purple);
    background: rgba(0, 0, 0, 0.9);
}

.chat-header h3 {
    color: var(--nad-purple);
    font-size: 24px;
    margin: 0 0 8px 0;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.chat-header p {
    color: var(--terminal-gray);
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
}

.chat-messages {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.6);
}

.message {
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    max-width: 100%;
}

.message.user {
    flex-direction: row-reverse;
    margin-left: auto;
    justify-content: flex-start;
}

.message-avatar {
    width: 45px;
    height: 45px;
    min-width: 45px;
    min-height: 45px;
    border: 3px solid var(--nad-purple);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 900;
    color: var(--nad-purple);
    background: rgba(0, 0, 0, 0.9);
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(111, 84, 255, 0.5);
}

.message-content {
    background: rgba(0, 0, 0, 0.85);
    border: none;
    border-left: 4px solid var(--nad-purple);
    padding: 20px 25px;
    max-width: 75%;
    box-shadow: 0 5px 25px rgba(111, 84, 255, 0.2);
    animation: fadeIn 0.3s ease;
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 0.5px;
}

.user .message-content {
    background: rgba(111, 84, 255, 0.2);
    border-left: none;
    border-right: 4px solid var(--nad-purple);
    color: var(--terminal-white);
}

.message-content p {
    margin: 0 0 12px;
    line-height: 1.6;
    font-size: 15px;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.message-time {
    font-size: 11px;
    color: var(--terminal-gray);
    margin-top: 10px;
    display: block;
    font-weight: 700;
}

.user .message-time {
    color: rgba(255, 255, 255, 0.6);
}

.chat-input-container {
    padding: 30px 40px;
    border-top: 3px solid var(--nad-purple);
    background: rgba(0, 0, 0, 0.95);
}

.chat-input {
    display: flex;
    position: relative;
    gap: 15px;
}

.chat-input input {
    flex: 1;
    padding: 18px 25px;
    background: rgba(0, 0, 0, 0.9);
    border: 3px solid var(--nad-purple);
    color: var(--terminal-white);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 0;
    -webkit-appearance: none;
    -webkit-border-radius: 0;
}

.chat-input input:focus {
    outline: none;
    box-shadow: 0 0 20px rgba(111, 84, 255, 0.6);
    transform: none;
    zoom: 1;
}

.chat-input input::placeholder {
    color: var(--terminal-gray);
    font-weight: 500;
}

.chat-input button {
    position: relative;
    background: var(--nad-purple);
    color: var(--terminal-white);
    border: none;
    padding: 18px 35px;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 16px;
}

.chat-input button:hover {
    box-shadow: 0 0 25px rgba(111, 84, 255, 0.8);
    background: var(--nad-purple-dark);
}

.features-section {
    padding: 60px 20px;
    width: 100%;
    text-align: center;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--nad-purple);
    margin-bottom: 20px;
    text-shadow: 0 0 10px var(--nad-purple);
}

.section-title p {
    color: var(--terminal-gray);
    max-width: 700px;
    margin: 0 auto;
    font-size: 16px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    width: 90%;
    margin: 0 auto 40px;
}

.feature-card {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid var(--nad-purple);
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 
        5px 5px 0 var(--shadow),
        10px 10px 0 rgba(0, 0, 0, 0.4);
    filter: contrast(1.2);
}

.feature-card:hover {
    box-shadow: 
        0 0 30px var(--shadow),
        3px 3px 0 var(--shadow),
        6px 6px 0 rgba(0, 0, 0, 0.6);
    transform: translateY(-5px);
    filter: contrast(1.4);
}

.feature-icon {
    color: var(--nad-purple);
    font-size: 48px;
    text-shadow: 0 0 10px var(--nad-purple);
    margin-bottom: 20px;
}

.feature-icon i {
    font-size: 48px;
}

.feature-card h3 {
    color: var(--terminal-white);
    font-size: 20px;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--terminal-gray);
    font-size: 14px;
    line-height: 1.5;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    background: var(--nad-purple);
    color: var(--terminal-white);
    text-decoration: none;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    border: 3px double var(--nad-purple);
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    box-shadow: 
        3px 3px 0 rgba(0, 0, 0, 0.5),
        6px 6px 0 var(--shadow);
}

.btn:hover {
    box-shadow: 
        0 0 20px var(--nad-purple),
        2px 2px 0 rgba(0, 0, 0, 0.7);
    transform: translateY(-1px);
    background: var(--nad-purple-dark);
}

.btn-accent {
    background: var(--nad-purple);
    color: var(--terminal-white);
    border-color: var(--nad-purple);
}

.btn-accent:hover {
    background: var(--nad-purple-dark);
    box-shadow: 0 0 20px var(--nad-purple);
}

footer {
    background: rgba(0, 0, 0, 0.9);
    color: var(--terminal-white);
    padding: 40px 20px;
    text-align: center;
    width: 100%;
    border-top: 2px solid var(--nad-purple);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-socials {
    text-align: center;
    margin-bottom: 20px;
}

.footer-socials a {
    display: inline-block;
    margin: 0 15px;
}

.footer-socials img {
    width: 35px;
    height: 35px;
}

.footer-logo {
    color: var(--nad-purple);
    font-size: 20px;
    font-weight: 700;
}

.footer-links ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.footer-links ul li a {
    color: var(--terminal-gray);
    text-decoration: none;
    font-size: 12px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--nad-purple);
}

.copyright {
    color: var(--terminal-gray);
    font-size: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--nad-purple);
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.character-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: var(--nad-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    animation: pulse 2s infinite;
    color: var(--terminal-white);
    font-size: 20px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.character-floating:hover {
    transform: scale(1.1);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(111, 84, 255, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(111, 84, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(111, 84, 255, 0); }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.typing {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px;
}

.typing .dot {
    width: 6px;
    height: 6px;
    background: var(--nad-purple);
    border-radius: 50%;
    animation: bounce 1.5s infinite;
    opacity: 0.7;
}

.typing .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    .logo-header {
        padding: 40px 20px 30px;
    }
    
    .main-logo {
        max-width: 280px;
        width: 85%;
    }

    .header-logo-img {
        height: 30px;
    }
    
    .logo {
        font-size: 18px;
    }

    .welcome-title {
        font-size: 32px;
        letter-spacing: 3px;
    }
    
    .welcome-subtitle {
        font-size: 14px;
    }

    /* Ticker Mobile */
    .market-ticker-fullwidth {
        padding: 15px 20px;
    }

    .market-ticker-fullwidth .ticker-label {
        font-size: 11px;
        padding: 6px 12px;
        margin-right: 15px;
    }

    /* Newspaper Mobile */
    .headlines-section {
        padding: 40px 20px;
    }

    .paper-title {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .hero-headline {
        padding: 0 0 25px;
    }

    .hero-headline h1 {
        font-size: 48px;
        letter-spacing: -2px;
        line-height: 0.9;
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px 25px;
    }

    .article-block h3 {
        font-size: 20px;
        letter-spacing: -0.5px;
    }

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

    .article-block p {
        font-size: 14px;
        line-height: 1.5;
    }

    .article-image {
        max-width: 200px;
    }

    .video-logo-overlay {
        width: 50%;
        max-width: 100px;
    }

    .ticker-scroll {
        font-size: 14px;
    }

    .ticker-item {
        margin: 0 15px;
    }
    
    /* Chat Mobile */
    .chat-section {
        padding: 40px 20px;
    }

    .chat-container-new {
        min-height: 500px;
    }

    .chat-header {
        padding: 20px;
    }

    .chat-header h3 {
        font-size: 18px;
    }

    .chat-messages {
        padding: 20px;
    }

    .message-content {
        max-width: 85%;
        font-size: 14px;
        padding: 15px 18px;
    }

    .message-avatar {
        width: 35px;
        height: 35px;
        min-width: 35px;
        min-height: 35px;
        font-size: 14px;
    }
    
    .chat-input-container {
        padding: 20px;
    }
    
    .chat-input {
        flex-direction: column;
        gap: 10px;
    }
    
    .chat-input input {
        font-size: 16px;
        padding: 15px 20px;
        min-height: 44px;
        -webkit-text-size-adjust: 100%;
        -webkit-appearance: none;
        border-radius: 0;
    }
    
    .chat-input button {
        width: 100%;
        padding: 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    nav ul {
        gap: 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-socials {
        order: 2;
    }
    
    .footer-socials img {
        width: 30px;
        height: 30px;
        margin: 0 8px;
    }
    
    .footer-links {
        order: 3;
    }
    
    .footer-links ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .message {
        max-width: 90%;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
}
