*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Inter, sans-serif;
}

:root{
     --bg:linear-gradient(
        90deg,
        #000000,
        #000000,
        #868f9c);

    --card:#111a2e;
    --text:white;
    --muted:#94a3b8;
    --primary:#3b83f6be;
}

body.light{
    --bg:#f5f7fb;
    --card:#ffffff;
    --text:#111827;
    --muted:#6b7280;
    --primary:#2563eb;
}

body{
    background:var(--bg);
    color:var(--text);
    display:flex;
    flex-direction:column;
    align-items:center;
    padding:20px;
    transition:0.3s ease;
}

.navbar{
    width:100%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:12px 20px;

    position:sticky;
    top:0;
    z-index:1000;

    background:rgba(17,26,46,0.6);
    backdrop-filter:blur(12px);
    border-bottom:1px solid rgba(255,255,255,0.1);
}

body.light .navbar{
    background:rgba(255,255,255,0.6);
}

.logo{
    font-weight:600;
}

.search{
    display:flex;
    gap:10px;
}

input{
    width:220px;
    padding:12px 18px;

    border:none;
    outline:none;

    border-radius:30px;

    background:rgba(255,255,255,0.08);
    backdrop-filter:blur(10px);

    color:var(--text);

    border:1px solid rgba(255,255,255,0.1);

    transition:
    all .35s ease;

    box-shadow:
    0 4px 12px rgba(0,0,0,.15);
}

input::placeholder{
    color:var(--muted);
}

input:focus{

    width:260px;

    border-color:var(--primary);

    box-shadow:
    0 0 0 4px rgba(59,130,246,.15),
    0 10px 25px rgba(0,0,0,.2);

    transform:translateY(-2px);
}

.search-box{
    display:flex;
    align-items:center;
    gap:10px;
}

.search-box i{
    color:var(--primary);
    font-size:18px;
}

button{
    padding:10px 14px;
    border:none;
    border-radius:8px;
    background:var(--primary);
    color:white;
    cursor:pointer;
}

.toggle-btn{
    width:45px;
    height:45px;

    display:flex;
    align-items:center;
    justify-content:center;

    border:none;
    border-radius:50%;

    background:rgba(255,255,255,.08);

    backdrop-filter:blur(10px);

    color:var(--text);

    cursor:pointer;

    transition:
    transform .3s ease,
    background .3s ease,
    box-shadow .3s ease;
}

.toggle-btn:hover{

    transform:
    translateY(-3px)
    rotate(15deg);

    box-shadow:
    0 10px 25px rgba(0,0,0,.25);

    background:
    rgba(255,255,255,.15);
}

.toggle-btn i{
    font-size:18px;
    transition:.4s;
}

.app{
    width:100%;
    max-width:900px;
    margin-top:20px;
}

.header h1{
    font-size:26px;
    margin-bottom:15px; 
}

.error{
    margin-top:10px;
    padding:12px;
    background:rgba(239,68,68,0.15);
    border:1px solid rgba(239,68,68,0.4);
    color:#ef4444;
    border-radius:10px;
}

.dashboard{
    display:grid;
    grid-template-columns:1fr 2fr;
    gap:20px;
    padding:20px;
    background:var(--card);
    border-radius:12px;
}

.hidden{ display:none; }

.left{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:10px;
    border-right:1px solid rgba(255,255,255,0.1);
    padding-right:15px;
}

.flag{
    width:100%;
    max-width:180px;
    border-radius:10px;
}

.name{
    font-size:20px;
    font-weight:600;
}

.right{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
}

.box{
    background:var(--bg);
    padding:12px;
    border-radius:10px;
}

.label{
    font-size:11px;
    color:var(--muted);
}

/* VALUE */
.value{
    font-size:16px;
    font-weight:600;
}

@media (max-width:768px){

    .navbar{
        flex-direction:row;
        gap:10px;
        padding:10px;
    }

    .search input{
        width:120px;
    }

    .logo{
        font-size:14px;
    }

    button{
        padding:8px 10px;
        font-size:12px;
    }

    .dashboard{
        grid-template-columns:1fr 1fr; 
        align-items:center;
    }

    .left{
        border-right:none;
        padding-right:0;
    }

    .flag{
        max-width:120px;
    }

    .right{
        grid-template-columns:1fr 1fr;
        gap:10px;
    }
}

@media (max-width:480px){

    .search input{
        width:90px;
    }

    .logo{
        font-size:12px;
    }

    .dashboard{
        grid-template-columns:1fr 1fr;
        gap:10px;
    }

    .box{
        padding:10px;
    }

    .value{
        font-size:14px;
    }
}

.box{
    transition:0.25s ease;
}

.box:hover{
    transform:translateY(-6px);
    background:rgba(59,130,246,0.12);
    border:1px solid rgba(59,130,246,0.6);
    box-shadow:0 10px 25px rgba(0,0,0,0.25);
}

.welcome{
    margin-top:20px;
    padding:25px;
    text-align:center;
    background:var(--card);
    border-radius:12px;
    color:var(--muted);
    font-size:18px;
}

#map{
    width:100%;
    height:300px;
    margin-top:20px;
    border-radius:12px;
    overflow:hidden;
}

.search-btn{
    position:relative;
    overflow:hidden;

    padding:10px 16px;
    border:none;
    border-radius:10px;

    background:var(--primary);
    color:white;

    cursor:pointer;

    transition:
    transform .3s ease,
    box-shadow .3s ease;
}

.search-btn::before{
    content:"";

    position:absolute;

    top:0;
    left:-120%;

    width:60%;
    height:100%;

    background:linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.4),
        transparent
    );

    transform:skewX(-25deg);

    transition:left .6s;
}

.search-btn:hover{

    transform:
    translateY(-4px)
    scale(1.05);

    box-shadow:
    0 10px 25px rgba(0,0,0,.3);
}

.search-btn:hover::before{
    left:140%;
}

.search-btn:active{
    transform:scale(.96);
}

.logo{
    display:flex;
    align-items:center;
    gap:10px;
    font-weight:600;
    font-size:18px;
}

.logo img{
    width:34px;
    height:34px;
    border-radius:8px;
    box-shadow:0 4px 12px rgba(0,0,0,0.25);
    transition:0.3s ease;
}

.logo img:hover{
    transform:rotate(5deg) scale(1.05);
}

.welcome{
    margin-top:20px;
    padding:30px;
    text-align:center;
    background:var(--card);
    border-radius:12px;
    color:var(--muted);

    display:flex;
    flex-direction:column;
    align-items:center;
    gap:12px;
}

.welcome img{
    width:70px;
    height:70px;
    object-fit:contain;
    border-radius:10px;
}

.welcome p{
    font-size:18px;
}

.welcome img{
    width:100px;
    height:100px;
    animation:float 2s ease-in-out infinite;
}

@keyframes float{
    0%,100%{ transform:translateY(0); }
    50%{ transform:translateY(-6px); }
}

.intro{
    position:fixed;
    inset:0;
    background:var(--bg);

    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    z-index:9999;

    animation:fadeOut 0.5s ease forwards;
    animation-delay:2.5s;
}

.intro img{
    width:90px;
    height:90px;
    object-fit:contain;

    animation:pop 1s ease;
}

.intro h2{
    margin-top:10px;
    font-size:22px;
    color:var(--text);
    animation:fadeIn 1.2s ease;
}

@keyframes pop{
    0%{ transform:scale(0); opacity:0; }
    100%{ transform:scale(1); opacity:1; }
}

@keyframes fadeIn{
    0%{ opacity:0; transform:translateY(10px); }
    100%{ opacity:1; transform:translateY(0); }
}

@keyframes fadeOut{
    to{
        opacity:0;
        visibility:hidden;
    }
}

.cursor-globe{
    position:fixed;
    top:0;
    left:0;

    font-size:18px;
    pointer-events:none;

    transform:translate(-50%, -50%);
    transition:transform 0.1s linear;

    z-index:99999;
    opacity:0.9;
}

#g1{
    font-size:20px;
}

#g2{
    font-size:16px;
    opacity:0.7;
}

#g3{
    font-size:12px;
    opacity:0.5;
}

.footer{
    margin-top:0px;
    padding:20px;

    width:100%;
    max-width:900px;

    display:flex;
    justify-content:space-between;
    align-items:center;

    background:var(--card);
    border-radius:12px;

    flex-wrap:wrap;
    gap:20px;
}

.footer-left{
    display:flex;
    align-items:center;
    gap:12px;
}

.footer-left img{
    width:50px;
    height:50px;
    border-radius:50%;
    object-fit:cover;

    border:2px solid var(--primary);
}

.footer-left h3{
    margin:0;
    font-size:16px;
}

.footer-left p{
    margin:0;
    font-size:12px;
    color:var(--muted);
}

.footer-right{
    display:flex;
    gap:15px;
}

.footer-right a{
    text-decoration:none;
    color:var(--text);
    font-size:14px;

    transition:0.3s ease;
}

.footer-right a:hover{
    color:var(--primary);
    transform:translateY(-2px);
}

@media (max-width:600px){

    .footer{
        flex-direction:column;
        text-align:center;
    }

    .footer-right{
        justify-content:center;
        flex-wrap:wrap;
    }
}
.footer-right .icon{
    font-size:18px;
    display:flex;
    align-items:center;
    justify-content:center;

    width:32px;
    height:32px;

    border-radius:8px;

    background:rgba(255,255,255,0.05);

    transition:0.3s ease;
}

.footer-right .icon:hover{
    background:var(--primary);
    color:white;
    transform:translateY(-3px) scale(1.1);
}

html{
    scroll-behavior:smooth;
}

.footer-left h3 a{
    color:var(--primary);
    transition:0.3s ease;
}

.footer-left h3 a:hover{
    text-decoration:underline;
    opacity:0.8;
}