:root {
    --bg-top: #f4fcff;
    --bg-mid: #dcf8fb;
    --bg-bottom: #d6eef9;
    --surface: rgba(255, 255, 255, 0.78);
    --surface-strong: rgba(255, 255, 255, 0.94);
    --line: rgba(32, 143, 174, 0.18);
    --ink: #0c4f64;
    --ink-soft: #4f7f90;
    --tosca: #19b7c8;
    --tosca-strong: #0f9caf;
    --blue-soft: #35aef3;
    --champion: #1cb8a4;
    --rising: #2ea8ef;
    --rookie: #67a8c3;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: "Plus Jakarta Sans", "Segoe UI", Tahoma, sans-serif;
    background:
        radial-gradient(55rem 40rem at -8% -5%, rgba(255, 255, 255, 0.95), transparent 60%),
        radial-gradient(45rem 30rem at 105% 0%, rgba(118, 234, 245, 0.34), transparent 58%),
        linear-gradient(160deg, var(--bg-top) 0%, var(--bg-mid) 55%, var(--bg-bottom) 100%);
    min-height: 100vh;
}

.navbar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    background: linear-gradient(90deg, #2cc0cf, #2aa8cb) !important;
    box-shadow: 0 10px 28px rgba(17, 124, 151, 0.28);
}

.navbar-brand img {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.12));
}

.am-shell {
    position: relative;
    z-index: 1;
}

.section-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 28px;
    box-shadow:
        0 22px 45px rgba(18, 109, 136, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(6px);
    overflow: hidden;
}

.am-hero {
    background: linear-gradient(125deg, rgba(247, 255, 255, 0.95), rgba(222, 251, 255, 0.9));
}

.am-hero::before,
.am-hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.am-hero::before {
    width: 22rem;
    height: 22rem;
    right: -9rem;
    top: -12rem;
    background: radial-gradient(circle, rgba(66, 211, 228, 0.3), rgba(66, 211, 228, 0));
}

.am-hero::after {
    width: 12rem;
    height: 12rem;
    left: -4rem;
    bottom: -5rem;
    background: radial-gradient(circle, rgba(59, 176, 238, 0.24), rgba(59, 176, 238, 0));
}

.am-eyebrow {
    display: inline-block;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--tosca-strong);
    background: rgba(24, 183, 200, 0.1);
    border: 1px solid rgba(24, 183, 200, 0.22);
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
}

.am-title {
    margin: 0;
    font-family: "Sora", "Plus Jakarta Sans", sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: clamp(1.9rem, 3vw, 2.7rem);
    color: #0f6f8d;
}

.am-subtitle {
    max-width: 44rem;
    color: var(--ink-soft);
    font-size: 1rem;
}

.am-kpis {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.am-kpi {
    background: var(--surface-strong);
    border: 1px solid rgba(35, 151, 184, 0.22);
    border-radius: 16px;
    padding: 0.85rem 1rem;
    box-shadow: 0 10px 22px rgba(17, 124, 151, 0.08);
}

.am-kpi-label {
    display: block;
    color: var(--ink-soft);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}

.am-kpi-value {
    display: block;
    margin-top: 0.2rem;
    font-family: "Sora", "Plus Jakarta Sans", sans-serif;
    font-size: 1.06rem;
    color: #0c6683;
}

h2,
h4,
h5,
.prize-title {
    color: var(--ink);
}

h2,
h4 {
    font-family: "Sora", "Plus Jakarta Sans", sans-serif;
    letter-spacing: -0.01em;
}

small {
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.liga-card {
    background: linear-gradient(135deg, rgba(81, 216, 225, 0.28), rgba(28, 184, 164, 0.3));
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1rem;
}

.liga-card img {
    width: 106px;
}

.liga-card h5 {
    margin-top: 0.7rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.liga-range {
    display: inline-block;
    padding: 0.38rem 0.8rem;
    border-radius: 999px;
    background: #e8f8ff;
    border: 1px solid #c6ecfb;
    color: #1b7d9d;
    font-size: 0.79rem;
    font-weight: 700;
}

.progress {
    margin: 1rem auto 0.6rem;
    max-width: 28rem;
    height: 13px;
    border-radius: 999px;
    background: #d8eff6;
    overflow: hidden;
}

.progress-bar {
    border-radius: inherit;
    background: linear-gradient(90deg, #4bd2e1, #2ea8ef);
    transition: width 1.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.table {
    color: var(--ink);
    margin-bottom: 0;
}

.table-glass {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
}

.table-transparent thead th {
    color: #0d667f;
    background: color-mix(in srgb, var(--liga-color) 18%, #ffffff);
    border-bottom: 1px solid rgba(15, 125, 154, 0.2);
    white-space: nowrap;
    font-weight: 700;
    font-size: 0.86rem;
}

.table-transparent tbody td {
    color: var(--ink);
    border-top: 1px solid rgba(12, 120, 146, 0.1);
    font-size: 0.92rem;
    background: transparent;
}

.table-transparent th,
.table-transparent td {
    border-right: 1px solid rgba(12, 120, 146, 0.08);
}

.table-transparent th:last-child,
.table-transparent td:last-child {
    border-right: none;
}

.table-transparent tbody tr {
    transition: background-color 0.25s ease;
}

.table-transparent tbody tr:hover {
    background: color-mix(in srgb, var(--liga-color) 10%, #ffffff);
}

.badge-liga {
    background: var(--liga-color);
    color: #fff;
    padding: 0.33rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}

.liga-rookie {
    --liga-color: var(--rookie);
}

.liga-rising {
    --liga-color: var(--rising);
}

.liga-champion {
    --liga-color: var(--champion);
}

.prize-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(237, 253, 255, 0.95));
    border: 1px solid var(--line);
    border-radius: 22px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 14px 24px rgba(19, 116, 145, 0.13);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(28px);
}

.prize-card.animate {
    animation: fadeUp 0.6s ease forwards;
}

.prize-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 35px rgba(19, 116, 145, 0.2);
}

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

.prize-image {
    background: linear-gradient(180deg, #ecfbff, #e2f5fe);
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    margin-bottom: 14px;
}

.prize-image img {
    height: 120px;
    object-fit: contain;
}

.prize-title {
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1.35;
}

.prize-meta {
    font-size: 0.83rem;
    color: var(--ink-soft);
}

.point-badge {
    display: inline-block;
    margin-top: 0.2rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.83rem;
    color: #fff;
    background: linear-gradient(90deg, #4ad1e1, #2caed1);
}

.btn-warning {
    background: linear-gradient(90deg, #2bb7cd, #24a5be);
    border-color: #24a5be;
    color: #fff;
}

.btn-warning:hover,
.btn-warning:focus {
    background: linear-gradient(90deg, #24a5be, #1d95ad);
    border-color: #1d95ad;
    color: #fff;
}

.table-scroll {
    max-height: 450px;
    overflow-y: auto;
    border-radius: 12px;
}

.table-scroll thead th {
    position: sticky;
    top: 0;
    z-index: 10;
}

.animate-left,
.animate-right {
    opacity: 0;
}

.animate-left.show {
    animation: slideFromLeft 0.55s ease-out forwards;
}

.animate-right.show {
    animation: slideFromRight 0.55s ease-out forwards;
}

@keyframes slideFromLeft {
    from {
        opacity: 0;
        transform: translateX(-24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideFromRight {
    from {
        opacity: 0;
        transform: translateX(24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.reward-link {
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.reward-link:hover {
    text-decoration: underline !important;
}

.tbody,
td,
tfoot,
th,
thead,
tr {
    border-style: none !important;
}

.table-scroll-x {
    overflow-x: auto;
    width: 100%;
}

.table-scroll-x table {
    min-width: 900px;
}

@media (max-width: 992px) {
    .am-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .section-card {
        border-radius: 18px;
        padding: 18px;
    }

    .am-title {
        font-size: 1.55rem;
    }

    .am-kpis {
        grid-template-columns: 1fr;
    }

    .liga-card img {
        width: 84px;
    }

    .table-scroll-x table {
        min-width: 760px;
    }
}
