.custom-soccer-table {
  font-family: Arial, sans-serif;
  max-width: 700px;
  margin: 30px auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}

.match-card {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  padding: 16px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.logos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logos img {
  height: 24px;
  object-fit: contain;
}

.time {
  text-align: center;
  font-weight: bold;
  font-size: 1em;
  color: #333;
}

.match-name {
  text-align: center;
  margin-top: 5px;
}

.match-name-span {
  text-decoration: none;
  color: #111;
  font-weight: bold;
  font-size: 0.85em;
}

.match-info {
  text-align: center;
  margin-top: 5px;
  font-size: 1em;
}

.league-name {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8em;
  color: #4CAF50;
}

.league-name img {
  height: 16px;
  margin-right: 0;
}

.league-name a {
  text-decoration: none;
  color: #4CAF50;
  font-size: 0.9em;
}

.bet-tip {
  color: #F74B00;
  font-size: 0.9em;
}

.odds-bookmaker-link {
  text-decoration: none;
  display: block;
  width: 100%;
}

.odds-bookmaker {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.odds {
  font-size: 0.9em;
  color: #222;
}

.bookmaker img {
  height: 24px;
  object-fit: contain;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .custom-soccer-table {
    max-width: 1000px;
  }

  .match-card {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
  }

  .logos {
    flex-direction: row;
    gap: 8px;
    max-width: 20%;
  }

  .match-name {
    display: inline-block;
    margin: 0 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 20%;
  }

  .match-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 1em;
    white-space: nowrap;
    max-width: 45%;
  }

  .odds-bookmaker-link {
    width: auto;
    max-width: 15%;
  }

  .odds-bookmaker {
    gap: 6px;
  }

  .match-card > * {
    flex: 1;
  }
}
    .bookie-top-menu-container {
        position: relative;
        display: inline-block;
        width: 36px;
        height: 36px;
        cursor: pointer;
    }

    .bookie-top-menu-container img {
        width: 100%;
        height: auto;
        display: block;
    }

    .bookie-notification-badge {
        position: absolute;
        bottom: 2px;
        right: 2px;
        background: red;
        color: white;
        border-radius: 50%;
        width: 20px;
        height: 20px;
        font-size: 12px;
        text-align: center;
        line-height: 20px;
        font-weight: bold;
        box-shadow: 0 0 0 2px white;
    }

    .bookie-popup {
        position: absolute;
        top: 52px;
        left: 50%;
        transform: translateX(-50%);
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 6px 18px rgba(0,0,0,0.15);
        padding: 14px 16px 12px;
        width: 280px;
        display: none;
        z-index: 10000;
        font-family: system-ui, sans-serif;
        box-sizing: border-box;
    }

    .bookie-popup-header {
        display: flex;
        justify-content: flex-end;
        margin-bottom: 10px;
    }

    .bookie-popup-header button {
        background: transparent;
        border: none;
        font-size: 16px;
        font-weight: bold;
        cursor: pointer;
        color: #333;
        line-height: 1;
    }

    .bookie-popup-content {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 12px;
    }

    .bookie-popup-content img {
        width: 24px;
        height: 24px;
        border-radius: 6px;
        flex-shrink: 0;
    }

    .bookie-popup-text {
        font-size: 14px;
        color: #333;
        flex: 1;
    }

    .bookie-popup-actions {
        display: flex;
        justify-content: flex-end;
        gap: 8px;
    }

    .bookie-popup-actions a,
    .bookie-popup-actions button {
        font-size: 13px;
        padding: 6px 10px;
        border-radius: 8px;
        font-weight: 600;
        cursor: pointer;
        text-decoration: none;
        white-space: nowrap;
    }

    .bookie-popup-actions button {
        border: 1px solid #ccc;
        background: #f7f7f7;
        color: #333;
    }

    .bookie-popup-actions a {
        background: #0073e6;
        color: #fff;
        border: none;
    }

    .bookie-popup-actions a:hover {
        background: #005bb5;
      color:#fff;
    }

    .show-popup {
        display: block !important;
    }
.bookie-popup-header button:hover {
color:#000!important;
}

    @keyframes shake {
        0% { transform: translateY(0); }
        25% { transform: translateY(-5px); }
        50% { transform: translateY(5px); }
        75% { transform: translateY(-5px); }
        100% { transform: translateY(0); }
    }

    .shake-animation {
        animation: shake 0.6s ease-in-out 0s 1;
    }
@media (min-width: 768px) {
    .bookie-top-menu-container {
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .bookie-popup {
        left: auto;
        right: 0;
        transform: none;
    }
}

.bookie-popup-actions button,
.bookie-popup-actions a {
    font-size: 14px;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.bookie-popup-actions button {
    background-color: #f7f7f7;
    border: 1px solid #ccc;
    color: #333;
}

.bookie-popup-actions button:hover {
    background-color: #333;
}

.bookie-popup-actions a {
    background-color: #0073e6;
    color: #fff;
    border: none;
}

.bookie-popup-actions a:hover {
    background-color: #005bb5;
}
.bookie-popup-actions a {
    display: inline-block;
    padding: 12px 24px;
    background-color: #007bff;
    color: white;
    text-decoration: none!important;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.bookie-popup-actions a:hover {
    background-color: #0056b3;
}
.offer-card {
    margin: 15px 0;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  max-width:1000px;
    margin: 0 auto 80px auto;
}

.offer-logo {
    width: 50px;
    height: auto;
    border-radius: 5px;
}

.offer-text {
    flex-grow: 1;
}

.offer-odds {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.offer-odds span {
    color: #007bff;
}

.offer-bonus {
    font-size: 13px;
    color: #555;
}

.offer-button {
    padding: 8px 15px;
    background: #007bff;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
    transition: background 0.3s;
}

.offer-button:hover {
    background: #0056b3;
  color:#fff!important;
}

@media (max-width: 480px) {
    .offer-card {
        flex-wrap: wrap;
        flex-direction: row;
        align-items: center;
        text-align: left;
        padding: 10px;
    }

    .offer-logo {
        width: 40px;
        margin-right: 10px;
    }

    .offer-text {
        flex: 1;
        min-width: 0;
        margin: 0;
    }

    .offer-button {
        width: 100%;
        margin-top: 10px;
        padding: 10px;
        font-size: 15px;
      text-align: center;

        box-sizing: border-box;
    }
}
  .bookie-page-popup-overlay {
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: rgba(0, 0, 0, 0.6);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 9999;
        }

        .bookie-page-popup {
            background: #fff;
            border-radius: 10px;
            padding: 20px;
            width: 90%;
            max-width: 400px;
            text-align: center;
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
            position: relative;
        }

        .bookie-popup-header {
            text-align: right;
        }

        .bookie-popup-header button {
            background: none;
            border: none;
            font-size: 20px;
            cursor: pointer;
        }

        .bookie-tooltip {
            position: absolute;
            top: -10px;
            left: 50%;
            transform: translateX(-50%);
            background: #333;
            color: #fff;
            font-size: 12px;
            padding: 5px 10px;
            border-radius: 4px;
            white-space: nowrap;
        }

        .bookie-logo {
            width: 60px;
            height: 60px;
            object-fit: contain;
            margin: 30px 0 20px;
        }

        .bookie-popup-text {
            font-size: 0.9em;
            margin-bottom: 15px;
        }

        .bookie-popup-actions {
            display: flex;
            justify-content: space-between;
            gap: 10px;
        }

        .bookie-popup-actions button,
        .bookie-popup-actions a {
            padding: 10px;
            flex: 1;
            border: none;
            border-radius: 5px;
            text-decoration: none;
            color: #fff;
            font-weight: bold;
        }

        .bookie-popup-actions button {
            background: #999;
        }

        .bookie-popup-actions a {
            background: #28a745;
        }
        .bookie-above-fold-container {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .bookie-above-fold-offer {
            display: flex;
            align-items: center;
            background: #fff;
            padding: 10px 12px;  /* More padding for better spacing */
            border-radius: 8px;
            box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
            width: 100%;
            justify-content: space-between;
        }

        .bookie-above-fold-logo {
            width: 45px; /* Slightly bigger logo for better visibility */
            height: 45px;
            object-fit: contain;
            margin-right: 12px;
        }

        .bookie-above-fold-text {
            flex: 1;
            font-size: 16px; /* Increased font size for better visibility */
            font-weight: normal;
            color: #333;
            line-height: 1.5; /* Improved line-height for better legibility */
            white-space: normal; /* Allow text to wrap */
        }

        .bookie-above-fold-link {
            background-color: #28a745;
            color: #fff;
            padding: 8px 16px; /* Increased padding for a larger button */
            text-decoration: none;
            border-radius: 6px;
            font-size: 12px;
            white-space: normal; /* Allow text to wrap */
            height: auto; /* Let the height adjust based on text */
            display: flex;
            justify-content: center;
            align-items: center;
            text-align: center;
            min-width: 120px; /* Ensure buttons are wider */
            max-width: 140px; /* Limit max width for uniformity */
        }

        .bookie-above-fold-link:hover {
            background-color: #218838;
        }

        @media (max-width: 600px) {
            .bookie-above-fold-logo {
                width: 35px;
                height: 35px;
            }

            .bookie-above-fold-text {
                font-size: 14px;
                line-height: 1.4; /* Slightly reduced line height on mobile */
            }

            .bookie-above-fold-link {
                padding: 8px 14px;
                font-size: 10px;
                min-width: 120px; /* Keep buttons wide enough on mobile */
            }
        }