/* 
   ==========================================================================
   CSS PROJECT BLUEPRINT: ROINR — Strategic Advisor Template
   Future AI: Use [TEMPLATE_ASSET] tags to identify blocks for branding swaps.
   ========================================================================== 
*/

/* [TEMPLATE_ASSET: BRAND_COLORS] */
/* ===================== VARIABLES ===================== */
:root {
    --gold: #c9a84c;
    --gold-light: #e8c96a;
    --gold-dark: #a07830;
    --navy: #0a1628;
    --navy-mid: #0e2040;
    --navy-light: #162848;
    --white: #ffffff;
    --text-muted: rgba(255,255,255,0.65);
}

/* ===================== GENERAL ===================== */
* { -webkit-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out; }
body { font-family: 'Titillium Web', sans-serif; overflow-x: hidden; background: var(--navy); color: var(--white); }

/* ===================== PRELOADER ===================== */
.se-pre-con {
    position: fixed; left: 0; top: 0; width: 100%; height: 100%; z-index: 9999;
    background: var(--navy);
    display: flex; align-items: center; justify-content: center;
}
.se-pre-con .loader-logo {
    font-size: 36px; font-weight: 900; letter-spacing: 10px;
    color: var(--gold); text-transform: uppercase;
    animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

/* ===================== BACKGROUND SLIDESHOW ===================== */
.bg-slideshow {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -2; overflow: hidden;
}
.bg-slideshow .slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center center;
    opacity: 0; animation: bgFade 18s infinite;
}
.bg-slideshow .slide:nth-child(1) { background-image: url('../img/hero-bg.jpg'); animation-delay: 0s; }
.bg-slideshow .slide:nth-child(2) { background-image: url('../img/horizons-bg.jpg'); animation-delay: 6s; }
.bg-slideshow .slide:nth-child(3) { background-image: url('../img/services-bg.jpg'); animation-delay: 12s; }

@keyframes bgFade {
    0%   { opacity: 0; }
    8%   { opacity: 1; }
    33%  { opacity: 1; }
    41%  { opacity: 0; }
    100% { opacity: 0; }
}

.bg-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(8, 16, 35, 0.72); z-index: -1;
}

/* ===================== NAVBAR ===================== */
.main-nav { background: transparent; border: none; margin-bottom: 0; }
.main-nav.scrolled { background: rgba(8,16,35,0.97) !important; box-shadow: 0 2px 20px rgba(0,0,0,0.5); }
.navbar-brand { padding: 18px 15px; font-size: 26px; font-weight: 900; color: var(--gold) !important; letter-spacing: 6px; text-transform: uppercase; line-height: 1.2; }
.navbar-brand span { color: rgba(255,255,255,0.6); font-weight: 300; font-size: 11px; letter-spacing: 3px; display: block; margin-top: 2px; text-transform: uppercase; }
.navbar-brand:hover { color: var(--gold-light) !important; text-decoration: none; }

@media (min-width: 768px) {
    .main-nav .navbar-nav > li > a {
        color: rgba(255,255,255,0.85) !important; font-weight: 600; font-size: 12px;
        text-transform: uppercase; letter-spacing: 1px; padding: 28px 18px; position: relative;
    }
    .main-nav .navbar-nav > li > a:after {
        content: ''; height: 2px; width: 0; background: var(--gold);
        bottom: 18px; position: absolute; left: 0; right: 0; margin: auto;
        transition: width 0.2s ease;
    }
    .main-nav .navbar-nav > li > a:hover:after { width: 50%; }
    .main-nav .navbar-nav > li > a:hover { color: var(--white) !important; background: transparent !important; }
    .consult-btn {
        background: var(--gold) !important; color: var(--navy) !important;
        border-radius: 30px; padding: 8px 24px !important; margin: 18px 0 18px 10px;
        font-weight: 700 !important; letter-spacing: 1px;
    }
    .consult-btn:after { display: none !important; }
    .consult-btn:hover { background: var(--gold-light) !important; }
}

.navbar-toggle .icon-bar { background: var(--gold); }

/* [TEMPLATE_ASSET: HERO_AESTHETICS] */
/* ===================== HERO ===================== */
#home {
    min-height: 100vh; display: flex; align-items: center;
    padding: 120px 0 80px; position: relative; text-align: center;
}
.hero-content { position: relative; z-index: 2; }
.hero-eyebrow {
    font-size: 12px; letter-spacing: 4px; text-transform: uppercase;
    color: var(--gold); font-weight: 600; margin-bottom: 20px;
    display: inline-block; border: 1px solid rgba(201,168,76,0.3);
    padding: 6px 20px; border-radius: 20px;
}
.hero-title {
    font-size: 58px; font-weight: 900; line-height: 1.1;
    color: var(--white); text-transform: uppercase; margin-bottom: 10px;
}
.hero-title span { color: var(--gold); }
.hero-subtitle {
    font-size: 16px; color: var(--text-muted); font-family: 'Roboto', sans-serif;
    font-weight: 300; margin: 20px auto 10px; max-width: 600px; line-height: 1.7;
}
.hero-animated {
    font-size: 22px; font-weight: 700; color: var(--gold);
    letter-spacing: 2px; min-height: 36px; margin: 10px 0 35px;
}
.hero-btns { margin-top: 10px; }
.btn-gold {
    background: var(--gold); color: var(--navy) !important; border: none;
    padding: 14px 36px; border-radius: 30px; font-weight: 700;
    font-size: 14px; letter-spacing: 1px; text-transform: uppercase;
    margin: 6px; display: inline-block; text-decoration: none !important;
    box-shadow: 0 4px 20px rgba(201,168,76,0.35);
}
.btn-gold:hover { background: var(--gold-light); color: var(--navy) !important; text-decoration: none; transform: translateY(-2px); }
.btn-outline-gold {
    background: transparent; color: var(--gold); border: 2px solid var(--gold);
    padding: 12px 34px; border-radius: 30px; font-weight: 700;
    font-size: 14px; letter-spacing: 1px; text-transform: uppercase;
    margin: 6px; display: inline-block; text-decoration: none;
}
.btn-outline-gold:hover { background: var(--gold); color: var(--navy); text-decoration: none; transform: translateY(-2px); }

/* ===================== SECTIONS GENERAL ===================== */
.section-pad { padding: 90px 0; }
.section-dark { background: rgba(8,16,35,0.85); }
.section-darker { background: rgba(5,10,22,0.92); }
.section-title {
    font-size: 36px; font-weight: 900; text-transform: uppercase;
    color: var(--white); margin-bottom: 10px; letter-spacing: 2px;
}
.section-title span { color: var(--gold); }
.section-subtitle {
    font-family: 'Roboto', sans-serif; font-weight: 300;
    color: var(--text-muted); font-size: 16px; max-width: 650px;
    margin: 0 auto 50px; line-height: 1.7;
}
.gold-divider {
    width: 60px; height: 3px; background: var(--gold);
    margin: 15px auto 25px; border-radius: 2px;
}

/* [TEMPLATE_ASSET: SERVICES_CARDS] */
/* ===================== SERVICES / PILLARS ===================== */
#services { padding: 90px 0; }
.pillar-card {
    background: rgba(14,32,64,0.7); border: 1px solid rgba(201,168,76,0.15);
    border-radius: 8px; padding: 40px 30px; text-align: center;
    height: 100%; position: relative; overflow: hidden;
    transition: all 0.3s ease;
}
.pillar-card:hover { border-color: var(--gold); transform: translateY(-5px); box-shadow: 0 10px 40px rgba(201,168,76,0.15); }
.pillar-icon { font-size: 52px; color: var(--gold); margin-bottom: 20px; display: block; }
.pillar-card h4 { color: var(--white); font-size: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; }
.pillar-card p { color: var(--text-muted); font-family: 'Roboto', sans-serif; font-weight: 300; font-size: 14px; line-height: 1.7; }
.pillar-link {
    display: inline-block; margin-top: 20px; color: var(--gold);
    font-size: 12px; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; text-decoration: none; border-bottom: 1px solid transparent;
}
.pillar-link:hover { border-bottom-color: var(--gold); color: var(--gold-light); text-decoration: none; }

/* ===================== WHY ROINR ===================== */
#why-roinr { padding: 90px 0; }
.why-card {
    background: rgba(14,32,64,0.5); border-left: 3px solid var(--gold);
    padding: 25px 25px 25px 30px; margin-bottom: 25px; border-radius: 0 6px 6px 0;
    transition: all 0.3s ease;
}
.why-card:hover { background: rgba(14,32,64,0.85); transform: translateX(5px); }
.why-card h5 { color: var(--gold); font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.why-card p { color: var(--text-muted); font-family: 'Roboto', sans-serif; font-weight: 300; font-size: 13px; line-height: 1.6; margin: 0; }

/* ===================== INVESTMENT HORIZONS ===================== */
#investment-horizons { padding: 90px 0; }
.horizon-card {
    background: rgba(14,32,64,0.7); border: 1px solid rgba(201,168,76,0.15);
    border-radius: 8px; padding: 40px 30px; text-align: center; height: 100%;
    transition: all 0.3s ease; position: relative; overflow: hidden;
}
.horizon-card:hover { border-color: var(--gold); box-shadow: 0 10px 40px rgba(201,168,76,0.15); }
.horizon-badge {
    display: inline-block; background: var(--gold); color: var(--navy);
    font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
    padding: 4px 14px; border-radius: 20px; margin-bottom: 15px;
}
.horizon-label { font-size: 28px; font-weight: 900; color: var(--white); margin-bottom: 5px; }
.horizon-roi { font-size: 42px; font-weight: 900; color: var(--gold); line-height: 1; margin: 10px 0; }
.horizon-roi small { font-size: 14px; color: var(--text-muted); display: block; font-weight: 300; margin-top: 5px; }
.horizon-card p { color: var(--text-muted); font-family: 'Roboto', sans-serif; font-weight: 300; font-size: 13px; line-height: 1.6; margin: 15px 0 10px; }
.horizon-zones { font-size: 12px; color: var(--gold); font-weight: 600; letter-spacing: 1px; }

/* [TEMPLATE_ASSET: CHAT_UI_STYLING] */
/* ===================== CHAT SECTION ===================== */
#chat { padding: 90px 0; }
.chat-wrapper {
    width: 80%; /* Exact width match with ticker */
    max-width: 80%; /* Fallback */
    margin: 0 auto;
    background: rgba(8,16,35,0.92); 
    border: 1px solid rgba(201,168,76,0.2);
    border-radius: 12px; 
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 30px rgba(201,168,76,0.3); /* Added glow effect */
    position: relative;
}

/* Add glow effect behind chatbox */
.chat-wrapper::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, rgba(201,168,76,0.4), rgba(201,168,76,0.1), rgba(201,168,76,0.4));
    border-radius: 14px;
    z-index: -1;
    filter: blur(8px);
}
.chat-header {
    background: rgba(14,32,64,0.95); padding: 20px 25px;
    border-bottom: 1px solid rgba(201,168,76,0.15);
    display: flex; align-items: center; gap: 12px;
}
.chat-header .ai-dot {
    width: 10px; height: 10px; background: var(--gold);
    border-radius: 50%; animation: pulse 1.5s infinite;
}
.chat-header span { color: var(--white); font-weight: 700; font-size: 14px; letter-spacing: 1px; }
.chat-header small { color: var(--text-muted); font-size: 11px; margin-left: auto; }

/* Turnstile verify screen */
#verify-screen { padding: 40px 25px; text-align: center; display: block; }
#verify-screen p { color: var(--text-muted); font-family: 'Roboto', sans-serif; font-size: 14px; margin-bottom: 20px; }
.cf-turnstile { display: inline-block; }

/* Chat messages */
#chat-screen { display: none; }
#chat-messages {
    height: 340px; overflow-y: auto; padding: 20px 25px;
    display: flex; flex-direction: column; gap: 14px;
}
#chat-messages::-webkit-scrollbar { width: 4px; }
#chat-messages::-webkit-scrollbar-track { background: transparent; }
#chat-messages::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.3); border-radius: 2px; }

.msg-ai, .msg-user { max-width: 80%; padding: 12px 18px; border-radius: 12px; font-size: 14px; line-height: 1.6; font-family: 'Roboto', sans-serif; position: relative; }
.msg-ai p { margin: 0 0 10px 0; }
.msg-ai p:last-child { margin-bottom: 0; }
.msg-ai ul { margin: 10px 0; padding: 0; list-style: none; }
.msg-ai li { position: relative; padding-left: 20px; margin-bottom: 6px; line-height: 1.5; display: block; }
.msg-ai li::before { content: '•'; position: absolute; left: 0; color: var(--gold); font-size: 18px; line-height: 1; top: 0; }

/* Starter chips */
.starter-chips { padding: 0 25px 15px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    background: rgba(201,168,76,0.1); border: 1px solid rgba(201,168,76,0.3);
    color: var(--gold); font-size: 12px; padding: 6px 14px; border-radius: 20px;
    cursor: pointer; transition: all 0.2s;
}
.chip:hover { background: var(--gold); color: var(--navy); }

/* Chat input */
.chat-input-area {
    padding: 15px 25px 20px; border-top: 1px solid rgba(201,168,76,0.1);
    display: flex; gap: 10px; align-items: center;
}
#chat-input {
    flex: 1; background: rgba(255,255,255,0.06); border: 1px solid rgba(201,168,76,0.2);
    border-radius: 25px; padding: 12px 20px; color: var(--white); font-size: 14px;
    font-family: 'Roboto', sans-serif; outline: none;
}
#chat-input::placeholder { color: rgba(255,255,255,0.35); }
#chat-input:focus { border-color: var(--gold); }
#send-btn {
    background: var(--gold); border: none; border-radius: 50%;
    width: 44px; height: 44px; color: var(--navy); font-size: 16px;
    cursor: pointer; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}
#send-btn:hover { background: var(--gold-light); }
#send-btn i { display: inline-block; font-size: 14px; }

/* Email transcript */
.chat-footer { padding: 10px 25px 20px; text-align: center; }
#email-btn {
    background: transparent; border: 1px solid rgba(201,168,76,0.3);
    color: var(--text-muted); font-size: 12px; padding: 7px 20px;
    border-radius: 20px; cursor: pointer; transition: all 0.2s;
}
#email-btn:hover { border-color: var(--gold); color: var(--gold); }
#email-btn i { display: inline-block; font-size: 12px; margin-right: 5px; }
#email-modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); z-index: 9999; align-items: center; justify-content: center;
}
#email-modal-overlay.active { display: flex; }
.email-modal {
    background: var(--navy-mid); border: 1px solid rgba(201,168,76,0.3);
    border-radius: 12px; padding: 35px; max-width: 420px; width: 90%; text-align: center;
}
.email-modal h4 { color: var(--gold); font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.email-modal p { color: var(--text-muted); font-size: 13px; margin-bottom: 20px; }
.email-modal input {
    width: 100%; background: rgba(255,255,255,0.06); border: 1px solid rgba(201,168,76,0.2);
    border-radius: 6px; padding: 10px 15px; color: var(--white); font-size: 14px;
    margin-bottom: 10px; outline: none;
}
.email-modal input:focus { border-color: var(--gold); }
.email-modal .btn-gold { width: 100%; margin: 5px 0; }
.email-modal .btn-cancel { background: transparent; border: none; color: var(--text-muted); font-size: 12px; cursor: pointer; margin-top: 8px; }
.email-modal .btn-cancel:hover { color: var(--white); }

/* ===================== CONTACT ===================== */
#contact { padding: 90px 0; }
.contact-card {
    background: rgba(14,32,64,0.7); border: 1px solid rgba(201,168,76,0.15);
    border-radius: 8px; padding: 35px 30px; text-align: center; height: 100%;
    transition: all 0.3s ease;
}
.contact-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.contact-icon { font-size: 36px; color: var(--gold); margin-bottom: 15px; }
.contact-card h5 { color: var(--white); font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.contact-card p { color: var(--text-muted); font-family: 'Roboto', sans-serif; font-size: 13px; line-height: 1.6; margin: 0; }
.contact-card a { color: var(--gold); text-decoration: none; }
.contact-card a:hover { color: var(--gold-light); }

/* ===================== FOOTER ===================== */
footer {
    background: rgba(5,10,22,0.97); border-top: 1px solid rgba(201,168,76,0.15);
    padding: 50px 0 25px;
}
.footer-logo { font-size: 28px; font-weight: 900; color: var(--gold); letter-spacing: 8px; text-transform: uppercase; }
.footer-logo span { color: var(--white); font-weight: 300; font-size: 11px; letter-spacing: 3px; display: block; margin-top: -4px; }
.footer-tagline { color: var(--text-muted); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; margin-top: 8px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--text-muted); font-size: 13px; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-heading { color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 18px; }
.footer-divider { border-color: rgba(201,168,76,0.1); margin: 30px 0 20px; }
.footer-bottom { color: rgba(255,255,255,0.35); font-size: 11px; line-height: 1.7; }
.footer-bottom a { color: rgba(201,168,76,0.5); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold); }
.footer-disclaimer { color: rgba(255,255,255,0.25); font-size: 10px; margin-top: 10px; line-height: 1.6; }

/* ===================== SCROLL TO TOP ===================== */
#toTop {
    position: fixed; bottom: 30px; right: 30px; width: 42px; height: 42px;
    background: var(--gold); color: var(--navy); border: none; border-radius: 50%;
    font-size: 16px; cursor: pointer; display: none; z-index: 999;
    align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(201,168,76,0.4);
}
#toTop:hover { background: var(--gold-light); transform: translateY(-2px); }

/* ===================== TYPING INDICATOR ===================== */
.msg-ai.typing-dots {
    display: block;
    padding: 12px 18px;
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 4px 10px 10px 10px;
    margin-bottom: 12px;
}
.typing-dots span {
    display: inline-block; width: 7px; height: 7px; background: var(--gold);
    border-radius: 50%; margin: 0 2px; animation: bounce 1.2s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce { 0%,80%,100%{transform:translateY(0)} 40%{transform:translateY(-8px)} }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 991px) {
    .hero-title { font-size: 40px; }
    .horizon-roi { font-size: 32px; }
}
@media (max-width: 767px) {
    .hero-title { font-size: 30px; }
    .hero-subtitle { font-size: 14px; }
    .section-title { font-size: 26px; }
    .section-pad { padding: 60px 0; }
    #home { padding: 100px 0 60px; }
    .pillar-card, .horizon-card { margin-bottom: 20px; }
    .navbar-brand { font-size: 20px; letter-spacing: 4px; }
    .chat-wrapper { border-radius: 8px; }
    #chat-messages { height: 260px; }
    .starter-chips { display: none; }
}

/* ===================== TICKER ===================== */
.ticker-container {
    background: linear-gradient(135deg, rgba(201,168,76,0.15) 0%, rgba(201,168,76,0.08) 100%);
    border: 1px solid rgba(201,168,76,0.2);
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
}

.ticker-wrapper {
    position: relative;
    height: 45px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.ticker-wrapper::before {
    content: '📢';
    position: absolute;
    left: 15px;
    z-index: 2;
    font-size: 16px;
    background: rgba(10, 22, 40, 0.9);
    padding: 0 8px;
    border-radius: 4px;
}

.ticker-content {
    display: flex;
    animation: ticker-scroll 60s linear infinite;
    white-space: nowrap;
    padding-left: 60px;
}

.ticker-item {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 500;
    margin-right: 80px;
    display: inline-block;
    letter-spacing: 0.5px;
}

.ticker-item #user-ip,
.ticker-item #user-location {
    color: var(--gold);
    font-weight: 600;
}

@keyframes ticker-scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.ticker-container:hover .ticker-content {
    animation-play-state: paused;
}

/* Responsive ticker */
@media (max-width: 768px) {
    .ticker-wrapper {
        height: 40px;
    }
    .ticker-item {
        font-size: 12px;
        margin-right: 60px;
    }
    .ticker-wrapper::before {
        left: 10px;
        font-size: 14px;
        padding: 0 6px;
    }
    .ticker-content {
        padding-left: 50px;
    }
}
/* ===================== CHAT SCREENS ===================== */
#verify-screen {
    display: block;
    text-align: center;
    padding: 40px 20px;
    background: rgba(10, 22, 40, 0.8);
    border-radius: 12px;
    margin: 20px 0;
}

#verify-screen p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

#chat-screen {
    display: none;
    background: rgba(10, 22, 40, 0.8);
    border-radius: 12px;
    margin: 20px 0;
}

/* Turnstile widget styling */
.cf-turnstile {
    margin: 20px auto;
    display: flex;
    justify-content: center;
}

/* Ensure Turnstile widget is visible */
.cf-turnstile iframe {
    border-radius: 8px !important;
}

/* Verify message styling */
#verify-msg {
    color: rgba(201, 168, 76, 0.7) !important;
    font-size: 12px !important;
    margin-top: 12px !important;
    text-align: center;
}

/* Chat screen content */
#chat-messages {
    max-height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.msg-ai {
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.2);
    color: rgba(255, 255, 255, 0.9);
    align-self: flex-start;
    border-radius: 4px 12px 12px 12px;
}

.msg-user {
    background: var(--gold);
    color: var(--navy);
    align-self: flex-end;
    border-radius: 12px 4px 12px 12px;
    font-weight: 600;
}

.starter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
    padding: 0 20px;
}

.chip {
    background: rgba(201, 168, 76, 0.2);
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    border: 1px solid rgba(201, 168, 76, 0.3);
    transition: all 0.2s ease;
}

.chip:hover {
    background: rgba(201, 168, 76, 0.3);
    border-color: rgba(201, 168, 76, 0.5);
}

.chat-input-area {
    display: flex;
    padding: 20px;
    gap: 10px;
}

#chat-input {
    flex: 1;
    padding: 12px 18px;
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

#chat-input:focus {
    outline: none;
    border-color: rgba(201, 168, 76, 0.6);
    background: rgba(255, 255, 255, 0.15);
}

#chat-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#send-btn {
    background: var(--gold);
    color: var(--navy);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

#send-btn:hover {
    background: var(--gold-light);
    transform: scale(1.05);
}

#send-btn i {
    display: inline-block !important;
    font-size: 14px !important;
    margin-right: 0 !important;
}

.chat-footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid rgba(201, 168, 76, 0.2);
}

#email-btn {
    background: rgba(201, 168, 76, 0.2);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(201, 168, 76, 0.3);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#email-btn:hover {
    background: rgba(201, 168, 76, 0.3);
    border-color: rgba(201, 168, 76, 0.5);
}

#email-btn i {
    display: inline-block !important;
    font-size: 12px !important;
    margin-right: 5px !important;
}

/* Chat wrapper styling */
.chat-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(201, 168, 76, 0.2);
}

.chat-header {
    background: rgba(201, 168, 76, 0.1);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.ai-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.chat-header span {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    font-size: 14px;
}

.chat-header small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    margin-left: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .chat-wrapper {
        width: 80%; /* Maintain same width as desktop */
        max-width: 80%;
        margin: 0 auto; /* Center it properly */
    }
    
    .ticker-container {
        width: 80%; /* Maintain same width as desktop */
        max-width: 80%;
        margin: 0 auto 20px auto; /* Center it properly */
    }
    
    #verify-screen {
        padding: 30px 15px;
    }
    
    .starter-chips {
        padding: 0 15px;
    }
    
    .chat-input-area {
        padding: 15px;
    }
    
    #chat-messages {
        padding: 15px;
    }
}
/* ===================== TYPING INDICATOR ===================== */
.msg-ai.typing-dots {
    display: block !important;
    opacity: 1 !important;
    padding: 12px 18px;
    background: rgba(201, 168, 76, 0.1);
    border-radius: 18px;
    margin-bottom: 12px;
}

.typing-dots span {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 2px;
    background: rgba(201, 168, 76, 0.6);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}
/* ===================== EMAIL MODAL ===================== */
#email-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#email-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.email-modal {
    background: var(--navy);
    border: 2px solid var(--gold);
    border-radius: 15px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.email-modal h4 {
    color: var(--gold);
    margin-bottom: 15px;
    font-size: 18px;
}

.email-modal p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    font-size: 14px;
}

.email-modal input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.email-modal input:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.15);
}

.email-modal input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.email-modal .btn-gold {
    background: var(--gold);
    color: var(--navy);
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    margin-right: 10px;
    transition: all 0.2s ease;
}

.email-modal .btn-gold:hover {
    background: var(--gold-light);
}

.email-modal .btn-cancel {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.email-modal .btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

#email-status {
    font-size: 12px !important;
    color: rgba(201, 168, 76, 0.8) !important;
    margin-top: 8px !important;
}
/* ===================== TICKER FAST ANIMATION ===================== */
.ticker-container {
    background: linear-gradient(135deg, rgba(201,168,76,0.15) 0%, rgba(201,168,76,0.08) 100%);
    border: 1px solid rgba(201,168,76,0.2);
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
    width: 80%; /* Exact width match with chatbox */
    max-width: 80%; /* Fallback */
    margin-left: auto;
    margin-right: auto;
}
    margin-left: auto;
    margin-right: auto;
}

.ticker-wrapper {
    position: relative;
    height: 45px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Speaker icon section */
.ticker-icon {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 50px;
    background: rgba(201,168,76,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(201,168,76,0.3);
    z-index: 2;
}

.ticker-icon i {
    font-size: 16px;
    color: var(--gold);
}

/* Ticker text section */
.ticker-text {
    flex: 1;
    margin-left: 50px; /* Space for icon */
    overflow: hidden;
}

.ticker-content {
    display: flex;
    animation: ticker-scroll-fast 35s linear infinite;
    white-space: nowrap;
    padding-left: 20px;
    padding-right: 20px;
}

.ticker-item {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 600;
    margin-right: 100px;
    display: inline-block;
    letter-spacing: 0.5px;
}

.ticker-item #user-ip,
.ticker-item #user-location {
    color: var(--gold);
    font-weight: 700;ion */
}

@keyframes ticker-scroll-fast {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.ticker-container:hover .ticker-content {
    animation-play-state: paused;
}

/* Responsive ticker */
@media (max-width: 768px) {
    .ticker-wrapper {
        height: 40px;
    }
    .ticker-item {
        font-size: 12px;
        margin-right: 60px;
    }
    .ticker-wrapper::before {
        left: 10px;
        font-size: 14px;
        padding: 0 6px;
    }
    .ticker-content {
        padding-left: 50px;
    }
}
/* ===================== MOBILE OPTIMIZATIONS ===================== */
@media (max-width: 768px) {
    .ticker-wrapper {
        height: 45px; /* Increased for mobile */
    }
    .ticker-item {
        font-size: 14px; /* Increased from 12px */
        margin-right: 80px;
    }
    .ticker-wrapper::before {
        left: 10px;
        font-size: 16px; /* Increased */
        padding: 0 6px;
    }
    .ticker-content {
        padding-left: 50px;
        padding-right: 50px;
    }
    
    /* Mobile chatbox optimizations - MAINTAIN 80% WIDTH */
    .chat-wrapper {
        width: 80% !important; /* Same as desktop */
        max-width: 80% !important;
        margin: 0 auto;
        border-radius: 8px;
    }
    
    .ticker-container {
        width: 80% !important; /* Match chatbox width exactly */
        max-width: 80% !important;
        margin: 0 auto 20px auto;
    }
    
    #chat-messages {
        height: 300px; /* Increased height for mobile */
        padding: 15px;
    }
    
    .chat-input-area {
        padding: 15px;
        flex-wrap: wrap; /* Allow wrapping on very small screens */
    }
    
    #chat-input {
        font-size: 16px; /* Prevent zoom on iOS */
        min-height: 44px; /* Touch-friendly */
    }
    
    #send-btn {
        min-width: 44px; /* Touch-friendly */
        min-height: 44px;
    }
    
    .chat-footer {
        padding: 15px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    #email-btn, #new-chat-btn {
        margin: 5px;
        padding: 12px 16px;
        font-size: 12px;
        flex: 1;
        min-width: 140px;
    }
}

/* ===================== NEW CONVERSATION BUTTON STYLING ===================== */
#new-chat-btn {
    background: rgba(201,168,76,0.2);
    color: rgba(255,255,255,0.9);
    border: 1px solid rgba(201,168,76,0.3);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 10px;
}

#new-chat-btn:hover {
    background: rgba(201,168,76,0.3);
    border-color: rgba(201,168,76,0.5);
    transform: translateY(-1px);
}

#new-chat-btn i {
    margin-right: 5px;
}
/* ===================== POWERED BY XISTO STYLING ===================== */
.footer-bottom a[href*="xisto.com"] {
    color: rgba(201,168,76,0.7) !important;
    font-size: 12px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    background: rgba(201,168,76,0.1);
    border: 1px solid rgba(201,168,76,0.2);
}

.footer-bottom a[href*="xisto.com"]:hover {
    color: var(--gold) !important;
    background: rgba(201,168,76,0.2);
    border-color: rgba(201,168,76,0.4);
    transform: translateY(-1px);
}
/* ===================== FLASHING LOADING EFFECT ===================== */
.loading-flash {
    animation: flash 1.5s infinite;
    color: var(--gold);
    font-weight: 700;
}

@keyframes flash {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}
/* ===================== TYPEWRITER EFFECT ===================== */
.msg-ai.typing {
    position: relative;
}

.msg-ai.typing::after {
    content: '|';
    color: var(--gold);
    animation: blink 1s infinite;
    font-weight: bold;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Smooth typing animation */
.msg-ai {
    transition: all 0.1s ease;
}

/* ===================== TICKER RESPONSIVE ===================== */
@media (max-width: 768px) {
    .ticker-wrapper {
        height: 40px;
    }
    .ticker-icon {
        width: 40px;
    }
    .ticker-icon i {
        font-size: 14px;
    }
    .ticker-text {
        margin-left: 40px;
    }
    .ticker-item {
        font-size: 12px;
        margin-right: 60px;
    }
    .ticker-content {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* ===================== COOKIE BANNER RESPONSIVE ===================== */
@media (max-width: 768px) {
    #cookie-banner {
        padding: 12px 15px;
    }
    #cookie-banner > div {
        flex-direction: column;
        text-align: center;
    }
    #cookie-banner p {
        font-size: 13px;
        margin-bottom: 10px !important;
    }
    #cookie-banner button {
        padding: 10px 16px;
        font-size: 13px;
        min-width: 100px;
    }
}

/* ===================== MOBILE NAVIGATION FIXES ===================== */
@media (max-width: 767px) {
    /* Ensure the collapse is hidden by default and above hero */
    .navbar-collapse {
        background: rgba(8, 16, 35, 0.98);
        border: 1px solid rgba(201, 168, 76, 0.3) !important;
        margin-top: 10px;
        border-radius: 8px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.8);
        position: relative;
        z-index: 1001;
    }
    
    /* Standard Bootstrap hide/show logic reinforcement */
    .navbar-collapse.collapse {
        display: none !important;
    }
    .navbar-collapse.collapse.in {
        display: block !important;
    }
    
    /* Style the links for mobile */
    .main-nav .navbar-nav {
        margin: 0;
    }
    .main-nav .navbar-nav > li > a {
        color: var(--white) !important;
        padding: 15px 20px !important;
        border-bottom: 1px solid rgba(201, 168, 76, 0.1);
        font-weight: 600;
        font-size: 14px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
    .main-nav .navbar-nav > li:last-child > a {
        border-bottom: none;
    }
    
    /* Special button styling for mobile */
    .consult-btn {
        background: var(--gold) !important;
        color: var(--navy) !important;
        margin: 15px 20px !important;
        text-align: center;
        border-radius: 4px !important;
        padding: 12px !important;
    }
    
    /* Ensure Brand and Toggle are centered/aligned */
    .navbar-header {
        background: transparent;
        padding: 10px 0; /* Added more padding to header */
    }

    .navbar-brand {
        padding: 20px 15px !important; /* Give logo more room to breathe */
    }

    .main-nav.scrolled .navbar-brand {
        padding: 15px 15px !important; /* Slightly tighter but still roomy on scroll */
    }
    
    /* Prevent hero overlap when menu is closed */
    #home {
        padding-top: 110px; /* Adjusted for larger header */
    }
}
