/* Global Styles */

:root {
    --bs-border-radius: 0.75rem;
}

h1,h2,h3,h4,.btn,nav {
    font-family: 'liebling', sans-serif;
}

[data-bs-theme="dark"] {
    --chart-label: #fff;
    --chart-axis: #aaa;
    --chart-grid: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="light"] {
    --chart-label: #212529;
    --chart-axis: #666;
    --chart-grid: rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] body.bg-dark {
    background: #1f1f25 !important;
}

[data-bs-theme="dark"] body {
    background: #1f1f25 !important;
}

[data-bs-theme="dark"] .bg-dark {
    --bs-bg-opacity: 1;
    background-color: #1f1f25 !important;
}

[data-bs-theme="light"] .bg-dark {
    --bs-bg-opacity: 1;
    background-color: #fff !important;
}

[data-bs-theme="dark"] select.bg-dark,
[data-bs-theme="dark"] input.bg-dark {
    --bs-bg-opacity: 1;
    background-color: #000 !important;
}

[data-bs-theme="light"] body {
    background-color: #eee !important;
    color: #212529 !important;
}

[data-bs-theme="light"] .text-light {
    color: #212529 !important;
}

[data-bs-theme="light"] .nav-link.text-light {
    color: #fff !important;
}

[data-bs-theme="light"] .text-secondary {
    color: #6c757d !important;
}

[data-bs-theme="light"] .card.bg-black,
[data-bs-theme="light"] .card.bg-dark,
[data-bs-theme="light"] select.bg-dark,
[data-bs-theme="light"] input.bg-dark,
[data-bs-theme="light"] .btn-outline-secondary {
    background-color: #fff !important;
    color: #212529 !important;
    border-color: #ced4da !important;
}

[data-bs-theme="light"] .form-select.bg-dark {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
}

[data-bs-theme="light"] canvas {
    background-color: #fff !important;
}

[data-bs-theme="light"] .table.table-dark tr.win-row td {
    background-color: #aef7d6 !important;
}


[data-bs-theme="light"] .table-dark tr.win-row {
    --bs-table-bg: #aef7d6;
    --bs-table-striped-bg: #aef7d6;
    --bs-table-hover-bg: #aef7d6;
    --bs-table-color: #212529;
}

[data-bs-theme="light"] .table-dark tr.win-row td {
    background-color: #67d7a4 !important;
}

[data-bs-theme="light"] .table-dark tr.win-row:hover td {
    background-color: #67d7a4 !important;
}

[data-bs-theme="light"] .table>:not(caption)>*>* {
    color: #212529;
}

[data-bs-theme="light"] .match-log thead th {
    color: #fff;
}

[data-bs-theme="light"] .bg-black {
    --bs-bg-opacity: 1;
    background-color: #fff !important;
}

[data-bs-theme="light"] .card-title.text-secondary,
[data-bs-theme="light"] .graph-hint.text-secondary {
    color: #212529 !important;
}

[data-bs-theme="light"] .text-success {
    color: green !important;
}

[data-bs-theme="light"] .text-danger {
    color: red !important;
}

[data-bs-theme="light"] table .border-end,
[data-bs-theme="light"] .table>:not(caption)>*>* {
    border-color: #aaa !important;
}

body.bg-dark {
    background: #1f1f25 !important;
}

.bg-dark {
    --bs-bg-opacity: 1;
    background-color: #1f1f25 !important;
}

.bg-gradient-dark {
    background: linear-gradient(135deg, #333 0%, #111 100%) !important;
}

.cosmetic-rarity-bg {
    --cosmetic-rarity-start: #6d747d;
    --cosmetic-rarity-mid: #272b31;
    --cosmetic-rarity-end: #101216;
    --cosmetic-rarity-glow: rgba(190, 198, 208, 0.34);
    position: relative;
    isolation: isolate;
    background:
            radial-gradient(circle at 50% 14%, var(--cosmetic-rarity-glow) 0%, rgba(255, 255, 255, 0.08) 34%, rgba(255, 255, 255, 0) 68%),
            linear-gradient(135deg, var(--cosmetic-rarity-start) 0%, var(--cosmetic-rarity-mid) 54%, var(--cosmetic-rarity-end) 100%) !important;
}

.cosmetic-rarity-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
            radial-gradient(circle at 50% 72%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 42%),
            linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.34));
}

select.bg-dark,
input.bg-dark {
    background-color: #000 !important;
    color: #fff !important;
}

.text-light {
    --bs-text-opacity: 1;
    color: rgba(var(--bs-light-rgb), var(--bs-text-opacity)) !important;
}

.border-secondary {
    --bs-border-opacity: 0.5;
    border-color: rgba(var(--bs-secondary-rgb), var(--bs-border-opacity)) !important;
}

.navbar-brand img {
    height: 50px;
    @media(max-width: 639px) {
        height: 40px;
    }
}

.text-secondary {
    --bs-text-opacity: 1;
    color: rgb(128 140 151) !important;
}

.card.bg-dark {
    background-color: #000 !important;
    border-color: #444;
}

.drop-map {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #111;
    overflow: hidden;
}

.drop-map img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.drop-map-marker {
    position: absolute;
    transform: translate(-50%, -50%);
    border: 2px solid #fff;
    border-radius: 999px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1;
    display: grid;
    place-items: center;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.55), 0 8px 18px rgba(0, 0, 0, 0.35);
    z-index: 2;
}

.drop-map-marker:hover,
.drop-map-marker:focus {
    z-index: 3;
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.4), 0 10px 22px rgba(0, 0, 0, 0.45);
}

.drop-marker-good {
    background: #139c5a;
}

.drop-marker-mid {
    background: #d79b12;
}

.drop-marker-low {
    background: #cf3d4f;
}

.death-map-marker {
    border-color: #fff;
}

.death-map-marker::after {
    position: absolute;
    bottom: calc(100% + 0.55rem);
    left: 50%;
    min-width: max-content;
    max-width: 220px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 6px;
    padding: 0.35rem 0.55rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.82);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
    content: attr(data-poi);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.1;
    opacity: 0;
    pointer-events: none;
    text-align: center;
    transform: translate(-50%, 4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    white-space: nowrap;
}

.death-map-marker:hover::after,
.death-map-marker:focus::after {
    opacity: 1;
    transform: translate(-50%, 0);
}

.death-marker-high {
    background: #c62828;
}

.death-marker-mid {
    background: #d65a31;
}

.death-marker-low {
    background: #8a3ffc;
}

.drop-area-row {
    border-bottom: 1px solid rgba(128, 140, 151, 0.25);
    padding-bottom: 0.75rem;
}

.drop-area-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.drop-area-metrics {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.season-list {
    display: grid;
    gap: 1rem;
}

.season-card {
    border-radius: 8px;
}

.season-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}

.season-stat {
    border: 1px solid rgba(128, 140, 151, 0.25);
    border-radius: 8px;
    padding: 0.75rem;
    background: rgba(31, 31, 37, 0.75);
}

.season-stat .stat {
    font-size: 1.4rem;
}

.season-chart-shell {
    border: 1px solid rgba(128, 140, 151, 0.25);
    border-radius: 8px;
    padding: 1rem;
    background: rgba(31, 31, 37, 0.75);
}

.season-chart-shell canvas {
    background: transparent !important;
}

.season-chart-container {
    height: 340px;
    min-height: 280px;
    position: relative;
}

.season-chart-toggle .btn {
    min-width: 62px;
}

.season-ai-panel {
    border: 1px solid rgba(128, 140, 151, 0.25);
    border-radius: 8px;
    padding: 1rem;
    background: rgba(31, 31, 37, 0.75);
}

.season-ai-section {
    margin-bottom: 1rem;
}

.season-ai-section-title {
    color: #adb5bd;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 0.45rem;
    text-transform: uppercase;
}

[data-bs-theme="light"] .season-stat {
    background: rgba(0, 0, 0, 0.035);
}

[data-bs-theme="light"] .season-chart-shell {
    background: rgba(0, 0, 0, 0.025);
}

[data-bs-theme="light"] .season-ai-panel {
    background: rgba(0, 0, 0, 0.025);
}

[data-bs-theme="light"] .season-ai-section-title {
    color: #495057;
}

@media (max-width: 575.98px) {
    .season-chart-container {
        height: 300px;
    }

    .season-chart-toggle {
        width: 100%;
    }

    .season-chart-toggle .btn {
        flex: 1 1 0;
        min-width: 0;
    }
}

/* Specific to login card or small centered cards */
.login-container {
    max-width: 420px;
    margin: 0 auto;
}

[data-bs-theme="light"] .table {
    --bs-table-striped-color: #212529;
    --bs-table-active-color: #212529;
    --bs-table-hover-color: #212529;
}

/* Table overrides for dark theme */
.table {
    --bs-table-bg: transparent;
    --bs-table-striped-color: #fff;
    --bs-table-striped-bg: rgba(var(--bs-dark-rgb), 0.05);
    --bs-table-active-color: #fff;
    --bs-table-active-bg: rgba(var(--bs-dark-rgb), 0.1);
    --bs-table-hover-color: #fff;
    --bs-table-hover-bg: rgba(var(--bs-dark-rgb), 0.075);
    width: 100%;
    margin-bottom: 1rem;
}

/* Stats Table Styles */
.stats-table {
    width: auto !important;
}

.stats-label {
    width: 1% !important;
    white-space: nowrap !important;
}

/* Smaller text helper */
.text-xs {
    font-size: 12px !important;
}

/* Graphs Styles */
canvas {
    background-color: #000 !important;
}

.graph-container {
    height: 500px;
    position: relative;
}

.graph-hint {
    font-size: 0.7em !important;
}

.cursor-pointer {
    cursor: pointer;
}

/* Data refresh loading */
.data-refresh-panel {
    border-radius: 8px;
}

.data-refresh-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    flex: 0 0 auto;
}

.data-refresh-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.85rem;
}

.data-refresh-card {
    border: 1px solid rgba(128, 140, 151, 0.25);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.025);
}

.data-refresh-thumb,
.data-refresh-line {
    display: block;
    background: linear-gradient(
            90deg,
            rgba(108, 117, 125, 0.24),
            rgba(255, 255, 255, 0.18),
            rgba(108, 117, 125, 0.24)
    );
    background-size: 220% 100%;
    animation: insight-skeleton-loading 1.2s ease-in-out infinite;
}

.data-refresh-thumb {
    aspect-ratio: 1 / 1;
}

.data-refresh-body {
    padding: 0.85rem;
}

.data-refresh-line {
    height: 0.8rem;
    border-radius: 999px;
    margin-bottom: 0.65rem;
}

.data-refresh-line:last-child {
    margin-bottom: 0;
}

[data-bs-theme="light"] .data-refresh-icon,
[data-bs-theme="light"] .data-refresh-card {
    background: rgba(0, 0, 0, 0.035);
}

/* Shop Styles */
.shop-item-img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: linear-gradient(135deg, #333 0%, #111 100%);
    border-radius: 0 !important;
}

.skin-card {
    border-radius: 8px;
    appearance: none;
    display: flex;
    flex-direction: column;
    padding: 0;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.skin-card:hover,
.skin-card:focus {
    border-color: rgba(255, 255, 255, 0.65) !important;
    transform: translateY(-1px);
}

.skin-card-image-wrap {
    aspect-ratio: 1 / 1;
    width: 100%;
    overflow: hidden;
}

.skin-card-img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 !important;
}

.cosmetic-wishlist-toggle {
    position: absolute;
    top: 0.55rem;
    right: 0.75rem;
    z-index: 2;
    display: inline-flex;
    width: 2.25rem;
    height: 2.25rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, 0.62);
    box-shadow: 0 0.35rem 0.9rem rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.cosmetic-wishlist-toggle:hover,
.cosmetic-wishlist-toggle:focus-visible {
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
}

.cosmetic-wishlist-toggle.is-active {
    border-color: rgba(255, 193, 7, 0.8);
    color: #ffc107;
    background: rgba(0, 0, 0, 0.78);
}

.cosmetic-wishlist-toggle.is-loading {
    opacity: 0.65;
}

.cosmetic-wishlist-toggle.is-error,
.wishlist-remove-button.is-error {
    border-color: #dc3545;
    color: #dc3545;
}

.cosmetic-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .cosmetic-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .cosmetic-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.cosmetic-wishlist-card {
    border-radius: 8px;
}

.wishlist-section {
    border-bottom: 1px solid rgba(108, 117, 125, 0.22);
    padding-bottom: 1.25rem;
}

.wishlist-section:last-of-type {
    border-bottom: 0;
}

.wishlist-remove-button {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, 0.62);
    box-shadow: 0 0.35rem 0.9rem rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.wishlist-shop-alert-card .shop-offer-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 180px));
    gap: 0.75rem;
    justify-content: start;
}

.wishlist-shop-alert-card .shop-offer-body {
    min-height: 132px;
    padding: 0.7rem;
}

.wishlist-shop-alert-card .shop-offer-title {
    min-height: 0;
}

.wishlist-shop-alert-card .shop-offer-price {
    margin-top: 0.5rem;
}

.wishlist-shop-alert-card .shop-offer-dates {
    padding-top: 0.55rem;
}

.wishlist-alert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 0.75rem;
}

.wishlist-alert-item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid rgba(108, 117, 125, 0.35);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
}

.wishlist-alert-item img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.22);
}

.wishlist-alert-price {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
    margin-top: 0.25rem;
    color: #fff;
    font-weight: 800;
}

[data-bs-theme="light"] .wishlist-alert-price {
    color: #212529;
}

.skin-skeleton-card {
    border-radius: 8px;
}

.skin-skeleton-thumb,
.skin-skeleton-line {
    display: block;
    background: linear-gradient(
            90deg,
            rgba(108, 117, 125, 0.24),
            rgba(255, 255, 255, 0.18),
            rgba(108, 117, 125, 0.24)
    );
    background-size: 220% 100%;
    animation: insight-skeleton-loading 1.2s ease-in-out infinite;
}

.skin-skeleton-thumb {
    aspect-ratio: 1 / 1;
    width: 100%;
}

.skin-skeleton-line {
    height: 0.75rem;
    border-radius: 999px;
    margin-bottom: 0.55rem;
}

.skin-skeleton-line:last-child {
    margin-bottom: 0;
}

.skin-skeleton-line.w-90 {
    width: 90%;
}

/*.skin-detail-image-card {*/
/*    min-height: 100%;*/
/*}*/

.skin-detail-image-frame {
    display: grid;
    /*min-height: min(72vh, 820px);*/
    place-items: center;
    overflow: hidden;
}

.skin-detail-image {
    position: relative;
    z-index: 1;
    width: 100%;
    max-height: min(72vh, 820px);
    object-fit: contain;
}

.skin-gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.75rem;
}

.skin-gallery-thumb {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(108, 117, 125, 0.7);
    border-radius: 6px;
    background: #111;
}

.skin-gallery-thumb.active,
.skin-gallery-thumb:focus {
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18);
}

.skin-gallery-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.skin-detail-table th {
    width: 1%;
    white-space: nowrap;
}

.skin-json {
    max-height: 420px;
    overflow: auto;
    white-space: pre-wrap;
}

[data-bs-theme="dark"] .skin-modal-close {
    filter: var(--bs-btn-close-white-filter);
}

[data-bs-theme="light"] .skin-modal-close {
    filter: none;
}

.weapon-icon {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.weapon-table {
    min-width: 1120px;
}

.weapon-table th {
    white-space: nowrap;
}

.weapon-table td {
    vertical-align: middle;
}

.weapon-table tbody tr {
    cursor: pointer;
}

.weapon-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.055);
}

.weapon-detail-image {
    width: 100%;
    max-height: 320px;
    object-fit: contain;
}

.weapon-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.weapon-stat-box {
    border: 1px solid rgba(108, 117, 125, 0.75);
    background: rgba(255, 255, 255, 0.035);
    padding: 0.75rem;
}

.vbucks-icon {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 4px;
}

.rarity-bar {
    height: 4px;
    width: 100%;
}

.btn-outline-light:hover {
    color: #000 !important;
}

.btn-primary {
    background-color: #5812ef !important;
    border-color: #5812ef !important;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: #460ec3 !important;
    border-color: #460ec3 !important;
}

.nav-link {
    opacity: 0.75;
}
.nav-link.active-link {
    background-color: #1f1f25 !important;
    opacity: 1;
    border-radius: 10px;
}

.dropdown-menu-dark .dropdown-item.active,
.dropdown-menu-dark .dropdown-item:active {
    background-color: #2b3035 !important;
    color: #fff !important;
}

/* Table sorting */
th.sortable {
    cursor: pointer;
    position: relative;
    padding-right: 25px !important;
}

th.sortable:after {
    content: '\f0dc';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 8px;
    opacity: 0.3;
}

th.sortable.asc:after {
    content: '\f0de';
    opacity: 1;
}

th.sortable.desc:after {
    content: '\f0dd';
    opacity: 1;
}

/* Match Log Sticky Header */
.match-log {
    overflow-x: auto;
    width: 100%;
}

.match-log thead th {
    position: sticky;
    top: -1px;
    z-index: 100;
    background-color: #1f1f25 !important;
}

.match-log th,
.match-log td {
    font-size: 14px;
}

@media(max-width: 768px) {
    .match-log th,
    .match-log td {
        font-size: 12px;
    }
}

.table-dark tr.win-row {
    --bs-table-bg: #063f28;
    --bs-table-striped-bg: #063f28;
    --bs-table-hover-bg: #085b39;
    --bs-table-color: #ffffff;
}

.table-dark tr.win-row td {
    background-color: var(--bs-table-bg) !important;
}

.table-dark tr.win-row:hover td {
    background-color: var(--bs-table-hover-bg) !important;
}

.battle-pass-hero {
    min-height: 320px;
    border-radius: 8px;
    background-position: top center;
    background-size: cover;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(108, 117, 125, 0.65);
}

.battle-pass-hero-overlay {
    min-height: 320px;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.52) 46%, rgba(0, 0, 0, 0.1));
    padding: clamp(1.25rem, 4vw, 3rem);
}

.battle-pass-hero-content {
    max-width: 760px;
    color: #fff;
}

.battle-pass-hero-content h1 {
    font-size: clamp(2rem, 5vw, 4.5rem);
    line-height: 1;
}

.battle-pass-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
}

.battle-pass-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.battle-pass-reward {
    border-radius: 8px;
    padding: 0;
    color: inherit;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.battle-pass-reward:hover,
.battle-pass-reward:focus {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.7) !important;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
    outline: none;
}

.battle-pass-reward-image {
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03) 42%, rgba(0, 0, 0, 0.25));
    overflow: hidden;
}

.battle-pass-reward-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.5rem;
}

.battle-pass-reward-body {
    padding: 0.8rem;
}

.battle-pass-reward-title {
    min-height: 2.5rem;
    line-height: 1.2;
}

.battle-pass-reward-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.65rem;
    color: rgb(128 140 151);
    font-size: 0.78rem;
    font-weight: 700;
}

[data-bs-theme="light"] .battle-pass-reward-meta {
    color: #6c757d;
}

.shop-crew-card {
    min-height: 300px;
    border-radius: 8px;
    background-position: top center;
    background-size: cover;
    border: 1px solid rgba(108, 117, 125, 0.65);
    overflow: hidden;
}

.shop-crew-content {
    min-height: 300px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 1.5rem;
    align-items: end;
    padding: clamp(1.25rem, 3vw, 2.5rem);
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.2));
}

.shop-crew-content h2 {
    color: #fff;
}

.shop-crew-content .text-light {
    color: #fff !important;
}

.shop-crew-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.shop-crew-benefits span,
.shop-offer-badges span {
    display: inline-flex;
    align-items: center;
    min-height: 1.55rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.42);
    font-size: 0.75rem;
    font-weight: 700;
}

.shop-crew-items {
    display: grid;
    gap: 0.75rem;
}

.shop-crew-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    padding: 0.75rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.58);
}

.shop-crew-item img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.shop-offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
    gap: 1rem;
}

.shop-offer-grid-featured {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.shop-section {
    padding-top: 0.25rem;
}

.shop-section + .shop-section {
    border-top: 1px solid rgba(108, 117, 125, 0.25);
    padding-top: 1.5rem;
}

.shop-offer-card {
    border-radius: 8px;
}

.shop-offer-image {
    position: relative;
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04) 42%, rgba(0, 0, 0, 0.28));
    overflow: hidden;
}

.shop-offer-image-button {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    border: 0;
    padding: 0;
    color: inherit;
    background: transparent;
    cursor: zoom-in;
}

.shop-offer-image-button:focus-visible {
    outline: 2px solid #ffc107;
    outline-offset: -3px;
}

.shop-offer-image img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.45rem;
}

.shop-wishlist-toggle {
    top: 0.55rem;
    right: 0.55rem;
}

.shop-offer-body {
    display: flex;
    min-height: 178px;
    flex-direction: column;
    padding: 0.8rem;
}

.shop-offer-title {
    min-height: 2.4rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-offer-price {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.7rem;
    color: #fff;
    font-weight: 800;
}

.shop-price-struck {
    color: rgb(128 140 151);
    font-size: 0.8rem;
    text-decoration: line-through;
}

.shop-offer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.65rem;
}

.shop-offer-badges span {
    border-color: rgba(128, 140, 151, 0.4);
    color: rgb(217, 222, 227);
    background: rgba(128, 140, 151, 0.12);
}

.shop-offer-dates {
    margin-top: auto;
    padding-top: 0.7rem;
}

[data-bs-theme="light"] .shop-offer-price {
    color: #212529;
}

[data-bs-theme="light"] .shop-offer-badges span {
    color: #343a40;
    background: rgba(108, 117, 125, 0.12);
}

.shop-item-modal .modal-content {
    color: #fff;
    background: #111317;
    border: 1px solid rgba(108, 117, 125, 0.75);
    border-radius: 8px;
}

.shop-item-modal {
    background: rgba(0, 0, 0, 0.72);
}

.shop-item-modal.is-open {
    display: block;
}

.shop-modal-open {
    overflow: hidden;
}

.shop-item-modal .modal-dialog {
    max-width: min(940px, calc(100% - 1rem));
}

.shop-item-modal .modal-header {
    border-bottom: 1px solid rgba(108, 117, 125, 0.45);
}

.shop-item-modal-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 1;
}

.shop-modal-image-wrap {
    display: grid;
    min-height: min(68vh, 620px);
    place-items: center;
    border-radius: 8px;
    background: radial-gradient(circle at 50% 15%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03) 44%, rgba(0, 0, 0, 0.28));
    overflow: hidden;
}

.shop-modal-image-wrap img {
    position: relative;
    z-index: 1;
    max-width: 100%;
    max-height: min(68vh, 620px);
    object-fit: contain;
    padding: 1rem;
}

.shop-modal-details {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.9rem;
}

.shop-modal-price {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.9rem;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
}

.shop-modal-details .shop-modal-price {
    margin-top: 0;
}

.shop-modal-badge {
    width: fit-content;
    border: 1px solid rgba(128, 140, 151, 0.4);
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
    color: rgb(217, 222, 227);
    background: rgba(128, 140, 151, 0.12);
    font-size: 0.78rem;
    font-weight: 800;
}

.shop-modal-dates {
    font-weight: 700;
}

[data-bs-theme="light"] .shop-item-modal .modal-content {
    color: #212529;
    background: #fff;
}

[data-bs-theme="light"] .shop-item-modal-close {
    filter: none;
}

[data-bs-theme="light"] .shop-modal-price {
    color: #212529;
}

[data-bs-theme="light"] .shop-modal-badge {
    color: #343a40;
    background: rgba(108, 117, 125, 0.12);
}

@media (max-width: 991px) {
    .shop-crew-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .shop-crew-card,
    .shop-crew-content {
        min-height: 260px;
    }

    .shop-offer-grid,
    .shop-offer-grid-featured {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .shop-offer-body {
        min-height: 168px;
        padding: 0.7rem;
    }

    .shop-offer-badges span {
        font-size: 0.68rem;
    }
}

@media (max-width: 575px) {
    .battle-pass-hero,
    .battle-pass-hero-overlay {
        min-height: 260px;
    }

    .battle-pass-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .battle-pass-reward-body {
        padding: 0.7rem;
    }
}

.video-card .object-fit-cover {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.insight-skeleton-lines {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.insight-skeleton-line {
    display: block;
    height: 0.85rem;
    border-radius: 999px;
    background: linear-gradient(
            90deg,
            rgba(108, 117, 125, 0.28),
            rgba(255, 255, 255, 0.22),
            rgba(108, 117, 125, 0.28)
    );
    background-size: 220% 100%;
    animation: insight-skeleton-loading 1.2s ease-in-out infinite;
}

.insight-skeleton-line.w-90 {
    width: 90%;
}

@keyframes insight-skeleton-loading {
    0% {
        background-position: 120% 0;
    }

    100% {
        background-position: -120% 0;
    }
}

/* Navbar Toggler Animation */
.navbar-toggler {
    width: 30px;
    height: 30px;
    position: relative;
    transition: .5s ease-in-out;
    cursor: pointer;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

@media(min-width: 1200px) {
    .nav-item {
        margin: 0 !important;
    }
}
.nav-item {
    margin: 0 !important;
}
@media only screen and (min-width: 1200px) and (max-width: 1299px) {
    .nav-item {
        font-size: 14px;
    }
}

.toggler-icon-bar {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 9px;
    opacity: 1;
    right: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.toggler-icon-bar:nth-child(1) {
    top: 6px;
}

.toggler-icon-bar:nth-child(2) {
    top: 14px;
}

.toggler-icon-bar:nth-child(3) {
    top: 22px;
}

.navbar-toggler[aria-expanded="true"] .toggler-icon-bar:nth-child(1) {
    top: 14px;
    transform: rotate(135deg);
}

.navbar-toggler[aria-expanded="true"] .toggler-icon-bar:nth-child(2) {
    opacity: 0;
    right: -40px;
}

.navbar-toggler[aria-expanded="true"] .toggler-icon-bar:nth-child(3) {
    top: 14px;
    transform: rotate(-135deg);
}

.alert.duolingo {
    font-family: 'liebling', sans-serif;
    font-weight: bold;
}

.duolingo-icon {
    width: 40px;
    height: 40px;
    border-radius: 5px;
}