
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
.chat-container{
    max-width:900px;
    margin:auto;
}

.chat-container{
    max-width:900px;
    margin:auto;
}

/* ================= MESSAGES ================= */

#chatMessages{
    display:flex;
    flex-direction:column;
    gap:20px;
    margin-bottom:25px;
}

.ai-message{
    display:flex;
    align-items:flex-start;
    gap:14px;
}

.user-message{
    display:flex;
    justify-content:flex-end;
}

.avatar{
    width:42px;
    height:42px;
    border-radius:50%;
    flex-shrink:0;

    background:linear-gradient(135deg,#f0b90b,#ffd84a);

    display:flex;
    align-items:center;
    justify-content:center;

    color:#111;
    font-weight:700;
}

.bubble{
    max-width:700px;
    padding:18px 20px;
    border-radius:22px;
    line-height:1.8;
}

.ai-message .bubble{
    background:#111827;
    border:1px solid rgba(255,255,255,.05);
}

.user-message .bubble{
    background:#f0b90b;
    color:#111;
}

/* ================= INPUT ================= */

.chat-input{

    position:sticky;
    bottom:20px;

    display:flex;
    align-items:center;
    gap:10px;

    background:#111827;

    border:1px solid rgba(255,255,255,.06);

    border-radius:28px;

    padding:10px 14px;

    width:100%;
}

/* NETWORK */

.chat-input select{

    width:120px;

    background:#1f2937;

    border:none;

    height:48px;

    border-radius:18px;

    padding:0 14px;

    color:white;

    outline:none;

    flex-shrink:0;
}

/* ADDRESS */

.chat-input input{

    flex:1;

    background:transparent;

    border:none;

    outline:none;

    color:white;

    font-size:15px;

    min-width:0;
}

.chat-input input::placeholder{
    color:#6b7280;
}

/* BUTTON */

.chat-input button{

    width:48px;
    height:48px;

    border:none;

    border-radius:50%;

    background:#f0b90b;

    color:#111;

    font-size:22px;

    font-weight:700;

    cursor:pointer;

    flex-shrink:0;

    transition:.2s;
}

.chat-input button:hover{
    transform:scale(1.05);
}

/* MOBILE */

@media(max-width:768px){

    .chat-input{
        gap:8px;
        padding:8px;
    }

    .chat-input select{
        width:90px;
        font-size:13px;
    }

    .chat-input input{
        font-size:14px;
    }

    .bubble{
        max-width:85%;
    }

}

:root{

    --bg:#06090f;
    --bg2:#0b1017;

    --card:#0f1622;
    --card2:#121b29;

    --border:rgba(255,255,255,.04);

    --text:#f1f5f9;
    --muted:#7c8aa0;

    --gold:#f0b90b;
    --gold2:#ffd84a;

    --green:#00c076;
    --red:#ff4d4f;

    --radius:18px;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{

    font-family:'Inter',sans-serif;

    background:var(--bg);

    color:var(--text);

    overflow-x:hidden;
}

/* GRID BACKGROUND */

body::before{

    content:"";

    position:fixed;

    inset:0;

    background-image:
    linear-gradient(
        rgba(255,255,255,.015) 1px,
        transparent 1px
    ),
    linear-gradient(
        90deg,
        rgba(255,255,255,.015) 1px,
        transparent 1px
    );

    background-size:40px 40px;

    pointer-events:none;

    z-index:-1;
}

/* MAIN */

.main-content{

    margin-left:260px;

    padding:22px;

    min-height:100vh;
}
.agentic-loading {
    text-align: center;
    padding: 80px 20px;
    color: #fff;
}

.agentic-spinner {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 25px;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: #00ff9d;
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
}

.spinner-ring:nth-child(2) {
    border-top-color: #00b8ff;
    animation-delay: 0.3s;
}

.spinner-ring:nth-child(3) {
    border-top-color: #a855f7;
    animation-delay: 0.6s;
}

.agentic-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #00ff9d, #00b8ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #000;
    box-shadow: 0 0 30px rgba(0, 255, 157, 0.6);
}

.loading-text {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 15px 0 8px;
    background: linear-gradient(90deg, #00ff9d, #00b8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.loading-subtext {
    color: #888;
    font-size: 0.95rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}.agentic-loading {
    text-align: center;
    padding: 80px 20px;
    color: #fff;
}

.agentic-spinner {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 25px;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: #00ff9d;
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
}

.spinner-ring:nth-child(2) {
    border-top-color: #00b8ff;
    animation-delay: 0.3s;
}

.spinner-ring:nth-child(3) {
    border-top-color: #a855f7;
    animation-delay: 0.6s;
}

.agentic-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #00ff9d, #00b8ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #000;
    box-shadow: 0 0 30px rgba(0, 255, 157, 0.6);
}

.loading-text {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 15px 0 8px;
    background: linear-gradient(90deg, #00ff9d, #00b8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.loading-subtext {
    color: #888;
    font-size: 0.95rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
/* TERMINAL BAR */

.terminal-bar{

    height:44px;

    background:rgba(255,255,255,.02);

    border:1px solid var(--border);

    border-radius:14px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:0 18px;

    margin-bottom:18px;

    font-size:12px;

    letter-spacing:1px;

    color:var(--muted);
}

/* HEADER */

.page-header{

    margin-bottom:20px;
}

.page-header h1{

    font-size:13px;

    font-weight:600;

    letter-spacing:2px;

    color:var(--muted);

    text-transform:uppercase;
}

.page-header p{

    margin-top:6px;

    font-size:12px;

    color:var(--muted);
}

/* SEARCH */

.search-box{

    display:flex;

    gap:10px;

    margin-bottom:20px;
}

/* INPUT + SELECT */

.search-box input,
.search-box select{

    height:48px;

    background:
    linear-gradient(
        180deg,
        rgba(255,255,255,.02),
        rgba(255,255,255,.01)
    );

    border:1px solid rgba(255,255,255,.05);

    color:var(--text);

    border-radius:14px;

    padding:0 14px;

    font-size:13px;

    font-weight:500;

    outline:none;

    transition:.2s;
}

/* FOCUS */

.search-box input:focus,
.search-box select:focus{

    border-color:
    rgba(240,185,11,.25);

    box-shadow:
    0 0 0 3px
    rgba(240,185,11,.06);
}

/* INPUT */

.search-box input{

    flex:1;

    min-width:0;
}

.search-box input::placeholder{

    color:var(--muted);
}

/* SELECT */

.search-box select{

    width:180px;

    cursor:pointer;

    appearance:none;
    -webkit-appearance:none;
    -moz-appearance:none;

    padding-right:42px;

    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%2394A3B8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 5h10L8 11z'/%3E%3C/svg%3E");

    background-repeat:no-repeat;

    background-position:right 14px center;

    background-size:12px;
}

/* OPTION */

.search-box select option{

    background:#0f1622;

    color:white;
}

/* BUTTON */

.search-box button{

    height:48px;

    min-width:110px;

    padding:0 18px;

    border:none;

    border-radius:14px;

    cursor:pointer;

    font-size:13px;

    font-weight:600;

    color:#111;

    background:
    linear-gradient(
        135deg,
        var(--gold),
        var(--gold2)
    );

    transition:.2s;
}

.search-box button:hover{

    transform:translateY(-1px);

    box-shadow:
    0 4px 16px
    rgba(240,185,11,.15);
}

.search-box button:active{

    transform:translateY(0);
}

.search-box button:hover{

    transform:translateY(-1px);
}

/* SECTION LABEL */

.section-label{

    font-size:11px;

    letter-spacing:2px;

    color:var(--muted);

    margin-bottom:12px;

    margin-top:25px;

    text-transform:uppercase;
}

/* HERO */

.token-hero{

    background:
    linear-gradient(
        180deg,
        rgba(255,255,255,.02),
        rgba(255,255,255,.01)
    );

    border:1px solid var(--border);

    border-radius:20px;

    padding:20px;

    margin-bottom:20px;
}

.token-header{

    display:flex;

    justify-content:space-between;

    align-items:center;
}

.token-left{

    display:flex;

    align-items:center;

    gap:14px;
}

.token-logo{

    width:52px;
    height:52px;

    border-radius:50%;
}

.token-name{

    font-size:16px;

    font-weight:600;
}

.token-symbol{

    margin-top:3px;

    font-size:12px;

    color:var(--muted);
}

/* ONLINE */

.terminal-status{

    display:flex;

    align-items:center;

    gap:8px;

    font-size:11px;

    letter-spacing:1px;

    color:var(--green);
}

.online-dot{

    width:8px;
    height:8px;

    border-radius:50%;

    background:var(--green);

    box-shadow:
    0 0 12px var(--green);
}

/* HERO STATS */

.hero-stats{

    display:grid;

    grid-template-columns:
    repeat(4,1fr);

    gap:15px;

    margin-top:18px;
}

.hero-stat{

    background:
    rgba(255,255,255,.02);

    border-radius:14px;

    padding:14px;
}

.hero-stat label{

    display:block;

    font-size:11px;

    letter-spacing:1px;

    color:var(--muted);

    margin-bottom:8px;
}

.hero-stat span{

    font-size:15px;

    font-weight:600;
}

/* KPI */

.metrics-grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(180px,1fr));

    gap:12px;

    margin-bottom:20px;
}

.metric-card{

    background:
    linear-gradient(
        180deg,
        rgba(255,255,255,.02),
        rgba(255,255,255,.01)
    );

    border:1px solid var(--border);

    border-radius:16px;

    padding:15px;

    transition:.25s;
}

.metric-card:hover{

    border-color:
    rgba(240,185,11,.15);
}

.metric-title{

    font-size:11px;

    color:var(--muted);

    letter-spacing:1px;

    text-transform:uppercase;
}

.metric-value{

    margin-top:10px;

    font-size:17px;

    font-weight:600;
}

/* ANALYTICS GRID */

.analytics-grid{

    display:grid;

    grid-template-columns:
    2fr 320px;

    gap:15px;

    margin-bottom:20px;
}

/* CHART */

.chart-card{

    background:var(--card);

    border:1px solid var(--border);

    border-radius:18px;

    padding:15px;
}

.chart-title{

    font-size:12px;

    color:var(--muted);

    letter-spacing:1px;

    margin-bottom:15px;
}

#tv_chart iframe{

    border-radius:12px;
}

/* SIDE PANEL */

.side-panel{

    display:flex;

    flex-direction:column;

    gap:12px;
}

.analytics-card{
    margin-bottom: 20px;
    /*background:var(--card);*/

    border:1px solid var(--border);

    border-radius:16px;

    padding:16px;
}

.analytics-card h3{

    font-size:12px;

    color:var(--muted);

    letter-spacing:1px;

    margin-bottom:15px;

    text-transform:uppercase;
}

/* SMART MONEY */

.smart-money-row{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:8px 0;

    font-size:13px;
}

.smart-money-label{

    color:var(--muted);
}

.smart-money-value{

    font-weight:600;
}

.positive{

    color:var(--green);
}

.negative{

    color:var(--red);
}

/* TABLE */

.table-card{

    background:var(--card);

    border:1px solid var(--border);

    border-radius:18px;

    padding:18px;
}

.table-card h3{

    font-size:12px;

    color:var(--muted);

    letter-spacing:1px;

    text-transform:uppercase;
}

table{

    width:100%;

    border-collapse:collapse;
}

table th{

    text-align:left;

    font-size:11px;

    font-weight:600;

    color:var(--muted);

    padding:14px;
}

table td{

    padding:14px;

    font-size:13px;

    border-top:
    1px solid rgba(255,255,255,.03);
}

table tr:hover{

    background:
    rgba(255,255,255,.015);
}

/* SCORE CARD */

.agent-score-card{

    background:
    linear-gradient(
        135deg,
        rgba(240,185,11,.12),
        rgba(240,185,11,.03)
    );

    border:1px solid rgba(240,185,11,.15);

    border-radius:18px;

    padding:18px;

    margin-bottom:20px;
}

.score-label{

    font-size:11px;

    color:var(--muted);

    letter-spacing:1px;
}

.score-value{

    margin-top:8px;

    font-size:22px;

    font-weight:700;
}

.score-status{

    margin-top:8px;

    font-size:12px;

    color:var(--gold);
}

/* SKELETON */

.skeleton{

    background:
    linear-gradient(
        90deg,
        #0f1622 25%,
        #182233 50%,
        #0f1622 75%
    );

    background-size:200% 100%;

    animation:loading 1.5s infinite;
}

@keyframes loading{

    0%{
        background-position:200% 0;
    }

    100%{
        background-position:-200% 0;
    }
}

.search-wrapper{

    background:
    linear-gradient(
        180deg,
        rgba(255,255,255,.03),
        rgba(255,255,255,.01)
    );

    border:1px solid rgba(255,255,255,.04);

    border-radius:18px;

    padding:12px;

    margin-bottom:15px;
}

/* ==========================================
   RESPONSIVE SYSTEM
========================================== */

/* Tablet */

@media (max-width: 1200px){

    .analytics-grid{
        grid-template-columns:1fr;
    }

    .side-panel{
        display:grid;
        grid-template-columns:
        repeat(auto-fit,minmax(250px,1fr));
    }

    .hero-stats{
        grid-template-columns:
        repeat(2,1fr);
    }

}

/* Mobile */

@media (max-width: 768px){
    

    body{
        overflow-x:hidden;
    }

    .main-content{

        margin-left:0;

        padding:14px;
    }

    /* HEADER */

    .page-header{
        margin-bottom:14px;
    }

    .page-header h1{
        font-size:12px;
    }

    .page-header p{
        font-size:11px;
    }

    /* TERMINAL BAR */

    .terminal-bar{

        height:auto;

        gap:6px;

        padding:12px;

        flex-direction:column;

        align-items:flex-start;
    }

    /* SEARCH */

    .search-wrapper{

        padding:10px;

        border-radius:16px;
    }

    .search-box{

        display:grid;

        grid-template-areas:
        "network network"
        "address button";

        gap:10px;
    }

      .search-box select{

        grid-area:network;

        width:100%;
    }

    .search-box input{

        grid-area:address;

        width:100%;

        min-width:0;
    }

    .search-box button{

        grid-area:button;

        width:100%;

        padding:0;
    }

    .search-box select,
    .search-box input,
    .search-box button{

        height:50px;

        border-radius:12px;

        font-size:13px;
    }

    /* HERO */

    .token-hero{

        padding:16px;
    }

    .token-header{

        flex-direction:column;

        align-items:flex-start;

        gap:15px;
    }

    .token-left{

        width:100%;
    }

    .token-logo{

        width:44px;
        height:44px;
    }

    .token-name{
        font-size:15px;
    }

    .token-symbol{
        font-size:11px;
    }

    .hero-stats{

        grid-template-columns:
        repeat(2,1fr);

        gap:10px;
    }

    .hero-stat{

        padding:12px;
    }

    .hero-stat span{

        font-size:13px;

        word-break:break-word;
    }

    /* KPI */

    .metrics-grid{

        grid-template-columns:
        repeat(2,1fr);

        gap:10px;
    }

    .metric-card{

        padding:12px;
    }

    .metric-value{

        font-size:15px;

        word-break:break-word;
    }

    /* CHART */

    .chart-card{

        padding:12px;
    }

    #tv_chart iframe{

        height:300px;
    }

    /* SIDE PANEL */

    .side-panel{

        display:flex;
        flex-direction:column;
    }

    .analytics-card{

        padding:14px;
    }

    /* TABLE */

    .table-card{

        overflow-x:auto;

        padding:12px;
    }

    table{

        min-width:500px;
    }

    /* SCORE */

    .score-value{

        font-size:18px;
    }

}

/* Small Mobile */

@media (max-width: 480px){

    .hero-stats{

        grid-template-columns:1fr;
    }

    .metrics-grid{

        grid-template-columns:1fr;
    }


    .search-box button{

        font-size:11px;
    }

    .token-name{

        font-size:14px;
    }

    .metric-value{

        font-size:14px;
    }

    .hero-stat span{

        font-size:12px;
    }

}