/* ==========================================================================
   OxTrade Asset Offers Component
   Reusable user-side section
   ========================================================================== */

.asset-offers-section {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.asset-offers-container {
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* ==========================================================================
   Section Header
   ========================================================================== */

.asset-offers-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.asset-offers-heading {
    max-width: 720px;
}

.asset-offers-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 7px;
    color: var(--primary-color, #7c3aed);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.asset-offers-eyebrow i {
    font-size: 10px;
}

.asset-offers-heading h2 {
    margin: 0;
    font-size: clamp(24px, 2.6vw, 32px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.asset-offers-heading p {
    max-width: 620px;
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.7;
    opacity: 0.72;
}

/* ==========================================================================
   Offers Grid
   ========================================================================== */

.asset-offers-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

/* ==========================================================================
   Offer Card
   ========================================================================== */

.asset-offer-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 20px;
    background: var(--card-background);
    color: inherit;
    text-align: left;
    cursor: pointer;
    appearance: none;
    box-sizing: border-box;
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.045);
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.asset-offer-card:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 58, 237, 0.28);
    box-shadow:
        0 18px 42px rgba(15, 23, 42, 0.09),
        0 0 0 1px rgba(124, 58, 237, 0.04);
}

.asset-offer-card:focus-visible {
    outline: 3px solid rgba(124, 58, 237, 0.18);
    outline-offset: 3px;
}

.asset-offer-card-image {
    position: relative;
    width: 100%;
    height: 190px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(168, 85, 247, 0.22),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #1e1335,
            #35176b 52%,
            #160d29
        );
}

.asset-offer-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.35s ease;
}

.asset-offer-card:hover .asset-offer-card-image img {
    transform: scale(1.045);
}

.asset-offer-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.82);
    font-size: 42px;
}

.asset-offer-card-placeholder::before {
    content: "";
    position: absolute;
    width: 170px;
    height: 170px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 50%;
}

.asset-offer-card-placeholder i {
    position: relative;
    z-index: 1;
}

.asset-offer-card-badge {
    position: absolute;
    top: 13px;
    left: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    background: rgba(20, 10, 40, 0.68);
    color: #ffffff;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.02em;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.asset-offer-card-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #a78bfa;
    box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.12);
}

/* ==========================================================================
   Card Body
   ========================================================================== */

.asset-offer-card-body {
    min-width: 0;
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
    box-sizing: border-box;
}

.asset-offer-card-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.asset-offer-card-title-row h3 {
    min-width: 0;
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.asset-offer-card-arrow {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 10px;
    background: var(--secondary-background);
    font-size: 11px;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.asset-offer-card:hover .asset-offer-card-arrow {
    border-color: rgba(124, 58, 237, 0.22);
    background: rgba(124, 58, 237, 0.08);
    color: var(--primary-color, #7c3aed);
    transform: translate(1px, -1px);
}

.asset-offer-card-description {
    display: -webkit-box;
    overflow: hidden;
    min-height: 42px;
    margin: 9px 0 17px;
    font-size: 12px;
    line-height: 1.7;
    opacity: 0.68;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.asset-offer-card-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.asset-offer-minimum {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.asset-offer-minimum span {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    opacity: 0.5;
}

.asset-offer-minimum strong {
    overflow: hidden;
    font-size: 14px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.asset-offer-view {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color, #7c3aed);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.asset-offer-view i {
    font-size: 8px;
    transition: transform 0.2s ease;
}

.asset-offer-card:hover .asset-offer-view i {
    transform: translateX(3px);
}

/* ==========================================================================
   Empty State
   ========================================================================== */

.asset-offers-empty {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 25px;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 20px;
    background: var(--card-background);
    text-align: center;
    box-sizing: border-box;
}

.asset-offers-empty-icon {
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    border: 1px solid rgba(124, 58, 237, 0.16);
    border-radius: 17px;
    background: rgba(124, 58, 237, 0.07);
    color: var(--primary-color, #7c3aed);
    font-size: 22px;
}

.asset-offers-empty-content {
    max-width: 460px;
}

.asset-offers-empty-content h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
}

.asset-offers-empty-content p {
    margin: 7px 0 0;
    font-size: 12px;
    line-height: 1.7;
    opacity: 0.65;
}

/* ==========================================================================
   Modal
   ========================================================================== */

.asset-offer-modal[hidden] {
    display: none !important;
}

.asset-offer-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    background: transparent;
    isolation: isolate;
}

.asset-offer-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 7, 24, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.asset-offer-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    max-height: calc(100vh - 48px);
    overflow: hidden;
    border: 1px solid rgba(124, 58, 237, 0.16);
    border-radius: 24px;

    /* Explicit solid modal background */
    background: #ffffff;

    color: #17131f;

    box-shadow:
        0 35px 90px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(124, 58, 237, 0.04);
}

.asset-offer-modal-content {
    width: 100%;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    scrollbar-width: thin;
}

/* ==========================================================================
   Modal Close
   ========================================================================== */

.asset-offer-modal-close {
    position: absolute;
    z-index: 4;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 11px;
    background: rgba(20, 10, 40, 0.58);
    color: #ffffff;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.asset-offer-modal-close:hover {
    background: rgba(20, 10, 40, 0.82);
    transform: translateY(-1px);
}

/* ==========================================================================
   Modal Hero
   ========================================================================== */

.asset-offer-modal-hero {
    position: relative;
    height: 220px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 20% 25%,
            rgba(192, 132, 252, 0.28),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #1e1335,
            #3b1976 55%,
            #160d29
        );
}

.asset-offer-modal-image {
    position: absolute;
    inset: 0;
}

.asset-offer-modal-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.asset-offer-modal-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.82);
    font-size: 52px;
}

.asset-offer-modal-image-placeholder[hidden] {
    display: none !important;
}

.asset-offer-modal-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(11, 5, 25, 0.05) 20%,
            rgba(11, 5, 25, 0.78) 100%
        );
    pointer-events: none;
}

.asset-offer-modal-status {
    position: absolute;
    left: 20px;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    background: rgba(20, 10, 40, 0.62);
    color: #ffffff;
    font-size: 10px;
    font-weight: 750;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.asset-offer-modal-status i {
    font-size: 6px;
    color: #c4b5fd;
}

/* ==========================================================================
   Modal Body
   ========================================================================== */

.asset-offer-modal-body {
    padding: 24px;
    background: #ffffff;
}

.asset-offer-modal-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.asset-offer-modal-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #7c3aed;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.asset-offer-modal-heading h2 {
    margin: 0;
    color: #17131f;
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.asset-offer-modal-minimum {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.asset-offer-modal-minimum span {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.5;
}

.asset-offer-modal-minimum strong {
    color: #7c3aed;
    font-size: 17px;
    font-weight: 850;
    white-space: nowrap;
}

/* ==========================================================================
   Modal Description
   ========================================================================== */

.asset-offer-modal-description {
    padding: 20px 0;
}

.asset-offer-modal-label {
    display: block;
    margin-bottom: 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.55;
}

.asset-offer-modal-description p {
    margin: 0;
    font-size: 13px;
    line-height: 1.75;
    white-space: pre-line;
}

/* ==========================================================================
   Deposit Section
   ========================================================================== */

.asset-offer-modal-deposit {
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.asset-offer-modal-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.asset-offer-modal-section-heading h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
}

.asset-offer-modal-step {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #7c3aed;
    font-size: 10px;
    font-weight: 750;
    white-space: nowrap;
}

.asset-offer-modal-step span:first-child {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: rgba(124, 58, 237, 0.10);
    font-size: 10px;
}

/* ==========================================================================
   Deposit Methods
   ========================================================================== */

.asset-offer-deposit-methods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.asset-offer-deposit-method {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
    min-height: 64px;
    padding: 10px 11px;
    border: 1px solid #e5e7eb;
    border-radius: 13px;
    background: #f8fafc;
    color: #17131f;
    text-align: left;
    cursor: pointer;
    appearance: none;
    box-sizing: border-box;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease;
}

.asset-offer-deposit-method:hover {
    border-color: rgba(124, 58, 237, 0.30);
    transform: translateY(-1px);
}

.asset-offer-deposit-method.is-selected {
    border-color: rgba(124, 58, 237, 0.62);
    background:
        linear-gradient(
            135deg,
            rgba(124, 58, 237, 0.10),
            rgba(124, 58, 237, 0.035)
        ),
        #f8fafc;
    box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.06);
}

.asset-offer-deposit-method:focus-visible {
    outline: 3px solid rgba(124, 58, 237, 0.16);
    outline-offset: 2px;
}

.asset-offer-method-logo {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 11px;
    background: linear-gradient(145deg, #4c1d95, #24103e);
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
}

.asset-offer-method-logo img {
    display: block;
    width: 27px;
    height: 27px;
    max-width: 72%;
    max-height: 72%;
    object-fit: contain;
}

.asset-offer-method-info {
    min-width: 0;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 3px;
}

.asset-offer-method-info strong {
    overflow: hidden;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.asset-offer-method-info span {
    overflow: hidden;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0.52;
}

.asset-offer-method-check {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    font-size: 9px;
    opacity: 0.5;
}

.asset-offer-deposit-method.is-selected .asset-offer-method-check {
    border-color: #7c3aed;
    background: #7c3aed;
    color: #ffffff;
    opacity: 1;
}

/* ==========================================================================
   Method Loading / Empty
   ========================================================================== */

.asset-offer-method-loading,
.asset-offer-method-empty {
    grid-column: 1 / -1;
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 15px;
    border: 1px dashed #d1d5db;
    border-radius: 13px;
    font-size: 11px;
    text-align: center;
    opacity: 0.65;
}

.asset-offer-method-loading i,
.asset-offer-method-empty i {
    color: #7c3aed;
}

/* ==========================================================================
   Deposit Amount
   ========================================================================== */

.asset-offer-deposit-form {
    margin-top: 18px;
}

.asset-offer-amount-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.asset-offer-amount-wrapper input {
    width: 100%;
    min-height: 51px;
    padding: 0 72px 0 14px;
    border: 1px solid #dfe3e8;
    border-radius: 12px;
    outline: none;
    background: #ffffff;
    color: #17131f;
    font-family: inherit;
    font-size: 15px;
    font-weight: 750;
    box-sizing: border-box;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.asset-offer-amount-wrapper input::placeholder {
    opacity: 0.45;
    font-weight: 500;
}

.asset-offer-amount-wrapper input:focus {
    border-color: rgba(124, 58, 237, 0.62);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.09);
}

.asset-offer-amount-wrapper input::-webkit-outer-spin-button,
.asset-offer-amount-wrapper input::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
}

.asset-offer-amount-wrapper input[type="number"] {
    appearance: textfield;
}

.asset-offer-amount-wrapper > span {
    position: absolute;
    top: 50%;
    right: 14px;
    max-width: 52px;
    overflow: hidden;
    transform: translateY(-50%);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
}

.asset-offer-amount-hint {
    margin: 7px 0 0;
    font-size: 10px;
    line-height: 1.5;
    opacity: 0.52;
}

.asset-offer-deposit-error {
    margin-top: 9px;
    padding: 10px 12px;
    border: 1px solid rgba(239, 68, 68, 0.18);
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.06);
    color: #dc2626;
    font-size: 10px;
    font-weight: 650;
    line-height: 1.5;
}

.asset-offer-deposit-error[hidden] {
    display: none !important;
}

/* ==========================================================================
   Submit
   ========================================================================== */

.asset-offer-submit-button {
    width: 100%;
    min-height: 51px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 14px;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #ffffff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    box-shadow:
        0 10px 24px rgba(124, 58, 237, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}

.asset-offer-submit-button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow:
        0 13px 28px rgba(124, 58, 237, 0.27),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.asset-offer-submit-button:active:not(:disabled) {
    transform: translateY(0);
}

.asset-offer-submit-button:focus-visible {
    outline: 3px solid rgba(124, 58, 237, 0.18);
    outline-offset: 2px;
}

.asset-offer-submit-button:disabled {
    opacity: 0.48;
    cursor: not-allowed;
    box-shadow: none;
}

/* ==========================================================================
   Modal Note
   ========================================================================== */

.asset-offer-modal-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 13px;
    padding: 11px 12px;
    border: 1px solid rgba(124, 58, 237, 0.12);
    border-radius: 11px;
    background: rgba(124, 58, 237, 0.045);
}

.asset-offer-modal-note > i {
    flex: 0 0 20px;
    margin-top: 2px;
    color: #7c3aed;
    font-size: 11px;
}

.asset-offer-modal-note p {
    margin: 0;
    font-size: 9px;
    line-height: 1.65;
    opacity: 0.62;
}

/* ==========================================================================
   Body Lock
   ========================================================================== */

body.asset-offer-modal-open {
    overflow: hidden;
}

/* ==========================================================================
   Dark Mode
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    .asset-offer-modal-dialog {
        background: #18131f;
        color: #f8f7fb;
        border-color: rgba(167, 139, 250, 0.18);
    }

    .asset-offer-modal-body {
        background: #18131f;
    }

    .asset-offer-modal-heading {
        border-bottom-color: rgba(255, 255, 255, 0.10);
    }

    .asset-offer-modal-heading h2 {
        color: #ffffff;
    }

    .asset-offer-modal-deposit {
        border-top-color: rgba(255, 255, 255, 0.10);
    }

    .asset-offer-deposit-method {
        border-color: rgba(255, 255, 255, 0.10);
        background: #211a2b;
        color: #ffffff;
    }

    .asset-offer-deposit-method.is-selected {
        background:
            linear-gradient(
                135deg,
                rgba(124, 58, 237, 0.18),
                rgba(124, 58, 237, 0.06)
            ),
            #211a2b;
    }

    .asset-offer-method-check {
        border-color: rgba(255, 255, 255, 0.16);
    }

    .asset-offer-amount-wrapper input {
        border-color: rgba(255, 255, 255, 0.12);
        background: #211a2b;
        color: #ffffff;
    }

    .asset-offer-method-loading,
    .asset-offer-method-empty {
        border-color: rgba(255, 255, 255, 0.14);
    }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1050px) {
    .asset-offers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .asset-offers-section {
        padding: 0 18px;
    }

    .asset-offers-header {
        margin-bottom: 18px;
    }

    .asset-offers-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .asset-offer-card-image {
        height: 200px;
    }

    .asset-offer-modal {
        align-items: flex-end;
        padding: 0;
    }

    .asset-offer-modal-dialog {
        width: 100%;
        max-height: calc(100vh - 20px);
        border-radius: 22px 22px 0 0;
    }

    .asset-offer-modal-content {
        max-height: calc(100vh - 20px);
    }

    .asset-offer-modal-hero {
        height: 190px;
    }

    .asset-offer-modal-body {
        padding: 20px;
    }
}

@media (max-width: 520px) {
    .asset-offers-section {
        padding: 0 15px;
    }

    .asset-offers-heading h2 {
        font-size: 24px;
    }

    .asset-offers-heading p {
        font-size: 12px;
    }

    .asset-offer-card-image {
        height: 180px;
    }

    .asset-offer-card-body {
        padding: 16px;
    }

    .asset-offer-modal-heading {
        grid-template-columns: 1fr;
        align-items: flex-start;
        gap: 12px;
    }

    .asset-offer-modal-minimum {
        align-items: flex-start;
    }

    .asset-offer-deposit-methods {
        grid-template-columns: 1fr;
    }

    .asset-offer-modal-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 380px) {
    .asset-offers-section {
        padding: 0 12px;
    }

    .asset-offer-modal-body {
        padding: 17px;
    }

    .asset-offer-modal-hero {
        height: 170px;
    }

    .asset-offer-card-image {
        height: 165px;
    }

    .asset-offer-card-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .asset-offer-view {
        width: 100%;
        justify-content: space-between;
    }
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .asset-offer-card,
    .asset-offer-card-image img,
    .asset-offer-card-arrow,
    .asset-offer-view i,
    .asset-offer-deposit-method,
    .asset-offer-submit-button,
    .asset-offer-modal-close {
        transition: none;
    }

    .asset-offer-card:hover,
    .asset-offer-submit-button:hover:not(:disabled),
    .asset-offer-modal-close:hover {
        transform: none;
    }

    .asset-offer-card:hover .asset-offer-card-image img {
        transform: none;
    }
}
.asset-offer-card {
    background: var(--card-background);
    color: inherit;
}

.asset-offer-card-arrow {
    border-color: var(--border-color);
    background: var(--secondary-background);
}

.asset-offer-card-footer {
    border-top-color: var(--border-color);
}

/* =========================================================
   Asset Offer Payment Details
   Scoped only to the Asset Offer modal
   ========================================================= */

.asset-offer-payment-details {
    width: 100%;
    margin-top: 18px;
    padding: 18px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--secondary-background);
    box-sizing: border-box;
}

.asset-offer-payment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.asset-offer-payment-logo {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(124, 58, 237, 0.10);
    border: 1px solid rgba(124, 58, 237, 0.16);
}

.asset-offer-payment-logo img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    display: block;
}

.asset-offer-payment-heading {
    min-width: 0;
}

.asset-offer-payment-name {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.35;
}

.asset-offer-payment-symbol {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted-text-color);
    line-height: 1.4;
}

.asset-offer-payment-field {
    width: 100%;
    margin-top: 14px;
}

.asset-offer-payment-label {
    display: block;
    margin-bottom: 7px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-color);
}

.asset-offer-wallet-row {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background: var(--card-background);
}

.asset-offer-wallet-address {
    flex: 1;
    min-width: 0;
    padding: 12px 13px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-color);
    font-size: 12px;
    font-family: monospace;
    line-height: 1.5;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.asset-offer-copy-button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 86px;
    padding: 0 13px;
    border: 0;
    border-left: 1px solid var(--border-color);
    background: rgba(124, 58, 237, 0.08);
    color: var(--primary-color, #7c3aed);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.asset-offer-copy-button:hover {
    background: rgba(124, 58, 237, 0.15);
}

.asset-offer-copy-button:active {
    transform: translateY(1px);
}

.asset-offer-copy-button i {
    font-size: 12px;
}

.asset-offer-qr-section {
    margin-top: 18px;
    text-align: center;
}

.asset-offer-qr-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: #ffffff;
}

.asset-offer-qr-image {
    width: 150px;
    height: 150px;
    max-width: 100%;
    display: block;
    object-fit: contain;
}

.asset-offer-memo-section {
    margin-top: 14px;
}

.asset-offer-memo-row {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background: var(--card-background);
}

.asset-offer-memo {
    flex: 1;
    min-width: 0;
    padding: 12px 13px;
    color: var(--text-color);
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.asset-offer-payment-instructions {
    margin-top: 16px;
    padding: 13px 14px;
    border-left: 3px solid var(--primary-color, #7c3aed);
    border-radius: 0 10px 10px 0;
    background: rgba(124, 58, 237, 0.07);
    color: var(--text-color);
    font-size: 12px;
    line-height: 1.65;
    white-space: pre-line;
}

.asset-offer-payment-instructions:empty {
    display: none;
}


/* Amount Sent section */

.asset-offer-amount-field {
    margin-top: 18px;
}

.asset-offer-amount-input {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 14px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    outline: none;
    background: var(--card-background);
    color: var(--text-color);
    font-size: 14px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.asset-offer-amount-input::placeholder {
    color: var(--muted-text-color);
    opacity: 0.75;
}

.asset-offer-amount-input:focus {
    border-color: var(--primary-color, #7c3aed);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.10);
}

.asset-offer-amount-hint {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.5;
    color: var(--muted-text-color);
}


/* =========================================================
   Responsive adjustments
   ========================================================= */

@media (max-width: 600px) {
    .asset-offer-payment-details {
        padding: 14px;
        border-radius: 14px;
    }

    .asset-offer-payment-logo {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .asset-offer-payment-logo img {
        width: 27px;
        height: 27px;
    }

    .asset-offer-wallet-row,
    .asset-offer-memo-row {
        display: block;
    }

    .asset-offer-wallet-address,
    .asset-offer-memo {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .asset-offer-copy-button {
        width: 100%;
        min-height: 42px;
        border-left: 0;
        border-top: 1px solid var(--border-color);
    }

    .asset-offer-qr-image {
        width: 135px;
        height: 135px;
    }
}



/* =========================================================
   Asset Offer Payment Instruction Section
   ========================================================= */

.asset-offer-payment-details {
    width: 100%;
    margin-top: 18px;
    padding: 18px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--secondary-background);
    box-sizing: border-box;
}

/* Payment instruction notice */

.asset-offer-payment-intro {
    margin-bottom: 20px;
    padding: 15px 16px;
    border: 1px solid rgba(124, 58, 237, 0.18);
    border-left: 3px solid var(--primary-color, #7c3aed);
    border-radius: 12px;
    background: rgba(124, 58, 237, 0.07);
}

.asset-offer-payment-intro-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 6px;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.asset-offer-payment-intro-title i {
    flex: 0 0 auto;
    color: var(--primary-color, #7c3aed);
    font-size: 13px;
}

.asset-offer-payment-intro-text {
    margin: 0;
    color: var(--muted-text-color);
    font-size: 12px;
    line-height: 1.65;
}


/* Wallet address section */

.asset-offer-wallet-field {
    margin-top: 16px;
}

.asset-offer-wallet-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.asset-offer-wallet-row {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--card-background);
}

.asset-offer-wallet-address {
    flex: 1;
    min-width: 0;
    padding: 13px 14px;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--text-color);
    font-family: monospace;
    font-size: 12px;
    line-height: 1.55;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.asset-offer-wallet-address::selection {
    background: rgba(124, 58, 237, 0.20);
}

.asset-offer-copy-button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 82px;
    padding: 0 14px;
    border: 0;
    border-left: 1px solid var(--border-color);
    background: rgba(124, 58, 237, 0.08);
    color: var(--primary-color, #7c3aed);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.asset-offer-copy-button:hover {
    background: rgba(124, 58, 237, 0.15);
}

.asset-offer-copy-button:active {
    transform: translateY(1px);
}

.asset-offer-copy-button i {
    font-size: 12px;
}


/* Deposit instructions */

.asset-offer-instructions {
    margin-top: 20px;
}

.asset-offer-instructions-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    color: var(--text-color);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.asset-offer-instructions-title i {
    color: var(--primary-color, #7c3aed);
    font-size: 12px;
}

.asset-offer-payment-instructions {
    margin: 0;
    padding: 13px 14px;
    border: 1px solid var(--border-color);
    border-radius: 11px;
    background: var(--card-background);
    color: var(--muted-text-color);
    font-size: 12px;
    line-height: 1.65;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.asset-offer-payment-instructions:empty {
    display: none;
}


/* Amount sent */

.asset-offer-amount-field {
    margin-top: 20px;
}

.asset-offer-amount-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: 12px;
    font-weight: 700;
}

.asset-offer-amount-input {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 14px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    outline: none;
    background: var(--card-background);
    color: var(--text-color);
    font-size: 14px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.asset-offer-amount-input:focus {
    border-color: var(--primary-color, #7c3aed);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.10);
}

.asset-offer-amount-input::placeholder {
    color: var(--muted-text-color);
    opacity: 0.7;
}


/* Mobile */

@media (max-width: 600px) {
    .asset-offer-payment-details {
        padding: 14px;
        border-radius: 14px;
    }

    .asset-offer-payment-intro {
        padding: 13px 14px;
    }

    .asset-offer-payment-intro-title {
        font-size: 13px;
    }

    .asset-offer-payment-intro-text {
        font-size: 11.5px;
    }

    .asset-offer-wallet-row {
        display: block;
    }

    .asset-offer-wallet-address {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .asset-offer-copy-button {
        width: 100%;
        min-height: 42px;
        border-top: 1px solid var(--border-color);
        border-left: 0;
    }
}
.asset-offers-section {
    padding-bottom: 40px;
}

.asset-offers-holdings-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 12px;
    background: #6d28d9;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.asset-offers-holdings-button:hover {
    background: #5b21b6;
    color: #ffffff;
    transform: translateY(-1px);
}

.asset-offers-holdings-button i:last-child {
    font-size: 12px;
}
