:root {
    --sp-yellow: #ff9f1c;
    --sp-gold: #ff7a00;
    --sp-red: #0077ff;
    --sp-deep-red: #00398a;
    --sp-dark: #060910;
    --sp-card: rgba(8, 20, 48, 0.78);
    --sp-border: rgba(0, 119, 255, 0.24);
    --sp-text: #f3f7ff;
    --sp-muted: #b4c2dd;
}

html {
    scroll-behavior: smooth;
}

body {
    padding-top: 76px;
    color: var(--sp-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background:
        radial-gradient(circle at 10% 10%, rgba(0, 119, 255, 0.34), transparent 35%),
        radial-gradient(circle at 80% 0%, rgba(255, 159, 28, 0.28), transparent 40%),
        radial-gradient(circle at 92% 30%, rgba(0, 90, 220, 0.24), transparent 34%),
        linear-gradient(160deg, #02050c 0%, #061126 50%, #040910 100%);
    min-height: 100vh;
}

.skins-navbar {
    background: linear-gradient(90deg, rgba(0, 57, 138, 0.82), rgba(255, 122, 0, 0.52));
    border-bottom: 1px solid var(--sp-border);
    backdrop-filter: blur(8px);
}

/* WhatsApp icon shown next to hamburger on mobile */
.navbar-wa-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.18);
    border: 1px solid rgba(37, 211, 102, 0.45);
    color: #25d366;
    font-size: 1.2rem;
    text-decoration: none;
    transition: background .2s;
}

.navbar-wa-mobile:hover,
.navbar-wa-mobile:focus {
    background: rgba(37, 211, 102, 0.32);
    color: #25d366;
}

.skins-logo-mark {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 800;
    background: linear-gradient(135deg, var(--sp-red), var(--sp-yellow));
    color: #fff;
}

.skins-logo-image {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #fff;
}

.dropdown-menu {
    background: #121212;
    border: 1px solid var(--sp-border);
}

.dropdown-item {
    color: #e9e9e9;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.skins-title {
    font-size: clamp(2rem, 4.8vw, 3.6rem);
    font-weight: 800;
    margin-bottom: .45rem;
}

.skins-title span {
    color: var(--sp-yellow);
}

.skins-subtitle {
    color: var(--sp-muted);
    max-width: 760px;
    margin: 0 auto;
}

.campaign-filter-bar {
    background: rgba(16, 16, 16, 0.58);
    border: 1px solid var(--sp-border);
    border-radius: 14px;
    padding: 1rem;
}

.skins-input {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    min-height: 44px;
}

.skins-input::placeholder {
    color: #a1a1a1;
}

.skins-input:focus {
    border-color: rgba(0, 119, 255, 0.72);
    box-shadow: 0 0 0 .2rem rgba(0, 119, 255, 0.20);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.skins-input option,
.form-select.skins-input option {
    color: #121212;
    background: #f1f1f1;
}

.errorlist {
    list-style: none;
    margin: .4rem 0 0;
    padding: .45rem .6rem;
    border: 1px solid rgba(255, 102, 102, .5);
    border-radius: 8px;
    background: rgba(120, 0, 0, .25);
    color: #ffd0d0;
    font-size: .86rem;
}

.skins-btn-primary {
    border: none;
    color: #fff;
    font-weight: 700;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--sp-red), var(--sp-yellow));
}

.skins-btn-primary:hover {
    color: #fff;
    filter: brightness(1.03);
}

.skins-btn-muted {
    border: 1px solid rgba(255, 255, 255, .18);
    color: #ececec;
    background: rgba(255, 255, 255, .04);
    border-radius: 10px;
    font-weight: 700;
}

.campaign-card {
    background: linear-gradient(135deg, rgba(8, 20, 48, 0.82), rgba(10, 36, 82, 0.62));
    border: 1px solid var(--sp-border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

.campaign-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.campaign-image-wrap {
    position: relative;
}

.campaign-top-badges {
    position: absolute;
    top: .7rem;
    left: .7rem;
    right: .7rem;
    display: flex;
    justify-content: space-between;
    z-index: 2;
}

.campaign-image-fallback {
    background: radial-gradient(circle at center, rgba(255, 148, 0, .26), transparent 70%);
    color: var(--sp-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.campaign-content {
    padding: 1rem;
}

.campaign-status {
    font-size: .74rem;
    font-weight: 700;
    border-radius: 999px;
    padding: .26rem .6rem;
    letter-spacing: .3px;
}

.campaign-status.active {
    background: rgba(49, 201, 108, .2);
    color: #5cf59f;
    border: 1px solid rgba(49, 201, 108, .35);
}

.campaign-status.finished {
    background: rgba(255, 122, 0, .24);
    color: #ffd2a1;
    border: 1px solid rgba(255, 122, 0, .45);
}

.campaign-status.trophy {
    background: rgba(255, 200, 0, .14);
    color: #ffdf7a;
    border: 1px solid rgba(255, 200, 0, .32);
}

.campaign-title-text {
    font-size: clamp(1.1rem, 2vw, 1.7rem);
    font-weight: 800;
}

.campaign-highlight {
    color: var(--sp-yellow);
    font-weight: 700;
}

.campaign-float-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.campaign-float-track {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(28, 140, 68, .8) 0%, rgba(28, 140, 68, .8) 7%, rgba(214, 53, 199, .85) 7%, rgba(214, 53, 199, .85) 15%, rgba(192, 149, 0, .9) 15%, rgba(192, 149, 0, .9) 38%, rgba(172, 56, 56, .85) 38%, rgba(172, 56, 56, .85) 100%);
    position: relative;
}

.campaign-float-pointer {
    position: absolute;
    top: -3px;
    width: 3px;
    height: 14px;
    background: #f3f7ff;
    border-radius: 2px;
    transform: translateX(-1px);
}

.campaign-progress-wrap {
    margin-top: .25rem;
}

.campaign-progress-bar {
    width: 100%;
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    overflow: hidden;
}

.campaign-progress-paid {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #ff3c00, #ffb200);
}

.campaign-price {
    color: var(--sp-yellow);
}

.campaign-empty {
    background: rgba(15, 15, 15, 0.5);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 18px;
}

.campaign-empty i {
    font-size: 2.6rem;
    color: var(--sp-yellow);
}

.auth-shell,
.profile-shell,
.numbers-shell {
    max-width: 920px;
    margin: 0 auto;
    padding: 2.2rem 1rem;
}

.auth-card,
.profile-card,
.numbers-card {
    background: linear-gradient(135deg, rgba(8, 20, 48, .82), rgba(10, 36, 82, .60));
    border: 1px solid var(--sp-border);
    border-radius: 22px;
    padding: 1.7rem;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .34);
}

.auth-title,
.profile-title,
.numbers-title {
    font-size: clamp(1.7rem, 3.5vw, 2.6rem);
    font-weight: 800;
    margin-bottom: .4rem;
}

.auth-subtitle,
.profile-subtitle,
.numbers-subtitle {
    color: var(--sp-muted);
    margin-bottom: 1.4rem;
}

.auth-link-switch {
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.auth-link-switch:hover {
    color: var(--sp-yellow);
}

.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 119, 255, 0.25);
    color: var(--sp-yellow);
    font-size: 2rem;
    font-weight: 800;
}

.profile-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .35rem .6rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, .04);
    color: #f1f1f1;
    font-size: .92rem;
}

.profile-chip strong {
    color: var(--sp-yellow);
}

.numbers-empty {
    text-align: center;
    padding: 2rem 1rem;
}

.numbers-empty i {
    font-size: 3rem;
    color: #9b9b9b;
    margin-bottom: 1rem;
}

.manage-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 2.2rem 1rem;
}

.manage-panel {
    background: linear-gradient(135deg, rgba(8, 20, 48, .82), rgba(10, 36, 82, .58));
    border: 1px solid var(--sp-border);
    border-radius: 22px;
    padding: 1.4rem;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .34);
}

.manage-card-thumb {
    width: 86px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, .18);
}

.manage-table {
    color: #ececec;
    --bs-table-color: #ececec;
    --bs-table-striped-color: #ececec;
    --bs-table-hover-color: #ffffff;
    --bs-table-bg: transparent;
    --bs-table-striped-bg: transparent;
    --bs-table-hover-bg: rgba(255, 255, 255, .04);
    --bs-table-border-color: rgba(255, 255, 255, .10);
}

.manage-table thead th {
    color: var(--sp-yellow);
    font-size: .85rem;
    border-color: rgba(255, 255, 255, .14);
    background: transparent;
}

.manage-table tbody td {
    vertical-align: middle;
    border-color: rgba(255, 255, 255, .1);
    background: transparent;
}

.manage-table tbody tr {
    background: transparent;
}

.manage-table tbody td,
.manage-table tbody td strong,
.manage-table tbody td a {
    color: #f3f7ff;
}

.manage-table .text-light-emphasis {
    color: rgba(243, 247, 255, 0.78) !important;
}

.manage-badge {
    border-radius: 999px;
    padding: .28rem .62rem;
    font-size: .74rem;
    font-weight: 700;
}

.manage-badge.active {
    background: rgba(49, 201, 108, .2);
    color: #5cf59f;
}

.manage-badge.inactive {
    background: rgba(255, 255, 255, .12);
    color: #ebebeb;
}

.manage-badge.concluded {
    background: rgba(255, 159, 28, .22);
    color: #ffd08a;
}

.skins-footer {
    background: rgba(5, 12, 28, 0.94) !important;
    border-top: 1px solid var(--sp-border);
}

.skins-footer-text {
    font-size: .82rem;
    color: var(--sp-muted);
}

.skins-footer-copy-link {
    font-size: .82rem;
    color: var(--sp-yellow);
    text-decoration: none;
    transition: color .15s;
}

.skins-footer-copy-link:hover {
    color: #ffffff;
}

/* ================================================================
   RAFFLE / PRODUCT DETAIL PAGE
   ================================================================ */

.raffle-detail {
    min-height: 80vh;
}

.raffle-title {
    font-size: clamp(1.5rem, 3.5vw, 2.8rem);
    font-weight: 800;
}

.raffle-subtitle {
    color: var(--sp-yellow);
    font-size: 1rem;
    font-style: italic;
}

.raffle-winner-banner {
    display: inline-flex;
    gap: .55rem;
    align-items: center;
    padding: .45rem .8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 159, 28, 0.35);
    background: rgba(255, 159, 28, 0.12);
}

.raffle-winner-label {
    font-size: .72rem;
    letter-spacing: .3px;
    text-transform: uppercase;
    color: var(--sp-muted);
}

.raffle-winner-user {
    color: #ffe7c2;
}

.raffle-concluded-alert {
    background: rgba(255, 159, 28, 0.12);
    border: 1px solid rgba(255, 159, 28, 0.35);
    color: #ffe7c2;
}

/* Product image */
.raffle-img-wrap {
    border-radius: 18px;
    overflow: hidden;
}

.raffle-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 18px;
}

.raffle-img-fallback {
    background: radial-gradient(circle at center, rgba(255, 148, 0, .22), transparent 70%);
    color: var(--sp-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

.raffle-thumb {
    width: 64px;
    height: 44px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.65;
    transition: opacity .2s, border-color .2s;
}

.raffle-thumb:hover,
.raffle-thumb.active {
    opacity: 1;
    border-color: var(--sp-yellow);
}

/* Info card */
.raffle-info-card {
    background: linear-gradient(135deg, rgba(7, 18, 42, 0.78), rgba(20, 49, 96, 0.56));
    border: 1px solid var(--sp-border);
    border-radius: 16px;
    overflow: hidden;
}

.raffle-info-cell {
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--sp-border);
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.raffle-info-cell:nth-last-child(1),
.raffle-info-cell:nth-last-child(2) {
    border-bottom: none;
}

.raffle-info-label {
    font-size: .72rem;
    color: var(--sp-muted);
    text-transform: uppercase;
    letter-spacing: .3px;
}

.raffle-info-value {
    font-size: 1rem;
}

.raffle-info-desc {
    padding: .85rem 1rem;
    color: var(--sp-muted);
    font-size: .9rem;
    border-top: 1px solid var(--sp-border);
}

/* WhatsApp card */
.raffle-wa-card {
    background: linear-gradient(135deg, rgba(10, 30, 18, 0.75), rgba(10, 42, 22, 0.55));
    border: 1px solid rgba(37, 211, 102, 0.28);
    border-radius: 16px;
    padding: 1.1rem;
}

.raffle-wa-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.25);
    color: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.raffle-wa-btn {
    background: linear-gradient(90deg, #1a7a3a, #25d366);
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 10px;
}

.raffle-wa-btn:hover {
    color: #fff;
    filter: brightness(1.06);
}

/* Number picker card */
.raffle-pick-card {
    background: linear-gradient(135deg, rgba(7, 18, 42, 0.78), rgba(20, 49, 96, 0.56));
    border: 1px solid var(--sp-border);
    border-radius: 20px;
    padding: 1.4rem;
}

/* Stats bar */
.raffle-stats {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.raffle-stat {
    display: flex;
    align-items: center;
    gap: .45rem;
}

.raffle-stat-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
}

.raffle-stat-dot.free     { background: #1c8c44; }
.raffle-stat-dot.reserved { background: #2c6e6e; }
.raffle-stat-dot.paid     { background: #8c2222; }

/* Number grid */
.raffle-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 360px;
    overflow-y: auto;
    padding-right: 4px;
}

.raffle-grid::-webkit-scrollbar { width: 5px; }
.raffle-grid::-webkit-scrollbar-track { background: rgba(255,255,255,.06); border-radius: 3px; }
.raffle-grid::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 3px; }

/* Number buttons */
.raffle-num-btn {
    width: 52px;
    height: 42px;
    border-radius: 8px;
    border: none;
    font-size: .78rem;
    font-weight: 700;
    font-family: monospace;
    cursor: pointer;
    transition: transform .12s, filter .12s;
}

.raffle-num-btn.free {
    background: rgba(28, 140, 68, 0.55);
    color: #fff;
    border: 1px solid rgba(28, 140, 68, 0.7);
}

.raffle-num-btn.free:hover {
    filter: brightness(1.2);
    transform: scale(1.05);
}

.raffle-num-btn.selected {
    background: var(--sp-yellow) !important;
    color: #111 !important;
    border-color: var(--sp-yellow) !important;
    transform: scale(1.08);
}

.raffle-num-btn.reserved {
    background: rgba(44, 110, 110, 0.55);
    color: #aaeaea;
    border: 1px solid rgba(44, 110, 110, 0.6);
}

.raffle-num-btn.paid {
    background: rgba(140, 34, 34, 0.55);
    color: #f5aaaa;
    border: 1px solid rgba(140, 34, 34, 0.6);
}

/* Selection bar */
.raffle-selection-bar {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(4, 4, 8, 0.7);
    border: 1px solid var(--sp-border);
    border-radius: 14px;
}

/* Checkout button */
.raffle-checkout-btn {
    background: linear-gradient(90deg, var(--sp-red), var(--sp-yellow));
    color: #fff;
    font-weight: 800;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    padding: .75rem 1.5rem;
    transition: filter .15s, transform .12s;
}

.raffle-checkout-btn:hover {
    color: #fff;
    filter: brightness(1.06);
    transform: translateY(-1px);
}

/* ================================================================
   PIX CHECKOUT PAGE
   ================================================================ */

.pix-qr-icon {
    font-size: 3rem;
    color: var(--sp-yellow);
}

.pix-qr-img {
    border-radius: 12px;
    border: 4px solid #fff;
    max-width: 220px;
}

.pix-info-cell {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--sp-border);
    border-radius: 12px;
    padding: .7rem 1rem;
    display: flex;
    flex-direction: column;
    gap: .15rem;
    height: 100%;
}

.pix-info-label {
    font-size: .72rem;
    color: var(--sp-muted);
    text-transform: uppercase;
    letter-spacing: .3px;
}

.pix-info-value {
    font-size: 1.05rem;
    font-weight: 700;
}

.pix-copy-box {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--sp-border);
    border-radius: 12px;
    padding: .6rem .9rem;
}

.pix-copy-text {
    font-size: .72rem;
    word-break: break-all;
    color: var(--sp-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pix-copy-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 8px;
    flex-shrink: 0;
    padding: .35rem .55rem;
}

.pix-copy-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    color: var(--sp-yellow);
}

/* Pagination */
.skins-page-link {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--sp-border);
    color: #fff;
    border-radius: 8px !important;
}

.skins-page-link.active,
.skins-page-link:hover {
    background: rgba(0, 119, 255, 0.22);
    color: var(--sp-yellow);
    border-color: var(--sp-yellow);
}

@media (max-width: 768px) {
    body {
        padding-top: 68px;
    }

    .campaign-filter-bar {
        padding: .8rem;
    }

    .campaign-image {
        height: 190px;
    }

    .raffle-img {
        height: 220px;
    }

    .raffle-num-btn {
        width: 45px;
        height: 38px;
        font-size: .72rem;
    }
}
