:root {
    --primary: #155eef;
    --dark: #0d172a;
    --ink: #14213d;
    --muted: #667085;
    --soft: #f6f8fc;
    --line: #e7ebf3
}

* {
    box-sizing: border-box
}

body {
    font-family: Inter, sans-serif;
    color: var(--ink);
    line-height: 1.65
}

img {
    width: 100%
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
    font-family: Manrope, sans-serif
}

a {
    text-decoration: none
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.25rem
}

.navbar-brand strong,
.footer-brand strong {
    color: var(--primary)
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    background: var(--primary);
    color: white
}

.nav-link {
    font-weight: 600
}

/* =========================================
   PRODUCTS DROPDOWN - OPEN ON HOVER
========================================= */

@media (min-width: 992px) {

    /* Main dropdown */
    .navbar .dropdown:not(.profile-dropdown-container):hover>.dropdown-menu {
        display: block;
    }

    /* Nested dropdown */
    .dropdown-submenu {
        position: relative;
    }

    .dropdown-submenu:hover>.dropdown-menu {
        display: block;
    }

    /* Position nested menu */
    .dropdown-submenu>.dropdown-menu {
        top: 0;
        left: 100%;
        margin-top: -5px;
    }

    /* Keep main dropdown connected to parent */
    .navbar-nav>.dropdown>.dropdown-menu {
        margin-top: 0;
    }

    /* Smooth appearance */
    .dropdown-menu {
        animation: dropdownFade 0.2s ease-in-out;
    }

    @keyframes dropdownFade {
        from {
            opacity: 0;
            transform: translateY(8px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}


/* =========================================
   MOBILE NESTED DROPDOWN
========================================= */

@media (max-width: 991.98px) {

    .dropdown-submenu>.dropdown-menu {
        display: none;
        position: static;
        margin-left: 15px;
        box-shadow: none !important;
    }

    .dropdown-submenu.show>.dropdown-menu {
        display: block;
    }
}

.hero {
    padding: 90px 0 70px;
    background: radial-gradient(circle at 85% 20%, #dce9ff, #fff 60%)
}

.hero h1 {
    font-size: clamp(2.6rem, 5vw, 4.8rem);
    line-height: 1.03;
    letter-spacing: -.055em;
    font-weight: 800
}

.hero p {
    color: var(--muted);
    font-size: 1.08rem;
    max-width: 620px
}

.badge-soft {
    display: inline-flex;
    background: #e9f1ff;
    color: var(--primary);
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: .85rem
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
    font-size: .9rem;
    font-weight: 600;
    color: #475467
}

.trust-row i {
    color: #12b76a
}

.card-scene {
    position: relative;
    height: 420px
}

.id-card {
    width: 270px;
    aspect-ratio: 1.58/1;
    border-radius: 18px;
    position: absolute;
    padding: 20px;
    box-shadow: 0 25px 55px #0d172a33;
    overflow: hidden
}

.id-card.front {
    background: linear-gradient(135deg, #173b88, #155eef 60%, #54a0ff);
    color: white;
    right: 4%;
    top: 35px;
    transform: rotate(7deg)
}

.id-card.back {
    background: white;
    color: var(--ink);
    left: 4%;
    bottom: 20px;
    transform: rotate(-8deg)
}

.mini-logo {
    font-weight: 800
}

.photo {
    width: 68px;
    height: 84px;
    border-radius: 8px;
    background: linear-gradient(135deg, #d8dee9, #a9b5c8)
}

.lines span {
    display: block;
    height: 7px;
    border-radius: 5px;
    background: #ffffff8c;
    margin: 8px 0
}

.back .lines span {
    background: #dce2eb
}

.qr {
    width: 58px;
    height: 58px;
    background: repeating-linear-gradient(45deg, #111 0 4px, #fff 4px 8px);
    border: 6px solid white
}

.section {
    padding: 85px 0
}

.section-soft,
.page-hero {
    background: var(--soft)
}

.section-title {
    max-width: 700px;
    text-align: center;
    margin: 0 auto 45px
}

.section-title h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -.04em
}

.section-title p,
.category-card p,
.feature-card p,
.industry-card p {
    color: var(--muted)
}

.category-card,
.template-card,
.feature-card,
.step-card,
.testimonial {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: white;
    height: 100%;
    transition: .25s
}

.category-card:hover,
.template-card:hover,
.feature-card:hover,
.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px #10182817
}

.category-card,
.feature-card,
.step-card {
    padding: 25px
}

.category-icon,
.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    background: #edf3ff;
    color: var(--primary);
    display: grid;
    place-items: center;
    font-size: 1.35rem
}

.template-card {
    overflow: hidden
}

.template-preview {
    padding: 30px;
    background: #f3f6fb
}

.mini-card {
    width: 165px;
    height: 104px;
    margin: auto;
    border-radius: 9px;
    padding: 10px;
    color: white;
    background: linear-gradient(135deg, #173b88, #155eef)
}

.mini-card.green {
    background: linear-gradient(135deg, #087443, #19a974)
}

.mini-card.dark {
    background: linear-gradient(135deg, #111827, #344054)
}

.mini-card.pink {
    background: linear-gradient(135deg, #8e2457, #e64d8c)
}

.mini-card.orange {
    background: linear-gradient(135deg, #9a3412, #f97316)
}

.mini-card.purple {
    background: linear-gradient(135deg, #4c1d95, #8b5cf6)
}

.template-body {
    padding: 20px
}

.template-body h5 {
    font-weight: 800
}

.price {
    color: var(--primary);
    font-weight: 800
}

.custom-cta {
    background: linear-gradient(120deg, #0d172a, #173b88);
    color: white;
    border-radius: 28px;
    padding: 60px
}

.custom-cta p {
    color: #c8d2e5
}

.step-no {
    font-size: 2.3rem;
    font-weight: 800;
    color: #d9e5ff
}

.dark-section {
    background: #0d172a;
    color: white
}

.dark-section p {
    color: #c8d2e5
}

.testimonial {
    padding: 25px
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #dbe7ff;
    color: var(--primary);
    display: grid;
    place-items: center;
    font-weight: 800
}

.site-footer {
    background: #0a1020;
    color: white
}

.site-footer h6 {
    font-weight: 800
}

.site-footer a {
    display: block;
    color: #b9c4d8;
    margin: 8px 0
}

.footer-brand {
    font-family: Manrope;
    font-weight: 800;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 9px
}

.page-hero {
    padding: 70px 0
}

.editor-shell {
    background: #f5f7fa;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 18px
}

.toolbar,
.settings-panel {
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px
}

.tool-btn {
    width: 100%;
    border: 0;
    background: #f7f9fc;
    padding: 11px;
    border-radius: 10px;
    text-align: left;
    margin-bottom: 7px;
    font-weight: 600;
    color: #475467
}

.tool-btn:hover,
.tool-btn.active {
    background: #eaf1ff;
    color: var(--primary)
}

.active {
    color: var(--primary) !important
}

.activeDropdown {
    color: white !important;
    background: var(--primary) !important
}

;

.canvas {
    min-height: 580px;
    background: #e9edf3;
    border-radius: 16px;
    display: grid;
    place-items: center
}

.designer-card {
    width: 330px;
    aspect-ratio: 1.58/1;
    border-radius: 18px;
    background: linear-gradient(135deg, #173b88, #155eef);
    color: white;
    padding: 24px;
    box-shadow: 0 25px 50px #0d172a33
}

.form-control,
.form-select {
    padding: .75rem 1rem;
    border-radius: 12px
}

.filter-bar {
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px
}

.faq .accordion-button {
    font-weight: 700
}

.faq .accordion-button:not(.collapsed) {
    background: #eef4ff;
    color: var(--primary)
}

@media(max-width:991px) {
    .hero {
        padding-top: 60px
    }

    .card-scene {
        margin-top: 30px
    }

    .custom-cta {
        padding: 40px 25px
    }

    .canvas {
        min-height: 430px
    }
}

@media(max-width:575px) {
    .section {
        padding: 60px 0
    }

    .hero {
        padding: 55px 0
    }

    .card-scene {
        transform: scale(.85);
        margin-left: -20px
    }

    .designer-card {
        width: 260px
    }

    .custom-cta {
        border-radius: 20px
    }
}

/* =========================================
   LOGIN PAGE
========================================= */

.login-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 10% 10%,
            #dce9ff,
            transparent 35%),
        radial-gradient(circle at 90% 90%,
            #e9f1ff,
            transparent 35%),
        #f6f8fc;
}

.login-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 70px #0d172a18;
}

.login-brand-mark {
    width: 58px;
    height: 58px;
    font-size: 1.5rem;
    border-radius: 17px;
}

.login-card h2 {
    font-weight: 800;
    letter-spacing: -0.03em;
}

.login-card .input-group-text {
    background: #ffffff;
    border-color: #d0d5dd;
    color: var(--muted);
}

.login-card .form-control {
    border-color: #d0d5dd;
}

.login-card .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px #155eef1a;
}

.login-card .input-group:focus-within .input-group-text {
    border-color: var(--primary);
    color: var(--primary);
}

.login-card .btn-outline-secondary {
    border-color: #d0d5dd;
}

.login-card .btn-outline-secondary:hover {
    background: #f6f8fc;
    color: var(--primary);
}

@media (max-width: 575px) {

    .login-card {
        padding: 28px 20px;
        border-radius: 20px;
    }

}


/* =========================================
    NAVBAR RIGHT SIDE
 ========================================== */

.navbar-right {
    margin-left: auto;
}


/* =========================================
   NAVBAR TOGGLER - HAMBURGER / CLOSE
========================================= */

.navbar-toggler {
    border: none;
    padding: 8px;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler .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='rgba(0,0,0,0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    transition: all 0.3s ease;
    width: 28px;
    height: 28px;
    display: inline-block;
}

/* Close icon (X) when menu is open */
.navbar-toggler .navbar-toggler-icon.close-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0,0,0,0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M6 6L24 24M6 24L24 6'/%3e%3c/svg%3e");
}


/* =========================================
   PROFILE DROPDOWN - CLICK ONLY
========================================= */

.profile-dropdown {
    min-width: 270px;
    padding: 8px;
    margin-top: 10px !important;
    border-radius: 16px;
}

.profile-dropdown-container {
    position: relative;
}

/* COMPLETELY DISABLE ALL HOVER - FORCE OVERRIDE */
.profile-dropdown-container .dropdown-menu,
.profile-dropdown-container:hover .dropdown-menu,
.profile-dropdown-container .dropdown-menu:hover,
.profile-dropdown-container .dropdown-toggle:hover+.dropdown-menu,
.navbar .profile-dropdown-container .dropdown-menu,
.navbar .profile-dropdown-container:hover .dropdown-menu,
.dropdown.profile-dropdown-container .dropdown-menu,
.dropdown.profile-dropdown-container:hover .dropdown-menu {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    max-height: 0 !important;
    overflow: hidden !important;
}

/* ONLY SHOW WHEN .show CLASS IS PRESENT */
.profile-dropdown-container .dropdown-menu.show,
.profile-dropdown-container .dropdown-menu.show:hover,
.navbar .profile-dropdown-container .dropdown-menu.show,
.dropdown.profile-dropdown-container .dropdown-menu.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

/* Desktop specific override - FORCE CLICK ONLY */
@media (min-width: 992px) {

    .profile-dropdown-container .dropdown-menu,
    .profile-dropdown-container:hover .dropdown-menu,
    .navbar .profile-dropdown-container .dropdown-menu,
    .navbar .profile-dropdown-container:hover .dropdown-menu {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        max-height: 0 !important;
        overflow: hidden !important;
    }

    .profile-dropdown-container .dropdown-menu.show,
    .navbar .profile-dropdown-container .dropdown-menu.show {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        max-height: none !important;
        overflow: visible !important;
        right: 0;
    }
}

/* =========================================
   PROFILE BUTTON - Single Arrow
========================================= */

/* Profile button styles - remove ::after completely */
.profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid var(--line);
    color: var(--ink);
    font-family: Inter, sans-serif;
    font-weight: 600;
    padding: 4px 12px 4px 6px;
    border-radius: 999px;
    transition: .2s ease;
    cursor: pointer;
}

.profile-btn:hover,
.profile-btn:focus {
    /* background: #f6f8fc; */
    border-color: #d0d5dd;
    color: var(--ink);
    box-shadow: none;
}

/* Remove default Bootstrap arrow - multiple selectors for safety */
.profile-btn::after,
.profile-btn.dropdown-toggle::after,
.profile-btn .dropdown-toggle::after,
button.profile-btn::after {
    display: none !important;
    content: none !important;
    border: none !important;
    margin: 0 !important;
}

/* Custom arrow */
.profile-btn .profile-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    transition: transform 0.3s ease;
    font-size: 16px;
    color: var(--muted);
    font-weight: 700;
    line-height: 1;
}

/* Rotate arrow when dropdown is open */
.profile-btn[aria-expanded="true"] .profile-arrow {
    transform: rotate(180deg);
}

/* =========================================
   PROFILE AVATAR
========================================= */

.profile-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e9f1ff;
    color: var(--primary);
    display: inline-grid;
    place-items: center;
    font-size: 1rem;
}

/* Larger avatar inside dropdown */
.profile-avatar-large {
    width: 46px;
    height: 46px;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* =========================================
   CART ICON - Centered Perfect Circle
========================================= */

.cart-icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    background: #f8f9fa;
    border: 1px solid var(--line);
    color: var(--ink);
    transition: all 0.2s ease;
    text-decoration: none;
    flex-shrink: 0;
}

.cart-icon-wrapper:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.cart-icon-wrapper i {
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #ffffff;
    line-height: 1;
}

.cart-badge.show {
    display: flex;
}

/* =========================================
   PROFILE INFORMATION
========================================= */

.profile-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
}

.profile-info small {
    display: block;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =========================================
   DROPDOWN ITEMS
========================================= */

.profile-dropdown .dropdown-item {
    padding: 10px 12px;
    border-radius: 9px;
    font-weight: 500;
}

.profile-dropdown .dropdown-item:hover {
    background: #f2f5fa;
}

/* =========================================
   MOBILE MENU - FULL WIDTH CART & PROFILE
========================================= */

@media (max-width: 991.98px) {

    /* ===== NAVBAR RIGHT - FULL WIDTH ===== */
    .navbar-right {
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid var(--line);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        width: 100%;
    }

    .navbar-right>* {
        width: 100%;
        flex: none;
    }

    /* ===== CART ICON - FULL WIDTH WITH BADGE ===== */
    .navbar-right .cart-icon-wrapper {
        width: 100%;
        height: 44px;
        border-radius: 10px;
        background: #f8f9fa;
        border: 1px solid var(--line);
        color: var(--ink);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-weight: 600;
        font-size: 14px;
        padding: 0 16px;
        text-decoration: none;
        transition: all 0.2s ease;
        position: relative;
    }

    .navbar-right .cart-icon-wrapper i {
        font-size: 18px;
    }

    .navbar-right .cart-icon-wrapper:hover {
        background: var(--primary);
        border-color: var(--primary);
        color: #ffffff;
    }

    .navbar-right .cart-icon-wrapper .cart-badge {
        position: absolute;
        top: -4px;
        right: -4px;
        background: #dc3545;
        color: white;
        border-radius: 50%;
        font-size: 10px;
        font-weight: 700;
        min-width: 18px;
        height: 18px;
        display: none;
        align-items: center;
        justify-content: center;
        padding: 0 4px;
        border: 2px solid #ffffff;
        line-height: 1;
    }

    .navbar-right .cart-icon-wrapper .cart-badge.show {
        display: flex;
    }

    /* ===== PROFILE DROPDOWN - COMPACT WITH OUTLINE ===== */
    .profile-dropdown-container {
        width: 100%;
        border: 1px solid var(--line);
        border-radius: 10px;
        background: #ffffff;
        padding: 2px 12px;
        margin-bottom: 4px;
    }

    .profile-dropdown-container .profile-btn {
        width: 100%;
        justify-content: space-between;
        align-items: center;
        background: transparent;
        border: none;
        padding: 6px 0;
        border-radius: 0;
        font-weight: 600;
        font-size: 14px;
        color: var(--ink);
        display: flex;
        gap: 8px;
        min-height: 36px;
    }

    .profile-dropdown-container .profile-btn:hover {
        background: transparent;
    }

    .profile-dropdown-container .profile-btn .profile-arrow {
        font-size: 16px;
        color: var(--primary);
        transition: transform 0.3s ease;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 2px 4px;
        flex-shrink: 0;
    }

    .profile-dropdown-container .profile-btn[aria-expanded="true"] .profile-arrow {
        transform: rotate(180deg);
    }

    .profile-dropdown-container .profile-avatar {
        width: 28px;
        height: 28px;
        font-size: 12px;
        background: var(--primary);
        color: white;
        flex-shrink: 0;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .profile-dropdown-container .profile-name {
        font-size: 14px;
        font-weight: 600;
        flex: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Hide default Bootstrap arrow on mobile */
    .profile-dropdown-container .profile-btn::after {
        display: none !important;
        content: none !important;
        border: none !important;
    }

    /* Mobile dropdown - with scroll and compact height */
    .profile-dropdown-container .dropdown-menu {
        position: static !important;
        width: 100% !important;
        min-width: unset !important;
        margin-top: 0 !important;
        padding: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
        transform: none !important;
        float: none !important;
        max-height: 0 !important;
        overflow: hidden !important;
        transition: max-height 0.3s ease;
    }

    .profile-dropdown-container .dropdown-menu.show {
        max-height: 350px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding: 0 !important;
        border-left: 3px solid var(--primary) !important;
        background: #f8fafc !important;
        border-radius: 0 8px 8px 0 !important;
        margin: 4px 0 0 0 !important;
        display: block !important;
    }

    /* Scrollbar styling */
    .profile-dropdown-container .dropdown-menu.show::-webkit-scrollbar {
        width: 3px;
    }

    .profile-dropdown-container .dropdown-menu.show::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }

    .profile-dropdown-container .dropdown-menu.show::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 3px;
    }

    .profile-dropdown-container .dropdown-menu .profile-info {
        padding: 8px 14px;
        background: transparent;
        border-bottom: 1px solid var(--line);
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .profile-dropdown-container .dropdown-menu .profile-info .profile-avatar-large {
        width: 34px;
        height: 34px;
        font-size: 14px;
        background: var(--primary);
        color: white;
        flex-shrink: 0;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .profile-dropdown-container .dropdown-menu .profile-info div .fw-bold {
        font-size: 14px;
        color: var(--ink);
    }

    .profile-dropdown-container .dropdown-menu .profile-info div small {
        font-size: 12px;
        color: var(--muted);
        display: block;
    }

    .profile-dropdown-container .dropdown-menu .dropdown-item {
        padding: 8px 14px 8px 17px;
        font-size: 13px;
        color: var(--ink);
        border-radius: 0;
        background: transparent;
        transition: background 0.2s ease;
        border-bottom: 1px solid #f0f2f5;
        white-space: normal;
        word-wrap: break-word;
        display: flex;
        align-items: center;
        gap: 8px;
        min-height: 34px;
    }

    .profile-dropdown-container .dropdown-menu .dropdown-item:last-child {
        border-bottom: none;
    }

    .profile-dropdown-container .dropdown-menu .dropdown-item:hover {
        background: #f0f2f5;
    }

    .profile-dropdown-container .dropdown-menu .dropdown-item.text-danger {
        color: #dc3545 !important;
    }

    .profile-dropdown-container .dropdown-menu .dropdown-item.text-danger:hover {
        background: #fce4ec;
    }

    .profile-dropdown-container .dropdown-menu .dropdown-divider {
        margin: 0;
        border-color: var(--line);
    }

    /* ===== LOGIN / SIGNUP BUTTONS - FULL WIDTH ===== */
    .navbar-right .btn-primary,
    .navbar-right .btn-outline-primary {
        width: 100%;
        text-align: center;
        padding: 8px 16px;
        font-size: 14px;
        border-radius: 10px;
    }

    /* ===== PRODUCTS DROPDOWN - MOBILE WITH SCROLL (FIXED PADDING) ===== */
    .navbar .dropdown-menu {
        border: none !important;
        box-shadow: none !important;
        background: #f8f9fa;
        padding: 0 !important;
        max-height: 0 !important;
        overflow: hidden !important;
        transition: max-height 0.3s ease;
        display: block !important;
        position: static !important;
        width: 100% !important;
        border-radius: 0 !important;
        margin: 0 !important;
    }

    .navbar .dropdown-menu.show {
        max-height: 250px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding: 6px 0 !important;
        display: block !important;
    }

    /* Scrollbar for products dropdown */
    .navbar .dropdown-menu.show::-webkit-scrollbar {
        width: 3px;
    }

    .navbar .dropdown-menu.show::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }

    .navbar .dropdown-menu.show::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 3px;
    }

    .navbar .dropdown-item {
        padding: 8px 16px;
        border-radius: 0;
        font-size: 14px;
        min-height: 34px;
        border-bottom: 1px solid #f0f2f5;
    }

    .navbar .dropdown-item:last-child {
        border-bottom: none;
    }

    .navbar .dropdown-item:hover {
        background: #e9ecef;
    }

    .navbar-collapse {
        transition: all 0.3s ease;
    }

    .navbar-toggler:focus {
        box-shadow: none;
    }

    /* Ensure navbar collapse has scroll if needed */
    .navbar-collapse.show {
        max-height: 80vh;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .navbar-collapse.show::-webkit-scrollbar {
        width: 3px;
    }

    .navbar-collapse.show::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }

    .navbar-collapse.show::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 3px;
    }
}

@media (max-width: 575px) {
    .profile-name {
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .navbar-right .btn-primary,
    .navbar-right .btn-outline-primary {
        padding: 8px 12px;
        font-size: 13px;
    }

    .profile-dropdown-container .dropdown-menu.show {
        max-height: 300px !important;
    }

    .navbar .dropdown-menu.show {
        max-height: 200px !important;
    }

    .profile-dropdown-container {
        padding: 2px 10px;
    }

    .profile-dropdown-container .profile-btn {
        padding: 5px 0;
        font-size: 13px;
        min-height: 32px;
    }

    .profile-dropdown-container .profile-avatar {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }

    .profile-dropdown-container .profile-name {
        font-size: 13px;
    }

    .profile-dropdown-container .profile-btn .profile-arrow {
        font-size: 14px;
    }
}

/* ============================================================
   PROFILE PAGE STYLES (profile.php)
   ============================================================ */

.profile-section {
    padding: 60px 0 80px;
    background: var(--soft);
}

.profile-card {
    max-width: 700px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

/* ============================================================
   PROFILE HEADER
   ============================================================ */

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px 35px;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
}

.profile-avatar-lg {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 700;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.profile-name {
    flex: 1;
}

.profile-name h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    font-family: Manrope, sans-serif;
}

.profile-name p {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
}

.profile-badge {
    font-size: 12px;
    color: var(--muted);
    background: var(--soft);
    padding: 4px 14px;
    border-radius: 20px;
    border: 1px solid var(--line);
    white-space: nowrap;
}

/* ============================================================
   PROFILE CONTENT
   ============================================================ */

.profile-content {
    padding: 30px 35px 35px;
}

.profile-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: Manrope, sans-serif;
}

.profile-content .subtitle {
    color: var(--muted);
    margin: 0 0 25px;
    font-size: 14px;
}

/* ============================================================
   PROFILE FORM
   ============================================================ */

.profile-form .form-group {
    margin-bottom: 18px;
}

.profile-form label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: var(--ink);
    margin-bottom: 5px;
}

.profile-form .form-control {
    width: 100%;
    padding: 11px 16px;
    border: 2px solid var(--line);
    border-radius: 10px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #ffffff;
    color: var(--ink);
    font-family: Inter, sans-serif;
}

.profile-form .form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(21, 94, 239, 0.1);
}

.profile-form .form-control::placeholder {
    color: #9ca3af;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn-primary:hover {
    background: #1a4fd0;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(21, 94, 239, 0.25);
}

/* ============================================================
   ALERT
   ============================================================ */

.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
    font-size: 14px;
}

.alert-success {
    background-color: #d1fae5;
    border-color: #a7f3d0;
    color: #065f46;
}

.alert-danger {
    background-color: #fce4ec;
    border-color: #f9c4d0;
    color: #831843;
}

.alert-warning {
    background-color: #fef3c7;
    border-color: #fde68a;
    color: #92400e;
}

.alert i {
    font-size: 18px;
}

.alert-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
}

.alert-close:hover {
    opacity: 1;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
    .profile-header {
        flex-wrap: wrap;
        padding: 20px;
        gap: 14px;
    }

    .profile-avatar-lg {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .profile-name h2 {
        font-size: 19px;
    }

    .profile-badge {
        font-size: 11px;
        padding: 3px 12px;
    }

    .profile-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }

    .profile-avatar-lg {
        width: 56px;
        height: 56px;
        font-size: 22px;
    }

    .profile-name h2 {
        font-size: 18px;
    }

    .profile-content {
        padding: 16px;
    }
}

/* Orders Page Styles */
.orders-section {
    padding: 60px 0 80px;
    background: var(--soft);
}

.orders-card {
    max-width: 1000px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

/* Header */
.orders-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 30px;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
}

.orders-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.orders-user-info {
    flex: 1;
}

.orders-user-info h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    font-family: Manrope, sans-serif;
}

.orders-user-info p {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
}

.orders-badge {
    font-size: 12px;
    color: var(--muted);
    background: var(--soft);
    padding: 4px 14px;
    border-radius: 20px;
    border: 1px solid var(--line);
    white-space: nowrap;
}

/* Stats */
.orders-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 30px;
    background: #f8fafc;
    border-bottom: 1px solid var(--line);
    gap: 24px;
}

.stat-box {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--ink);
}

.stat-label {
    font-size: 13px;
    color: var(--muted);
}

.stat-divider {
    width: 1px;
    height: 30px;
    background: var(--line);
}

/* Table */
.orders-table-wrap {
    padding: 24px 30px 30px;
    overflow-x: auto;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.orders-table thead th {
    text-align: left;
    padding: 12px 16px;
    background: #f8fafc;
    font-weight: 600;
    color: var(--ink);
    border-bottom: 2px solid var(--line);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.orders-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f2f5;
    color: var(--ink);
    vertical-align: middle;
}

.orders-table tbody tr:hover {
    background: #f8fafc;
}

.orders-table tbody tr:last-child td {
    border-bottom: none;
}

/* Order Status */
.order-status {
    display: inline-flex;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.order-status.completed {
    background: #d1fae5;
    color: #065f46;
}

.order-status.pending {
    background: #fef3c7;
    color: #92400e;
}

.order-status.failed {
    background: #fce4ec;
    color: #831843;
}

.order-status.processing {
    background: #dbeafe;
    color: #1e40af;
}

.order-status.shipped {
    background: #e0e7ff;
    color: #3730a3;
}

.order-status.delivered {
    background: #d1fae5;
    color: #065f46;
}

.order-status.cancelled {
    background: #f3f4f6;
    color: #6b7280;
}

/* Order ID */
.order-id-link {
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
}

.order-id-link:hover {
    text-decoration: underline;
}

/* Action Buttons */
.btn-outline {
    background: transparent;
    border: 2px solid var(--line);
    color: var(--ink);
}

.btn-outline:hover {
    background: var(--soft);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-sm {
    padding: 4px 12px;
    font-size: 12px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 56px;
    color: #d1d5db;
    display: block;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 20px;
    color: var(--ink);
    margin: 0 0 8px;
    font-family: Manrope, sans-serif;
}

.empty-state p {
    font-size: 15px;
    color: var(--muted);
    margin: 0 0 20px;
}

.btn-primary:hover {
    background: #1a4fd0;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(21, 94, 239, 0.25);
}

/* Responsive */
@media (max-width: 768px) {
    .orders-header {
        flex-wrap: wrap;
        padding: 18px 20px;
        gap: 14px;
    }

    .orders-badge {
        font-size: 11px;
        padding: 3px 12px;
    }

    .orders-stats {
        padding: 12px 20px;
        gap: 14px;
        flex-wrap: wrap;
    }

    .stat-number {
        font-size: 20px;
    }

    .orders-table-wrap {
        padding: 16px;
    }

    .orders-table {
        font-size: 13px;
    }

    .orders-table thead th,
    .orders-table tbody td {
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .orders-header {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }

    .orders-avatar {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .orders-user-info h2 {
        font-size: 18px;
    }

    .orders-stats {
        gap: 10px;
    }

    .stat-divider {
        display: none;
    }

    .orders-table-wrap {
        padding: 12px;
    }

    .orders-table thead th,
    .orders-table tbody td {
        padding: 8px 10px;
        font-size: 12px;
    }

    .btn-sm {
        padding: 3px 8px;
        font-size: 11px;
    }
}

/* Contact Form Validation Styles */
.error-message {
    font-size: 12px;
    color: #dc2626;
    margin-top: 4px;
    min-height: 20px;
}

.form-control.error {
    border-color: #dc2626 !important;
    background-color: #fef2f2;
}

.form-control.success {
    border-color: #10b981 !important;
    background-color: #f0fdf4;
}

.form-control.error:focus {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

.form-control.success:focus {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

.form-control:not(.error):not(.success) {
    border-color: #d1d5db;
}

.alert-success {
    background-color: #d1fae5 !important;
    border-color: #10b981 !important;
    color: #065f46 !important;
    padding: 15px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success i {
    font-size: 20px;
    color: #10b981;
}

.alert-danger {
    background-color: #fce4ec !important;
    border-color: #ef4444 !important;
    color: #831843 !important;
    padding: 15px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-danger i {
    font-size: 20px;
    color: #ef4444;
}

.btn-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
}

.btn-close:hover {
    opacity: 1;
}

.btn-success {
    background-color: #10b981 !important;
    border-color: #10b981 !important;
    color: white !important;
}

.btn-success:hover {
    background-color: #059669 !important;
}

/* Templates css */

.template-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 3px solid transparent;
    height: 100%;
}

.template-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.15);
    border-color: #1a237e;
}

.template-card .template-preview {
    background: #f0f2f5;
    padding: 20px;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.template-card .template-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    object-fit: contain;
}

.template-card:hover .template-preview img {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
    transform: scale(1.02);
}

.template-card .template-body {
    padding: 16px 20px 20px;
}

.template-card .template-body h5 {
    font-weight: 600;
    color: #1a237e;
    margin-bottom: 4px;
}

.template-card .template-body .template-category {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.template-card .template-body .template-price {
    color: #0d47a1;
    font-weight: 700;
}

.template-card .template-body .btn-use-template {
    transition: all 0.3s ease;
}

.template-card .template-body .btn-use-template:hover {
    transform: scale(1.02);
}

.filter-bar .btn {
    padding: 8px 22px;
    font-size: 0.85rem;
    transition: all 0.3s;
    border-radius: 50px;
}

.filter-bar .btn.active {
    background: #1a237e;
    color: white;
    border-color: #1a237e;
}

.filter-bar .btn:hover:not(.active) {
    background: #e8eaf6;
}

/* Badge on template card */
.template-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(26, 35, 126, 0.85);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
    z-index: 2;
}

/* Blank Canvas Card */
.template-card.blank-canvas .template-preview {
    background: linear-gradient(135deg, #e8eaf6, #f5f5f5);
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.template-card.blank-canvas .blank-icon {
    font-size: 64px;
    color: #1a237e;
    opacity: 0.3;
    margin-bottom: 10px;
}

.template-card.blank-canvas .blank-text {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

/* Template category color dots */
.category-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.category-dot.employee {
    background: #1a237e;
}

.category-dot.student {
    background: #2e7d32;
}

.category-dot.school {
    background: #ad1457;
}

.category-dot.corporate {
    background: #e65100;
}

.category-dot.healthcare {
    background: #c62828;
}

.category-dot.blank {
    background: #6c757d;
}

/* Responsive */
@media (max-width: 768px) {
    .template-card .template-preview {
        min-height: 160px;
        padding: 15px;
    }

    .template-card .template-preview img {
        max-height: 150px;
    }
}

@media (max-width: 768px) {
    .cart-badge {
        top: 2px !important;
        right: 2px !important
    }
}