/*
 * ============================================================================
 * شركة تؤمر - Public/Frontend Design System v2.0
 * ============================================================================
 * 
 * Professional CSS for public-facing affiliate pages
 * Extends the main SaaS theme with public-specific components
 * 
 * TABLE OF CONTENTS:
 * 1. Design Tokens (CSS Variables)
 * 2. Base Styles
 * 3. Container & Layout
 * 4. Dashboard Grid & Widgets
 * 5. Product Cards & Grid
 * 6. Buttons
 * 7. Forms
 * 8. Tables
 * 9. Badges & Alerts
 * 10. Modals
 * 11. Empty States
 * 12. Charts & Loaders
 * 13. Profile Layout
 * 14. Responsive Design
 * ============================================================================
 */

/* ============================================================================
   1. DESIGN TOKENS (CSS Variables)
   ============================================================================ */
:root {
    /* Primary Colors (Electric Cyan) */
    --eca-primary: #00E5FF;
    --eca-primary-dark: #00B3CC;
    --eca-primary-light: #33EBFF;
    
    /* Secondary (Hot Magenta) */
    --eca-secondary: #FF0055;
    
    /* Semantic Colors */
    --eca-success: #00FF88;
    --eca-success-dark: #00CC6A;
    --eca-danger: #FF3333;
    --eca-danger-dark: #CC2929;
    --eca-warning: #FFD700;
    --eca-warning-dark: #CCAC00;
    --eca-info: #3388FF;
    --eca-info-dark: #296DCC;
    
    /* Neutral Colors (Dark Void) */
    --eca-dark: #FFFFFF;
    --eca-dark-light: #E0E5F0;
    --eca-light: #05050A;
    --eca-muted: #6B728E;
    --eca-border: rgba(0, 229, 255, 0.12);
    --eca-border-light: rgba(0, 229, 255, 0.06);
    
    /* Shadows (Neon Glow) */
    --eca-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    --eca-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --eca-shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.6);
    --eca-shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.5);
    --eca-shadow-primary: 0 10px 30px -5px rgba(0, 229, 255, 0.3);
    
    /* Gradients */
    --eca-gradient: linear-gradient(135deg, #00E5FF 0%, #FF0055 100%);
    --eca-gradient-success: linear-gradient(135deg, #00CC6A 0%, #00FF88 100%);
    --eca-gradient-warning: linear-gradient(135deg, #FFD700 0%, #CCAC00 100%);
    
    /* Typography */
    --eca-font: 'Alexandria', sans-serif;
    
    /* Spacing */
    --eca-space-1: 0.25rem;
    --eca-space-2: 0.5rem;
    --eca-space-3: 0.75rem;
    --eca-space-4: 1rem;
    --eca-space-5: 1.25rem;
    --eca-space-6: 1.5rem;
    --eca-space-8: 2rem;
    
    /* Border Radius */
    --eca-radius-sm: 6px;
    --eca-radius-md: 10px;
    --eca-radius-lg: 16px;
    --eca-radius-xl: 20px;
    --eca-radius-full: 9999px;
    
    /* Transitions */
    --eca-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================================
   2. BASE STYLES
   ============================================================================ */
.eca-public-page {
    font-family: var(--eca-font);
    color: var(--eca-dark);
    background: var(--eca-light);
    line-height: 1.6;
}

/* ============================================================================
   3. CONTAINER & LAYOUT
   ============================================================================ */
.eca-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.eca-page-header {
    margin-bottom: var(--eca-space-8);
}

.eca-page-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--eca-dark);
    margin-bottom: var(--eca-space-2);
}

.eca-page-subtitle {
    font-size: 1rem;
    color: var(--eca-muted);
}

/* ============================================================================
   4. DASHBOARD GRID & WIDGETS
   ============================================================================ */
.eca-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 30px 0;
}

.eca-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Widget Cards */
.eca-widget {
    background: rgba(15, 15, 25, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 28px;
    border-radius: var(--eca-radius-lg);
    box-shadow: var(--eca-shadow-lg);
    border-right: 4px solid var(--eca-primary);
    transition: var(--eca-transition);
}

.eca-widget:hover {
    transform: translateY(-4px);
    box-shadow: var(--eca-shadow-xl);
}

.eca-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.eca-widget-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--eca-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.eca-widget-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--eca-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: var(--eca-gradient);
    color: white;
    box-shadow: var(--eca-shadow-primary);
}

.eca-widget-value {
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--eca-dark);
    margin-bottom: 8px;
    line-height: 1.2;
}

.eca-widget-subtitle {
    font-size: 13px;
    color: var(--eca-muted);
}

/* Hero Card */
.eca-hero-card {
    background: var(--eca-gradient);
    color: white;
    padding: 32px;
    border-radius: var(--eca-radius-xl);
    box-shadow: var(--eca-shadow-primary);
    position: relative;
    overflow: hidden;
}

.eca-hero-card::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -150px;
    left: -100px;
}

.eca-hero-card h1 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.eca-hero-card p {
    opacity: 0.9;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* ============================================================================
   5. PRODUCT CARDS & GRID
   ============================================================================ */
.eca-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin: 30px 0;
}

.eca-product-card {
    background: rgba(15, 15, 25, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--eca-radius-lg);
    overflow: hidden;
    box-shadow: var(--eca-shadow);
    transition: var(--eca-transition);
    border: 1px solid var(--eca-border);
}

.eca-product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--eca-shadow-xl);
    border-color: var(--eca-primary-light);
}

.eca-product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: var(--eca-light);
    transition: transform 0.5s ease;
}

.eca-product-card:hover .eca-product-image {
    transform: scale(1.05);
}

.eca-product-image-wrapper {
    position: relative;
    overflow: hidden;
}

.eca-product-body {
    padding: 20px;
}

.eca-product-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--eca-dark);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.eca-product-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--eca-primary);
    margin-bottom: 12px;
}

.eca-product-price small {
    font-size: 14px;
    color: var(--eca-muted);
}

.eca-commission-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(0, 255, 136, 0.15);
    color: var(--eca-success);
    border-radius: var(--eca-radius-full);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
}

.eca-product-actions {
    display: flex;
    gap: 10px;
}

/* ============================================================================
   6. BUTTONS
   ============================================================================ */
.eca-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--eca-radius-md);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: var(--eca-transition);
    text-decoration: none;
    text-align: center;
    font-family: var(--eca-font);
}

.eca-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.eca-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.eca-btn-primary {
    background: var(--eca-gradient);
    color: white;
    box-shadow: var(--eca-shadow-primary);
}

.eca-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(102, 126, 234, 0.4);
    color: white;
}

.eca-btn-secondary {
    background: white;
    color: var(--eca-dark);
    border: 2px solid var(--eca-border);
}

.eca-btn-secondary:hover {
    background: var(--eca-light);
    border-color: var(--eca-primary);
    color: var(--eca-primary);
}

.eca-btn-success {
    background: var(--eca-gradient-success);
    color: white;
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.3);
}

.eca-btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(16, 185, 129, 0.4);
}

.eca-btn-warning {
    background: var(--eca-gradient-warning);
    color: white;
    box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.3);
}

.eca-btn-danger {
    background: var(--eca-danger);
    color: white;
    box-shadow: 0 10px 25px -5px rgba(239, 68, 68, 0.3);
}

.eca-btn-outline {
    background: transparent;
    color: var(--eca-primary);
    border: 2px solid var(--eca-primary);
}

.eca-btn-outline:hover {
    background: var(--eca-primary);
    color: white;
}

.eca-btn-block {
    width: 100%;
}

.eca-btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.eca-btn-lg {
    padding: 16px 32px;
    font-size: 17px;
}

/* Icon Button */
.eca-btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--eca-radius-md);
    background: var(--eca-light);
    color: var(--eca-muted);
    border: 1px solid var(--eca-border);
}

.eca-btn-icon:hover {
    background: var(--eca-border);
    color: var(--eca-dark);
}

/* ============================================================================
   7. FORMS
   ============================================================================ */
.eca-form-group {
    margin-bottom: 24px;
}

.eca-form-label {
    display: block;
    font-weight: 600;
    color: var(--eca-dark);
    margin-bottom: 8px;
    font-size: 14px;
}

.eca-form-label.required::after {
    content: ' *';
    color: var(--eca-danger);
}

.eca-form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--eca-border);
    border-radius: var(--eca-radius-md);
    font-size: 15px;
    transition: var(--eca-transition);
    background: white;
    font-family: var(--eca-font);
}

.eca-form-control:focus {
    outline: none;
    border-color: var(--eca-primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.eca-form-control.error {
    border-color: var(--eca-danger);
}

.eca-form-control::placeholder {
    color: var(--eca-muted);
}

.eca-form-help {
    font-size: 13px;
    color: var(--eca-muted);
    margin-top: 6px;
}

.eca-form-error {
    font-size: 13px;
    color: var(--eca-danger);
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Select */
.eca-form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748B' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 16px center;
    padding-left: 40px;
}

/* Checkbox & Radio */
.eca-form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.eca-form-check-input {
    width: 20px;
    height: 20px;
    accent-color: var(--eca-primary);
}

/* ============================================================================
   8. TABLES
   ============================================================================ */
.eca-table-container {
    background: rgba(15, 15, 25, 0.7);
    backdrop-filter: blur(16px);
    border-radius: var(--eca-radius-lg);
    box-shadow: var(--eca-shadow);
    overflow: hidden;
    margin: 30px 0;
    border: 1px solid var(--eca-border);
}

.eca-table-header {
    padding: 24px;
    background: var(--eca-light);
    border-bottom: 1px solid var(--eca-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.eca-table-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--eca-dark);
}

.eca-table {
    width: 100%;
    border-collapse: collapse;
}

.eca-table thead {
    background: rgba(0, 229, 255, 0.05);
}

.eca-table th {
    padding: 16px 20px;
    text-align: right;
    font-weight: 700;
    font-size: 13px;
    color: var(--eca-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--eca-border);
}

.eca-table td {
    padding: 18px 20px;
    border-bottom: 1px solid var(--eca-border);
    color: var(--eca-dark);
    font-size: 14px;
}

.eca-table tbody tr {
    transition: background 0.2s ease;
}

.eca-table tbody tr:hover {
    background: var(--eca-light);
}

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

/* ============================================================================
   9. BADGES & ALERTS
   ============================================================================ */

/* Badges */
.eca-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: var(--eca-radius-full);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.eca-badge-success {
    background: rgba(0, 255, 136, 0.15);
    color: var(--eca-success);
}

.eca-badge-pending {
    background: rgba(255, 215, 0, 0.15);
    color: var(--eca-warning);
}

.eca-badge-danger {
    background: rgba(255, 51, 51, 0.15);
    color: var(--eca-danger);
}

.eca-badge-info {
    background: rgba(51, 136, 255, 0.15);
    color: var(--eca-info);
}

.eca-badge-primary {
    background: rgba(0, 229, 255, 0.15);
    color: var(--eca-primary);
}

/* Alerts */
.eca-alert {
    padding: 16px 20px;
    border-radius: var(--eca-radius-md);
    margin: 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
}

.eca-alert-success {
    background: #D1FAE5;
    color: #065F46;
    border-right: 4px solid var(--eca-success);
}

.eca-alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border-right: 4px solid var(--eca-danger);
}

.eca-alert-warning {
    background: #FEF3C7;
    color: #92400E;
    border-right: 4px solid var(--eca-warning);
}

.eca-alert-info {
    background: #DBEAFE;
    color: #1E40AF;
    border-right: 4px solid var(--eca-info);
}

.eca-alert i {
    font-size: 18px;
    margin-top: 2px;
}

/* ============================================================================
   10. MODALS
   ============================================================================ */
.eca-modal {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100000;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
}

.eca-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

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

.eca-modal-dialog {
    background: rgba(15, 15, 25, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--eca-border);
    border-radius: var(--eca-radius-xl);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 229, 255, 0.1);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.eca-modal-header {
    padding: 28px;
    border-bottom: 1px solid var(--eca-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.eca-modal-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--eca-dark);
}

.eca-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
    color: var(--eca-muted);
}

.eca-modal-close:hover {
    background: var(--eca-light);
}

.eca-modal-body {
    padding: 28px;
}

.eca-modal-footer {
    padding: 24px 28px;
    border-top: 1px solid var(--eca-border);
    display: flex;
    justify-content: flex-start;
    gap: 12px;
}

/* ============================================================================
   11. EMPTY STATES
   ============================================================================ */
.eca-empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--eca-muted);
}

.eca-empty-state-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
    color: var(--eca-primary);
}

.eca-empty-state h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--eca-dark);
}

.eca-empty-state p {
    font-size: 16px;
    margin-bottom: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================================
   12. CHARTS & LOADERS
   ============================================================================ */

/* Chart Wrapper */
.eca-chart-wrapper {
    background: white;
    padding: 24px;
    border-radius: var(--eca-radius-lg);
    box-shadow: var(--eca-shadow);
    margin: 20px 0;
}

.eca-chart-wrapper h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--eca-dark);
}

/* Spinner */
.eca-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    border-top-color: var(--eca-primary);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Skeleton Loader */
.eca-skeleton {
    background: linear-gradient(90deg, #F0F0F0 25%, #E0E0E0 50%, #F0F0F0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.eca-skeleton-text {
    height: 16px;
    margin-bottom: 10px;
}

.eca-skeleton-title {
    height: 24px;
    width: 60%;
    margin-bottom: 12px;
}

.eca-skeleton-image {
    height: 200px;
    width: 100%;
}

/* Link Copy Animation */
.eca-link-copied {
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ============================================================================
   13. PROFILE LAYOUT
   ============================================================================ */
.eca-profile-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    align-items: start;
}

.eca-profile-sidebar {
    background: white;
    border-radius: var(--eca-radius-lg);
    padding: 24px;
    box-shadow: var(--eca-shadow);
    text-align: center;
}

.eca-avatar-lg {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--eca-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 700;
    margin: 0 auto 16px;
}

.eca-profile-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--eca-dark);
    margin-bottom: 4px;
}

.eca-profile-email {
    font-size: 14px;
    color: var(--eca-muted);
}

/* Success Animation */
.eca-success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.eca-success-checkmark circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke: var(--eca-success);
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.eca-success-checkmark path {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: var(--eca-success);
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.3s forwards;
}

@keyframes stroke {
    100% { stroke-dashoffset: 0; }
}

/* Mobile Sticky Bar */
.mobile-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 12px 20px;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--eca-border);
}

/* ============================================================================
   14. RESPONSIVE DESIGN
   ============================================================================ */
@media (max-width: 900px) {
    .eca-container {
        padding: 20px 16px;
        max-width: 100%;
    }

    .eca-dashboard-grid,
    .eca-products-grid,
    .eca-stat-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
        margin: 20px 0;
    }

    /* Tables */
    .eca-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 15px 0;
        border-radius: var(--eca-radius-md);
    }

    .eca-table {
        min-width: 700px;
    }

    .eca-table th,
    .eca-table td {
        white-space: nowrap;
        padding: 12px 15px;
        font-size: 13px;
    }

    /* Widgets */
    .eca-widget {
        padding: 20px;
    }

    .eca-widget-value {
        font-size: 28px;
    }

    .eca-hero-card {
        padding: 20px;
    }

    .eca-hero-card h1 {
        font-size: 24px !important;
    }

    /* Product Actions */
    .eca-product-actions {
        flex-direction: column;
        gap: 8px;
    }

    .eca-btn-block-mobile {
        width: 100%;
        justify-content: center;
    }

    /* Profile Layout */
    .eca-profile-layout {
        grid-template-columns: 1fr;
    }

    .eca-profile-sidebar {
        margin-bottom: 20px;
    }

    body {
        overflow-x: hidden;
    }
}

@media (max-width: 768px) {
    .eca-page-title {
        font-size: 1.5rem;
    }
    
    .eca-avatar-lg {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }

    .eca-product-card {
        margin-bottom: 20px;
    }

    .eca-btn {
        padding: 10px 16px;
        font-size: 14px;
    }

    .mobile-sticky-bar {
        display: flex;
    }

    .eca-modal-dialog {
        width: 95%;
        max-height: 85vh;
    }

    .eca-modal-header,
    .eca-modal-body,
    .eca-modal-footer {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .eca-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .eca-product-card {
        border-radius: var(--eca-radius-md);
    }
    
    .eca-product-image {
        height: 150px;
    }
    
    .eca-product-title {
        font-size: 14px;
    }
    
    .eca-product-price {
        font-size: 18px;
    }
    
    .eca-product-body {
        padding: 12px;
    }

    .eca-widget {
        padding: 16px;
    }
    
    .eca-widget-value {
        font-size: 24px;
    }
    
    .eca-widget-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
}

/* RTL Specific */
[dir="rtl"] .eca-widget {
    border-right: 4px solid var(--eca-primary);
    border-left: none;
}

[dir="rtl"] .eca-alert {
    border-right-width: 4px;
    border-left-width: 0;
}

[dir="rtl"] .eca-form-select {
    background-position: left 16px center;
    padding-left: 40px;
    padding-right: 18px;
}

/* ============================================================================
   END OF PUBLIC CSS
   ============================================================================ */
