/* =========================================
   APLUS ADVANCE - LANDING PAGE CSS
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #4f46e5;
    --secondary: #818cf8;
    --dark-bg: #0f172a;
    --light-bg: #f1f5f9;
    --text-main: #334155;
    --text-muted: #64748b;
    --card-bg: #ffffff;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-main);
    margin: 0;
    padding: 0;
}

/* --- Hero Header Section --- */
.hero-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 50px 0 70px 0;
    text-align: center;
    border-radius: 0 0 40px 40px;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.2);
}

.offer-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    background: white;
    border-radius: 25px;
    padding: 10px;
    margin-bottom: 15px;
    border: 4px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.hero-title {
    font-weight: 800;
    font-size: 1.8rem;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.payout-badge {
    background: #fff;
    color: var(--primary);
    padding: 8px 25px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 1.3rem;
    display: inline-block;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* --- Main Card Layout --- */
.main-card {
    background: var(--card-bg);
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    margin-top: -50px;
    position: relative;
    z-index: 10;
    border: 1px solid #e2e8f0;
}

/* --- Direct Start Box --- */
.start-box {
    background: #f5f3ff;
    border: 2px dashed #c7d2fe;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.start-box:hover {
    border-color: var(--primary);
    background: #eef2ff;
}

/* --- Inputs --- */
.form-control-lg {
    font-size: 1.2rem;
    padding: 15px;
    border-radius: 12px;
}
.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(79, 70, 229, 0.25);
    border-color: var(--primary);
}

/* --- Buttons --- */
.btn-start {
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.2rem;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-start:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(79, 70, 229, 0.4);
    background: #4338ca;
}

.btn-start:disabled {
    background: #94a3b8;
    box-shadow: none;
    transform: none;
    cursor: not-allowed;
}

/* Premium Animated Buttons */
.btn-animated {
    position: relative;
    padding: 16px;
    border-radius: 50px;
    font-weight: 800;
    width: 100%;
    transition: all 0.3s ease;
    margin-top: 15px;
    text-transform: uppercase;
    display: block;
    text-align: center;
    text-decoration: none;
    letter-spacing: 1px;
}

.btn-tracker {
    background: var(--dark-bg);
    color: #38bdf8;
    border: 2px solid #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.btn-tracker:hover {
    background: #38bdf8;
    color: var(--dark-bg);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(56, 189, 248, 0.4);
}

.btn-refer {
    background: #ffffff;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-refer:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.2);
}

/* --- Timeline & Steps --- */
.timeline {
    border-left: 3px dashed var(--secondary);
    padding-left: 25px;
    margin: 20px 0 20px 10px;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -34px;
    top: 5px;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px #e0e7ff;
}

.steps-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    padding: 20px;
}

/* --- Range Slider for Custom Refer --- */
.custom-range {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 10px;
    background: #e2e8f0;
    outline: none;
    margin: 25px 0;
}

.custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: 4px solid white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s;
}

.custom-range::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

/* --- Status Badges --- */
.status-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
}
.status-Success { background: rgba(34, 197, 94, 0.2); color: #16a34a; }
.status-Pending { background: rgba(234, 179, 8, 0.2); color: #ca8a04; }
.status-Rejected { background: rgba(239, 68, 68, 0.2); color: #dc2626; }

/* --- Animations --- */
@keyframes pulse-effect {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}
.pulse-effect {
    animation: pulse-effect 2s infinite;
}

/* --- Modal Styling --- */
.modal-content.bg-dark {
    background-color: var(--dark-bg) !important;
    border: 1px solid #334155;
}
.modal-content.bg-dark .form-control {
    background-color: #1e293b;
    border: 1px solid #475569;
    color: white;
}
.modal-content.bg-dark .form-control:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 0.25rem rgba(56, 189, 248, 0.25);
}
