/* TP Clubigo My Account Styles */
:root {
  --color-1: #5c5076;
  --color-2: #6cc6c9;
  --color-3: #fff;
  --color-4: #f9f9f9;
  --color-5: #493c64;
  --color-6: #def6f7;
  --color-7: #ccc;
  --color-8: #c74646;
}
.tp-clubigo-my-account {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    direction: rtl;
}

.tp-clubigo-my-account h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 1.7em;
}

/* Points Balance Card */
.tp-clubigo-points-balance {
    margin-bottom: 30px;
}

.points-card {
    background: linear-gradient(135deg, #0073aa 0%, #0f7baf 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
}

.points-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.points-card.clicked {
    transform: scale(0.98);
}

.points-icon {
    font-size: 4em;
    margin-left: 20px;
}

.points-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    opacity: 0.9;
}

.points-amount {
    font-size: 3em;
    font-weight: bold;
    margin: 10px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.points-value {
    margin: 0;
    opacity: 0.8;
    font-size: 1.1em;
}

/* Points Refresh Button */
.points-refresh-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.points-refresh-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.points-refresh-btn.spinning {
    animation: spin 1s linear infinite;
}

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

/* Birthday Section */
.tp-clubigo-birthday-section {
    margin-bottom: 30px;
}

.birthday-card {
    background: #fff3cd;
    border: 2px solid #ffeaa7;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
}

.birthday-card h3 {
    color: #856404;
    margin-bottom: 15px;
}

.birthday-incentive {
    color: #856404;
    font-size: 1.1em;
    margin-bottom: 20px;
}

.birthday-form {
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #856404;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 2px solid #ffeaa7;
    border-radius: 5px;
    font-size: 16px;
}

.form-actions {
    margin-bottom: 15px;
}

.form-note {
    font-size: 0.9em;
    color: #856404;
    font-style: italic;
}

/* Member Info */
.tp-clubigo-member-info {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    font-size: 14px;
}

.tp-clubigo-member-info h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ecf0f1;
}

.info-label {
    font-weight: bold;
    color: #7f8c8d;
}

.info-value {
    color: #2c3e50;
}

.status-active {
    color: #27ae60;
    font-weight: bold;
}

/* Points History */
.tp-clubigo-points-history {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    font-size: 14px;
}

.tp-clubigo-points-history h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 10px;
}

.history-table-wrapper {
    overflow-x: auto;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.history-table th,
.history-table td {
    padding: 12px;
    text-align: right;
    border-bottom: 1px solid #ecf0f1;
}

.history-table th:first-child,
.history-table td:first-child {
    width: 25%;
}

.history-table th:nth-child(2),
.history-table td:nth-child(2) {
    width: 20%;
    text-align: center;
}

.history-table th:nth-child(3),
.history-table td:nth-child(3) {
    width: 55%;
}

.history-table td:nth-child(3) {
    font-weight: 500;
}

.history-table tbody tr:hover {
    background-color: #f8f9fa;
}

.history-table th {
    background: #f8f9fa;
    font-weight: bold;
    color: #2c3e50;
}

.points-cell.positive {
    color: #27ae60;
    font-weight: bold;
}

.points-cell.negative {
    color: #e74c3c;
    font-weight: bold;
}

.no-history {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

/* Coupons History */
.tp-clubigo-coupons-history {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    font-size: 14px;
}

.tp-clubigo-coupons-history h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 2px solid #9b59b6;
    padding-bottom: 10px;
}

.coupon-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.coupon-status.active {
    background-color: #d4edda;
    color: #155724;
}

.coupon-status.used {
    background-color: #cce5ff;
    color: #004085;
}

.coupon-status.expired {
    background-color: #f8d7da;
    color: #721c24;
}

/* Benefits Section */
.tp-clubigo-benefits {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    font-size: 14px;
}

.tp-clubigo-benefits h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 2px solid #f39c12;
    padding-bottom: 10px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.benefit-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.benefit-card:hover,
.benefit-card.hovered {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #3498db;
}

.benefit-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.benefit-card h4 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.benefit-card p {
    color: #7f8c8d;
    margin: 0;
}

/* Redemption Section */
.tp-clubigo-redemption {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.tp-clubigo-redemption h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 2px solid #9b59b6;
    padding-bottom: 10px;
}

.redemption-available {
    text-align: center;
    padding: 20px;
    background: #d4edda;
    border-radius: 8px;
    border: 1px solid #c3e6cb;
}

.redemption-unavailable {
    text-align: center;
    padding: 20px;
    background: #f8d7da;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
}

/* Notices */
.tp-clubigo-notice {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    position: relative;
    animation: slideDown 0.3s ease;
}

.notice-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.notice-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.notice-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.notice-dismiss {
    position: absolute;
    top: 10px;
    left: 15px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
}

.notice-dismiss:hover {
    opacity: 1;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .tp-clubigo-my-account {
        padding: 15px;
    }
    
    .points-card {
        flex-direction: column;
        text-align: center;
    }
    
    .points-icon {
        margin-left: 0;
        margin-bottom: 15px;
    }
    
    .points-amount {
        font-size: 2.5em;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}
