/**
 * Dashboard V2 Styles
 * Modern dashboard design styles
 */

:root {
    --dashboardv2-bg: #f5f6fa;
    --dashboardv2-padding-x: 16px;
    
    --dashboardv2-blue-from: #0b72d1;
    --dashboardv2-blue-to: #2ea3f6;
    --dashboardv2-accent: #0b72d1;
    
    --dashboardv2-card-shadow: 0 10px 24px rgba(0,0,0,0.10);
    --dashboardv2-soft-shadow: 0 4px 10px rgba(0,0,0,0.05);
    
    --dashboardv2-service-pink-from: #ff6aa6;
    --dashboardv2-service-pink-to: #ff8ac7;
    --dashboardv2-service-blue: #4aa7ff;
    --dashboardv2-service-orange: #ffb24a;
    --dashboardv2-service-green: #47c07a;
}
.woocommerce-MyAccount-content:has(.dashboardv2-container) {
    background: transparent;
    padding: 0;
}

.dashboardv2-main {
    padding-top: 12px;
    padding-bottom: 20px;
}

/* User Info Box - نام و شماره تماس (باریک و ظریف) */
.dashboardv2-container .dashboardv2-user-info-box {
    margin-bottom: 12px;
    background: linear-gradient(120deg, var(--dashboardv2-blue-from) 0%, var(--dashboardv2-blue-to) 100%);
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(11, 114, 209, 0.22);
    padding: 10px 14px 10px 12px;
    color: #fff;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.15);
}
.dashboardv2-container .dashboardv2-user-info-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(165deg, rgba(255,255,255,0.12) 0%, transparent 45%);
    pointer-events: none;
}
.dashboardv2-container .dashboardv2-user-info-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}
.dashboardv2-container .dashboardv2-user-info-avatar {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.22);
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
}
.dashboardv2-container .dashboardv2-user-info-avatar svg {
    color: #fff;
    width: 20px;
    height: 20px;
}
.dashboardv2-container .dashboardv2-user-info-content {
    flex: 1;
    min-width: 0;
}
.dashboardv2-container .dashboardv2-user-info-greeting {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
    letter-spacing: -0.02em;
    line-height: 1.3;
}
.dashboardv2-container .dashboardv2-user-info-phone,
.dashboardv2-container .dashboardv2-user-info-code {
    font-size: 12px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 3px 5px;
    line-height: 1.35;
}
.dashboardv2-container .dashboardv2-user-info-code {
    margin-top: 2px;
}
.dashboardv2-container .dashboardv2-user-info-label {
    opacity: 0.88;
}
.dashboardv2-container .dashboardv2-user-info-value {
    font-weight: 600;
    direction: ltr;
    text-align: right;
}
.dashboardv2-container .dashboardv2-user-info-code-link {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.7);
    padding-bottom: 0;
}
.dashboardv2-container .dashboardv2-user-info-code-link:hover {
    opacity: 0.95;
    border-bottom-color: #fff;
}

/* Swiper Slider Styles */
.dashboardv2-container .dashboardv2-swiper {
    width: 100%;
    height: auto;
    padding-bottom: 8px;
    padding-left: 20px;
    padding-right: 20px;
    margin-bottom: 16px;
}

.dashboardv2-container .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    transition: transform 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
}

.dashboardv2-container .swiper-slide:not(.swiper-slide-active) {
    opacity: 0.6;
    transform: scale(0.95);
    filter: blur(2px);
}

.dashboardv2-container .swiper-slide-active {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

.dashboardv2-container .dashboardv2-slide-wrapper {
    width: 100%;
    max-width: 100%;
}

/* Swiper Pagination */
.dashboardv2-container .swiper-pagination {
    position: relative;
    margin-top: 4px;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.dashboardv2-container .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    background: #d0d7e2;
    opacity: 1;
    border-radius: 50%;
    transition: transform 0.12s ease, background 0.12s ease;
}

.dashboardv2-container .swiper-pagination-bullet-active {
    background: var(--dashboardv2-accent);
    transform: scale(1.3);
}

/* Swiper Slider Styles - Exactly like reference file */
.dashboardv2-container .swiper {
    width: 100%;
    height: 260px; /* card + breathing */
    margin-bottom: 16px;
    padding-bottom: 14px;
}

.dashboardv2-container .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    transition: transform 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
}

.dashboardv2-container .swiper-slide:not(.swiper-slide-active) {
    opacity: 0.6;
    transform: scale(0.85);
    filter: blur(2px);
}

.dashboardv2-container .swiper-slide-active {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

/* Account Card Styles - Exactly like reference */
.dashboardv2-container .account-card {
    width: 100%;
    max-width: 100%;
    height: 210px;
    border-radius: 26px;
    background: linear-gradient(135deg, var(--dashboardv2-blue-from), var(--dashboardv2-blue-to));
    box-shadow: var(--dashboardv2-card-shadow);
    padding: 18px 18px 16px;
    position: relative;
    color: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dashboardv2-container .account-card-gamification {
    background: radial-gradient(circle at 10% 20%, #8e44ad 0%, #6c3483 90%);
}

.dashboardv2-container .account-card-marketing {
    background: radial-gradient(circle at 10% 20%, #8E0E24 0%, #590412 90%);
}

.dashboardv2-container .account-card-wheel {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    text-decoration: none;
    color: inherit;
}

.dashboardv2-container .acct-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.dashboardv2-container .acct-right {
    text-align: right;
    flex: 1;
}

.dashboardv2-container .acct-header-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.dashboardv2-container .currency-pill {
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: rgba(255,255,255,0.25);
    color: #f9fafb;
}

.dashboardv2-container .acct-right .acct-type {
    font-size: 15px;
    font-weight: 500;
}

.dashboardv2-container .acct-right .number {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 2px;
    opacity: 0.97;
    margin-bottom: 6px;
}

.dashboardv2-container .acct-right .iban {
    font-size: 12px;
    opacity: 0.9;
    font-weight: 400;
}

.dashboardv2-container .acct-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
}

.dashboardv2-container .icon-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.12s ease, background 0.12s ease;
}

.dashboardv2-container .icon-circle:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.24);
}

.dashboardv2-container .acct-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
}

.dashboardv2-container .btn-white {
    background: #fff;
    color: var(--dashboardv2-blue-from);
    border-radius: 20px;
    padding: 8px 22px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(11,114,209,0.16);
    transition: transform 0.12s ease;
}

.dashboardv2-container .btn-white:active {
    transform: translateY(1px);
}

.dashboardv2-container .text-action {
    font-size: 13px;
    color: rgba(255,255,255,0.97);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 6px;
    font-weight: 500;
}

.dashboardv2-container .text-action svg {
    width: 18px;
    height: 18px;
}

/* Swiper Pagination - Exactly like reference */
.dashboardv2-container .swiper-pagination {
    position: relative;
    margin-top: 4px;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.dashboardv2-container .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    background: #d0d7e2;
    opacity: 1;
    border-radius: 50%;
    transition: transform 0.12s ease, background 0.12s ease;
}

.dashboardv2-container .swiper-pagination-bullet-active {
    background: var(--dashboardv2-accent);
    transform: scale(1.3);
}

/* Gamification Banner - Inside Card */
.dashboardv2-container .account-card-gamification .arya-gamification-banner {
    margin: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.dashboardv2-container .account-card-gamification .arya-gamification-banner-content {
    padding: 0;
}

/* Marketing Banner - Inside Card */
.dashboardv2-container .account-card-marketing .arya-marketing-banner {
    margin: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.dashboardv2-container .arya-gamification-banner-content {
    padding: 12px 16px;
    gap: 12px;
}

.dashboardv2-container .arya-gamification-banner-icon {
    width: 38px;
    height: 38px;
}

.dashboardv2-container .arya-gamification-banner-icon svg {
    width: 20px;
    height: 20px;
}

.dashboardv2-container .arya-gamification-banner-title {
    font-size: 14px;
    margin-bottom: 2px;
}

.dashboardv2-container .arya-gamification-banner-description {
    font-size: 11px;
}

.dashboardv2-container .arya-gamification-banner-stats-box {
    padding: 6px 12px;
    min-width: 120px;
}

.dashboardv2-container .stats-label {
    font-size: 9px;
}

.dashboardv2-container .stats-value {
    font-size: 14px;
}

/* Services Section */
.dashboardv2-container .services {
    background: #fff;
    border-radius: 20px;
    padding: 16px;
    box-shadow: var(--dashboardv2-soft-shadow);
    margin: 4px 0 16px 0;
}

.dashboardv2-container .services .section-title {
    font-size: 15px;
    font-weight: 600;
    text-align: right;
    margin-bottom: 10px;
    color: #111827;
}

.dashboardv2-container .service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.dashboardv2-container .service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    cursor: pointer;
    user-select: none;
    transition: transform 0.14s ease;
    text-decoration: none;
    color: inherit;
}

.dashboardv2-container .service-item:hover {
    transform: translateY(-4px);
}

.dashboardv2-container .service-box {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(12,44,88,0.06);
    flex-shrink: 0;
}

.dashboardv2-container .service-label {
    font-size: 12px;
    color: #111827;
}

/* Account Stats Grid (2x2 on mobile, 4 columns on desktop) */
.dashboardv2-container .account-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.dashboardv2-container .account-stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: #f8f9fa;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    border: 1px solid #e9ecef;
}

.dashboardv2-container .account-stat-item:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
    border-color: #dee2e6;
}

.dashboardv2-container .account-stat-item .stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.dashboardv2-container .account-stat-item.coupons .stat-icon {
    color: #e74c3c;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
}

.dashboardv2-container .account-stat-item.points .stat-icon {
    color: #f39c12;
    background: linear-gradient(135deg, #fdcb6e, #e17055);
}

.dashboardv2-container .account-stat-item.wallet .stat-icon {
    color: #27ae60;
    background: linear-gradient(135deg, #55efc4, #00b894);
}

.dashboardv2-container .account-stat-item.wheel .stat-icon {
    color: #9b59b6;
    background: linear-gradient(135deg, #a29bfe, #6c5ce7);
}

.dashboardv2-container .account-stat-item .stat-icon svg {
    width: 24px;
    height: 24px;
    color: #fff;
    stroke: #fff;
}

.dashboardv2-container .account-stat-item .stat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: right;
}

.dashboardv2-container .account-stat-item .stat-value {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.dashboardv2-container .account-stat-item .stat-value svg {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
    color: #111827;
}

.dashboardv2-container .account-stat-item .stat-label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

/* Desktop: 4 columns in one row */
@media (min-width: 768px) {
    .dashboardv2-container .account-stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.dashboardv2-container .box-p1 {
    background: linear-gradient(135deg, var(--dashboardv2-service-pink-from), var(--dashboardv2-service-pink-to));
    color: #fff;
}

.dashboardv2-container .box-blue {
    background: linear-gradient(135deg, #3aa0ff, #4d8fff);
    color: #fff;
}

.dashboardv2-container .box-orange {
    background: linear-gradient(135deg, var(--dashboardv2-service-orange), #ff8f4a);
    color: #fff;
}

.dashboardv2-container .box-green {
    background: linear-gradient(135deg, var(--dashboardv2-service-green), #2fb36a);
    color: #fff;
}

.dashboardv2-container .box-purple {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
    color: #fff;
}

/* Promo Banner */
.dashboardv2-container .promo {
    height: 80px;
    border-radius: 18px;
    background: #37231b;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 14px;
    margin: 10px 0 16px 0;
}

.dashboardv2-container .promo .promo-text {
    flex: 1;
    text-align: right;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
}

.dashboardv2-container .promo .leaf {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Card Services Section */
.dashboardv2-container .card-services {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    margin-top: 12px;
    margin-bottom: 16px;
    border: 1px solid rgba(11, 114, 209, 0.1);
}

/* Marketing Banner - Inside Swiper */
.dashboardv2-container .arya-marketing-banner {
    margin: 0;
}

.dashboardv2-container .card-services .title {
    font-weight: 700;
    font-size: 16px;
    text-align: right;
    margin-bottom: 14px;
    color: #0b72d1;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(11, 114, 209, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.dashboardv2-container .card-services .title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, var(--dashboardv2-blue-from), var(--dashboardv2-blue-to));
    border-radius: 2px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(7px, -73%);
}

.dashboardv2-container .card-grid {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
    padding-bottom: 6px;
}

.dashboardv2-container .card-item {
    min-width: 84px;
    flex: 0 0 calc(25% - 8px);
    max-width: calc(25% - 8px);
    background: linear-gradient(135deg, #ffffff 0%, #e8f4fd 100%);
    border-radius: 14px;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    border: 1px solid rgba(11, 114, 209, 0.12);
    box-shadow: 0 2px 8px rgba(11, 114, 209, 0.06);
}

.dashboardv2-container .card-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(11, 114, 209, 0.15);
    background: linear-gradient(135deg, #ffffff 0%, #d4e9fc 100%);
    border-color: rgba(11, 114, 209, 0.25);
}

.dashboardv2-container .card-item svg {
    width: 28px;
    height: 28px;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 480px) {
    .dashboardv2-container .card-item {
        flex: 0 0 calc(33.333% - 7px);
        max-width: calc(33.333% - 7px);
    }
    
    .dashboardv2-container .service-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .dashboardv2-container .service-box {
        width: 50px;
        height: 50px;
    }
    
    .dashboardv2-container .service-box svg {
        width: 24px;
        height: 24px;
    }
    
    .dashboardv2-container .service-label {
        font-size: 11px;
    }
}

@media (max-width: 360px) {
    .dashboardv2-container .card-item {
        flex: 0 0 calc(50% - 5px);
        max-width: calc(50% - 5px);
    }
    
    .dashboardv2-container {
        padding-left: 12px;
        padding-right: 12px;
    }
}
