/**
 * RezaClub Elementor Widgets Styles
 */

/* =========================================================
   UserStatusWidget - کارت وضعیت
   ========================================================= */
.rezaclub-status-widget {
    padding: 28px;
    border-radius: 16px;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    font-family: IRANSans, Vazir, Tahoma, sans-serif;
    position: relative;
    overflow: hidden;
}

.rezaclub-status-widget::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    pointer-events: none;
}

.rezaclub-status-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.rezaclub-status-widget .tier-label,
.rezaclub-status-widget .balance-label {
    display: block;
    font-size: 13px;
    opacity: 0.85;
    margin-bottom: 4px;
}

.rezaclub-status-widget .tier-name {
    font-size: 22px;
    font-weight: 700;
}

.rezaclub-status-widget .balance-value {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.rezaclub-multiplier {
    margin-top: 16px;
    padding: 8px 14px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    display: inline-block;
    font-size: 13px;
    backdrop-filter: blur(4px);
}

.rezaclub-progress-wrapper {
    margin-top: 20px;
}

.rezaclub-progress-wrapper .progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 8px;
    opacity: 0.95;
}

.rezaclub-progress-wrapper .progress-bar {
    height: 10px;
    background: rgba(255,255,255,0.25);
    border-radius: 5px;
    overflow: hidden;
}

.rezaclub-progress-wrapper .progress-fill {
    height: 100%;
    background: #fff;
    border-radius: 5px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* =========================================================
   ReferralLinkWidget
   ========================================================= */
.rezaclub-referral-widget {
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    font-family: IRANSans, Vazir, Tahoma, sans-serif;
}

.rezaclub-referral-widget .widget-title {
    margin: 0 0 8px;
    font-size: 20px;
    color: #1a1a1a;
}

.rezaclub-referral-widget .widget-description {
    margin: 0 0 20px;
    color: #6b7280;
    line-height: 1.7;
}

.rezaclub-referral-widget .referral-link-box label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
}

.rezaclub-referral-widget .link-container {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.rezaclub-referral-widget .link-container input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: monospace;
    direction: ltr;
    text-align: left;
    font-size: 13px;
    background: #f9fafb;
}

.rezaclub-referral-widget .button-primary {
    padding: 10px 20px;
    background: #0284c7;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
    transition: transform 0.1s, background 0.2s;
}

.rezaclub-referral-widget .button-primary:hover {
    background: #0369a1;
    transform: translateY(-1px);
}

.rezaclub-referral-widget .referral-code-display {
    font-size: 13px;
    color: #6b7280;
}

.rezaclub-referral-widget .referral-code-display code {
    background: #eff6ff;
    color: #1e40af;
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 700;
    margin-right: 6px;
    direction: ltr;
    display: inline-block;
}

.rezaclub-referral-widget .referral-qr {
    text-align: center;
    margin: 20px 0;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
}

.rezaclub-referral-widget .referral-qr img {
    border: 4px solid #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.rezaclub-referral-widget .qr-hint {
    margin-top: 10px;
    font-size: 12px;
    color: #6b7280;
}

.rezaclub-referral-widget .referral-social {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin: 20px 0;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.rezaclub-referral-widget .social-label {
    font-size: 13px;
    color: #6b7280;
    margin-left: 4px;
}

.rezaclub-referral-widget .social-btn {
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    color: #fff;
    transition: transform 0.1s;
}

.rezaclub-referral-widget .social-btn:hover {
    transform: translateY(-1px);
}

.rezaclub-referral-widget .social-btn.telegram { background: #0088cc; }
.rezaclub-referral-widget .social-btn.whatsapp { background: #25d366; }
.rezaclub-referral-widget .social-btn.sms      { background: #6366f1; }

.rezaclub-referral-widget .referral-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.rezaclub-referral-widget .stat-box {
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    text-align: center;
}

.rezaclub-referral-widget .stat-box .label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}

.rezaclub-referral-widget .stat-box strong {
    font-size: 20px;
    color: #0284c7;
    font-weight: 700;
}

/* =========================================================
   PointsHistoryWidget
   ========================================================= */
.rezaclub-history-widget {
    font-family: IRANSans, Vazir, Tahoma, sans-serif;
}

.rezaclub-history-widget table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.rezaclub-history-widget thead {
    background: #f9fafb;
}

.rezaclub-history-widget th {
    padding: 12px 16px;
    text-align: right;
    font-weight: 700;
    color: #374151;
    font-size: 14px;
    border-bottom: 2px solid #e5e7eb;
}

.rezaclub-history-widget td {
    padding: 14px 16px;
    border-bottom: 1px solid #f3f4f6;
    color: #4b5563;
}

.rezaclub-history-widget tr:last-child td {
    border-bottom: none;
}

.rezaclub-history-widget tr:hover {
    background: #f9fafb;
}

.rezaclub-history-widget .col-points {
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
}

.rezaclub-history-widget .type-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    background: #eff6ff;
    color: #1e40af;
}

.rezaclub-history-widget .no-records {
    padding: 40px 20px;
    text-align: center;
    color: #9ca3af;
    background: #f9fafb;
    border-radius: 8px;
}

/* =========================================================
   WheelWidget wrapper
   ========================================================= */
.rezaclub-wheel-elementor-wrapper {
    text-align: center;
    font-family: IRANSans, Vazir, Tahoma, sans-serif;
}

.rezaclub-wheel-elementor-wrapper .wheel-title {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 700;
}

.rezaclub-wheel-elementor-wrapper .wheel-description {
    margin: 0 0 20px;
    color: #6b7280;
    line-height: 1.7;
}

.rezaclub-wheel-elementor-wrapper .wheel-last-win {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 24px;
    margin: 16px 0;
    font-size: 14px;
}

.rezaclub-wheel-elementor-wrapper .wheel-last-win .label {
    color: #6b7280;
}

.rezaclub-wheel-elementor-wrapper .wheel-last-win strong {
    color: #1a1a1a;
}

.rezaclub-wheel-elementor-wrapper .wheel-last-win .date {
    color: #9ca3af;
    font-size: 12px;
}

.rezaclub-wheel-elementor-wrapper .wheel-rules {
    margin-top: 24px;
    padding: 16px 20px;
    background: rgba(255,255,255,0.6);
    border-radius: 10px;
    text-align: right;
    display: inline-block;
    backdrop-filter: blur(4px);
}

.rezaclub-wheel-elementor-wrapper .wheel-rules h4 {
    margin: 0 0 12px;
    font-size: 15px;
    color: #1a1a1a;
}

.rezaclub-wheel-elementor-wrapper .wheel-rules ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
}

.rezaclub-wheel-elementor-wrapper .wheel-rules li {
    padding: 6px 0;
    color: #374151;
    font-size: 14px;
}

/* =========================================================
   حالت مشترک: guest message
   ========================================================= */
.rezaclub-widget-guest {
    padding: 40px 24px;
    text-align: center;
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    font-family: IRANSans, Vazir, Tahoma, sans-serif;
}

.rezaclub-widget-guest p {
    margin: 0 0 16px;
    color: #6b7280;
}

.rezaclub-widget-guest .button {
    display: inline-block;
    padding: 10px 24px;
    background: #2271b1;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.rezaclub-widget-guest .button:hover {
    background: #1d5fa0;
    color: #fff;
}

.rezaclub-wheel-disabled {
    padding: 40px 24px;
    text-align: center;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    color: #991b1b;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 600px) {
    .rezaclub-status-widget .balance-value {
        font-size: 26px;
    }

    .rezaclub-referral-widget .link-container {
        flex-direction: column;
    }

    .rezaclub-referral-widget .referral-stats {
        grid-template-columns: 1fr;
    }

    .rezaclub-history-widget th,
    .rezaclub-history-widget td {
        padding: 10px 12px;
        font-size: 13px;
    }

    .rezaclub-history-widget .col-type {
        display: none;
    }
}
