:root {
    --bp-bg: #140f0c;
    --bp-bg-elevated: #1c1511;
    --bp-surface: #241c16;
    --bp-surface-2: #2e241c;
    --bp-orange: #ff7a18;
    --bp-orange-hot: #ff5a00;
    --bp-orange-soft: #ffb347;
    --bp-amber: #ffc857;
    --bp-text: #fff7ef;
    --bp-muted: #c9b5a4;
    --bp-border: rgba(255, 156, 74, 0.22);
    --bp-success: #4ade80;
    --bp-danger: #f87171;
    --bp-radius: 18px;
    --bp-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.bg-dark-blue {
    min-height: 100vh;
    color: var(--bp-text);
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(255, 122, 24, 0.22), transparent 55%),
        radial-gradient(900px 500px at 100% 0%, rgba(255, 90, 0, 0.14), transparent 50%),
        linear-gradient(180deg, #1a120e 0%, var(--bp-bg) 45%, #100c0a 100%);
    font-family: "Sora", "Segoe UI", sans-serif;
}

.bg-blue-custom,
.bg-dark-blue { background-color: transparent; }

a { color: var(--bp-orange-soft); }
a:hover { color: var(--bp-orange); }

.navbar {
    z-index: 80;
    background: rgba(20, 15, 12, 0.82) !important;
    border-bottom: 1px solid var(--bp-border);
    backdrop-filter: blur(14px);
    box-shadow: none;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--bp-text) !important;
}

.navbar-brand img {
    border-radius: 10px;
    box-shadow: 0 0 0 2px rgba(255, 122, 24, 0.35);
}

.navbar-brand span {
    font-weight: 700;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, #fff 20%, var(--bp-orange-soft));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-link {
    color: rgba(255, 247, 239, 0.78) !important;
    border-radius: 999px;
    padding: 0.45rem 0.9rem !important;
    font-weight: 500;
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff !important;
    background: rgba(255, 122, 24, 0.16);
}

.wallet-dropdown {
    background: var(--bp-surface-2);
    border: 1px solid var(--bp-border);
    border-radius: 14px;
    padding: 0.4rem;
    box-shadow: var(--bp-shadow);
    min-width: 200px;
}

.wallet-dropdown .dropdown-item {
    color: var(--bp-text);
    border-radius: 10px;
    padding: 0.55rem 0.85rem;
    font-weight: 500;
}

.wallet-dropdown .dropdown-item:hover,
.wallet-dropdown .dropdown-item:focus {
    background: rgba(255, 122, 24, 0.16);
    color: #fff;
}

.wallet-dropdown .dropdown-divider {
    border-color: rgba(255, 156, 74, 0.2);
    margin: 0.35rem 0;
}

#inputSearch,
.form-control,
.form-select {
    background-color: var(--bp-surface) !important;
    border: 1px solid var(--bp-border) !important;
    color: var(--bp-text) !important;
    border-radius: 12px !important;
}

#inputSearch:focus,
.form-control:focus,
.form-select:focus {
    border-color: var(--bp-orange) !important;
    box-shadow: 0 0 0 3px rgba(255, 122, 24, 0.18) !important;
}

.search-wrap { width: 100%; }

.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bp-surface-2);
    border: 1px solid var(--bp-border);
    border-radius: 14px;
    z-index: 200;
    display: none;
    max-height: 320px;
    overflow: auto;
    box-shadow: var(--bp-shadow);
}

.search-results.open { display: block; }

.search-results a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.85rem;
    color: var(--bp-text);
    text-decoration: none;
}

.search-results a:hover { background: rgba(255, 122, 24, 0.12); }
.search-results img { width: 2em; height: 2em; object-fit: cover; border-radius: 8px; }

.main-content { padding-top: 96px; }

.store-hero {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: clamp(1.75rem, 4vw, 3.25rem);
    margin-bottom: 1.75rem;
    background:
        linear-gradient(135deg, rgba(255, 122, 24, 0.28), rgba(255, 90, 0, 0.08) 40%, rgba(36, 28, 22, 0.9)),
        var(--bp-surface);
    border: 1px solid var(--bp-border);
    box-shadow: var(--bp-shadow);
}

.store-hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -40% auto;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 184, 71, 0.35), transparent 70%);
    pointer-events: none;
}

.store-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 122, 24, 0.16);
    border: 1px solid rgba(255, 122, 24, 0.35);
    color: var(--bp-amber);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.store-hero h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 0.85rem;
    max-width: 14ch;
}

.store-hero p {
    max-width: 42ch;
    color: var(--bp-muted);
    margin-bottom: 1.35rem;
}

.store-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin: 1.75rem 0 1rem;
}

.section-head h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
}

.section-head p {
    margin: 0.2rem 0 0;
    color: var(--bp-muted);
    font-size: 0.92rem;
}

.category {
    display: flex;
    gap: 0.65rem;
    overflow: auto;
    padding-bottom: 0.25rem;
}

.category::-webkit-scrollbar { height: 6px; }
.category::-webkit-scrollbar-thumb {
    background: rgba(255, 122, 24, 0.45);
    border-radius: 999px;
}

.category .nav-link {
    white-space: nowrap;
    background: var(--bp-surface) !important;
    border: 1px solid var(--bp-border);
    color: var(--bp-text) !important;
    box-shadow: none;
}

.category .nav-link:hover,
.category .nav-link.active {
    background: linear-gradient(135deg, var(--bp-orange), var(--bp-orange-hot)) !important;
    border-color: transparent;
    color: #fff !important;
}

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

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

@media (min-width: 1100px) {
    .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: var(--bp-text);
    background: linear-gradient(180deg, rgba(46, 36, 28, 0.95), rgba(28, 21, 17, 0.98));
    border: 1px solid var(--bp-border);
    border-radius: var(--bp-radius);
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    margin: 0 !important;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 122, 24, 0.55);
    box-shadow: 0 18px 40px rgba(255, 90, 0, 0.18);
    color: var(--bp-text);
}

.product-card-media {
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 20%, rgba(255, 122, 24, 0.22), transparent 55%),
        var(--bp-bg-elevated);
    padding: 1.25rem;
}

.product-card-media img {
    width: min(70%, 150px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.35));
}

.product-card-body {
    padding: 1rem 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}

.product-card-body .glow {
    font-weight: 700;
    font-size: 1rem;
    text-shadow: none;
}

.product-card-body small {
    color: var(--bp-muted);
}

.product-price {
    color: var(--bp-amber);
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: 0.15rem;
}

.btn-buy {
    margin-top: auto;
    border: 0;
    border-radius: 12px;
    padding: 0.55rem 0.85rem;
    font-weight: 700;
    color: #1a100a;
    background: linear-gradient(135deg, var(--bp-orange-soft), var(--bp-orange));
}

.btn-buy:hover {
    color: #1a100a;
    background: linear-gradient(135deg, #ffd27a, var(--bp-orange-hot));
}

.btn-primary-custom,
.btn-gt {
    border: 0;
    border-radius: 12px;
    color: #1a100a !important;
    font-weight: 700;
    background: linear-gradient(135deg, var(--bp-orange-soft), var(--bp-orange-hot));
    box-shadow: 0 10px 24px rgba(255, 90, 0, 0.25);
}

.btn-primary-custom:hover,
.btn-gt:hover {
    color: #1a100a !important;
    filter: brightness(1.05);
}

.btn-outline-light {
    border-radius: 12px;
    border-color: rgba(255, 247, 239, 0.28) !important;
}

.text-primary-custom { color: var(--bp-orange-soft) !important; }
.text-muted { color: var(--bp-muted) !important; }

.card.bg-blue-custom,
.page-panel,
.auth-card,
.admin-panel,
.admin-kpi {
    background: rgba(36, 28, 22, 0.92) !important;
    border: 1px solid var(--bp-border) !important;
    border-radius: var(--bp-radius);
    box-shadow: var(--bp-shadow);
}

.page-panel { color: var(--bp-text); }

.auth-card {
    max-width: 460px;
    margin-top: 1rem;
    padding: 1.85rem;
}

.product-detail-media {
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background:
        radial-gradient(circle at 50% 20%, rgba(255, 122, 24, 0.22), transparent 55%),
        var(--bp-bg-elevated);
    padding: 1.5rem;
}

.product-detail-media img {
    width: min(70%, 180px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.35));
}

.product-desc {
    white-space: pre-line;
    color: var(--bp-muted);
    font-size: 0.95rem;
}

.instant-tag {
    color: var(--bp-amber);
    font-weight: 600;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
}

.service-list li {
    position: relative;
    padding: 0.55rem 0 0.55rem 1.6rem;
    color: var(--bp-muted);
    border-bottom: 1px solid rgba(255, 156, 74, 0.12);
}

.service-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bp-orange);
}

.service-list-numbered {
    counter-reset: step;
}

.service-list-numbered li {
    counter-increment: step;
    padding-left: 2.2rem;
}

.service-list-numbered li::before {
    content: counter(step);
    width: 1.4rem;
    height: 1.4rem;
    top: 0.55rem;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--bp-orange), var(--bp-orange-hot));
    color: #1a100a;
    font-size: 0.75rem;
    font-weight: 700;
    display: grid;
    place-items: center;
}

.delivery-pre {
    white-space: pre-wrap;
    color: var(--bp-amber);
    background: rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    padding: 0.85rem 1rem;
}

.variant-option {
    background: rgba(28, 21, 17, 0.9);
    border: 1px solid var(--bp-border);
    border-radius: 14px;
    padding: 0.95rem 1rem;
    cursor: pointer;
    transition: 0.2s ease;
    height: 100%;
}

.variant-option:hover,
.variant-option.active {
    transform: translateY(-2px);
    border-color: var(--bp-orange);
    background: rgba(255, 122, 24, 0.12);
}

.variant-option input { display: none; }

.nominal-price { color: var(--bp-amber); font-weight: 700; }
.stock-ok { color: var(--bp-success); }
.stock-low { color: var(--bp-amber); }

.alert-soft {
    background: rgba(255, 122, 24, 0.12);
    border: 1px solid var(--bp-border);
    color: var(--bp-text);
    border-radius: 14px;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-pending { background: rgba(255, 200, 87, 0.18); color: var(--bp-amber); }
.status-paid,
.status-completed { background: rgba(74, 222, 128, 0.16); color: var(--bp-success); }
.status-processing { background: rgba(255, 122, 24, 0.16); color: var(--bp-orange-soft); }
.status-cancelled { background: rgba(248, 113, 113, 0.16); color: var(--bp-danger); }

.floating-discord {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 90;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5865F2, #4752c4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    box-shadow: 0 12px 28px rgba(88, 101, 242, 0.4);
    text-decoration: none;
    transition: transform 0.2s ease;
}

.floating-discord:hover {
    color: #fff;
    transform: translateY(-3px) scale(1.05);
}

.site-footer {
    margin-top: auto;
    background: #100c0a !important;
    border-top: 1px solid var(--bp-border);
}

.footer-cta {
    background: linear-gradient(90deg, rgba(255, 90, 0, 0.28), rgba(255, 122, 24, 0.12)) !important;
}

.footer-rule {
    width: 48px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--bp-orange), transparent);
    margin: 0.65rem 0 1rem;
}

.footer-link {
    color: #fff !important;
    text-decoration: none;
}

.footer-link:hover { color: var(--bp-orange-soft) !important; }

.footer-social {
    display: flex;
    gap: 0.85rem;
    margin: 0.75rem 0 0.5rem;
}

.footer-social a {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    color: #fff;
    background: rgba(255, 122, 24, 0.12);
    border: 1px solid var(--bp-border);
    text-decoration: none;
    transition: transform 0.2s, background 0.2s;
}

.footer-social a:hover {
    transform: translateY(-3px);
    background: rgba(255, 122, 24, 0.28);
    color: #fff;
}

.footer-copy {
    background-color: rgba(0, 0, 0, 0.28);
    color: var(--bp-muted);
    font-size: 0.9rem;
}

.zoomIMG { animation: fadeUp 0.55s ease both; }
.zoomIMG:nth-child(2) { animation-delay: 0.05s; }
.zoomIMG:nth-child(3) { animation-delay: 0.1s; }
.zoomIMG:nth-child(4) { animation-delay: 0.15s; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.admin-shell { display: flex; min-height: 100vh; }
.admin-side {
    width: 250px;
    flex-shrink: 0;
    background: #120e0b;
    border-right: 1px solid var(--bp-border);
    padding: 1rem;
    display: flex;
    flex-direction: column;
}
.admin-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    margin-bottom: 1rem;
}
.admin-side nav { display: flex; flex-direction: column; gap: 0.25rem; }
.admin-side nav a,
.admin-side-foot a,
.admin-side-foot button {
    color: #efd9c7;
    text-decoration: none;
    background: transparent;
    border: 0;
    text-align: left;
    border-radius: 10px;
    padding: 0.55rem 0.75rem;
    display: block;
    width: 100%;
}
.admin-side nav a.active,
.admin-side nav a:hover,
.admin-side-foot a:hover,
.admin-side-foot button:hover {
    background: rgba(255, 122, 24, 0.16);
    color: #fff;
}
.admin-side-foot { margin-top: auto; }
.admin-main { flex: 1; padding: 1.25rem; }
.admin-table { color: #fff; }
.admin-table th { color: var(--bp-orange-soft); border-color: var(--bp-border); }
.admin-table td { border-color: rgba(255, 156, 74, 0.18); }

.swiper {
    width: 100%;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--bp-border);
    box-shadow: var(--bp-shadow);
}

.swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 320px;
    object-fit: cover;
}

.swiper-button-next,
.swiper-button-prev { color: #fff !important; }
.swiper-pagination-bullet-active { background: var(--bp-orange) !important; }

@media (max-width: 768px) {
    .admin-shell { flex-direction: column; }
    .admin-side { width: 100%; }
    .main-content { padding-top: 82px; }
    .store-hero { border-radius: 22px; }
    .swiper-slide img { max-height: 180px; }
}
