/* assets/style.css - کامل و رنگی */
.wpudp6-fullwrap {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(180deg, #eaf3e6, #d9e8d0);
    padding-bottom: 60px;
    font-family: Tahoma, Arial, sans-serif;
}

.wpudp6-hero {
    height: 160px;
    background: linear-gradient(90deg, #2e7d32, #4caf50);
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
}

.wpudp6-container {
    max-width: 1200px;
    margin: -80px auto 40px;
    padding: 0 20px;
    display: flex;
    gap: 24px;
}

.wpudp6-side {
    width: 300px;
    flex-shrink: 0;
}

.wpudp6-side-inner {
    background: #2e7d32;
    color: #fff;
    padding: 22px;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
    text-align: center;
}

.wpudp6-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid rgba(255,255,255,.12);
    margin: 0 auto 10px;
}

.wpudp6-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.wpudp6-email {
    opacity: .9;
    margin-bottom: 12px;
}

.wpudp6-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.wpudp6-nav a {
    display: block;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #fff !important;
    background: rgba(255,255,255,.04);
    font-weight: 600;
    transition: all 0.3s ease;
}

.wpudp6-nav a.active,
.wpudp6-nav a:hover {
    background: rgba(255,255,255,.12);
	color: #fff !important;
}

.wpudp6-main {
    flex: 1;
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,.08);
    min-height: 600px;
}

.wpudp6-tab {
    display: none;
}

.wpudp6-tab-active {
    display: block;
}

/* کارت‌های رنگی */
.wpudp6-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.wpudp6-card {
    background: #fff;
    padding: 25px 20px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,.08);
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.wpudp6-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,.12);
}

.wpudp6-card .card-icon {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
}

.wpudp6-card .label {
    color: #666;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.wpudp6-card .value {
    font-weight: 800;
    font-size: 22px;
    color: #2c3e50;
}

/* رنگ‌بندی کارت‌ها */
.card-purple {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
    color: #fff;
}
.card-purple .label,
.card-purple .value {
    color: #fff;
}

.card-blue {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #fff;
}
.card-blue .label,
.card-blue .value {
    color: #fff;
}

.card-green {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: #fff;
}
.card-green .label,
.card-green .value {
    color: #fff;
}

.card-orange {
    background: linear-gradient(135deg, #e67e22, #f39c12);
    color: #fff;
}
.card-orange .label,
.card-orange .value {
    color: #fff;
}

/* کوپن تخفیف */
.wpudp6-coupon-section {
    margin-bottom: 30px;
}

.wpudp6-coupon-card {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    padding: 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 6px 20px rgba(231,76,60,.3);
}

.wpudp6-coupon-card .coupon-icon {
    font-size: 42px;
    flex-shrink: 0;
}

.wpudp6-coupon-card .coupon-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    opacity: .9;
}

.wpudp6-coupon-card .coupon-code {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 5px;
    font-family: monospace;
}

.wpudp6-coupon-card .coupon-desc {
    font-size: 13px;
    opacity: .8;
}

/* وضعیت سفارشات */
.wpudp6-status-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.wpudp6-status-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 12px rgba(0,0,0,.08);
    border-left: 4px solid #ddd;
    transition: all 0.3s ease;
}

.wpudp6-status-card:hover {
    transform: translateY(-3px);
}

.status-completed {
    border-left-color: #27ae60;
}
.status-processing {
    border-left-color: #3498db;
}
.status-pending {
    border-left-color: #f39c12;
}
.status-cancelled {
    border-left-color: #e74c3c;
}

.wpudp6-status-card .status-count {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.wpudp6-status-card .status-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 600;
}

.wpudp6-status-card .status-icon {
    font-size: 20px;
}

/* بخش‌ها */
.wpudp6-section {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.wpudp6-section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2c3e50;
    padding-bottom: 12px;
    border-bottom: 2px solid #2e7d32;
}

/* اعلان‌ها */
.wpudp6-alert {
    padding: 15px 20px;
    border-radius: 10px;
    color: #fff;
    margin-bottom: 12px;
    font-size: 14px;
    border-right: 4px solid rgba(0,0,0,.2);
}

.wpudp6-alert-success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.wpudp6-alert-info {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

/* لیست‌ها */
.wpudp6-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wpudp6-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-radius: 10px;
    background: #fbfbfb;
    border-left: 4px solid #e0e0e0;
    transition: all 0.3s ease;
}

.wpudp6-list-item:hover {
    background: #f5f5f5;
    transform: translateX(5px);
}

.wpudp6-list-item .left {
    display: flex;
    flex-direction: column;
}

.wpudp6-list-item .right {
    text-align: right;
}

.wpudp6-list-item .order-id {
    font-weight: 700;
    color: #2c3e50;
}

.wpudp6-list-item .order-total {
    font-weight: 600;
    color: #27ae60;
    margin-top: 5px;
}

.wpudp6-list-item .order-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    background: #e3f2fd;
    color: #1976d2;
}

.wpudp6-list-item .order-date {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.wpudp6-list-item .prod-name {
    font-weight: 600;
    color: #2c3e50;
}

.wpudp6-list-item .prod-file {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* کنترل‌های نمودار */
.wpudp6-chart-controls {
    margin-bottom: 15px;
}

.wpudp6-chart-controls label {
    font-weight: 600;
    margin-right: 10px;
}

.wpudp6-chart-controls select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
}

/* فرم آواتار */
.wpudp6-avatar-form {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,.1);
}

.wpudp6-avatar-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    opacity: .9;
}

.wpudp6-avatar-form input[type=file] {
    width: 100%;
    padding: 8px;
    background: rgba(255,255,255,.05);
    border-radius: 6px;
    color: #fff;
    border: 1px dashed rgba(255,255,255,.15);
    font-size: 12px;
}

.wpudp6-avatar-form button {
    margin-top: 8px;
    padding: 10px 16px;
    background: #fff;
    color: #2e7d32;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
}

.wpudp6-avatar-form button:hover {
    background: #f8f9fa;
}

.wpudp6-avatar-msg {
    font-size: 12px;
    margin-top: 8px;
    min-height: 20px;
}

/* دکمه‌ها */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: #2e7d32;
    color: #fff;
}

.btn-primary:hover {
    background: #4caf50;
    color: #fff;
    transform: translateY(-2px);
}

.btn-view {
    background: #3498db;
    color: #fff;
    padding: 8px 16px;
    font-size: 12px;
}

.btn-view:hover {
    background: #2980b9;
}

.small {
    font-size: 11px;
    color: #888;
    margin-top: 5px;
}

/* صفحه لاگین */
.wpudp6-login-wrap {
    display: flex;
    justify-content: center;
    padding: 40px;
}

.wpudp6-login-box {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,.06);
    width: 420px;
    text-align: center;
}

.wpudp6-login-box h3 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.wpudp6-login-links {
    margin-top: 20px;
    font-size: 14px;
}

.wpudp6-login-links a {
    color: #2e7d32;
    text-decoration: none;
    margin: 0 10px;
}

.wpudp6-login-links a:hover {
    text-decoration: underline;
}

.wpudp6-error {
    background: #f8d7da;
    color: #721c24;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin: 20px 0;
    border: 1px solid #f5c6cb;
}

/* رسپانسیو */
@media (max-width: 1024px) {
    .wpudp6-cards,
    .wpudp6-status-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .wpudp6-container {
        flex-direction: column;
        margin-top: -60px;
    }
    .wpudp6-cards,
    .wpudp6-status-cards {
        grid-template-columns: 1fr;
    }
    .wpudp6-side {
        width: 100%;
    }
    .wpudp6-main {
        padding: 20px;
    }
}

.wpudp-btn{
    background:#16a34a;
    color:#fff;
    padding:10px 16px;
    border-radius:6px;
    text-decoration:none;
    font-weight:600;
    display:inline-block;
    border:none;
}

.wpudp-btn:hover{
    background:#15803d;
    color:#fff;
}

.wpudp-btn-danger{
    background:#dc2626;
    color:#fff;
    padding:8px 14px;
    border-radius:6px;
    border:none;
    cursor:pointer;
}

.wpudp-avatar{
    width:120px;
    height:120px;
    border-radius:50%;
    object-fit:cover;
}

.wpudp-avatar-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.wpudp-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #eee;
}

#wpudp6-delete-avatar {
    position: absolute;
    top: 0;
    right: 0;
    width: 28px;
    height: 28px;
    background: #dc2626 !important;
    color: #fff !important;
    border-radius: 50%;
    border: 2px solid #fff;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}

#wpudp6-delete-avatar:hover {
    transform: scale(1.1);
    background: #b91c1c !important;
}
/* استایل کلی ظرف فرم ورود و عضویت */
.wpudp-custom-auth {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 40px 10px;
    direction: rtl;
    font-family: tahoma, arial;
}

.auth-container {
    display: flex;
    max-width: 1000px;
    width: 100%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
    overflow: hidden;
}

.auth-box {
    flex: 1;
    padding: 30px;
}

.login-section { border-left: 1px solid #eee; }

.auth-box h2 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #333;
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-item {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    color: #666;
}

.tab-item.active {
    border-color: #2bb09a;
    color: #2bb09a;
}

.input-group { margin-bottom: 15px; }
.input-group label { display: block; margin-bottom: 5px; font-size: 14px; }
.input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.btn-submit {
    background: #2bb09a;
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit:hover { background: #249683; }

.auth-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.lost-pass { font-size: 13px; color: #777; text-decoration: none; margin-top: 10px; display: block; }

/* --- Ticket UI Fix --- */
.wpudp-ticket-system { direction: rtl; text-align: right; }
.wpudp-ticket-new { background: #fdfdfd; border: 1px solid #eef2f6; padding: 25px; border-radius: 20px; margin-bottom: 30px; box-shadow: 0 10px 25px rgba(0,0,0,0.03); }
.wpudp-ticket-new input, .wpudp-ticket-new textarea { width: 100% !important; border: 1px solid #dcdfe6 !important; border-radius: 12px !important; padding: 12px 15px !important; margin-bottom: 15px !important; }
#ticket_submit { background: #2e7d32 !important; color: #fff !important; border: none !important; padding: 10px 30px !important; border-radius: 12px !important; cursor: pointer; }

.ticket-item { display: flex !important; flex-wrap: wrap; align-items: center !important; justify-content: space-between !important; background: #ffffff; border: 1px solid #e2e8f0; padding: 15px 20px; margin-bottom: 12px; border-radius: 15px; }
.open-ticket { background: #2e7d32 !important; color: white !important; border: none !important; padding: 8px 20px !important; border-radius: 10px !important; cursor: pointer; }

.ticket-message { background: #f8fafc; padding: 15px; border-radius: 12px; margin-bottom: 10px; border-right: 4px solid #2e7d32; font-size: 14px; }
.wpudp-send-reply { background: #2e7d32; color: #fff; border: none; padding: 8px 20px; border-radius: 10px; cursor: pointer; }
