/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #000000;
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
}

.app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== NAVBAR COMPONENT ===== */
.navbar {
    background: #000000;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 2rem;
  }
  
  .logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
  }
  
  .logo-image {
    height: 40px;
    width: auto;
    filter: brightness(1.2) contrast(1.2);
  }
  
  .logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
  }
  
  .nav-tabs {
    display: flex;
    gap: 0.5rem;
    background: rgba(40, 40, 40, 0.6);
    padding: 0.25rem;
    border-radius: 8px;
    backdrop-filter: blur(5px);
  }
  
  .nav-tab {
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: none;
    color: #999999;
    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: #ffffff;
    background: rgba(60, 60, 60, 0.8);
  }
  
  .nav-tab.active {
    background: transparent;
    color: #ffffff;
    border-bottom: 2px solid #ff6b35;
    font-weight: 600;
  }
  
  .wallet-section {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .currency-selector-navbar {
    display: flex;
    align-items: center;
  }

  .currency-selector-navbar select {
    background: rgba(30, 38, 53, 0.8);
    color: #fff;
    border: 1px solid rgba(255, 107, 53, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 40px;
  }

  .currency-selector-navbar select:hover {
    border-color: #ff6b35;
    background: rgba(42, 53, 71, 0.9);
  }

  .currency-selector-navbar select:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
  }

  .currency-selector-navbar option {
    background: #1a1a1a;
    color: #fff;
    padding: 10px;
  }

  .btc-price-navbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(30, 38, 53, 0.8);
    border-radius: 8px;
    border: 1px solid rgba(255, 107, 53, 0.3);
  }

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

  .price-value-navbar {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
  }

  .change-navbar {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
  }

  .change-navbar.positive {
    color: #00c853;
    background: rgba(0, 200, 83, 0.1);
  }

  .change-navbar.negative {
    color: #ff3d71;
    background: rgba(255, 61, 113, 0.1);
  }

  .wallet-button {
    background: transparent;
    color: #ff6b35;
    border: 1px solid #ff6b35;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    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(255, 107, 53, 0.2);
  }
  
  .wallet-button:hover {
    background: #ff5722;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 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 CONTENT ===== */
.main-content {
    margin-top: 64px;
    padding: 2rem;
    flex: 1;
}

/* ===== VOLATILITY TRADING PANEL ===== */
.volatility-tabs-container {
    max-width: 1400px;
    margin: 0 auto;
}

.volatility-tabs {
    display: flex;
    gap: 0;
    padding: 0 15px;
    margin-bottom: 2rem;
}

.volatility-tabs .degen-tab {
    min-width: 130px;
    padding: 14px 28px;
    font-size: 15px;
    border-radius: 0;
    background: #1e2635;
    border: 1px solid #2a3547;
    color: #7d8fb3;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.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;
}

.volatility-tabs .degen-tab + .degen-tab {
    border-left: none;
}

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

.volatility-tabs .degen-tab.active {
    background: #ff6b35;
    color: #ffffff;
    border-color: #ff6b35;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

/* ===== CONTENT GRID ===== */
  .content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
  }
  
/* ===== CHART SECTION ===== */
  .chart-section {
    background: #141414;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid #1e2635;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  }
  
  .chart-container {
    background: #0a0e17;
    border-radius: 12px;
    padding: 1rem;
    min-height: 400px;
    border: 1px solid #1e2635;
  }
  
  .tradingview-widget-container {
    width: 100%;
    height: 100%;
    min-height: 350px;
}





/* ===== DEGEN OPTIONS PANEL ===== */
.degen-options-container {
    background: #141414;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid #1e2635;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-width: 1400px;
    margin: 0 auto;
  }
  
.degen-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 2rem;
    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: #ff6b35;
    color: #ffffff;
    border-color: #ff6b35;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

/* Professional Main Tabs - Clean Style */
.pro-main-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    padding: 0;
}

.pro-tab {
    padding: 8px 18px;
    background: rgba(30, 38, 53, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #94a3b8;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-transform: capitalize;
}
  
.pro-tab:hover {
    color: #e1e6ef;
    background: rgba(42, 53, 71, 0.5);
    border-color: rgba(255, 255, 255, 0.15);
}
  
.pro-tab.active {
    color: #ffffff;
    background: rgba(255, 107, 53, 0.2);
    border-color: rgba(255, 107, 53, 0.5);
}

/* ===== OPTIONS CONTENT ===== */
.options-content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.controls-above-table {
    display: flex;
    gap: 2rem;
    align-items: flex-end;
    margin-bottom: 1.5rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.strike-prices-container-merged {
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-top: 30px;
    overflow: hidden;
    display: flex;
    gap: 0;
}

.strike-table-area {
    flex: 0 0 55%;
    min-width: 0;
}

.trade-card-area {
    flex: 0 0 45%;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
}

.trade-card-area .trade-card {
    border: none;
    border-radius: 0;
    margin: 0;
    height: 100%;
}

.trade-card-area .trade-card-placeholder {
    border: none;
    border-radius: 0;
    min-height: 500px;
}

.btc-price-inline {
    margin-left: auto;
}

.btc-price-inline .market-info {
    margin-bottom: 0;
}

.market-info {
    background: linear-gradient(145deg, #141414, #1a1a1a);
    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, #ff6b35, #ff8c5a);
    border-radius: 3px;
}

.header-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    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-asset-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-asset-selector .control-label {
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.header-asset-selector .asset-selector-dropdown select {
    background: rgba(30, 38, 53, 0.8);
    color: #fff;
    border: 1px solid rgba(255, 107, 53, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 40px;
}

.header-asset-selector .asset-selector-dropdown select:hover {
    border-color: #ff6b35;
    background: rgba(42, 53, 71, 0.9);
}

.header-asset-selector .asset-selector-dropdown select:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.header-asset-selector .asset-selector-dropdown option {
    background: #1a1a1a;
    color: #fff;
    padding: 10px;
}

.header-date-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-date-selector .control-label {
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.header-date-selector .expiry-date-dropdown select {
    background: rgba(30, 38, 53, 0.8);
    color: #fff;
    border: 1px solid rgba(255, 107, 53, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 40px;
}

.header-date-selector .expiry-date-dropdown select:hover {
    border-color: #ff6b35;
    background: rgba(42, 53, 71, 0.9);
}

.header-date-selector .expiry-date-dropdown select:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.header-date-selector .expiry-date-dropdown option {
    background: #0a0a0a;
    color: #e1e6ef;
    padding: 10px;
}

.prize-pool-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255, 107, 53, 0.08);
    border: 1px solid rgba(255, 107, 53, 0.25);
    border-radius: 8px;
    white-space: nowrap;
}

.prize-pool-label {
    color: #94a3b8;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.prize-pool-value {
    color: #ff6b35;
    font-size: 14px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

/* Professional Options Header */
.pro-options-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(10, 15, 25, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.asset-and-dates {
    display: flex;
    align-items: center;
    gap: 24px;
}

.asset-selector-compact select {
    background: rgba(20, 28, 43, 0.8);
    color: #e1e6ef;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 7px 28px 7px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    min-width: 80px;
}

.date-tabs {
    display: flex;
    gap: 6px;
    align-items: center;
}

.date-tab {
    padding: 7px 14px;
    background: rgba(20, 28, 43, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 5px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.date-tab:hover {
    background: rgba(30, 38, 53, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
    color: #e1e6ef;
}

.date-tab.active {
    background: rgba(255, 107, 53, 0.2);
    border-color: rgba(255, 107, 53, 0.5);
    color: #ff6b35;
}

.prize-pool-compact {
    color: #ff6b35;
    font-size: 13px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    padding: 8px 14px;
    background: rgba(255, 107, 53, 0.08);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 6px;
}

/* Table info bar - Calls/Puts labels with center info */
.table-info-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    padding: 12px 20px;
    background: rgba(15, 21, 32, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    align-items: center;
}

.table-label-calls {
    color: #6ee7b7;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.table-label-puts {
    color: #fb7185;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: right;
}

.center-info {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: center;
}

.btc-price-label {
    color: #10b981;
    font-size: 14px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.time-to-expiry {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 500;
}

.trade-card-placeholder {
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    color: #94a3b8;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.trade-card-placeholder h3 {
    color: #ffffff;
    font-size: 1.25rem;
    margin: 0;
}

.trade-card-placeholder p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* ===== PROFESSIONAL STRIKE TABLE ===== */
.strike-table-header {
    display: grid;
    /* 7 columns: RISE | CALL-BTC | CALL-USD | STRIKE-PRICE | PUT-USD | PUT-BTC | DROP */
    grid-template-columns: auto 1fr 1fr 2fr 1fr 1fr auto;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(15, 21, 32, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    align-items: center;
}

.call-section-header,
.put-section-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.call-section-header {
    text-align: right;
}

.put-section-header {
    text-align: left;
}

.col-header {
    color: #64748b;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-align: center;
}

.col-strike {
    font-size: 10px;
    padding: 0 16px;
}

.strike-row-pro {
    display: grid;
    grid-template-columns: 2fr auto 2fr;
    gap: 8px;
    padding: 6px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.15s ease;
}

.strike-row-pro:hover {
    background: rgba(255, 255, 255, 0.02);
}

.call-section,
.put-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

/* CALL section styling */
.call-btc-price,
.call-usd-price {
    padding: 8px 10px;
    border-radius: 4px;
    text-align: right;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 12px;
    transition: all 0.2s ease;
}

.call-btc-price {
    color: #34d399;
    background: rgba(52, 211, 153, 0.08);
}

.call-usd-price {
    color: #6ee7b7;
    background: rgba(110, 231, 183, 0.06);
}

.call-btc-price.selected,
.call-usd-price.selected {
    background: rgba(52, 211, 153, 0.18);
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.call-btc-price:hover,
.call-usd-price:hover {
    background: rgba(52, 211, 153, 0.12);
    cursor: pointer;
}

/* PUT section styling */
.put-usd-price,
.put-btc-price {
    padding: 8px 10px;
    border-radius: 4px;
    text-align: left;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 12px;
    transition: all 0.2s ease;
}

.put-usd-price {
    color: #fb7185;
    background: rgba(251, 113, 133, 0.06);
}

.put-btc-price {
    color: #f87171;
    background: rgba(248, 113, 113, 0.08);
}

.put-usd-price.selected,
.put-btc-price.selected {
    background: rgba(248, 113, 113, 0.18);
    border: 1px solid rgba(248, 113, 113, 0.3);
}

.put-usd-price:hover,
.put-btc-price:hover {
    background: rgba(248, 113, 113, 0.12);
    cursor: pointer;
}

/* Strike price center */
.strike-price-center {
    padding: 8px 16px;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    color: #e1e6ef;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.strike-price-center:hover {
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
}

/* Number formatting */
.price-value,
.usd-value,
.strike-value {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.2px;
}

.price-value {
    font-size: 12px;
    font-weight: 500;
}

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

.strike-value {
    font-size: 13px;
    font-weight: 700;
}

.strike-row-merged .cost-call {
    text-align: left;
    color: #46e4bf;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.strike-row-merged .cost-call.clickable {
    cursor: pointer;
}

.strike-row-merged .cost-call.clickable:hover {
    background: rgba(0, 200, 83, 0.1);
}

.strike-row-merged .cost-call.clickable.selected {
    background: rgba(0, 200, 83, 0.2);
    border: 2px solid #00c853;
}

.strike-row-merged .strike-range-center {
    text-align: center;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.strike-row-merged .strike-range-center:hover {
    background: rgba(255, 255, 255, 0.05);
}

.strike-row-merged .cost-put {
    text-align: right;
    color: #ff6b35;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.strike-row-merged .cost-put.clickable {
    cursor: pointer;
}

.strike-row-merged .cost-put.clickable:hover {
    background: rgba(255, 107, 53, 0.1);
}

.strike-row-merged .cost-put.clickable.selected {
    background: rgba(255, 107, 53, 0.2);
    border: 2px solid #ff6b35;
}

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





/* ===== STRIKE PRICES ===== */
.strike-prices-container {
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: none;
    margin-top: 30px;
    overflow: hidden;
  }
  
.strike-header {
    background: linear-gradient(to right, #1a1a1a, #141414);
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    align-items: center;
}

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

.strike-header span.cost-header-split {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.strike-header span.cost-header-split .cost-label {
    text-align: left;
}

.strike-header span.cost-header-split .direction-label {
    text-align: right;
}

.strike-row {
    background: rgba(19, 23, 34, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 16px 24px;
    gap: 8px;
    align-items: center;
    cursor: pointer;
    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 {
    background: rgba(255, 107, 53, 0.05);
    transform: translateY(-1px);
}

.strike-row.selected {
    background: rgba(255, 107, 53, 0.1);
    border-left: 3px solid #ff6b35;
}

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

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

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

.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;
}



/* ===== PROFESSIONAL TRADE CARD ===== */
.trade-card {
    background: rgba(15, 21, 32, 0.6);
    border-radius: 0;
    padding: 16px 20px;
    margin-top: 0;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
    overflow: hidden;
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    display: flex;
    flex-direction: column;
}

.trade-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.trade-card-header-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.market-close-compact {
    font-size: 10px;
    color: #64748b;
    font-weight: 500;
    margin-top: 3px;
    font-family: 'JetBrains Mono', monospace;
}

.trade-card-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: #e1e6ef;
    margin: 0;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 12px;
}

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

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

/* Trade card Bitcoin price display */
.trade-card-btc-price {
    text-align: left;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.trade-card-btc-price .btc-price-label {
    color: #9ba5b7;
    font-size: 12px;
    text-transform: none;
    letter-spacing: 0.5px;
    margin: 0;
}

.trade-card-btc-price .btc-price-value {
    color: #46e4bf;
    font-size: 16px;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    margin: 0;
}

/* Market Close Notice */
.market-close-notice {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.market-status {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 16px;
    background: rgba(70, 228, 191, 0.1);
    border: 1px solid rgba(70, 228, 191, 0.3);
    border-radius: 8px;
}

.market-status.soon {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.4);
}

.market-status.urgent {
    background: rgba(255, 107, 53, 0.15);
    border-color: rgba(255, 107, 53, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

.market-status.closed {
    background: rgba(255, 61, 113, 0.15);
    border-color: rgba(255, 61, 113, 0.5);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.market-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
}

.market-time {
    font-size: 13px;
    font-weight: 600;
    color: #e1e6ef;
}

.market-countdown {
    font-size: 14px;
    font-weight: 700;
    color: #46e4bf;
}

.market-status.soon .market-countdown {
    color: #ffc107;
}

.market-status.urgent .market-countdown {
    color: #ff6b35;
}

.market-message {
    font-size: 13px;
    color: #ff6b35;
    font-weight: 600;
}

.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;
    gap: 12px;
    padding: 0;
    align-items: stretch;
    margin-bottom: 12px;
    width: 100%;
}

.trade-card-content-row {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: stretch;
    width: 100%;
}



.quantity-controls {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 6px;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    justify-content: center;
    position: relative;
}

.quantity-controls::before {
    content: "CONTRACTS";
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff6b35;
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Remove CONTRACTS label for pricing breakdown */
.pricing-breakdown .quantity-controls::before {
    content: none;
}

/* Quantity controls inside pricing breakdown */
.pricing-breakdown .quantity-controls {
    width: 80px;
    height: 40px;
    margin: 0;
    justify-content: center;
    background: rgba(70, 228, 191, 0.1);
    border: 1px solid rgba(70, 228, 191, 0.2);
    flex-shrink: 0;
}

.pricing-breakdown .quantity-controls::before {
    background: #46e4bf;
    color: #141414;
    font-weight: 700;
}

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

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

/* Smaller buttons for pricing breakdown header */
.pricing-breakdown .quantity-controls button {
    width: 20px;
    height: 20px;
    font-size: 14px;
    border-radius: 4px;
}

.quantity-value {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    width: 80px;
    text-align: center;
    background: transparent;
    border: none;
    outline: none;
    font-family: 'JetBrains Mono', monospace;
}

/* Smaller value for pricing breakdown header */
.pricing-breakdown .quantity-value {
    width: 40px;
    font-size: 14px;
}



.place-bet-button {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 42px;
    background: #10b981;
    color: #ffffff;
    box-shadow: none;
    flex-shrink: 0;
}

.place-bet-button:hover:not(:disabled) {
    background: #059669;
    border-color: rgba(16, 185, 129, 0.3);
}

.place-bet-button.up {
    background: #10b981;
    color: #ffffff;
}

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

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

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

.place-bet-button:disabled {
    background: rgba(71, 85, 105, 0.3);
    color: #64748b;
    cursor: not-allowed;
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.05);
}

.place-bet-button:disabled .check-icon {
    color: #64748b;
}

.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);
    color: #141414;
    font-weight: bold;
}

/* ===== FEATURE TOOLTIPS ===== */
.feature-tooltips {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 25%;
    height: fit-content;
    align-self: stretch;
}

.tooltip-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
    width: 100%;
}

.tooltip-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(70, 228, 191, 0.2);
    transform: translateY(-1px);
}

.tooltip-icon {
    font-size: 16px;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(70, 228, 191, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(70, 228, 191, 0.2);
}

.tooltip-content {
    flex: 1;
}

.tooltip-content h5 {
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    margin: 0 0 4px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tooltip-content p {
    color: #9ba5b7;
    font-size: 11px;
    line-height: 1.3;
    margin: 0;
    font-weight: 400;
}

/* ===== TRADE CARD WRAPPER ===== */
.trade-card-wrapper {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}



/* ===== BITCOIN PRICE DISPLAY ===== */
.btc-price-display {
    padding: 16px 20px;
    background: rgba(32, 41, 58, 0.3);
    border-bottom: 1px solid rgba(32, 41, 58, 0.8);
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
}

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

/* ===== MARKET CONTROLS LAYOUT ===== */
.market-controls-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    margin-top: 20px;
}

.trading-controls-inline {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    flex: 1;
}

.trading-controls-inline .control-group {
    min-width: 180px;
    flex: 1;
}

.btc-price-label {
    color: #9ba5b7;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

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

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

/* ===== SPARKLINE STYLES ===== */
.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);
}

.sparkline.positive {
    border-color: rgba(45, 212, 191, 0.3);
    background: rgba(45, 212, 191, 0.05);
}



/* ===== PRICING BREAKDOWN ===== */
.pricing-breakdown {
    width: 400px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 80px;
}

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

.contracts-label {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-breakdown h4 {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.pricing-features {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pricing-right {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

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

.pricing-label {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: #e1e6ef;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.pricing-value.reward {
    color: #10b981;
    font-weight: 700;
}

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

.pricing-row-with-checkbox .pricing-left-section {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.pricing-row-with-checkbox .checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.pricing-row-with-checkbox input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: #46e4bf;
    margin: 0;
    flex-shrink: 0;
}

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

.pricing-row.total-row {
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    padding-top: 12px;
    margin-top: 8px;
    font-weight: 600;
}

.pricing-row.reward-row {
    border-top: 2px solid rgba(70, 228, 191, 0.2);
    padding-top: 12px;
    margin-top: 8px;
    font-weight: 600;
}

.pricing-row.bet-button-row {
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    padding-top: 16px;
    margin-top: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pricing-row.bet-button-row .place-bet-button {
    width: 100%;
    height: 44px;
    font-size: 13px;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 0;
}

.pricing-label {
    color: #9ba5b7;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.pricing-value {
    color: #ffffff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 500;
}

.pricing-value.reward {
    color: #46e4bf;
    font-weight: 600;
}

.reward-section {
    text-align: right;
    padding: 12px 0;
    border-top: 2px solid rgba(70, 228, 191, 0.2);
    margin-top: 8px;
}

.reward-label {
    color: #9ba5b7;
    font-size: 14px;
    margin-bottom: 6px;
    font-weight: 500;
}

.reward-value {
    color: #46e4bf;
    font-weight: 600;
    font-size: 18px;
    font-family: 'JetBrains Mono', monospace;
}



/* ===== TRANSACTION STATUS ===== */
/* Removed duplicate - see line 3053 for the main .transaction-status style */

/* ===== WALLET ERROR ===== */
.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;
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 107, 53, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0); }
}

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



.control-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 200px;
    flex: 1;
    align-items: flex-start;
    justify-content: flex-start;
}

.control-label {
    font-size: 14px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    margin: 0;
    padding: 0;
    line-height: 1;
    height: 20px;
    display: flex;
    align-items: center;
}

/* 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;
    box-sizing: border-box;
    margin: 0;
}

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

.asset-selector-dropdown select option,
.expiry-date-dropdown select option {
    background: #0a0a0a;
    color: #e1e6ef;
    padding: 10px;
}

.asset-selector-dropdown select option:hover,
.expiry-date-dropdown select option:hover {
    background: #1e2638;
}

.asset-selector-dropdown select option:checked,
.expiry-date-dropdown select option:checked {
    background: #ff6b35;
    color: #ffffff;
}

/* Direction Radio Buttons */
.direction-radio-group {
    display: flex;
    gap: 16px;
    align-items: center;
    height: 40px;
    margin-top: 0;
    padding-top: 0;
}

.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: #ff6b35;
    background-color: #ff6b35;
}

.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: #ff6b35;
    border-color: #ff6b35;
}

/* 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;
}





.transaction-details {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.transaction-details h4 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px 0;
    text-align: center;
    letter-spacing: 0.5px;
}

.transactions-content {
    background: rgba(19, 23, 34, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

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

.last-transaction {
    background: rgba(30, 38, 53, 0.8);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.last-transaction p {
    margin: 0 0 8px 0;
    color: #e1e6ef;
    font-size: 14px;
}

.last-transaction p:last-child {
    margin-bottom: 0;
}

.last-transaction .quantity {
    color: #00c853;
    font-weight: 600;
}

.last-transaction .price {
    color: #ff6b35;
    font-weight: 600;
}

.last-transaction .timestamp {
    color: #7d8fb3;
    font-size: 12px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .strike-header,
    .strike-row {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 1rem;
    }
    
    .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;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .volatility-tabs .degen-tab {
        padding: 10px 16px;
        font-size: 13px;
        min-width: 80px;
    }
    

    
    .strike-row {
        padding: 12px;
    }
    
    .trade-card {
        padding: 20px;
    }
    

    

}

@media (max-width: 640px) {
    .strike-header,
    .strike-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .strike-header span:nth-child(2),
    .strike-header span:nth-child(3),
    .strike-row > div:nth-child(2),
    .strike-row > div:nth-child(3) {
        display: none;
    }
}

/* ===== DASHBOARD STYLES ===== */
.dashboard-content {
    padding: 0;
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.dashboard-points {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 16px;
    margin: -16px 0 20px 0;
    width: 25%;
}

.dashboard-points .xp-line { display: flex; gap: 8px; align-items: baseline; }
.dashboard-points .xp-label-inline { color: #9aa6b2; font-weight: 600; letter-spacing: 0.4px; }
.dashboard-points .xp-title-inline { color: #e5e7eb; font-weight: 700; }
.dashboard-points .xp-points-inline { color: #e5e7eb; font-weight: 700; }

/* legacy class cleanup not used now: xp-title, xp-points */

.dashboard-emoji {
    font-size: 24px;
    animation: pulse 2s infinite;
}

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

.stat-card {
    background: linear-gradient(145deg, #141414, #1a1a1a);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b35, #ff8c5a);
    border-radius: 3px;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 107, 53, 0.2);
}

.stat-card.pulse-animation {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2); }
    50% { box-shadow: 0 8px 32px rgba(255, 107, 53, 0.1); }
    100% { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2); }
}

.stat-icon {
    font-size: 32px;
    margin-bottom: 16px;
    display: block;
}

.stat-icon.prize-icon {
    color: #ffd700;
}

.stat-icon.players-icon {
    color: #7d8fb3;
}

.stat-icon.volume-icon {
    color: #ff3d71;
}

.stat-icon.trades-icon {
    color: #00c853;
}

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

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    font-family: 'JetBrains Mono', monospace;
}

.stat-value.highlighted {
    color: #ffd700;
}

.stat-subtext {
    color: #7d8fb3;
    font-size: 14px;
    font-weight: 500;
}

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
}

/* Transactions and Leaderboard Section */
.transactions-leaderboard-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.transactions-section {
    background: linear-gradient(145deg, #141414, #1a1a1a);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

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

.transactions-header h3 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.publish-orders-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.publish-orders-btn {
    background: linear-gradient(135deg, #ff6b35 0%, #ff5722 100%);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.publish-orders-btn:hover {
    background: linear-gradient(135deg, #ff5722 0%, #ff5722 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.publish-orders-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(255, 107, 53, 0.2);
}

.transaction-tabs {
    display: flex;
    gap: 8px;
    background: rgba(30, 38, 53, 0.8);
    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;
    font-weight: 500;
    min-width: 80px;
    text-align: center;
}

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

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

.transactions-table-container {
    background: rgba(19, 23, 34, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    margin-top: 1rem;
}

.transactions-table {
    background: rgba(19, 23, 34, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.transactions-table-header {
    display: grid;
    grid-template-columns: 50px 70px 70px 80px 110px 110px 90px 60px 75px 75px; /* Type, Strike, Settlement, Expiry, Entry, Payout, Profit, Status, Deposit, Settlement */
    padding: 12px 12px;
    background: rgba(30, 38, 53, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    gap: 8px;
}

.transaction-header-cell {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.transactions-table-header span {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.transactions-table-body {
    max-height: 400px;
    overflow-y: auto;
}

.transaction-row {
    display: grid;
    grid-template-columns: 50px 70px 70px 80px 110px 110px 90px 60px 75px 75px; /* Type, Strike, Settlement, Expiry, Entry, Payout, Profit, Status, Deposit, Settlement */
    padding: 12px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
    font-size: 12px;
}

/* TX Links styling */
.tx-link {
    color: #ff6b35 !important;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(255, 107, 53, 0.15);
    border: 1px solid rgba(255, 107, 53, 0.3);
    display: inline-block;
    transition: all 0.2s;
}

.tx-link:hover {
    background: rgba(255, 107, 53, 0.3);
    border-color: rgba(255, 107, 53, 0.5);
    transform: translateY(-1px);
}

.no-tx {
    color: #555;
    font-size: 11px;
}

.transaction-row:hover {
    background-color: rgba(255, 107, 53, 0.05);
}

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

.transaction-type {
    color: #e1e6ef;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    border-radius: 4px;
    text-align: center;
    min-width: 60px;
}

.transaction-type.buy-type {
    background: rgba(0, 200, 83, 0.2);
    color: #00c853;
    border: 1px solid rgba(0, 200, 83, 0.3);
}

.transaction-type.sell-type {
    background: rgba(255, 61, 113, 0.2);
    color: #ff3d71;
    border: 1px solid rgba(255, 61, 113, 0.3);
}

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

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

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

.transaction-expiry {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
}

.pnl {
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.pnl.profit {
    background: rgba(0, 200, 83, 0.2);
    color: #00c853;
    border: 1px solid rgba(0, 200, 83, 0.3);
}

.pnl.loss {
    background: rgba(255, 61, 113, 0.2);
    color: #ff3d71;
    border: 1px solid rgba(255, 61, 113, 0.3);
}

.pnl.sold {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pnl.calculating {
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.3);
    font-style: italic;
    font-size: 0.9em;
}

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

.contracts-amount {
    color: #e1e6ef;
    font-weight: 600;
    font-size: 14px;
}

.sats-amount {
    color: #7d8fb3;
    font-size: 12px;
}

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

.transaction-status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    min-width: 100px;
  text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

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

.transaction-expiry-date {
    color: #7d8fb3;
  font-size: 14px;
  font-weight: 500;
}

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

/* Stats Tables */
.stats-table-container {
  background: linear-gradient(145deg, #141414, #1a1a1a);
    border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.table-title {
    color: #ffffff;
    font-size: 20px;
  font-weight: 600;
    margin: 0 0 24px 0;
}

.table-wrapper {
    background: rgba(19, 23, 34, 0.4);
    border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
}

.stats-table th {
    background: rgba(30, 38, 53, 0.8);
  color: #94a3b8;
    font-size: 12px;
  font-weight: 600;
    text-transform: uppercase;
  letter-spacing: 1px;
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-table td {
    color: #e1e6ef;
    font-size: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-family: 'JetBrains Mono', monospace;
}

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

.stats-table tr:hover {
    background-color: rgba(255, 107, 53, 0.05);
}

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

.value-cell .btc-value {
    color: #00c853;
  font-weight: 600;
}

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

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

.loading-cell {
    text-align: center;
    color: #7d8fb3;
    font-style: italic;
}

/* Tutorial Content */
.tutorial-content {
  background: linear-gradient(145deg, #141414, #1a1a1a);
  border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.tutorial-title {
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 24px 0;
}

.tutorial-content iframe {
    border-radius: 12px;
    width: 100%;
    max-width: 100%;
}

/* Responsive Design for Dashboard */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .stats-overview {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .dashboard-title {
        font-size: 24px;
        margin-bottom: 24px;
    }
    
    .stats-overview {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .stat-card {
        padding: 20px;
    }
    

    
    .leaderboard-header,
    .leaderboard-row {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .leaderboard-header span:nth-child(1),
    .leaderboard-row > div:nth-child(1) {
        display: none;
    }
}

@media (max-width: 480px) {
    .dashboard-content {
        padding: 16px;
    }
    
    .transactions-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .transaction-tabs {
        width: 100%;
        justify-content: center;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-value {
        font-size: 20px;
    }
}

/* === Dashboard Layout === */
.dashboard-layout {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.dashboard-main {
    flex: 1;
    padding: 0;
}

/* Left Navigation for Dashboard */
.left-nav {
    width: 200px;
    background: #0d1117;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 0;
    gap: 8px;
    border-right: 1px solid #1e2635;
    border-radius: 12px;
    flex-shrink: 0;
}

.nav-logo {
    font-size: 24px;
    color: #e1e6ef;
    margin-bottom: 12px;
    padding: 0 16px;
    align-self: center;
}

.nav-icon {
    width: 100%;
    height: 48px;
    border: none;
    background: transparent;
    color: #7d8fb3;
    display: flex;
    align-items: center;
    padding: 0 16px;
    font-size: 16px;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.nav-icon:hover {
    background: #141414;
    color: #ffffff;
}

.nav-icon.active {
    background: linear-gradient(145deg, #ff6b35, #ff8c5a);
    color: #ffffff;
    border-radius: 0 12px 12px 0;
}

/* Remove the old page-level left nav styles since it's now inside dashboard */
.page.no-left .content,
.page.no-left {
    padding-left: 0;
}

/* === Leaderboard Panel === */
.leaderboard-panel {
    background: #0d1117;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #1e2635;
}

.leaderboard-panel h2 {
    color: #ffffff;
    font-size: 24px;
  font-weight: 600;
    margin-bottom: 24px;
    margin-top: 0;
}

.leaderboard-table {
    width: 100%;
}

.leaderboard-table-header {
    display: grid;
    grid-template-columns: 80px 280px 120px 120px 120px 200px 200px;
    gap: 8px;
    padding: 12px 16px;
    background: #141414;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid #1e2635;
}

.leaderboard-table-header span {
    color: #7d8fb3;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.leaderboard-table-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.leaderboard-row {
    display: grid;
    grid-template-columns: 80px 280px 120px 120px 120px 200px 200px;
    gap: 8px;
    padding: 12px 16px;
    background: #141414;
    border-radius: 8px;
    border: 1px solid #1e2635;
    transition: all 0.2s ease;
}

.leaderboard-row:hover {
    background: #1a1f2e;
    border-color: #ff6b35;
}

.leaderboard-row span {
    color: #e1e6ef;
    font-size: 14px;
    font-weight: 400;
    display: flex;
    align-items: center;
}

.leaderboard-row .sno {
    color: #7d8fb3;
    font-weight: 500;
}

.leaderboard-row .address {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leaderboard-row .trades {
    color: #ff8c5a;
    font-weight: 500;
}

.leaderboard-row .amount {
    color: #00d4aa;
    font-weight: 500;
}

@media (max-width: 768px) {
    .leaderboard-table-header,
    .leaderboard-row {
        grid-template-columns: 60px 1fr 100px 100px;
        gap: 12px;
        padding: 10px 12px;
    }
    
    .leaderboard-row .address {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .leaderboard-table-header,
    .leaderboard-row {
        grid-template-columns: 50px 1fr 80px;
        gap: 8px;
        padding: 8px 10px;
    }
    
    .leaderboard-table-header span:nth-child(4),
    .leaderboard-row span:nth-child(4) {
        display: none;
    }
    
    .leaderboard-row .address {
        font-size: 10px;
    }
}

/* === Weekly Stats Panel === */
.weekly-stats-panel {
    background: #0d1117;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #1e2635;
}

.weekly-stats-panel h2 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    margin-top: 0;
}

.stats-table-container {
    width: 100%;
    overflow-x: auto;
}

.stats-table {
    width: 100%;
    min-width: 600px;
}

.stats-table-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    gap: 16px;
    padding: 12px 16px;
    background: #141414;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid #1e2635;
}

.stats-table-header span {
    color: #7d8fb3;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stats-table-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    gap: 16px;
    padding: 12px 16px;
    background: #141414;
    border-radius: 8px;
    border: 1px solid #1e2635;
    transition: all 0.2s ease;
}

.stats-row:hover {
    background: #1a1f2e;
    border-color: #ff6b35;
}

.stats-row.total-row {
    background: #1a1f2e;
    border-color: #ff8c5a;
}

.stats-row span {
    color: #e1e6ef;
    font-size: 14px;
    font-weight: 400;
    display: flex;
    align-items: center;
}

.stats-row .week-label {
    color: #7d8fb3;
    font-weight: 500;
}

.stats-row .stat-value {
    color: #00d4aa;
    font-weight: 500;
}

.stats-row .stat-value.total {
    color: #ff8c5a;
    font-weight: 600;
}

@media (max-width: 768px) {
    .stats-table-header,
    .stats-row {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 12px;
        padding: 10px 12px;
    }
    
    .stats-table-header span:nth-child(4),
    .stats-table-header span:nth-child(5),
    .stats-table-header span:nth-child(6),
    .stats-row span:nth-child(4),
    .stats-row span:nth-child(5),
    .stats-row span:nth-child(6) {
        display: none;
    }
}



/* === Form Input Styling === */
.form-group {
    margin-bottom: 20px;
}

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

.form-group input[type="number"] {
    width: 100%;
    padding: 12px 16px;
    background: #1a1f2e;
    border: 1px solid #2a2f3e;
    border-radius: 8px;
    color: #e1e6ef;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-group input[type="number"]:hover {
    border-color: #3a3f4e;
    background: #1f2433;
}

.form-group input[type="number"]:focus {
    outline: none;
    border-color: #00d4aa;
    background: #1f2433;
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}

.form-group input[type="number"]::placeholder {
    color: #7d8fb3;
    opacity: 0.7;
}

/* Old trade-form specific input styles removed */

.price-conversion {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 6px;
    text-align: center;
}

.btc-equivalent {
    font-size: 0.875rem;
    color: #7d8fb3;
    font-weight: 500;
}

.market-price-info {
    background: #1a1f2e;
    border: 1px solid #2a2f3e;
    border-radius: 8px;
    padding: 12px 16px;
    color: #7d8fb3;
    font-size: 14px;
    text-align: center;
    margin-bottom: 20px;
}

/* ===== TWAP TRADING PANEL STYLES ===== */
.twap-trading-panel {
    background: linear-gradient(145deg, #1a1a1a, #141414);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.twap-price-display {
    background: linear-gradient(135deg, #ff5722, #ff6b35);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.twap-price-display .current-price {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
}

.twap-price-display .update-timer {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 4px;
}

.twap-price-display .price-note {
    font-size: 12px;
    opacity: 0.7;
}

.twap-trading-form {
    display: flex;
    flex-direction: column;
        gap: 20px;
    }

.action-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.action-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.05);
    color: #7d8fb3;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e1e6ef;
    transform: translateY(-1px);
}

.action-btn.active.buy {
    background: linear-gradient(135deg, #00c853, #00a844);
    color: white;
    border-color: #00c853;
    box-shadow: 0 4px 16px rgba(0, 200, 83, 0.4);
}

.action-btn.active.sell {
    background: linear-gradient(135deg, #ff3d71, #e63567);
    color: white;
    border-color: #ff3d71;
    box-shadow: 0 4px 16px rgba(255, 61, 113, 0.4);
}

.amount-input {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.amount-input label {
    color: #7d8fb3;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.amount-input input {
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #e1e6ef;
    font-size: 16px;
    transition: all 0.3s ease;
}

.amount-input input:focus {
    outline: none;
    border-color: #ff6b35;
    background: rgba(255, 107, 53, 0.1);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.amount-input input::placeholder {
    color: rgba(125, 143, 179, 0.5);
}

.cost-display {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
        padding: 16px;
    text-align: center;
}

.cost-display .cost-info {
    font-size: 16px;
    font-weight: 600;
    color: #e1e6ef;
    margin-bottom: 4px;
}

.cost-display .usd-equivalent {
    font-size: 14px;
    color: #7d8fb3;
}

.submit-btn {
    padding: 16px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #ff6b35, #ff5722);
    color: white;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.4);
    letter-spacing: 0.5px;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}

.submit-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#transaction-status,
.transaction-status {
    background: linear-gradient(135deg, rgba(70, 228, 191, 0.15) 0%, rgba(255, 107, 53, 0.15) 100%);
    border: 2px solid #ff6b35;
    border-radius: 12px;
    padding: 16px 20px;
    margin: 20px auto;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    min-height: 50px;
    max-width: 1200px;
    width: 95%;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    animation: slideDown 0.3s ease-out;
    position: relative;
    z-index: 100;
    display: block;
}

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

#transaction-status:empty,
.transaction-status:empty {
    display: none !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

.transaction-status.success {
    border-color: #46e4bf;
    background: linear-gradient(135deg, rgba(70, 228, 191, 0.2) 0%, rgba(70, 228, 191, 0.1) 100%);
    box-shadow: 0 4px 12px rgba(70, 228, 191, 0.4);
}

.transaction-status.error {
    border-color: #ff3d71;
    background: linear-gradient(135deg, rgba(255, 61, 113, 0.2) 0%, rgba(255, 61, 113, 0.1) 100%);
    box-shadow: 0 4px 12px rgba(255, 61, 113, 0.4);
}

/* ===== TRANSACTION STATUS OVERLAY ===== */
.transaction-status-overlay {
    position: fixed !important;
    top: 160px !important;  /* Below header and date selector */
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 9999 !important;
    background: linear-gradient(135deg, rgba(70, 228, 191, 0.95) 0%, rgba(255, 107, 53, 0.95) 100%);
    border: 2px solid #ff6b35;
    border-radius: 12px;
    padding: 16px 32px;
    margin: 0 !important;  /* No margin to prevent layout shift */
    height: auto !important;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.5);
    animation: slideInFromTop 0.4s ease-out;
    max-width: 600px;
    width: auto;
    pointer-events: none;  /* Allows clicking through when visible */
}

.transaction-status-overlay:empty {
    display: none !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ===== NEW TWAP UI ENHANCEMENTS ===== */

/* Large, prominent TWAP price display */
.twap-price-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #ff5722 50%, #ff6b35 100%);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    margin-bottom: 32px;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.2);
    position: relative;
    overflow: hidden;
}

.twap-price-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b35, #ff8c5a, #ffa07a);
    border-radius: 4px;
}

.twap-price-large {
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(59, 130, 246, 0.5);
    letter-spacing: -1px;
}

.twap-label {
    font-size: 16px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.twap-countdown {
    font-size: 14px;
    font-weight: 500;
    color: #ff8c5a;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 20px;
    padding: 6px 16px;
    display: inline-block;
    margin-bottom: 8px;
    animation: countdown-pulse 1s ease-in-out infinite;
}

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

.twap-description {
    font-size: 12px;
    color: rgba(148, 163, 184, 0.8);
    font-style: italic;
}

/* Clean action selector - no more tabs */
.action-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: rgba(30, 38, 53, 0.6);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.action-selector .action-btn {
    flex: 1;
    padding: 16px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    color: #7d8fb3;
    position: relative;
}

.action-selector .action-btn:hover {
    color: #e1e6ef;
    transform: translateY(-1px);
}

.action-selector .action-btn.buy-active {
    background: linear-gradient(135deg, #00c853 0%, #00a844 100%);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 200, 83, 0.4);
    transform: translateY(-2px);
}

.action-selector .action-btn.sell-active {
    background: linear-gradient(135deg, #ff3d71 0%, #e63567 100%);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(255, 61, 113, 0.4);
    transform: translateY(-2px);
}

.action-selector .action-btn.buy-inactive {
    background: rgba(0, 200, 83, 0.1);
    color: rgba(0, 200, 83, 0.6);
}

.action-selector .action-btn.sell-inactive {
    background: rgba(255, 61, 113, 0.1);
    color: rgba(255, 61, 113, 0.6);
}

/* Enhanced amount input section */
.amount-input-section {
    margin-bottom: 24px;
}

.amount-input-section label {
    display: block;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.amount-input {
    width: 100%;
    padding: 20px 24px;
    background: rgba(30, 38, 53, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.amount-input:focus {
    outline: none;
    border-color: #ff6b35;
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.amount-input::placeholder {
    color: rgba(125, 143, 179, 0.5);
    font-weight: 400;
}

/* Real-time cost calculation display */
.cost-calculation {
    background: linear-gradient(135deg, rgba(30, 38, 53, 0.9) 0%, rgba(19, 23, 34, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

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

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

.cost-row.usd-row {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.cost-value {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    text-align: right;
}

.cost-value.usd-value {
    color: #ff8c5a;
    font-size: 18px;
    font-weight: 700;
}

/* Dynamic trade button with action-specific styling */
.dynamic-trade-btn {
    width: 100%;
    padding: 20px 32px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.dynamic-trade-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.dynamic-trade-btn:hover:not(.disabled)::before {
    left: 100%;
}

.dynamic-trade-btn.buy-btn {
    background: linear-gradient(135deg, #00c853 0%, #00a844 100%);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 200, 83, 0.4);
}

.dynamic-trade-btn.buy-btn:hover:not(.disabled) {
    background: linear-gradient(135deg, #00a844 0%, #00962a 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 200, 83, 0.6);
}

.dynamic-trade-btn.sell-btn {
    background: linear-gradient(135deg, #ff3d71 0%, #e63567 100%);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(255, 61, 113, 0.4);
}

.dynamic-trade-btn.sell-btn:hover:not(.disabled) {
    background: linear-gradient(135deg, #e63567 0%, #cc2e5d 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 61, 113, 0.6);
}

.dynamic-trade-btn.disabled {
    background: rgba(125, 143, 179, 0.2);
    color: rgba(125, 143, 179, 0.5);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.dynamic-trade-btn.disabled::before {
    display: none;
}

/* Enhanced transaction status */
.twap-trading-panel .transaction-status {
    background: linear-gradient(135deg, rgba(30, 38, 53, 0.9) 0%, rgba(19, 23, 34, 0.9) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #e1e6ef;
    min-height: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.twap-trading-panel .transaction-status.success {
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.2) 0%, rgba(0, 168, 68, 0.2) 100%);
    border-color: rgba(0, 200, 83, 0.4);
    color: #00c853;
}

.twap-trading-panel .transaction-status.error {
    background: linear-gradient(135deg, rgba(255, 61, 113, 0.2) 0%, rgba(230, 53, 103, 0.2) 100%);
    border-color: rgba(255, 61, 113, 0.4);
    color: #ff3d71;
}

.twap-trading-panel .transaction-status.pending {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.2) 0%, rgba(245, 124, 0, 0.2) 100%);
    border-color: rgba(255, 152, 0, 0.4);
    color: #ff9800;
}

/* Responsive adjustments for TWAP UI */
@media (max-width: 768px) {
    .twap-price-large {
        font-size: 32px;
    }
    
    .twap-price-header {
        padding: 24px 16px;
    }
    
    .amount-input {
        padding: 16px 20px;
        font-size: 16px;
    }
    
    .dynamic-trade-btn {
        padding: 16px 24px;
        font-size: 14px;
    }
    
    .cost-calculation {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .twap-price-large {
        font-size: 28px;
    }
    
    .action-selector .action-btn {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .cost-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .cost-value {
        text-align: left;
    }
}



/* Settlement Details Cards */
.settled-positions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    padding: 20px;
}

.settlement-card {
    background: rgba(15, 21, 32, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
}

.settlement-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.settlement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.settlement-header .ticker {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 700;
    color: #e1e6ef;
}

.settlement-header .outcome {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.settlement-header .outcome.win {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.settlement-header .outcome.loss {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.settlement-details .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13px;
}

.settlement-details .label {
    color: #64748b;
    font-weight: 500;
}

.settlement-details .value {
    color: #e1e6ef;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
}

.settlement-details .value.profit-win {
    color: #10b981;
}

.settlement-details .value.profit-loss {
    color: #ef4444;
}

.settlement-details .txid a {
    color: #60a5fa;
    text-decoration: none;
    font-size: 11px;
}

.settlement-details .txid a:hover {
    text-decoration: underline;
}


/* Protocol Stats Grid */
.protocol-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.stat-card {
    background: rgba(20, 28, 43, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.stat-card .stat-label {
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.stat-card .stat-value {
    color: #e1e6ef;
    font-size: 20px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.section-title {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    margin: 24px 0 16px 0;
    letter-spacing: 0.5px;
}


/* Dashboard Professional Styling */
.dashboard-content {
    background: rgba(10, 15, 25, 0.95);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 21, 32, 0.8);
}

.dashboard-header h2 {
    color: #e1e6ef;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.dashboard-points {
    display: flex;
    gap: 32px;
}

.xp-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.xp-label-inline {
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.xp-title-inline {
    color: #ff6b35;
    font-size: 13px;
    font-weight: 700;
}

.xp-points-inline {
    color: #10b981;
    font-size: 14px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.dashboard-layout {
    display: flex;
    background: rgba(15, 21, 32, 0.6);
}

.dashboard-main {
    flex: 1;
    padding: 24px;
}


/* Fix Dashboard Content Containment */
.dashboard-layout {
    max-width: 100%;
    overflow: hidden;
}

.dashboard-main {
    max-width: 100%;
    overflow-x: auto;
}

.leaderboard-panel,
.transactions-section,
.weekly-stats-panel {
    max-width: 100%;
    overflow-x: auto;
}

.leaderboard-table,
.transactions-table,
.stats-table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

/* Ensure tables don't overflow */
.leaderboard-table-header,
.leaderboard-table-body,
.transactions-table-header,
.transactions-table-body {
    display: grid;
    width: 100%;
}


/* Horizontal Dashboard Tabs */
.dashboard-tabs {
    display: flex;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(15, 21, 32, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-tab {
    padding: 8px 20px;
    background: rgba(30, 38, 53, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #94a3b8;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-transform: capitalize;
}

.dashboard-tab:hover {
    color: #e1e6ef;
    background: rgba(42, 53, 71, 0.5);
    border-color: rgba(255, 255, 255, 0.15);
}

.dashboard-tab.active {
    color: #ffffff;
    background: rgba(255, 107, 53, 0.2);
    border-color: rgba(255, 107, 53, 0.5);
}

.dashboard-main {
    padding: 24px;
    background: rgba(10, 15, 25, 0.6);
}

