/* ============================================
   PUBLIC LAYOUT CSS - MoneyTruck
   ============================================ */

/* ---------- ROOT VARIABLES ---------- */
:root {
    --primary: #6C3CE1;
    --primary-dark: #5A2DBF;
    --primary-light: #8B6CF2;
    --secondary: #00D4FF;
    --accent: #FF6B6B;
    --success: #00E676;
    --warning: #FFC107;
    
    --gradient-main: linear-gradient(135deg, #6C3CE1 0%, #00D4FF 100%);
    --gradient-glow: linear-gradient(135deg, rgba(108, 60, 225, 0.3) 0%, rgba(0, 212, 255, 0.3) 100%);
    
    --dark-bg: #0A0A1A;
    --dark-card: rgba(255, 255, 255, 0.05);
    --dark-border: rgba(255, 255, 255, 0.08);
    
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);
    
    --shadow-glow: 0 0 40px rgba(108, 60, 225, 0.15);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- RESET & BASE ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- ANIMATED BACKGROUND ---------- */
.bg-animated {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--dark-bg);
    overflow: hidden;
}

.bg-animated .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: floatOrb 20s infinite ease-in-out;
}

.bg-animated .orb:nth-child(1) {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.bg-animated .orb:nth-child(2) {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: -50px;
    left: -50px;
    animation-delay: -5s;
}

.bg-animated .orb:nth-child(3) {
    width: 200px;
    height: 200px;
    background: var(--accent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -50px) scale(1.1); }
    50% { transform: translate(-30px, 30px) scale(0.9); }
    75% { transform: translate(40px, 40px) scale(1.05); }
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar-custom {
    background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--dark-border);
    padding: 15px 0;
    transition: var(--transition);
    z-index: 1030;
}

.navbar-custom.scrolled {
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.navbar-custom .navbar-brand {
    font-weight: 900;
    font-size: 1.6rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.navbar-custom .navbar-brand i {
    -webkit-text-fill-color: initial;
    color: var(--secondary);
    margin-right: 8px;
}

.navbar-custom .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 20px !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

.navbar-custom .nav-link:hover {
    color: var(--text-primary) !important;
    background: rgba(255,255,255,0.05);
}

.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: var(--transition);
    transform: translateX(-50%);
    border-radius: 2px;
}

.navbar-custom .nav-link:hover::after {
    width: 60%;
}

.navbar-custom .nav-link.active {
    color: var(--text-primary) !important;
}

.navbar-custom .navbar-toggler {
    border-color: rgba(255,255,255,0.1);
}

.navbar-custom .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.7)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-glow {
    background: var(--gradient-main);
    color: #fff !important;
    border: none;
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    box-shadow: 0 0 30px rgba(108, 60, 225, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 50px rgba(108, 60, 225, 0.5);
    color: #fff !important;
    text-decoration: none;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.5s ease;
}

.btn-glow:hover::before {
    left: 100%;
}

.btn-outline-glow {
    background: transparent;
    color: var(--text-primary) !important;
    border: 2px solid rgba(255,255,255,0.15);
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.btn-outline-glow:hover {
    border-color: var(--primary);
    background: rgba(108, 60, 225, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(108, 60, 225, 0.15);
    color: var(--text-primary) !important;
    text-decoration: none;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    padding-top: 80px;
    min-height: calc(100vh - 300px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    padding: 60px 0 40px;
    position: relative;
}

.hero-section .hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-section .hero-title .highlight {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section .hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin-bottom: 30px;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 60px rgba(108, 60, 225, 0.2));
}

/* ============================================
   HERO STATS
   ============================================ */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--dark-border);
}

.hero-stats .stat-item {
    text-align: center;
}

.hero-stats .stat-item .number {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stats .stat-item .label {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-section {
    padding: 80px 0;
}

.feature-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(108, 60, 225, 0.3);
    box-shadow: var(--shadow-glow);
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-card h5 {
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-section {
    padding: 80px 0;
    background: rgba(255,255,255,0.02);
}

.step-card {
    text-align: center;
    padding: 20px;
}

.step-card .step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin: 0 auto 20px;
    box-shadow: 0 0 40px rgba(108, 60, 225, 0.3);
}

.step-card h5 {
    font-weight: 700;
    margin-bottom: 10px;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonial-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius);
    padding: 25px;
    transition: var(--transition);
    height: 100%;
}

.testimonial-card:hover {
    border-color: rgba(108, 60, 225, 0.2);
}

.testimonial-card .quote {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 15px;
}

.testimonial-card .author {
    font-weight: 600;
}

.testimonial-card .location {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 80px 0;
    background: var(--gradient-main);
    text-align: center;
    border-radius: var(--radius);
    margin: 40px 0;
}

.cta-section h2 {
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.cta-section p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 30px;
}

.cta-section .price {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: #fff;
}

.cta-section .price small {
    font-size: 1rem;
    opacity: 0.7;
    font-weight: 400;
}

/* ============================================
   FAQ
   ============================================ */
.faq-item {
    border-bottom: 1px solid var(--dark-border);
    padding: 15px 0;
    cursor: pointer;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item .question {
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item .question i {
    transition: var(--transition);
}

.faq-item .question i.open {
    transform: rotate(180deg);
}

.faq-item .answer {
    color: var(--text-secondary);
    padding-top: 10px;
    display: none;
    font-size: 0.95rem;
}

.faq-item .answer.show {
    display: block;
}

/* ============================================
   RECENT WINNERS
   ============================================ */
.winner-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    transition: var(--transition);
}

.winner-item:hover {
    background: rgba(255,255,255,0.06);
}

.winner-item .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    margin-right: 15px;
    flex-shrink: 0;
}

.winner-item .info {
    flex: 1;
}

.winner-item .info .name {
    font-weight: 600;
}

.winner-item .info .details {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.winner-item .amount {
    font-weight: 700;
    color: var(--success);
}

/* ============================================
   GLASS CARD
   ============================================ */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(108, 60, 225, 0.3);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.text-gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glow-text {
    text-shadow: 0 0 40px rgba(108, 60, 225, 0.3);
}

.section-title {
    font-weight: 800;
    font-size: 2.8rem;
    letter-spacing: -0.5px;
    margin-bottom: 15px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 600px;
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    border-radius: var(--radius-sm);
    border: none;
    padding: 14px 18px;
    font-size: 0.9rem;
}

.alert-danger {
    background: rgba(255, 107, 107, 0.15);
    color: #FF6B6B;
    border-left: 4px solid #FF6B6B;
}

.alert-success {
    background: rgba(0, 230, 118, 0.15);
    color: #00E676;
    border-left: 4px solid #00E676;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.15);
    color: #FFC107;
    border-left: 4px solid #FFC107;
}

/* ============================================
   FOOTER
   ============================================ */
.footer-custom {
    background: rgba(10, 10, 26, 0.9);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--dark-border);
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-custom h5 {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-custom .text-muted {
    color: var(--text-muted) !important;
}

.footer-custom a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-custom a:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.footer-custom .social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition);
    color: var(--text-secondary);
}

.footer-custom .social-links a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(108, 60, 225, 0.3);
}

.footer-custom .footer-bottom {
    border-top: 1px solid var(--dark-border);
    padding-top: 20px;
    margin-top: 30px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .navbar-custom .navbar-collapse {
        background: rgba(10, 10, 26, 0.95);
        padding: 20px;
        border-radius: var(--radius-sm);
        margin-top: 10px;
        border: 1px solid var(--dark-border);
    }
    
    .btn-glow,
    .btn-outline-glow {
        width: 100%;
        text-align: center;
        display: block;
    }
    
    .hero-section .hero-title {
        font-size: 2.8rem;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .cta-section .price {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .navbar-custom .navbar-brand {
        font-size: 1.3rem;
    }
    
    .footer-custom {
        padding: 40px 0 20px;
    }
    
    .hero-section .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .hero-stats .stat-item .number {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.6rem;
    }
    
    .glass-card {
        padding: 20px !important;
    }
    
    .hero-section .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .hero-stats .stat-item .number {
        font-size: 1.2rem;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .cta-section {
        padding: 40px 20px;
    }
    
    .cta-section h2 {
        font-size: 1.5rem;
    }
    
    .cta-section .price {
        font-size: 2rem;
    }
    
    .footer-custom {
        padding: 30px 0 15px;
    }
}