/* BytesQube Referral Plugin - Modern Aesthetic Overhaul */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --bqr-primary: #6366f1;
    /* Indigo 500 */
    --bqr-primary-dark: #4f46e5;
    --bqr-success: #10b981;
    --bqr-warning: #f59e0b;
    --bqr-danger: #ef4444;
    --bqr-surface: #ffffff;
    --bqr-bg: #f8fafc;
    /* Slate 50 */
    --bqr-text-main: #0f172a;
    /* Slate 900 */
    --bqr-text-muted: #64748b;
    /* Slate 500 */
    --bqr-border: #e2e8f0;
    --bqr-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.02), 0 2px 4px -2px rgb(0 0 0 / 0.02);
    --bqr-shadow-hover: 0 20px 25px -5px rgb(0 0 0 / 0.05), 0 8px 10px -6px rgb(0 0 0 / 0.01);
}

.bqr-dashboard {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    max-width: 1200px;
    margin: 40px auto;
    color: var(--bqr-text-main);
    line-height: 1.6;
    border-radius: 24px;
}

/* --- Cards & Sections --- */
.bqr-card,
.bqr-section {
    background: var(--bqr-surface);
    border: 1px solid var(--bqr-border);
    border-radius: 20px;
    box-shadow: var(--bqr-shadow);
    padding: 24px !important;
    /* Reverting to comfortable padding but keeping text small */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.bqr-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--bqr-shadow-hover);
    border-color: #cbd5e1;
}

.bqr-section {
    margin-bottom: 32px;
    padding: 32px !important;
}

/* --- Typography --- */
.bqr-section h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bqr-text-main);
    margin: 0 0 24px 0;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--bqr-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    letter-spacing: -0.01em;
}

/* --- Stats Grid --- */
.bqr-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* Stat Card Styling */
.bqr-card h3 {
    font-size: 0.75rem !important;
    font-weight: 600;
    color: var(--bqr-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.bqr-card .value {
    font-size: 1.75rem !important;
    /* Slightly larger, better font makes it look good */
    font-weight: 700;
    color: var(--bqr-text-main);
    letter-spacing: -0.03em;
}

/* Decorative gradients for cards */
.bqr-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--bqr-border), transparent);
    opacity: 0.5;
}

/* Highlight Card (Wallet) */
.bqr-card.highlight {
    background: linear-gradient(145deg, #ffffff 0%, #f0fdfa 100%);
    border-color: #ccfbf1;
}

.bqr-card.highlight .value {
    color: #0d9488;
    /* Teal 600 */
}

/* Blog Earnings Card */
.bqr-card[style*="f0fdf4"] {
    background: linear-gradient(145deg, #ffffff 0%, #f0fdf4 100%) !important;
    border-color: #bbf7d0 !important;
}

/* --- Inputs --- */
.bqr-input-group {
    display: flex;
    gap: 12px;
    position: relative;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 14px;
    border: 1px solid white;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
}

.bqr-input-group input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 16px;
    font-size: 0.95rem;
    color: var(--bqr-text-main);
    font-family: inherit;
    font-weight: 500;
}

.bqr-input-group input:focus {
    outline: none;
}

/* --- Buttons --- */
.bqr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.bqr-btn-primary {
    background: var(--bqr-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.bqr-btn-primary:hover {
    background: var(--bqr-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3);
}

/* Social Buttons */
.bqr-btn-social {
    padding: 8px 16px;
    border-radius: 99px;
    /* Pill shape */
    font-size: 0.85rem;
    opacity: 0.9;
}

.bqr-btn-social:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* --- Table Styles --- */
.table-responsive {
    border: 1px solid var(--bqr-border);
    border-radius: 16px;
    overflow: hidden;
}

.bqr-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
}

.bqr-table th {
    background: #f8fafc;
    color: var(--bqr-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    padding: 20px 24px;
    border-bottom: 1px solid var(--bqr-border);
}

.bqr-table td {
    padding: 20px 24px;
    border-bottom: 1px solid var(--bqr-border);
    color: var(--bqr-text-main);
    font-size: 0.9rem;
}

.bqr-table tr:last-child td {
    border-bottom: none;
}

.bqr-table tr:hover td {
    background: #f1f5f9;
}

/* --- Status Badges --- */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
}

.status-verified,
.status-paid {
    background: #d1fae5;
    color: #047857;
}

.status-pending {
    background: #fef3c7;
    color: #b45309;
}

.status-rejected {
    background: #fee2e2;
    color: #b91c1c;
}

/* --- QR Code & Share Area --- */
.bqr-share-cointainer {
    background: linear-gradient(to right, #ffffff, #f8fafc);
    border-radius: 16px;
    padding: 8px;
    /* Internal padding handled by flex gap usually, but this adds a frame */
}

.bqr-qr-code {
    border: 2px dashed var(--bqr-border);
    padding: 16px;
    border-radius: 16px;
    background: white;
    transition: transform 0.3s ease;
}

.bqr-qr-code:hover {
    transform: rotate(2deg) scale(1.02);
    border-color: var(--bqr-primary);
}

/* --- Select Dropdown --- */
select[name="bqr_payout_method"] {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2364748b%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 0.65em auto;
    padding-right: 2.5rem !important;
    border: 1px solid var(--bqr-border);
    border-radius: 10px;
    color: var(--bqr-text-main);
    font-weight: 500;
}

/* --- My Account Dashboard Banners --- */
.bqr-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

.bqr-dashboard-banner {
    background: white;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    text-decoration: none !important;
    border: 1px solid var(--bqr-border);
    box-shadow: var(--bqr-shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--bqr-text-main);
}

.bqr-dashboard-banner:hover {
    transform: translateY(-5px);
    box-shadow: var(--bqr-shadow-hover);
    border-color: var(--bqr-primary);
    color: var(--bqr-primary);
}

.bqr-banner-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
    line-height: 1;
}

.bqr-banner-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.bqr-banner-desc {
    font-size: 0.9rem;
    color: var(--bqr-text-muted);
    font-weight: 500;
}