* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #18181b;
    line-height: 1.5;
    scroll-behavior: smooth;
    overflow-x: hidden;
    overflow-y: scroll; /* Force scrollbar globally to prevent navbar shifting between pages */
    width: 100%;
    position: relative;
    touch-action: manipulation;
}

button, input, select, textarea {
    font-family: inherit;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========== UTILITIES & GLOBALS ========== */
.hidden {
    display: none !important;
}

.btn-finder {
    padding: 1rem 2.5rem;
    border-radius: 60px;
    font-size: 1.1rem;
    font-weight: 700;
}

.btn-finder, .btn-product, .btn-product-primary, .btn-modal-next, .btn-modal-submit, .btn-submit, .btn-send, .hero-primary-btn, .review-submit-btn {
    background: linear-gradient(135deg, #7c3aed, #2563eb) !important;
    background-size: 200% auto !important;
    color: white !important;
    border: none !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.25) !important;
}

.btn-finder:hover, .btn-product:hover, .btn-product-primary:hover, .btn-modal-next:hover, .btn-modal-submit:hover, .btn-submit:hover, .btn-send:hover, .hero-primary-btn:hover, .review-submit-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4) !important;
    background-position: right center !important;
}

.custom-notify {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #18181b;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.custom-notify.show {
    opacity: 1;
    transform: translateY(0);
}

.faq-hidden {
    display: none !important;
}

/* ========== HEADER & NAVIGATION ========== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(228, 228, 231, 0.6);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #18181b;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.menu-toggle {
    display: none;
}

.nav-link {
    color: #52525b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: #18181b;
}

.nav-cta {
    background: #18181b;
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-cta:hover {
    background: #3f3f46;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* ========== USER MENU & AUTH ========== */
.user-menu {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.user-name-header {
    margin-left: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #18181b;
    display: none;
}

@media (min-width: 768px) {
    .user-name-header {
        display: inline;
    }
}

.user-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background: white;
    border: 1px solid #e4e4e7;
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.user-menu.active .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 1rem;
    border-bottom: 1px solid #e4e4e7;
    background: #fafafa;
    border-radius: 1rem 1rem 0 0;
}

.dropdown-email {
    font-size: 0.75rem;
    color: #71717a;
    word-break: break-all;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #18181b;
    text-decoration: none;
    font-size: 0.85rem;
    transition: background 0.2s;
    cursor: pointer;
}

.dropdown-item:hover {
    background: #f4f4f5;
}

.dropdown-item.logout {
    color: #dc2626;
    border-top: 1px solid #e4e4e7;
}

.dropdown-divider {
    height: 1px;
    background: #e4e4e7;
    margin: 0.25rem 0;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logged-in-only {
    display: none;
}

body.logged-in .logged-in-only {
    display: flex;
}

body.logged-in .logged-out-only {
    display: none;
}

/* ========== SECTIONS GENERAL ========== */
section {
    padding: 5rem 0;
    border-bottom: 1px solid #e4e4e7;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #7c3aed;
    background: #ede9fe;
    padding: 0.2rem 1rem;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #18181b;
}

.section-sub {
    color: #52525b;
    margin-top: 0.75rem;
}

/* ========== CTA ========== */
.cta {
    text-align: center;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
}

.cta-limited {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f4f4f5;
    border: 1px solid #e4e4e7;
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    margin-bottom: 2rem;
}

.cta-number {
    font-size: 1.2rem;
    font-weight: 800;
    color: #dc2626;
    background: white;
    padding: 0.1rem 0.5rem;
    border-radius: 30px;
    animation: pulse 1s ease-in-out infinite;
}

.cta h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #18181b;
}

.cta p {
    font-size: 1.1rem;
    color: #52525b;
    margin-bottom: 2rem;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.cta-guarantee {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.cta-guarantee span {
    font-size: 0.85rem;
    color: #10b981;
}

/* ========== FOOTER ========== */
footer {
    padding: 3rem 0 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: #71717a;
    border-top: 1px solid #e4e4e7;
    background: #fafafa;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e4e4e7;
}

.footer-brand {
    flex: 1;
    min-width: 200px;
}

.footer-contact {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.footer-links {
    flex: 1;
    min-width: 200px;
    text-align: right;
}

.footer-brand h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #18181b;
    margin-bottom: 0.3rem;
}

.footer-brand p {
    font-size: 0.8rem;
    color: #71717a;
}

.footer-contact p {
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: #52525b;
}

.footer-contact a {
    color: #52525b;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact a:hover {
    color: #7c3aed;
}

.footer-links a {
    color: #52525b;
    text-decoration: none;
    margin: 0 0.3rem;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #7c3aed;
}

.footer-bottom {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-copyright {
    font-size: 0.75rem;
    color: #a1a1aa;
}

.bykine {
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
}

.code-bracket {
    color: #7c3aed;
    font-weight: 800;
    font-size: 0.9rem;
    font-family: monospace;
}

.bykine-link {
    color: #7c3aed !important;
    font-weight: 700;
}

.bykine-link:hover {
    color: #6d28d9 !important;
    text-decoration: underline;
}

.pulse-icon {
    display: inline-block;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse-icon {

    0%,
    100% {
        transform: scale(1);
    }

    10%,
    30% {
        transform: scale(1.1);
    }

    20%,
    40% {
        transform: scale(1);
    }
}

/* ========== CONFETTI & NOTIFICATION BADGE ========== */
#confettiCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1500;
    display: none;
}

.notification-badge {
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    margin-left: 6px;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.4);
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.notification-badge.hidden {
    display: none !important;
}

@keyframes popIn {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

/* ========== RESPONSIVE STYLES ========== */
@media (max-width: 1100px) {
    .pricing-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .pricing-products-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .nav {
        display: none;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .audience-grid {
        grid-template-columns: 1fr;
    }

    .pricing-products-grid {
        grid-template-columns: 1fr;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .steps-connector {
        flex-direction: column;
    }

    .step-line {
        display: none;
    }

    .route-timeline {
        padding-left: 1rem;
    }

    .modal-container {
        width: 95%;
    }

    .services-hero h1 {
        font-size: 2rem;
    }

    .services-hero-stats {
        gap: 1.5rem;
    }

    .decision-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .decision-btn {
        min-width: auto;
        padding: 1rem 1.5rem;
    }

    .decision-icon {
        font-size: 2rem;
    }

    .decision-header h2 {
        font-size: 1.8rem;
    }

    .packages-grid {
        grid-template-columns: 1fr;
    }

    .packages-grid.centered {
        grid-template-columns: 1fr;
    }

    .pricing-products-grid-3 {
        grid-template-columns: 1fr;
    }

    .subsection-title h3 {
        font-size: 1.2rem;
        display: block;
        margin-top: 0.5rem;
    }

    .subsection-icon {
        display: block;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .subsection-desc {
        margin-left: 0;
    }

    .explanation-box {
        flex-direction: column;
        text-align: center;
    }

    .back-button-designed {
        padding: 0.6rem 1.5rem;
        font-size: 0.85rem;
    }

    .swipe-text-container {
        min-height: 60px;
    }

    .nav-right {
        gap: 1rem;
    }

    .nav-cta {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }

    .menu-toggle {
        display: block !important;
        z-index: 101;
    }



    .nav {
        position: absolute;
        top: 100%;
        right: 0;
        width: 85vw; /* Almost full screen */
        height: 100vh; /* Full height */
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 3rem 2rem;
        border-radius: 0;
        box-shadow: -15px 0 30px rgba(0, 0, 0, 0.08); /* Stronger shadow on the left */
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        transform: translateX(120%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid rgba(255,255,255,0.5);
    }

    .nav.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .nav .nav-link {
        font-size: 1.4rem; /* Make mobile links larger and more prominent */
        padding: 0.8rem 0;
        text-align: left;
        border-bottom: 1px solid #f4f4f5;
        width: 100%;
        font-weight: 600;
    }

    .nav .nav-link:last-child {
        border-bottom: none;
    }

    .footer-grid {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-brand,
    .footer-contact,
    .footer-links {
        text-align: center;
    }

    .stats-grid,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .admin-table-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-table-header input {
        width: 100%;
    }

    .form-row {
        flex-direction: column;
        gap: 1rem;
    }

    .create-user-actions {
        justify-content: stretch;
    }

    .btn-create {
        width: 100%;
        justify-content: center;
    }

    th,
    td {
        padding: 0.75rem 1rem;
    }

    .admin-tab {
        font-size: 0.85rem;
    }

    .modal-container-modern {
        width: 95%;
        height: 85vh;
    }

    .modal-header-modern {
        padding: 1rem;
    }

    .faq-question {
        padding: 1rem;
    }

    .faq-question h4 {
        font-size: 0.9rem;
    }
}
