:root {
    --mtn-yellow: #ffcc00;
    --mtn-dark: #000000;
    --mtn-light: #fff9e6;
    --airteltigo: #1F3B90;
    --airteltigo-red: #822A70;
    --airteltigo-light: #ffebf0;
    --telecel-red: #E32526;
    --telecel-dark: #C11D1E;
    --card-bg: #ffffff;
    --text-dark: #212529;
    --text-light: #6c757d;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --error: #dc3545;
    --success: #28a745;
    --focus: #80bdff;
    --info: #17a2b8;
    --warning: #ffc107;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7ff 0%, #e8ecff 100%);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    padding-top: 80px;
}
.container {
    flex: 1 0 auto;
    max-width: 1200px; /* Sets a maximum width for the content */
    margin-left: auto;  /* Centers the container horizontally */
    margin-right: auto; /* Centers the container horizontally */
    padding-left: 15px; /* Adds some space on the sides */
    padding-right: 15px;/* Adds some space on the sides */
}

/* Header Styles */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-text {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-dark);
}

.logo-text span {
    color: var(--mtn-yellow);
}

/* Navigation */
.main-nav {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 6px;
    transition: all 0.3s;
    position: relative;
}

.nav-item:hover {
    background-color: #f8f9fa;
}

.nav-item.active {
    background-color: #f8f9fa;
    font-weight: 600;
}
.nav-link{
    text-decoration: none;
}

.nav-item i {
    margin-right: 8px;
    font-size: 16px;
}

#cart-count {
    background-color: var(--mtn-yellow);
    color: var(--text-dark);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    margin-left: 5px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-dark);
}

/* Main Content */
.main-content {
    padding: 40px 0;
    text-align: center;
    flex: 1; /* Add this */
}

/* Alert Messages */
.alert {
    padding: 1rem 1.5rem;
    margin: 1rem auto;
    max-width: 800px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    box-shadow: var(--shadow);
    animation: slideDown 0.5s ease-out;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero {
    margin-bottom: 50px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.provider-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
    padding: 30px 20px;
    position: relative;
}

.provider-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.provider-card.mtn {
    border-top: 5px solid var(--mtn-yellow);
}

.provider-card.airteltigo {
    border-top: 5px solid var(--airteltigo);
}

.provider-card.telecel {
    border-top: 5px solid var(--telecel-red);
}

.provider-icon {
    font-size: 50px;
    margin-bottom: 20px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.provider-icon.mtn {
    color: var(--mtn-yellow);
}

.provider-icon.airteltigo {
    color: var(--airteltigo);
}

.provider-icon.telecel {
    color: var(--telecel-red);
}

.provider-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.provider-description {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 0.95rem;
    min-height: 60px;
}

.view-bundles-btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid;
}

.view-bundles-btn.mtn {
    background: var(--mtn-yellow);
    color: white;
    border-color: var(--mtn-yellow);
}

.view-bundles-btn.mtn:hover {
    background: transparent;
    color: var(--mtn-yellow);
}

.view-bundles-btn.airteltigo {
    background: var(--airteltigo);
    color: white;
    border-color: var(--airteltigo);
}

.view-bundles-btn.airteltigo:hover {
    background: transparent;
    color: var(--airteltigo);
}

.view-bundles-btn.telecel {
    background: var(--telecel-red);
    color: white;
    border-color: var(--telecel-red);
}

.view-bundles-btn.telecel:hover {
    background: transparent;
    color: var(--telecel-red);
}

.instructions {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-top: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: left;
}

.instructions h2 {
    color: var(--text-dark);
    margin-bottom: 20px;
    text-align: center;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    counter-reset: step-counter;
}

.step {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    position: relative;
    padding-left: 70px;
}

.step:before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 20px;
    top: 20px;
    width: 40px;
    height: 40px;
    background: var(--mtn-yellow);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.step h3 {
    margin-bottom: 10px;
    color: var(--text-dark);
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 0;
    color: var(--text-light);
    margin-top: 40px;
    background: white;
    border-top: 1px solid #eee;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.footer-links {
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

footer .footer-links a {
    color: white !important;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    background: #007bff !important;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 40px;
    transition: all 0.3s ease;
}

footer .footer-links a:hover {
    background: #0056b3 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Admin Dashboard Button */
.admin-dashboard-btn {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    color: white !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 25px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-size: 1.1rem !important;
    font-weight: bold !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    min-height: 40px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.admin-dashboard-btn:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
}

.footer-bottom-text {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Admin Dashboard Button Icon */
.admin-dashboard-btn i {
    font-size: 0.9rem;
}

/* Security Alert Modal */
.security-alert-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.security-alert-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    animation: slideIn 0.3s ease;
}

.security-alert-header {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.security-alert-header i {
    font-size: 1.5rem;
}

.security-alert-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.security-alert-body {
    padding: 1.5rem;
    color: #374151;
    line-height: 1.6;
}

.security-alert-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
}

.security-alert-footer .btn {
    padding: 0.5rem 1.5rem;
    font-weight: 600;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Email Verification Notice */
.verification-notice {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffc107;
    border-radius: 12px;
    margin-bottom: 2rem;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
}

.notice-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notice-content i {
    font-size: 2rem;
    color: #ffc107;
    flex-shrink: 0;
}

.notice-text h3 {
    color: #856404;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.notice-text p {
    color: #856404;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.btn-verify {
    background: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%);
    color: #856404;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-verify:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
    color: #856404;
    text-decoration: none;
}

/* Strict verification notice for unverified users */
.verification-notice.strict {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border: 1px solid #c0392b;
    color: white;
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.4);
}

.verification-notice.strict .notice-content i {
    color: white;
}

.verification-notice.strict .notice-text h3 {
    color: white;
}

.verification-notice.strict .notice-text p {
    color: white;
}

.verification-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-resend {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #6c757d;
}

.verification-notice.strict .btn-verify,
.verification-notice.strict .btn-resend {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.verification-notice.strict .btn-resend {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-resend:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
    color: white;
    text-decoration: none;
}

.verification-notice.strict .btn-verify:hover,
.verification-notice.strict .btn-resend:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

/* Disabled provider cards */
.providers-grid.disabled {
    opacity: 0.6;
    pointer-events: none;
}

.provider-card.disabled {
    background: #f8f9fa;
    border-color: #dee2e6;
    position: relative;
}

.provider-card.disabled::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    pointer-events: none;
}

.view-bundles-btn.disabled {
    background: #6c757d;
    color: white;
    cursor: not-allowed;
    opacity: 0.7;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.view-bundles-btn.disabled:hover {
    background: #6c757d;
    transform: none;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .notice-content {
        flex-direction: column;
        text-align: center;
    }
    
    .notice-content i {
        font-size: 1.5rem;
    }
}

/* Back link */
.back-link {
    color: var(--text-light);
    text-decoration: none;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
    color: var(--mtn-yellow);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.close-btn {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover,
.close-btn:focus {
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

.modal-title {
    text-align: center;
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.modal-body {
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-light);
}

.purchase-summary {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.summary-label {
    font-weight: 500;
    color: var(--text-light);
}

.summary-value {
    font-weight: 600;
    color: var(--text-dark);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

/* Enhanced phone number input styling */
.phone-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.phone-prefix {
    background-color: #f1f1f1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 6px 0 0 6px;
    font-weight: 500;
}

.phone-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 0 6px 6px 0;
    font-size: 16px;
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #2c3e50;
    background-color: #fafafa;
    transition: all 0.3s;
    padding-left: 15px;
}

.phone-input:focus {
    border-color: var(--focus);
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    background-color: #fff;
    transform: translateY(-1px);
}

.phone-input:hover {
    border-color: #bbb;
    background-color: #f5f5f5;
}

.phone-input::placeholder {
    color: #999;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.input-error {
    border-color: var(--error) !important;
}

.input-success {
    border-color: var(--success) !important;
}

.error-message {
    color: var(--error);
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.validation-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
}

.validation-icon.valid {
    color: var(--success);
    display: block;
}

.validation-icon.invalid {
    color: var(--error);
    display: block;
}

.purchase-btn {
    background: var(--mtn-yellow);
    color: var(--text-dark);
    border: none;
    padding: 15px 30px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}

.purchase-btn:hover {
    background: #e6b800;
}

.purchase-btn:disabled {
    background: var(--text-light);
    cursor: not-allowed;
}

/* Cart link */
.cart-link {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--mtn-yellow);
    color: var(--text-dark);
    padding: 15px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 50;
}

.cart-link:hover {
    transform: translateY(-3px);
    background: #e6b800;
}

.cart-count {
    background: var(--text-dark);
    color: white;
    border-radius: 50%;
    padding: 5px 8px;
    font-size: 12px;
}

/* Cart page specific styles */
.cart-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cart-section {
    background: white;
    padding: 1.2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.cart-section h2 {
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
    color: var(--text-dark);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--mtn-yellow);
}

.cart-table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 600px;
}

.cart-table th {
    background-color: #f8f9fa;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    padding: 1rem 0.75rem;
    text-align: left;
    white-space: nowrap;
}

.cart-table td {
    padding: 1rem 0.75rem;
    border-bottom: 1px solid #dee2e6;
    vertical-align: top;
}

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

.remove-btn {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.2s;
    padding: 5px;
    border-radius: 4px;
}

.remove-btn:hover {
    color: #c82333;
    background-color: #f8f9fa;
}

.summary-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: fit-content;
}

.summary-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.total-amount, .total-count {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.total-amount .label, .total-count .label {
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.total-amount .value {
    font-size: 2rem;
    font-weight: 700;
    color: #2e7d32;
}

.total-count .value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.wallet-section {
    background-color: #e8f4ff;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.wallet-label {
    font-weight: 500;
    color: var(--text-light);
    font-size: 0.9rem;
}

.wallet-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--info);
    margin: 0.5rem 0;
}

.top-up-btn {
    background-color: var(--info);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.top-up-btn:hover {
    background-color: #138496;
}

.checkout-btn {
    width: 100%;
    padding: 0.8rem;
    border: none;
    background: var(--mtn-yellow);
    color: var(--text-dark);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.checkout-btn:hover {
    background: #e6b800;
}

.checkout-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.checkout-btn.success {
    background: var(--success);
    color: white;
}

/* Order history table */
.order-history-section {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    width: 100%;
    overflow-x: auto;
}

.order-table-container {
    overflow-x: auto;
    width: 100%;
}

.order-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 600px;
}

.order-table th, .order-table td {
    text-align: left;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

.order-table th {
    background-color: #f8f9fa;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
}

.empty-cart-message {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--text-light);
    font-style: italic;
    font-size: 1rem;
}

/* Notification */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 15px 20px;
    background-color: var(--success);
    color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    z-index: 1002;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(150%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.error {
    background-color: #dc3545;
}

/* Wallet balance */
.wallet-balance {
    background-color: var(--info);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 600;
}

.desktop-wallet {
    display: block;
}

.mobile-wallet {
    display: none;
}

/* Form elements in modal */
.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--info);
    box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.2);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--info);
    color: white;
}

.btn-primary:hover {
    background-color: #138496;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}
/* Login/Logout Button Visibility */
.logged-out .nav-item.logout-btn,
.logged-out .nav-item.cart-link,
.logged-out .nav-item.orders-link {
    display: none;
}

.logged-in .nav-item.login-btn {
    display: none;
}

/* Remove underline from wallet links in the header */
header a.desktop-wallet,
header a.mobile-wallet {
    text-decoration: none;

}

/* --- Direct Navigation Links --- */

/* Style for the new direct navigation links */
.nav-item.account-link,
.nav-item.logout-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Special styling for account link with profile picture */
.nav-item.account-link {
    padding: 4px;
    margin: 0 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-item.account-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Profile picture styling */
.profile-picture {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #e0e0e0;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-initials {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
}


.nav-item.logout-link {
    color: #dc3545; /* Red color for logout */
}

.nav-item.logout-link:hover {
    color: #c82333;
    background-color: rgba(220, 53, 69, 0.1);
}


/* --- Login/Logout Button Visibility --- */

/* When logged out, hide the protected navigation links */
.logged-out .nav-item.account-link,
.logged-out .nav-item.logout-link,
.logged-out .nav-item.cart-link,
.logged-out .nav-item.orders-link {
    display: none;
}

/* When logged in, hide the main Login button */
.logged-in .nav-item.login-btn {
    display: none;
}

/* User name visibility control */
.user-name-desktop {
    display: none;
    font-weight: 500;
    color: var(--text-dark);
}

.user-name-mobile {
    display: none;
    font-weight: 500;
    color: var(--text-dark);
}