
    * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
    body { background: #f5f5f7; color: #1e1e1e; }
    .app { max-width: 1800px; margin: 16px auto; background: white; border-radius: 28px; box-shadow: 0 20px 40px -10px rgba(193,9,48,0.15); overflow: hidden; display: flex; flex-direction: column; }
    .top-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 30px; background: white; border-bottom: 1px solid #f0e2e4; flex-wrap: wrap; }
    .logo-area { display: flex; align-items: center; gap: 30px; }
    .logo { font-size: 28px; font-weight: 800; color: #c10930; text-transform: uppercase; letter-spacing: -0.5px; }
    .search-wrapper { background: #f7f7f9; border-radius: 40px; padding: 8px 20px; display: flex; align-items: center; gap: 10px; border: 1px solid #ffd9df; width: 300px; }
    .search-wrapper i { color: #c10930; }
    .search-wrapper input { border: none; background: transparent; outline: none; font-size: 15px; width: 100%; }
    .auth-rules { display: flex; align-items: center; gap: 25px; }
    .auth-rules a { text-decoration: none; font-weight: 600; color: #2d2d2d; }
    .auth-rules .signup { background: #c10930; color: white; padding: 8px 22px; border-radius: 40px; font-weight: 700; }
    .auth-rules .login { color: #c10930; font-weight: 700; }
    .rules-link { display: flex; align-items: center; gap: 6px; color: #5a5a5a; }

    .core { display: grid; grid-template-columns: 250px 1fr 300px; gap: 20px; padding: 24px 28px; background: white; }

    /* left sports menu */
    .sports-menu { background: #ffffff; border-radius: 20px; border: 1px solid #ffe6e9; padding: 10px 0; height: fit-content; max-height: 800px; overflow-y: auto; }
    .sports-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; font-weight: 600; color: #2d2d2d; cursor: pointer; border-left: 4px solid transparent; transition: 0.1s; }
    .sports-item i { width: 24px; color: #c10930; font-size: 1.2rem; }
    .sports-item .left { display: flex; align-items: center; gap: 14px; }
    .sports-item .live-count { background: #e6f0e6; color: #1b7a3c; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 40px; }
    .sports-item.active { background: #ffe8eb; border-left-color: #c10930; }
    .sports-item:hover { background: #fff1f3; }

    /* main content */
    .main { display: flex; flex-direction: column; gap: 30px; max-height: 800px; overflow-y: auto; padding-right: 8px; }
    .sport-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
    .sport-title { font-size: 24px; font-weight: 800; color: #1e1e1e; display: flex; align-items: center; gap: 8px; }
    .sport-tabs { display: flex; gap: 12px; }
    .sport-tab { background: #f3f3f5; padding: 6px 18px; border-radius: 40px; font-weight: 600; font-size: 14px; color: #5a5a5a; cursor: pointer; border: 1px solid transparent; }
    .sport-tab.live-tab { background: #ffe8eb; color: #c10930; border-color: #c10930; }
    .sport-tab i { margin-right: 4px; }

    .live-badge { background: #19b342; color: white; border-radius: 12px; padding: 2px 10px; font-size: 12px; font-weight: 700; margin-left: 8px; animation: pulse 1.5s infinite; }
    @keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.7; } }

    /* match table */
    .match-table { width: 100%; border-collapse: collapse; }
    .match-row { display: grid; grid-template-columns: 200px minmax(200px,1fr) 130px 100px repeat(6, 70px); align-items: center; padding: 12px 10px; border-bottom: 1px solid #f0e0e2; font-size: 14px; transition: background 0.2s; }
    .match-row.header { color: #7a4e52; font-weight: 600; font-size: 13px; background: #fef9fa; border-bottom: 2px solid #ffd9df; }
    .tourney { color: #6b4c52; font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .teams { font-weight: 700; display: flex; flex-direction: column; }
    .status { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
    .live-dot { width: 10px; height: 10px; background: #19b342; border-radius: 50%; animation: pulse-green 1.2s infinite; display: inline-block; }
    @keyframes pulse-green { 0% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(1.2); } }
    .match-time { color: #5a5a5a; font-size: 13px; }
    .odds-cell { background: #fef2f4; border-radius: 12px; padding: 6px 4px; text-align: center; font-weight: 700; color: #c10930; cursor: pointer; border: 1px solid #ffcbd4; transition: 0.1s; margin: 0 2px; font-size: 13px; display: flex; flex-direction: column; line-height: 1.3; }
    .odds-cell small { font-size: 9px; font-weight: 500; color: #7a4e56; }
    .odds-cell:hover { background: #c10930; color: white; transform: scale(1.02); }
    .odds-cell:hover small { color: #ffe2e7; }
    .provider-icon { background: #e4e4e4; border-radius: 4px; padding: 2px 6px; font-size: 10px; font-weight: 700; margin-left: 4px; white-space: nowrap; }

    .pagination { display: flex; justify-content: center; gap: 20px; margin: 30px 0 10px; }
    .pagination button { background: white; border: 1px solid #c10930; color: #c10930; font-weight: 700; padding: 10px 30px; border-radius: 40px; cursor: pointer; }

    /* betslip */
    .betslip { background: white; border-radius: 24px; padding: 20px 16px; border: 1px solid #ffd9df; height: fit-content; max-height: 700px; overflow-y: auto; box-shadow: 0 12px 24px -12px rgba(193,9,48,0.2); }
    .betslip-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
    .betslip-header h3 { color: #c10930; font-weight: 800; }
    #clearAllBtn { color: #c10930; font-size: 14px; cursor: pointer; }
    .betslip-tabs { display: flex; gap: 16px; border-bottom: 1px solid #fadce0; padding-bottom: 12px; margin-bottom: 18px; }
    .betslip-tab { font-weight: 700; color: #8f8f8f; cursor: pointer; }
    .betslip-tab.active { color: #c10930; border-bottom: 3px solid #c10930; }
    .selection-item { background: #fef6f7; border-radius: 14px; padding: 12px; margin-bottom: 10px; border: 1px solid #ffd2da; display: flex; justify-content: space-between; align-items: center; }
    .selection-info small { display: block; color: #7a4e56; }
    .remove-selection { color: #c10930; cursor: pointer; }
    .stake-area { margin: 16px 0; }
    .stake-input { display: flex; background: #fef2f4; border-radius: 40px; padding: 8px 18px; border: 1px solid #ffcbd4; justify-content: space-between; }
    .stake-input input { background: transparent; border: none; font-weight: 700; width: 90px; outline: none; }
    .quick-stakes { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
    .quick-stake { background: #f5f5f5; padding: 6px 14px; border-radius: 30px; font-weight: 600; cursor: pointer; border: 1px solid #f0c0c8; }
    .quick-stake.allin { background: #c10930; color: white; }
    .place-bet { background: #c10930; width: 100%; padding: 14px; border-radius: 40px; font-weight: 800; color: white; border: none; margin-top: 16px; cursor: pointer; }
    .timestamp { margin-top: 20px; color: #a06a72; font-size: 12px; display: flex; justify-content: flex-end; border-top: 1px solid #fadce0; padding-top: 16px; gap: 10px; }
    .refresh-indicator { color: #c10930; animation: spin 2s infinite linear; display: inline-block; }
    @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
    
    
    /* =========================
   TABLET VIEW
========================= */
@media (max-width: 1200px) {

  .core {
    grid-template-columns: 200px 1fr;
  }

  .betslip {
    display: none;
  }

}

/* =========================
   MOBILE VIEW
========================= */
@media (max-width: 768px) {

  .app {
    margin: 0;
    border-radius: 0;
  }

  /* HEADER */
  .top-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .logo-area {
    width: 100%;
    justify-content: space-between;
  }

  .search-wrapper {
    width: 100%;
  }

  .auth-rules {
    width: 100%;
    justify-content: space-between;
  }

  /* CORE LAYOUT */
  .core {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  /* SPORTS MENU → SCROLLABLE TOP MENU */
  .sports-menu {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    border-radius: 12px;
    padding: 6px;
    gap: 8px;
  }

  .sports-item {
    flex: 0 0 auto;
    border-left: none;
    border-radius: 30px;
    background: #f5f5f7;
    padding: 10px 14px;
  }

  .sports-item.active {
    background: #ffe8eb;
  }

  /* MAIN CONTENT */
  .main {
    max-height: none;
  }

  .sport-title {
    font-size: 18px;
  }

  /* MATCH TABLE MOBILE */
  .match-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px;
    border-radius: 14px;
    background: #fff6f7;
    margin-bottom: 10px;
  }

  .match-row.header {
    display: none;
  }

  .teams {
    font-size: 15px;
  }

  .odds-cell {
    display: inline-flex;
    margin-top: 6px;
    width: auto;
  }

  /* BETSLIP → FIXED BOTTOM PANEL */
  .betslip {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 60vh;
    border-radius: 20px 20px 0 0;
    z-index: 999;
    display: block;
  }

}

/* =========================
   SMALL PHONES
========================= */
@media (max-width: 480px) {

  .logo {
    font-size: 20px;
  }

  .sport-title {
    font-size: 16px;
  }

  .quick-stakes {
    justify-content: center;
  }

}
