* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #06b6d4;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --background: #0f0f23;
    --surface: #1a1a2e;
    --surface-light: #252545;
    --text: #e2e8f0;
    --text-dim: #94a3b8;
    --text-muted: #64748b;
    --border: #334155;
    --glow: rgba(99, 102, 241, 0.3);
    --blockchain: #f7931a;
    --ethereum: #627eea;
    --nft: #ff6b6b;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: linear-gradient(135deg, var(--background) 0%, #1a1a2e 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px var(--glow); }
    50% { box-shadow: 0 0 40px var(--glow), 0 0 80px var(--glow); }
}

@keyframes confetti {
    0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

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

/* Header */
header {
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-light) 100%);
    padding: 1.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    font-size: 2.5rem;
    animation: pulse 2s infinite;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 0.9rem;
    color: var(--text-dim);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.points-display {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    animation: glow 3s infinite;
}

.points-icon {
    font-size: 1.2rem;
}

.points-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.user-stats {
    display: flex;
    gap: 20px;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

/* Dashboard */
.dashboard {
    margin: 2rem 0;
    animation: fadeInUp 0.6s ease;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-light) 100%);
    padding: 1.5rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}

.stat-title {
    font-size: 0.9rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Filters */
.filters {
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-light) 100%);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    animation: fadeInUp 0.8s ease;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 15px;
}

.filters-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.refresh-btn {
    background: linear-gradient(135deg, var(--secondary) 0%, #0891b2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

.refresh-icon {
    font-size: 1.1rem;
    animation: none;
}

.refresh-btn:hover .refresh-icon {
    animation: pulse 0.6s ease;
}

.filter-controls {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-weight: 600;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 0.9rem;
    background: var(--surface);
    color: var(--text);
    transition: all 0.3s ease;
    min-width: 180px;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Papers List */
.papers-list {
    display: grid;
    gap: 25px;
    animation: fadeInUp 1s ease;
}

.paper-card {
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-light) 100%);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.paper-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
}

.paper-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
}

.paper-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 1.5rem;
}

.paper-info {
    flex: 1;
}

.paper-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text);
    line-height: 1.4;
    cursor: pointer;
    transition: color 0.3s ease;
}

.paper-title:hover {
    color: var(--primary);
}

.paper-authors {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.paper-meta {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.paper-abstract {
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-height: 120px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease;
}

.paper-abstract.expanded {
    max-height: none;
}

.expand-btn {
    background: none;
    color: var(--primary);
    border: none;
    padding: 0;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease;
}

.expand-btn:hover {
    color: var(--secondary);
}

.betting-section {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.odds-display {
    display: flex;
    gap: 25px;
    font-weight: 600;
}

.odds-true {
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 5px;
}

.odds-false {
    color: var(--danger);
    display: flex;
    align-items: center;
    gap: 5px;
}

.bet-button {
    background: linear-gradient(135deg, var(--warning) 0%, #d97706 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bet-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
    animation: pulse 0.6s ease;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeInUp 0.3s ease;
}

.modal-content {
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-light) 100%);
    margin: 3% auto;
    padding: 2.5rem;
    border-radius: 25px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    animation: slideInFromRight 0.4s ease;
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    color: var(--text-dim);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close:hover {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

.modal-header {
    margin-bottom: 2rem;
}

.modal-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1rem;
}

.confidence-meter {
    display: flex;
    align-items: center;
    gap: 15px;
}

.meter-label {
    font-weight: 600;
    color: var(--text-dim);
}

.meter-bar {
    flex: 1;
    height: 8px;
    background: var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--danger) 0%, var(--warning) 50%, var(--success) 100%);
    width: 50%;
    transition: width 0.3s ease;
}

.bet-form {
    margin-top: 1.5rem;
}

.points-input-group {
    margin-bottom: 2rem;
}

.points-input-group label {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
    display: block;
}

.input-container {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 1rem;
}

.bet-slider {
    flex: 1;
    height: 8px;
    border-radius: 10px;
    background: var(--border);
    outline: none;
    -webkit-appearance: none;
}

.bet-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

.bet-input {
    width: 100px;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font-weight: 600;
    text-align: center;
    transition: border-color 0.3s ease;
}

.bet-input:focus {
    outline: none;
    border-color: var(--primary);
}

.quick-bets {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.quick-bet {
    background: var(--surface-light);
    color: var(--text);
    border: 2px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.quick-bet:hover, .quick-bet.active {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.prediction-area {
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border);
}

.prediction-question h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.prediction-question p {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

.bet-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 2rem;
}

.bet-btn {
    padding: 1.5rem;
    border: 3px solid transparent;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.bet-btn.true {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
}

.bet-btn.false {
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
    color: white;
}

.bet-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.bet-btn.true:hover {
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

.bet-btn.false:hover {
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.4);
}

.bet-icon {
    font-size: 2rem;
}

.bet-text {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bet-subtitle {
    font-size: 0.8rem;
    opacity: 0.9;
    font-weight: 500;
}

.odds-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.odds-card {
    background: var(--surface-light);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--border);
}

.odds-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.odds-value {
    font-size: 1.5rem;
    font-weight: 800;
}

.true-odds .odds-value {
    color: var(--success);
}

.false-odds .odds-value {
    color: var(--danger);
}

.potential-payout {
    text-align: center;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 10px;
    border: 1px solid var(--primary);
}

.payout-label {
    color: var(--text-dim);
    margin-right: 10px;
}

.payout-amount {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
}

/* Celebration Modal */
.celebration-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeInUp 0.3s ease;
}

.celebration-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
}

.celebration-animation {
    position: relative;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary);
    animation: confetti 3s infinite;
}

.confetti:nth-child(odd) {
    background: var(--secondary);
    animation-delay: 0.5s;
}

.confetti:nth-child(3n) {
    background: var(--success);
    animation-delay: 1s;
}

.celebration-text h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: pulse 1s infinite;
}

.celebration-text p {
    font-size: 1.2rem;
    color: var(--text-dim);
}

/* Loading */
.loading {
    text-align: center;
    padding: 4rem;
    color: var(--text-dim);
    font-size: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loading::before {
    content: '🔮';
    font-size: 3rem;
    animation: pulse 1.5s infinite;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

.status-resolved {
    background: var(--surface-light);
    color: var(--text-dim);
    border: 1px solid var(--border);
}

/* Blockchain Specific Styles */
.wallet-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.wallet-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    background: var(--surface-light);
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.wallet-status.connected {
    border-color: var(--success);
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
    animation: glow 3s infinite;
}

.wallet-icon {
    font-size: 1.1rem;
}

.wallet-btn {
    background: linear-gradient(135deg, var(--ethereum) 0%, #4d6bb6 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(98, 126, 234, 0.3);
}

.wallet-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(98, 126, 234, 0.4);
}

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

.crypto-balance {
    display: flex;
    gap: 15px;
}

.balance-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0.5rem 1rem;
    background: var(--surface-light);
    border-radius: 15px;
    border: 1px solid var(--border);
}

.crypto-icon {
    font-size: 1.1rem;
}

.crypto-label {
    font-size: 0.85rem;
    color: var(--text-dim);
    font-weight: 600;
}

.stat-card.blockchain {
    background: linear-gradient(135deg, var(--blockchain) 0%, #d17c00 100%);
    color: white;
}

.stat-card.blockchain .stat-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.blockchain-options {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    border: 1px solid var(--border);
}

.payment-method label {
    display: block;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
}

.method-buttons {
    display: flex;
    gap: 10px;
}

.method-btn {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: var(--surface-light);
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.method-btn.active {
    border-color: var(--ethereum);
    background: var(--ethereum);
    color: white;
    box-shadow: 0 4px 15px rgba(98, 126, 234, 0.3);
}

.blockchain-info {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid var(--border);
}

.gas-estimate {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.transaction-id {
    font-size: 0.85rem;
}

.tx-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.tx-link:hover {
    text-decoration: underline;
}

.smart-contract-info {
    margin-top: 0.5rem;
    color: var(--text-dim);
    font-family: monospace;
}

/* NFT Modal */
.nft-modal .modal-content {
    max-width: 500px;
    text-align: center;
}

.nft-header h2 {
    background: linear-gradient(135deg, var(--nft) 0%, #ff5252 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nft-showcase {
    padding: 2rem;
}

.nft-card {
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-light) 100%);
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid var(--nft);
    margin-bottom: 1.5rem;
    box-shadow: 0 0 30px rgba(255, 107, 107, 0.3);
}

.nft-image {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.nft-details h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.nft-details p {
    color: var(--text-dim);
    margin-bottom: 1rem;
}

.nft-stats {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.nft-rarity {
    padding: 0.5rem 1rem;
    background: var(--nft);
    color: white;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.9rem;
}

.nft-tokenId {
    padding: 0.5rem 1rem;
    background: var(--surface-light);
    color: var(--text-dim);
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: monospace;
}

.opensea-btn {
    background: linear-gradient(135deg, #2081e2 0%, #1361a7 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(32, 129, 226, 0.3);
}

.opensea-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(32, 129, 226, 0.4);
}

/* Transaction History Panel */
.transaction-panel {
    position: fixed;
    right: -400px;
    top: 100px;
    width: 380px;
    height: calc(100vh - 120px);
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-light) 100%);
    border: 1px solid var(--border);
    border-radius: 20px 0 0 20px;
    transition: right 0.3s ease;
    z-index: 200;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.transaction-panel.expanded {
    right: 0;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.panel-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
}

.toggle-btn {
    background: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.transaction-list {
    padding: 1rem;
    height: calc(100% - 80px);
    overflow-y: auto;
}

.transaction-item {
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.transaction-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.1);
}

.tx-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.tx-type {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
}

.tx-status {
    padding: 0.25rem 0.75rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-confirmed {
    background: var(--success);
    color: white;
}

.status-pending {
    background: var(--warning);
    color: white;
}

.status-failed {
    background: var(--danger);
    color: white;
}

.tx-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.tx-hash {
    font-family: monospace;
}

.tx-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.no-transactions {
    text-align: center;
    color: var(--text-dim);
    padding: 2rem;
    font-style: italic;
}

.hot-badge {
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    animation: pulse 1.5s infinite;
}

/* Blockchain Notification */
.blockchain-notification {
    border-left: 4px solid var(--blockchain);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-icon {
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        flex-direction: column;
        gap: 10px;
    }
    
    .user-info {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }
    
    .wallet-section {
        flex-direction: column;
        gap: 10px;
    }
    
    .crypto-balance {
        justify-content: center;
    }
    
    .dashboard-stats {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        justify-content: space-between;
    }
    
    .paper-header {
        flex-direction: column;
    }
    
    .betting-section {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    
    .odds-display {
        justify-content: space-around;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 1.5rem;
    }
    
    .bet-options {
        grid-template-columns: 1fr;
    }
    
    .odds-display {
        grid-template-columns: 1fr;
    }
    
    .method-buttons {
        flex-direction: column;
    }
    
    .transaction-panel {
        width: 100%;
        right: -100%;
        top: 0;
        height: 100vh;
        border-radius: 0;
    }
    
    .transaction-panel.expanded {
        right: 0;
    }
}