/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Color Palette */
    --bg-dark: #0a0a0c;
    --bg-card: rgba(18, 18, 22, 0.75);
    --bg-card-hover: rgba(26, 26, 32, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-focus: rgba(0, 230, 118, 0.4);
    
    --primary: #00e676;
    --primary-glow: rgba(0, 230, 118, 0.25);
    --primary-hover: #00b359;
    
    --secondary: #ffd600;
    --secondary-glow: rgba(255, 214, 0, 0.25);
    --secondary-hover: #e6c000;
    
    --danger: #ff1744;
    --danger-bg: rgba(255, 23, 68, 0.15);
    --danger-border: rgba(255, 23, 68, 0.3);
    
    --text-main: #ffffff;
    --text-muted: #9e9e9e;
    --text-dark: #121214;
    
    --gold: #ffd600;
    
    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    /* Layout */
    --container-max-width: 1200px;
    --border-radius-lg: 20px;
    --border-radius-md: 12px;
    --border-radius-sm: 8px;
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   GLOBAL STYLES & RESET
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 230, 118, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 214, 0, 0.02) 0%, transparent 40%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 60px;
}

.container {
    width: 92%;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */
.main-header {
    background-color: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
    transition: var(--transition-smooth);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

.logo-icon {
    color: var(--primary);
    filter: drop-shadow(0 0 8px var(--primary-glow));
    font-size: 1.6rem;
}

.accent-text {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
}

.nav-link:hover, .nav-link.active {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color);
    color: var(--primary);
}

.instagram-link {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff !important;
    border: none;
}

.instagram-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 39, 67, 0.4);
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   SECTIONS & MAIN LAYOUT
   ========================================================================== */
.section {
    padding: 50px 0 20px;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: 0.05em;
    color: var(--text-main);
}

/* Indicators */
.pulse-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7);
    animation: pulse 1.6s infinite;
}

.trophy-indicator {
    color: var(--gold);
    font-size: 1.2rem;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(0, 230, 118, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 230, 118, 0);
    }
}

/* ==========================================================================
   CARDS SYSTEM (COMMON & STATE BASED)
   ========================================================================== */
.active-draws-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 25px;
}

.winners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.draw-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.draw-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

/* Featured Card Highlights */
.highlighted-card {
    border-color: rgba(255, 214, 0, 0.2);
    box-shadow: 0 4px 20px rgba(255, 214, 0, 0.05);
}

.highlighted-card:hover {
    border-color: var(--secondary);
    box-shadow: 0 12px 35px rgba(255, 214, 0, 0.15);
}

/* Card Image Area */
.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background-color: #141418;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.grayscale {
    filter: grayscale(80%) brightness(0.6);
}

/* Badges inside Image */
.card-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.badge {
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 6px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.category-badge {
    background-color: var(--text-main);
    color: var(--text-dark);
}

.alt-badge {
    background-color: var(--secondary);
    color: var(--text-dark);
}

.price-badge {
    background-color: var(--secondary);
    color: var(--text-dark);
    font-size: 0.85rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.closed-badge {
    background-color: var(--danger);
    color: var(--text-main);
}

.danger-badge {
    background-color: var(--danger-bg);
    color: var(--danger);
    border: 1px solid var(--danger-border);
    animation: flash 1.5s infinite;
}

@keyframes flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Countdown Overlay */
.countdown-overlay {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background-color: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 214, 0, 0.3);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.timer-digits {
    font-family: var(--font-heading);
}

/* Card Content Details */
.card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 15px;
}

.card-title {
    font-size: 1.15rem;
    line-height: 1.4;
    font-weight: 700;
}

.card-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Progress Bars */
.progress-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 5px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.progress-info strong {
    color: var(--text-main);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, #00b0ff 100%);
    border-radius: 10px;
    box-shadow: 0 0 8px var(--primary-glow);
}

.danger-bar .progress-fill {
    background: linear-gradient(90deg, var(--secondary) 0%, var(--danger) 100%);
    box-shadow: 0 0 8px var(--secondary-glow);
}

/* Read More Button for Closed Cards */
.read-more-btn {
    align-self: flex-start;
    font-size: 0.8rem;
    color: var(--secondary);
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition-smooth);
}

.read-more-btn:hover {
    color: #fff;
}

.read-more-btn i {
    transition: transform 0.3s ease;
}

.read-more-btn.active i {
    transform: rotate(180deg);
}

.full-description {
    display: none;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 10px 12px;
    background-color: rgba(255, 255, 255, 0.02);
    border-left: 2px solid var(--secondary);
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    margin-top: -5px;
}

/* Winner Banner for Closed Cards */
.winner-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: var(--border-radius-md);
    margin-top: auto;
}

.winner-name, .winner-ticket {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.winner-name span, .winner-ticket span {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.winner-name strong {
    font-size: 0.95rem;
    color: var(--text-main);
}

.winner-name {
    position: relative;
    padding-left: 22px;
}

.winner-name i {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.95rem;
}

.text-gold {
    color: var(--gold);
}

.ticket-tag {
    color: var(--secondary);
    font-family: var(--font-heading);
    font-size: 0.95rem;
}

/* ==========================================================================
   BUTTONS SYSTEM
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: var(--border-radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    width: 100%;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(0, 230, 118, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 230, 118, 0.4);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(255, 214, 0, 0.2);
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 214, 0, 0.4);
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
    border-radius: var(--border-radius-sm);
}

.btn-quick {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 8px 15px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-quick:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--primary);
}

/* ==========================================================================
   MODAL DIALOG / CHECKOUT OVERLAYS
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(6, 6, 8, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: #121216;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 520px;
    overflow: hidden;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 5;
}

.modal-close:hover {
    color: var(--text-main);
}

/* Modal Header Content */
.modal-header-info {
    padding: 30px 30px 20px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(180deg, rgba(255,255,255,0.01) 0%, transparent 100%);
    position: relative;
}

.modal-header-info h3 {
    font-size: 1.25rem;
    padding-right: 20px;
    line-height: 1.3;
}

.modal-draw-price {
    display: inline-block;
    background-color: var(--secondary-glow);
    border: 1px solid rgba(255, 214, 0, 0.4);
    color: var(--secondary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 10px;
}

.modal-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Form Styles & Inputs */
.section-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 5px;
    margin-bottom: 15px;
}

.qty-btn {
    background: none;
    border: none;
    color: var(--text-main);
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border-radius: var(--border-radius-sm);
}

.qty-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--primary);
}

.quantity-selector input {
    flex-grow: 1;
    background: none;
    border: none;
    color: var(--text-main);
    text-align: center;
    font-size: 1.3rem;
    font-family: var(--font-heading);
    font-weight: 700;
    width: 60px;
}

.quantity-selector input::-webkit-outer-spin-button,
.quantity-selector input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quick-qty-buttons {
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.quick-qty-buttons .btn-quick {
    flex-grow: 1;
    text-align: center;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.required {
    color: var(--danger);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: var(--text-muted);
    font-size: 1rem;
}

.input-wrapper input {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 14px 15px 14px 45px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    background-color: rgba(255, 255, 255, 0.05);
}

.form-help {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Price summary banner */
.price-summary-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0, 230, 118, 0.05);
    border: 1px solid rgba(0, 230, 118, 0.15);
    padding: 16px 20px;
    border-radius: var(--border-radius-md);
}

.total-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
}

.total-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-heading);
}

.modal-footer-terms {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.4;
}

/* Success Card details */
.modal-card-sm {
    max-width: 420px;
}

.modal-card-lg {
    max-width: 680px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-card-lg .modal-body {
    overflow-y: auto;
    max-height: calc(90vh - 110px);
    padding: 24px;
}

.success-card {
    text-align: center;
    padding: 40px 30px;
}

.success-icon-wrapper {
    font-size: 4rem;
    color: var(--primary);
    filter: drop-shadow(0 0 15px var(--primary-glow));
    margin-bottom: 20px;
}

.success-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.success-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.success-details {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
    text-align: left;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.detail-row span {
    color: var(--text-muted);
}

.detail-row strong {
    color: var(--text-main);
}

/* ==========================================================================
   ALERTS FLOATING WIDGET
   ========================================================================== */
.alerts-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #141419;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    width: 320px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    gap: 15px;
    z-index: 90;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    transform: translateY(150px);
    opacity: 0;
}

.alerts-widget.visible {
    transform: translateY(0);
    opacity: 1;
}

.widget-icon {
    font-size: 1.6rem;
    color: var(--secondary);
    display: flex;
    align-items: flex-start;
    padding-top: 3px;
}

.widget-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.widget-content h4 {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-main);
}

.widget-content p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.widget-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

.btn-widget-dismiss {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
}

.btn-widget-dismiss:hover {
    color: var(--text-main);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    margin-top: 80px;
    background-color: rgba(10, 10, 12, 0.4);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    width: 35px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.footer-socials a:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--primary);
    transform: translateY(-3px);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 992px) {
    .nav-menu {
        display: none; /* Can add hamburger menu behavior in production */
    }
    
    .mobile-nav-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 90px;
    }
    
    .section-title {
        font-size: 1.15rem;
    }
    
    .active-draws-grid {
        grid-template-columns: 1fr;
    }
    
    .winners-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .alerts-widget {
        left: 20px;
        right: 20px;
        width: calc(100% - 40px);
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .card-image-wrapper {
        height: 180px;
    }
    
    .modal-card {
        border-radius: var(--border-radius-md);
    }
    
    .modal-header-info {
        padding: 20px 20px 15px;
    }
    
    .modal-body {
        padding: 20px;
        gap: 18px;
    }
}

/* ==========================================================================
   RAFFLE DETAIL PAGE LAYOUT (raffle.html)
   ========================================================================== */
.page-content {
    padding-top: 40px;
    padding-bottom: 80px;
}

.raffle-detail-wrapper {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 40px;
    align-items: start;
}

/* --------------------------------------------------------------------------
   LEFT COLUMN: POSTER CARD
   -------------------------------------------------------------------------- */
.raffle-poster-column {
    position: sticky;
    top: 100px;
}

.poster-card-container {
    background: #111115;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    position: relative;
    display: flex;
    flex-direction: column;
}

.poster-image-area {
    position: relative;
    width: 100%;
    height: 480px;
    background-color: #0c0c0e;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.poster-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.65;
    transition: var(--transition-smooth);
}

.poster-card-container:hover .poster-image {
    transform: scale(1.03);
    opacity: 0.75;
}

/* Poster text overlay */
.poster-text-overlay {
    position: absolute;
    bottom: 40px;
    left: 20px;
    right: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 5;
    pointer-events: none;
    text-shadow: 0 4px 15px rgba(0,0,0,0.85);
}

.poster-text-overlay .pre-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
    letter-spacing: 0.15em;
}

.poster-title-text {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--secondary);
    letter-spacing: -0.02em;
}

.poster-text-overlay .post-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
    letter-spacing: 0.05em;
    margin-top: 5px;
}

/* Poster header tags */
.poster-overlay-badges {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.poster-lightning-icon {
    width: 35px;
    height: 35px;
    background-color: var(--secondary);
    color: var(--text-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 0 12px var(--secondary-glow);
}

.poster-status-tag {
    background-color: var(--primary);
    color: var(--text-dark);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 30px;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 0 12px var(--primary-glow);
}

/* Toast alert overlay */
.live-activity-toast {
    position: absolute;
    top: 75px;
    left: 20px;
    background-color: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.live-activity-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #00b0ff;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(0, 176, 255, 0.7);
    animation: bluePulse 1.6s infinite;
}

@keyframes bluePulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 176, 255, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(0, 176, 255, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 176, 255, 0); }
}

.toast-content strong {
    color: var(--primary);
}

/* Poster Bottom Meta */
.poster-meta-bar {
    display: flex;
    justify-content: space-between;
    background-color: #15151c;
    border-top: 1px solid var(--border-color);
    padding: 15px 20px;
}

.meta-item-left, .meta-item-right {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.meta-item-right {
    align-items: flex-end;
}

.meta-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.meta-value {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
}

.accent-text-gold {
    color: var(--gold);
}

/* --------------------------------------------------------------------------
   RIGHT COLUMN: DETAILED INFO
   -------------------------------------------------------------------------- */
.raffle-info-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Active Badge */
.status-id-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(0, 230, 118, 0.04);
    border: 1px solid rgba(0, 230, 118, 0.15);
    padding: 8px 18px;
    border-radius: 30px;
}

.status-indicator-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    animation: flash 1.5s infinite;
}

.status-id-text {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.05em;
}

/* Big CTA Button */
.btn-cta-glowing {
    background: linear-gradient(90deg, var(--primary) 0%, #00b0ff 100%);
    color: var(--text-dark);
    padding: 18px 36px;
    font-size: 1.15rem;
    font-weight: 800;
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 20px rgba(0, 230, 118, 0.3);
    text-shadow: 0 1px 1px rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.btn-cta-glowing::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(30deg);
    transition: none;
}

.btn-cta-glowing:hover::after {
    left: 150%;
    transition: all 0.6s ease;
}

.btn-cta-glowing:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 230, 118, 0.5);
}

.detail-header-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

/* Launch and Draw dates */
.date-metadata-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.date-meta-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 16px 20px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    gap: 15px;
}

.date-meta-card i {
    font-size: 1.5rem;
}

.date-meta-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.date-meta-text span {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.date-meta-text strong {
    font-size: 0.95rem;
    color: var(--text-main);
}

/* Description Card block */
.description-card-block {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.description-teaser {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-main);
}

.description-card-block .full-description {
    border-left: none;
    padding: 0;
    background-color: transparent;
    margin-top: 0;
    flex-direction: column;
    gap: 12px;
}

/* Progress details card */
.progress-details-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.progress-header-row {
    display: flex;
    justify-content: space-between;
}

.progress-metric {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.progress-metric span {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.progress-metric strong {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.1;
}

.text-right {
    text-align: right;
    align-items: flex-end;
}

.progress-bar-slider {
    width: 100%;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    overflow: hidden;
}

.progress-bar-slider-fill {
    height: 100%;
    background: linear-gradient(90deg, #00b0ff 0%, #d500f9 100%);
    box-shadow: 0 0 10px rgba(0, 176, 255, 0.4);
    border-radius: 30px;
}

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

.percentage-lbl {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.percentage-lbl strong {
    color: var(--text-main);
}

.status-alert-badge {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--secondary);
}

/* Auxiliary buttons */
.aux-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.btn-aux {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 14px 20px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.btn-aux:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255,255,255,0.2);
    color: var(--text-main);
}

/* --------------------------------------------------------------------------
   LEADERBOARD / TOP BUYERS SECTION
   -------------------------------------------------------------------------- */
.top-buyers-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.buyers-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}

.badge-live {
    background-color: rgba(255, 23, 68, 0.15);
    color: var(--danger);
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 800;
    border: 1px solid var(--danger-border);
    animation: flash 1.5s infinite;
}

.buyers-leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.buyer-leaderboard-item {
    background-color: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition-smooth);
}

.buyer-leaderboard-item:hover {
    background-color: rgba(255, 255, 255, 0.03);
    border-color: rgba(255,255,255,0.15);
}

/* First place highlighted border */
.buyer-first-place {
    border-color: rgba(255, 214, 0, 0.25);
    background-color: rgba(255, 214, 0, 0.015);
    box-shadow: 0 4px 15px rgba(255, 214, 0, 0.03);
}

.buyer-first-place:hover {
    border-color: var(--gold);
    background-color: rgba(255, 214, 0, 0.03);
}

.buyer-rank-visual {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-rank {
    font-size: 1.4rem;
}

.medal-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.medal-silver {
    background-color: rgba(224, 224, 224, 0.15);
    color: #e0e0e0;
    border: 1px solid rgba(224, 224, 224, 0.3);
}

.medal-bronze {
    background-color: rgba(205, 127, 50, 0.15);
    color: #cd7f32;
    border: 1px solid rgba(205, 127, 50, 0.3);
}

.buyer-name-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 3px;
}

.buyer-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.buyer-activity-tag {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--secondary);
    background-color: var(--secondary-glow);
    padding: 1px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.buyer-tickets-count {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.buyer-amount-badge {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
}

.buyer-first-place .buyer-amount-badge {
    background-color: var(--secondary-glow);
    border-color: rgba(255, 214, 0, 0.3);
    color: var(--secondary);
}

/* --------------------------------------------------------------------------
   WHATSAPP FLOATING BUTTON
   -------------------------------------------------------------------------- */
.whatsapp-floating-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 55px;
    height: 55px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 95;
    transition: var(--transition-smooth);
}

.whatsapp-floating-btn:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Shift alert widget left when WhatsApp FAB is active */
.whatsapp-floating-btn ~ .alerts-widget {
    right: 95px;
}

/* --------------------------------------------------------------------------
   RESPONSIVE OVERRIDES
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .raffle-detail-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .raffle-poster-column {
        position: static;
    }
    
    .poster-card-container {
        max-width: 480px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .whatsapp-floating-btn ~ .alerts-widget {
        right: 20px;
        bottom: 90px;
    }
}

@media (max-width: 580px) {
    .date-metadata-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .aux-actions-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .detail-header-title {
        font-size: 1.7rem;
    }
    
    .poster-image-area {
        height: 380px;
    }
    
    .poster-title-text {
        font-size: 1.8rem;
    }
}

/* ==========================================================================
   RESULTS & WINNERS PAGES STYLING (results.html & winners.html)
   ========================================================================== */

/* Results page grid wrapper */
.results-layout-wrapper {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 30px;
    margin-top: 20px;
    align-items: start;
}

.results-search-card, .results-table-card {
    background-color: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.search-card-header, .table-card-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
}

.search-card-header h3, .table-card-header h3 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
}

.search-card-header p, .table-card-header p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.search-card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Custom select dropdown */
.custom-select {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 14px 15px 14px 45px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: var(--transition-smooth);
}

.custom-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Add custom arrow for select */
.form-group .input-wrapper::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    color: var(--text-muted);
    pointer-events: none;
}

/* Results Table styles */
.table-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.results-table th {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
}

.results-table td {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
    vertical-align: middle;
}

.results-table tr {
    transition: var(--transition-smooth);
}

.results-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.015);
}

/* Highlights for active row */
.table-row-highlight {
    background-color: rgba(0, 230, 118, 0.02);
}

.table-row-highlight td {
    border-bottom-color: rgba(0, 230, 118, 0.15) !important;
}

/* Winner winning numbers tags */
.winning-number-tag {
    display: inline-block;
    background-color: var(--secondary-glow);
    border: 1px solid rgba(255, 214, 0, 0.3);
    color: var(--secondary);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.font-closed {
    background-color: rgba(255,255,255,0.03);
    border-color: var(--border-color);
    color: var(--text-muted);
    box-shadow: none;
}

/* Status Badges */
.status-badge-pending, .status-badge-validated {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge-pending {
    background-color: rgba(0, 176, 255, 0.12);
    color: #00b0ff;
    border: 1px solid rgba(0, 176, 255, 0.25);
    animation: flash 2s infinite;
}

.status-badge-validated {
    background-color: rgba(0, 230, 118, 0.12);
    color: var(--primary);
    border: 1px solid rgba(0, 230, 118, 0.25);
}

/* Checker modal detailed rows */
.checker-details-container {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 15px 20px;
    margin-bottom: 25px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checker-status-icon.success-icon-wrapper {
    color: var(--primary);
}

.checker-status-icon.info-icon-wrapper {
    color: #00b0ff;
    filter: drop-shadow(0 0 15px rgba(0, 176, 255, 0.25));
}

.checker-status-icon.error-icon-wrapper {
    color: var(--danger);
    filter: drop-shadow(0 0 15px rgba(255, 23, 68, 0.25));
}

/* --------------------------------------------------------------------------
   WINNERS STATS RIBBON (winners.html)
   -------------------------------------------------------------------------- */
.stats-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 10px;
    margin-bottom: 40px;
}

.stat-card {
    background-color: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 22px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.stat-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: rgba(0, 230, 118, 0.05);
    border: 1px solid rgba(0, 230, 118, 0.15);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 0 15px var(--primary-glow);
}

.stat-card:nth-child(2) .stat-icon {
    background-color: rgba(255, 214, 0, 0.05);
    border-color: rgba(255, 214, 0, 0.15);
    color: var(--gold);
    box-shadow: 0 0 15px var(--secondary-glow);
}

.stat-card:nth-child(3) .stat-icon {
    background-color: rgba(0, 176, 255, 0.05);
    border-color: rgba(0, 176, 255, 0.15);
    color: #00b0ff;
    box-shadow: 0 0 15px rgba(0, 176, 255, 0.2);
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Winner delivery button */
.btn-delivery {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 10px 15px;
    margin-top: 10px;
}

.btn-delivery:hover {
    background-color: var(--primary);
    color: var(--text-dark);
    border-color: var(--primary);
    box-shadow: 0 4px 15px var(--primary-glow);
}

/* --------------------------------------------------------------------------
   DELIVERY MODAL EVIDENCE STYLE
   -------------------------------------------------------------------------- */
.modal-delivery-card {
    max-width: 680px;
}

.delivery-modal-body {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 25px;
    padding-top: 10px !important;
}

.delivery-image-box {
    width: 100%;
    height: 320px;
    background-color: #0d0d10;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.delivery-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.delivery-testimony-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
}

.quote-large {
    font-size: 2rem;
    align-self: flex-start;
}

.delivery-quote-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-main);
    font-style: italic;
}

.delivery-winner-tag {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 5px;
}

.delivery-winner-tag strong {
    font-size: 1rem;
    color: var(--primary);
}

.delivery-winner-tag span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN ADAPTATIONS FOR RESULTS & WINNERS
   ========================================================================== */
@media (max-width: 900px) {
    .results-layout-wrapper {
        grid-template-columns: 1fr;
    }
    
    .delivery-modal-body {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .delivery-image-box {
        height: 240px;
    }
}

/* ==========================================================================
   CHECKOUT MULTI-STEP WIZARD (index.html & raffle.html modal)
   ========================================================================== */

/* Wizard Header info */
.wizard-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.wizard-header-title h3 {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--text-main);
    text-transform: uppercase;
}

.wizard-emoji {
    font-size: 1.25rem;
}

.wizard-step-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 12px;
}

.wizard-progress-bar {
    width: 100%;
    height: 4px;
    background-color: rgba(255,255,255,0.05);
    border-radius: 4px;
    overflow: hidden;
}

.wizard-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff 0%, #00b0ff 100%);
    width: 25%;
    border-radius: 4px;
    transition: width 0.4s ease;
}

/* Modal step visibility toggling */
.modal-step {
    display: none;
    flex-direction: column;
    gap: 20px;
}

.modal-step.active {
    display: flex;
}

/* Step 1: Quick badge fast tag */
.btn-fast-tag {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 12px;
    font-weight: 800;
    font-size: 0.95rem;
    border-radius: var(--border-radius-md);
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Giant Quantity selection block */
.quantity-selector-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 15px 20px;
}

.qty-value-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#ticket-qty-val {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.1;
}

.qty-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Grid of quick quantities */
.quick-qty-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.btn-quick-qty {
    background-color: rgba(255,255,255,0.015);
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 16px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
}

.btn-quick-qty:hover {
    background-color: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.2);
}

.btn-quick-qty strong {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
}

.btn-quick-qty span {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Active select counts */
.btn-quick-qty.active-qty {
    border-color: #007bff;
    background-color: rgba(0, 123, 255, 0.03);
}

/* 🔥 TOP highlight */
.btn-quick-qty.active-qty:nth-child(2) {
    border-color: #ff9100;
    background-color: rgba(255, 145, 0, 0.04);
}

.btn-quick-qty:nth-child(2) {
    border-color: rgba(255, 145, 0, 0.25);
    background-color: rgba(255, 145, 0, 0.015);
}

.qty-top-badge {
    position: absolute;
    top: -9px;
    background: linear-gradient(135deg, #ff9100 0%, #ff3d00 100%);
    color: #fff;
    font-size: 0.58rem !important;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.05em;
}

/* Monto Summary display panel */
.monto-summary-box {
    background-color: rgba(255,255,255,0.015);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 600;
}

.summary-row strong {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--text-main);
    font-weight: 700;
}

.border-top-dashed {
    border-top: 1.5px dashed var(--border-color);
    padding-top: 12px;
}

.text-gold {
    color: var(--gold) !important;
}

/* Step 2 Form Rows styling */
.step-intro-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.4;
    margin-bottom: 5px;
}

.form-grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-grid-row .form-group {
    margin-bottom: 0;
}

.form-group input {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 14px 15px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-group input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.25);
    background-color: rgba(255, 255, 255, 0.05);
}

.select-wrapper-group .input-wrapper::after {
    top: 50%;
    transform: translateY(-50%);
}

.select-wrapper-group .custom-select {
    padding-left: 15px;
}

/* Navigation rows */
.navigation-buttons-row {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 15px;
}

.btn-nav-back {
    background-color: rgba(255, 255, 255, 0.03);
    border-color: var(--border-color);
    color: var(--text-muted);
    width: 100%;
    padding: 14px;
}

.btn-nav-back:hover {
    color: var(--text-main);
    border-color: rgba(255,255,255,0.2);
}

.btn-nav-forward {
    width: 100%;
    padding: 14px;
}

/* Step 3A: Payment Grid */
.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.payment-method-card {
    background-color: rgba(255,255,255,0.015);
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 18px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.payment-method-card:hover {
    background-color: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.2);
}

.payment-logo-mock {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
}

.logo-r4 {
    background-color: rgba(0, 123, 255, 0.15);
    color: #007bff;
    border: 1.5px solid rgba(0, 123, 255, 0.3);
}

.logo-bdv {
    background-color: rgba(230, 23, 23, 0.15);
    color: #ff3d00;
    border: 1.5px solid rgba(230, 23, 23, 0.3);
}

.logo-binance {
    background-color: rgba(243, 186, 47, 0.15);
    color: #f3ba2f;
    border: 1.5px solid rgba(243, 186, 47, 0.3);
}

.payment-method-card strong {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-align: center;
}

.payment-method-card.active-method {
    border-color: #007bff;
    background-color: rgba(0, 123, 255, 0.03);
}

.order-summary-card {
    background-color: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-color);
    padding: 15px 20px;
    border-radius: var(--border-radius-md);
}

.order-summary-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Step 3B: Bank details & transfer reporting */
.quick-bank-switcher-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.7rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.quick-bank-switcher-bar span {
    font-weight: 700;
    color: var(--text-muted);
}

.switcher-buttons {
    display: flex;
    gap: 8px;
}

.btn-switcher-bank {
    background-color: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-muted);
    padding: 4px 10px;
    font-size: 0.65rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-switcher-bank.active-switcher {
    border-color: #007bff;
    color: #fff;
    background-color: rgba(0, 123, 255, 0.1);
}

.view-list-link {
    color: #007bff;
    font-weight: 700;
}

.view-list-link:hover {
    color: #00b0ff;
}

/* Total transferencia ribbon */
.transfer-totals-ribbon {
    background-color: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ribbon-text-left {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ribbon-text-left span {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.ribbon-text-left h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
}

.usd-equivalent-txt {
    font-size: 0.75rem !important;
    color: #00b0ff !important;
    font-weight: 700;
}

.tickets-pill {
    background-color: rgba(255, 214, 0, 0.1);
    border: 1.5px solid rgba(255, 214, 0, 0.25);
    color: var(--gold);
    padding: 5px 12px;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    font-size: 0.8rem;
}

/* Copy Account Details Grid Box */
.account-details-box {
    background-color: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.account-data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1.5px dashed var(--border-color);
    padding-bottom: 10px;
}

.account-data-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.data-label-val {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.data-label-val span {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.data-label-val strong {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--text-main);
    letter-spacing: 0.02em;
}

.btn-copy-data {
    background-color: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-copy-data:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255,255,255,0.3);
}

.btn-copy-data.copied {
    background-color: var(--primary);
    color: var(--text-dark);
    border-color: var(--primary);
}

.reference-group {
    margin-bottom: 0;
}

.btn-glowing-green {
    background-color: var(--primary);
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(0, 230, 118, 0.2);
}

.btn-glowing-green:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 6px 20px rgba(0, 230, 118, 0.45);
}

/* Success details ticket display */
.ticket-emission-display {
    padding: 15px !important;
}

.emitted-tickets-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.emitted-ticket-badge {
    background-color: rgba(255, 214, 0, 0.1);
    border: 1.5px solid rgba(255, 214, 0, 0.3);
    color: var(--gold);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    padding: 6px 16px;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.payment-order-summary {
    background-color: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.verification-help-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.4;
}

/* Responsive Wizard adjustments */
@media (max-width: 480px) {
    .quick-qty-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-grid-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .payment-methods-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .btn-nav-forward {
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   ADMINISTRATIVE DASHBOARD SELECTORS (admin.html)
   ========================================================================== */

.admin-stats-container {
    margin-bottom: 30px;
}

.admin-layout-wrapper {
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 30px;
    align-items: start;
}

.admin-form-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.admin-table-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.custom-textarea {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 12px 15px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.92rem;
    transition: var(--transition-smooth);
    resize: vertical;
}

.custom-textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.25);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Operation buttons in table */
.btn-xs {
    padding: 6px 12px;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-danger {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    color: #fff;
    border: 1px solid #c62828;
    box-shadow: 0 4px 10px rgba(211, 47, 47, 0.2);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #e53935 0%, #d32f2f 100%);
    box-shadow: 0 6px 15px rgba(211, 47, 47, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #0b0b0e;
    font-weight: 700;
    border: 1px solid #b45309;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.2);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 6px 15px rgba(245, 158, 11, 0.4);
    color: #000;
}

.admin-actions-cell {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Progress bar inside table cell */
.table-progress-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.65rem;
    color: var(--text-muted);
}

.table-progress-bar {
    width: 100%;
    height: 6px;
    background-color: rgba(255,255,255,0.05);
    border-radius: 10px;
    overflow: hidden;
}

.table-progress-fill {
    height: 100%;
    background-color: var(--primary);
    border-radius: 10px;
}

.danger-fill {
    background-color: #ff3d00 !important;
}

/* Responsive administrative tweaks */
@media (max-width: 1100px) {
    .admin-layout-wrapper {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   HOMEPAGE WINNERS CAROUSEL SELECTORS
   ========================================================================== */

.winners-carousel-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 10px;
}

/* Transform grid to flex-row track */
.carousel-track {
    display: flex !important;
    flex-direction: row !important;
    grid-template-columns: none !important;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 15px 5px !important;
    width: 100%;
}

/* Hide scrollbars */
.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-track {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Carousel Card flex bounds */
.carousel-track .draw-card {
    flex: 0 0 calc(33.333% - 16px);
    min-width: 290px;
    scroll-snap-align: start;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* Carousel Chevron Buttons styling */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(26, 26, 26, 0.7);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.carousel-btn:hover {
    background-color: rgba(0, 123, 255, 0.15);
    border-color: #007bff;
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.35);
}

.prev-btn {
    left: -20px;
}

.next-btn {
    right: -20px;
}

/* Carousel responsive card limits */
@media (max-width: 990px) {
    .carousel-track .draw-card {
        flex: 0 0 calc(50% - 12px);
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
    }
    
    .prev-btn {
        left: -10px;
    }
    
    .next-btn {
        right: -10px;
    }
}

@media (max-width: 650px) {
    .carousel-track .draw-card {
        flex: 0 0 100%;
    }
    
    /* Hide scroll buttons on small mobiles as touch drag swipe is native and easy */
    .carousel-btn {
        display: none;
    }
    
    .winners-carousel-wrapper {
        padding: 0;
    }
}




