/* ============================================================
   CJPTV AI — FIRE EDITION
   OBSIDIAN + BURNT ORANGE
   ============================================================ */

:root {
    --bg: #050505;
    --bg-2: #090909;
    --panel: #0d0d0d;
    --panel-2: #111111;

    --orange: #ff5a16;
    --orange-2: #ff7a1a;
    --orange-3: #ff9b3d;

    --fire: #ff4d00;
    --fire-soft: #ff7625;

    --text: #ffffff;
    --text-soft: #b7b7b7;
    --text-muted: #777777;

    --border: rgba(255, 94, 25, 0.16);
    --border-strong: rgba(255, 94, 25, 0.32);

    --shadow-fire:
        0 0 25px rgba(255, 72, 0, 0.15),
        0 0 80px rgba(255, 72, 0, 0.07);

    --sidebar-width: 290px;
    --topbar-height: 70px;
    --radius: 18px;
}


/* ============================================================
   RESET
   ============================================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(
            circle at 50% 100%,
            rgba(255, 67, 0, 0.09),
            transparent 35%
        ),
        #050505;

    color: var(--text);

    font-family:
        Inter,
        Poppins,
        Arial,
        sans-serif;

    overflow-x: hidden;
}


/* ============================================================
   SCROLLBAR
   ============================================================ */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #050505;
}

::-webkit-scrollbar-thumb {
    background: #292929;
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--orange);
}


/* ============================================================
   PARTICLES
   ============================================================ */

#particleCanvas {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100%;

    pointer-events: none;

    z-index: 0;

    opacity: 0.5;
}


/* ============================================================
   FIRE BACKGROUND
   ============================================================ */

.fire-bg {
    position: fixed;
    inset: 0;

    pointer-events: none;

    z-index: 0;

    background:
        radial-gradient(
            ellipse at 50% 105%,
            rgba(255, 69, 0, 0.14),
            transparent 42%
        ),
        radial-gradient(
            ellipse at 15% 80%,
            rgba(255, 80, 0, 0.055),
            transparent 35%
        ),
        radial-gradient(
            ellipse at 85% 75%,
            rgba(255, 80, 0, 0.04),
            transparent 35%
        );
}

.fire-glow {
    position: fixed;

    width: 500px;
    height: 500px;

    border-radius: 50%;

    pointer-events: none;

    filter: blur(100px);

    opacity: 0.08;

    z-index: 0;

    animation: fireFloat 8s ease-in-out infinite;
}

.fire-glow-1 {
    left: -250px;
    bottom: -250px;

    background: #ff4d00;
}

.fire-glow-2 {
    right: -300px;
    bottom: -200px;

    background: #ff5a00;

    animation-delay: -3s;
}

.fire-glow-3 {
    left: 40%;
    top: 50%;

    width: 300px;
    height: 300px;

    background: #ff6a00;

    opacity: 0.025;

    animation-delay: -5s;
}

@keyframes fireFloat {

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

    50% {
        transform: translateY(-25px) scale(1.08);
    }
}


/* ============================================================
   TOPBAR
   ============================================================ */

.topbar {
    position: fixed;

    top: 0;
    left: 0;
    right: 0;

    height: var(--topbar-height);

    display: flex;
    align-items: center;

    padding: 0 22px;

    background:
        linear-gradient(
            180deg,
            rgba(5, 5, 5, 0.98),
            rgba(5, 5, 5, 0.86)
        );

    backdrop-filter: blur(18px);

    border-bottom:
        1px solid rgba(255, 255, 255, 0.045);

    z-index: 100;
}


/* ============================================================
   TOP LEFT
   ============================================================ */

.top-left {
    display: flex;
    align-items: center;
    gap: 15px;

    min-width: 220px;
}

.icon-btn {
    width: 42px;
    height: 42px;

    border: 1px solid rgba(255, 255, 255, 0.08);

    background: rgba(255, 255, 255, 0.035);

    border-radius: 13px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 4px;

    cursor: pointer;

    transition: 0.25s ease;
}

.icon-btn span {
    width: 17px;
    height: 2px;

    border-radius: 2px;

    background: #eee;

    transition: 0.25s ease;
}

.icon-btn:hover {
    border-color: var(--border-strong);

    background:
        rgba(255, 75, 15, 0.09);

    box-shadow:
        0 0 18px rgba(255, 74, 10, 0.12);
}

.icon-btn:hover span:nth-child(2) {
    width: 12px;
    background: var(--orange);
}


/* ============================================================
   LOGO
   ============================================================ */

.app-logo {
    display: flex;
    align-items: center;

    text-decoration: none;
}

.app-logo img {
    width: 112px;
    height: auto;

    display: block;

    filter:
        drop-shadow(
            0 0 12px rgba(255, 72, 0, 0.18)
        );
}


/* ============================================================
   NEWS TICKER
   ============================================================ */

.news-ticker {
    flex: 1;

    height: 40px;

    margin-left: 25px;

    display: flex;
    align-items: center;

    min-width: 0;

    border:
        1px solid rgba(255, 255, 255, 0.055);

    border-radius: 12px;

    background:
        rgba(255, 255, 255, 0.025);

    overflow: hidden;
}

.ticker-label {
    height: 100%;

    display: flex;
    align-items: center;

    gap: 8px;

    padding: 0 14px;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.2px;

    color: var(--orange);

    border-right:
        1px solid rgba(255, 90, 20, 0.13);

    background:
        rgba(255, 70, 0, 0.035);
}

.live-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #ff3b16;

    box-shadow:
        0 0 10px #ff3b16;

    animation: livePulse 1.3s infinite;
}

@keyframes livePulse {

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

    50% {
        opacity: 0.45;
        transform: scale(0.72);
    }
}

.ticker-content {
    flex: 1;

    overflow: hidden;

    white-space: nowrap;
}

#tickerText {
    display: inline-block;

    padding-left: 20px;

    color: #999;

    font-size: 12px;

    animation: tickerMove 45s linear infinite;
}

@keyframes tickerMove {

    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(-100%);
    }
}


/* ============================================================
   SIDEBAR
   ============================================================ */

.sidebar {
    position: fixed;

    top: 0;
    left: 0;
    bottom: 0;

    width: var(--sidebar-width);

    z-index: 300;

    background:
        linear-gradient(
            180deg,
            #0b0b0b 0%,
            #080808 100%
        );

    border-right:
        1px solid rgba(255, 255, 255, 0.06);

    transform: translateX(-100%);

    transition:
        transform 0.32s cubic-bezier(
            0.4,
            0,
            0.2,
            1
        );

    box-shadow:
        20px 0 70px rgba(0, 0, 0, 0.45);
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar-inner {
    height: 100%;

    padding: 18px;

    display: flex;
    flex-direction: column;
}


/* ============================================================
   ACCOUNT
   ============================================================ */

.account-box {
    display: flex;
    align-items: center;

    gap: 11px;

    padding: 12px;

    border:
        1px solid rgba(255, 255, 255, 0.06);

    border-radius: 16px;

    background:
        rgba(255, 255, 255, 0.025);

    margin-bottom: 12px;
}

.account-avatar {
    width: 40px;
    height: 40px;

    border-radius: 12px;

    object-fit: cover;

    box-shadow:
        0 0 15px rgba(255, 75, 15, 0.12);
}

.account-info {
    flex: 1;

    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 3px;
}

.account-info span {
    font-size: 13px;

    font-weight: 600;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-info small {
    color: #666;

    font-size: 10px;
}

.sidebar-login-btn {
    padding: 7px 11px;

    border: 1px solid var(--border);

    border-radius: 9px;

    background:
        rgba(255, 78, 15, 0.07);

    color: var(--orange);

    font-size: 10px;

    font-weight: 700;

    cursor: pointer;

    transition: 0.2s;
}

.sidebar-login-btn:hover {
    background:
        rgba(255, 78, 15, 0.14);

    border-color:
        rgba(255, 90, 20, 0.35);
}


/* ============================================================
   SIDEBAR BUTTONS
   ============================================================ */

.about-btn,
.new-chat-btn {
    width: 100%;

    height: 46px;

    display: flex;
    align-items: center;

    gap: 11px;

    border-radius: 13px;

    cursor: pointer;

    font-family: inherit;

    transition: 0.22s ease;
}

.about-btn {
    border: 1px solid transparent;

    background: transparent;

    color: #aaa;

    padding: 0 13px;

    font-size: 12px;

    text-align: left;
}

.about-btn:hover {
    color: white;

    background:
        rgba(255, 255, 255, 0.035);
}

.about-btn span:first-child {
    font-size: 16px;
    color: #888;
}

.new-chat-btn {
    justify-content: center;

    margin-top: 8px;

    border:
        1px solid rgba(255, 83, 15, 0.28);

    background:
        linear-gradient(
            135deg,
            rgba(255, 79, 13, 0.15),
            rgba(255, 79, 13, 0.045)
        );

    color: #fff;

    font-size: 12px;
    font-weight: 700;

    box-shadow:
        inset 0 0 20px rgba(255, 75, 0, 0.025);
}

.new-chat-btn:hover {
    border-color:
        rgba(255, 91, 22, 0.55);

    box-shadow:
        0 0 24px rgba(255, 75, 0, 0.11);

    transform: translateY(-1px);
}

.new-chat-plus {
    color: var(--orange);

    font-size: 19px;

    line-height: 1;
}


/* ============================================================
   SIDEBAR HEADER
   ============================================================ */

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 28px;

    padding: 0 5px 11px;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.055);
}

.sidebar-header h2 {
    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1.2px;

    text-transform: uppercase;

    color: #666;
}

.close-sidebar {
    border: 0;

    background: transparent;

    color: #666;

    font-size: 20px;

    cursor: pointer;

    transition: 0.2s;
}

.close-sidebar:hover {
    color: var(--orange);
}


/* ============================================================
   HISTORY
   ============================================================ */

.history-list {
    flex: 1;

    overflow-y: auto;

    padding-top: 8px;
}

.history-item {
    width: 100%;

    padding: 11px 12px;

    margin-bottom: 4px;

    border: 1px solid transparent;

    border-radius: 11px;

    background: transparent;

    color: #999;

    font-family: inherit;

    font-size: 11px;

    text-align: left;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    cursor: pointer;

    transition: 0.2s;
}

.history-item:hover {
    color: #eee;

    background:
        rgba(255, 255, 255, 0.035);

    border-color:
        rgba(255, 255, 255, 0.04);
}

.history-empty {
    padding: 20px 5px;

    text-align: center;

    color: #444;

    font-size: 11px;
}


/* ============================================================
   SIDEBAR BOTTOM
   ============================================================ */

.sidebar-bottom {
    padding-top: 14px;

    border-top:
        1px solid rgba(255, 255, 255, 0.055);
}

.instagram-link {
    display: flex;
    align-items: center;

    gap: 9px;

    padding: 10px 5px;

    color: #777;

    text-decoration: none;

    font-size: 11px;

    transition: 0.2s;
}

.instagram-link:hover {
    color: var(--orange);
}

.instagram-icon {
    font-size: 17px;
}

.sidebar-version {
    padding: 8px 5px 2px;

    color: #353535;

    font-size: 9px;
}


/* ============================================================
   MAIN
   ============================================================ */

.main-content {
    position: relative;

    z-index: 2;

    min-height: 100vh;

    padding-top: var(--topbar-height);

    padding-bottom: 150px;
}


/* ============================================================
   HERO
   ============================================================ */

.hero {
    min-height: calc(100vh - 70px);

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 80px 20px 130px;
}

.hero-fire-ring {
    position: relative;

    width: 108px;
    height: 108px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 25px;
}

.hero-fire-ring::before {
    content: "";

    position: absolute;
    inset: 0;

    border-radius: 50%;

    background:
        conic-gradient(
            from 0deg,
            transparent,
            var(--orange),
            transparent 28%,
            var(--fire),
            transparent 58%,
            var(--orange-2),
            transparent
        );

    filter:
        blur(2px);

    animation:
        fireSpin 5s linear infinite;
}

.hero-fire-ring::after {
    content: "";

    position: absolute;

    inset: 5px;

    border-radius: 50%;

    background: #070707;

    box-shadow:
        inset 0 0 30px rgba(255, 69, 0, 0.14),
        0 0 35px rgba(255, 68, 0, 0.15);
}

@keyframes fireSpin {
    to {
        transform: rotate(360deg);
    }
}

.hero-logo {
    position: relative;

    z-index: 2;

    width: 76px;
    height: 76px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo img {
    max-width: 72px;
    max-height: 72px;

    object-fit: contain;

    filter:
        drop-shadow(
            0 0 16px rgba(255, 75, 0, 0.25)
        );
}

.hero-badge {
    display: flex;
    align-items: center;

    gap: 8px;

    padding: 7px 13px;

    border:
        1px solid rgba(255, 91, 25, 0.16);

    background:
        rgba(255, 72, 0, 0.045);

    border-radius: 30px;

    color: #b65d32;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1.3px;

    text-transform: uppercase;

    margin-bottom: 17px;
}

.hero-badge span {
    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: var(--orange);

    box-shadow:
        0 0 8px var(--orange);
}

.hero h1 {
    font-family: Poppins, sans-serif;

    font-size:
        clamp(40px, 6vw, 72px);

    line-height: 1.05;

    letter-spacing: -3px;

    font-weight: 700;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #dcdcdc 48%,
            #9d9d9d 100%
        );

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;

    text-shadow:
        0 0 40px rgba(255, 255, 255, 0.03);

    margin-bottom: 13px;
}

.hero-subtitle {
    color: #555;

    font-size: 13px;

    margin-bottom: 28px;
}

.hero-suggestions {
    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 9px;

    max-width: 700px;
}

.hero-suggestions button {
    display: flex;
    align-items: center;

    gap: 7px;

    padding: 10px 14px;

    border:
        1px solid rgba(255, 255, 255, 0.065);

    border-radius: 12px;

    background:
        rgba(255, 255, 255, 0.025);

    color: #777;

    font-family: inherit;

    font-size: 10px;

    cursor: pointer;

    transition: 0.22s;
}

.hero-suggestions button:hover {
    color: #ddd;

    border-color:
        rgba(255, 82, 15, 0.28);

    background:
        rgba(255, 72, 0, 0.055);

    transform: translateY(-2px);

    box-shadow:
        0 8px 25px rgba(255, 70, 0, 0.07);
}

.hero-suggestions button span {
    font-size: 13px;
}


/* ============================================================
   CHAT
   ============================================================ */

.chat {
    width: min(900px, calc(100% - 30px));

    margin: 0 auto;

    display: flex;
    flex-direction: column;

    gap: 18px;
}


/* ============================================================
   MESSAGE
   ============================================================ */

.message {
    display: flex;

    width: 100%;

    animation:
        messageIn 0.28s ease;
}

@keyframes messageIn {

    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-msg {
    justify-content: flex-end;
}

.ai-msg {
    justify-content: flex-start;
}

.message-bubble {
    max-width: 78%;

    padding: 14px 17px;

    border-radius: 17px;

    font-size: 13px;

    line-height: 1.7;

    white-space: pre-wrap;

    overflow-wrap: anywhere;
}

.user-msg .message-bubble {
    color: #fff;

    background:
        linear-gradient(
            135deg,
            #e94d13,
            #a82e09
        );

    border:
        1px solid rgba(255, 126, 69, 0.22);

    border-bottom-right-radius: 5px;

    box-shadow:
        0 8px 28px rgba(255, 63, 0, 0.12);
}

.ai-msg .message-bubble {
    color: #d2d2d2;

    background:
        rgba(255, 255, 255, 0.032);

    border:
        1px solid rgba(255, 255, 255, 0.065);

    border-bottom-left-radius: 5px;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.15);
}

.ai-msg .message-bubble strong {
    color: #fff;
}

.ai-msg .message-bubble a {
    color: var(--orange);

    text-decoration: none;
}

.ai-msg .message-bubble a:hover {
    text-decoration: underline;
}


/* ============================================================
   THINKING
   ============================================================ */

.thinking-dots {
    display: flex;
    align-items: center;

    gap: 5px;

    height: 18px;
}

.thinking-dots span {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--orange);

    box-shadow:
        0 0 8px rgba(255, 76, 0, 0.5);

    animation:
        thinking 1s infinite ease-in-out;
}

.thinking-dots span:nth-child(2) {
    animation-delay: 0.15s;
}

.thinking-dots span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes thinking {

    0%,
    60%,
    100% {
        opacity: 0.25;
        transform: translateY(0);
    }

    30% {
        opacity: 1;
        transform: translateY(-4px);
    }
}


/* ============================================================
   INPUT
   ============================================================ */

.input-area {
    position: fixed;

    left: 0;
    right: 0;
    bottom: 0;

    z-index: 90;

    padding:
        18px 20px 15px;

    background:
        linear-gradient(
            180deg,
            transparent,
            rgba(5, 5, 5, 0.93) 35%,
            #050505 100%
        );
}

.input-bar {
    position: relative;

    width: min(800px, 100%);

    height: 58px;

    margin: 0 auto;

    display: flex;
    align-items: center;

    padding: 5px 6px 5px 16px;

    border:
        1px solid rgba(255, 255, 255, 0.09);

    border-radius: 19px;

    background:
        rgba(15, 15, 15, 0.92);

    backdrop-filter: blur(25px);

    box-shadow:
        0 10px 45px rgba(0, 0, 0, 0.5),
        0 0 35px rgba(255, 70, 0, 0.06);

    overflow: hidden;
}

.input-fire {
    position: absolute;

    left: 15%;
    right: 15%;
    bottom: -45px;

    height: 65px;

    background:
        radial-gradient(
            ellipse,
            rgba(255, 70, 0, 0.16),
            transparent 65%
        );

    filter: blur(18px);

    pointer-events: none;
}

.input-icon {
    position: relative;

    color: var(--orange);

    font-size: 18px;

    margin-right: 10px;

    text-shadow:
        0 0 12px rgba(255, 70, 0, 0.5);
}

#userInput {
    position: relative;

    flex: 1;

    min-width: 0;

    border: 0;
    outline: 0;

    background: transparent;

    color: #fff;

    font-family: inherit;

    font-size: 13px;
}

#userInput::placeholder {
    color: #555;
}

.send-btn {
    position: relative;

    width: 48px;
    height: 48px;

    flex-shrink: 0;

    border: 0;

    border-radius: 15px;

    background:
        linear-gradient(
            135deg,
            #ff6a1a,
            #e33e08
        );

    color: #fff;

    cursor: pointer;

    box-shadow:
        0 0 20px rgba(255, 71, 0, 0.18);

    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

.send-btn span {
    display: inline-block;

    transform: translateX(1px);
}

.send-btn:hover {
    transform: scale(1.045);

    box-shadow:
        0 0 28px rgba(255, 71, 0, 0.3);
}

.send-btn:active {
    transform: scale(0.95);
}

.send-btn:disabled {
    cursor: not-allowed;

    transform: none;
}

.input-disclaimer {
    text-align: center;

    color: #333;

    font-size: 8px;

    margin-top: 8px;
}


/* ============================================================
   BOTTOM GLOW
   ============================================================ */

.bottom-glow {
    position: fixed;

    left: 50%;
    bottom: -100px;

    width: 700px;
    height: 180px;

    transform: translateX(-50%);

    background:
        radial-gradient(
            ellipse,
            rgba(255, 66, 0, 0.14),
            transparent 68%
        );

    filter: blur(25px);

    pointer-events: none;

    z-index: 1;
}


/* ============================================================
   LOGIN MODAL
   ============================================================ */

.modal {
    position: fixed;

    inset: 0;

    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    opacity: 0;
    visibility: hidden;

    transition: 0.25s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    inset: 0;

    background:
        rgba(0, 0, 0, 0.82);

    backdrop-filter: blur(15px);
}

.modal-box {
    position: relative;

    width: min(390px, 100%);

    padding: 34px;

    border:
        1px solid rgba(255, 85, 20, 0.18);

    border-radius: 25px;

    background:
        linear-gradient(
            145deg,
            #111111,
            #080808
        );

    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.65),
        0 0 70px rgba(255, 64, 0, 0.08);

    text-align: center;

    transform: translateY(15px) scale(0.98);

    transition: 0.3s ease;
}

.modal.active .modal-box {
    transform: translateY(0) scale(1);
}

.modal-fire-ring {
    position: relative;

    width: 70px;
    height: 70px;

    margin: 0 auto 17px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-fire-ring::before {
    content: "";

    position: absolute;
    inset: 0;

    border-radius: 50%;

    background:
        conic-gradient(
            var(--orange),
            transparent,
            var(--fire),
            transparent,
            var(--orange)
        );

    animation:
        fireSpin 4s linear infinite;

    filter: blur(1px);
}

.modal-fire-ring::after {
    content: "";

    position: absolute;
    inset: 4px;

    border-radius: 50%;

    background: #0b0b0b;
}

.modal-logo {
    position: relative;
    z-index: 2;

    font-size: 25px;
}

.modal-badge,
.about-label {
    display: inline-block;

    padding: 5px 10px;

    border-radius: 20px;

    color: var(--orange);

    background:
        rgba(255, 75, 0, 0.07);

    border:
        1px solid rgba(255, 75, 0, 0.15);

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 1.2px;

    text-transform: uppercase;
}

.modal-box h2 {
    margin-top: 13px;

    font-family: Poppins, sans-serif;

    font-size: 24px;
}

.modal-box > p {
    margin-top: 9px;

    color: #666;

    font-size: 11px;

    line-height: 1.6;
}

.google-login-btn,
.guest-btn {
    width: 100%;

    height: 48px;

    margin-top: 22px;

    border-radius: 13px;

    font-family: inherit;

    font-size: 12px;

    font-weight: 600;

    cursor: pointer;

    transition: 0.2s;
}

.google-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    border:
        1px solid rgba(255, 255, 255, 0.1);

    background: #fff;

    color: #111;
}

.google-login-btn:hover {
    transform: translateY(-1px);

    box-shadow:
        0 8px 25px rgba(255, 255, 255, 0.08);
}

.google-icon {
    font-size: 17px;

    font-weight: 800;
}

.login-divider {
    display: flex;
    align-items: center;

    gap: 10px;

    margin: 19px 0;

    color: #444;

    font-size: 9px;
}

.login-divider span {
    flex: 1;

    height: 1px;

    background:
        rgba(255, 255, 255, 0.06);
}

.guest-btn {
    margin-top: 0;

    border:
        1px solid rgba(255, 84, 15, 0.2);

    background:
        rgba(255, 75, 0, 0.06);

    color: var(--orange);
}

.guest-btn:hover {
    background:
        rgba(255, 75, 0, 0.11);

    border-color:
        rgba(255, 84, 15, 0.4);
}

.modal-note {
    display: block;

    margin-top: 17px;

    color: #333;

    font-size: 8px;
}


/* ============================================================
   ABOUT MODAL
   ============================================================ */

.about-modal {
    position: fixed;

    inset: 0;

    z-index: 900;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    opacity: 0;
    visibility: hidden;

    transition: 0.25s ease;
}

.about-modal.active {
    opacity: 1;
    visibility: visible;
}

.about-overlay {
    position: absolute;
    inset: 0;

    background:
        rgba(0, 0, 0, 0.8);

    backdrop-filter: blur(12px);
}

.about-box {
    position: relative;

    width: min(470px, 100%);

    padding: 38px;

    border:
        1px solid rgba(255, 82, 15, 0.17);

    border-radius: 25px;

    background:
        linear-gradient(
            145deg,
            #111,
            #080808
        );

    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.65),
        0 0 60px rgba(255, 67, 0, 0.06);

    text-align: center;
}

.about-close {
    position: absolute;

    top: 13px;
    right: 15px;

    width: 35px;
    height: 35px;

    border: 0;

    border-radius: 10px;

    background:
        rgba(255, 255, 255, 0.04);

    color: #777;

    font-size: 22px;

    cursor: pointer;
}

.about-close:hover {
    color: var(--orange);

    background:
        rgba(255, 75, 0, 0.07);
}

.about-logo-wrap {
    width: 75px;
    height: 75px;

    margin: 0 auto 17px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 20px;

    background:
        rgba(255, 75, 0, 0.045);

    border:
        1px solid rgba(255, 75, 0, 0.12);

    box-shadow:
        0 0 35px rgba(255, 75, 0, 0.08);
}

.about-logo {
    max-width: 60px;
    max-height: 60px;

    object-fit: contain;
}

.about-box h2 {
    margin-top: 13px;

    font-size: 26px;
}

.about-tagline {
    color: var(--orange);

    font-size: 10px;

    margin: 8px 0 20px;

    letter-spacing: 0.6px;
}

.about-box > p:not(.about-tagline):not(.about-owner):not(.about-copyright) {
    color: #777;

    font-size: 11px;

    line-height: 1.8;

    margin-top: 13px;
}

.about-box strong {
    color: #ddd;
}

.about-divider {
    height: 1px;

    margin: 22px 0;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 80, 15, 0.2),
            transparent
        );
}

.about-owner {
    display: flex;
    flex-direction: column;

    gap: 6px;
}

.about-owner span {
    color: #555;

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.about-owner strong {
    font-size: 14px;

    color: var(--orange);
}

.about-copyright {
    margin-top: 20px;

    color: #333;

    font-size: 8px;
}


/* ============================================================
   IMAGE VIEWER
   ============================================================ */

.image-viewer {
    position: fixed;

    inset: 0;

    z-index: 2000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;

    background:
        rgba(0, 0, 0, 0.93);

    backdrop-filter: blur(15px);

    opacity: 0;
    visibility: hidden;

    transition: 0.25s ease;
}

.image-viewer.active {
    opacity: 1;
    visibility: visible;
}

#viewerImg {
    max-width: min(1100px, 94vw);
    max-height: 88vh;

    object-fit: contain;

    border-radius: 14px;

    box-shadow:
        0 20px 100px rgba(0, 0, 0, 0.8);
}

.viewer-close,
.viewer-download {
    position: absolute;

    top: 20px;

    width: 43px;
    height: 43px;

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 12px;

    background:
        rgba(255, 255, 255, 0.05);

    color: #aaa;

    font-size: 21px;

    cursor: pointer;

    transition: 0.2s;
}

.viewer-close {
    right: 20px;
}

.viewer-download {
    right: 73px;

    font-size: 19px;
}

.viewer-close:hover,
.viewer-download:hover {
    color: var(--orange);

    border-color:
        rgba(255, 80, 15, 0.3);

    background:
        rgba(255, 70, 0, 0.08);
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 700px) {

    :root {
        --topbar-height: 62px;
        --sidebar-width: 285px;
    }

    .topbar {
        padding: 0 12px;
    }

    .top-left {
        min-width: auto;

        gap: 10px;
    }

    .app-logo img {
        width: 94px;
    }

    .news-ticker {
        margin-left: 10px;

        height: 36px;
    }

    .ticker-label {
        padding: 0 9px;

        font-size: 8px;
    }

    #tickerText {
        font-size: 9px;
    }

    .hero {
        min-height: calc(100vh - 62px);

        padding:
            50px 15px 120px;
    }

    .hero-fire-ring {
        width: 90px;
        height: 90px;
    }

    .hero-logo {
        width: 64px;
        height: 64px;
    }

    .hero-logo img {
        max-width: 60px;
        max-height: 60px;
    }

    .hero h1 {
        font-size: 42px;

        letter-spacing: -2px;
    }

    .hero-subtitle {
        font-size: 11px;
    }

    .hero-suggestions {
        max-width: 330px;
    }

    .hero-suggestions button {
        font-size: 9px;

        padding: 9px 11px;
    }

    .chat {
        width: calc(100% - 20px);

        gap: 13px;
    }

    .message-bubble {
        max-width: 88%;

        font-size: 12px;

        padding: 12px 14px;
    }

    .input-area {
        padding:
            12px 10px 10px;
    }

    .input-bar {
        height: 55px;

        border-radius: 17px;
    }

    .send-btn {
        width: 45px;
        height: 45px;
    }

    .input-disclaimer {
        font-size: 7px;
    }

    .modal-box,
    .about-box {
        padding: 28px 22px;
    }

}


/* ============================================================
   VERY SMALL PHONES
   ============================================================ */

@media (max-width: 390px) {

    .news-ticker {
        display: none;
    }

    .top-left {
        width: 100%;
    }

    .app-logo {
        margin-left: auto;
        margin-right: auto;
    }

    .hero h1 {
        font-size: 37px;
    }

    .hero-suggestions button:nth-child(3) {
        display: none;
    }

}


/* ============================================================
   REDUCE MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }

}
body::after {
  content: "";
  position: fixed;
  inset: -100px;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, rgba(248, 80, 28, 0.8), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 90px 40px, rgba(248, 80, 28, 0.6), transparent),
    radial-gradient(2px 2px at 130px 80px, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1.5px 1.5px at 160px 120px, rgba(248, 80, 28, 0.7), transparent);
  background-repeat: repeat;
  background-size: 200px 200px;
  animation: particleDrift 20s linear infinite;
  opacity: 0.45;
  z-index: -2;
  pointer-events: none;
}

@keyframes particleDrift {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
  }
  50% {
    transform: translateY(-80px) translateX(40px) rotate(180deg);
  }
  100% {
    transform: translateY(-160px) translateX(0) rotate(360deg);
  }
}

.bottom-glow {
  position: fixed;
  bottom: -250px;
  left: 50%;
  transform: translateX(-50%);
  width: min(850px, 100vw);
  height: 650px;
  background: radial-gradient(circle, rgba(248, 80, 28, 0.32) 0%, rgba(170, 0, 0, 0.1) 55%, transparent 75%);
  filter: blur(100px);
  z-index: -1;
  pointer-events: none;
  animation: geminiAmbientPulse 10s var(--ease-gemini) infinite alternate;
}

@keyframes geminiAmbientPulse {
  0% { opacity: 0.6; transform: translateX(-50%) scale(0.92); }
  50% { opacity: 0.9; transform: translateX(-50%) scale(1.04); }
  100% { opacity: 0.6; transform: translateX(-50%) scale(0.92); }
}

#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.75;
  mix-blend-mode: screen;
  animation: floatCanvas 12s ease-in-out infinite alternate;
}

@keyframes floatCanvas {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-10px) scale(1.02); }
}
/* ============================================================
   ATTACHMENT BUTTON & IMAGE PREVIEW
   ============================================================ */

.attach-btn {
    position: relative;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--orange);
    font-size: 22px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    transition: all 0.22s ease;
    z-index: 2;
}

.attach-btn:hover {
    background: rgba(255, 90, 22, 0.15);
    border-color: rgba(255, 90, 22, 0.4);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 90, 22, 0.25);
    transform: scale(1.05);
}

.attach-btn:active {
    transform: scale(0.95);
}

/* Image Preview Container above input bar */
.image-preview-container {
    width: min(800px, 100%);
    margin: 0 auto 10px auto;
    display: flex;
    justify-content: flex-start;
}

.preview-wrapper {
    position: relative;
    display: inline-block;
    border-radius: 12px;
    border: 1px solid var(--border-strong);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    background: #090909;
}

.preview-wrapper img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.remove-image-btn {
    position: absolute;
    top: -7px;
    right: -7px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ff3b16;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease, background 0.2s ease;
}

.remove-image-btn:hover {
    background: #ff5a00;
    transform: scale(1.15);
}
.animated-gradient-text {
    background: linear-gradient(
        90deg,
        #ff3c00,
        #ff9a00,
        #ffffff,
        #ff4500,
        #ff0000,
        #ff9a00,
        #ff3c00
    );

    background-size: 300% auto;

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;

    animation: cjptvMovingFire 4s linear infinite;
}

@keyframes cjptvMovingFire {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 300% center;
    }
}
/* =========================================================
   CJPTV AI — SMOOTH THINKING DOTS
========================================================= */

.thinking-message {
  display: flex;
  align-items: center;
  min-height: 24px;
  animation: thinkingFadeIn 0.25s ease forwards;
}

.thinking-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 20px;
}

.thinking-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.25;
  animation: cjptvThinking 1.2s infinite ease-in-out;
}

.thinking-dots span:nth-child(1) {
  animation-delay: 0s;
}

.thinking-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.thinking-dots span:nth-child(3) {
  animation-delay: 0.30s;
}

@keyframes cjptvThinking {
  0%,
  60%,
  100% {
    opacity: 0.25;
    transform: translateY(0) scale(0.9);
  }

  30% {
    opacity: 1;
    transform: translateY(-3px) scale(1);
  }
}

@keyframes thinkingFadeIn {
  from {
    opacity: 0;
    transform: translateY(3px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =========================================================
   CJPTV HERO — BREATHING EFFECT
========================================================= */

.hero-breathe {
  animation:
    cjptvHeroBreathing
    4s ease-in-out infinite;
  transform-origin: center;
  will-change: transform, opacity;
}

@keyframes cjptvHeroBreathing {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.92;
  }

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


/* =========================================================
   CJPTV MOVING GRADIENT TEXT
========================================================= */

.moving-gradient-text {
  background:
    linear-gradient(
      110deg,
      #ffffff 0%,
      #ffffff 20%,
      #ff3b30 35%,
      #ff7a18 48%,
      #ffffff 62%,
      #ff3b30 78%,
      #ffffff 100%
    );

  background-size: 250% auto;

  -webkit-background-clip: text;
  background-clip: text;

  -webkit-text-fill-color: transparent;

  color: transparent;

  animation:
    cjptvMovingText
    4s linear infinite;

  will-change: background-position;
}

@keyframes cjptvMovingText {
  0% {
    background-position: 0% center;
  }

  100% {
    background-position: 250% center;
  }
}


/* =========================================================
   OPTIONAL: HERO HEADING MOVING COLOUR
   This makes "What’s next?" itself move.
========================================================= */

#heroText {
  background:
    linear-gradient(
      110deg,
      #ffffff 0%,
      #ffffff 25%,
      #ff9a30 42%,
      #ff7a18 52%,
      #ffffff 70%,
      #ff8d30 88%,
      #ffffff 100%
    );

  background-size: 250% auto;

  -webkit-background-clip: text;
  background-clip: text;

  -webkit-text-fill-color: transparent;

  color: transparent;

  animation:
    cjptvHeroTextMove
    5s linear infinite,
    cjptvHeroBreathing
    4s ease-in-out infinite;

  will-change:
    background-position,
    transform;
}

@keyframes cjptvHeroTextMove {
  0% {
    background-position: 0% center;
  }

  100% {
    background-position: 250% center;
  }
}


/* =========================================================
   SMOOTH IMAGE APPEARANCE
========================================================= */

.chat-image {
  max-width: 100%;
  display: block;
  border-radius: 16px;
  cursor: pointer;

  animation:
    cjptvImageAppear
    0.35s ease forwards;
}

@keyframes cjptvImageAppear {
  from {
    opacity: 0;
    transform: scale(0.97);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}


/* =========================================================
   SMOOTH AI MESSAGE APPEARANCE
========================================================= */

.ai-msg {
  animation:
    cjptvMessageAppear
    0.3s ease forwards;
}

@keyframes cjptvMessageAppear {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

  .hero-breathe,
  #heroText,
  .moving-gradient-text,
  .thinking-dots span,
  .chat-image,
  .ai-msg {
    animation: none !important;
  }
} 