/**
 * PulsePredict Frontend Styles - Professional Edition
 * Modern, clean design inspired by top prediction markets
 */

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --success-color: #10b981;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --border-color: #e5e7eb;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --yes-color: #10b981;
    --no-color: #ef4444;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

/* Global Resets & Base */
.pulsepredict-markets-wrapper,
.pulsepredict-create-market,
.pulsepredict-single-market,
.pulsepredict-portfolio,
.pulsepredict-liquidity {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Wallet Connection Banner */
.pulsepredict-wallet-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-bottom: 32px;
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.4s ease-out;
}

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

.pulsepredict-wallet-banner p {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 600;
}

/* Wallet Info Card */
.pulsepredict-wallet-info {
    margin-top: 24px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
}

.wallet-address,
.wallet-balance {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wallet-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 600;
}

.wallet-address span:last-child,
.wallet-balance span:last-child {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
}

/* Buttons */
.pp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    gap: 8px;
}

.pp-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.pp-btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3);
}

.pp-btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.pp-btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.pp-btn-secondary:hover {
    background: var(--border-color);
}

.pp-btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.pp-btn-lg {
    padding: 16px 32px;
    font-size: 18px;
}

.pp-btn-block {
    width: 100%;
}

.connect-wallet-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.connect-wallet-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.connect-wallet-btn.connected {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.connect-wallet-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Filters Section */
.pulsepredict-filters {
    background: var(--bg-primary);
    padding: 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.pp-input,
.pp-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 15px;
    transition: all 0.2s ease;
    background: var(--bg-primary);
}

.pp-input:focus,
.pp-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Markets Grid */
.pulsepredict-markets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.market-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.market-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--yes-color) 0%, var(--no-color) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.market-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.market-card:hover::before {
    transform: scaleX(1);
}

/* Resolved Market Card Styles */
.market-card-resolved {
    opacity: 0.85;
}

.market-card-resolved:hover {
    opacity: 1;
}

.market-resolved-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.market-resolved-badge.resolved-yes {
    background: #d1fae5;
    color: #065f46;
}

.market-resolved-badge.resolved-no {
    background: #fee2e2;
    color: #991b1b;
}

.market-resolved-badge.resolved-invalid {
    background: #e5e7eb;
    color: #374151;
}

.market-resolved-badge.resolved-pending {
    background: #fef3c7;
    color: #92400e;
}

.market-card-ended {
    border-color: #f59e0b;
}

.market-header {
    margin-bottom: 20px;
}

.market-question {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-primary);
    margin: 0 0 12px;
    min-height: 50px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Price Boxes */
.market-prices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.price-box {
    padding: 16px;
    border-radius: var(--radius-md);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.price-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    z-index: 0;
}

.price-yes {
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid var(--yes-color);
}

.price-yes::before {
    background: var(--yes-color);
}

.price-no {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid var(--no-color);
}

.price-no::before {
    background: var(--no-color);
}

.price-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.price-yes .price-label {
    color: var(--yes-color);
}

.price-no .price-label {
    color: var(--no-color);
}

.price-value {
    display: block;
    font-size: 28px;
    font-weight: 800;
    font-family: 'Courier New', monospace;
    position: relative;
    z-index: 1;
}

.price-yes .price-value {
    color: var(--yes-color);
}

.price-no .price-value {
    color: var(--no-color);
}

/* Market Stats */
.market-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stat {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    font-weight: 600;
}

.stat-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
}

/* Market Footer */
.market-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.market-end-date {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Loading States */
.loading-state {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    border: 4px solid var(--bg-tertiary);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-state p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Messages */
.pulsepredict-message {
    position: fixed;
    top: 32px;
    right: 20px;
    background: var(--bg-primary);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 420px;
    border-left: 4px solid var(--primary-color);
    animation: slideInRight 0.3s ease-out;
}

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

.pulsepredict-message.error {
    border-left-color: var(--danger-color);
}

.pulsepredict-message.success {
    border-left-color: var(--success-color);
}

/* Loading Overlay */
.pulsepredict-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.pulsepredict-loading-content {
    background: var(--bg-primary);
    padding: 48px 64px;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-xl);
    animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.pulsepredict-loading-content p {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Form Styles */
.pulsepredict-form {
    max-width: 600px;
    margin: 30px 0;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.4;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="datetime-local"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 16px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Single Market Page */
.pulsepredict-single-market {
    max-width: 1200px;
    margin: 0 auto;
}

.market-header-section {
    background: var(--bg-primary);
    padding: 32px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.market-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 16px;
    color: var(--text-primary);
}

.market-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.market-status {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.market-end-time {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Resolved Status Classes */
.market-status.resolved-yes {
    background: #d1fae5;
    color: #065f46;
}

.market-status.resolved-no {
    background: #fee2e2;
    color: #991b1b;
}

.market-status.resolved-invalid {
    background: #e5e7eb;
    color: #374151;
}

/* Market Resolved Banner */
.market-resolved-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    background: #f3f4f6;
    border: 2px solid #d1d5db;
}

.market-resolved-banner.resolved-yes {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-color: #10b981;
}

.market-resolved-banner.resolved-no {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-color: #ef4444;
}

.market-resolved-banner.resolved-invalid {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    border-color: #9ca3af;
}

.market-resolved-banner .resolved-icon {
    font-size: 32px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
}

.market-resolved-banner.resolved-yes .resolved-icon {
    color: #059669;
}

.market-resolved-banner.resolved-no .resolved-icon {
    color: #dc2626;
}

.market-resolved-banner .resolved-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.market-resolved-banner .resolved-text strong {
    font-size: 18px;
    color: #111827;
}

.market-resolved-banner .resolved-text span {
    font-size: 15px;
    color: #374151;
    font-weight: 600;
}

/* Large Price Cards */
.market-prices-large {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.price-card {
    background: var(--bg-primary);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.price-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    opacity: 0.05;
    pointer-events: none;
}

.price-yes-card {
    border-color: var(--yes-color);
}

.price-yes-card::after {
    background: radial-gradient(circle, var(--yes-color) 0%, transparent 70%);
}

.price-no-card {
    border-color: var(--no-color);
}

.price-no-card::after {
    background: radial-gradient(circle, var(--no-color) 0%, transparent 70%);
}

.price-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.price-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.price-header .price-label {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.price-percentage {
    font-size: 18px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.price-value-large {
    font-size: 56px;
    font-weight: 900;
    font-family: 'Courier New', monospace;
    line-height: 1;
}

.price-yes-card .price-label,
.price-yes-card .price-percentage,
.price-yes-card .price-value-large {
    color: var(--yes-color);
}

.price-no-card .price-label,
.price-no-card .price-percentage,
.price-no-card .price-value-large {
    color: var(--no-color);
}

/* Simplified YES/NO Labels */
.price-label-large {
    font-size: 48px;
    font-weight: 900;
    letter-spacing: 2px;
    display: block;
    text-align: center;
}

.price-yes-card .price-label-large {
    color: var(--yes-color);
}

.price-no-card .price-label-large {
    color: var(--no-color);
}

/* Trading Section */
.market-trading-section {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.trading-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border-color);
}

.tab-button {
    padding: 14px 28px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: -2px;
}

.tab-button:hover {
    color: var(--text-primary);
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

.outcome-selector {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.outcome-btn {
    flex: 1;
    padding: 16px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.outcome-btn[data-outcome="yes"]:hover,
.outcome-btn[data-outcome="yes"].active {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--yes-color);
    color: var(--yes-color);
}

.outcome-btn[data-outcome="no"]:hover,
.outcome-btn[data-outcome="no"].active {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--no-color);
    color: var(--no-color);
}

.trade-input-group {
    margin-bottom: 24px;
}

.trade-input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.input-help {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

/* Input with MAX button */
.input-with-max {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-max .pp-input {
    padding-right: 70px;
}

.max-btn {
    position: absolute;
    right: 8px;
    padding: 6px 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.max-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.max-btn:active {
    transform: scale(0.98);
}

.trade-summary {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 15px;
}

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

.summary-row.total {
    font-size: 18px;
    font-weight: 700;
    padding-top: 16px;
    margin-top: 8px;
    border-top: 2px solid var(--border-color);
}

/* Market Info */
.market-info-section,
.market-activity-section {
    background: var(--bg-primary);
    padding: 32px;
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.market-info-section h2,
.market-activity-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 24px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.info-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .market-prices-large {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .pulsepredict-markets-grid {
        grid-template-columns: 1fr;
    }

    .pulsepredict-filters {
        flex-direction: column;
    }

    .market-title {
        font-size: 24px;
    }

    .price-value-large {
        font-size: 40px;
    }

    .market-trading-section {
        padding: 20px;
    }

    .pulsepredict-message {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}

/* Pagination */
.pulsepredict-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.pulsepredict-pagination button {
    padding: 10px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.pulsepredict-pagination button:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pulsepredict-pagination button.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Error & Empty States */
.error-message,
.no-markets-message {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: 16px;
}

.error-message {
    color: var(--danger-color);
}

/* Transaction History */
.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--border-color);
}

.transaction-item.tx-buy {
    border-left-color: var(--yes-color);
}

.transaction-item.tx-sell {
    border-left-color: var(--no-color);
}

.transaction-item.tx-liquidity {
    border-left-color: var(--primary-color);
}

.tx-description {
    flex: 2;
    font-weight: 500;
    color: var(--text-primary);
}

.tx-amount {
    flex: 1;
    text-align: right;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.tx-buy .tx-amount {
    color: var(--no-color);
}

.tx-sell .tx-amount {
    color: var(--yes-color);
}

.tx-liquidity .tx-amount {
    color: var(--primary-color);
}

.tx-block {
    flex: 1;
    text-align: right;
    font-size: 12px;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .transaction-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .tx-amount, .tx-block {
        text-align: left;
    }
}

/* Wallet Required Notice */
.wallet-required-notice {
    background: #1A1F2E;
    border: 1px solid #2D3748;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    margin: 40px auto;
}

.wallet-required-notice h3 {
    color: #00D4FF;
    font-size: 24px;
    margin: 0 0 16px 0;
}

.wallet-required-notice p {
    color: #8F9BB3;
    font-size: 16px;
    margin: 0 0 20px 0;
}

.wallet-required-notice ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    text-align: left;
}

.wallet-required-notice li {
    background: #0F1419;
    border: 1px solid #2D3748;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 10px;
    color: #FFFFFF;
    font-size: 14px;
}

.wallet-required-notice li strong {
    color: #00D4FF;
}

.wallet-required-notice a {
    color: #00D4FF;
    text-decoration: none;
}

.wallet-required-notice a:hover {
    text-decoration: underline;
}

/* Site Pause Banner */
.site-pause-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #d63638 0%, #b91c1c 100%);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(214, 54, 56, 0.3);
    animation: pulseWarning 2s ease-in-out infinite;
}

.site-pause-banner .pause-icon {
    font-size: 24px;
}

@keyframes pulseWarning {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.85;
    }
}

/* Dark theme for pause banner */
body.dark-theme .site-pause-banner,
.pulsepredict-markets-wrapper .site-pause-banner {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
}
