/* =============================================
   Offerwall Rewards - Premium Dark UI
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.ow-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 0 15px;
    font-family: 'Inter', sans-serif;
}

/* ---- Cards ---- */
.ow-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(243, 186, 47, 0.15);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 24px;
    color: #e0e0e0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.ow-card h2 {
    margin-top: 0;
    font-size: 22px;
    font-weight: 700;
    color: #f3ba2f;
    margin-bottom: 8px;
}

.ow-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #ccc;
    margin-bottom: 10px;
}

.ow-card p {
    color: #aaa;
    line-height: 1.6;
}

/* ---- Balance Bar (top of offerwall page) ---- */
.ow-balance-bar {
    display: flex;
    justify-content: space-around;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(243, 186, 47, 0.2);
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.ow-balance-item {
    text-align: center;
}

.ow-balance-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 4px;
}

.ow-balance-value {
    font-size: 20px;
    font-weight: 700;
    color: #f3ba2f;
}

.ow-balance-value.ow-pending {
    color: #ff9800;
}

/* ---- Balance Grid (dashboard) ---- */
.ow-balance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.ow-stat {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(243, 186, 47, 0.1);
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.ow-stat:hover {
    transform: translateY(-2px);
    border-color: rgba(243, 186, 47, 0.4);
}

.ow-stat-value {
    font-size: 26px;
    font-weight: 700;
    color: #f3ba2f;
}

.ow-stat-value.ow-pending {
    color: #ff9800;
}

.ow-stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-top: 6px;
}

/* ---- Buttons ---- */
.ow-btn {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, #f3ba2f 0%, #e0a800 100%);
    color: #1a1a2e;
    font-weight: 700;
    font-size: 15px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(243, 186, 47, 0.3);
    margin-top: 10px;
}

.ow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(243, 186, 47, 0.5);
    color: #1a1a2e;
}

.ow-btn-secondary {
    background: transparent;
    border: 2px solid #f3ba2f;
    color: #f3ba2f;
    box-shadow: none;
    margin-left: 10px;
}

.ow-btn-secondary:hover {
    background: rgba(243, 186, 47, 0.1);
    color: #f3ba2f;
}

.ow-btn-small {
    padding: 8px 16px;
    font-size: 13px;
    margin-top: 0;
}

.ow-btn-disabled {
    background: #555;
    color: #999;
    cursor: not-allowed;
    box-shadow: none;
}

.ow-btn-disabled:hover {
    transform: none;
    box-shadow: none;
}

/* ---- Progress Bar ---- */
.ow-progress-bar {
    width: 100%;
    height: 14px;
    background: rgba(255,255,255,0.08);
    border-radius: 7px;
    overflow: hidden;
    margin-bottom: 15px;
}

.ow-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f3ba2f 0%, #ffd700 100%);
    border-radius: 7px;
    transition: width 0.6s ease;
    box-shadow: 0 0 12px rgba(243, 186, 47, 0.4);
}

/* ---- Referral Box ---- */
.ow-referral-box {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.ow-referral-box input {
    flex: 1;
    padding: 10px 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(243, 186, 47, 0.2);
    border-radius: 8px;
    color: #f3ba2f;
    font-size: 14px;
    font-family: 'Inter', monospace;
}

.ow-referral-stats {
    display: flex;
    gap: 25px;
    color: #aaa;
    font-size: 14px;
    margin-top: 5px;
}

/* ---- Table ---- */
.ow-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.ow-table thead th {
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ow-table tbody td {
    padding: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 14px;
    color: #ccc;
}

.ow-table tbody tr:hover {
    background: rgba(243, 186, 47, 0.03);
}

/* ---- Status Badges ---- */
.ow-status {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.ow-status-completed {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
}

.ow-status-pending {
    background: rgba(255, 152, 0, 0.15);
    color: #ff9800;
}

.ow-status-held {
    background: rgba(255, 152, 0, 0.15);
    color: #ff9800;
}

.ow-status-reversed {
    background: rgba(244, 67, 54, 0.15);
    color: #f44336;
}

/* ---- Login / Blocked Prompts ---- */
.ow-login-prompt,
.ow-blocked {
    text-align: center;
    padding: 50px 30px;
}

.ow-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.ow-blocked {
    border-color: rgba(244, 67, 54, 0.3);
}

.ow-blocked h2 {
    color: #f44336;
}

/* ---- Notice ---- */
.ow-notice {
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid rgba(255, 152, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.ow-notice p {
    color: #ff9800;
    margin: 0;
}

/* ---- Messages ---- */
#ow-withdraw-message {
    padding: 10px 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 14px;
}

#ow-withdraw-message.ow-msg-success {
    background: rgba(76, 175, 80, 0.12);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

#ow-withdraw-message.ow-msg-error {
    background: rgba(244, 67, 54, 0.12);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .ow-balance-bar {
        flex-direction: column;
        gap: 12px;
    }
    .ow-balance-grid {
        grid-template-columns: 1fr 1fr;
    }
    .ow-referral-box {
        flex-direction: column;
    }
    .ow-referral-stats {
        flex-direction: column;
        gap: 6px;
    }
    .ow-btn-secondary {
        margin-left: 0;
    }
}
