/* 
 * NYX Portal - Bitcoin Gold Card Premium Design
 * Ref: Metal brushed gold, bevels, specular sheen, decorative chip.
 */

/* 0) Scope total */
.nyx-bitcoin-card--gold {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    /* recorte tarjeta */
    height: auto;
    min-height: unset;
    /* quita min-height global si existe */
    box-sizing: border-box;
    border: 1px solid rgba(255, 214, 120, .28);
    box-shadow:
        0 18px 48px rgba(0, 0, 0, .55),
        0 0 0 1px rgba(255, 214, 120, .10) inset;
}

/* 1) Brushed gold base (metal) sin imágenes */
.nyx-bitcoin-card--gold {
    background:
        /* brillo suave superior */
        radial-gradient(120% 90% at 20% 10%, rgba(255, 244, 210, .18), rgba(0, 0, 0, 0) 55%),
        /* sombra inferior */
        radial-gradient(120% 120% at 40% 120%, rgba(0, 0, 0, .45), rgba(0, 0, 0, 0) 60%),
        /* oro base */
        linear-gradient(135deg,
            rgba(120, 85, 20, .92),
            rgba(170, 125, 35, .92) 35%,
            rgba(220, 185, 95, .92) 55%,
            rgba(130, 95, 25, .92));
}

/* 2) Textura cepillada (líneas diagonales MUY sutiles) */
.nyx-bitcoin-card--gold::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
        repeating-linear-gradient(115deg,
            rgba(255, 255, 255, .06) 0px,
            rgba(255, 255, 255, .06) 1px,
            rgba(0, 0, 0, 0) 5px,
            rgba(0, 0, 0, 0) 10px);
    opacity: .18;
    mix-blend-mode: overlay;
}

/* 3) Sheen especular (como tarjeta real) */
.nyx-bitcoin-card--gold::after {
    content: "";
    position: absolute;
    inset: -35%;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(circle at 25% 20%, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 55%);
    opacity: .42;
    transform: translateX(-12%) translateY(-6%);
    transition: transform 260ms ease, opacity 260ms ease;
}

/* 4) Contenido siempre arriba del metal */
.nyx-bitcoin-card--gold>* {
    position: relative;
    z-index: 1;
}

/* 5) Chip decorativo (si existe el span) */
.nyx-bitcoin-card--gold .nyx-cc-chip {
    position: absolute;
    left: 26px;
    top: 118px;
    /* ajusta según tu layout real */
    width: 62px;
    height: 46px;
    border-radius: 10px;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(255, 230, 160, .95), rgba(160, 120, 30, .95));
    box-shadow:
        0 10px 18px rgba(0, 0, 0, .25),
        0 0 0 1px rgba(0, 0, 0, .18) inset,
        0 0 0 1px rgba(255, 255, 255, .14);
}

.nyx-bitcoin-card--gold .nyx-cc-chip::before {
    content: "";
    position: absolute;
    inset: 8px 10px;
    border-radius: 6px;
    background:
        repeating-linear-gradient(90deg, rgba(0, 0, 0, .20) 0 2px, rgba(0, 0, 0, 0) 2px 6px),
        linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(0, 0, 0, .12));
    opacity: .85;
}

/* 6) Tipografía “emboss” leve para el título (sin cambiar texto) */
.nyx-bitcoin-card--gold h2,
.nyx-bitcoin-card--gold .card-title,
.nyx-bitcoin-card--gold .lightning-title {
    text-shadow:
        0 1px 0 rgba(0, 0, 0, .35),
        0 0 18px rgba(255, 214, 120, .18);
}

/* 7) Distribución: compactar gaps y eliminar vacío inferior sin mover DOM */
.nyx-bitcoin-card--gold {
    padding-bottom: 18px;
    /* evita colas enormes */
}

/* Ajustes específicos para elementos internos existentes */
.nyx-bitcoin-card--gold .lightning-header {
    margin-bottom: 1rem;
}

.nyx-bitcoin-card--gold .lightning-visuals {
    margin-bottom: 1.5rem;
}

.nyx-bitcoin-card--gold .lightning-stepper {
    margin-bottom: 1.5rem;
}

.nyx-bitcoin-card--gold .lightning-actions {
    margin-top: 1rem;
}


/* 8) Hover “tarjeta real”: sway lateral suave */
@media (hover:hover) and (pointer:fine) {
    .nyx-bitcoin-card--gold {
        transition: transform 240ms ease, box-shadow 240ms ease, filter 240ms ease;
    }

    .nyx-bitcoin-card--gold:hover {
        animation: nyxCardSway 1.6s ease-in-out infinite;
        filter: saturate(1.05);
    }

    .nyx-bitcoin-card--gold:hover::after {
        transform: translateX(8%) translateY(-8%);
        opacity: .58;
    }

    @keyframes nyxCardSway {
        0% {
            transform: translateX(0px) rotateZ(0deg);
        }

        50% {
            transform: translateX(10px) rotateZ(.8deg);
        }

        100% {
            transform: translateX(0px) rotateZ(0deg);
        }
    }
}

/* 9) Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .nyx-bitcoin-card--gold:hover {
        animation: none !important;
        transform: none !important;
    }

    .nyx-bitcoin-card--gold::after {
        transition: none !important;
    }
}