/**
 * RaiseFi Modal System Styles
 * 
 * Complete modal styling for RaiseFi 3.0 plugin architecture
 * Includes campaign, reward, and address modals with responsive design
 *
 * @package RaiseFi_Core
 * @version 3.0.0
 */

/* Base modal overlay and container */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
}

.modal.is-open {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.modal__overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal__container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Modal Header */
.modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px 15px;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.modal__title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: white;
}

.modal__close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    color: white;
    transition: all 0.3s ease;
}

.modal__close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Modal Content */
.modal__content {
    padding: 25px;
}

/* Campaign Modal - 1400px x 400px */
/* Note: .modal--campaign and .modal__container are on the SAME element in HTML */
.modal__container.modal--campaign,
.modal--campaign .modal__container {
    width: 1400px;
    height: 500px;
    max-width: 90vw;
    max-height: 90vh;
}

.campaign-modal-layout {
    display: flex;
    gap: 30px;
    height: 100%;
}

.campaign-image-section {
    flex: 1;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow: visible;
}

.campaign-featured-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: block;
}

.campaign-video {
    width: 100%;
    height: 200px;
}

.campaign-video iframe {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.campaign-details-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

/* Funding Progress */
.funding-progress {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #d1d5db;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    border-radius: 6px;
    transition: width 1s ease-out;
}

.funding-stats {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #6c757d;
}

.raised-amount {
    font-weight: bold;
    color: #28a745;
}

/* Campaign Description */
.campaign-description {
    font-size: 16px;
    line-height: 1.6;
    color: #495057;
}

/* Reward Quick-Select Section */
.reward-quick-select {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.reward-quick-select h4 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 18px;
}

.reward-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

.reward-quick-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    padding: 12px 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    font-family: inherit;
    font-size: 12px;
}

.reward-quick-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.reward-quick-btn.selected {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.4);
}

.reward-quick-btn.no-reward-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.reward-price {
    display: block;
    font-weight: bold;
    font-size: 14px;
}

.reward-name {
    display: block;
    font-size: 11px;
    opacity: 0.9;
    margin-top: 4px;
}

.reward-note {
    font-size: 12px;
    color: #6c757d;
    margin: 10px 0 0 0;
    text-align: center;
}

/* User Responsibility Notice */
.user-responsibility-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    color: #856404;
}

.user-responsibility-notice p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

/* Reward Modal Styling - 180px width */
.modal--reward .modal__container {
    width: 400px;
    max-width: 90vw;
    height: auto;
    max-height: 90vh;
    overflow-y: auto; /* allow scrolling when multiple rewards are present */
}

.modal--reward .modal__content {
    max-height: calc(90vh - 120px);
    overflow-y: auto; /* keep reward list scrollable inside modal */
}

.reward-selection-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.reward-funding-item {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.reward-funding-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

/* Branded wallet picker */
.raisefi-wallet-picker {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 12000;
}

.raisefi-wallet-picker.is-open {
    display: block;
}

.raisefi-wallet-picker__overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 8, 23, 0.7);
}

.raisefi-wallet-picker__panel {
    position: relative;
    max-width: 520px;
    margin: 8vh auto 0;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #cbd5e1;
    box-shadow: 0 24px 48px rgba(2, 8, 23, 0.28);
    padding: 24px;
    text-align: center;
}

.raisefi-wallet-picker__header h3 {
    margin: 0 0 6px;
    font-size: 24px;
    line-height: 1.1;
    color: #0f172a;
}

.raisefi-wallet-picker__header p {
    margin: 0 0 16px;
    color: #334155;
    font-size: 14px;
}

.raisefi-wallet-picker__list {
    display: grid;
    gap: 10px;
    justify-items: center;
}

.raisefi-wallet-picker__option {
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: min(100%, 420px);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    padding: 12px 16px;
    text-align: left;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.raisefi-wallet-picker__option:hover {
    transform: translateY(-1px);
    border-color: #94a3b8;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.raisefi-wallet-picker__option.is-disabled {
    opacity: 0.75;
    border-style: dashed;
}

.raisefi-wallet-picker__option.is-disabled:hover {
    transform: none;
    border-color: #cbd5e1;
    box-shadow: none;
}

.raisefi-wallet-picker__badge {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    font-weight: 700;
    font-size: 14px;
    background: transparent;
}

.raisefi-wallet-picker__badge img {
    width: 30px;
    height: 30px;
    display: block;
    object-fit: contain;
    border-radius: 0;
    background: transparent;
}

.raisefi-wallet-picker__option--metamask .raisefi-wallet-picker__badge {
    background: transparent;
}

.raisefi-wallet-picker__option--phantom .raisefi-wallet-picker__badge {
    background: transparent;
}

.raisefi-wallet-picker__meta strong {
    display: block;
    color: #0f172a;
    font-size: 15px;
    text-align: center;
}

.raisefi-wallet-picker__meta small {
    color: #475569;
    font-size: 12px;
    display: block;
    text-align: center;
}

.raisefi-wallet-picker__message {
    display: none;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #f5d0a9;
    background: #fff7ed;
    color: #9a3412;
    font-size: 12px;
}

.raisefi-wallet-picker__cancel {
    margin-top: 14px;
    width: 100%;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #334155;
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
}

@media (max-width: 640px) {
    .raisefi-wallet-picker__panel {
        margin: 4vh 14px 0;
        padding: 18px;
    }
}

.reward-funding-item.preselected {
    border-color: #28a745;
    background: #f8fff9;
}

.reward-image-top {
    margin-bottom: 15px;
}

.reward-thumbnail {
    width: 150px;
    height: 100px;
    object-fit: contain;
    background: #f8f9fa;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.reward-title {
    font-size: 18px;
    font-weight: 600;
    margin: 15px 0 10px 0;
    color: #495057;
}

.reward-description {
    font-size: 14px;
    color: #6c757d;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.reward-cost {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 5px;
    margin: 15px 0;
}

.cost-amount {
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
}

.cost-token {
    font-size: 16px;
    color: #6c757d;
}

.quantity-availability {
    font-size: 14px;
    color: #28a745;
    margin: 10px 0;
}

.quantity-left {
    font-weight: bold;
}

.quantity-input-section {
    margin: 15px 0;
}

.quantity-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #495057;
}

.quantity-input {
    width: 80px;
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
}

.quantity-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.fund-reward-button {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 200px;
    margin: 15px auto 0 auto;
}

.fund-reward-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.fund-reward-button:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Blockchain Notice */
.blockchain-notice {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.blockchain-notice p {
    margin: 0;
    font-size: 14px;
    color: #0056b3;
    line-height: 1.5;
}

/* Address Collection Modal */
.modal--address .modal__container {
    width: 500px;
    max-width: 90vw;
    height: auto;
}

/* Address modal header uses connect-wallet dark blue gradient */
.modal--address .modal__header {
    background: linear-gradient(135deg, #072f7b, #0a3d99);
    color: #fff;
}

.modal--address .modal__title,
.modal--address .modal__close {
    color: #fff;
}

/* Privacy Notice */
.privacy-notice {
    background: #e8f5e8;
    border: 1px solid #c3e6c3;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: left;
}

.privacy-notice h4 {
    margin: 0 0 15px 0;
    color: #155724;
    font-size: 18px;
}

.privacy-notice ul {
    margin: 10px 0;
    padding-left: 0;
    list-style: none;
    text-align: left;
}

.privacy-notice li {
    margin: 5px 0;
    color: #155724;
    font-size: 14px;
    text-align: left;
}

.privacy-notice p,
.privacy-notice h4 {
    text-align: left;
}

.privacy-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 10px;
    margin-top: 15px;
    color: #856404;
    font-size: 13px;
}

/* Address Form */
.address-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #495057;
}

.form-group input,
.form-group select {
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    color: #111 !important;
    caret-color: #111 !important;
    background: #fff !important;
    pointer-events: auto;
    position: relative;
    z-index: 1;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Consent Checkbox */
.consent-group {
    margin: 16px 0;
    padding: 0 4px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    padding-right: 4px;
    position: relative;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-top: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #28a745;
    border-color: #28a745;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-weight: bold;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.cancel-button {
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cancel-button:hover {
    background: #5a6268;
}

.save-address-button {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.save-address-button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.save-address-button:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Reward Popovers */
.reward-popover {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 15px;
    max-width: 300px;
    z-index: 10001;
    display: none;
    position: fixed;
}

.reward-popover .popover-content {
    display: flex;
    gap: 12px;
}

.reward-popover .reward-thumb {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

.reward-popover .reward-details h5 {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #333;
}

.reward-popover .reward-description {
    font-size: 12px;
    color: #666;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.reward-popover .reward-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
}

.reward-popover .price {
    font-weight: bold;
    color: #667eea;
}

.reward-popover .availability {
    color: #28a745;
}

.popover-arrow {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
}

/* Success/Error Notices */
.raisefi-success-notice,
.raisefi-error-notice {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10002;
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: noticeSlideIn 0.3s ease-out;
}

.raisefi-success-notice {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.raisefi-error-notice {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

@keyframes noticeSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.success-content,
.error-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.success-icon,
.error-icon {
    font-size: 18px;
}

.success-text,
.error-text {
    font-size: 14px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal__container {
        width: 95vw !important;
        height: auto !important;
        max-height: 90vh;
        margin: 20px;
    }
    
    .modal__header {
        padding: 15px 20px 10px;
    }
    
    .modal__title {
        font-size: 20px;
    }
    
    .modal__content {
        padding: 20px;
        overflow-y: auto !important;
        overflow: visible !important;
    }
    
    /* Campaign Modal Mobile Layout */
    .modal--campaign .campaign-modal-layout,
    .campaign-modal-layout {
        flex-direction: column !important;
        gap: 20px;
        height: auto !important;
    }
    
    .modal--campaign .campaign-image-section,
    .campaign-image-section {
        width: 100% !important;
        height: auto !important;
        min-height: 200px !important;
        flex-shrink: 0 !important;
    }
    
    .modal--campaign .campaign-featured-image,
    .campaign-featured-image {
        height: auto !important;
        min-height: 180px !important;
        max-height: 250px;
    }
    
    .modal--campaign .campaign-details-section {
        width: 100%;
    }
    
    /* Reward Modal Mobile Layout */
    .modal--reward .reward-funding-item {
        padding: 15px;
    }
    
    .modal--reward .reward-thumbnail {
        width: 120px !important;
        height: 80px !important;
        object-fit: contain;
        background: #f8f9fa;
    }
    
    /* Address Modal Mobile Layout */
    .modal--address .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .modal--address .form-group {
        width: 100%;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-actions button {
        width: 100%;
    }
    
    /* Reward buttons mobile */
    .reward-buttons-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .reward-quick-btn {
        padding: 10px 6px;
    }
    
    .reward-price {
        font-size: 12px;
    }
    
    .reward-name {
        font-size: 10px;
    }
    
    /* Popover mobile */
    .reward-popover {
        position: fixed !important;
        bottom: 20px !important;
        left: 20px !important;
        right: 20px !important;
        top: auto !important;
        transform: none !important;
        max-width: none;
    }
    
    /* Notices mobile */
    .raisefi-success-notice,
    .raisefi-error-notice {
        left: 20px;
        right: 20px;
        top: 20px;
    }
}

/* Tablet optimization */
@media (min-width: 769px) and (max-width: 1024px) {
    .modal--campaign .modal__container {
        width: 90vw;
        height: auto;
    }
    
    .modal--reward .reward-funding-item {
        padding: 18px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .modal__container {
        box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .modal {
        background: rgba(0, 0, 0, 0.8);
    }
    
    .modal__container {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .modal__header {
        border-bottom-color: #4a5568;
    }
    
    .funding-progress,
    .reward-quick-select,
    .privacy-notice {
        background: #4a5568;
        border-color: #718096;
    }
    
    .form-group input,
    .form-group select {
        background: #4a5568;
        border-color: #718096;
        color: #e2e8f0;
    }
}

/* Print styles */
@media print {
    .modal {
        display: none !important;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .modal__container,
    .reward-quick-btn,
    .fund-reward-button,
    .save-address-button {
        animation: none;
        transition: none;
    }
    
    .progress-fill {
        transition: none;
    }
}

/* Focus styles for keyboard navigation */
.modal__close:focus,
.reward-quick-btn:focus,
.fund-reward-button:focus,
.save-address-button:focus,
.cancel-button:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

.form-group input:focus,
.form-group select:focus {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

/* Contextual Buttons */
.contextual-buttons {
    margin: 20px 0;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.contextual-buttons button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contextual-buttons .raisefi-claim-refund {
    background: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%);
    color: #212529;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.contextual-buttons .raisefi-claim-refund:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff8c00 0%, #e67e00 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

.contextual-buttons .raisefi-claim-refund:disabled {
    background: #6c757d;
    color: #adb5bd;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===== Verification Tier Icons ===== */
.verification-tier-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.verification-tier-icon svg {
    width: 24px;
    height: 24px;
}

/* Tier colors */
.verification-tier-icon.tier-0 { color: #9ca3af; }
.verification-tier-icon.tier-1 { color: #3b82f6; }
.verification-tier-icon.tier-2 { color: #22c55e; }
.verification-tier-icon.tier-3 { color: #f97316; }
.verification-tier-icon.tier-4 { color: #eab308; }
.verification-tier-icon.tier-5 { color: #b9f2ff; text-shadow: 0 0 8px rgba(185, 242, 255, 0.8); }

/* Tooltip on hover */
.verification-tier-icon::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 100;
    pointer-events: none;
    margin-bottom: 6px;
}

.verification-tier-icon::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 100;
    margin-bottom: -4px;
}

.verification-tier-icon:hover::after,
.verification-tier-icon:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Blockchain logo alignment */
.blockchain-logo {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-right: 6px;
}
