/* Referral Card Styles - Glassmorphie Liquid */

/* Main Card - Mobile Only */
.referral-card {
    background: var(--glass-light);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 0;
    margin: 4px;
    box-shadow:
        0 8px 32px var(--glass-shadow),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

/* Tabs */
.referral-tabs {
    display: flex;
    border-bottom: 1px solid var(--glass-border);
    background: var(--glass-light);
}

.tab-btn {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn.active {
    color: var(--text-primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #0088cc;
}

.tab-btn:active {
    color: var(--text-primary);
    background: var(--glass-lighter);
    transform: scale(0.97);
    -webkit-tap-highlight-color: transparent;
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 16px;
}

.tab-content.active {
    display: block;
}

/* Stats Section */
.referral-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.referral-stat-item {
    text-align: center;
    padding: 12px;
    background: var(--glass-light);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-value {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Link Section */
.referral-link-section {
    margin-bottom: 16px;
}

.referral-link-section label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.referral-link-box input {
    flex: 1;
    padding: 12px;
    background: var(--glass-light);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 13px;
    font-family: monospace;
}

.referral-link-box input:focus {
    outline: none;
    border-color: #0088cc;
    background: var(--glass-lighter);
}

.copy-btn {
    padding: 12px 16px;
    background: var(--glass-lighter);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn svg {
    width: 20px;
    height: 20px;
}

.copy-btn:active {
    background: var(--glass-lighter);
    transform: scale(0.95);
    -webkit-tap-highlight-color: transparent;
}

/* Share Button */
.referral-share-btn {
    width: 100%;
    padding: 12px;
    background: #0088cc;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.referral-share-btn:active {
    background: #0077b3;
    transform: scale(0.96);
    -webkit-tap-highlight-color: transparent;
}

/* History Section */
.referral-history {
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
}

.referral-history h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.referral-history-list {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.referral-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--glass-border);
}

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

.history-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.history-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.history-info {
    font-size: 13px;
    color: var(--text-secondary);
}

.history-time {
    font-size: 13px;
    color: var(--text-secondary);
    opacity: 0.7;
    margin-left: 4px;
}

.history-points {
    font-size: 16px;
    font-weight: 700;
    color: #00ff41;
    flex-shrink: 0;
}

/* Load More Button */
.referral-load-more {
    width: 100%;
    padding: 10px;
    background: var(--glass-light);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.referral-load-more:active {
    background: var(--glass-lighter);
    color: var(--text-primary);
    transform: scale(0.97);
    -webkit-tap-highlight-color: transparent;
}

.referral-load-more.hidden {
    display: none;
}

/* Empty State */
.referral-empty {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Loading State */
.referral-loading {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
}

/* Inscription Content */
.inscription-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.inscription-instructions {
    text-align: center;
}

.inscription-instructions p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

#vendor-action-container-tab {
    width: 100%;
}

/* NO RESPONSIVE - MOBILE ONLY APP */
