/* Member Center Styles */

/* Page Layout */
.member-page {
    background: #f5f7fa;
    min-height: calc(100vh - 64px);
}

/* Auth pages (login/register) */
.auth-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: calc(100vh - 64px);
}

/* Profile page */
.profile-form {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.profile-avatar-section {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid #f0f0f0;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.profile-info h2 {
    margin: 0 0 4px;
    font-size: 20px;
}

.profile-info p {
    margin: 0;
    color: #999;
    font-size: 13px;
}

/* Withdrawal page */
.withdraw-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.withdraw-method {
    padding: 20px;
    background: #fff;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.withdraw-method:hover {
    border-color: #ff6b6b;
}

.withdraw-method.active {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.04);
}

.withdraw-method-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.withdraw-method-name {
    font-weight: 500;
    margin-bottom: 4px;
}

.withdraw-method-desc {
    font-size: 12px;
    color: #999;
}

/* Order tracking */
.order-tracking {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.tracking-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    position: relative;
}

.tracking-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.tracking-step {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
}

.tracking-step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    color: #ccc;
    font-size: 16px;
}

.tracking-step.completed .tracking-step-icon {
    background: #ff6b6b;
    border-color: #ff6b6b;
    color: #fff;
}

.tracking-step.active .tracking-step-icon {
    background: #fff;
    border-color: #ff6b6b;
    color: #ff6b6b;
    animation: pulse 2s infinite;
}

.tracking-step-label {
    font-size: 13px;
    color: #666;
}

.tracking-step.completed .tracking-step-label,
.tracking-step.active .tracking-step-label {
    color: #333;
    font-weight: 500;
}

/* Cashback list */
.cashback-list {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.cashback-list-header {
    padding: 16px 20px;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cashback-list-header h3 {
    margin: 0;
    font-size: 16px;
}

.cashback-item {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: background 0.2s;
}

.cashback-item:hover {
    background: #fafafa;
}

.cashback-item:last-child {
    border-bottom: none;
}

.cashback-item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: #f5f5f5;
    overflow: hidden;
    flex-shrink: 0;
}

.cashback-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cashback-item-info {
    flex: 1;
    min-width: 0;
}

.cashback-item-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cashback-item-meta {
    font-size: 12px;
    color: #999;
}

.cashback-item-amount {
    text-align: right;
}

.cashback-item-cashback {
    font-size: 16px;
    font-weight: 600;
    color: #27ae60;
    margin-bottom: 4px;
}

.cashback-item-status {
    font-size: 12px;
}

/* Wallet transactions */
.transaction-list {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.transaction-item {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.transaction-icon.cashback { background: #d4edda; color: #27ae60; }
.transaction-icon.withdraw { background: #cce5ff; color: #3498db; }
.transaction-icon.freeze { background: #fff3cd; color: #f39c12; }
.transaction-icon.unfreeze { background: #d1ecf1; color: #17a2b8; }
.transaction-icon.adjust { background: #e2e3e5; color: #6c757d; }

.transaction-detail-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.transaction-detail-time {
    font-size: 12px;
    color: #999;
}

.transaction-amount {
    text-align: right;
    font-weight: 600;
}

.transaction-amount.positive { color: #27ae60; }
.transaction-amount.negative { color: #e74c3c; }

/* Manual order form */
.manual-order-form {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* Notification list */
.notification-list {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.notification-item {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    gap: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.notification-item:hover {
    background: #fafafa;
}

.notification-item.unread {
    background: rgba(255, 107, 107, 0.02);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 500;
    margin-bottom: 4px;
    color: #333;
}

.notification-text {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.notification-time {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

/* Mobile menu */
@media (max-width: 768px) {
    .withdraw-methods {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .profile-avatar-section {
        flex-direction: column;
        text-align: center;
    }

    .tracking-steps {
        flex-wrap: wrap;
        gap: 16px;
    }

    .tracking-steps::before {
        display: none;
    }

    .tracking-step {
        flex: 0 0 calc(50% - 8px);
    }
}