:root {
    /* Color Variables - Light Mode */
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --secondary: #7209b7;
    --secondary-dark: #5a08a1;
    --success: #4cc9f0;
    --success-dark: #3ab0d9;
    --danger: #f72585;
    --danger-dark: #e11574;
    --warning: #f8961e;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --border: #e9ecef;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --gradient: linear-gradient(135deg, #4361ee 0%, #7209b7 100%);
    
    /* Additional Colors */
    --body-bg: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --card-bg: #ffffff;
    --card-border: #4361ee;
    --alert-error-bg: #ffe6e6;
    --alert-error-color: #d63031;
    --alert-error-border: #d63031;
    --alert-success-bg: #e6f7e6;
    --alert-success-color: #27ae60;
    --alert-success-border: #27ae60;
    --status-pending-bg: #fff3cd;
    --status-pending-color: #856404;
    --status-paid-bg: #d1edff;
    --status-paid-color: #4361ee;
    --status-checking-bg: #fff3cd;
    --status-checking-color: #856404;
    --status-error-bg: #f8d7da;
    --status-error-color: #721c24;
    --item-bg: #f8f9fa;
    --empty-state-bg: #ffffff;
    --empty-state-color: #6c757d;
    
    /* Font Sizes (adjusted by dividing original rem values by 2) */
    --font-size-xs: 0.45rem;
    --font-size-sm: 0.65rem;
    --font-size-base: 0.9rem;
    --font-size-lg: 1.1rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
}

.darkmode {
    /* Color Variables - Dark Mode */
    --primary: #5a7dff;
    --primary-dark: #4a6df0;
    --secondary: #8a2be2;
    --secondary-dark: #7a1bd2;
    --success: #6bd4f9;
    --success-dark: #5bc3e9;
    --danger: #ff4d94;
    --danger-dark: #ee3d83;
    --warning: #ffa726;
    --light: #2d3748;
    --dark: #f7fafc;
    --gray: #a0aec0;
    --border: #4a5568;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --gradient: linear-gradient(135deg, #5a7dff 0%, #8a2be2 100%);
    
    /* Additional Colors - Dark Mode */
    --body-bg: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    --card-bg: #2d3748;
    --card-border: #5a7dff;
    --alert-error-bg: #2d0000;
    --alert-error-color: #ff6b6b;
    --alert-error-border: #ff6b6b;
    --alert-success-bg: #002d00;
    --alert-success-color: #6bff6b;
    --alert-success-border: #6bff6b;
    --status-pending-bg: #332701;
    --status-pending-color: #fbbf24;
    --status-paid-bg: #0a2942;
    --status-paid-color: #5a7dff;
    --status-checking-bg: #332701;
    --status-checking-color: #fbbf24;
    --status-error-bg: #2c0b0e;
    --status-error-color: #fc8181;
    --item-bg: #4a5568;
    --empty-state-bg: #2d3748;
    --empty-state-color: #a0aec0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--body-bg);
    min-height: 100vh;
    color: var(--dark);
}

.epulse-main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 0.5rem; /* 2rem/2 = 1rem, 1rem/2 = 0.5rem */
}

.epulse-page-title {
    font-size: var(--font-size-4xl); /* 2.5rem/2 = 1.25rem but using variable */
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem; /* 2rem/2 = 1rem */
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wallet-balance-banner {
    background: var(--gradient);
    color: white;
    padding: 0.75rem; /* 1.5rem/2 = 0.75rem */
    border-radius: 7.5px; /* 15px/2 = 7.5px */
    margin-bottom: 1rem; /* 2rem/2 = 1rem */
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    animation: slideInUp 0.6s ease;
}

.wallet-balance-content {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* 1rem/2 = 0.5rem */
}

.wallet-balance-content i {
    font-size: 1.25rem; /* 2.5rem/2 = 1.25rem */
    opacity: 0.9;
}

.wallet-label {
    display: block;
    font-size: var(--font-size-xs); /* 0.9rem/2 = 0.45rem but using variable */
    opacity: 0.9;
}

.wallet-amount {
    display: block;
    font-size: var(--font-size-3xl); /* 2rem/2 = 1rem but using variable */
    font-weight: 700;
}

.epulse-alert {
    padding: 0.5rem 0.75rem; /* 1rem/2 = 0.5rem, 1.5rem/2 = 0.75rem */
    border-radius: 5px; /* 10px/2 = 5px */
    margin-bottom: 0.75rem; /* 1.5rem/2 = 0.75rem */
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideInDown 0.5s ease;
}

.epulse-alert--error {
    background: var(--alert-error-bg);
    color: var(--alert-error-color);
    border-left: 2px solid var(--alert-error-border); /* 4px/2 = 2px */
}

.epulse-alert--success {
    background: var(--alert-success-bg);
    color: var(--alert-success-color);
    border-left: 2px solid var(--alert-success-border); /* 4px/2 = 2px */
}

.epulse-alert button {
    background: none;
    border: none;
    font-size: var(--font-size-lg); /* 1.2rem/2 = 0.6rem but using variable */
    cursor: pointer;
    color: inherit;
}

.epulse-order-list {
    display: grid;
    gap: 0.75rem; /* 1.5rem/2 = 0.75rem */
}

.epulse-order-card {
    background: var(--card-bg);
    border-radius: 7.5px; /* 15px/2 = 7.5px */
    padding: 0.75rem; /* 1.5rem/2 = 0.75rem */
    box-shadow: var(--shadow);
    border-left: 2px solid var(--card-border); /* 4px/2 = 2px */
    transition: all 0.3s ease;
    animation: fadeIn 0.6s ease;
}

.epulse-order-card:hover {
    transform: translateY(-2.5px); /* 5px/2 = 2.5px */
    box-shadow: 0 4px 7.5px rgba(0, 0, 0, 0.15); /* 8px/2 = 4px, 15px/2 = 7.5px */
}

.epulse-order-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem; /* 1rem/2 = 0.5rem */
    padding-bottom: 0.5rem; /* 1rem/2 = 0.5rem */
    border-bottom: 1px solid var(--border); /* 2px/2 = 1px */
}

.epulse-order-card__id {
    font-size: var(--font-size-lg); /* 1.1rem/2 = 0.55rem but using variable */
    font-weight: 600;
    color: var(--primary);
}

.epulse-order-card__details {
    margin-bottom: 0.75rem; /* 1.5rem/2 = 0.75rem */
}

.epulse-order-card__detail-item {
    margin-bottom: 0.25rem; /* 0.5rem/2 = 0.25rem */
    display: flex;
    align-items: center;
    gap: 0.25rem; /* 0.5rem/2 = 0.25rem */
}

.epulse-status-value {
    padding: 0.125rem 0.375rem; /* 0.25rem/2 = 0.125rem, 0.75rem/2 = 0.375rem */
    border-radius: 10px; /* 20px/2 = 10px */
    font-size: var(--font-size-xs); /* 0.85rem/2 = 0.425rem but using variable */
    font-weight: 600;
    text-transform: uppercase;
}

.epulse-status-value--pending {
    background: var(--status-pending-bg);
    color: var(--status-pending-color);
}

.epulse-status-value--paid {
    background: var(--status-paid-bg);
    color: var(--status-paid-color);
}

.epulse-status-value--checking {
    background: var(--status-checking-bg);
    color: var(--status-checking-color);
    animation: pulse 1.5s infinite;
}

.epulse-status-value--error {
    background: var(--status-error-bg);
    color: var(--status-error-color);
}

.digital-badge {
    background: var(--success);
    color: white;
    padding: 0.125rem 0.375rem; /* 0.25rem/2 = 0.125rem, 0.75rem/2 = 0.375rem */
    border-radius: 10px; /* 20px/2 = 10px */
    font-size: var(--font-size-xs); /* 0.85rem/2 = 0.425rem but using variable */
    display: inline-flex;
    align-items: center;
    gap: 0.125rem; /* 0.25rem/2 = 0.125rem */
}

.epulse-usd-equiv {
    font-size: var(--font-size-xs); /* 0.9rem/2 = 0.45rem but using variable */
    color: var(--gray);
    margin-left: 0.25rem; /* 0.5rem/2 = 0.25rem */
}

.epulse-card-content-title {
    font-size: var(--font-size-lg); /* 1.1rem/2 = 0.55rem but using variable */
    font-weight: 600;
    margin-bottom: 0.5rem; /* 1rem/2 = 0.5rem */
    color: var(--dark);
}

.epulse-order-card__items-section {
    margin-bottom: 0.75rem; /* 1.5rem/2 = 0.75rem */
}

.epulse-order-card__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.375rem; /* 0.75rem/2 = 0.375rem */
    background: var(--item-bg);
    border-radius: 4px; /* 8px/2 = 4px */
    margin-bottom: 0.25rem; /* 0.5rem/2 = 0.25rem */
}

.epulse-order-card__item-name {
    font-weight: 500;
}

.epulse-order-card__item-details {
    color: var(--gray);
    font-size: var(--font-size-xs); /* 0.9rem/2 = 0.45rem but using variable */
}

.epulse-order-card__actions {
    display: flex;
    gap: 0.375rem; /* 0.75rem/2 = 0.375rem */
    flex-wrap: wrap;
}

.epulse-button {
    padding: 0.375rem 0.75rem; /* 0.75rem/2 = 0.375rem, 1.5rem/2 = 0.75rem */
    border: none;
    border-radius: 4px; /* 8px/2 = 4px */
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem; /* 0.5rem/2 = 0.25rem */
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: var(--font-size-xs); /* 0.9rem/2 = 0.45rem but using variable */
}

.epulse-button--primary {
    background: var(--primary);
    color: white;
}

.epulse-button--primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px); /* 2px/2 = 1px */
}

.epulse-button--secondary {
    background: var(--secondary);
    color: white;
}

.epulse-button--secondary:hover {
    background: var(--secondary-dark);
    transform: translateY(-1px); /* 2px/2 = 1px */
}

.epulse-button--success {
    background: var(--success);
    color: white;
}

.epulse-button--success:hover {
    background: var(--success-dark);
    transform: translateY(-1px); /* 2px/2 = 1px */
}

.epulse-button--danger {
    background: var(--danger);
    color: white;
}

.epulse-button--danger:hover {
    background: var(--danger-dark);
    transform: translateY(-1px); /* 2px/2 = 1px */
}

.epulse-button--disabled {
    background: var(--gray);
    color: white;
    cursor: not-allowed;
    opacity: 0.6;
}

.epulse-button--disabled:hover {
    transform: none;
}

.epulse-empty-state {
    text-align: center;
    padding: 1.5rem 1rem; /* 3rem/2 = 1.5rem, 2rem/2 = 1rem */
    background: var(--empty-state-bg);
    border-radius: 7.5px; /* 15px/2 = 7.5px */
    box-shadow: var(--shadow);
}

.epulse-empty-state__icon {
    font-size: 2rem; /* 4rem/2 = 2rem */
    color: var(--empty-state-color);
    margin-bottom: 0.5rem; /* 1rem/2 = 0.5rem */
}

.epulse-empty-state__message {
    font-size: var(--font-size-lg); /* 1.2rem/2 = 0.6rem but using variable */
    color: var(--empty-state-color);
    margin-bottom: 1rem; /* 2rem/2 = 1rem */
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(15px); /* 30px/2 = 15px */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-15px); /* 30px/2 = 15px */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@media (max-width: 768px) {
    .epulse-main-container {
        padding: 0.5rem 0.25rem; /* 1rem/2 = 0.5rem, 0.5rem/2 = 0.25rem */
    }

    .epulse-page-title {
        font-size: var(--font-size-3xl); /* 2rem/2 = 1rem but using variable */
    }

    .wallet-balance-banner {
        flex-direction: column;
        gap: 0.5rem; /* 1rem/2 = 0.5rem */
        text-align: center;
    }

    .wallet-balance-content {
        flex-direction: column;
        gap: 0.25rem; /* 0.5rem/2 = 0.25rem */
    }

    .epulse-order-card__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem; /* 0.5rem/2 = 0.25rem */
    }

    .epulse-order-card__actions {
        flex-direction: column;
    }

    .epulse-button {
        width: 100%;
        justify-content: center;
    }
}