﻿:root {
    --bg: #0b0f17;
    --bg-alt: #111827;
    --panel: #171f2f;
    --panel-soft: #1d273a;
    --line: #2a354c;
    --text: #eef3ff;
    --muted: #93a4c8;
    --accent: #3b82f6;
    --accent-strong: #2563eb;
    --success: #22c55e;
    --danger: #ef4444;
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
    --radius-xl: 20px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --transition: all 0.25s ease;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(1200px 500px at 80% -20%, rgba(59, 130, 246, 0.22), transparent 60%),
        radial-gradient(900px 450px at -10% 20%, rgba(34, 197, 94, 0.08), transparent 55%),
        var(--bg);
    font-family: 'Manrope', system-ui, -apple-system, Segoe UI, sans-serif;
}

a {
    color: #9ec5ff;
}

a:hover {
    color: #c7dcff;
}

.text-secondary {
    color: var(--muted) !important;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 320px;
    background: linear-gradient(180deg, rgba(23, 31, 47, 0.95), rgba(14, 20, 32, 0.96));
    border-right: 1px solid var(--line);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1030;
    transform: translateX(0);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.sidebar-header,
.sidebar-footer {
    padding: 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.sidebar-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.15);
    border-bottom: none;
    margin-top: auto;
}

.sidebar-scroll {
    overflow-y: auto;
    padding: 0.75rem 1rem 1.5rem;
}

.nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--text);
    text-decoration: none;
    padding: 0.72rem 0.8rem;
    border-radius: 12px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.nav-item i {
    font-size: 1.1rem;
    opacity: 0.9;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(59, 130, 246, 0.14);
    border-color: rgba(59, 130, 246, 0.35);
    color: #dcebff;
}

.section-title {
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 0.72rem;
    color: #cad8f5;
    margin-bottom: 0.5rem;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.category-item {
    text-decoration: none;
    color: var(--muted);
    padding: 0.45rem 0.6rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    transition: var(--transition);
}

.category-item:hover,
.category-item.active {
    color: #dde9ff;
    background: rgba(71, 85, 105, 0.32);
}

.brand-pill {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), #60a5fa);
    color: white;
    font-weight: 800;
}

.content-shell {
    margin-left: 320px;
    width: calc(100% - 320px);
    min-height: 100vh;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 1010;
    backdrop-filter: blur(14px);
    background: linear-gradient(180deg, rgba(15, 21, 33, 0.94), rgba(15, 21, 33, 0.76));
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.main-content {
    max-width: 1400px;
}

.top-search .input-group-text,
.top-search .form-control {
    background: rgba(17, 24, 39, 0.82);
    border-color: rgba(148, 163, 184, 0.18);
    color: var(--text);
}

.form-control,
.form-select,
.input-group-text {
    border-radius: 12px;
    border-color: rgba(148, 163, 184, 0.25);
    background-color: rgba(15, 23, 42, 0.7);
    color: var(--text);
}

.form-control:focus,
.form-select:focus {
    background-color: rgba(15, 23, 42, 0.95);
    color: var(--text);
    border-color: rgba(59, 130, 246, 0.75);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.2);
}

.form-control::placeholder {
    color: #8fa0c0;
}

.card-glass {
    background: linear-gradient(145deg, rgba(23, 31, 47, 0.88), rgba(18, 25, 39, 0.92));
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.auth-wrap {
    min-height: calc(100vh - 220px);
    display: grid;
    place-items: center;
    padding: 2rem 0;
}

.auth-card {
    width: min(100%, 560px);
    padding: 2rem;
}

.listing-card {
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.listing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.33);
}

.listing-image-wrap {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.listing-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.listing-card:hover .listing-image {
    transform: scale(1.04);
}

.listing-title {
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.listing-price {
    color: #a8c9ff;
    font-weight: 700;
}

.listing-meta,
.listing-desc {
    font-size: 0.88rem;
}

.btn-favorite {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(15, 23, 42, 0.68);
    color: #dae6ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-favorite:hover,
.btn-favorite.active {
    background: rgba(239, 68, 68, 0.2);
    color: #ff8f8f;
    border-color: rgba(239, 68, 68, 0.4);
}

.related-card {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.55);
    transition: var(--transition);
}

.related-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.6);
}

.related-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.listing-detail-image {
    max-height: 520px;
    width: 100%;
    object-fit: cover;
}

.map-placeholder {
    min-height: 240px;
    border-radius: 14px;
    border: 1px dashed rgba(148, 163, 184, 0.3);
    background: rgba(15, 23, 42, 0.5);
}

.seller-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(148, 163, 184, 0.35);
}

.seller-profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.seller-avatar-hero-wrap {
    width: 96px;
    height: 96px;
    margin: 0 auto 1rem;
}

.seller-avatar-hero-wrap .seller-avatar-lg {
    width: 100%;
    height: 100%;
    display: block;
}

.seller-name-badge-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    width: 100%;
    max-width: 100%;
    margin-bottom: 0.9rem;
}

.seller-name-link {
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.seller-verified-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    min-width: 26px;
    min-height: 26px;
    flex-shrink: 0;
    color: #ecf8ff;
    background: linear-gradient(180deg, #5bb7ff 0%, #429dea 100%);
    clip-path: polygon(50% 0%, 60% 8%, 73% 4%, 78% 16%, 91% 14%, 89% 28%, 100% 35%, 93% 47%, 100% 59%, 89% 67%, 91% 81%, 78% 79%, 73% 92%, 60% 88%, 50% 100%, 40% 88%, 27% 92%, 22% 79%, 9% 81%, 11% 67%, 0% 59%, 7% 47%, 0% 35%, 11% 28%, 9% 14%, 22% 16%, 27% 4%, 40% 8%);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.24);
}

.seller-verified-inline i {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1;
}

.seller-location-line {
    width: 100%;
    text-align: center;
    font-size: 0.98rem;
}

.seller-member-line {
    width: 100%;
    text-align: center;
    font-size: 0.98rem;
    color: #7f95be !important;
}

.seller-rating-line {
    width: 100%;
    text-align: center;
    color: #ffbf1f;
    font-size: 1rem;
    font-weight: 700;
}

.seller-rating-line i {
    margin-right: 0.2rem;
}

.seller-rating-line span {
    font-weight: 600;
}

.seller-avatar-lg {
    width: 94px;
    height: 94px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(148, 163, 184, 0.35);
}

.review-item {
    padding: 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.45);
}

.dashboard-tabs .nav-link {
    color: #d1deff;
    border-radius: 999px;
}

.dashboard-tabs .nav-link.active {
    background-color: var(--accent);
    color: white;
}

.pagination .page-link {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(148, 163, 184, 0.24);
    color: #d9e6ff;
}

.pagination .page-item.active .page-link {
    background: var(--accent);
    border-color: var(--accent);
}

.icon-btn {
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #dce7ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: rgba(15, 23, 42, 0.7);
    position: relative;
}

.badge-dot {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 1.2rem;
    height: 1.2rem;
    border-radius: 0.6rem;
    background: var(--accent);
    color: #fff;
    font-size: 0.68rem;
    display: grid;
    place-items: center;
    padding: 0 4px;
}

.notification-toast-stack {
    position: fixed;
    top: 5.3rem;
    right: 1.25rem;
    z-index: 1085;
    display: grid;
    gap: 0.75rem;
    width: min(360px, calc(100vw - 2rem));
    pointer-events: none;
}

.sound-enable-prompt {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1086;
}

.sound-enable-card {
    min-width: min(360px, calc(100vw - 2rem));
    padding: 1rem 1rem 0.95rem;
    border-radius: 22px;
    border: 1px solid rgba(96, 165, 250, 0.22);
    background:
        radial-gradient(180px 110px at 100% 0%, rgba(59, 130, 246, 0.2), transparent 72%),
        rgba(13, 18, 30, 0.97);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.32);
}

.sound-enable-copy {
    margin-bottom: 0.9rem;
}

.sound-enable-copy strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #eef4ff;
    font-size: 0.95rem;
}

.sound-enable-copy p {
    margin: 0;
    color: #c7d6f3;
    font-size: 0.88rem;
    line-height: 1.45;
}

.sound-enable-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.sound-enable-btn {
    border: 1px solid rgba(96, 165, 250, 0.28);
    background:
        radial-gradient(160px 90px at 100% 0%, rgba(59, 130, 246, 0.2), transparent 72%),
        rgba(13, 18, 30, 0.96);
    color: #eef4ff;
    border-radius: 999px;
    padding: 0.8rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.28);
    font-weight: 700;
    justify-content: center;
    flex: 1 1 0;
}

.sound-enable-btn:hover {
    background:
        radial-gradient(160px 90px at 100% 0%, rgba(59, 130, 246, 0.28), transparent 72%),
        rgba(16, 22, 35, 0.98);
    color: #fff;
}

.sound-enable-btn-secondary {
    border-color: rgba(148, 163, 184, 0.22);
    background: rgba(18, 25, 39, 0.92);
}

.sound-enable-btn-secondary:hover {
    background: rgba(24, 33, 50, 0.98);
}

.notification-toast {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: 0.85rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background:
        radial-gradient(180px 100px at 100% 0%, rgba(59, 130, 246, 0.14), transparent 72%),
        rgba(13, 18, 30, 0.94);
    box-shadow: 0 20px 36px rgba(0, 0, 0, 0.34);
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: auto;
    cursor: pointer;
}

.notification-toast.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.notification-toast.is-leaving {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
}

.notification-toast.sale {
    border-color: rgba(245, 158, 11, 0.28);
    background:
        radial-gradient(180px 100px at 100% 0%, rgba(245, 158, 11, 0.14), transparent 72%),
        rgba(13, 18, 30, 0.96);
}

.notification-toast-icon {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #dbeafe;
    background: rgba(37, 99, 235, 0.16);
    border: 1px solid rgba(96, 165, 250, 0.18);
}

.notification-toast.sale .notification-toast-icon {
    color: #ffe7ae;
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(245, 158, 11, 0.24);
}

.notification-toast-copy {
    min-width: 0;
}

.notification-toast-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.28rem;
}

.notification-toast-topline strong {
    color: #eef4ff;
    font-size: 0.95rem;
}

.notification-toast-topline span {
    color: #90a4c8;
    font-size: 0.76rem;
    white-space: nowrap;
}

.notification-toast-copy p {
    margin: 0;
    color: #c7d6f3;
    font-size: 0.9rem;
    line-height: 1.45;
}

.notification-toast-close {
    width: 1.9rem;
    height: 1.9rem;
    border: 0;
    border-radius: 999px;
    color: #99abcc;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.notification-toast-close:hover {
    color: #eef4ff;
    background: rgba(148, 163, 184, 0.1);
}

.chat-conversation-list {
    max-height: 70vh;
    overflow-y: auto;
}

.conversation-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text);
    text-decoration: none;
    padding: 0.95rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.conversation-item:hover,
.conversation-item.active {
    background: rgba(59, 130, 246, 0.12);
}

.chat-messages {
    min-height: 420px;
    max-height: 62vh;
    overflow-y: auto;
    background:
        radial-gradient(300px 180px at 90% 15%, rgba(59, 130, 246, 0.08), transparent 65%),
        rgba(8, 12, 20, 0.5);
}

.message-bubble {
    display: flex;
    margin-bottom: 0.8rem;
}

.message-bubble.mine {
    justify-content: flex-end;
}

.message-body {
    max-width: min(80%, 520px);
    padding: 0.6rem 0.8rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.75);
}

.message-bubble.mine .message-body {
    background: rgba(37, 99, 235, 0.3);
    border-color: rgba(96, 165, 250, 0.45);
}

.chat-form {
    background: rgba(7, 11, 18, 0.55);
}

.table-dark {
    --bs-table-bg: transparent;
    --bs-table-hover-bg: rgba(59, 130, 246, 0.08);
    --bs-table-border-color: rgba(148, 163, 184, 0.18);
}

.empty-state {
    border-style: dashed;
}

.verified-media {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
    flex-shrink: 0;
    vertical-align: middle;
    color: #ecf8ff;
    background: linear-gradient(180deg, #5bb7ff 0%, #429dea 100%);
    clip-path: polygon(50% 0%, 60% 8%, 73% 4%, 78% 16%, 91% 14%, 89% 28%, 100% 35%, 93% 47%, 100% 59%, 89% 67%, 91% 81%, 78% 79%, 73% 92%, 60% 88%, 50% 100%, 40% 88%, 27% 92%, 22% 79%, 9% 81%, 11% 67%, 0% 59%, 7% 47%, 0% 35%, 11% 28%, 9% 14%, 22% 16%, 27% 4%, 40% 8%);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
}

.verified-media i {
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

.verified-media-sm {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    max-width: 16px !important;
    min-height: 16px !important;
    max-height: 16px !important;
}

.verified-media-sm i {
    font-size: 0.56rem;
}

.filter-switch .form-check-input {
    width: 2.7rem;
    height: 1.4rem;
    background-color: rgba(15, 23, 42, 0.92);
    border-color: rgba(148, 163, 184, 0.3);
    box-shadow: none;
}

.filter-switch .form-check-input:checked {
    background-color: #2563eb;
    border-color: #3b82f6;
}

.filter-switch .form-check-label {
    color: var(--text);
}

.sidebar-backdrop {
    display: none;
}

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
        width: min(88vw, 320px);
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(6, 8, 14, 0.6);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
        z-index: 1020;
    }

    .sidebar-backdrop.active {
        opacity: 1;
        pointer-events: auto;
    }

    .content-shell {
        margin-left: 0;
        width: 100%;
    }

    .top-search {
        display: none;
    }

    .main-content {
        max-width: 100%;
    }

    .notification-toast-stack {
        top: 4.7rem;
        right: 0.85rem;
        width: min(340px, calc(100vw - 1.2rem));
    }

    .sound-enable-prompt {
        right: 0.85rem;
        bottom: 0.85rem;
    }

    .sound-enable-card {
        min-width: min(100vw - 1.7rem, 360px);
    }

    .sound-enable-actions {
        flex-direction: column;
    }
}

.btn {
    border-radius: 12px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #5ea2ff);
    border-color: transparent;
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--accent-strong), var(--accent));
}

.brand-link {
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 170px;
}

.brand-text {
    font-weight: 700;
    letter-spacing: 0.02em;
}

.wallet-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    color: #dbeafe;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.55), rgba(37, 99, 235, 0.3));
    border: 1px solid rgba(96, 165, 250, 0.25);
    font-weight: 700;
    font-size: 0.88rem;
}

.coin-pill-icon {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.wallet-panel {
    height: 100%;
    padding: 1.25rem;
    border-radius: 24px;
    border: 1px solid rgba(59, 130, 246, 0.14);
    background:
        radial-gradient(240px 140px at 100% 0%, rgba(37, 99, 235, 0.14), transparent 70%),
        rgba(9, 14, 24, 0.72);
}

.offer-link-btn {
    min-width: 124px;
    min-height: 38px;
    border-radius: 14px;
    padding-inline: 1rem;
}

.buy-offer-btn {
    min-width: 244px;
    min-height: 38px;
    border-radius: 14px;
    padding-inline: 1.2rem;
}

.buy-offer-btn-primary-slot {
    min-width: 190px;
}

.listing-buy-form {
    margin: 0;
}

.listing-summary-shell {
    display: grid;
    gap: 1rem;
}

.listing-summary-title {
    font-size: clamp(2rem, 2.5vw, 3rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
    max-width: 15ch;
}

.listing-summary-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1.1rem;
    color: #9bb4dc;
    font-size: 1.05rem;
}

.listing-summary-meta span {
    position: relative;
}

.listing-summary-meta span + span::before {
    content: "";
    position: absolute;
    left: -0.62rem;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(132, 154, 194, 0.7);
    transform: translateY(-50%);
}

.listing-summary-row {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: end;
    gap: 1.25rem 1.5rem;
}

.listing-price-block {
    min-width: 0;
}

.listing-summary-price {
    font-size: clamp(2.2rem, 2.7vw, 3.4rem);
    font-weight: 700;
    line-height: 0.98;
    color: #1f77ff;
}

.listing-summary-coin {
    display: inline-block;
    margin-top: 0.35rem;
    color: #9bb4dc;
    font-size: 1.05rem;
}

.listing-summary-actions {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 0.85rem;
}

.listing-summary-divider {
    margin: 1.8rem 0 0;
}

.checkout-shell {
    max-width: 1220px;
    margin: 0 auto;
}

.checkout-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-bottom: 1.8rem;
}

.checkout-kicker,
.checkout-section-label {
    color: #9bb4dc;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.checkout-title {
    font-size: clamp(2rem, 2.8vw, 3.1rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.checkout-product-card,
.checkout-wallet-card,
.checkout-note-board,
.checkout-summary-card {
    padding: 1.4rem;
}

.checkout-product-card {
    background:
        radial-gradient(420px 220px at 100% 0%, rgba(59, 130, 246, 0.16), transparent 72%),
        linear-gradient(145deg, rgba(23, 31, 47, 0.9), rgba(13, 19, 31, 0.96));
}

.checkout-product-shell {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 1.4rem;
    align-items: center;
}

.checkout-product-media {
    position: relative;
}

.checkout-product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.55);
}

.checkout-product-badge {
    position: absolute;
    left: 0.9rem;
    bottom: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    color: #ecf7ff;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(8, 14, 28, 0.78);
    border: 1px solid rgba(129, 164, 223, 0.2);
    backdrop-filter: blur(8px);
}

.checkout-product-title {
    font-size: clamp(1.6rem, 2vw, 2.3rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    max-width: 14ch;
}

.checkout-product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 0.7rem;
}

.checkout-product-meta span {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.68rem;
    border-radius: 999px;
    color: #c8d8f5;
    font-size: 0.84rem;
    background: rgba(24, 33, 52, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.checkout-product-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.55rem 0.9rem;
    margin-bottom: 1rem;
}

.checkout-product-price strong {
    color: #eef5ff;
    font-size: clamp(2rem, 2.4vw, 2.8rem);
    font-weight: 800;
    line-height: 1;
}

.checkout-product-price span {
    color: #8ea4c9;
    font-size: 1rem;
}

.checkout-product-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.checkout-stat-card {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(10, 15, 27, 0.56);
    border: 1px solid rgba(148, 163, 184, 0.13);
}

.checkout-stat-label {
    display: block;
    margin-bottom: 0.45rem;
    color: #8ea4c9;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.checkout-stat-card strong {
    display: block;
    color: #eaf2ff;
    font-size: 0.95rem;
    line-height: 1.35;
}

.checkout-wallet-card {
    background:
        radial-gradient(180px 110px at 100% 0%, rgba(59, 130, 246, 0.12), transparent 70%),
        rgba(11, 17, 29, 0.72);
}

.checkout-wallet-card-positive {
    border-color: rgba(34, 197, 94, 0.2);
}

.checkout-wallet-card-warning {
    border-color: rgba(245, 158, 11, 0.24);
}

.checkout-wallet-amount {
    font-size: clamp(1.5rem, 2vw, 2rem);
    line-height: 1;
    color: #edf4ff;
}

.checkout-note-board {
    background: rgba(12, 18, 30, 0.72);
}

.checkout-note-grid {
    display: grid;
    gap: 0.95rem;
}

.checkout-note-panel {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem 1.05rem;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(18, 26, 40, 0.76);
}

.checkout-note-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #dbeafe;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.28), rgba(59, 130, 246, 0.12));
    border: 1px solid rgba(96, 165, 250, 0.16);
    flex-shrink: 0;
}

.checkout-summary-card {
    position: sticky;
    top: 5.4rem;
    background:
        radial-gradient(260px 180px at 100% 0%, rgba(59, 130, 246, 0.18), transparent 72%),
        linear-gradient(145deg, rgba(24, 33, 50, 0.95), rgba(15, 21, 33, 0.98));
}

.checkout-total-block {
    display: grid;
    gap: 0.2rem;
    margin-bottom: 1rem;
}

.checkout-total-block strong {
    font-size: clamp(2.2rem, 3vw, 3rem);
    line-height: 0.96;
    color: #f3f7ff;
    letter-spacing: -0.04em;
}

.checkout-total-block span {
    color: #93a7cb;
    font-size: 0.95rem;
}

.checkout-breakdown-card {
    padding: 1rem 1.05rem;
    margin-bottom: 1rem;
    border-radius: 20px;
    background: rgba(8, 12, 22, 0.56);
    border: 1px solid rgba(148, 163, 184, 0.13);
}

.checkout-breakdown {
    display: grid;
    gap: 0.9rem;
}

.checkout-breakdown > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.checkout-breakdown strong {
    text-align: right;
    color: #eef4ff;
}

.checkout-status {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.checkout-status i {
    flex-shrink: 0;
}

.checkout-status-ok {
    color: #d9ffea;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.18);
}

.checkout-status-warn {
    color: #fde8b0;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.checkout-submit-btn {
    min-height: 50px;
    font-weight: 800;
    border-radius: 14px;
}

@media (max-width: 575.98px) {
    .listing-summary-title {
        max-width: none;
    }

    .listing-summary-row {
        grid-template-columns: 1fr;
    }

    .listing-summary-actions {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .offer-link-btn,
    .buy-offer-btn,
    .buy-offer-btn-primary-slot {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 991.98px) {
    .checkout-head {
        flex-direction: column;
        align-items: stretch;
    }

    .checkout-summary-card {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .checkout-product-shell {
        grid-template-columns: 1fr;
    }

    .checkout-product-title {
        max-width: none;
    }

    .checkout-product-stats {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
