
:root {
    --primary: #e65100;
    --primary-dark: #bf360c;
    --accent: #ff8f00;
    --accent-light: #ffb74d;
    --dark: #1a1a2e;
    --dark2: #16213e;
    --gold: #ffd700;
    --green: #00c853;
    --danger: #ff1744;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; background: #f8f9fa; color: #333; overflow-x: hidden; }

/* Promo Bar */
.promo-bar {
    background: linear-gradient(90deg, var(--danger), #d50000, var(--danger));
    color: #fff;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 600;
    animation: shimmer 3s infinite;
    position: relative;
}
.promo-pulse {
    animation: pulse 1.5s infinite;
    display: inline-block;
}

/* Navbar */
.main-nav {
    background: linear-gradient(135deg, var(--dark), var(--dark2)) !important;
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 1000;
}
.brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.brand-text {
    font-family: 'Russo One', sans-serif;
    font-size: 1.2rem;
    color: #fff;
}
.main-nav .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    transition: all 0.3s;
}
.main-nav .nav-link:hover {
    color: var(--accent-light) !important;
    transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    padding: 8px 0;
    color: #fff;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Sweepstakes Carousel */
.sweep-carousel {
    background: #fff;
    padding: 20px 0;
}
.sweep-card {
    background: linear-gradient(135deg, #222, #333);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: transform 0.4s, box-shadow 0.4s;
    cursor: pointer;
    height: 280px;
}
.sweep-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.sweep-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}
.sweep-card-body {
    padding: 15px;
    color: #fff;
}
.sweep-card-body h5 {
    font-family: 'Russo One', sans-serif;
    font-size: 0.95rem;
    text-transform: uppercase;
}
.sweep-card-body .prize {
    color: var(--gold);
    font-weight: 700;
    font-size: 1.1rem;
}
.btn-enter {
    background: var(--accent);
    color: #000;
    font-weight: 700;
    font-size: 12px;
    padding: 6px 16px;
    border: none;
    border-radius: 4px;
    text-transform: uppercase;
    transition: all 0.3s;
}
.btn-enter:hover {
    background: var(--gold);
    transform: scale(1.05);
}

/* Winner Ticker */
.winner-ticker {
    background: #fff;
    border-top: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
}
.ticker-track {
    display: inline-block;
    animation: ticker 25s linear infinite;
}
.ticker-item {
    display: inline-block;
    padding: 0 30px;
    font-size: 13px;
    font-weight: 500;
}
.ticker-item .winner-name { color: var(--primary); font-weight: 700; }
.ticker-item .winner-prize { color: var(--green); font-weight: 700; }

/* Membership Plans */
.membership-section {
    background: #f5f5f5;
    padding: 60px 0;
}
.plan-toggle .btn {
    padding: 8px 24px;
    font-weight: 600;
    border-radius: 20px;
}
.plan-toggle .btn-dark { background: var(--dark); }
.plan-card {
    background: #fff;
    border-radius: 16px;
    border: 2px solid #e0e0e0;
    padding: 30px 25px;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}
.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
    border-color: var(--primary);
}
.plan-card.recommended {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(230,81,0,0.2);
}
.plan-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: 4px 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 0 0 8px 8px;
}
.plan-badge.best-value {
    background: var(--green);
}
.plan-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
}
.plan-price small {
    font-size: 0.9rem;
    font-weight: 400;
    color: #999;
}
.plan-entries {
    font-family: 'Russo One', sans-serif;
    font-size: 2.2rem;
    color: var(--dark);
    line-height: 1;
}
.plan-entries small {
    font-size: 0.7rem;
    display: block;
    color: #999;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.plan-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}
.plan-features li {
    padding: 6px 0;
    font-size: 13px;
    color: #555;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.plan-features li i { color: var(--green); margin-top: 3px; flex-shrink: 0; }
.btn-plan {
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    width: 100%;
    transition: all 0.3s;
    text-transform: uppercase;
    font-size: 14px;
}
.btn-plan:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230,81,0,0.4);
}

/* Products Grid */
.products-section { padding: 60px 0; }
.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: all 0.4s;
    height: 100%;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}
.product-img-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}
.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.product-card:hover .product-img-wrap img {
    transform: scale(1.1);
}
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: #fff;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
}
.product-entries-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--green);
    color: #fff;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
}
.sale-tag {
    position: absolute;
    top: 10px;
    right: 60px;
    background: var(--danger);
    color: #fff;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
}
.product-body {
    padding: 15px;
}
.product-body h6 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    min-height: 40px;
}
.product-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dark);
}
.product-old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
    margin-left: 5px;
}
.btn-view {
    background: var(--accent);
    color: #000;
    font-weight: 700;
    font-size: 13px;
    padding: 8px;
    border: none;
    border-radius: 6px;
    width: 100%;
    text-transform: uppercase;
    transition: all 0.3s;
    margin-top: 10px;
}
.btn-view:hover {
    background: var(--primary);
    color: #fff;
}

/* Dashboard */
.profile-nav {
    display: flex;
    flex-direction: column;
}
.pnav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.25s;
    border-left: 3px solid transparent;
}
.pnav-item:hover {
    background: #f5f5f5;
    color: #e65100;
    border-left-color: #e65100;
}
.pnav-item.active {
    background: #fff3e0;
    color: #e65100;
    font-weight: 600;
    border-left-color: #e65100;
}
.pnav-item i {
    font-size: 1.15rem;
    width: 22px;
    text-align: center;
    opacity: 0.7;
}
.pnav-item:hover i,
.pnav-item.active i {
    opacity: 1;
}
.dash-sidebar {
    background: linear-gradient(180deg, var(--dark), var(--dark2));
    min-height: 100vh;
    padding: 20px;
    color: #fff;
}
.dash-sidebar .nav-link {
    color: rgba(255,255,255,0.7);
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
    margin-bottom: 4px;
}
.dash-sidebar .nav-link:hover, .dash-sidebar .nav-link.active {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.dash-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: all 0.3s;
    border: 1px solid #eee;
}
.dash-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.dash-card .card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

/* Payment Page */
.payment-method-card {
    background: #fff;
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
}
.payment-method-card:hover, .payment-method-card.selected {
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(230,81,0,0.15);
}
.payment-method-card.selected {
    background: #fff8e1;
}

/* Tickets */
.ticket-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eee;
    padding: 15px 20px;
    margin-bottom: 10px;
    transition: all 0.3s;
}
.ticket-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.ticket-status {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}
.status-open { background: #e3f2fd; color: #1565c0; }
.status-in_progress { background: #fff3e0; color: #e65100; }
.status-closed { background: #e8f5e9; color: #2e7d32; }

/* Admin Panel */
.admin-sidebar {
    background: linear-gradient(180deg, #0d1117, #161b22);
    min-height: 100vh;
    width: 260px;
    position: fixed;
    left: 0;
    top: 0;
    padding: 20px;
    color: #fff;
    z-index: 100;
    overflow-y: auto;
}
.admin-content {
    margin-left: 260px;
    padding: 20px;
    min-height: 100vh;
    background: #f0f2f5;
}
.admin-stat-card {
    border-radius: 12px;
    padding: 20px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.admin-stat-card::after {
    content: '';
    position: absolute;
    right: -20px;
    top: -20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, var(--dark), var(--dark2));
    padding: 50px 0 0;
}
.footer-stats .stat-value {
    font-family: 'Russo One', sans-serif;
    font-size: 1.5rem;
    color: var(--gold);
}
.footer-stats .stat-label {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
}
.footer-links li a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}
.footer-links li a:hover { color: var(--accent-light); }

/* Animations */
@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}
.animate-fadeInUp { animation: fadeInUp 0.6s ease-out both; }
.animate-fadeIn { animation: fadeIn 0.8s ease-out both; }
.animate-slideInRight { animation: slideInRight 0.5s ease-out both; }
.animate-bounceIn { animation: bounceIn 0.8s both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* Scroll animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease-out;
}
.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Tip bar */
.tip-bar {
    background: #fff3e0;
    border: 1px solid #ffe0b2;
    border-radius: 30px;
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}
.tip-bar i { color: var(--primary); }

/* Trust badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 13px;
    color: #666;
}
.trust-badges span { display: flex; align-items: center; gap: 5px; }

/* Auth page */
.auth-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--dark), var(--dark2));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.auth-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 25px 80px rgba(0,0,0,0.4);
}
.auth-header {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    padding: 30px;
    text-align: center;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-sidebar { width: 100%; position: relative; min-height: auto; }
    .admin-content { margin-left: 0; }
    .sweep-card { height: auto; }
    .plan-card { margin-bottom: 20px; }
}

/* Fix mobile navbar collapse background & spacing */
@media (max-width: 991px) {
    .main-nav .navbar-collapse {
        background: #0d1117;
        border-radius: 12px;
        padding: 15px;
        margin-top: 10px;
        box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    }
    .main-nav .navbar-collapse .navbar-nav {
        margin-bottom: 10px;
    }
    .main-nav .navbar-collapse .d-flex {
        flex-wrap: wrap;
        gap: 8px !important;
    }
}

/* Mobile Quick Admin Button (user-facing pages) */
.mobile-admin-quick-btn {
    position: fixed;
    bottom: 20px;
    right: 16px;
    z-index: 1050;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e65100, #ff8f00);
    color: #fff;
    border: none;
    font-size: 1.3rem;
    box-shadow: 0 4px 20px rgba(230,81,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s;
}
.mobile-admin-quick-btn:hover, .mobile-admin-quick-btn:active {
    transform: scale(1.1);
    color: #fff;
}
