/* ═══════════════════════════════════════════════════════════════
   ULTRA DOKAN DASHBOARD - PREMIUM FRONTEND STYLES v2.1.0
   Ultra Premium Design System
   Mahdi - 2024
   ═══════════════════════════════════════════════════════════════ */

/* ====== CSS VARIABLES ====== */
:root {
    --udd-primary: #00BCD4;
    --udd-primary-dark: #0097A7;
    --udd-primary-light: #4DD0E1;
    --udd-primary-rgb: 0, 188, 212;
    --udd-bg: #ffffff;
    --udd-text: #1f2937;
    --udd-text-secondary: #6b7280;
    --udd-button: #00BCD4;
    --udd-success: #10B981;
    --udd-warning: #F59E0B;
    --udd-danger: #EF4444;
    --udd-info: #3B82F6;
    --udd-gray-50: #f9fafb;
    --udd-gray-100: #f3f4f6;
    --udd-gray-200: #e5e7eb;
    --udd-gray-300: #d1d5db;
    --udd-gray-400: #9ca3af;
    --udd-gray-500: #6b7280;
    --udd-gray-600: #4b5563;
    --udd-gray-700: #374151;
    --udd-gray-800: #1f2937;
    --udd-gray-900: #111827;
    --udd-radius-sm: 12px;
    --udd-radius: 20px;
    --udd-radius-lg: 28px;
    --udd-radius-xl: 36px;
    --udd-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --udd-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    --udd-shadow-lg: 0 15px 50px rgba(0, 0, 0, 0.12);
    --udd-shadow-xl: 0 25px 80px rgba(0, 0, 0, 0.15);
    --udd-shadow-glow: 0 0 40px rgba(var(--udd-primary-rgb), 0.3);
    --udd-transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --udd-transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}


/* ====== HIDDEN SHORTCODES ====== */

.udd-hidden-shortcode {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    pointer-events: none !important;
}

.udd-widget-hidden,
.udd-column-hidden,
.udd-parent-hidden {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* Elementor specific - hide empty widget wrappers */
.elementor-widget:has(.udd-hidden-shortcode) {
    display: none !important;
}

/* Fallback for browsers without :has() support */
.elementor-widget-shortcode:empty,
.elementor-shortcode:empty {
    display: none !important;
}


/* ====== TOAST NOTIFICATIONS ====== */

.udd-toast-container {
    position: fixed;
    top: 24px;
    left: 24px;
    right: 24px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    pointer-events: none;
}

.udd-toast {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(248,250,252,0.95));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--udd-radius);
    box-shadow: var(--udd-shadow-xl), 0 0 0 1px rgba(255,255,255,0.5) inset;
    max-width: 450px;
    width: 100%;
    pointer-events: auto;
    transform: translateX(-120%) scale(0.9);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.udd-toast.show {
    transform: translateX(0) scale(1);
    opacity: 1;
}

.udd-toast::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--udd-primary), var(--udd-primary-light));
    border-radius: 0 var(--udd-radius) var(--udd-radius) 0;
}

.udd-toast-new_order::before { background: linear-gradient(180deg, var(--udd-success), #34D399); }
.udd-toast-order_status::before { background: linear-gradient(180deg, var(--udd-info), #60A5FA); }
.udd-toast-admin_message::before { background: linear-gradient(180deg, var(--udd-primary), var(--udd-primary-light)); }
.udd-toast-error::before { background: linear-gradient(180deg, var(--udd-danger), #F87171); }
.udd-toast-warning::before { background: linear-gradient(180deg, var(--udd-warning), #FBBF24); }

.udd-toast-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: linear-gradient(145deg, rgba(var(--udd-primary-rgb), 0.15), rgba(var(--udd-primary-rgb), 0.05));
    border-radius: 16px;
    animation: toastIconPulse 2s ease-in-out infinite;
}

@keyframes toastIconPulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.05) rotate(-3deg); }
    75% { transform: scale(1.05) rotate(3deg); }
}

.udd-toast-content {
    flex: 1;
    min-width: 0;
}

.udd-toast-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--udd-gray-900);
    margin-bottom: 6px;
    line-height: 1.4;
}

.udd-toast-message {
    font-size: 14px;
    color: var(--udd-gray-600);
    line-height: 1.6;
}

.udd-toast-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.udd-toast-view {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--udd-primary), var(--udd-primary-dark));
    color: white !important;
    font-size: 13px;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none !important;
    transition: var(--udd-transition);
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(var(--udd-primary-rgb), 0.4);
}

.udd-toast-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--udd-primary-rgb), 0.5);
}

.udd-toast-dismiss {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--udd-gray-400);
    font-size: 22px;
    cursor: pointer;
    border-radius: 10px;
    transition: var(--udd-transition);
}

.udd-toast-dismiss:hover {
    background: var(--udd-gray-100);
    color: var(--udd-gray-700);
    transform: rotate(90deg);
}

.udd-toast-progress {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--udd-primary), var(--udd-primary-light));
    animation: toastProgress 8s linear forwards;
    border-radius: 0 0 0 var(--udd-radius);
}

@keyframes toastProgress {
    from { width: 100%; }
    to { width: 0%; }
}


/* ====== BASE BOX - ULTRA PREMIUM ====== */

.udd-box {
    background: var(--udd-bg);
    border-radius: var(--udd-radius);
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: var(--udd-shadow);
    position: relative;
    overflow: hidden;
    transition: var(--udd-transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.udd-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--udd-primary), var(--udd-primary-light), var(--udd-primary));
    background-size: 200% 100%;
    animation: gradientFlow 3s ease infinite;
    border-radius: var(--udd-radius) var(--udd-radius) 0 0;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.udd-box::after {
    content: '';
    position: absolute;
    top: 5px;
    right: 0;
    left: 0;
    height: 80px;
    background: linear-gradient(180deg, rgba(var(--udd-primary-rgb), 0.03), transparent);
    pointer-events: none;
}

.udd-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--udd-shadow-xl), var(--udd-shadow-glow);
}

.udd-box-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 24px 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--udd-text);
    position: relative;
    z-index: 1;
}

.udd-icon {
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(145deg, rgba(var(--udd-primary-rgb), 0.15), rgba(var(--udd-primary-rgb), 0.05));
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(var(--udd-primary-rgb), 0.2);
}


/* ====== CLICKABLE BOX ====== */

.udd-box-clickable {
    display: block;
    text-decoration: none;
    color: inherit;
}

.udd-box-clickable:hover {
    text-decoration: none;
    color: inherit;
}

.udd-box-clickable .udd-box {
    cursor: pointer;
}


/* ====== CREDIT CARD (BALANCE) - ULTRA PREMIUM ====== */

.udd-credit-card {
    display: block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 40%, #f093fb 100%);
    border-radius: var(--udd-radius-lg);
    padding: 36px;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 240px;
    box-shadow: 0 25px 80px rgba(102, 126, 234, 0.4);
    transition: var(--udd-transition);
    text-decoration: none;
    margin-bottom: 24px;
}

.udd-credit-card::before {
    content: '';
    position: absolute;
    top: -100%;
    right: -100%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 50%);
    animation: cardShine 4s ease-in-out infinite;
}

@keyframes cardShine {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(20%, 20%) rotate(10deg); }
}

.udd-credit-card:hover {
    transform: translateY(-12px) rotateX(5deg);
    box-shadow: 0 40px 100px rgba(102, 126, 234, 0.5);
    color: white;
    text-decoration: none;
}

.udd-card-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 30px, rgba(255, 255, 255, 0.02) 30px, rgba(255, 255, 255, 0.02) 60px),
        repeating-linear-gradient(-45deg, transparent, transparent 30px, rgba(255, 255, 255, 0.015) 30px, rgba(255, 255, 255, 0.015) 60px);
    animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 60px 60px, -60px 60px; }
}

.udd-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.udd-card-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.udd-card-logo-img {
    height: 50px;
    width: auto;
    filter: brightness(1.2) drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.udd-card-logo-text {
    font-size: 26px;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.2);
    padding: 14px 28px;
    border-radius: 14px;
    backdrop-filter: blur(10px);
    letter-spacing: 2px;
}

.udd-card-site {
    font-size: 15px;
    opacity: 0.9;
    font-weight: 600;
    letter-spacing: 1px;
}

.udd-card-balance {
    margin: 40px 0 30px 0;
    position: relative;
    z-index: 1;
}

.udd-balance-amount {
    font-size: 56px;
    font-weight: 900;
    display: block;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    letter-spacing: -2px;
    line-height: 1;
}

.udd-balance-currency {
    font-size: 18px;
    opacity: 0.85;
    margin-right: 10px;
    font-weight: 600;
}

.udd-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.udd-card-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.udd-info-label {
    font-size: 13px;
    opacity: 0.75;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.udd-info-value {
    font-size: 20px;
    font-weight: 800;
}

.udd-card-wallet {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.15);
    padding: 14px 22px;
    border-radius: 14px;
    backdrop-filter: blur(10px);
    transition: var(--udd-transition);
}

.udd-card-wallet:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.udd-wallet-icon {
    font-size: 24px;
}

.udd-wallet-text {
    font-size: 15px;
    font-weight: 700;
}


/* ====== STORE INFO - ULTRA PREMIUM ====== */

.udd-store-info {
    display: flex;
    align-items: center;
    gap: 28px;
}

.udd-store-avatar {
    flex-shrink: 0;
    position: relative;
}

.udd-store-avatar::before {
    content: '';
    position: absolute;
    inset: -6px;
    background: linear-gradient(135deg, var(--udd-primary), var(--udd-primary-light), var(--udd-primary));
    background-size: 200% 200%;
    animation: avatarGlow 3s ease infinite;
    border-radius: 50%;
    z-index: -1;
}

@keyframes avatarGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.udd-store-avatar::after {
    content: '✓';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--udd-success), #34D399);
    color: white;
    font-size: 14px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--udd-bg);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.udd-store-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--udd-bg);
    box-shadow: var(--udd-shadow-lg);
}

.udd-store-details {
    flex: 1;
}

.udd-store-name {
    font-size: 28px;
    font-weight: 900;
    color: var(--udd-text);
    margin: 0 0 12px 0;
    background: linear-gradient(135deg, var(--udd-primary-dark), var(--udd-primary), var(--udd-primary-light));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: nameGradient 3s ease infinite;
}

@keyframes nameGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.udd-store-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--udd-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: var(--udd-transition);
    padding: 12px 24px;
    background: rgba(var(--udd-primary-rgb), 0.1);
    border-radius: var(--udd-radius-sm);
    border: 2px solid transparent;
}

.udd-store-link:hover {
    color: white;
    background: linear-gradient(135deg, var(--udd-primary), var(--udd-primary-dark));
    transform: translateX(-5px);
    box-shadow: 0 8px 25px rgba(var(--udd-primary-rgb), 0.4);
}


/* ====== VERIFICATION - ULTRA PREMIUM ====== */

.udd-verification {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 28px;
    border-radius: var(--udd-radius-sm);
    font-size: 18px;
    font-weight: 800;
    position: relative;
    overflow: hidden;
}

.udd-verification::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background: currentColor;
}

.udd-verification::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: translateX(-100%);
    animation: verificationShine 3s ease-in-out infinite;
}

@keyframes verificationShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.udd-verification-icon {
    font-size: 40px;
    animation: verificationBounce 2s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes verificationBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-5px) scale(1.1); }
}

.udd-verification-text {
    position: relative;
    z-index: 1;
}

.udd-verification-verified {
    color: var(--udd-success);
}

.udd-verification-pending {
    color: var(--udd-warning);
}

.udd-verification-rejected {
    color: var(--udd-danger);
}

.udd-verification-unknown {
    color: var(--udd-gray-500);
}


/* ====== PRODUCTS & ORDERS LISTS - ULTRA PREMIUM ====== */

.udd-products-list,
.udd-orders-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.udd-product-item,
.udd-order-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px;
    background: linear-gradient(145deg, var(--udd-gray-50), white);
    border-radius: var(--udd-radius-sm);
    transition: var(--udd-transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.udd-product-item::before,
.udd-order-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--udd-primary), var(--udd-primary-light));
    opacity: 0;
    transition: var(--udd-transition);
}

.udd-product-item:hover,
.udd-order-item:hover {
    background: white;
    border-color: rgba(var(--udd-primary-rgb), 0.2);
    transform: translateX(-8px);
    box-shadow: var(--udd-shadow-lg);
}

.udd-product-item:hover::before,
.udd-order-item:hover::before {
    opacity: 1;
}

.udd-product-image {
    flex-shrink: 0;
    position: relative;
}

.udd-product-image img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: var(--udd-shadow);
}

.udd-product-status {
    position: absolute;
    top: -6px;
    left: -6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: var(--udd-shadow-sm);
}

.udd-product-status.udd-status-published {
    background: linear-gradient(135deg, var(--udd-success), #34D399);
}

.udd-product-status.udd-status-pending {
    background: linear-gradient(135deg, var(--udd-warning), #FBBF24);
}

.udd-product-status.udd-status-draft {
    background: linear-gradient(135deg, var(--udd-gray-400), var(--udd-gray-500));
}

.udd-product-info,
.udd-order-main {
    flex: 1;
    min-width: 0;
}

.udd-product-title,
.udd-order-id {
    font-size: 16px;
    font-weight: 800;
    color: var(--udd-text);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.udd-product-price,
.udd-order-amount {
    font-size: 15px;
    color: var(--udd-primary);
    font-weight: 800;
}

.udd-order-date {
    font-size: 13px;
    color: var(--udd-gray-500);
    margin-top: 4px;
}

.udd-order-details {
    text-align: left;
}

.udd-order-status {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
}

.udd-order-status.udd-status-completed {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
    color: var(--udd-success);
}

.udd-order-status.udd-status-processing {
    background: linear-gradient(135deg, rgba(var(--udd-primary-rgb), 0.15), rgba(var(--udd-primary-rgb), 0.05));
    color: var(--udd-primary);
}

.udd-order-status.udd-status-pending,
.udd-order-status.udd-status-on-hold {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
    color: var(--udd-warning);
}

.udd-order-status.udd-status-cancelled,
.udd-order-status.udd-status-failed,
.udd-order-status.udd-status-refunded {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.05));
    color: var(--udd-danger);
}


/* ====== BUTTONS - ULTRA PREMIUM ====== */

.udd-btn,
.udd-add-product-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--udd-primary), var(--udd-primary-dark));
    color: white;
    border: none;
    border-radius: var(--udd-radius-sm);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    transition: var(--udd-transition);
    box-shadow: 0 8px 30px rgba(var(--udd-primary-rgb), 0.4);
    position: relative;
    overflow: hidden;
}

.udd-btn::before,
.udd-add-product-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: 0.6s;
}

.udd-btn:hover,
.udd-add-product-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 50px rgba(var(--udd-primary-rgb), 0.5);
    color: white;
    text-decoration: none;
}

.udd-btn:hover::before,
.udd-add-product-btn:hover::before {
    left: 100%;
}

.udd-add-product-btn {
    width: 100%;
    padding: 22px 32px;
    font-size: 17px;
}

.udd-btn-icon {
    font-size: 24px;
}


/* ====== STAT CARDS - ULTRA PREMIUM ====== */

.udd-stat-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: linear-gradient(145deg, var(--udd-gray-50), white);
    border-radius: var(--udd-radius-sm);
    transition: var(--udd-transition);
    border: 2px solid transparent;
}

.udd-stat-card:hover {
    background: white;
    box-shadow: var(--udd-shadow-lg);
    border-color: rgba(var(--udd-primary-rgb), 0.1);
    transform: translateY(-4px);
}

.udd-stat-icon {
    font-size: 36px;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(var(--udd-primary-rgb), 0.15), rgba(var(--udd-primary-rgb), 0.05));
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(var(--udd-primary-rgb), 0.2);
}

.udd-stat-content {
    flex: 1;
}

.udd-stat-number {
    display: block;
    font-size: 36px;
    font-weight: 900;
    color: var(--udd-primary);
    margin-bottom: 6px;
    line-height: 1.1;
}

.udd-stat-label {
    display: block;
    font-size: 14px;
    color: var(--udd-gray-500);
    font-weight: 600;
}


/* ====== COUNTS GRID - ULTRA PREMIUM ====== */

.udd-counts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 18px;
}

.udd-counts-grid.udd-counts-3 {
    grid-template-columns: repeat(3, 1fr);
}

.udd-count-item {
    text-align: center;
    padding: 28px 18px;
    background: linear-gradient(145deg, var(--udd-gray-50), white);
    border-radius: var(--udd-radius-sm);
    transition: var(--udd-transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.udd-count-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 4px;
    border-radius: 4px 4px 0 0;
    opacity: 0;
    transition: var(--udd-transition);
}

.udd-count-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--udd-shadow-xl);
    border-color: rgba(var(--udd-primary-rgb), 0.2);
}

.udd-count-item:hover::before {
    opacity: 1;
}

.udd-count-number {
    display: block;
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 10px;
    line-height: 1;
}

.udd-count-item.udd-count-total .udd-count-number {
    color: var(--udd-text);
}
.udd-count-item.udd-count-total::before {
    background: var(--udd-text);
}

.udd-count-item.udd-count-success .udd-count-number {
    color: var(--udd-success);
}
.udd-count-item.udd-count-success::before {
    background: var(--udd-success);
}

.udd-count-item.udd-count-pending .udd-count-number {
    color: var(--udd-warning);
}
.udd-count-item.udd-count-pending::before {
    background: var(--udd-warning);
}

.udd-count-item.udd-count-failed .udd-count-number {
    color: var(--udd-danger);
}
.udd-count-item.udd-count-failed::before {
    background: var(--udd-danger);
}

.udd-count-item.udd-count-draft .udd-count-number {
    color: var(--udd-gray-500);
}
.udd-count-item.udd-count-draft::before {
    background: var(--udd-gray-500);
}

.udd-count-label {
    display: block;
    font-size: 14px;
    color: var(--udd-gray-500);
    font-weight: 700;
}


/* ====== FEATURED PRODUCTS - ULTRA PREMIUM ====== */

.udd-featured-product {
    display: flex;
    gap: 28px;
    padding: 24px;
    background: linear-gradient(145deg, var(--udd-gray-50), white);
    border-radius: var(--udd-radius-sm);
    transition: var(--udd-transition);
    border: 2px solid transparent;
}

.udd-featured-product:hover {
    box-shadow: var(--udd-shadow-lg);
    border-color: rgba(var(--udd-primary-rgb), 0.1);
    transform: translateY(-4px);
}

.udd-featured-image {
    position: relative;
    flex-shrink: 0;
}

.udd-featured-image img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: var(--udd-radius-sm);
    box-shadow: var(--udd-shadow);
}

.udd-featured-badge {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #FFD700, #FFA500, #FF8C00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 8px 25px rgba(255, 165, 0, 0.5);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

.udd-featured-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.udd-featured-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--udd-text);
    margin: 0 0 14px 0;
}

.udd-featured-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.udd-featured-sales {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--udd-success);
    font-weight: 700;
}

.udd-featured-price {
    font-size: 22px;
    color: var(--udd-primary);
    font-weight: 900;
}


/* ====== CHARTS - ULTRA PREMIUM ====== */

.udd-chart-container {
    height: 350px;
    position: relative;
    padding: 12px;
}

.udd-chart-container canvas {
    max-height: 100%;
}


/* ====== QUICK ACTIONS - ULTRA PREMIUM ====== */

.udd-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 16px;
}

.udd-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 28px 18px;
    background: linear-gradient(145deg, var(--udd-gray-50), white);
    border-radius: var(--udd-radius-sm);
    text-decoration: none;
    color: var(--udd-text);
    transition: var(--udd-transition-bounce);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.udd-action-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--udd-primary), var(--udd-primary-dark));
    opacity: 0;
    transition: var(--udd-transition);
}

.udd-action-btn:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: var(--udd-shadow-xl), var(--udd-shadow-glow);
    color: white;
    border-color: var(--udd-primary);
    text-decoration: none;
}

.udd-action-btn:hover::before {
    opacity: 1;
}

.udd-action-icon {
    font-size: 36px;
    position: relative;
    z-index: 1;
    transition: var(--udd-transition);
}

.udd-action-btn:hover .udd-action-icon {
    transform: scale(1.2);
}

.udd-action-label {
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    position: relative;
    z-index: 1;
}


/* ====== DARK MODE TOGGLE - ULTRA PREMIUM ====== */

.udd-dark-toggle {
    display: inline-flex;
    background: linear-gradient(145deg, var(--udd-gray-100), var(--udd-gray-50));
    border-radius: 35px;
    padding: 6px;
    gap: 6px;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.08);
}

.udd-toggle-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: transparent;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
    color: var(--udd-gray-600);
    cursor: pointer;
    transition: var(--udd-transition);
}

.udd-toggle-btn.active {
    background: linear-gradient(135deg, var(--udd-primary), var(--udd-primary-dark));
    color: white;
    box-shadow: 0 8px 25px rgba(var(--udd-primary-rgb), 0.4);
}

.udd-toggle-btn:hover:not(.active) {
    background: var(--udd-gray-200);
}

.udd-toggle-icon {
    font-size: 20px;
}


/* ====== GOAL WIDGET - ULTRA PREMIUM ====== */

.udd-goal-widget {
    padding: 12px 0;
}

.udd-goal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.udd-goal-title {
    font-size: 15px;
    color: var(--udd-gray-600);
    font-weight: 700;
}

.udd-goal-percent {
    font-size: 28px;
    font-weight: 900;
    color: var(--udd-primary);
}

.udd-goal-bar {
    height: 16px;
    background: linear-gradient(145deg, var(--udd-gray-200), var(--udd-gray-100));
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.08);
}

.udd-goal-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--udd-primary), var(--udd-primary-light), var(--udd-primary));
    background-size: 200% 100%;
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    animation: goalShimmer 2s ease-in-out infinite;
}

@keyframes goalShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.udd-goal-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}

.udd-goal-current {
    font-weight: 800;
    color: var(--udd-primary);
}

.udd-goal-separator {
    color: var(--udd-gray-400);
}

.udd-goal-target {
    color: var(--udd-gray-600);
    font-weight: 600;
}

.udd-goal-achieved {
    text-align: center;
    margin-top: 20px;
    padding: 16px;
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
    border-radius: var(--udd-radius-sm);
    color: var(--udd-success);
    font-weight: 800;
    font-size: 16px;
}


/* ====== RANK WIDGET - ULTRA PREMIUM ====== */

.udd-rank-widget {
    text-align: center;
    padding: 36px 24px;
}

.udd-rank-icon {
    font-size: 72px;
    margin-bottom: 20px;
    animation: rankFloat 3s ease-in-out infinite;
}

@keyframes rankFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

.udd-rank-number {
    font-size: 80px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--udd-primary), var(--udd-primary-light), var(--udd-primary-dark));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rankGradient 3s ease infinite;
    margin-bottom: 10px;
    line-height: 1;
}

@keyframes rankGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.udd-rank-total {
    font-size: 15px;
    color: var(--udd-gray-500);
    margin-bottom: 20px;
}

.udd-rank-sales {
    font-size: 17px;
    color: var(--udd-text);
    font-weight: 700;
}


/* ====== THEME SWITCHER - ULTRA PREMIUM ====== */

.udd-theme-switcher {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.udd-theme-option {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px;
    background: linear-gradient(145deg, var(--udd-gray-50), white);
    border: 3px solid transparent;
    border-radius: var(--udd-radius-sm);
    cursor: pointer;
    transition: var(--udd-transition);
}

.udd-theme-option:hover {
    transform: translateX(-8px);
    box-shadow: var(--udd-shadow-lg);
    background: white;
}

.udd-theme-option.active {
    background: white;
    border-color: var(--udd-primary);
    box-shadow: 0 8px 30px rgba(var(--udd-primary-rgb), 0.25);
}

.udd-theme-icon {
    font-size: 36px;
}

.udd-theme-name {
    flex: 1;
    font-size: 16px;
    font-weight: 800;
    color: var(--udd-text);
}

.udd-theme-colors {
    display: flex;
    gap: 10px;
}

.udd-theme-colors span {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: var(--udd-shadow-sm);
}


/* ====== EMPTY STATE ====== */

.udd-empty {
    text-align: center;
    padding: 56px 24px;
    color: var(--udd-gray-500);
    font-size: 16px;
}

.udd-empty::before {
    content: '📭';
    display: block;
    font-size: 56px;
    margin-bottom: 20px;
    opacity: 0.5;
    animation: emptyBounce 2s ease-in-out infinite;
}

@keyframes emptyBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.udd-empty.udd-success::before {
    content: '✅';
}


/* ====== ERROR STATE ====== */

.udd-error {
    text-align: center;
    padding: 36px 24px;
    background: linear-gradient(145deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.02));
    border-radius: var(--udd-radius-sm);
    color: var(--udd-danger);
    font-weight: 700;
}


/* ====== DARK MODE ====== */

body.udd-dark-mode {
    --udd-bg: #111827;
    --udd-text: #f3f4f6;
    --udd-text-secondary: #9ca3af;
    --udd-gray-50: #1f2937;
    --udd-gray-100: #374151;
    --udd-gray-200: #4b5563;
    --udd-gray-300: #6b7280;
    --udd-gray-400: #9ca3af;
    --udd-gray-500: #d1d5db;
}

body.udd-dark-mode .udd-box {
    background: var(--udd-bg);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.05);
}

body.udd-dark-mode .udd-toast {
    background: linear-gradient(145deg, rgba(31, 41, 55, 0.98), rgba(17, 24, 39, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.udd-dark-mode .udd-toast-title {
    color: #f3f4f6;
}

body.udd-dark-mode .udd-product-item,
body.udd-dark-mode .udd-order-item,
body.udd-dark-mode .udd-stat-card,
body.udd-dark-mode .udd-count-item,
body.udd-dark-mode .udd-comp-item,
body.udd-dark-mode .udd-action-btn,
body.udd-dark-mode .udd-badge-item,
body.udd-dark-mode .udd-leader-item,
body.udd-dark-mode .udd-report-stat,
body.udd-dark-mode .udd-theme-option,
body.udd-dark-mode .udd-withdraw-item,
body.udd-dark-mode .udd-review-item,
body.udd-dark-mode .udd-activity-item,
body.udd-dark-mode .udd-featured-product {
    background: linear-gradient(145deg, var(--udd-gray-100), var(--udd-gray-50));
}

body.udd-dark-mode .udd-action-btn:hover::before {
    opacity: 1;
}


/* ====== ANIMATIONS ====== */

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

.udd-box {
    animation: fadeInUp 0.6s ease-out backwards;
}


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

@media (max-width: 768px) {
    .udd-toast-container {
        left: 12px;
        right: 12px;
        top: 12px;
    }
    
    .udd-toast {
        max-width: 100%;
        padding: 16px 20px;
    }
    
    .udd-box {
        padding: 22px;
    }
    
    .udd-credit-card {
        min-height: 200px;
        padding: 28px;
    }
    
    .udd-balance-amount {
        font-size: 42px;
    }
    
    .udd-store-info {
        flex-direction: column;
        text-align: center;
    }
    
    .udd-counts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .udd-counts-grid.udd-counts-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .udd-quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .udd-featured-product {
        flex-direction: column;
        text-align: center;
    }
    
    .udd-chart-container {
        height: 280px;
    }
    
    .udd-rank-number {
        font-size: 60px;
    }
    
    .udd-rank-icon {
        font-size: 56px;
    }
}

@media (max-width: 480px) {
    .udd-credit-card {
        min-height: 180px;
        padding: 22px;
    }
    
    .udd-balance-amount {
        font-size: 34px;
    }
    
    .udd-stat-number {
        font-size: 28px;
    }
    
    .udd-count-number {
        font-size: 32px;
    }
}


/* ====== RTL SUPPORT ====== */

[dir="rtl"] .udd-box::before,
[dir="rtl"] .udd-toast::before {
    right: auto;
    left: 0;
}

[dir="rtl"] .udd-toast {
    transform: translateX(120%) scale(0.9);
}

[dir="rtl"] .udd-toast.show {
    transform: translateX(0) scale(1);
}

[dir="rtl"] .udd-toast-container {
    left: auto;
    right: 24px;
}

[dir="rtl"] .udd-product-item:hover,
[dir="rtl"] .udd-order-item:hover,
[dir="rtl"] .udd-theme-option:hover {
    transform: translateX(8px);
}

[dir="rtl"] .udd-product-item::before,
[dir="rtl"] .udd-order-item::before {
    right: auto;
    left: 0;
}


/* ═══════════════════════════════════════════════════════════════
   END OF ULTRA DOKAN DASHBOARD PREMIUM STYLES v2.1.0
   ═══════════════════════════════════════════════════════════════ */
