/* Global Styles */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: #1a1a2e; /* Dark mode background */
    color: #fff; /* White text for contrast */
  }
  
  header.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem;
    background: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(42, 53, 71, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 64px;
    transition: all 0.3s ease;
  }
  
  .nav-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: linear-gradient(to right, rgba(41, 98, 255, 0.1), transparent);
    transition: all 0.3s ease;
  }
  
  .logo-section:hover {
    background: linear-gradient(to right, rgba(41, 98, 255, 0.2), transparent);
  }
  
  .logo-image {
    height: 40px;
    width: auto;
    filter: brightness(1.2) contrast(1.2) drop-shadow(0 0 4px rgba(255, 255, 255, 0.2));
  }
  
  .logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    white-space: nowrap;
  }
  
  .nav-tabs {
    display: flex;
    gap: 0.5rem;
    background: rgba(19, 23, 34, 0.6);
    padding: 0.25rem;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
  }
  
  .nav-tab {
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: none;
    color: #7d8fb3;
    cursor: pointer;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .nav-tab:hover {
    color: #e1e6ef;
    background: rgba(30, 38, 53, 0.8);
  }
  
  .nav-tab.active {
    background: #2962ff;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(41, 98, 255, 0.3);
  }
  
  .wallet-section {
    display: flex;
    align-items: center;
  }

  .wallet-button {
    background: #2962ff;
    color: #ffffff;
    padding: 0.75rem 1.25rem;
    margin-right: 40px;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 40px;
    box-shadow: 0 2px 8px rgba(41, 98, 255, 0.2);
  }
  
  .wallet-button:hover {
    background: #1e4bd8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(41, 98, 255, 0.3);
  }
  
  .wallet-button.connected {
    background: rgba(30, 38, 53, 0.8);
    border: 1px solid rgba(42, 53, 71, 0.8);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8125rem;
  }
  
  .wallet-button.connected:hover {
    background: rgba(42, 53, 71, 0.9);
  }
  
  .main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
    min-height: 100vh;
  }
  
  /* Coin Details */
  .coin-details {
    text-align: center;
    flex-grow: 1;
    margin: 0 1rem;
  }
  
  .coin-details h1.price {
    font-size: 1.8rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }
  
  .coin-details .change {
    font-size: 1rem;
    color: #10b981;
    margin-left: 0.5rem;
  }
  
  .coin-details .timestamp {
    font-size: 0.8rem;
    color: #9ca3af;
    margin: 0;
  }
  
  /* Content Grid for Chart and Buy/Sell */
  .content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
  }
  
  /* Chart Section */
  .chart-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #0a0e17;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #1e2635;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  }
  
  .chart-container {
    background: #131722;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid #1e2635;
  }
  
  .chart-container h3, .chart-container h4 {
    margin: 0 0 10px 0;
    color: #e1e6ef;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
  }
  
  .tradingview-widget-container {
    flex: 1;
    min-height: 150px;
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #131722;
    border-radius: 8px;
  }
  
  /* Buy/Sell Panel */
  .buy-sell {
    background: #0a0e17;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #1e2635;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  }
  
  .tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    padding: 4px;
    background: #1e2635;
    border-radius: 12px;
  }
  
  .tab-button {
    padding: 8px 16px;
    background: transparent;
    border: none;
    color: #7d8fb3;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 80px;
  }
  
  .tab-button:hover {
    color: #e1e6ef;
    background: rgba(41, 98, 255, 0.1);
  }
  
  .tab-button.active {
    background: #2962ff;
    color: #ffffff;
  }
  
  .buy-sell form {
    background: #1e2635;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #2a3547;
  }
  
  .buy-sell input, 
  .buy-sell select {
    width: 100%;
    padding: 12px;
    background: #131722;
    border: 1px solid #2a3547;
    border-radius: 8px;
    color: #e1e6ef;
    font-size: 14px;
    font-family: 'Monaco', monospace;
    transition: all 0.2s ease;
  }
  
  .buy-sell input:focus,
  .buy-sell select:focus {
    outline: none;
    border-color: #2962ff;
    box-shadow: 0 0 0 1px #2962ff;
  }
  
  .buy-button, 
  .sell-button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
  }
  
  .buy-button {
    background: #00c853;
    color: #ffffff;
  }
  
  .buy-button:hover:not(:disabled) {
    background: #00a844;
  }
  
  .sell-button {
    background: #ff3d71;
    color: #ffffff;
  }
  
  .sell-button:hover:not(:disabled) {
    background: #ff1f5a;
  }
  
  .buy-button:disabled,
  .sell-button:disabled {
    background: #1e2635;
    color: #4f5b7a;
    cursor: not-allowed;
  }
  
  /* Table Styling */
  table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    background: #131722;
    border-radius: 8px;
    overflow: hidden;
  }
  
  table th, 
  table td {
    padding: 12px;
    border: 1px solid #1e2635;
    color: #e1e6ef;
    font-size: 14px;
  }
  
  table th {
    background: #1e2635;
    color: #7d8fb3;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .bid-row td:first-child {
    color: #00c853;
  }
  
  .ask-row td:first-child {
    color: #ff3d71;
  }
  
  .tradingview-widget-container {
    height: 500px;
    width: 100%;
}

/* Add specific styling for BTC/USD chart */
#btcusd_chart {
    background: #131722;
    min-height: 150px;
    width: 100%;
}

.wallet-info {
    background: #2d3748;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.wallet-info .address {
    font-family: monospace;
    font-size: 0.9rem;
    color: #a0aec0;
    word-break: break-all;
}

.wallet-info .network {
    font-size: 0.9rem;
    color: #a0aec0;
    margin-top: 0.5rem;
}

.connect-wallet {
    width: 100%;
    padding: 1rem;
    background: #4a5568;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.connect-wallet:hover {
    background: #2d3748;
}

.balances {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #4a5568;
}

.balances p {
    margin: 0.5rem 0;
    font-size: 1rem;
    color: white;
}

.wallet-button.connected {
    background-color: #2d3748;
    font-family: monospace;
    font-size: 0.9rem;
}

.wallet-button.connected:hover {
    background-color: #4a5568;
}

.transaction-status {
    margin: 10px 0;
    padding: 10px;
    border-radius: 4px;
    background-color: #2d3748;
    color: #fff;
    text-align: center;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.transaction-status.error {
    background-color: #e53e3e;
}

.buy-button:disabled,
.sell-button:disabled {
    background-color: #4a5568;
    cursor: not-allowed;
}

/* Add these styles for transaction details */
.transaction-details {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #2d3748;
}

.last-transaction {
    background: #1f2937;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
}

.last-transaction h4 {
    margin: 0 0 10px 0;
    color: #fff;
    font-size: 1rem;
}

.last-transaction p {
    margin: 5px 0;
    font-size: 0.9rem;
    color: #9ca3af;
}

.last-transaction .quantity {
    color: #10b981;
}

.last-transaction .price {
    color: #60a5fa;
}

.last-transaction .timestamp {
    font-size: 0.8rem;
}

.transactions-list {
    max-height: 300px;
    overflow-y: auto;
}

.transactions-list .last-transaction {
    margin-bottom: 10px;
    border-bottom: 1px solid #2d3748;
    padding-bottom: 10px;
}

.transactions-list .last-transaction:last-child {
    border-bottom: none;
}

.no-transactions {
    text-align: center;
    color: #9ca3af;
    font-style: italic;
    padding: 15px;
}

  
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: #1f2937;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    color: white;
    text-align: center;
}

.modal-content h3 {
    margin-top: 0;
    color: #60a5fa;
}

.modal-content p {
    margin: 1rem 0;
    line-height: 1.5;
}

.close-button {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 1rem;
    transition: background-color 0.2s;
}

.close-button:hover {
    background-color: #2563eb;
}

.order-type-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    padding: 4px;
    background: #1e2635;
    border-radius: 12px;
    width: fit-content;
}

.order-type-selector button {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    background: transparent;
    color: #7d8fb3;
    min-width: 140px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Market Order Button - Default Active State */
.order-type-selector button[data-type="market"] {
    background: #2962ff;
    color: #ffffff;
    border-color: #2962ff;
    box-shadow: 0 2px 8px rgba(41, 98, 255, 0.3);
}

.order-type-selector button[data-type="market"]:hover {
    background: #1e4bd8;
    transform: translateY(-1px);
}

/* Limit Order Button - Initially Inactive */
.order-type-selector button[data-type="limit"] {
    background: rgba(41, 98, 255, 0.1);
    border-color: rgba(41, 98, 255, 0.3);
    color: #7d8fb3;
}

.order-type-selector button[data-type="limit"]:hover {
    background: rgba(41, 98, 255, 0.2);
    color: #2962ff;
}

.order-type-selector button[data-type="limit"].active {
    background: #2962ff;
    color: #ffffff;
    border-color: #2962ff;
    box-shadow: 0 2px 8px rgba(41, 98, 255, 0.3);
}

/* When Market Order is inactive */
.order-type-selector button[data-type="market"]:not(.active) {
    background: rgba(41, 98, 255, 0.1);
    border-color: rgba(41, 98, 255, 0.3);
    color: #7d8fb3;
    box-shadow: none;
}

.order-type-selector button[data-type="market"]:not(.active):hover {
    background: rgba(41, 98, 255, 0.2);
    color: #2962ff;
}

.market-price-info {
    background: #1e2635;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    border: 1px solid #2a3547;
}

.market-price-info h3 {
    color: #e1e6ef;
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-details {
    display: grid;
    gap: 8px;
}

.price-details p {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(42, 53, 71, 0.5);
    margin: 0;
}

.price-details p:last-child {
    border-bottom: none;
}

.price-details p span:first-child {
    color: #7d8fb3;
    font-size: 13px;
}

.price-details p span:last-child {
    color: #e1e6ef;
    font-family: 'Monaco', monospace;
    font-size: 14px;
    font-weight: 500;
}

.price-input {
    margin-top: 16px;
}

.price-input label {
    display: block;
    margin-bottom: 8px;
    color: #7d8fb3;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-input input {
    width: 100%;
    padding: 12px;
    background: #131722;
    border: 1px solid #2a3547;
    border-radius: 8px;
    color: #e1e6ef;
    font-size: 14px;
    font-family: 'Monaco', monospace;
    transition: all 0.2s ease;
}

.price-input input:focus {
    outline: none;
    border-color: #2962ff;
    box-shadow: 0 0 0 1px #2962ff;
}

.price-input input::placeholder {
    color: #4f5b7a;
}

/* Order Amount Section */
.order-amount {
    margin-top: 16px;
    padding: 16px;
    background: #1e2635;
    border-radius: 12px;
    border: 1px solid #2a3547;
}

.order-amount label {
    display: block;
    margin-bottom: 8px;
    color: #7d8fb3;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.amount-input-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.amount-input-group input {
    flex: 1;
    padding: 12px;
    background: #131722;
    border: 1px solid #2a3547;
    border-radius: 8px;
    color: #e1e6ef;
    font-size: 14px;
    font-family: 'Monaco', monospace;
    transition: all 0.2s ease;
}

.amount-input-group input:focus {
    outline: none;
    border-color: #2962ff;
    box-shadow: 0 0 0 1px #2962ff;
}

.amount-input-group .unit {
    color: #7d8fb3;
    font-size: 14px;
    font-family: 'Monaco', monospace;
    padding: 0 8px;
}

/* Order Summary */
.order-summary {
    margin-top: 16px;
    padding: 16px;
    background: #1e2635;
    border-radius: 12px;
    border: 1px solid #2a3547;
}

.order-summary h4 {
    color: #e1e6ef;
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(42, 53, 71, 0.5);
}

.summary-row:last-child {
    border-bottom: none;
    padding-top: 12px;
    margin-top: 4px;
}

.summary-row .label {
    color: #7d8fb3;
    font-size: 13px;
}

.summary-row .value {
    color: #e1e6ef;
    font-family: 'Monaco', monospace;
    font-size: 14px;
    font-weight: 500;
}

.summary-row.total {
    border-top: 1px solid #2a3547;
    margin-top: 8px;
    padding-top: 12px;
}

.summary-row.total .label {
    font-weight: 500;
    color: #e1e6ef;
}

.summary-row.total .value {
    color: #2962ff;
    font-weight: 600;
}

/* Modern Trading Interface Styles */
.degen-options-container {
    background-color: #0a0e17;
    border: 1px solid #1e2635;
    border-radius: 16px;
    padding: 16px;
    margin: 10px auto;
    color: #e1e6ef;
    max-width: 1200px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.degen-options-container h2 {
    margin-bottom: 16px;
    font-size: 20px;
    color: #e1e6ef;
    text-align: center;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.expiry-dates-scroll {
    position: relative;
    margin: 20px -10px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 10px;
    background: #131722;
    border-radius: 12px;
    border: 1px solid #1E2635;
    overflow-x: auto;
}

.expiry-dates {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 8px 4px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    flex-wrap: nowrap;
    align-items: center;
}

.expiry-dates::-webkit-scrollbar {
    display: none;
}

.scroll-button {
    background: #1E2635;
    border: none;
    color: #7D8FB3;
    padding: 10px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.scroll-button:hover {
    background: #2A3547;
    color: #E1E6EF;
}

.scroll-button.left {
    left: 10px;
}

.scroll-button.right {
    right: 10px;
}

.expiry-date-button {
    background: rgba(30, 38, 53, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    padding: 8px 12px;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.expiry-date-button:hover {
    background: rgba(41, 98, 255, 0.1);
    color: #f8fafc;
    border-color: rgba(41, 98, 255, 0.3);
}

.expiry-date-button.active {
    background: linear-gradient(135deg, #2962ff, #1e4bd8);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(41, 98, 255, 0.4);
    border: 1px solid rgba(41, 98, 255, 0.5);
    transform: translateY(-2px);
}

.expiry-date-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.expiry-date {
    font-size: 14px;
    font-weight: 500;
}

.days-until {
    font-size: 12px;
    opacity: 0.8;
}

.expiry-dates-container h3 {
    color: #7d8fb3;
    font-size: 14px;
    margin-bottom: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.options-trading-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    background: #131722;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #1e2635;
}

.option-type-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    padding: 4px;
    background: #1e2635;
    border-radius: 12px;
    width: fit-content; /* Make width fit content */
}

.option-type-button {
    padding: 8px 16px; /* Reduced padding */
    background: transparent;
    border: none;
    color: #7d8fb3;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 80px; /* Set minimum width */
}

.option-type-button:hover {
    color: #e1e6ef;
}

.option-type-button.active {
    background: #2962ff;
    color: #ffffff;
}

.option-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.greeks-display {
    background: #1e2635;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #2a3547;
}

.greeks-display h3 {
    margin-bottom: 20px;
    color: #e1e6ef;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.greek-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #2a3547;
}

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

.greek-row span:first-child {
    color: #7d8fb3;
    font-size: 14px;
}

.greek-row span:last-child {
    color: #e1e6ef;
    font-family: 'Monaco', monospace;
    font-size: 14px;
    font-weight: 500;
}

.trade-form {
    background: #1e2635;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #2a3547;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #7d8fb3;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    background: #131722;
    border: 1px solid #2a3547;
    border-radius: 8px;
    color: #e1e6ef;
    font-size: 14px;
    font-family: 'Monaco', monospace;
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #2962ff;
    box-shadow: 0 0 0 1px #2962ff;
}

.form-group input::placeholder {
    color: #4f5b7a;
}

.selected-expiry {
    margin: 16px 0;
    padding: 12px;
    background: #131722;
    border-radius: 8px;
    text-align: center;
}

.selected-expiry p {
    margin: 0;
    color: #7d8fb3;
    font-size: 14px;
}

.selected-expiry strong {
    color: #e1e6ef;
    font-weight: 500;
}

.trade-button {
    width: 100%;
    padding: 14px;
    background: #2962ff;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.trade-button:hover:not(:disabled) {
    background: #1e4bd8;
}

.trade-button:disabled {
    background: #1e2635;
    color: #4f5b7a;
    cursor: not-allowed;
}

.transaction-status {
    margin-top: 16px;
    padding: 12px;
    text-align: center;
    background: #131722;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.transaction-status.success {
    color: #00c853;
    background: rgba(0, 200, 83, 0.1);
}

.transaction-status.error {
    color: #ff3d71;
    background: rgba(255, 61, 113, 0.1);
}

.transaction-status.pending {
    color: #ffc107;
    background: rgba(255, 193, 7, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .degen-options-container {
        padding: 16px;
        margin: 16px;
    }

    .option-details {
        grid-template-columns: 1fr;
    }

    .expiry-dates-scroll {
        margin: 16px -8px;
    }

    .expiry-date-button {
        padding: 8px 12px;
        font-size: 13px;
    }

    .option-type-button {
        padding: 10px 16px;
        font-size: 13px;
    }
}

.option-type-tabs {
    display: flex;
    gap: 8px;
    background: #1e2635;
    padding: 4px;
    border-radius: 8px;
}

.option-type-tabs .call-tab,
.option-type-tabs .put-tab {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    color: #7d8fb3;
    background: transparent;
}

.option-type-tabs .call-tab:hover {
    background: rgba(0, 200, 83, 0.1);
    color: #00c853;
}

.option-type-tabs .put-tab:hover {
    background: rgba(255, 61, 113, 0.1);
    color: #ff3d71;
}

.option-type-tabs .call-tab.active {
    background: #00c853;
    color: white;
}

.option-type-tabs .put-tab.active {
    background: #ff3d71;
    color: white;
}

.btc-price-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.btc-price-box {
    background: #1a1a2e;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.btc-label {
    color: #7d8fb3;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}

.btc-value {
    font-size: 24px;
    color: white;
}

.btc-change {
    margin-left: 10px;
    padding: 5px 10px;
    border-radius: 5px;
}

.btc-icon {
    width: 32px;
    height: 32px;
    margin-right: 8px;
}

/* Add styles for Rise/Drop specific buttons */
.rise-drop-panel {
    display: flex;
    gap: 4px;
    background: #1e2635;
    padding: 4px;
    border-radius: 8px;
    width: fit-content;
    margin: 10px 0;
    /*margin-top: -50px;*/
}

.rise-drop-button {
    padding: 6px 12px;
    background: transparent;
    border: none;
    color: #7d8fb3;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    font-weight: 500;
    min-width: 60px;
    text-align: center;
    /*margin-top: -50px;*/
}

.rise-drop-button:hover {
    color: #e1e6ef;
    background: rgba(41, 98, 255, 0.1);
}

/* Rise button specific styles */
.rise-drop-button[data-type="Rise"] {
    border: 1px solid rgba(41, 98, 255, 0.3);
}

.rise-drop-button[data-type="Rise"]:hover {
    background: rgba(41, 98, 255, 0.1);
}

.rise-drop-button[data-type="Rise"].active {
    background: #2962ff !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(41, 98, 255, 0.3);
}

/* Drop button specific styles */
.rise-drop-button[data-type="Drop"] {
    border: 1px solid rgba(255, 59, 59, 0.3);
}

.rise-drop-button[data-type="Drop"]:hover {
    background: rgba(255, 59, 59, 0.1);
}

.rise-drop-button[data-type="Drop"].active {
    background: #ff3b3b !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(255, 59, 59, 0.3);
}

.bet-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    margin: 1rem 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.transaction-status {
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    min-height: 1.5rem;
    color: #fff;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.transaction-status:empty {
    opacity: 0;
}

.place-bet-button {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #2a2a2a;
    color: #fff;
    max-width: 30%;
}

.place-bet-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #1a1a1a;
}

.place-bet-button.up {
    background: #22c55e;
}

.place-bet-button.down {
    background: #ef4444;
}

.place-bet-button:not(:disabled):hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

.strike-header {
    display: grid;
    grid-template-columns: 0.5fr 1fr 1fr 1.5fr;
    padding: 16px 24px;
    background: #1a1f2e;
    border-bottom: 1px solid #2a3547;
    gap: 24px;
    margin-bottom: 0;
    border-radius: 12px 12px 0 0;
}

.strike-header span {
    color: #7d8fb3;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0.7px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 8px;
}

.strike-row {
    display: grid;
    grid-template-columns: 0.5fr 1fr 1fr 1.5fr;
    padding: 16px 24px;
    gap: 24px;
    transition: all 0.2s ease;
    cursor: pointer;
    align-items: center;
    border-bottom: 1px solid rgba(42, 53, 71, 0.3);
    background: rgba(19, 23, 34, 0.6);
}

.strike-row:hover {
    background: rgba(41, 98, 255, 0.05);
    border-left: 2px solid rgba(41, 98, 255, 0.3);
}

.strike-row.selected {
    background: rgba(41, 98, 255, 0.1);
    border-left: 2px solid #2962ff;
}

.strike-row > * {
    text-align: center;
    font-size: 14px;
    color: #e1e6ef;
    font-family: 'JetBrains Mono', monospace;
}

.strike-row input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0 auto;
    cursor: pointer;
    accent-color: #2962ff;
}

.strike-range {
    font-weight: 600;
    color: #e1e6ef;
    font-size: 15px;
}

.strike-range span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Add colors for the strike range indicators */
.strike-row.safe .strike-range span::after {
    content: "(safe 🛡️)";
    color: #00c853;
    font-size: 0.9em;
    font-weight: 500;
}

.strike-row.even .strike-range span::after {
    content: "(even ⚖️)";
    color: #ff9800;
    font-size: 0.9em;
    font-weight: 500;
}

.strike-row.boom .strike-range span::after {
    content: "(boom 💥)";
    color: #ff3d71;
    font-size: 0.9em;
    font-weight: 500;
}

.cost-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.sats-cost {
    color: #7d8fb3;
    font-size: 14px;
}

.usd-cost {
    color: #2962ff;
    font-weight: 600;
    font-size: 14px;
}

.reward {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.reward-value {
    color: #00c853;
    font-weight: 600;
    font-size: 14px;
}

.reward-usd {
    color: #7d8fb3;
    font-size: 13px;
}

.strike-prices-container {
    background: #131722;
    border: 1px solid #1e2635;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin: 20px 0;
}

.navbar {
    width: 100%;
    background-color: rgba(17, 25, 40, 0.75);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

/* Add margin to main content to account for fixed navbar */
.main-content {
    margin-top: 80px;
    padding: 0 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    header.navbar {
        padding: 0.5rem 1rem;
    }

    .logo-section {
        padding: 0.25rem 0.5rem;
    }

    .logo {
        font-size: 1rem;
    }

    .nav-tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    .wallet-button {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
}

.degen-tabs {
    max-width: none; /* let content decide width */
    width: auto;
    gap: 10px;       /* spacing between buttons */
    flex-wrap: nowrap;
}

.degen-tab {
    padding: 10px 20px;
    background: #1e2635;
    border: 1px solid #2a3547;
    color: #7d8fb3;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 100px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.degen-tab:hover {
    background: #2a3547;
    color: #e1e6ef;
    transform: translateY(-1px);
}

.degen-tab.active {
    background: #2962ff;
    color: #ffffff;
    border-color: #2962ff;
    box-shadow: 0 2px 8px rgba(41, 98, 255, 0.3);
}

.degen-tab.active:hover {
    background: #1e4bd8;
    transform: translateY(-1px);
}

.dashboard-content {
    padding: 20px;
    background: #131722;
    border-radius: 12px;
    border: 1px solid #1e2635;
    margin-top: 20px;
}

.stats-overview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: #1e2635;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #2a3547;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #2962ff;
}

.stat-icon {
    font-size: 24px;
    margin-bottom: 12px;
    display: inline-block;
}

.prize-icon {
    color: #f59e0b;
}

.volume-icon {
    color: #2962ff;
}

.trades-icon {
    color: #10b981;
}

.success-icon {
    color: #00c853;
}

.stat-card h3 {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    color: #e1e6ef;
    font-size: 24px;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 4px;
}

.stat-value.highlighted {
    color: #f59e0b;
    font-size: 28px;
}

.stat-subtext {
    color: #7d8fb3;
    font-size: 12px;
    font-style: italic;
}

@media (max-width: 1024px) {
    .stats-overview {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .stats-overview {
        grid-template-columns: 1fr;
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    .stat-value.highlighted {
        font-size: 24px;
    }
}

.user-stats {
    background: #1e2635;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #2a3547;
}

.user-stats h3 {
    color: #7d8fb3;
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.positions-list {
    display: grid;
    gap: 15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .degen-tabs {
        justify-content: center;
        padding: 0 10px;
    }
    
    .degen-tab {
        padding: 8px 16px;
        font-size: 13px;
        min-width: 80px;
    }

    .stats-overview {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-value {
        font-size: 20px;
    }
}

.reward {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 0.9em;
}

.reward-value {
    color: var(--success-color);
    font-weight: 500;
}

.reward-usd {
    color: var(--secondary-text-color);
    font-size: 0.9em;
}

.trade-card-wrapper {
    background: rgba(10, 15, 30, 0.7);
    border-radius: 16px;
    padding: 0;
    margin-top: 8px;
    border: 1px solid rgba(32, 41, 58, 0.5);
    display: flex;
    flex-direction: column;
}

.trade-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.trade-card-header h3 {
    font-size: 24px;
    color: #ffffff;
    font-weight: 400;
    margin: 0;
}

.trade-card-content {
    padding: 0.5rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.trade-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    background: rgba(19, 23, 34, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.trade-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.trade-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.trade-label {
    font-size: 20px;
    color: #9ca3af;
    font-weight: 400;
}

.trade-value {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trade-value .amount {
    font-size: 20px;
    color: #ffffff;
    font-family: 'JetBrains Mono', monospace;
}

.trade-value .unit {
    color: #6b7280;
    font-size: 16px;
}

.trade-value .usd {
    color: #6b7280;
    font-size: 16px;
}

.quantity-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.quantity-label {
    font-size: 20px;
    color: #9ca3af;
    font-weight: 400;
}

.quantity-controls {
    display: flex;
    align-items: center;
    background: rgba(30, 35, 45, 0.95);
    border-radius: 12px;
    padding: 4px;
    width: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.place-bet-button {
    width: 100%;
    padding: 16px 32px;
    background: #2962ff;
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: auto;
}

.place-bet-button:hover {
    background: #1e4bd8;
    transform: translateY(-1px);
}

.place-bet-button:disabled {
    background: rgba(41, 98, 255, 0.3);
    cursor: not-allowed;
}

/* Strike row status indicators */
.strike-row {
    position: relative;
}

.strike-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 2px;
}

.strike-row.safe::before {
    background: #00c853;
}

.strike-row.even::before {
    background: #ff9800;
}

.strike-row.boom::before {
    background: #ff3d71;
}

.strike-row:hover::before {
    width: 6px;
}

.strike-row.selected::before {
    width: 6px;
}

/* Improve strike row styling */
.strike-row {
    padding: 16px 24px 16px 28px; /* Extra left padding for indicator */
    background: rgba(19, 23, 34, 0.6);
    border-bottom: 1px solid rgba(42, 53, 71, 0.3);
    transition: all 0.2s ease;
}

.strike-row:hover {
    background: rgba(41, 98, 255, 0.05);
}

.strike-row.selected {
    background: rgba(41, 98, 255, 0.1);
}

.selected-contract-header {
    font-size: 24px;
    color: #ffffff;
    margin: 0 0 32px 0;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 12px;
}

.selected-contract-header .type {
    color: #ffffff;
}

.selected-contract-header .separator {
    color: #6b7280;
    margin: 0 4px;
}

.selected-contract-header .date,
.selected-contract-header .range {
    color: #9ca3af;
}

.trade-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px;
    background: rgba(19, 23, 34, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.trade-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.trade-label {
    font-size: 20px;
    color: #9ca3af;
    font-weight: 400;
}

.trade-value {
    font-size: 20px;
    color: #ffffff;
    font-family: 'JetBrains Mono', monospace;
    display: flex;
    align-items: center;
    gap: 8px;
}

.trade-value .unit {
    color: #6b7280;
}

.trade-value .usd {
    color: #6b7280;
    font-size: 16px;
}

.strike-prices-container {
    background: #131722;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    margin: 20px 0;
}

.strike-header {
    background: rgba(19, 23, 34, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.quantity-controls button {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.quantity-controls button:hover {
    background: rgba(41, 98, 255, 0.1);
}

.quantity-controls input {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 24px;
    width: 48px;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
}

.quantity-controls input:focus {
    outline: none;
}

.market-info {
    padding: 24px;
    height: auto;
    min-height: 100px;
}

.sparkline {
    width: 100px;
    height: 32px;
    margin: 4px 0;
    border: 1px solid rgba(45, 212, 191, 0.3);
    border-radius: 4px;
    background: rgba(45, 212, 191, 0.05);
}

.sparkline.negative {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.05);
}

.price-main {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #e2e8f0;
}

.change {
    font-size: 0.875rem;
    padding: 2px 6px;
    border-radius: 4px;
}

.change.positive {
    color: #2dd4bf;
}

.change.negative {
    color: #ef4444;
}

.time-info {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 2px;
}

.degen-header-title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -70px;
    gap: 5px;
}

.btc-price-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btc-icon {
    width: 24px;
    height: 24px;
}

.price-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #e2e8f0;
}

.sparkline {
    width: 100px;
    height: 32px;
    margin: 4px 0;
    border: 1px solid rgba(45, 212, 191, 0.3);
    border-radius: 4px;
    background: rgba(45, 212, 191, 0.05);
}

.sparkline.negative {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.05);
}

.change {
    font-size: 0.875rem;
    padding: 2px 6px;
    border-radius: 4px;
}

.change.positive {
    color: #2dd4bf;
}

.change.negative {
    color: #ef4444;
}

.time-info {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 2px;
}

.market-info {
    padding: 24px;
    height: auto;
    min-height: 100px;
}

/* Leaderboard Styles */
.leaderboard-section {
    background: #131722;
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
    border: 1px solid #1e2635;
}

.section-title {
    color: #e1e6ef;
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 8px;
}

.time-period {
    color: #7d8fb3;
    font-size: 14px;
    margin-bottom: 20px;
}

.leaderboard-table {
    background: rgba(17, 24, 39, 0.7);
    border-radius: 12px;
    overflow: hidden;
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #4b5563 #1f2937;
}

.leaderboard-table::-webkit-scrollbar {
    width: 8px;
}

.leaderboard-table::-webkit-scrollbar-track {
    background: #1f2937;
    border-radius: 4px;
}

.leaderboard-table::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 4px;
}

.leaderboard-table::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

.leaderboard-header {
    position: sticky;
    top: 0;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(8px);
    z-index: 1;
    padding: 16px;
    display: grid;
    grid-template-columns: 80px 1fr 200px;
    gap: 16px;
    border-bottom: 1px solid rgba(75, 85, 99, 0.3);
    font-weight: 600;
    color: #e5e7eb;
}

.leaderboard-row {
    padding: 12px 16px;
    display: grid;
    grid-template-columns: 80px 1fr 200px;
    gap: 16px;
    align-items: center;
    border-bottom: 1px solid rgba(75, 85, 99, 0.1);
    transition: background-color 0.2s ease;
}

.leaderboard-row:hover {
    background: rgba(31, 41, 55, 0.5);
}

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

.week {
    font-weight: 500;
    color: #9ca3af;
    font-size: 0.9em;
}

.address {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9em;
    color: #e5e7eb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .leaderboard-table {
        max-height: 300px;
    }

    .leaderboard-header,
    .leaderboard-row {
        grid-template-columns: 60px 1fr 140px;
        gap: 12px;
        padding: 12px;
    }

    .address {
        font-size: 0.8em;
    }

    .profit-cell {
        font-size: 0.9em;
    }
}

.rank {
    color: #e1e6ef;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    text-align: center;
}

.win-rate {
    color: #00c853;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    text-align: right;
}

.profit {
    color: #2962ff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    text-align: right;
}

.weekly-winners {
    margin-top: 32px;
}

.weekly-winners .section-title {
    margin-bottom: 8px;
}

.update-info {
    color: #7d8fb3;
    font-size: 14px;
    margin-bottom: 16px;
}

.no-winners {
    color: #7d8fb3;
    font-style: italic;
    text-align: center;
    padding: 16px;
    background: rgba(30, 38, 53, 0.2);
    border-radius: 8px;
}

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Leaderboard Section */
.leaderboard-section {
    background: #1e2635;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.time-period {
    font-size: 0.9rem;
    color: #8492a6;
    margin-bottom: 1.5rem;
}

.leaderboard-table {
    width: 100%;
}

.leaderboard-header {
    display: grid;
    grid-template-columns: 0.5fr 2fr 1fr 1fr;
    padding: 1rem;
    background: #131722;
    border-radius: 8px 8px 0 0;
    font-weight: 500;
    color: #8492a6;
}

.leaderboard-row {
    display: grid;
    grid-template-columns: 0.5fr 2fr 1fr 1fr;
    padding: 1rem;
    border-bottom: 1px solid #2a3547;
    transition: background-color 0.2s;
}

.leaderboard-row:hover {
    background: #1a2233;
}

.leaderboard-row span {
    color: #ffffff;
}

.leaderboard-row .rank {
    color: #8492a6;
}

.leaderboard-row .address {
    font-family: 'Monaco', monospace;
    font-size: 0.9rem;
}

.leaderboard-row .win-rate {
    color: #00c853;
}

.leaderboard-row .profit {
    font-weight: 500;
}

/* Weekly Winners Section */
.weekly-winners {
    background: #1e2635;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.update-info {
    font-size: 0.9rem;
    color: #8492a6;
    margin-bottom: 1.5rem;
}

.winner-card {
    background: #131722;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.winner-card.primary {
    border: 1px solid #2a3547;
}

.winner-label {
    font-size: 0.9rem;
    color: #8492a6;
    margin-bottom: 0.5rem;
}

.winner-address {
    font-family: 'Monaco', monospace;
    font-size: 0.9rem;
    color: #ffffff;
    margin-bottom: 1rem;
    word-break: break-all;
}

.winner-amount {
    font-size: 1.5rem;
    font-weight: 600;
    color: #00c853;
    margin-bottom: 1rem;
}

.winner-stats {
    display: flex;
    gap: 1rem;
    color: #8492a6;
    font-size: 0.9rem;
}

.no-winners {
    text-align: center;
    padding: 2rem;
    color: #8492a6;
    font-style: italic;
}

/* ------------------------------------------------------------- */
/*  Shared button sizing – apply to ALL actionable buttons       */
/* ------------------------------------------------------------- */
.btn-unified,
.buy-button,
.sell-button,
.trade-button,
.place-bet-button,
.tab-button,
.nav-tab,
.scroll-button,
.quantity-btn {
    padding: 0.75rem 1.25rem;
    height: 40px;
    font-size: 0.875rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Transaction history styles */
.transactions-section {
    background: #131722;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #1e2635;
}

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

.transactions-header h3 {
    color: #e1e6ef;
    font-size: 18px;
    font-weight: 500;
    margin: 0;
}

.transaction-tabs {
    display: flex;
    gap: 8px;
    background: #1e2635;
    padding: 4px;
    border-radius: 8px;
}

.transaction-tab {
    padding: 8px 16px;
    background: transparent;
    border: none;
    color: #7d8fb3;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 14px;
    min-width: 80px;
    text-align: center;
}

.transaction-tab:hover {
    color: #e1e6ef;
    background: rgba(41, 98, 255, 0.1);
}

.transaction-tab.active {
    background: #2962ff;
    color: #ffffff;
}

.transactions-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.transactions-table-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    padding: 12px 16px;
    background: #0a0e17;
    border-bottom: 1px solid rgba(42, 53, 71, 0.5);
    gap: 16px;
    align-items: center;
    font-weight: 500;
    color: #7d8fb3;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 1;
}

.transactions-table-body {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin; /* For Firefox */
    scrollbar-color: rgba(41, 98, 255, 0.3) rgba(19, 23, 34, 0.6); /* For Firefox */
}

/* Webkit scrollbar styles */
.transactions-table-body::-webkit-scrollbar {
    width: 8px;
    background: transparent;
}

.transactions-table-body::-webkit-scrollbar-track {
    background: rgba(19, 23, 34, 0.6);
    border-radius: 4px;
    margin: 4px 0;
}

.transactions-table-body::-webkit-scrollbar-thumb {
    background: rgba(41, 98, 255, 0.3);
    border-radius: 4px;
    border: 2px solid rgba(19, 23, 34, 0.6);
    transition: background 0.2s ease;
}

.transactions-table-body::-webkit-scrollbar-thumb:hover {
    background: rgba(41, 98, 255, 0.5);
}

.transaction-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    padding: 0.75rem;
    border-bottom: 1px solid rgba(42, 53, 71, 0.5);
    align-items: center;
    transition: background-color 0.2s;
}

.transaction-row:hover {
    background-color: rgba(41, 98, 255, 0.1);
}

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

.transaction-status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    min-width: 80px;
}

.transaction-status-badge.pending {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
}

.transaction-status-badge.filled {
    background: rgba(0, 200, 83, 0.2);
    color: #00c853;
}

.transaction-status-badge.cancelled {
    background: rgba(255, 61, 113, 0.2);
    color: #ff3d71;
}

.transaction-status-badge.expired {
    background: rgba(158, 158, 158, 0.2);
    color: #9e9e9e;
}

.transaction-type {
    display: flex;
    align-items: center;
    gap: 8px;
}

.transaction-type.call {
    color: #00c853;
}

.transaction-type.put {
    color: #ff3d71;
}

.transaction-date {
    color: #7d8fb3;
    font-size: 13px;
}

.transaction-value {
    color: #e1e6ef;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
}

.transaction-btc {
    display: flex;
    align-items: center;
    gap: 4px;
}

.btc-amount {
    font-weight: 500;
}

.transaction-usd {
    color: #7d8fb3;
    font-size: 12px;
    margin-top: 2px;
}

.no-transactions {
    padding: 20px;
    text-align: center;
    color: #7d8fb3;
    font-style: italic;
    background: rgba(30, 38, 53, 0.2);
    border-radius: 8px;
    margin-top: 16px;
}

.view-all-link {
    display: inline-block;
    margin-top: 12px;
    color: #2962ff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.view-all-link:hover {
    text-decoration: underline;
    color: #1e4bd8;
}

/* Make transaction tables responsive */
@media (max-width: 768px) {
    .transactions-table-header,
    .transaction-row {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .transactions-table-header span:nth-child(3),
    .transactions-table-header span:nth-child(4),
    .transactions-table-header span:nth-child(6),
    .transaction-row div:nth-child(3),
    .transaction-row div:nth-child(4),
    .transaction-row div:nth-child(6) {
        display: none;
    }
}

/* Dashboard UI Enhancements */
.dashboard-title {
  font-size: 28px;
  text-align: center;
  margin-bottom: 30px;
  color: #fff;
  position: relative;
  padding-bottom: 15px;
  font-weight: 600;
  letter-spacing: 1px;
}

.dashboard-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, #2962ff, #27d0ff);
  border-radius: 3px;
}

.dashboard-emoji {
  font-size: 24px;
  margin-left: 10px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.pulse-animation {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(41, 98, 255, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(41, 98, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(41, 98, 255, 0); }
}

.stats-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: linear-gradient(145deg, #131722, #1a2035);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  border-color: rgba(41, 98, 255, 0.2);
}

.stat-icon {
  font-size: 32px;
  margin-bottom: 15px;
  background: rgba(41, 98, 255, 0.1);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.prize-icon {
  background: linear-gradient(145deg, rgba(253, 230, 138, 0.2), rgba(252, 211, 77, 0.2));
  color: #fbbf24;
}

.players-icon {
  background: linear-gradient(145deg, rgba(147, 197, 253, 0.2), rgba(96, 165, 250, 0.2));
  color: #60a5fa;
}

.volume-icon {
  background: linear-gradient(145deg, rgba(110, 231, 183, 0.2), rgba(16, 185, 129, 0.2));
  color: #10b981;
}

.success-icon {
  background: linear-gradient(145deg, rgba(167, 243, 208, 0.2), rgba(52, 211, 153, 0.2));
  color: #34d399;
}

.stat-card h3 {
  color: #94a3b8;
  font-size: 16px;
  font-weight: 500;
  margin-top: 0;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  margin: 10px 0;
  color: #f8fafc;
  font-family: 'JetBrains Mono', monospace;
}

.stat-value.highlighted {
  color: #f59e0b;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-subtext {
  color: #94a3b8;
  font-size: 14px;
  margin-top: 10px;
}

.transactions-leaderboard-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 10px;
}

.section-title {
  font-size: 22px;
  color: #f8fafc;
  font-weight: 600;
  margin: 0;
}

.time-period {
  color: #94a3b8;
  font-size: 14px;
  background: rgba(41, 98, 255, 0.1);
  padding: 5px 10px;
  border-radius: 20px;
}

.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
  color: #94a3b8;
  position: relative;
}

.loading-spinner::after {
  content: "";
  width: 30px;
  height: 30px;
  border: 3px solid rgba(41, 98, 255, 0.2);
  border-top-color: #2962ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.error-message {
  background: rgba(255, 61, 113, 0.1);
  color: #ff3d71;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  font-weight: 500;
}

.trophy-icon {
  font-size: 48px;
  margin-bottom: 15px;
  animation: bounce 2s ease infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-15px); }
  60% { transform: translateY(-7px); }
}

.winner-card {
  background: linear-gradient(145deg, #1a2035, #131722);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.winner-card.primary {
  background: linear-gradient(145deg, #142248, #1a2035);
  border: 1px solid rgba(41, 98, 255, 0.2);
}

.winner-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  border-color: rgba(41, 98, 255, 0.3);
}

.winner-label {
  font-size: 16px;
  color: #94a3b8;
  margin-bottom: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
}

.winner-address {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  color: #f8fafc;
  margin-bottom: 20px;
  background: rgba(41, 98, 255, 0.05);
  padding: 8px 15px;
  border-radius: 8px;
  display: inline-block;
}

.winner-amount {
  font-size: 24px;
  font-weight: 700;
  margin: 15px 0;
  color: #f59e0b;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.winner-stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  color: #94a3b8;
  font-size: 14px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-top: 30px;
}

@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-overview {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .stats-overview {
    grid-template-columns: 1fr;
  }
  
  .stat-value {
    font-size: 20px;
  }
  
  .winner-stats {
    flex-direction: column;
    gap: 10px;
  }
}

/* Satoshi amount styling */
.sats-amount {
  font-weight: 500;
  color: #e1e6ef;
  font-family: 'JetBrains Mono', monospace;
  display: block;
}

/* Contracts amount styling */
.contracts-amount {
  font-weight: 500;
  color: #e1e6ef;
  font-family: 'JetBrains Mono', monospace;
}

.transaction-value {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.transaction-btc {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.btc-amount {
  font-weight: 500;
  color: #e1e6ef;
  font-family: 'JetBrains Mono', monospace;
  display: block;
}

.transaction-usd {
  color: #7d8fb3;
  font-size: 12px;
  font-style: italic;
}

/* Enhanced Trading Tab Styles */
.options-content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Make the market overview more card-like */
.market-info {
  background: linear-gradient(145deg, #131722, #1a2035);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.market-info::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #2962ff, #27d0ff);
  border-radius: 3px;
}

.header-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.header-title h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 0;
  background: linear-gradient(90deg, #f8fafc, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-logo {
  font-size: 24px;
  animation: pulse 2s infinite;
}

/* Make the Rise/Drop buttons more prominent */
.rise-drop-panel {
  margin: 20px 0;
  padding: 6px;
  background: linear-gradient(145deg, #131722, #1a2035);
  border-radius: 10px;
  display: flex;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.05);
  width: fit-content;
}

.rise-drop-button {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  min-width: 70px;
  transition: all 0.3s ease;
}

.rise-drop-button[data-type="Rise"] {
  border: 1px solid rgba(41, 98, 255, 0.4);
  background: rgba(41, 98, 255, 0.1);
}

.rise-drop-button[data-type="Rise"].active {
  background: linear-gradient(135deg, #2962ff, #1e4bd8) !important;
  box-shadow: 0 4px 12px rgba(41, 98, 255, 0.4) !important;
  transform: translateY(-2px);
}

.rise-drop-button[data-type="Drop"] {
  border: 1px solid rgba(255, 59, 59, 0.4);
  background: rgba(255, 59, 59, 0.1);
}

.rise-drop-button[data-type="Drop"].active {
  background: linear-gradient(135deg, #ff3b3b, #e62e2e) !important;
  box-shadow: 0 4px 12px rgba(255, 59, 59, 0.4) !important;
  transform: translateY(-2px);
}

/* Enhance the expiry dates container */
.expiry-dates-container {
  margin-bottom: 30px;
}

.expiry-dates-container h3 {
  font-size: 18px;
  margin-bottom: 16px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.expiry-dates-scroll {
  background: linear-gradient(145deg, #131722, #1a2035);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 12px;
  margin: 10px 0;
}

.expiry-date-button {
  background: rgba(30, 38, 53, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  padding: 10px 16px;
  transition: all 0.3s ease;
}

.expiry-date-button:hover {
  background: rgba(41, 98, 255, 0.1);
  color: #f8fafc;
  border-color: rgba(41, 98, 255, 0.3);
}

.expiry-date-button.active {
  background: linear-gradient(135deg, #2962ff, #1e4bd8);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(41, 98, 255, 0.4);
  border: 1px solid rgba(41, 98, 255, 0.5);
  transform: translateY(-2px);
}

/* Enhance the strike prices container */
.strike-prices-container {
  background: linear-gradient(145deg, #131722, #1a2035);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  margin-top: 30px;
  overflow: hidden;
}

.strike-header {
  background: linear-gradient(to right, #1a2035, #131722);
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.strike-header span {
  color: #94a3b8;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
}

.strike-row {
  background: rgba(19, 23, 34, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: all 0.3s ease;
}

.strike-row:hover {
  background: rgba(41, 98, 255, 0.05);
  transform: translateY(-1px);
}

.strike-row.selected {
  background: rgba(41, 98, 255, 0.1);
  border-left: 3px solid #2962ff;
}

.strike-row input[type="radio"] {
  accent-color: #2962ff;
  width: 20px;
  height: 20px;
}

.strike-range {
  font-weight: 600;
  font-size: 16px;
}

.cost .btc-cost {
  font-weight: 500;
  color: #f8fafc;
}

.cost .usd-cost {
  color: #94a3b8;
  font-size: 13px;
}

.rewards .reward-value {
  color: #10b981;
  font-weight: 600;
}

.rewards .reward-usd {
  color: #94a3b8;
  font-size: 13px;
}

/* Enhance the trade card */
.trade-card {
  background: #0c1122;
  border-radius: 16px;
  padding: 0;
  margin-top: 16px;
  border: 1px solid rgba(32, 41, 58, 0.7);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.trade-card-header h3 {
  font-size: 18px;
  font-weight: 500;
  color: #ffffff;
  margin: 0;
  padding: 20px;
  border-bottom: 1px solid rgba(32, 41, 58, 0.8);
  background: #0d1326;
}

.trade-card-header h3 .option-type {
  font-weight: 600;
  color: #ffffff;
}

.trade-card-header h3 .strike-range {
  color: #46e4bf;
  font-weight: 600;
}

.trade-card-content {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.cost-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(32, 41, 58, 0.8);
}

.cost-label span {
  color: #9ba5b7;
  font-size: 16px;
}

.quantity-controls {
  display: flex;
  align-items: center;
  background: rgba(32, 41, 58, 0.5);
  border-radius: 10px;
  border: 1px solid rgba(70, 228, 191, 0.2);
  overflow: hidden;
}

.quantity-controls button {
  width: 42px;
  height: 42px;
  font-size: 20px;
  border: none;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-controls button:hover {
  background: rgba(70, 228, 191, 0.1);
}

.quantity-value {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  width: 42px;
  text-align: center;
}

.cost-display, .reward-display {
  padding: 20px;
  border-bottom: 1px solid rgba(32, 41, 58, 0.8);
  margin-bottom: 0.3rem;
}

.cost-row, .reward-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem;
}

.cost-row .label, .reward-row .label {
  color: #9ba5b7;
  font-size: 16px;
  padding-top: 5px;
}

.value-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.cost-row .value .btc, .reward-row .value .btc {
  font-weight: 500;
  color: #ffffff;
  font-size: 16px;
  text-align: right;
  display: block;
}

.cost-row .value .usd, .reward-row .value .usd {
  color: #9ba5b7;
  font-size: 14px;
  text-align: right;
  display: block;
}

.place-bet-button {
  padding: 16px;
  margin: 20px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.place-bet-button.up {
  background: #46e4bf;
  color: #0d1326;
  box-shadow: 0 4px 12px rgba(70, 228, 191, 0.2);
}

.place-bet-button.up:hover:not(:disabled) {
  background: #3bc9a7;
}

.place-bet-button.down {
  background: #e44646;
  color: #ffffff;
}

.place-bet-button.down:hover:not(:disabled) {
  background: #c93b3b;
}

.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  background: rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .rise-drop-panel {
    flex-direction: column;
    gap: 8px;
  }
  
  .rise-drop-button {
    width: 100%;
  }
  
  .strike-row {
    padding: 12px;
  }
  
  .trade-card {
    padding: 20px;
  }
}

/* Trading controls layout improvement */
.trading-controls-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 20px;
  margin-top: 0;
}

.trading-controls-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: center;
  padding: 0;
  background: #0d111c;
  border-radius: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 20px;
  min-width: 200px;
  flex: 1;
}

.control-label {
  font-size: 14px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.expiry-dates-container {
  margin-bottom: 0;
  flex: 1;
}

.expiry-dates-container h3 {
  font-size: 14px;
  margin-bottom: 10px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.expiry-dates-scroll {
  background: rgba(19, 23, 34, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: none;
  margin: 0;
}

.rise-drop-panel {
  margin: 0;
  padding: 6px;
  background: rgba(19, 23, 34, 0.6);
  border-radius: 8px;
  display: flex;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  width: fit-content;
  box-shadow: none;
}

/* Trading Controls UI */
.trading-controls-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.trading-controls-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  padding: 16px 20px;
  background: linear-gradient(145deg, #131722, #1a2035);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.control-label {
  font-size: 14px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* Asset Selector Dropdown */
.asset-selector-dropdown select,
.expiry-date-dropdown select {
  background: rgba(30, 38, 53, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  min-width: 160px;
  max-width: 250px;
  position: relative;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 40px;
}

.asset-selector-dropdown select:focus,
.expiry-date-dropdown select:focus {
  outline: none;
  border-color: #2962ff;
  box-shadow: 0 0 0 2px rgba(41, 98, 255, 0.2);
}

.asset-selector-dropdown select option,
.expiry-date-dropdown select option {
  background: #1a2035;
  color: #fff;
  padding: 10px;
}

/* Direction Radio Buttons */
.direction-radio-group {
  display: flex;
  gap: 16px;
  align-items: center;
}

.radio-container {
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  padding-left: 32px;
  user-select: none;
}

.radio-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.radio-container input:checked ~ .radio-label {
  color: #fff;
  font-weight: 600;
}

.radio-container input:checked ~ .radio-label::before {
  border-color: #2962ff;
  background-color: #2962ff;
}

.radio-container .radio-label {
  color: #94a3b8;
  font-size: 14px;
  transition: all 0.2s ease;
}

.radio-container .radio-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background-color: transparent;
  transition: all 0.2s ease;
}

.radio-container .radio-label::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #fff;
  transition: all 0.2s ease;
  opacity: 0;
}

.radio-container input:checked ~ .radio-label::after {
  opacity: 1;
}

.direction-separator {
  color: rgba(255, 255, 255, 0.3);
  font-size: 20px;
  display: flex;
  align-items: center;
  margin: 0 4px;
}

.radio-container input:disabled ~ .radio-label {
  color: rgba(255, 255, 255, 0.3);
  cursor: not-allowed;
}

/* Radio circle style matching the image */
.radio-circle-container {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
}

.radio-circle-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.radio-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: inline-block;
  position: relative;
}

/* Blue filled circle for checked state */
.radio-circle-container input:checked ~ .radio-circle {
  background-color: #2962ff;
  border-color: #2962ff;
}

/* For disabled radio buttons */
.radio-circle-container input:disabled ~ .radio-circle {
  border-color: rgba(255, 255, 255, 0.1);
  background-color: transparent;
}

.radio-circle-container input:disabled ~ .radio-label {
  color: rgba(255, 255, 255, 0.4);
}

.radio-circle-container .radio-label {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

.radio-circle-container input:checked ~ .radio-label {
  color: #fff;
  font-weight: 600;
}

/* Wallet Error Styles */
.wallet-error {
    background: rgba(255, 61, 113, 0.1);
    border: 1px solid rgba(255, 61, 113, 0.3);
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: fadeIn 0.3s ease;
    justify-content: center;
}

.wallet-error-icon {
    color: #ff3d71;
    font-size: 20px;
    flex-shrink: 0;
}

.wallet-error-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.wallet-error-title {
    color: #ff3d71;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.wallet-error-message {
    color: #e1e6ef;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
    white-space: pre-line;
    word-break: break-word;
    text-align: center;
}

.wallet-error-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.wallet-error-button {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.wallet-error-button.retry {
    background: #ff3d71;
    color: #ffffff;
}

.wallet-error-button.retry:hover {
    background: #ff1f5a;
    transform: translateY(-1px);
}

.wallet-error-button.dismiss {
    background: rgba(255, 61, 113, 0.1);
    color: #ff3d71;
    border: 1px solid rgba(255, 61, 113, 0.3);
}

.wallet-error-button.dismiss:hover {
    background: rgba(255, 61, 113, 0.2);
}

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

/* Wallet Connection Error Specific Styles */
.wallet-error.connection-error {
    background: rgba(255, 152, 0, 0.1);
    border-color: rgba(255, 152, 0, 0.3);
}

.wallet-error.connection-error .wallet-error-icon {
    color: #ff9800;
}

.wallet-error.connection-error .wallet-error-title {
    color: #ff9800;
}

.wallet-error.connection-error .wallet-error-button.retry {
    background: #ff9800;
}

.wallet-error.connection-error .wallet-error-button.retry:hover {
    background: #f57c00;
}

.wallet-error.connection-error .wallet-error-button.dismiss {
    background: rgba(255, 152, 0, 0.1);
    color: #ff9800;
    border-color: rgba(255, 152, 0, 0.3);
}

.wallet-error.connection-error .wallet-error-button.dismiss:hover {
    background: rgba(255, 152, 0, 0.2);
}

/* Network Error Specific Styles */
.wallet-error.network-error {
    background: rgba(156, 39, 176, 0.1);
    border-color: rgba(156, 39, 176, 0.3);
}

.wallet-error.network-error .wallet-error-icon {
    color: #9c27b0;
}

.wallet-error.network-error .wallet-error-title {
    color: #9c27b0;
}

.wallet-error.network-error .wallet-error-button.retry {
    background: #9c27b0;
}

.wallet-error.network-error .wallet-error-button.retry:hover {
    background: #7b1fa2;
}

.wallet-error.network-error .wallet-error-button.dismiss {
    background: rgba(156, 39, 176, 0.1);
    color: #9c27b0;
    border-color: rgba(156, 39, 176, 0.3);
}

.wallet-error.network-error .wallet-error-button.dismiss:hover {
    background: rgba(156, 39, 176, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wallet-error {
        padding: 12px;
        flex-direction: column;
        align-items: flex-start;
    }

    .wallet-error-icon {
        margin-bottom: 8px;
    }

    .wallet-error-actions {
        width: 100%;
        justify-content: center;
    }

    .wallet-error-button {
        padding: 6px 12px;
        font-size: 13px;
    }
}

.wallet-error {
    position: fixed;
    top: 32px; /* or whatever distance from the top you want */
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    max-width: 420px;
    width: 90%;
    /* keep your other styles */
}

.stats-table-container {
    background: #1e2635;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    border: 1px solid #2a3547;
}

.table-title {
    color: #e1e6ef;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #2a3547;
}

.table-wrapper {
    max-height: 400px;
    overflow-y: auto;
    border-radius: 8px;
    background: #131722;
}

.table-wrapper::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.table-wrapper::-webkit-scrollbar-track {
    background: #1e2635;
    border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background: #2a3547;
    border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #2962ff;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'JetBrains Mono', monospace;
}

.stats-table th {
    background: #1e2635;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    padding: 16px;
    position: sticky;
    top: 0;
    z-index: 1;
    border-bottom: 2px solid #2a3547;
}

.stats-table td {
    padding: 16px;
    color: #e1e6ef;
    border-bottom: 1px solid #2a3547;
    font-size: 14px;
}

.stats-table tr:last-child td {
    border-bottom: none;
}

.stats-table tr:hover td {
    background: rgba(41, 98, 255, 0.05);
}

.value-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.btc-value {
    color: #e1e6ef;
    font-weight: 500;
}

.usd-value {
    color: #7d8fb3;
    font-size: 12px;
    font-style: italic;
}

.number-value {
    color: #e1e6ef;
    font-weight: 500;
}

.loading-cell {
    text-align: center;
    color: #7d8fb3;
    font-style: italic;
    padding: 32px !important;
}

@media (max-width: 768px) {
    .stats-table-container {
        padding: 16px;
    }

    .table-wrapper {
        max-height: 300px;
    }

    .stats-table th,
    .stats-table td {
        padding: 12px;
        font-size: 13px;
    }

    .value-cell {
        gap: 2px;
    }

    .usd-value {
        font-size: 11px;
    }
}

.profit-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: right;
}

.winner-amount {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin: 15px 0;
}

.winner-amount .btc-value {
    font-size: 24px;
    font-weight: 700;
    color: #f59e0b;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.winner-amount .usd-value {
    font-size: 16px;
    color: #94a3b8;
}

.leaderboard-row .btc-value {
    color: #e1e6ef;
    font-weight: 500;
}

.leaderboard-row .usd-value {
    color: #7d8fb3;
    font-size: 12px;
    font-style: italic;
}

@media (max-width: 768px) {
    .profit-cell {
        gap: 1px;
    }

    .winner-amount {
        gap: 2px;
    }

    .winner-amount .btc-value {
        font-size: 20px;
    }

    .winner-amount .usd-value {
        font-size: 14px;
    }

    .leaderboard-row .usd-value {
        font-size: 11px;
    }
}

/* ----- Degen Tabs override to fit three buttons ----- */
.degen-tabs {
    max-width: none; /* let content decide width */
    width: auto;
    gap: 10px;       /* spacing between buttons */
    flex-wrap: nowrap;
}

/* ----- Volatility Trading inner tabs ----- */
.volatility-tabs {
    display: flex;
    gap: 0;              /* no visual gap between buttons */
    padding: 0 15px;
}

.volatility-tabs .degen-tab {
    min-width: 130px;
    padding: 14px 28px;   /* increase height & width */
    font-size: 15px;
    border-radius: 0;     /* flat edges to join seamlessly */
}

/* add rounded corners only to first and last tab */
.volatility-tabs .degen-tab:first-child { border-top-left-radius: 8px; border-bottom-left-radius: 8px; }
.volatility-tabs .degen-tab:last-child  { border-top-right-radius: 8px; border-bottom-right-radius: 8px; }

/* remove double borders between adjoining tabs */
.volatility-tabs .degen-tab + .degen-tab { border-left: none; }

.insurance-options {
  margin-top: 16px;
}

.insurance-item {
  margin-bottom: 12px;
}

.insurance-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.insurance-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.insurance-description {
  margin-left: 24px;
  font-size: 12px;
  color: #888;
}



