/**
 * Stablezact Enhanced Admin Styles
 */

/* Import Bricolage Grotesque Font */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&display=swap');

/* Main Layout */
.stablezact-admin {
    background: #f8fafc;
    margin: 0 -20px -10px -20px;
    padding: 30px;
    min-height: calc(100vh - 32px);
    font-family: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Header */
.stablezact-header {
    background: linear-gradient(135deg, #7C3AED 0%, #8B5CF6 50%, #A855F7 100%);
    color: white;
    padding: 32px 40px;
    border-radius: 24px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    box-shadow: 0 20px 25px -5px rgba(124, 58, 237, 0.1), 0 10px 10px -5px rgba(124, 58, 237, 0.04);
    position: relative;
    overflow: hidden;
}

.stablezact-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    pointer-events: none;
}

.stablezact-header-logo img {
    height: 48px;
    margin-right: 24px;
    filter: brightness(0) invert(1);
    position: relative;
    z-index: 1;
}

.stablezact-header-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.stablezact-header h1 {
    color: white !important;
    margin: 0 0 8px 0 !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    letter-spacing: -0.025em !important;
    line-height: 1.2 !important;
}

.stablezact-header p {
    margin: 0 !important;
    opacity: 0.9;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
}

.stablezact-header-actions {
    position: relative;
    z-index: 1;
}

.stablezact-header-actions .button {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    text-decoration: none;
}

.stablezact-header-actions .button:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    color: white;
}

.stablezact-header-actions .button .dashicons {
    font-size: 16px;
}

/* Merchant Card */
.stablezact-merchant-card {
    background: white;
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    transition: box-shadow 0.2s ease;
}

.stablezact-merchant-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.stablezact-merchant-card h3 {
    margin: 0 0 24px 0;
    color: #1e293b;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.stablezact-merchant-card h4 {
    margin: 0 0 20px 0;
    color: #1e293b;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.merchant-details {
    display: grid;
    gap: 20px;
}

.merchant-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
}

.merchant-detail:last-child {
    border-bottom: none;
}

.merchant-detail label {
    font-weight: 500;
    color: #64748b;
    margin: 0;
    font-size: 15px;
}

.merchant-detail span {
    font-weight: 600;
    color: #1e293b;
    font-size: 15px;
}

.wallet-list {
    display: grid;
    gap: 16px;
}

.wallet-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.wallet-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.wallet-item strong {
    color: #475569;
    font-weight: 600;
    min-width: 80px;
}

.wallet-address {
    background: #e2e8f0;
    padding: 8px 12px;
    border-radius: 8px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 13px;
    color: #475569;
    flex: 1;
    letter-spacing: 0.025em;
}

.copy-address {
    background: none;
    border: none;
    color: #7C3AED;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.copy-address:hover {
    color: #6D28D9;
    background: #f3f4f6;
}

.copy-address .dashicons {
    font-size: 16px;
}

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

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #7C3AED, #8B5CF6, #A855F7);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.stat-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 24px;
    font-size: 28px;
    position: relative;
    flex-shrink: 0;
}

.stat-card:nth-child(1) .stat-icon {
    background: linear-gradient(135deg, #7C3AED, #8B5CF6);
    color: white;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
}

.stat-card:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, #059669, #10B981);
    color: white;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.stat-card:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, #DC2626, #EF4444);
    color: white;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

.stat-card:nth-child(4) .stat-icon {
    background: linear-gradient(135deg, #0EA5E9, #06B6D4);
    color: white;
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.3);
}

.stat-content h3 {
    margin: 0 0 8px 0;
    font-size: 36px;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.025em;
    line-height: 1;
}

.stat-content p {
    margin: 0;
    color: #64748b;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: -0.01em;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.025em;
}

.status-badge.status-active {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.status-badge.status-pending {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.status-badge.status-processing {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.status-badge.status-completed {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.status-badge.status-failed {
    background: #fecaca;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Currency Badge */
.currency-badge {
    background: linear-gradient(135deg, #7C3AED, #8B5CF6);
    color: white;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    box-shadow: 0 2px 4px rgba(124, 58, 237, 0.2);
}

/* Transactions Section */
.stablezact-recent-transactions {
    background: white;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
    transition: box-shadow 0.2s ease;
}

.stablezact-recent-transactions:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
}

.section-header h2 {
    margin: 0;
    color: #1e293b;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.section-header .button {
    background: linear-gradient(135deg, #7C3AED, #8B5CF6);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(124, 58, 237, 0.2);
}

.section-header .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(124, 58, 237, 0.3);
    color: white;
}

.transactions-table-wrapper {
    overflow-x: auto;
}

.no-transactions {
    text-align: center;
    padding: 80px 32px;
    color: #64748b;
}

.no-transactions-icon {
    font-size: 80px;
    margin-bottom: 24px;
    opacity: 0.3;
    color: #cbd5e1;
}

.no-transactions h3 {
    margin: 0 0 16px 0;
    color: #475569;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.no-transactions p {
    margin: 0 auto;
    max-width: 480px;
    line-height: 1.7;
    font-size: 16px;
    color: #64748b;
}

/* Filters */
.stablezact-filters {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

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

.filter-group select,
.filter-group input {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

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

.filter-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Table Navigation */
.table-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.transaction-count {
    font-weight: 600;
    color: #495057;
}

/* Modal */
.coinley-modal {
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.stablezact-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.stablezact-modal-content.large {
    max-width: 800px;
}

.stablezact-modal-header {
    padding: 24px 32px;
    background: linear-gradient(135deg, #7C3AED, #8B5CF6);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stablezact-modal-header h3 {
    margin: 0;
    color: white;
    font-size: 20px;
    font-weight: 600;
}

.stablezact-modal-close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.stablezact-modal-close:hover {
    opacity: 1;
}

.stablezact-modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
}

/* Transaction Details */
.transaction-details {
    display: grid;
    gap: 25px;
}

.detail-section h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 2px solid #f8f9fa;
}

.detail-grid {
    display: grid;
    gap: 12px;
}

.detail-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 15px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f8f9fa;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row label {
    font-weight: 600;
    color: #6c757d;
    margin: 0;
}

.detail-row span {
    font-weight: 500;
    color: #2c3e50;
}

.detail-row code {
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 13px;
    color: #495057;
    word-break: break-all;
}

/* Loading States */
.loading {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.loading .spinner {
    margin-bottom: 10px;
}

/* Error States */
.error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .stablezact-merchant-card {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .stablezact-admin {
        margin: 0 -10px -10px -10px;
        padding: 16px;
    }
    
    .stablezact-header {
        padding: 24px;
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .stablezact-header h1 {
        font-size: 28px !important;
    }
    
    .stablezact-header p {
        font-size: 16px;
    }
    
    .stablezact-merchant-card {
        padding: 24px;
        gap: 24px;
    }
    
    .stablezact-stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .stat-card {
        padding: 24px;
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
        margin-right: 16px;
    }
    
    .stat-content h3 {
        font-size: 28px;
    }
    
    .stablezact-recent-transactions {
        padding: 24px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .table-nav {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .stablezact-modal-content {
        width: 95%;
        margin: 2% auto;
        max-height: 95vh;
    }
    
    .stablezact-modal-header {
        padding: 20px 24px;
    }
    
    .detail-row {
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: left;
    }
}

/* Table Overrides */
.stablezact-admin .wp-list-table {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.stablezact-admin .wp-list-table th {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 700;
    color: #475569;
    padding: 16px 20px;
    font-size: 14px;
    letter-spacing: 0.025em;
}

.stablezact-admin .wp-list-table td {
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    padding: 16px 20px;
    font-weight: 500;
}

.stablezact-admin .wp-list-table tr:hover {
    background: #f8fafc;
}

.stablezact-admin .wp-list-table code {
    background: #f1f5f9;
    color: #475569;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 13px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    letter-spacing: 0.025em;
}

.stablezact-admin .wp-list-table .button {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.stablezact-admin .wp-list-table .button:hover {
    background: #7C3AED;
    border-color: #7C3AED;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(124, 58, 237, 0.3);
}

/* Pagination */
.pagination-links a,
.pagination-links span {
    display: inline-block;
    padding: 10px 16px;
    margin: 0 4px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: #475569;
    font-weight: 600;
    transition: all 0.2s ease;
}

.pagination-links a:hover {
    background: #7C3AED;
    color: white;
    border-color: #7C3AED;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(124, 58, 237, 0.3);
}

.pagination-links .paging-input {
    background: #7C3AED;
    color: white;
    border-color: #7C3AED;
    font-weight: 700;
}

/* Hash Display */
.transaction-hash {
    font-family: monospace;
    font-size: 12px;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    cursor: help;
}

/* WooCommerce Payment Settings - Wallet Configuration */
.woocommerce_page_wc-settings table.form-table tr:has(th:contains("🔐 Wallet Configuration")) th {
    background: linear-gradient(135deg, #7C3AED 0%, #A855F7 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.2);
    border: none;
}

.woocommerce_page_wc-settings table.form-table tr:has(th:contains("🔐 Wallet Configuration")) td {
    padding: 0;
}

.woocommerce_page_wc-settings table.form-table tr:has(th:contains("🔐 Wallet Configuration")) + tr td p {
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
    padding: 15px 20px;
    border-radius: 8px;
    margin: 10px 0;
    border-left: 4px solid #7C3AED;
    color: #1E293B;
    font-weight: 500;
}

/* Wallet address input fields */
.woocommerce_page_wc-settings input[id*="wallet"] {
    width: 100%;
    max-width: 500px;
    padding: 12px 16px;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    background: #FAFAFA;
    transition: all 0.3s ease;
}

.woocommerce_page_wc-settings input[id*="wallet"]:focus {
    border-color: #7C3AED;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
    background: white;
    outline: none;
}

.woocommerce_page_wc-settings input[id*="wallet"]:valid {
    border-color: #10B981;
    background: #F0FDF4;
}

.woocommerce_page_wc-settings input[id*="wallet"]:invalid:not(:placeholder-shown) {
    border-color: #EF4444;
    background: #FEF2F2;
}

/* Wallet field labels */
.woocommerce_page_wc-settings tr:has(input[id*="wallet"]) th label {
    font-weight: 600;
    color: #1E293B;
    display: flex;
    align-items: center;
    gap: 8px;
}

.woocommerce_page_wc-settings tr:has(input[id*="ethereum_wallet"]) th label:before {
    content: "⟠";
    color: #627EEA;
    font-size: 16px;
}

.woocommerce_page_wc-settings tr:has(input[id*="bsc_wallet"]) th label:before {
    content: "⚡";
    color: #F3BA2F;
    font-size: 16px;
}

.woocommerce_page_wc-settings tr:has(input[id*="polygon_wallet"]) th label:before {
    content: "⬟";
    color: #8247E5;
    font-size: 16px;
}

.woocommerce_page_wc-settings tr:has(input[id*="solana_wallet"]) th label:before {
    content: "◉";
    color: #9945FF;
    font-size: 16px;
}

/* Wallet configuration help text */
.woocommerce_page_wc-settings .wc-help-tip {
    color: #7C3AED;
}

.woocommerce_page_wc-settings tr:has(input[id*="wallet"]) .description {
    color: #64748B;
    font-size: 13px;
    font-style: italic;
    margin-top: 5px;
}

/* Enhanced error styling for wallet validation */
.woocommerce-message.error:has-text("wallet"),
.woocommerce-message.error:has-text("Wallet") {
    border-left-color: #EF4444;
    background: #FEF2F2;
    color: #DC2626;
}

/* Success message styling */
.woocommerce-message.updated:has-text("wallet"),
.woocommerce-message.updated:has-text("Wallet") {
    border-left-color: #10B981;
    background: #F0FDF4;
    color: #059669;
}

/* Wallet synchronization status */
.stablezact-wallet-sync-status {
    margin: 20px 0 !important;
    padding: 15px !important;
    background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%) !important;
    border-radius: 8px !important;
    border-left: 4px solid #7C3AED !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

.stablezact-wallet-sync-status h4 {
    margin: 0 0 10px 0 !important;
    color: #7C3AED !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
}

.stablezact-wallet-sync-status h4 .dashicons {
    margin-right: 5px !important;
    font-size: 18px !important;
}

.stablezact-wallet-sync-status p {
    margin: 0 !important;
    line-height: 1.5 !important;
}

.stablezact-wallet-sync-status p.success {
    color: #00a32a !important;
    margin-bottom: 10px !important;
}

.stablezact-wallet-sync-status p.error {
    color: #d63638 !important;
}

.stablezact-wallet-sync-status .wallet-addresses {
    display: grid !important;
    gap: 8px !important;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace !important;
    font-size: 13px !important;
    margin: 10px 0 !important;
}

.stablezact-wallet-sync-status .wallet-item {
    display: flex !important;
    align-items: center !important;
    padding: 8px 0 !important;
    border-bottom: 1px solid #E2E8F0 !important;
}

.stablezact-wallet-sync-status .wallet-item:last-child {
    border-bottom: none !important;
}

.stablezact-wallet-sync-status .wallet-network {
    min-width: 80px !important;
    color: #7C3AED !important;
    font-weight: 600 !important;
}

.stablezact-wallet-sync-status .wallet-address {
    background: white !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    margin-left: 10px !important;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace !important;
    font-size: 12px !important;
    color: #475569 !important;
    border: 1px solid #E2E8F0 !important;
}

.stablezact-wallet-sync-status .note {
    margin: 10px 0 0 0 !important;
    font-size: 13px !important;
    color: #64748B !important;
    font-style: italic !important;
}

/* Wallet section mobile responsiveness */
@media (max-width: 768px) {
    .woocommerce_page_wc-settings input[id*="wallet"] {
        max-width: 100%;
        font-size: 12px;
    }
    
    .woocommerce_page_wc-settings tr:has(input[id*="wallet"]) th,
    .woocommerce_page_wc-settings tr:has(input[id*="wallet"]) td {
        display: block;
        width: 100%;
        padding: 10px 0;
    }
    
    .stablezact-wallet-sync-status .wallet-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .stablezact-wallet-sync-status .wallet-address {
        margin-left: 0;
        width: 100%;
        box-sizing: border-box;
    }
}

/* Enhanced Onboarding Notification Styles */
#stablezact-notification-container {
    position: fixed;
    top: 32px;
    right: 32px;
    z-index: 999999;
    max-width: 400px;
    font-family: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.stablezact-enhanced-notification {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid #E5E7EB;
    overflow: hidden;
    animation: stablezact-notification-slide-in 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 16px;
    position: relative;
}

@keyframes stablezact-notification-slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.stablezact-enhanced-notification.slide-out {
    animation: stablezact-notification-slide-out 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes stablezact-notification-slide-out {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.stablezact-enhanced-notification-header {
    padding: 24px 50px 16px 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.stablezact-enhanced-notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    flex-shrink: 0;
}

.stablezact-enhanced-notification.success .stablezact-enhanced-notification-icon {
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
    color: #059669;
}

.stablezact-enhanced-notification.error .stablezact-enhanced-notification-icon {
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
    color: #DC2626;
}

.stablezact-enhanced-notification.warning .stablezact-enhanced-notification-icon {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    color: #D97706;
}

.stablezact-enhanced-notification.info .stablezact-enhanced-notification-icon {
    background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
    color: #2563EB;
}

.stablezact-enhanced-notification-content {
    flex: 1;
    min-width: 0;
}

.stablezact-enhanced-notification-title {
    font-size: 16px;
    font-weight: 600;
    color: #1F2937;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.stablezact-enhanced-notification-message {
    font-size: 14px;
    color: #6B7280;
    margin: 0;
    line-height: 1.4;
}

.stablezact-enhanced-notification-actions {
    padding: 8px 24px 24px 24px;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.stablezact-enhanced-notice-btn-primary {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #7C3AED;
    color: white;
}

.stablezact-enhanced-notice-btn-primary:hover {
    background: #6D28D9;
}

.stablezact-enhanced-notice-btn-secondary {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #F3F4F6;
    color: #374151;
}

.stablezact-enhanced-notice-btn-secondary:hover {
    background: #E5E7EB;
}

.stablezact-enhanced-notification-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 18px;
    color: #9CA3AF;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.stablezact-enhanced-notification-close:hover {
    background: #F3F4F6;
    color: #374151;
}

/* Responsive notifications */
@media (max-width: 640px) {
    #stablezact-notification-container {
        top: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
    }
} 
/* ===== Stablezact Dashboard page (moved from an inline style block in includes/admin/dashboard.php) ===== */
/* Critical CSS to ensure styling loads immediately */
.stablezact-admin {
    background: #f8fafc !important;
    font-family: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    margin: 0 -20px -10px -20px !important;
    padding: 30px !important;
}

.stablezact-header {
    background: linear-gradient(135deg, #7C3AED 0%, #8B5CF6 50%, #A855F7 100%) !important;
    color: white !important;
    padding: 32px 40px !important;
    border-radius: 24px !important;
    margin-bottom: 40px !important;
    box-shadow: 0 20px 25px -5px rgba(124, 58, 237, 0.1), 0 10px 10px -5px rgba(124, 58, 237, 0.04) !important;
}

.stablezact-header h1 {
    color: white !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    letter-spacing: -0.025em !important;
    margin: 0 0 8px 0 !important;
}

.stat-card {
    background: white !important;
    border-radius: 20px !important;
    padding: 32px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid #f1f5f9 !important;
}

.stablezact-merchant-card {
    background: white !important;
    border-radius: 20px !important;
    padding: 32px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid #f1f5f9 !important;
}

.stablezact-recent-transactions {
    background: white !important;
    border-radius: 20px !important;
    padding: 32px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid #f1f5f9 !important;
}

/* Wallet Grid Styles */
.wallet-addresses h4 {
    margin: 24px 0 16px 0 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #374151 !important;
}

.wallet-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}

.wallet-chip {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 8px 12px !important;
    transition: all 0.2s ease !important;
}

.wallet-chip:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}

.wallet-chip-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 8px !important;
    color: white !important;
    font-size: 14px !important;
    flex-shrink: 0 !important;
}

.wallet-chip-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}

.wallet-chip-network {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #374151 !important;
    line-height: 1 !important;
}

.wallet-chip-address {
    font-size: 11px !important;
    color: #6b7280 !important;
    background: transparent !important;
    padding: 0 !important;
    font-family: ui-monospace, monospace !important;
}

.wallet-chip-copy {
    background: none !important;
    border: none !important;
    padding: 4px !important;
    cursor: pointer !important;
    color: #9ca3af !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.wallet-chip-copy:hover {
    background: #e2e8f0 !important;
    color: #6b7280 !important;
}

.wallet-chip-copy .dashicons {
    font-size: 14px !important;
    width: 14px !important;
    height: 14px !important;
}

.no-wallets {
    color: #6b7280 !important;
    font-style: italic !important;
}

/* ===== Stablezact Transactions page (moved from an inline style block in includes/admin/transactions.php) ===== */
/* Critical CSS for transactions page */
.stablezact-admin {
    background: #f8fafc !important;
    font-family: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    margin: 0 -20px -10px -20px !important;
    padding: 30px !important;
}

.stablezact-header {
    background: linear-gradient(135deg, #7C3AED 0%, #8B5CF6 50%, #A855F7 100%) !important;
    color: white !important;
    padding: 32px 40px !important;
    border-radius: 24px !important;
    margin-bottom: 40px !important;
    box-shadow: 0 20px 25px -5px rgba(124, 58, 237, 0.1), 0 10px 10px -5px rgba(124, 58, 237, 0.04) !important;
    display: flex !important;
    align-items: center !important;
}

.stablezact-header h1 {
    color: white !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    letter-spacing: -0.025em !important;
    margin: 0 0 8px 0 !important;
}

.stablezact-header p {
    margin: 0 !important;
    opacity: 0.9;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
}

.stablezact-filters {
    background: white !important;
    border-radius: 20px !important;
    padding: 32px !important;
    margin-bottom: 32px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
    border: 1px solid #f1f5f9 !important;
    /* COMPLETELY KILL GRID ON MAIN CONTAINER */
    display: block !important;
    grid: none !important;
    grid-template: none !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    grid-template-areas: none !important;
    grid-auto-columns: none !important;
    grid-auto-rows: none !important;
    grid-auto-flow: none !important;
    grid-column-gap: none !important;
    grid-row-gap: none !important;
    grid-gap: none !important;
    /* Force block layout */
    position: static !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Kill grid on ALL children */
.stablezact-filters *,
.stablezact-filters *::before,
.stablezact-filters *::after {
    grid: none !important;
    grid-template: none !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    grid-template-areas: none !important;
    grid-auto-columns: none !important;
    grid-auto-rows: none !important;
    grid-auto-flow: none !important;
    grid-column: none !important;
    grid-row: none !important;
    grid-area: none !important;
    align-self: auto !important;
    justify-self: auto !important;
}

.filter-section {
    margin-bottom: 20px !important;
    /* Complete reset */
    display: block !important;
    position: static !important;
    width: 100% !important;
    /* Kill grid */
    grid: none !important;
    grid-template: none !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
}

.filter-container {
    display: block !important;
    width: 100% !important;
    position: static !important;
    /* Kill grid */
    grid: none !important;
    grid-template: none !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
}

/* COMPLETELY RESET - Simple flexbox layout */
.stablezact-admin .stablezact-filters .filter-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    align-items: flex-end !important;
    justify-content: flex-start !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    /* KILL ALL GRID PROPERTIES */
    grid: none !important;
    grid-template: none !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    grid-template-areas: none !important;
    grid-auto-columns: none !important;
    grid-auto-rows: none !important;
    grid-auto-flow: none !important;
    grid-column: none !important;
    grid-row: none !important;
    grid-area: none !important;
    /* Force positioning */
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
}

.stablezact-admin .stablezact-filters .filter-group {
    display: flex !important;
    flex-direction: column !important;
    position: static !important;
    min-width: 140px !important;
    max-width: 200px !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
    /* Kill any grid item properties */
    grid-column: none !important;
    grid-row: none !important;
    grid-area: none !important;
    align-self: auto !important;
    justify-self: auto !important;
}

.stablezact-admin .stablezact-filters .filter-group label {
    display: block !important;
    font-weight: 600 !important;
    color: #475569 !important;
    font-size: 13px !important;
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
}

.stablezact-admin .stablezact-filters .filter-group select,
.stablezact-admin .stablezact-filters .filter-group input[type="date"] {
    padding: 12px 16px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    background: #ffffff !important;
    color: #1e293b !important;
    height: 48px !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    outline: none !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    vertical-align: top !important;
}

/* Enhanced select dropdown styling with higher specificity */
.stablezact-admin .stablezact-filters .filter-group select {
    background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 20 20"%3E%3Cpath stroke="%236b7280" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 8l4 4 4-4"/%3E%3C/svg%3E') !important;
    background-position: right 12px center !important;
    background-repeat: no-repeat !important;
    background-size: 16px !important;
    padding-right: 40px !important;
    cursor: pointer !important;
}

.stablezact-admin .stablezact-filters .filter-group input[type="date"] {
    padding-right: 16px !important;
    cursor: pointer !important;
}

/* Hover states with ultra-specific targeting */
.stablezact-admin .stablezact-filters .filter-group select:hover,
.stablezact-admin .stablezact-filters .filter-group input[type="date"]:hover {
    border-color: #cbd5e1 !important;
    background-color: #fafafa !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

/* Focus states with ultra-specific targeting */
.stablezact-admin .stablezact-filters .filter-group select:focus,
.stablezact-admin .stablezact-filters .filter-group input[type="date"]:focus {
    border-color: #7C3AED !important;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1) !important;
    background-color: #ffffff !important;
    transform: translateY(-1px) !important;
    outline: none !important;
}

/* Active/filled state with ultra-specific targeting */
.stablezact-admin .stablezact-filters .filter-group.has-value select,
.stablezact-admin .stablezact-filters .filter-group.has-value input[type="date"] {
    border-color: #7C3AED !important;
    background-color: #f9f5ff !important;
    box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.1) !important;
}

.stablezact-admin .stablezact-filters .filter-group.has-value select:focus,
.stablezact-admin .stablezact-filters .filter-group.has-value input[type="date"]:focus {
    background-color: #ffffff !important;
}

/* Date input calendar icon styling */
.stablezact-admin .stablezact-filters .filter-group input[type="date"]::-webkit-calendar-picker-indicator {
    color: #7C3AED !important;
    cursor: pointer !important;
    padding: 2px !important;
    border-radius: 3px !important;
    margin-left: auto !important;
}

.stablezact-admin .stablezact-filters .filter-group input[type="date"]::-webkit-calendar-picker-indicator:hover {
    background-color: rgba(124, 58, 237, 0.1) !important;
}

/* Option styling for better visibility */
.stablezact-admin .stablezact-filters .filter-group select option {
    padding: 10px !important;
    font-size: 14px !important;
    color: #1e293b !important;
    background: #ffffff !important;
}

/* Filter chips for active filters */
.active-filters {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-bottom: 20px !important;
}

.filter-chip {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 12px !important;
    background: #f3f0ff !important;
    border: 1px solid #e0d9ff !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #7C3AED !important;
    transition: all 0.2s ease !important;
}

.filter-chip:hover {
    background: #ede7ff !important;
    border-color: #d4c9ff !important;
}

.filter-chip .remove-filter {
    cursor: pointer !important;
    width: 16px !important;
    height: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: #7C3AED !important;
    color: white !important;
    font-size: 12px !important;
    line-height: 1 !important;
}

.filter-chip .remove-filter:hover {
    background: #6B2FD6 !important;
}

/* Enhanced action buttons */
.filter-actions {
    display: flex !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
    margin-top: 20px !important;
    padding-top: 20px !important;
    border-top: 1px solid #f1f5f9 !important;
    justify-content: flex-start !important;
    align-items: center !important;
}

.filter-actions .button {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 24px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
    border: 2px solid transparent !important;
    cursor: pointer !important;
}

.filter-actions .button-primary {
    background: linear-gradient(135deg, #7C3AED, #8B5CF6) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 4px 14px 0 rgba(124, 58, 237, 0.25) !important;
}

.filter-actions .button-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px 0 rgba(124, 58, 237, 0.35) !important;
}

.filter-actions .button-primary:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px 0 rgba(124, 58, 237, 0.25) !important;
}

.filter-actions .button:not(.button-primary) {
    background: #f8fafc !important;
    border: 2px solid #e2e8f0 !important;
    color: #475569 !important;
}

.filter-actions .button:not(.button-primary):hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
}

.filter-actions .button .dashicons {
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
    line-height: 1 !important;
}

/* Filter counter badge */
.filter-count {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 20px !important;
    height: 20px !important;
    padding: 0 6px !important;
    background: #7C3AED !important;
    color: white !important;
    border-radius: 10px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    margin-left: 4px !important;
}

.stablezact-transactions-wrapper {
    background: white !important;
    border-radius: 20px !important;
    padding: 32px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid #f1f5f9 !important;
}

.table-nav {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 24px !important;
    padding-bottom: 20px !important;
    border-bottom: 2px solid #f1f5f9 !important;
}

.transaction-count {
    font-weight: 600 !important;
    color: #475569 !important;
    font-size: 16px !important;
}

.table-nav .button {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    padding: 10px 16px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.table-nav .button:hover {
    background: #7C3AED !important;
    border-color: #7C3AED !important;
    color: white !important;
    transform: translateY(-1px) !important;
}

/* Enhanced table styling */
#transactions-table {
    border: none !important;
    box-shadow: none !important;
}

#transactions-table thead th {
    background: #f8fafc !important;
    border-bottom: 2px solid #e2e8f0 !important;
    color: #475569 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 12px !important;
    letter-spacing: 0.05em !important;
    padding: 16px 12px !important;
}

#transactions-table tbody tr {
    border-bottom: 1px solid #f1f5f9 !important;
    transition: background-color 0.15s ease !important;
}

#transactions-table tbody tr:hover {
    background-color: #fafbfc !important;
}

#transactions-table tbody td {
    padding: 16px 12px !important;
    vertical-align: middle !important;
}

/* Status badge styling */
.status-badge {
    display: inline-flex !important;
    align-items: center !important;
    padding: 6px 12px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.025em !important;
}

.status-badge.status-pending {
    background: #fef3c7 !important;
    color: #92400e !important;
}

.status-badge.status-processing {
    background: #dbeafe !important;
    color: #1e40af !important;
}

.status-badge.status-completed {
    background: #d1fae5 !important;
    color: #065f46 !important;
}

.status-badge.status-failed {
    background: #fee2e2 !important;
    color: #991b1b !important;
}

/* Currency badge styling */
.currency-badge {
    display: inline-flex !important;
    align-items: center !important;
    padding: 4px 10px !important;
    background: #f3f0ff !important;
    border: 1px solid #e0d9ff !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #7C3AED !important;
}

/* Transaction hash styling */
.transaction-hash {
    background: #f8fafc !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace !important;
    font-size: 12px !important;
    color: #475569 !important;
}

/* View button styling */
.view-transaction {
    background: transparent !important;
    border: 1px solid #e2e8f0 !important;
    color: #7C3AED !important;
    padding: 6px 16px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    transition: all 0.15s ease !important;
    cursor: pointer !important;
}

.view-transaction:hover {
    background: #7C3AED !important;
    border-color: #7C3AED !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.2) !important;
}

/* Loading state improvements */
.loading {
    text-align: center !important;
    padding: 60px 20px !important;
    color: #64748b !important;
}

.loading .spinner {
    margin: 0 auto 16px !important;
}

/* No data state */
.no-data {
    text-align: center !important;
    padding: 60px 20px !important;
    color: #94a3b8 !important;
    font-size: 16px !important;
}

/* Refresh button spin animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.dashicons-update-spin {
    animation: spin 1s linear infinite !important;
}

/* Responsive Design with ultra-specific targeting */
@media (max-width: 1200px) {
    .stablezact-admin .stablezact-filters .filter-grid {
        flex-wrap: wrap !important;
    }
}

@media (max-width: 1024px) {
    .stablezact-admin .stablezact-filters .filter-grid {
        flex-wrap: wrap !important;
    }
}

@media (max-width: 768px) {
    .stablezact-admin {
        padding: 16px !important;
    }
    
    .stablezact-header {
        padding: 24px !important;
        text-align: center !important;
    }
    
    .stablezact-header h1 {
        font-size: 24px !important;
    }
    
    .stablezact-filters {
        padding: 20px !important;
    }
    
    .stablezact-admin .stablezact-filters .filter-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    .stablezact-admin .stablezact-filters .filter-group {
        min-height: 70px !important;
    }
    
    .stablezact-admin .stablezact-filters .filter-group label {
        font-size: 12px !important;
    }
    
    .stablezact-admin .stablezact-filters .filter-group select,
    .stablezact-admin .stablezact-filters .filter-group input[type="date"] {
        height: 44px !important;
        padding: 10px 14px !important;
        font-size: 13px !important;
    }
    
    .stablezact-admin .stablezact-filters .filter-group select {
        padding-right: 36px !important;
        background-size: 14px !important;
        background-position: right 10px center !important;
    }
    
    .filter-actions {
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    .filter-actions .button {
        width: 100% !important;
        justify-content: center !important;
    }
    
    .active-filters {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    .filter-chip {
        margin-bottom: 4px !important;
    }
    
    .stablezact-transactions-wrapper {
        padding: 16px !important;
        overflow-x: auto !important;
    }
    
    .table-nav {
        flex-direction: column !important;
        gap: 16px !important;
        text-align: center !important;
    }
    
    #transactions-table {
        min-width: 800px !important;
    }
}

@media (max-width: 480px) {
    .stablezact-header h1 {
        font-size: 20px !important;
    }
    
    .stablezact-header p {
        font-size: 14px !important;
    }
    
    .filter-section-title {
        font-size: 14px !important;
    }
    
    .stablezact-admin .stablezact-filters .filter-group {
        min-height: 65px !important;
    }
    
    .stablezact-admin .stablezact-filters .filter-group select,
    .stablezact-admin .stablezact-filters .filter-group input[type="date"] {
        height: 40px !important;
        padding: 8px 12px !important;
        font-size: 12px !important;
    }
    
    .stablezact-admin .stablezact-filters .filter-group select {
        padding-right: 32px !important;
        background-size: 12px !important;
        background-position: right 8px center !important;
    }
}

/* ===== Stablezact Settings page (moved from an inline style block in includes/admin/settings.php) ===== */
/* Critical CSS for settings page */
.stablezact-admin {
    background: #f8fafc !important;
    font-family: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    margin: 0 -20px -10px -20px !important;
    padding: 30px !important;
}

.stablezact-header {
    background: linear-gradient(135deg, #7C3AED 0%, #8B5CF6 50%, #A855F7 100%) !important;
    color: white !important;
    padding: 32px 40px !important;
    border-radius: 24px !important;
    margin-bottom: 40px !important;
    box-shadow: 0 20px 25px -5px rgba(124, 58, 237, 0.1), 0 10px 10px -5px rgba(124, 58, 237, 0.04) !important;
    display: flex !important;
    align-items: center !important;
}

.stablezact-header h1 {
    color: white !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    letter-spacing: -0.025em !important;
    margin: 0 0 8px 0 !important;
}

.stablezact-header p {
    margin: 0 !important;
    opacity: 0.9;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
}

.stablezact-settings-container {
    display: grid !important;
    gap: 32px !important;
}

.settings-section {
    background: white !important;
    border-radius: 20px !important;
    padding: 32px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid #f1f5f9 !important;
    transition: box-shadow 0.2s ease !important;
}

.settings-section:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

.section-header {
    margin-bottom: 32px !important;
    padding-bottom: 20px !important;
    border-bottom: 2px solid #f1f5f9 !important;
}

.section-header h2 {
    margin: 0 0 8px 0 !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    letter-spacing: -0.025em !important;
}

.section-header p {
    margin: 0 !important;
    color: #64748b !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
}

.form-grid {
    display: grid !important;
    gap: 24px !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
}

.form-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.form-group label {
    font-weight: 600 !important;
    color: #475569 !important;
    font-size: 14px !important;
    margin: 0 !important;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px 16px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
    background: white !important;
    color: #1e293b !important;
    font-family: inherit !important;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none !important;
    border-color: #7C3AED !important;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1) !important;
}

.form-group input[readonly] {
    background: #f8fafc !important;
    color: #64748b !important;
    cursor: not-allowed !important;
}

.api-credential-field {
    position: relative;
}

.api-credential-field .show-credential-btn {
    background: #64748b !important;
    color: white !important;
    border: none !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 12px !important;
    transition: all 0.2s ease !important;
}

.api-credential-field .show-credential-btn:hover {
    background: #475569 !important;
    transform: translateY(-1px) !important;
}

.api-credential-field .show-credential-btn:active {
    transform: translateY(0) !important;
}

.security-notice {
    background: #fef3c7 !important;
    border-left: 4px solid #f59e0b !important;
    padding: 12px 16px !important;
    margin: 16px 0 !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    color: #92400e !important;
}

.security-notice strong {
    color: #78350f !important;
}

.form-group .description {
    font-size: 13px !important;
    color: #64748b !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}

.checkbox-group {
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
}

.checkbox-group input[type="checkbox"] {
    width: auto !important;
    margin: 0 !important;
    transform: scale(1.2) !important;
    accent-color: #7C3AED !important;
}

.checkbox-group label {
    font-weight: 500 !important;
    color: #1e293b !important;
    margin: 0 !important;
    cursor: pointer !important;
}

.form-actions {
    display: flex !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
    margin-top: 32px !important;
    padding-top: 24px !important;
    border-top: 1px solid #f1f5f9 !important;
}

.form-actions .button {
    padding: 12px 20px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.form-actions .button-primary {
    background: linear-gradient(135deg, #7C3AED, #8B5CF6) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 4px 6px rgba(124, 58, 237, 0.2) !important;
}

.form-actions .button-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 15px rgba(124, 58, 237, 0.3) !important;
}

.form-actions .button:not(.button-primary) {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
}

.form-actions .button:not(.button-primary):hover {
    background: #7C3AED !important;
    border-color: #7C3AED !important;
    color: white !important;
    transform: translateY(-1px) !important;
}



.webhook-info {
    display: grid !important;
    gap: 20px !important;
    margin-bottom: 24px !important;
}

.webhook-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 16px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
}

.webhook-item label {
    font-weight: 600 !important;
    color: #475569 !important;
    min-width: 120px !important;
    margin: 0 !important;
}

.webhook-item code {
    background: #e2e8f0 !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace !important;
    font-size: 13px !important;
    color: #475569 !important;
    flex: 1 !important;
    word-break: break-all !important;
}

.webhook-instructions {
    background: #f0f9ff !important;
    border: 1px solid #bae6fd !important;
    border-radius: 12px !important;
    padding: 20px !important;
}

.webhook-instructions h4 {
    margin: 0 0 16px 0 !important;
    color: #0369a1 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
}

.webhook-instructions ol {
    margin: 0 !important;
    padding-left: 20px !important;
    color: #0c4a6e !important;
}

.webhook-instructions li {
    margin-bottom: 8px !important;
    line-height: 1.5 !important;
}



.wallet-validation-info {
    margin-top: 24px !important;
}

.validation-status {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 20px !important;
}

.validation-status.hidden {
    display: none !important;
}

.validation-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 8px 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.validation-item:last-child {
    border-bottom: none !important;
}

.validation-item .network-name {
    font-weight: 600 !important;
    color: #475569 !important;
    font-size: 14px !important;
}

.validation-item .validation-result {
    font-size: 13px !important;
    font-weight: 500 !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.025em !important;
}

.validation-result.valid {
    background: #dcfce7 !important;
    color: #166534 !important;
}

.validation-result.invalid {
    background: #fecaca !important;
    color: #991b1b !important;
}

.validation-result.empty {
    background: #f1f5f9 !important;
    color: #64748b !important;
}

.wallet-input.valid {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

.wallet-input.invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.wallet-input:focus.valid {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2) !important;
}

.wallet-input:focus.invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}

.notice {
    background: white !important;
    border-left: 4px solid #7C3AED !important;
    border-radius: 8px !important;
    margin: 20px 0 !important;
    padding: 16px 20px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

.notice.notice-success {
    border-left-color: #10b981 !important;
}

.notice.notice-error {
    border-left-color: #ef4444 !important;
}

.important-notice {
    color: #ef4444 !important;
    font-weight: 500 !important;
}

.network-icon {
    display: inline-block !important;
    margin-right: 8px !important;
    font-size: 16px !important;
}

.help-tip {
    display: inline-block !important;
    margin-left: 8px !important;
    color: #64748b !important;
    cursor: help !important;
}

.wallet-input {
    font-family: monospace !important;
    letter-spacing: 0.5px !important;
}

@media (max-width: 768px) {
    .stablezact-admin {
        padding: 16px !important;
    }
    
    .stablezact-header {
        padding: 24px !important;
    }
    
    .stablezact-header h1 {
        font-size: 28px !important;
    }
    
    .stablezact-header p {
        font-size: 16px !important;
    }
    
    .settings-section {
        padding: 24px !important;
    }
    
    .form-grid {
        grid-template-columns: 1fr !important;
    }
    
    .networks-grid {
        grid-template-columns: 1fr !important;
    }
    
    .form-actions {
        flex-direction: column !important;
    }
    
    .webhook-item {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    .webhook-item label {
        min-width: auto !important;
    }
}

/* ===== Stablezact Onboarding page (moved from an inline style block in includes/class-stablezact-admin.php onboarding_page()) ===== */
        .stablezact-onboarding {
            margin: 0;
            padding: 20px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
        }

        .stablezact-onboarding-container {
            max-width: 800px;
            margin: 0 auto;
            background: white;
            border-radius: 12px;
            padding: 40px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        }

        .stablezact-onboarding-header {
            text-align: center;
            margin-bottom: 40px;
        }

        .stablezact-logo {
            height: 60px;
            margin-bottom: 20px;
        }

        .stablezact-onboarding-header h1 {
            font-size: 2.5em;
            margin: 0 0 10px 0;
            color: #333;
        }

        .stablezact-onboarding-header p {
            font-size: 1.2em;
            color: #666;
            margin: 0;
        }

        .stablezact-onboarding-tabs {
            display: flex;
            margin-bottom: 30px;
            border-bottom: 1px solid #ddd;
        }

        .tab-button {
            background: none;
            border: none;
            padding: 15px 30px;
            font-size: 16px;
            cursor: pointer;
            border-bottom: 3px solid transparent;
            transition: all 0.3s ease;
        }

        .tab-button.active {
            border-bottom-color: #667eea;
            color: #667eea;
            font-weight: 600;
        }

        .tab-content {
            display: none;
        }

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

        .onboarding-form {
            max-width: 500px;
            margin: 0 auto;
        }

        .onboarding-form h2 {
            text-align: center;
            color: #333;
            margin-bottom: 10px;
        }

        .onboarding-form > p {
            text-align: center;
            color: #666;
            margin-bottom: 30px;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            margin-bottom: 5px;
            font-weight: 600;
            color: #333;
        }

        .form-group input {
            width: 100%;
            padding: 12px;
            border: 2px solid #ddd;
            border-radius: 6px;
            font-size: 16px;
            transition: border-color 0.3s ease;
        }

        .form-group input:focus {
            outline: none;
            border-color: #667eea;
        }

        .form-group small {
            display: block;
            margin-top: 5px;
            color: #666;
            font-size: 14px;
        }

        .business-info {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 6px;
            margin: 20px 0;
        }

        .business-info h3 {
            margin: 0 0 15px 0;
            color: #333;
        }

        .form-actions {
            text-align: center;
            margin-top: 30px;
        }

        .button-large {
            padding: 15px 30px;
            font-size: 16px;
            position: relative;
        }

        .button .spinner {
            display: none;
            margin-left: 10px;
        }

        .button.loading .button-text {
            opacity: 0.7;
        }

        .button.loading .spinner {
            display: inline-block;
        }

        .stablezact-onboarding-info {
            margin: 30px 0;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }

        .info-card {
            background: #f0f7ff;
            border: 1px solid #d6e9ff;
            border-radius: 8px;
            padding: 20px;
            text-align: center;
        }

        .info-card h4 {
            margin: 0 0 10px 0;
            color: #333;
            font-size: 16px;
        }

        .info-card p {
            margin: 0;
            color: #666;
            font-size: 14px;
            line-height: 1.5;
        }

        .stablezact-onboarding-benefits {
            margin-top: 50px;
            padding-top: 30px;
            border-top: 1px solid #eee;
        }

        .stablezact-onboarding-benefits h3 {
            text-align: center;
            margin-bottom: 30px;
            color: #333;
        }

        .benefits-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 20px;
        }

        .benefit-item {
            text-align: center;
            padding: 20px;
        }

        .benefit-item .dashicons {
            font-size: 40px;
            color: #667eea;
            margin-bottom: 10px;
        }

        .benefit-item h4 {
            margin: 0 0 10px 0;
            color: #333;
        }

        .benefit-item p {
            margin: 0;
            color: #666;
            font-size: 14px;
            line-height: 1.4;
        }

        .stablezact-onboarding-footer {
            text-align: center;
            margin-top: 40px;
            padding-top: 20px;
            border-top: 1px solid #eee;
        }

        .stablezact-onboarding-footer p {
            margin: 10px 0;
            color: #666;
        }

        .stablezact-onboarding-footer a {
            color: #667eea;
            text-decoration: none;
        }

        .stablezact-onboarding-footer a:hover {
            text-decoration: underline;
        }

        @media (max-width: 768px) {
            .stablezact-onboarding-container {
                padding: 20px;
                margin: 10px;
            }
            
            .stablezact-onboarding-info {
                grid-template-columns: 1fr;
            }
            
            .benefits-grid {
                grid-template-columns: 1fr;
            }
        }
