/*:root {
    --it-yellow: #FFC72C;
    --it-gray: #75787B;
    --it-red: #E65455;
    --bg: #0f1115;
    --panel: #151923;
    --panel2: #10131a;
    --text: #e9ecf2;
    --muted: #b7bcc8;
    --shadow: 0 18px 50px rgba(0,0,0,.45);
    --radius: 18px;
}*/

:root {
    --it-yellow: #FFC72C;
    --it-gray: #75787B;
    --it-red: #E65455;
    --bg-main: #0f1115;
    --bg-panel: #1b1f27;
    --bg-card: linear-gradient(135deg, #1f2430, #141820);
    --text-main: #ffffff;
    --text-muted: #c9ccd3;
    --shadow-soft: 0 15px 40px rgba(0,0,0,.35);
    --radius: 18px;
}
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

/*body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Arial, sans-serif;
    background: radial-gradient(900px 600px at 20% 10%, rgba(255,199,44,.18), transparent 60%), radial-gradient(900px 600px at 80% 0%, rgba(230,84,85,.15), transparent 55%), radial-gradient(800px 700px at 60% 90%, rgba(117,120,123,.18), transparent 55%), var(--bg);
    color: var(--text);
}*/

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Arial, sans-serif;
    background: radial-gradient(800px 500px at 10% 0%, rgba(255,199,44,.18), transparent 60%), radial-gradient(700px 500px at 90% 20%, rgba(230,84,85,.18), transparent 60%), #0f1115;
    color: var(--text-main);
}

.app-shell {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/*.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 18px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(180deg, rgba(21,25,35,.92), rgba(21,25,35,.75));
    border-bottom: 1px solid rgba(255,255,255,.06);
    backdrop-filter: blur(10px);
}*/


.topbar {
    padding: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, #1b1f27, #2a2f3a);
    border-bottom: 3px solid var(--it-yellow);
}
.brand {
    display: flex;
    gap: 12px;
    align-items: center;
}

/*.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--it-yellow);
    box-shadow: 0 0 0 6px rgba(255,199,44,.12), 0 0 22px rgba(255,199,44,.45);
}*/

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--it-yellow);
    box-shadow: 0 0 12px rgba(255,199,44,.7);
}
.brand-title {
    font-weight: 800;
    letter-spacing: .7px;
}

.brand-sub {
    color: var(--muted);
    font-size: .92rem;
    margin-top: 2px;
}

.meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.pill {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
}

.pill-muted {
    background: rgba(255,255,255,.04);
}

.pill-label {
    color: var(--muted);
    font-size: .82rem;
}

.pill-value {
    font-size: .9rem;
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.content {
    width: min(1100px, 94vw);
    margin: 22px auto 40px;
}

.hero {
    padding: 18px 14px 10px;
}

    .hero h1 {
        margin: 0 0 8px;
        font-size: clamp(1.35rem, 2.4vw, 2rem);
    }

    .hero p {
        margin: 0;
        color: var(--muted);
    }

.grid {
    display: grid;
    grid-template-columns: repeat( auto-fit, minmax(240px, 1fr) );
    gap: 14px;
    padding: 12px 6px 30px;
}

/*.card {
    position: relative;
    background: linear-gradient(180deg, rgba(21,25,35,.92), rgba(16,19,26,.88));
    border: 1px solid rgba(255,255,255,.09);
    border-radius: var(--radius);
    padding: 14px 14px 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transform: translateY(10px);
    opacity: 0;
    animation: rise .55s ease-out forwards;
}*/

.card {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 18px;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: var(--shadow-soft);
    transition: all .3s ease;
}

    .card:hover {
        transform: translateY(-6px);
        border-color: var(--it-yellow);
        box-shadow: 0 25px 60px rgba(255,199,44,.25);
    }

    .card::before {
        content: "";
        position: absolute;
        inset: -2px;
        background: radial-gradient(350px 200px at 20% 10%, rgba(255,199,44,.22), transparent 55%), radial-gradient(300px 220px at 90% 0%, rgba(230,84,85,.18), transparent 60%);
        opacity: .9;
        pointer-events: none;
    }

@keyframes rise {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.card-head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
}

.flag {
    width: 44px;
    height: 32px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,.15);
    box-shadow: 0 10px 25px rgba(0,0,0,.35);
}

.country-name {
    font-weight: 800;
    letter-spacing: .2px;
}

.country-iso {
    color: var(--muted);
    font-size: .85rem;
    margin-top: 2px;
}

.spark {
    margin-left: auto;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(255,199,44,.12);
    border: 1px solid rgba(255,199,44,.22);
    position: relative;
    overflow: hidden;
}

    .spark::after {
        content: "";
        position: absolute;
        inset: -20px;
        background: conic-gradient(from 90deg, transparent 0 30%, rgba(255,199,44,.55) 30% 40%, transparent 40% 100%);
        animation: spin 2.8s linear infinite;
        opacity: .8;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/*.rate {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 12px 12px;
    border-radius: 16px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
}

    .rate-label {
    font-size: .78rem;
    color: var(--muted);
    letter-spacing: .22em;
}

.rate-value {
    font-size: 1.28rem;
    font-weight: 900;
    letter-spacing: .3px;
}
*/

.rate{
  padding:14px 16px;
  border-radius:16px;
  background: rgba(117,120,123,.15);
  border:1px solid rgba(117,120,123,.3);
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
}

.rate-label{
  color: var(--text-muted);
  letter-spacing:.25em;
}

.rate-value{
  font-size:1.3rem;
  font-weight:800;
  color: var(--it-yellow);
}


.card-footer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}

/*.badge {
    font-size: .75rem;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(230,84,85,.12);
    border: 1px solid rgba(230,84,85,.22);
    color: #ffd6d6;
}
*/

.badge {
    font-size: .75rem;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(230,84,85,.15);
    border: 1px solid var(--it-red);
    color: var(--it-red);
    font-weight: 600;
}
.travel {
    position: relative;
    width: 92px;
    height: 18px;
    opacity: .95;
}

/*.coin {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--it-yellow);
    top: 2px;
    left: 0;
    box-shadow: 0 0 0 6px rgba(255,199,44,.12), 0 10px 20px rgba(0,0,0,.35);
    animation: move 2.6s ease-in-out infinite;
}*/

.coin {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--it-yellow);
    box-shadow: 0 0 12px rgba(255,199,44,.7);
}
.trail {
    position: absolute;
    height: 3px;
    width: 70px;
    left: 18px;
    top: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255,199,44,.0), rgba(255,199,44,.55), rgba(255,199,44,.0));
    opacity: .5;
    filter: blur(.2px);
    animation: pulse 1.6s ease-in-out infinite;
}

    .trail.t2 {
        top: 6px;
        opacity: .22;
        animation-delay: .2s;
    }

    .trail.t3 {
        top: 10px;
        opacity: .18;
        animation-delay: .35s;
    }

@keyframes move {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(72px);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%,100% {
        transform: scaleX(.75);
        opacity: .35;
    }

    50% {
        transform: scaleX(1.05);
        opacity: .62;
    }
}

/* Responsive */
@media (max-width:520px) {
    .pill-muted {
        display: none;
    }

    .rate-value {
        font-size: 1.15rem;
    }
}

/* ===== FIX FOOTER SUPERPOSITION ===== */

.layout-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.layout-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.layout-content {
    flex: 1;
}

/*.layout-footer {
    margin-top: auto;
    padding: 16px 0;
    background: rgba(0,0,0,0.45);
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    font-size: 0.9rem;
}*/

.layout-footer {
    margin-top: auto;
    padding: 18px 0;
    background: #1b1f27;
    border-top: 3px solid var(--it-yellow);
    text-align: center;
    color: var(--text-muted);
}