:root {
    --bg-0: #040404;
    --bg-1: #100d08;
    --panel: rgba(19, 16, 11, 0.82);
    --panel-border: rgba(255, 197, 73, 0.28);
    --text-0: #f5f3ee;
    --text-1: #c7bea9;
    --purple: #ffcf5a;
    --blue: #b98517;
    --neon: #d8ff40;
    --danger: #ff5879;
    --radius: 16px;
    --shadow-neon: 0 0 0 1px rgba(255, 199, 74, 0.22), 0 15px 45px rgba(0, 0, 0, 0.62), 0 0 30px rgba(216, 255, 64, 0.12);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: "Rajdhani", sans-serif;
    background: radial-gradient(circle at 10% 10%, #36280f 0%, var(--bg-0) 46%), linear-gradient(145deg, #050505 0%, var(--bg-1) 100%);
    color: var(--text-0);
    min-height: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

.page {
    position: relative;
    z-index: 2;
}

.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    z-index: 0;
    opacity: 0.45;
    pointer-events: none;
}

.orb-a {
    width: 320px;
    height: 320px;
    background: var(--purple);
    top: -80px;
    left: -60px;
}

.orb-b {
    width: 340px;
    height: 340px;
    background: var(--blue);
    right: -100px;
    bottom: 10%;
}

.grid-noise {
    position: fixed;
    inset: 0;
    z-index: 1;
    background-image:
        linear-gradient(rgba(255, 205, 92, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(216, 255, 64, 0.05) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(circle at center, rgba(255,255,255,0.85), transparent 85%);
    pointer-events: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 9;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 199, 74, 0.24);
    background: rgba(6, 5, 4, 0.78);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand strong {
    display: block;
    font-family: "Orbitron", sans-serif;
    letter-spacing: 0.08em;
}

.brand small {
    color: var(--text-1);
    letter-spacing: 0.08em;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-content: center;
    overflow: hidden;
    background: #050505;
    border: 1px solid rgba(255, 205, 92, 0.35);
    box-shadow: 0 0 18px rgba(255, 199, 74, 0.35);
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-nav {
    display: flex;
    gap: 16px;
    align-items: center;
}

.main-nav a {
    color: var(--text-1);
    font-weight: 600;
    letter-spacing: 0.04em;
}

.main-nav a:hover {
    color: var(--neon);
}

.cart-pill {
    border: 1px solid rgba(216, 255, 64, 0.34);
    border-radius: 999px;
    padding: 8px 14px;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    background: rgba(216, 255, 64, 0.07);
    font-weight: 700;
}

.cart-pill span {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--neon);
    color: #08141a;
}

.lang-switch select {
    border: 1px solid rgba(255, 205, 92, 0.45);
    background: rgba(0, 10, 20, 0.8);
    color: #fff2d5;
    border-radius: 999px;
    padding: 7px 10px;
    font-weight: 700;
}

.hero {
    padding: 70px 0 46px;
    position: relative;
}

.hero-grid {
    display: grid;
    gap: 26px;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
}

.hero h1 {
    margin: 0;
    font-family: "Orbitron", sans-serif;
    font-size: clamp(2.1rem, 6vw, 4rem);
    line-height: 1.05;
}

.hero p {
    color: var(--text-1);
    font-size: 1.16rem;
    max-width: 560px;
}

.neon {
    color: var(--neon);
    text-shadow: 0 0 14px rgba(216, 255, 64, 0.6);
}

.btn {
    border: 1px solid transparent;
    background: linear-gradient(120deg, var(--purple), var(--blue));
    color: #fff;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:hover {
    filter: brightness(1.12);
}

.btn-outline {
    border-color: rgba(216, 255, 64, 0.5);
    background: transparent;
}

.tech-card {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-neon);
    padding: 18px;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.metric {
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 205, 92, 0.28);
    background: rgba(10, 9, 7, 0.7);
}

.metric strong {
    font-family: "Orbitron", sans-serif;
    font-size: 1.3rem;
}

.section {
    padding: 18px 0 36px;
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section h2 {
    font-family: "Orbitron", sans-serif;
    margin: 0;
}

.grid-products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

/* Flipper Zero destacado: ocupa 2x2 SOLO en featured-grid */
.featured-grid > .featured-hero {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(135deg, rgba(216, 255, 64, 0.15), rgba(255, 205, 92, 0.2));
    border: 2px solid rgba(216, 255, 64, 0.8);
    box-shadow: 0 0 30px rgba(216, 255, 64, 0.4), inset 0 0 20px rgba(216, 255, 64, 0.1);
    min-height: 600px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.featured-grid > .featured-hero p {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 2.2;
    color: #f5f3ee;
    margin: 0;
    letter-spacing: 0.02em;
    padding: 20px;
}

.product-card {
    background: linear-gradient(170deg, rgba(34, 25, 10, 0.88), rgba(8, 7, 5, 0.95));
    border: 1px solid rgba(255, 199, 74, 0.28);
    border-radius: var(--radius);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 260px;
    transform: translateY(10px);
    opacity: 0;
    transition: transform 0.45s ease, opacity 0.45s ease, box-shadow 0.3s ease;
}

.product-card.show {
    transform: translateY(0);
    opacity: 1;
}

.product-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.46), 0 0 25px rgba(216, 255, 64, 0.16);
    border-color: rgba(216, 255, 64, 0.4);
}

.product-card h3 {
    margin: 2px 0;
    font-size: 1.22rem;
}

.product-image {
    width: 100%;
    height: 200px;
    background: rgba(16, 13, 9, 0.6);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.kit-logo-image {
    object-fit: contain !important;
    padding: 16px;
    background: radial-gradient(circle at center, rgba(255, 208, 90, 0.12), rgba(0, 0, 0, 0.45));
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.image-placeholder {
    font-size: 3.5rem;
    color: rgba(255, 205, 92, 0.3);
}

.tier-badge {
    display: inline-flex;
    width: fit-content;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 205, 92, 0.14);
    border: 1px solid rgba(255, 205, 92, 0.42);
    color: #ffe7a7;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.76rem;
}

.tier-featured {
    animation: glow-pulse 2s ease-in-out infinite;
    background: rgba(216, 255, 64, 0.25) !important;
    border: 1.5px solid rgba(216, 255, 64, 0.8) !important;
    color: #d8ff40 !important;
    font-weight: 700;
    box-shadow: 0 0 12px rgba(216, 255, 64, 0.6), inset 0 0 8px rgba(216, 255, 64, 0.2);
}

.grid-products > :first-child .tier-featured {
    animation: glow-pulse-intense 1.5s ease-in-out infinite;
    background: linear-gradient(135deg, rgba(216, 255, 64, 0.4), rgba(255, 205, 92, 0.3)) !important;
    border: 2px solid #d8ff40 !important;
    box-shadow: 0 0 20px rgba(216, 255, 64, 0.9), inset 0 0 15px rgba(216, 255, 64, 0.4), 0 0 40px rgba(216, 255, 64, 0.5);
    font-size: 0.9rem;
}

.featured-hero .tier-featured {
    animation: glow-pulse-intense 1.5s ease-in-out infinite;
    background: linear-gradient(135deg, rgba(216, 255, 64, 0.5), rgba(255, 205, 92, 0.4)) !important;
    border: 2.5px solid #d8ff40 !important;
    box-shadow: 0 0 30px rgba(216, 255, 64, 1), inset 0 0 20px rgba(216, 255, 64, 0.5), 0 0 60px rgba(216, 255, 64, 0.6);
    font-size: 1rem;
    font-weight: 900;
    text-shadow: 0 0 10px rgba(216, 255, 64, 0.8);
}

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 12px rgba(216, 255, 64, 0.6), inset 0 0 8px rgba(216, 255, 64, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(216, 255, 64, 0.9), inset 0 0 12px rgba(216, 255, 64, 0.4);
    }
}

@keyframes glow-pulse-intense {
    0%, 100% {
        box-shadow: 0 0 20px rgba(216, 255, 64, 0.9), inset 0 0 15px rgba(216, 255, 64, 0.4), 0 0 40px rgba(216, 255, 64, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(216, 255, 64, 1), inset 0 0 20px rgba(216, 255, 64, 0.6), 0 0 60px rgba(216, 255, 64, 0.8);
    }
}

.price {
    font-family: "Orbitron", sans-serif;
    font-size: 1.3rem;
    margin-top: auto;
}

.filters-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 18px;
    padding: 28px 0 46px;
}

.filters {
    position: sticky;
    top: 92px;
    height: fit-content;
}

.filters-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.filters-form {
    display: grid;
    gap: 12px;
}

.filter-block {
    border: 1px solid rgba(255, 199, 74, 0.18);
    border-radius: 12px;
    padding: 10px;
    background: rgba(7, 6, 5, 0.45);
}

.filter-block label {
    display: inline-block;
    margin-bottom: 8px;
}

.price-range-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    align-items: center;
}

.price-range-row span {
    color: var(--text-1);
    font-weight: 700;
}

.filter-actions {
    display: grid;
    gap: 8px;
}

.btn-clear {
    padding: 7px 10px;
    font-size: 0.85rem;
}

.catalog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255, 199, 74, 0.2);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.toolbar-left {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.toolbar-left h2 {
    margin: 0;
}

.toolbar-left span {
    color: var(--text-1);
    font-weight: 600;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.toolbar-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.toolbar-form label {
    margin: 0;
    font-size: 0.92rem;
}

.toolbar-form select {
    min-width: 120px;
    padding: 8px 10px;
}

.filters,
.content-panel,
.form-panel {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-neon);
}

.form-row {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

label {
    color: var(--text-1);
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 199, 74, 0.32);
    background: rgba(14, 11, 8, 0.92);
    color: var(--text-0);
    font-family: inherit;
    font-size: 1rem;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(216, 255, 64, 0.7);
    box-shadow: 0 0 0 2px rgba(216, 255, 64, 0.2);
}

.detail-layout,
.checkout-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 18px;
    padding: 26px 0 50px;
}

.product-detail-image {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(145deg, rgba(34, 25, 10, 0.62), rgba(8, 7, 5, 0.86));
    border: 1px solid rgba(255, 199, 74, 0.26);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #0a0907;
}

.image-placeholder-large {
    font-size: 5rem;
    color: rgba(255, 205, 92, 0.22);
}

.panel-title {
    margin-top: 0;
    font-family: "Orbitron", sans-serif;
}

.inline-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.trust-row span {
    border: 1px solid rgba(216, 255, 64, 0.35);
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(216, 255, 64, 0.08);
    color: #efffbb;
    font-weight: 600;
}

.split-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.tier-hot {
    background: rgba(216, 255, 64, 0.12);
    border-color: rgba(216, 255, 64, 0.5);
    color: #f6ffce;
}

.compare-price {
    color: #bba772;
    text-decoration: line-through;
}

.legal-copy p {
    color: var(--text-1);
    max-width: 840px;
    line-height: 1.55;
}

.pagination {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 10px 8px;
    border-bottom: 1px solid rgba(255, 199, 74, 0.22);
    text-align: left;
}

.tag-ok {
    color: var(--neon);
}

.tag-out {
    color: var(--danger);
}

.tracking-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 16px;
}

.orders-list {
    display: grid;
    gap: 10px;
}

.order-row {
    border: 1px solid rgba(255, 199, 74, 0.2);
    border-radius: 12px;
    padding: 12px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: center;
    background: rgba(7, 6, 5, 0.56);
}

.order-row small {
    display: block;
    color: var(--text-1);
}

.order-row.active {
    border-color: rgba(216, 255, 64, 0.48);
    box-shadow: 0 0 0 1px rgba(216, 255, 64, 0.2);
}

.tracking-hero {
    display: flex;
    gap: 12px;
    align-items: center;
    border: 1px solid rgba(255, 199, 74, 0.25);
    border-radius: 12px;
    padding: 10px;
    background: rgba(7, 6, 5, 0.55);
    margin-bottom: 12px;
}

.tracking-hero p {
    margin: 4px 0 0;
    color: var(--text-1);
    font-size: 0.92rem;
}

.truck-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(140deg, var(--purple), var(--blue));
    font-size: 1.25rem;
}

.order-progress {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr auto;
    align-items: center;
    gap: 8px;
    margin: 10px 0 14px;
}

.progress-step {
    text-align: center;
    color: var(--text-1);
}

.progress-step .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    border: 2px solid rgba(255, 199, 74, 0.45);
    background: transparent;
}

.progress-step small {
    display: block;
    margin-top: 5px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.progress-step.active {
    color: #ffe7a7;
}

.progress-step.active .dot {
    background: var(--neon);
    border-color: var(--neon);
    box-shadow: 0 0 10px rgba(216, 255, 64, 0.45);
}

.progress-line {
    height: 2px;
    background: rgba(255, 199, 74, 0.3);
}

.progress-line.active {
    background: var(--neon);
}

.site-footer {
    margin-top: 40px;
    border-top: 1px solid rgba(255, 199, 74, 0.28);
    background: rgba(8, 7, 5, 0.78);
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 26px 0;
}

.footer-grid h4,
.footer-grid h5 {
    margin: 0 0 8px;
    font-family: "Orbitron", sans-serif;
}

.footer-grid p,
.footer-grid a {
    color: var(--text-1);
    margin: 4px 0;
    display: block;
}

.footer-disclaimer {
    padding: 14px 0;
    border-top: 1px solid rgba(255, 199, 74, 0.12);
    text-align: center;
}

.footer-disclaimer small {
    color: rgba(199, 190, 169, 0.65);
    font-size: 0.75rem;
    line-height: 1.4;
}
}

.flash-list {
    list-style: none;
    padding: 12px 0 0;
    margin: 0;
}

.flash {
    padding: 10px 12px;
    border-radius: 9px;
    border: 1px solid rgba(255, 199, 74, 0.3);
    background: rgba(12, 10, 7, 0.85);
}

@media (max-width: 980px) {
    .hero-grid,
    .filters-layout,
    .detail-layout,
    .checkout-layout,
    .tracking-layout,
    .footer-grid,
    .split-feature {
        grid-template-columns: 1fr;
    }

    .grid-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .main-nav {
        display: none;
    }

    .filters {
        position: static;
    }
}

@media (max-width: 600px) {
    .grid-products,
    .metrics {
        grid-template-columns: 1fr;
    }

    .brand small {
        display: none;
    }

    .hero {
        padding-top: 42px;
    }
}
