/* ============================================================
   MyFrends ISP — Frontend Landing Page UI Override
   Modern, professional ISP billing landing page
   ============================================================ */

/* --- Design Tokens --- */
:root {
    --fe-bg: #f8fafc;
    --fe-surface: #ffffff;
    --fe-border: #e2e8f0;
    --fe-text: #0f172a;
    --fe-text-secondary: #475569;
    --fe-text-muted: #94a3b8;
    --fe-radius: 12px;
    --fe-radius-sm: 8px;
    --fe-radius-lg: 20px;
    --fe-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --fe-shadow-md: 0 4px 12px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
    --fe-shadow-lg: 0 12px 32px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.04);
    --fe-transition: 0.2s ease;
}

/* --- Global --- */
body {
    font-family: "Inter", "Assistant", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--fe-bg);
    color: var(--fe-text);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--fe-text);
    font-weight: 700;
}

/* --- NAVBAR --- */
.nav-modern {
    background: #ffffff !important;
    box-shadow: 0 1px 0 var(--fe-border), 0 4px 16px rgba(0,0,0,0.04) !important;
    padding: 0.5rem 0;
    border-bottom: none;
}

.navbar-brand .logo {
    max-height: 40px;
    width: auto;
}

.navbar-brand .brand-text {
    color: var(--fe-text) !important;
    font-weight: 800;
    font-size: 1.1rem;
}

.nav-modern .nav-link {
    color: var(--fe-text-secondary) !important;
    font-weight: 600 !important;
    font-size: 0.88rem;
    padding: 0.5rem 0.85rem !important;
    border-radius: var(--fe-radius-sm);
    transition: background var(--fe-transition), color var(--fe-transition);
}

.nav-modern .nav-link:hover {
    background: rgba(0,0,0,0.04) !important;
    color: var(--fe-text) !important;
    transform: none !important;
}

.nav-modern .nav-link.active {
    color: var(--primary) !important;
    background: rgba(0,0,0,0.03);
}

.nav-modern .nav-link.active::after,
.nav-modern .nav-link:hover::after {
    display: none !important;
}

.navbar-toggler {
    border-color: var(--fe-border) !important;
    padding: 0.4rem 0.6rem;
}

.navbar-dark .navbar-toggler-icon,
.navbar-light .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='%23475569' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    opacity: 1;
}

/* Navbar buttons */
.btn-login {
    background: var(--fe-surface) !important;
    color: var(--fe-text) !important;
    border: 1px solid var(--fe-border) !important;
    border-radius: var(--fe-radius-sm) !important;
    padding: 0.45rem 1.1rem !important;
    font-weight: 700 !important;
    font-size: 0.85rem;
    box-shadow: none !important;
    transition: background var(--fe-transition), border-color var(--fe-transition);
}

.btn-login:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    transform: none !important;
    filter: none !important;
}

.btn-register-nav,
.btn-register-desktop,
.btn-register-mobile {
    background: var(--primary) !important;
    border: 1px solid var(--primary) !important;
    border-radius: var(--fe-radius-sm) !important;
    padding: 0.45rem 1.1rem !important;
    font-weight: 700 !important;
    font-size: 0.85rem;
    box-shadow: none !important;
    transition: opacity var(--fe-transition), transform var(--fe-transition);
}

.btn-register-nav:hover,
.btn-register-desktop:hover,
.btn-register-mobile:hover {
    opacity: 0.9;
    transform: none !important;
    filter: none !important;
    color: #fff !important;
}

/* --- HERO SECTION --- */
.hero-section {
    padding: 3.5rem 0 2.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 50%, #f0f9ff 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(99, 102, 241, 0.08);
    color: #4f46e5;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 50rem;
    border: 1px solid rgba(99, 102, 241, 0.15);
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--fe-text);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--fe-text-secondary);
    line-height: 1.6;
    max-width: 480px;
    margin-bottom: 1.5rem;
}

.hero-cta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero-cta .btn {
    padding: 0.6rem 1.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: var(--fe-radius-sm);
}

.hero-cta .btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.hero-cta .btn-outline-primary {
    border-color: var(--fe-border);
    color: var(--fe-text-secondary);
}

.hero-cta .btn-outline-primary:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: var(--fe-text);
}

/* Hero carousel inside hero section */
.hero-carousel {
    margin: 0 !important;
    padding: 0 !important;
}

.hero-carousel .carousel-item img {
    border-radius: var(--fe-radius) !important;
    box-shadow: var(--fe-shadow-lg);
}

.hero-carousel .overlay-gradient {
    border-radius: var(--fe-radius) !important;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.5) 100%) !important;
}

.hero-carousel .carousel-caption h5 {
    font-size: 1.5rem;
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero-carousel .carousel-caption p {
    font-size: 0.95rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    transition: opacity var(--fe-transition);
    box-shadow: var(--fe-shadow);
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
    opacity: 1;
}

.hero-carousel .carousel-control-prev {
    left: 1rem;
}

.hero-carousel .carousel-control-next {
    right: 1rem;
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
    filter: invert(0.3);
    width: 18px;
    height: 18px;
}

.hero-carousel .carousel-indicators li {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0,0,0,0.2);
    border: none;
    margin: 0 4px;
    transition: width var(--fe-transition);
}

.hero-carousel .carousel-indicators li.active {
    background: var(--primary);
    width: 24px;
    border-radius: 4px;
}

/* --- BILL CHECK SECTION --- */
.bill-section {
    padding: 2rem 0;
}

.bill-card {
    border: 1px solid var(--fe-border) !important;
    border-radius: var(--fe-radius) !important;
    box-shadow: var(--fe-shadow-md) !important;
    overflow: hidden;
}

.bill-card .card-body {
    padding: 1.5rem;
}

.bill-card .card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--fe-text);
    margin-bottom: 0.5rem;
}

.bill-card .input-group {
    border-radius: var(--fe-radius-sm);
    overflow: hidden;
    border: 1px solid var(--fe-border);
}

.bill-card .input-group-text {
    background: #f8fafc;
    border: none !important;
    color: var(--fe-text-muted);
    padding: 0.6rem 0.85rem;
}

.bill-card .form-control {
    border: none !important;
    padding: 0.6rem 0.85rem;
    font-size: 0.9rem;
    box-shadow: none !important;
}

.bill-card .form-control:focus {
    box-shadow: none !important;
}

.bill-card .btn-primary {
    background: var(--primary);
    border: none;
    padding: 0.6rem 1.25rem;
    font-weight: 700;
    font-size: 0.85rem;
}

.bill-card .help-text {
    font-size: 0.8rem;
    color: var(--fe-text-muted);
    margin-top: 0.5rem;
}

/* Social card */
.social-card {
    border: 1px solid var(--fe-border) !important;
    border-radius: var(--fe-radius) !important;
    box-shadow: var(--fe-shadow) !important;
}

.social-card .card-body {
    padding: 1.25rem;
}

.social-card .card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--fe-text);
}

.social-ico img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    box-shadow: var(--fe-shadow);
    transition: transform var(--fe-transition), box-shadow var(--fe-transition);
}

.social-ico img:hover {
    transform: translateY(-2px);
    box-shadow: var(--fe-shadow-md);
}

/* --- FEATURES SECTION --- */
.features-section {
    padding: 3.5rem 0;
    background: var(--fe-surface);
}

.feature-card {
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: var(--fe-radius);
    transition: transform var(--fe-transition), box-shadow var(--fe-transition);
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--fe-shadow-md);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #fff;
}

.feature-icon.bg-blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.feature-icon.bg-green { background: linear-gradient(135deg, #10b981, #059669); }
.feature-icon.bg-purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.feature-icon.bg-orange { background: linear-gradient(135deg, #f59e0b, #d97706); }

.feature-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--fe-text);
    margin-bottom: 0.35rem;
}

.feature-text {
    font-size: 0.85rem;
    color: var(--fe-text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* --- SERVICES SECTION --- */
.services-modern {
    padding: 3.5rem 0;
}

.services-modern .section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--fe-text);
    margin-bottom: 0.25rem;
}

.services-modern .section-sub {
    color: var(--fe-text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.svc-card {
    border: 1px solid var(--fe-border) !important;
    border-radius: var(--fe-radius) !important;
    box-shadow: var(--fe-shadow) !important;
    transition: transform var(--fe-transition), box-shadow var(--fe-transition), border-color var(--fe-transition);
}

.svc-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--fe-shadow-lg) !important;
    border-color: rgba(99, 102, 241, 0.2) !important;
}

.svc-media {
    border-radius: var(--fe-radius) var(--fe-radius) 0 0;
}

.svc-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--fe-text);
}

.svc-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--fe-text);
}

.svc-btn.btn-primary {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    border-radius: var(--fe-radius-sm) !important;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: none !important;
    transition: opacity var(--fe-transition);
}

.svc-btn.btn-primary:hover {
    opacity: 0.9;
    transform: none !important;
    filter: none !important;
}

/* --- INFO MODAL --- */
.modal-modern .modal-content {
    border-radius: var(--fe-radius-lg) !important;
    border: 1px solid var(--fe-border) !important;
    box-shadow: 0 24px 48px rgba(0,0,0,0.15) !important;
}

.modal-modern .modal-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-600)) !important;
    padding: 1rem 1.25rem;
    border: none;
}

.modal-modern .modal-title {
    font-size: 1rem;
    font-weight: 700;
}

.modal-modern .modal-body {
    padding: 1.25rem;
    font-size: 0.92rem;
    color: var(--fe-text-secondary);
    line-height: 1.6;
}

.modal-modern .btn-modern {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    border-radius: var(--fe-radius-sm) !important;
    font-weight: 700;
    box-shadow: none !important;
}

.modal-modern .btn-modern-outline {
    border: 1px solid var(--fe-border);
    border-radius: var(--fe-radius-sm);
    color: var(--fe-text-secondary);
    font-weight: 600;
}

.modal-modern .btn-modern-outline:hover {
    background: #f1f5f9;
}

/* --- CTA SECTION --- */
.cta-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
    text-align: center;
}

.cta-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--fe-text);
    margin-bottom: 0.5rem;
}

.cta-text {
    color: var(--fe-text-secondary);
    margin-bottom: 1.5rem;
}

/* --- FOOTER --- */
.main-footer {
    background: var(--fe-text) !important;
    color: #94a3b8;
    padding: 2rem 0;
    box-shadow: none !important;
}

.main-footer .footer-brand {
    font-weight: 700;
    color: #f1f5f9;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.main-footer .footer-text {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.6;
}

.main-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-footer .footer-links li {
    margin-bottom: 0.35rem;
}

.main-footer .footer-links a {
    color: #94a3b8;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color var(--fe-transition);
}

.main-footer .footer-links a:hover {
    color: #f1f5f9;
}

.main-footer .footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 1.25rem;
    margin-top: 1.5rem;
}

.main-footer .footer-bottom p {
    font-size: 0.78rem;
    color: #475569;
    margin: 0;
}

/* --- SECTION UTILITIES --- */
.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--fe-text);
    margin-bottom: 0.35rem;
}

.section-header p {
    color: var(--fe-text-secondary);
    font-size: 0.95rem;
    max-width: 520px;
    margin: 0 auto;
}

/* --- EMPTY STATE --- */
.empty {
    border: 1px dashed var(--fe-border) !important;
    border-radius: var(--fe-radius) !important;
    padding: 2rem;
    color: var(--fe-text-muted);
    text-align: center;
    font-size: 0.9rem;
}

/* --- LOADING SPINNER --- */
.loading .spinner-border {
    width: 2rem;
    height: 2rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-subtitle {
        font-size: 0.95rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 2rem 0 1.5rem;
    }
    .hero-title {
        font-size: 1.5rem;
    }
    .hero-subtitle {
        font-size: 0.9rem;
    }
    .hero-carousel .carousel-item img {
        border-radius: 0 !important;
    }
    .hero-carousel .overlay-gradient {
        border-radius: 0 !important;
    }
    .hero-carousel .carousel-control-prev,
    .hero-carousel .carousel-control-next {
        width: 32px;
        height: 32px;
    }
    .hero-carousel .carousel-control-prev {
        left: 0.5rem;
    }
    .hero-carousel .carousel-control-next {
        right: 0.5rem;
    }
    .features-section,
    .services-modern {
        padding: 2.5rem 0;
    }
    .cta-section {
        padding: 2rem 0;
    }
}

@media (max-width: 575.98px) {
    .hero-carousel .carousel-caption {
        display: none !important;
    }
    .hero-cta .btn {
        width: 100%;
    }
}

/* --- AI Chat Widget --- */
.ai-chat-float-btn {
    width: 52px !important;
    height: 52px !important;
    background: var(--primary) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important;
    border-radius: 50% !important;
    transition: transform var(--fe-transition), box-shadow var(--fe-transition) !important;
}

.ai-chat-float-btn:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2) !important;
}

/* --- SweetAlert --- */
.swal2-popup {
    border-radius: var(--fe-radius-lg) !important;
    font-family: inherit !important;
}

/* --- Empty product state --- */
.services-modern .empty {
    background: #f8fafc;
    border: 1px dashed var(--fe-border);
    border-radius: var(--fe-radius);
    padding: 2.5rem;
    text-align: center;
}

.services-modern .empty i {
    font-size: 2rem;
    color: var(--fe-text-muted);
    margin-bottom: 0.5rem;
    display: block;
}
