/* FixIT Hotspot - Complete Styling */

/* ===== VARIABLES ===== */
:root {
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --secondary: #764ba2;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --light: #f8fafc;
    --dark: #1e293b;
    --gray: #64748b;
    --gray-light: #e2e8f0;
    --radius: 0.75rem;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* ===== BASE STYLES ===== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* ===== TYPOGRAPHY ===== */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><circle cx="500" cy="500" r="400" fill="white" fill-opacity="0.03"/></svg>');
    background-size: 1000px;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* ===== PLANS SECTION ===== */
.plans-section {
    position: relative;
}

.plan-card {
    border: 2px solid transparent;
    transition: all 0.3s ease;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}

.plan-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.plan-card.popular {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.plan-card.popular .popular-badge {
    position: absolute;
    top: 20px;
    right: -40px;
    background: var(--primary);
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.plan-price {
    margin: 1.5rem 0;
    color: var(--primary);
}

.price-currency {
    font-size: 1.5rem;
    vertical-align: super;
    font-weight: 600;
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
}

.price-period {
    font-size: 1rem;
    color: var(--gray);
}

.plan-features .feature-item {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
}

/* ===== HOW IT WORKS ===== */
.step-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    height: 100%;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto;
}

.step-icon {
    color: var(--primary);
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    height: 100%;
}

.rating {
    color: var(--warning);
    font-size: 1.2rem;
}

.avatar {
    color: var(--gray);
}

/* ===== MODALS ===== */
.modal-content {
    border-radius: var(--radius);
    border: none;
}

.modal-header.bg-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius) var(--radius) 0 0;
}

.modal-header.bg-gradient-success {
    background: linear-gradient(135deg, var(--success) 0%, #34d399 100%);
    border-radius: var(--radius) var(--radius) 0 0;
}

.success-icon {
    animation: bounceIn 1s;
}

@keyframes bounceIn {
    0%, 20%, 40%, 60%, 80%, 100% {
        animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    }
    0% {
        opacity: 0;
        transform: scale3d(0.3, 0.3, 0.3);
    }
    20% {
        transform: scale3d(1.1, 1.1, 1.1);
    }
    40% {
        transform: scale3d(0.9, 0.9, 0.9);
    }
    60% {
        opacity: 1;
        transform: scale3d(1.03, 1.03, 1.03);
    }
    80% {
        transform: scale3d(0.97, 0.97, 0.97);
    }
    100% {
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }
}

/* ===== VOUCHER CARD ===== */
.voucher-card {
    border: 2px dashed var(--primary);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.voucher-code code {
    font-family: 'Courier New', monospace;
    letter-spacing: 5px;
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    display: inline-block;
    border: 2px solid var(--gray-light);
}

/* ===== STEPS IN MODAL ===== */
.steps .step-number {
    width: 35px;
    height: 35px;
    font-size: 1rem;
    flex-shrink: 0;
}

/* ===== FORM STYLES ===== */
.form-control-lg {
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
}

.form-control-lg:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.input-group-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    font-weight: 600;
}

/* ===== BUTTONS ===== */
.btn {
    border-radius: var(--radius);
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #6b4b9a 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #34d399 100%);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #0da271 0%, #2bb184 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ===== ALERTS ===== */
.alert {
    border-radius: var(--radius);
    border: none;
    padding: 1.25rem;
}

.alert-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border-left: 4px solid var(--info);
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border-left: 4px solid var(--success);
}

.alert-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border-left: 4px solid var(--warning);
}

.alert-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border-left: 4px solid var(--danger);
}

/* ===== BADGES ===== */
.badge {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
}

.badge.bg-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.badge.bg-success {
    background: linear-gradient(135deg, var(--success) 0%, #34d399 100%);
}

/* ===== RECENT PURCHASES ===== */
.recent-voucher {
    background: white;
    border-radius: var(--radius);
    padding: 1.25rem;
    border: 1px solid var(--gray-light);
    transition: all 0.3s ease;
}

.recent-voucher:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.voucher-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
}

.status-active { background: var(--success); }
.status-used { background: var(--gray); }
.status-expired { background: var(--danger); }
.status-pending { background: var(--warning); }

/* ===== LOADING STATES ===== */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark);
    color: white;
    margin-top: auto;
}

.footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: white;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .price-amount {
        font-size: 2.5rem;
    }
    
    .voucher-code code {
        font-size: 1.5rem;
        letter-spacing: 3px;
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .price-amount {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* ===== UTILITY CLASSES ===== */
.bg-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, var(--success) 0%, #34d399 100%);
}

.rounded-xl {
    border-radius: var(--radius);
}

.shadow-xl {
    box-shadow: var(--shadow-lg);
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
    z-index: 9999;
}

.toast {
    border-radius: var(--radius);
    border: none;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #6b4b9a 100%);
}