* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: #fafcff;
    color: #0a0c10;
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #eef2ff;
}

::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 10px;
}

/* Top Bar */
.top-bar {
    background: #0f172a;
    color: #e2e8f0;
    font-size: 0.8rem;
    padding: 10px 6%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.top-bar span i {
    margin-right: 8px;
    color: #60a5fa;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 6%;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    flex-wrap: wrap;
    gap: 20px;
    position: sticky;
    top: 0;
    z-index: 99;
}

.logo h1 {
    font-size: 1.9rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0f2b4d, #2563eb);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo p {
    font-size: 0.7rem;
    font-weight: 500;
    color: #475569;
}

.nav-links a {
    margin: 0 18px;
    text-decoration: none;
    font-weight: 600;
    color: #1e293b;
    transition: 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #2563eb;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.cart-icon {
    position: relative;
    font-size: 1.7rem;
    cursor: pointer;
    background: #f1f5f9;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #dc2626;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    border-radius: 30px;
    padding: 3px 7px;
    min-width: 22px;
    text-align: center;
}

/* Profile Dropdown */
.profile-container {
    position: relative;
}

.user-icon {
    background: #f1f5f9;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.3rem;
    color: #1e293b;
}

.profile-dropdown {
    position: absolute;
    top: 55px;
    right: 0;
    width: 320px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.15);
    z-index: 1002;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: 0.2s ease;
    border: 1px solid #eef2ff;
}

.profile-dropdown.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-header {
    padding: 20px;
    border-bottom: 1px solid #eef2ff;
    background: #f8fafc;
    border-radius: 20px 20px 0 0;
}

.dropdown-item {
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
}

.dropdown-item:hover {
    background: #f8fafc;
}

.dropdown-item i {
    width: 24px;
    color: #2563eb;
}

.dropdown-item span {
    flex: 1;
    font-weight: 500;
}

.badge {
    background: #eef2ff;
    padding: 2px 8px;
    border-radius: 30px;
    font-size: 0.7rem;
}

.logout-item {
    color: #dc2626;
}

/* Hero */
.hero {
    background: linear-gradient(110deg, #f8fafd 0%, #ffffff 100%);
    padding: 60px 6%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    max-width: 560px;
}

.hero-text h2 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(to right, #0f2b4d, #2563eb);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-text p {
    color: #334155;
    margin-bottom: 32px;
    font-size: 1.05rem;
}

.btn-primary {
    background: #2563eb;
    border: none;
    padding: 14px 34px;
    border-radius: 44px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: 0.25s;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-3px);
}

.hero-badge {
    background: #eef2ff;
    padding: 6px 18px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
    color: #1e40af;
}

/* Platform Services */
.platform-showcase {
    background: #ffffff;
    margin: 10px 6% 30px;
    border-radius: 36px;
    padding: 36px 28px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.04);
    border: 1px solid #eef2ff;
}

.platform-showcase h3 {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.platform-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    justify-content: space-between;
}

.platform-card {
    flex: 1;
    min-width: 180px;
    background: #f8fafc;
    padding: 24px 16px;
    border-radius: 28px;
    text-align: center;
}

.platform-card i {
    font-size: 2.2rem;
    color: #2563eb;
    margin-bottom: 12px;
}

.platform-card h4 {
    font-weight: 800;
    margin-bottom: 8px;
}

.platform-note {
    margin-top: 20px;
    color: #2c3e66;
    font-weight: 500;
}

.platform-note i {
    color: #2563eb;
    margin-right: 6px;
}

/* Business Card */
.business-card {
    background: white;
    border-radius: 32px;
    margin: 20px 6% 40px;
    padding: 28px 36px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.04);
    border: 1px solid #e6edf5;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 24px;
}

.info-block h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #4b5565;
    margin-bottom: 8px;
}

.info-block p {
    font-weight: 700;
    color: #0f172a;
}

.badge-pdf {
    background: #eef2ff;
    padding: 8px 16px;
    border-radius: 60px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1e40af;
}

/* Products */
.products-section {
    padding: 40px 6% 70px;
    background: white;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
}

.section-title:after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: #2563eb;
    border-radius: 6px;
    margin-top: 8px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

.product-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 24px 20px;
    text-align: center;
    border: 1px solid #eef2ff;
    transition: 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 32px -12px rgba(0, 0, 0, 0.12);
}

.product-img {
    background: #eff6ff;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 60px;
    margin: 0 auto 20px;
}

.product-img i {
    font-size: 3.2rem;
    color: #2563eb;
}

.product-title {
    font-weight: 800;
    font-size: 1.25rem;
    margin: 12px 0 6px;
}

.product-desc {
    color: #5b6e8c;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.product-price {
    color: #2563eb;
    font-weight: 800;
    font-size: 1.5rem;
    margin: 10px 0;
}

.add-to-cart {
    background: #0f172a;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 44px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-to-cart:hover {
    background: #2563eb;
}

/* Cart Sidebar */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: 0.2s;
}

.cart-overlay.open {
    visibility: visible;
    opacity: 1;
}

.cart-sidebar {
    position: fixed;
    right: -480px;
    top: 0;
    width: 440px;
    max-width: 90%;
    height: 100%;
    background: white;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    transition: 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    display: flex;
    flex-direction: column;
    padding: 28px;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    font-weight: 800;
    border-bottom: 2px solid #eef2ff;
    padding-bottom: 18px;
}

.cart-items-list {
    flex: 1;
    overflow-y: auto;
    margin: 20px 0;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 12px 0;
    padding: 12px 0;
    border-bottom: 1px solid #f0f4fa;
}

.cart-total {
    font-weight: 800;
    font-size: 1.4rem;
    border-top: 2px solid #e2e8f0;
    padding-top: 18px;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: 0.2s;
}

.modal.open {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 550px;
    border-radius: 32px;
    padding: 32px;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-content h3 {
    font-size: 1.6rem;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 6px;
    color: #334155;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    font-size: 0.95rem;
    outline: none;
}

.form-group input:focus {
    border-color: #2563eb;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.payment-btn {
    padding: 14px;
    border-radius: 44px;
    font-weight: 600;
    cursor: pointer;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.payment-btn.cod {
    background: #2563eb;
    color: white;
    border: none;
}

.address-item,
.order-item {
    background: #f8fafc;
    padding: 12px;
    border-radius: 16px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.download-btn {
    background: #10b981;
    color: white;
    padding: 14px 24px;
    border-radius: 44px;
    border: none;
    font-weight: 700;
    margin-top: 20px;
    cursor: pointer;
}

/* Chatbot */
.chatbot-container {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 1100;
}

.chat-toggle {
    background: linear-gradient(145deg, #2563eb, #1e3a8a);
    width: 64px;
    height: 64px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    color: white;
    font-size: 2rem;
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 360px;
    height: 500px;
    background: white;
    border-radius: 32px;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transform: scale(0.9);
    transform-origin: bottom right;
    transition: 0.2s ease;
}

.chat-window.open-chat {
    visibility: visible;
    opacity: 1;
    transform: scale(1);
}

.chat-header {
    background: #0f172a;
    color: white;
    padding: 16px 20px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
}

.chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f9fafb;
}

.bot-msg,
.user-msg {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 22px;
    font-size: 0.85rem;
}

.bot-msg {
    background: #eef2ff;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.user-msg {
    background: #2563eb;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.chat-input-area {
    display: flex;
    border-top: 1px solid #e2e8f0;
    padding: 12px;
    background: white;
    gap: 8px;
}

.chat-input-area input {
    flex: 1;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 44px;
    outline: none;
}

.chat-input-area button {
    background: #2563eb;
    border: none;
    border-radius: 44px;
    padding: 0 18px;
    color: white;
    cursor: pointer;
}

footer {
    background: #0f172a;
    color: #a0afc3;
    text-align: center;
    padding: 32px;
    font-size: 0.85rem;
    margin-top: 40px;
}

@media (max-width: 700px) {
    .hero-text h2 {
        font-size: 2.2rem;
    }

    .business-card,
    .platform-grid {
        flex-direction: column;
    }

    .navbar {
        flex-direction: column;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .profile-dropdown {
        width: 280px;
        right: -20px;
    }
}