:root {
    --primary: #10B981;
    --primary-dark: #059669;
    --secondary: #F59E0B;
    --bg-dark: #0F172A;
    --bg-card: rgba(30, 41, 59, 0.7);
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    -webkit-tap-highlight-color: transparent; /* Huondoa box/mistari ya bluu kwenye simu unapogusa */
}

a {
    text-decoration: none; /* Huondoa mstari chini ya link */
    color: inherit;
    outline: none;
}

button, input, textarea {
    outline: none; /* Huondoa mstari unaojitokeza uki-focus */
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.85)),
        url('pics/13.png');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

html {
    scroll-behavior: smooth;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 20px;
}

.highlight {
    color: var(--primary);
}

.warning-text {
    color: var(--secondary);
    font-weight: 600;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-img {
    height: 55px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(16, 185, 129, 0.3));
    animation: logoSpin 5s ease-in-out infinite;
}

@keyframes logoSpin {
    0%   { transform: rotateY(0deg) scale(1); }
    10%  { transform: rotateY(180deg) scale(1.08); }
    20%  { transform: rotateY(360deg) scale(1); }
    100% { transform: rotateY(360deg) scale(1); }
}

.logo-img:hover {
    filter: drop-shadow(0 4px 14px rgba(16, 185, 129, 0.55));
    animation-play-state: paused;
    transform: scale(1.08);
}

.nav-links {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    position: relative;
    letter-spacing: 0.01em;
    backdrop-filter: blur(8px);
}

.nav-links a::after {
    content: none;
}

.nav-links a:hover {
    color: white;
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

.nav-links a:active {
    transform: translateY(0) scale(0.97);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.cart-icon {
    position: relative;
    font-size: 2.2rem; /* Made it slightly bigger to match the energy */
    cursor: pointer;
    transition: var(--transition);
    animation: cartDrive 3s infinite ease-in-out;
}

@keyframes cartDrive {
    0% { transform: translateX(0) rotate(0deg); }
    10% { transform: translateX(-5px) rotate(-5deg); }
    20% { transform: translateX(5px) rotate(5deg); }
    30% { transform: translateX(0) rotate(0deg); }
    100% { transform: translateX(0) rotate(0deg); }
}

.cart-icon:hover {
    color: var(--primary);
    animation: none;
    transform: scale(1.15) rotate(-10deg);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: var(--secondary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    height: 20px;
    width: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: 2px solid var(--bg-dark);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80vh;
    padding: 2rem 5%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.hero h2 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero p {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 2.5rem;
}

.cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
    border: none;
    cursor: pointer;
}

.cta-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 25px rgba(16, 185, 129, 0.4);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-logo-img {
    position: absolute;
    width: 420px;
    height: 420px;
    object-fit: cover;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    z-index: 2;
    filter: drop-shadow(0 15px 40px rgba(16, 185, 129, 0.5));
    animation: floatImg 4s ease-in-out infinite alternate, morphImg 8s ease-in-out infinite alternate;
}

@keyframes morphImg {
    0%   { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

@keyframes floatImg {
    0%   { transform: translateY(0px); }
    100% { transform: translateY(-18px); }
}

.blob {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.5) 0%, rgba(245, 158, 11, 0.5) 100%);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: morph 8s ease-in-out infinite alternate;
    box-shadow: inset 0 0 50px rgba(255,255,255,0.1);
    position: relative;
}

/* Cart emoji removed - replaced by hero image */
.blob::after {
    content: '';
}

@keyframes morph {
    0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

/* Delivery Badge Animation */
.delivery-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.25);
    border: 1px solid rgba(16, 185, 129, 0.5);
    padding: 8px 16px;
    border-radius: 50px;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
    animation: badgePulse 2s infinite alternate ease-in-out;
}

@keyframes badgePulse {
    0% {
        box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
        transform: scale(1);
    }
    100% {
        box-shadow: 0 0 25px rgba(16, 185, 129, 0.7);
        transform: scale(1.03);
    }
}

.delivery-icon {
    font-size: 1.4rem;
    display: inline-block;
    animation: scooterBounce 1s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes scooterBounce {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(-6px) rotate(-10deg);
    }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Packages Section */
.packages-section {
    padding: 5rem 5%;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.package-card {
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.package-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

@media (hover: hover) {
    .package-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    }

    .package-card:hover::before {
        transform: scaleX(1);
    }
}
.pkg-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: 12px;
}

.pkg-img-photo {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    transition: transform 0.4s ease;
}

@media (hover: hover) {
    .package-card:hover .pkg-img-photo {
        transform: scale(1.07);
    }
}

.cart-mini-img {
    width: 28px;
    height: 28px;
    object-fit: cover;
    border-radius: 5px;
    vertical-align: middle;
    margin-right: 4px;
}

.pkg-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.pkg-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.pkg-features {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.pkg-features li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}

.pkg-features ion-icon {
    color: var(--secondary);
}

.add-pkg-btn {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--text-main);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.add-pkg-btn:hover {
    background: var(--primary);
    color: white;
}

/* Custom Builder Section */
.builder-section {
    padding: 5rem 5%;
    background: rgba(15, 23, 42, 0.4);
}

.builder-container {
    display: grid;
    grid-template-columns: 200px 1fr 300px;
    gap: 2rem;
}

.categories-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-btn {
    padding: 1rem;
    text-align: left;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.category-btn:hover, .category-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    align-content: start;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.prod-img {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.prod-img-photo {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
    display: block;
    transition: transform 0.3s ease;
}

.product-card:hover .prod-img-photo {
    transform: scale(1.05);
}

.prod-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.prod-price {
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 1rem;
}

.add-item-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.add-item-btn:hover {
    background: var(--primary);
}

/* Custom Builder Summary */
.builder-summary {
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.builder-summary h3 {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.custom-cart-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
}

.custom-cart-items::-webkit-scrollbar {
    width: 5px;
}
.custom-cart-items::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 5px;
}

.custom-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px dashed var(--glass-border);
    font-size: 0.9rem;
}

.custom-item-info {
    display: flex;
    flex-direction: column;
}

.custom-item-name {
    font-weight: 600;
}

.custom-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.custom-item-controls button {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-item-controls button:hover {
    background: var(--primary);
}

.empty-msg {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem 0;
}

.summary-footer {
    border-top: 1px solid var(--glass-border);
    padding-top: 1rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.min-order-alert {
    font-size: 0.85rem;
    color: var(--secondary);
    background: rgba(245, 158, 11, 0.1);
    padding: 0.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
}

.min-order-alert.success {
    color: var(--primary);
    background: rgba(16, 185, 129, 0.1);
}

.add-custom-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    background: var(--primary);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.add-custom-btn:disabled {
    background: var(--glass-border);
    color: var(--text-muted);
    cursor: not-allowed;
}

.add-custom-btn:not(:disabled):hover {
    background: var(--primary-dark);
}

/* Main Cart Sidebar */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: absolute;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    border-radius: 0;
    border-left: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-overlay.active .cart-sidebar {
    transform: translateX(-400px);
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-cart {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-cart:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-package {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--glass-border);
}

.cart-pkg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.cart-pkg-title {
    font-weight: 600;
    color: var(--primary);
}

.remove-pkg {
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 1.2rem;
}

.cart-pkg-details {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.cart-pkg-price {
    font-weight: 800;
    text-align: right;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.9);
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--glass-border);
    color: #ffffff;
    margin-top: 3rem;
}

/* Toast */
.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transition: var(--transition);
    z-index: 2000;
}

.toast.show {
    bottom: 30px;
}

/* Checkout Modal */
.checkout-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    z-index: 1500;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.checkout-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.checkout-modal {
    width: 92%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.2rem 1.5rem;
    transform: translateY(20px);
    transition: var(--transition);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.checkout-modal::-webkit-scrollbar {
    width: 4px;
}

.checkout-modal::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.checkout-modal-overlay.active .checkout-modal {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.close-modal {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.close-modal:hover {
    background: #ef4444;
    color: white;
}

.checkout-form .form-group {
    margin-bottom: 0.9rem;
}

.checkout-form label {
    display: block;
    margin-bottom: 0.35rem;
    color: #cbd5e1;
    font-size: 0.85rem;
    font-weight: 600;
}

.checkout-form input {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: white;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.checkout-form input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.btn-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 0.55rem;
    background: rgba(16, 185, 129, 0.15);
    border: 1px dashed #10B981;
    color: #10B981;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-location:hover {
    background: rgba(16, 185, 129, 0.3);
}

.submit-order-btn {
    width: 100%;
    padding: 0.8rem;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.submit-order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.5);
}

/* Responsive */
@media (max-width: 900px) {
    .builder-container {
        grid-template-columns: 1fr;
    }
    
    .builder-summary {
        position: static;
        margin-top: 2rem;
    }
    
    .categories-sidebar {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 1rem;
    }
    
    .category-btn {
        white-space: nowrap;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 4rem;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .blob {
        width: 300px;
        height: 300px;
        margin-top: 3rem;
    }
    
    .hero-logo-img {
        width: 320px;
        height: 320px;
    }
    
    .cart-overlay.active .cart-sidebar {
        transform: translateX(-100%);
        width: 100%;
        right: -100%;
    }
}

/* Floating Feedback Button */
.feedback-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
    z-index: 1000;
    transition: var(--transition);
}

.feedback-float-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.6);
}

/* Feedback Modal Overlay */
.feedback-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.feedback-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.feedback-modal {
    width: 90%;
    max-width: 500px;
    padding: 2rem;
    transform: translateY(20px);
    transition: var(--transition);
}

.feedback-modal-overlay.active .feedback-modal {
    transform: translateY(0);
}

.feedback-form .form-group {
    margin-bottom: 1.5rem;
}

.feedback-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.feedback-form input, .feedback-form textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    outline: none;
    transition: var(--transition);
    resize: none;
}

.feedback-form input:focus, .feedback-form textarea:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

.submit-feedback-btn {
    width: 100%;
    padding: 1rem;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}

.submit-feedback-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
}

/* ============================================
   CATEGORY IMAGE TILES (Horizontal Swipe Slider)
   ============================================ */
.categories-tiles-row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 12px;
    margin-bottom: 1.5rem;
    padding: 0.5rem 0.2rem 1rem 0.2rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.categories-tiles-row::-webkit-scrollbar {
    height: 4px;
}

.categories-tiles-row::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.categories-tiles-row::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.cat-tile {
    flex: 0 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    backdrop-filter: blur(8px);
    white-space: nowrap;
}

@media (hover: hover) {
    .cat-tile:hover {
        border-color: var(--primary);
        background: rgba(16, 185, 129, 0.15);
        transform: translateY(-2px);
    }
}

.cat-tile.active {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.cat-tile-img-wrap {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.cat-tile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cat-tile-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: inherit;
}

.cat-tile-img-wrap {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.7rem;
    transition: var(--transition);
    overflow: hidden;
}

.cat-tile.active .cat-tile-img-wrap {
    background: var(--primary);
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.4);
}

.cat-tile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cat-tile:hover .cat-tile-img {
    transform: scale(1.1);
}

.cat-tile-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

.cat-tile.active .cat-tile-name {
    color: var(--primary);
}

/* ============================================
   SHOP LAYOUT (Products + Summary)
   ============================================ */
.shop-layout {
    display: grid;
    grid-template-columns: 1fr 310px;
    gap: 2rem;
    align-items: start;
}

/* ============================================
   NEW PRODUCT CARDS (genge.jpeg style)
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 1.2rem;
    align-content: start;
}

.product-card-new {
    background: rgba(22, 33, 52, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    overflow: hidden;
    transition: var(--transition);
    cursor: default;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

@media (hover: hover) {
    .product-card-new:hover {
        transform: translateY(-5px);
        border-color: rgba(16, 185, 129, 0.35);
        box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(16, 185, 129, 0.15);
    }
}

.prod-card-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: rgba(255, 255, 255, 0.04);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prod-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

@media (hover: hover) {
    .product-card-new:hover .prod-card-img {
        transform: scale(1.07);
    }
}

.prod-card-emoji {
    font-size: 3.5rem;
    line-height: 1;
}

.prod-card-body {
    padding: 12px 14px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.prod-card-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
    line-height: 1.3;
    min-height: 2.3em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prod-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.prod-card-price {
    font-weight: 800;
    font-size: 0.92rem;
    color: var(--primary);
    white-space: nowrap;
}

.prod-add-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
    flex-shrink: 0;
}

@media (hover: hover) {
    .prod-add-btn:hover {
        background: var(--primary-dark);
        transform: scale(1.15) rotate(90deg);
        box-shadow: 0 6px 18px rgba(16, 185, 129, 0.5);
    }
}

.prod-add-btn:active {
    transform: scale(0.95);
}

/* Badge ya idadi kwenye kadi ya bidhaa */
.prod-card-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--primary);
    color: white;
    font-size: 0.72rem;
    font-weight: 800;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(16,185,129,0.5);
    animation: badgePop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

@keyframes badgePop {
    0%   { transform: scale(0); opacity: 0; }
    60%  { transform: scale(1.25); }
    100% { transform: scale(1); opacity: 1; }
}

/* Kadi iliyochaguliwa (ina bidhaa kwenye kapu) */
.product-card-new.in-cart {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25), 0 8px 24px rgba(0,0,0,0.3);
}

.product-card-new.in-cart .prod-add-btn {
    background: #059669;
}


/* Builder Summary header icon */
.builder-summary h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
    font-size: 1.1rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }

    .builder-summary {
        position: static;
    }

    .categories-tiles-row {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 10px;
    }

    .cat-tile-img-wrap {
        width: 58px;
        height: 58px;
    }

    .cat-tile-name {
        font-size: 0.72rem;
    }
}

@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
        gap: 1rem;
    }

    .categories-tiles-row {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .cat-tile {
        padding: 10px 6px;
    }

    .cat-tile-img-wrap {
        width: 50px;
        height: 50px;
    }
}

.btn-location {
    width: 100%;
    padding: 0.8rem;
    background: transparent;
    border: 1px dashed var(--primary);
    color: var(--primary);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    margin-bottom: 0.5rem;
}

.btn-location:hover {
    background: rgba(16, 185, 129, 0.1);
}

/* ============================================
   ABOUT US SECTION
   ============================================ */
.about-section {
    padding: 5rem 5%;
}

.about-content {
    display: flex;
    gap: 3rem;
    padding: 3rem;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.about-features {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.feat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.feat-item ion-icon {
    font-size: 1.5rem;
    color: var(--primary);
}

.about-img {
    flex: 1;
}

/* ============================================
   CONTACT US SECTION
   ============================================ */
.contact-section {
    padding: 5rem 5%;
    background: rgba(15, 23, 42, 0.4);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-card {
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.contact-card ion-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.contact-card h3 {
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   FOOTER UPDATE
   ============================================ */
footer {
    padding: 3rem 5% 1rem;
    background: rgba(15, 23, 42, 0.9);
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo p {
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .header {
        flex-wrap: wrap;
        padding: 1rem 5%;
    }
    
    .nav-links {
        order: 3;
        width: 100%;
        margin-top: 1rem;
        justify-content: center;
        gap: 1.5rem;
        flex-wrap: wrap;
    }
    
    .logo-img {
        height: 45px;
    }

    .about-content {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .packages-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 2rem;
    }
    
    .blob {
        width: 250px;
        height: 250px;
    }
    
    .hero-logo-img {
        width: 260px;
        height: 260px;
    }
    
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

/* ============================================
   INVOICE / PRINT STYLES
   ============================================ */
.invoice-container {
    display: none; /* Hidden by default */
    background: white;
    color: black;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

@media print {
    /* Hide everything except the invoice container */
    body * {
        visibility: hidden;
    }
    
    body {
        background: white !important;
        background-image: none !important;
    }

    .invoice-container, .invoice-container * {
        visibility: visible;
    }

    .invoice-container {
        display: block;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        padding: 0;
    }

    /* Invoice Specific Styles */
    .invoice-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 2px solid #333;
        padding-bottom: 1rem;
        margin-bottom: 1.5rem;
    }

    .invoice-logo {
        height: 80px;
    }

    .invoice-title {
        text-align: right;
    }

    .invoice-title h2 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
        color: #333;
    }

    .invoice-customer {
        margin-bottom: 2rem;
    }

    .invoice-customer h3 {
        margin-bottom: 0.5rem;
        color: #555;
    }

    .invoice-table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 2rem;
    }

    .invoice-table th, .invoice-table td {
        border: 1px solid #ddd;
        padding: 12px;
        text-align: left;
    }

    .invoice-table th {
        background-color: #f8f9fa !important;
        -webkit-print-color-adjust: exact;
        color: #333;
    }

    .invoice-footer {
        text-align: center;
        border-top: 1px solid #ddd;
        padding-top: 1rem;
        color: #666;
        font-style: italic;
    }
}

/* ============================================
   ORDER HISTORY SECTION
   ============================================ */
.history-section {
    padding: 5rem 5%;
    background: rgba(15, 23, 42, 0.4);
}

/* ── Lookup panel ─────────────────────────── */
.history-lookup {
    max-width: 520px;
    margin: 0 auto;
    padding: 3rem 2.5rem;
    text-align: center;
    /* display inajibisha showHistoryState() katika JS */
}

.lookup-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: floatImg 3s ease-in-out infinite alternate;
}

.history-lookup h3 {
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
    color: var(--text-main);
}

.history-lookup p {
    color: var(--text-muted);
    margin-bottom: 1.8rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.lookup-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lookup-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.85rem 1.1rem;
    transition: var(--transition);
}

.lookup-input-group:focus-within {
    border-color: var(--primary);
    background: rgba(16, 185, 129, 0.07);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.lookup-input-group ion-icon {
    font-size: 1.3rem;
    color: var(--primary);
    flex-shrink: 0;
}

.lookup-input-group input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
}

.lookup-input-group input::placeholder {
    color: var(--text-muted);
}

.lookup-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 0.9rem 1.5rem;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-weight: 700;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.lookup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(16, 185, 129, 0.45);
}

.lookup-btn:active {
    transform: scale(0.97);
}

.lookup-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.lookup-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 1rem;
    margin-bottom: 0;
}

/* ── Greeting bar ─────────────────────────── */
.history-greeting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.8rem;
    margin-bottom: 1.8rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.greeting-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.greeting-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}

.greeting-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.greeting-phone {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.history-logout-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    border-radius: 50px;
    color: var(--text-muted);
    padding: 0.5rem 1.1rem;
    font-size: 0.88rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.history-logout-btn:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.07);
}

/* ── Last-order spotlight ─────────────────── */
.last-order-spotlight {
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1.5px solid rgba(16, 185, 129, 0.35);
    position: relative;
    overflow: hidden;
}

.last-order-spotlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.spotlight-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.spotlight-label {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
}

.spotlight-meta {
    display: flex;
    gap: 1.2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.spotlight-items {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.spotlight-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.93rem;
    color: var(--text-main);
}

.spotlight-item ion-icon {
    color: var(--primary);
    font-size: 1rem;
    flex-shrink: 0;
}

.spotlight-item em {
    color: var(--text-muted);
    font-style: normal;
    font-size: 0.85rem;
}

.spotlight-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--glass-border);
    padding-top: 1.2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.spotlight-total {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.spotlight-total strong {
    font-size: 1.4rem;
    color: var(--primary);
    font-weight: 800;
}

.reorder-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1.8rem;
    border-radius: 50px;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-weight: 700;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.reorder-btn:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 10px 28px rgba(16, 185, 129, 0.5);
}

.reorder-btn:active {
    transform: scale(0.96);
}

/* ── History list ─────────────────────────── */
.history-list-header {
    margin: 2rem 0 1rem;
}

.history-list-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.15rem;
    color: var(--text-muted);
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.history-card {
    padding: 1.4rem 1.6rem;
    transition: var(--transition);
}

.history-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.history-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.9rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.history-card-left {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.history-order-id {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
}

.history-order-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.history-card-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.history-item-chip {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.history-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--glass-border);
    padding-top: 0.9rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.history-card-total {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--primary);
}

.reorder-small-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 1.1rem;
    border-radius: 50px;
    border: 1.5px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.88rem;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: var(--transition);
}

.reorder-small-btn:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
    transform: translateY(-1px);
}

.reorder-small-btn:active {
    transform: scale(0.95);
}

/* ── Status badges ────────────────────────── */
.order-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.badge-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.badge-accepted {
    background: rgba(16, 185, 129, 0.15);
    color: var(--primary);
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-rejected {
    background: rgba(239, 68, 68, 0.13);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ── No orders empty state ────────────────── */
.history-empty {
    max-width: 480px;
    margin: 0 auto;
    padding: 3rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.history-empty h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.history-empty p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 600px) {
    .history-lookup {
        padding: 2rem 1.5rem;
    }

    .last-order-spotlight {
        padding: 1.5rem;
    }

    .history-card {
        padding: 1.2rem;
    }
}

/* ── Loading State ───────────────────────── */
.history-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    gap: 1.2rem;
    color: var(--text-muted);
    font-size: 1rem;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(16, 185, 129, 0.15);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ── Greeting actions (refresh + logout) ─── */
.greeting-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.history-refresh-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.12);
    border: 1.5px solid rgba(16, 185, 129, 0.3);
    color: var(--primary);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.history-refresh-btn:hover {
    background: var(--primary);
    color: white;
    transform: rotate(180deg);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

/* ============================================
   FULL-SCREEN ORDERS PAGE OVERLAY
   ============================================ */
.orders-page-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.92)),
        url('pics/13.png');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.orders-page-overlay.open {
    transform: translateX(0);
}

/* ── Orders Page Header ─────────────────── */
.orders-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 10;
    flex-shrink: 0;
    min-height: 64px;
}

.orders-back-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-main);
    padding: 0.5rem 1.1rem;
    font-size: 0.92rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.orders-back-btn:hover {
    background: rgba(16, 185, 129, 0.12);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateX(-3px);
}

.orders-back-btn ion-icon {
    font-size: 1.2rem;
}

.orders-page-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
}

.orders-page-title ion-icon {
    color: var(--primary);
    font-size: 1.4rem;
}

/* ── Orders Page Scrollable Content ──────── */
.orders-page-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem 5%;
    scroll-behavior: smooth;
}

.orders-page-content::-webkit-scrollbar {
    width: 5px;
}

.orders-page-content::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 5px;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .orders-page-header {
        padding: 0.8rem 1rem;
    }

    .orders-back-btn span {
        display: none;
    }

    .orders-back-btn {
        padding: 0.5rem 0.7rem;
    }

    .orders-page-title {
        font-size: 1.05rem;
    }

    .orders-page-content {
        padding: 1.5rem 1rem;
    }
}

/* ============================================
   REORDER SUCCESS POPUP
   ============================================ */
.reorder-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    transition: opacity 0.25s ease;
}

.reorder-popup {
    width: 100%;
    max-width: 440px;
    padding: 2rem;
    border: 1px solid rgba(16, 185, 129, 0.3);
    animation: popupSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes popupSlideUp {
    from { transform: translateY(30px) scale(0.95); opacity: 0; }
    to   { transform: translateY(0)    scale(1);    opacity: 1; }
}

.reorder-popup-icon {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 0.6rem;
}

.reorder-popup h3 {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1.2rem;
}

.reorder-popup-items {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    margin-bottom: 1.4rem;
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.reorder-popup-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.reorder-popup-item ion-icon {
    color: var(--primary);
    font-size: 1rem;
    flex-shrink: 0;
}

.reorder-popup-item span {
    flex: 1;
    color: var(--text-main);
}

.reorder-popup-item strong {
    color: var(--primary);
    font-weight: 700;
    white-space: nowrap;
}

.reorder-popup-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.reorder-popup-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 0.9rem;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-weight: 700;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.reorder-popup-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(16, 185, 129, 0.5);
}

.reorder-popup-close {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 0.75rem;
    border-radius: 12px;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: var(--transition);
}

.reorder-popup-close:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

/* ============================================ */
/* STK PUSH MANUAL STYLES                       */
/* ============================================ */

.stk-modal-panel {
    max-width: 520px;
    width: 92%;
    padding: 1.8rem;
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(16, 185, 129, 0.2);
}

.stk-modal-body {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 1rem;
}

.stk-summary-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stk-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

.stk-total-price {
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 800;
}

.stk-info-banner {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #e2e8f0;
}

.stk-info-banner ion-icon {
    font-size: 1.6rem;
    color: var(--primary);
    flex-shrink: 0;
}

.stk-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stk-form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #f1f5f9;
}

.stk-providers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
}

.stk-provider-card {
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 0.5rem 0.6rem;
    background: rgba(255, 255, 255, 0.04);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stk-provider-card input[type="radio"] {
    display: none;
}

.stk-provider-card.active {
    border-color: var(--primary);
    background: rgba(16, 185, 129, 0.18);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.35);
}

.provider-badge {
    font-size: 0.8rem;
    font-weight: 600;
}

.stk-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.8);
    border: 1.5px solid var(--glass-border);
    border-radius: 12px;
    padding: 0 1rem;
    transition: var(--transition);
}

.stk-input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}

.stk-input-wrapper ion-icon {
    font-size: 1.3rem;
    color: var(--primary);
    margin-right: 0.6rem;
}

.stk-input-wrapper input {
    width: 100%;
    padding: 0.85rem 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 1rem;
    font-weight: 600;
}

.stk-help-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.stk-trigger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 1rem;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 14px;
    background: linear-gradient(135deg, #10B981, #059669);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.stk-trigger-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.6);
}

/* STK Live Status & Timer */
.stk-live-status {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 16px;
    padding: 1.2rem;
    text-align: center;
    position: relative;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.stk-pulse-ring {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.8rem;
    font-size: 2rem;
    color: var(--primary);
    animation: pulseRing 1.8s infinite cubic-bezier(0.45, 0, 0.55, 1);
}

@keyframes pulseRing {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
        transform: scale(0.95);
    }
    70% {
        box-shadow: 0 0 0 18px rgba(16, 185, 129, 0);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
        transform: scale(0.95);
    }
}

.stk-live-status h4 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 0.4rem;
}

.stk-live-status p {
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.4;
    margin-bottom: 0.8rem;
}

.stk-timer-box {
    display: inline-block;
    background: rgba(15, 23, 42, 0.6);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: var(--secondary);
    margin-bottom: 0.8rem;
}

.stk-resend-wrapper {
    margin-top: 0.6rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
    padding-top: 0.8rem;
}

.stk-resend-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid var(--secondary);
    color: #fef08a;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition);
}

.stk-resend-btn:hover {
    background: var(--secondary);
    color: #000;
    transform: translateY(-2px);
}

/* STK USSD Fallback Accordion */
.stk-ussd-box {
    border-radius: 14px;
    overflow: hidden;
}

.stk-ussd-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: #94a3b8;
    transition: var(--transition);
}

.stk-ussd-header:hover {
    color: white;
    background: rgba(255, 255, 255, 0.07);
}

.stk-ussd-body {
    padding: 1rem 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.88rem;
    color: #cbd5e1;
}

.ussd-steps {
    padding-left: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.merchant-code {
    color: var(--secondary);
    background: rgba(245, 158, 11, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
}

/* STK Buttons in Orders Page */
.stk-spotlight-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.stk-spotlight-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.stk-small-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    transition: var(--transition);
}

.stk-small-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}

.history-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-status-badge.paid {
    color: #10B981;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Floating Feedback Button */
.feedback-float-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.3rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    z-index: 990;
    transition: var(--transition);
}

.feedback-float-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.4);
}

/* Hide feedback button automatically when cart overlay or checkout modal is active */
body:has(.cart-overlay.active) .feedback-float-btn,
body:has(.checkout-modal-overlay.active) .feedback-float-btn,
.cart-overlay.active ~ .feedback-float-btn,
.checkout-modal-overlay.active ~ .feedback-float-btn {
    display: none !important;
}

@media (max-width: 600px) {
    .feedback-float-btn {
        bottom: 20px;
        right: 15px;
        padding: 0.6rem 1rem;
        font-size: 0.82rem;
    }
}

