/* ============================================
   BOUNTY HUNTER PUBLIC STYLES
   Modern & Beautiful UI Design
   ============================================ */

/* Fixed Button */
.ptbh-fixed-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.16);
    border-radius: 999px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ptbh-fixed-button:hover {
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.22);
    transform: translateY(-1px);
}

.ptbh-fixed-link {
    display: flex;
    align-items: center;
    padding: 12px 22px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    color: #fff !important;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
}

.ptbh-fixed-link:hover {
    color: #fff !important;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #db2777 100%);
}

.ptbh-fixed-link .ptbh-icon {
    font-size: 18px;
    margin-right: 8px;
}

/* Widget Container */
.ptbh-widget-container {
    background: #f3f4f6;
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: none;
    max-width: 960px;
    margin: 0 auto;
    border: 1px solid #e5e7eb;
}

.ptbh-widget-title {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 26px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #111827;
}

.ptbh-section {
    margin-bottom: 20px;
    padding: 20px 18px;
    background: #ffffff;
    border-radius: 12px;
    /* border: 1px solid #e5e7eb; */
    box-shadow: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

/* .ptbh-section:hover {
    border-color: #d1d5db;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.10);
    transform: translateY(-1px);
} */

.ptbh-section:last-child {
    margin-bottom: 0;
}

.ptbh-section h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 21px;
    color: #111827;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.ptbh-section h4 {
    margin-top: 20px;
    margin-bottom: 15px;
    font-size: 18px;
    color: #2d3748;
    font-weight: 700;
}

/* Status Indicators */
.ptbh-status-verified,
.ptbh-status-unverified {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.ptbh-status-verified {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.ptbh-status-unverified {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.ptbh-status-verified .ptbh-icon,
.ptbh-status-unverified .ptbh-icon {
    font-size: 16px;
    font-weight: bold;
}

/* Buttons */
.ptbh-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    text-decoration: none;
    box-shadow: none;
}

/* .ptbh-button:hover {
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
    transform: translateY(-1px);
} */

.ptbh-verify-button {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    color: #fff;
    margin-top: 16px;
}

.ptbh-verify-button:hover {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #db2777 100%);
}

.ptbh-submit-button {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    color: #fff;
    min-width: 120px;
    padding: 10px 20px;
}

.ptbh-submit-button:hover {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #db2777 100%);
}

.ptbh-claim-button {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    color: #fff;
    width: 100%;
    padding: 14px;
    font-size: 15px;
    margin-top: 16px;
}

.ptbh-claim-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #db2777 100%);
}

.ptbh-claim-button:disabled {
    background: #f1f5f9;
    color: #64748b;
    cursor: not-allowed;
    border: none;
    opacity: 1;
    font-weight: 500;
    box-shadow: none;
    letter-spacing: 0;
}

.ptbh-claim-main {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
}

.ptbh-claim-main:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #db2777 100%);
}

.ptbh-toggle-button {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    color: #fff;
}

.ptbh-toggle-button:hover {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #db2777 100%);
    color: #fff;
}

/* Verification header layout */
.ptbh-verification-section {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 16px;
    row-gap: 12px;
}

.ptbh-verification-section h3 {
    margin: 0;
}

.ptbh-verification-section .ptbh-status-verified,
.ptbh-verification-section .ptbh-status-unverified {
    margin-top: 0;
    justify-self: end;
    padding: 4px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

/* Hide icon in verification status (per request) */
.ptbh-verification-section .ptbh-icon {
    display: none;
}

/* Put verify button on a new line under the header */
.ptbh-verification-section .ptbh-verify-button {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 0;
}

/* Input Fields */
.ptbh-input {
    width: 100%;
    padding: 10px 16px !important;
    border: 2px solid #e2e8f0;
    border-radius: 12px !important;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #2d3748;
    font-weight: 500;
}

.ptbh-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.ptbh-input::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

.ptbh-referrer-input-group {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    align-items: stretch;
}

.ptbh-referrer-input-group .ptbh-input {
    flex: 1;
}

/* Progress Bar */
.ptbh-progress-bar-container {
    margin: 20px 0 12px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
}

.ptbh-progress-bar {
    width: 100%;
    height: 8px;
    background: #f1f5f9;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.ptbh-progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    border-radius: 999px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    position: relative;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.ptbh-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.ptbh-progress-text {
    margin-top: 12px;
    text-align: center;
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.ptbh-progress-text strong {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 20px;
    font-weight: 700;
    display: inline-block;
    margin: 0 4px;
    letter-spacing: -0.3px;
}

/* Actions List */
.ptbh-actions-list,
.ptbh-personal-actions-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.ptbh-actions-list li,
.ptbh-personal-actions-list li {
    padding: 8px 0;
    font-size: 14px;
    color: #666;
}

.ptbh-personal-actions-list li {
    display: flex;
    align-items: center;
    padding: 10px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.ptbh-personal-actions-list li.completed {
    background: #d4edda;
    color: #155724;
}

.ptbh-action-icon {
    margin-right: 10px;
    font-weight: bold;
    font-size: 16px;
}

/* Reward Cards */
.ptbh-rewards-section {
    background: transparent;
    padding: 0;
    border-radius: 0;
    margin: 0;
}

.ptbh-reward-card {
    background: #ffffff;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.ptbh-reward-card:hover {
    border-color: #d1d5db;
}

.ptbh-reward-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.ptbh-reward-header h4 {
    margin: 0;
    font-size: 18px;
    color: #111827;
    font-weight: 600;
}

.ptbh-reward-badge {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    color: #fff;
    padding: 4px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.ptbh-reward-description {
    color: #475569;
    margin: 0 0 12px 0;
    font-size: 15px;
    line-height: 1.7;
    font-weight: 400;
}

.ptbh-reward-remaining {
    color: #6366f1;
    font-size: 13px;
    margin: 0 0 20px 0;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.08);
    border-radius: 8px;
    border: none;
    box-shadow: none;
    letter-spacing: 0;
    text-transform: none;
}

/* Referrals Table */
.ptbh-referrals-list {
    margin-top: 20px;
    overflow-x: auto;
}

.ptbh-referrals-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.ptbh-referrals-table thead {
    background: #667eea;
    color: #fff;
}

.ptbh-referrals-table th,
.ptbh-referrals-table td {
    padding: 12px;
    text-align: left;
    font-size: 14px;
}

.ptbh-referrals-table tr:nth-child(even) {
    background: #f8f9fa;
}

/* Badges */
.ptbh-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.ptbh-badge-success {
    background: #d4edda;
    color: #155724;
}

.ptbh-badge-pending {
    background: #fff3cd;
    color: #856404;
}

/* Description Text */
.ptbh-description {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.6;
    padding: 12px;
    background: #f9fafb;
    border-radius: 6px;
    border-left: 3px solid #4f46e5;
}

/* Responsive */
@media (max-width: 768px) {
    .ptbh-widget-container {
        padding: 24px 20px;
        border-radius: 16px;
    }
    
    .ptbh-section {
        /* padding: 20px; */
        margin-bottom: 24px;
        border-radius: 12px;
    }
    
    .ptbh-section h3 {
        font-size: 20px;
    }

    .ptbh-verification-section {
        grid-template-columns: 1fr;
        row-gap: 10px;
    }

    .ptbh-verification-section .ptbh-status-verified,
    .ptbh-verification-section .ptbh-status-unverified {
        justify-self: start;
    }
    
    .ptbh-fixed-button {
        bottom: 20px;
        right: 20px;
    }
    
    .ptbh-fixed-link {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .ptbh-fixed-link .ptbh-text {
        display: none;
    }
    
    .ptbh-referrer-input-group {
        flex-direction: column;
    }
    
    .ptbh-referrer-input-group .ptbh-submit-button {
        width: 100%;
    }
    
    .ptbh-reward-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .ptbh-reward-card {
        padding: 24px 20px;
    }
    
    .ptbh-progress-bar-container {
        padding: 16px;
    }
    
    .ptbh-progress-text {
        font-size: 16px;
    }
    
    .ptbh-progress-text strong {
        font-size: 20px;
    }
    
    .ptbh-button {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* Loading State */
.ptbh-loading {
    opacity: 0.6;
    pointer-events: none;
}

.ptbh-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: ptbh-spin 0.6s linear infinite;
}

@keyframes ptbh-spin {
    to { transform: rotate(360deg); }
}

/* Action Hints */
.ptbh-action-hint {
    display: inline-block;
    margin-left: 8px;
    font-size: 12px;
    color: #999;
    font-style: italic;
}

.ptbh-personal-actions-list li.completed .ptbh-action-hint {
    display: none;
}

/* Debug Info */
.ptbh-debug-info {
    background: #fff3cd !important;
    padding: 10px !important;
    margin-top: 10px !important;
    border-left: 3px solid #ffc107 !important;
    font-size: 12px !important;
    border-radius: 4px;
}

.ptbh-debug-info strong {
    color: #856404;
}

.ptbh-debug-info small {
    color: #666 !important;
    display: block;
    margin-top: 8px;
}

/* ============================================
   NOTIFICATION BANNER WIDGET
   ============================================ */

.ptbh-notification-widget {
    margin: 20px 0;
}

.ptbh-notification-banner {
    border-radius: 16px;
    padding: 28px 36px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%) !important;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25) !important;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ptbh-notification-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.35);
}

.ptbh-notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.ptbh-notification-text {
    flex: 1;
    min-width: 250px;
    color: #ffffff;
}

.ptbh-notification-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px 0;
    line-height: 1.3;
    color: #ffffff;
}

.ptbh-notification-message {
    font-size: 15px;
    margin: 0;
    color: #ffffff;
    opacity: 0.95;
    line-height: 1.5;
    font-weight: 400;
}

.ptbh-notification-action {
    flex-shrink: 0;
}

.ptbh-notification-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.ptbh-notification-button:hover {
    text-decoration: none;
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateX(3px);
}

.ptbh-notification-arrow {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.ptbh-notification-button:hover .ptbh-notification-arrow {
    transform: translateX(3px);
}

/* Responsive Design - Notification Banner */
@media (max-width: 768px) {
    .ptbh-notification-banner {
        padding: 24px 20px;
        border-radius: 16px;
    }
    
    .ptbh-notification-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .ptbh-notification-text {
        min-width: 100%;
        text-align: center;
    }
    
    .ptbh-notification-title {
        font-size: 20px;
    }
    
    .ptbh-notification-message {
        font-size: 14px;
    }
    
    .ptbh-notification-button {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }
}