:root {
    --primary-green: #22C55E;
    --primary-dark: #047857;
    --primary-light: #d1fae5;
    --grey-900: #1a202c;
    --grey-800: #1f2937;
    --grey-700: #374151;
    --grey-600: #4b5563;
    --grey-500: #6b7280;
    --grey-400: #9ca3af;
    --grey-300: #d1d5db;
    --grey-200: #e5e7eb;
    --grey-100: #f3f4f6;
    --grey-50: #f9fafb;
    --white: #ffffff;
    --table-border: rgba(156, 163, 175, 0.3);
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --border-radius: 8px;
    
    /* Typography Scale */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-size-xs: 13px;
    --font-size-sm: 15px;
    --font-size-base: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 20px;
    --font-size-2xl: 26px;
    --font-size-3xl: 32px;
    --line-height-tight: 1.4;
    --line-height-normal: 1.6;
    --line-height-relaxed: 1.8;
}

/* Base typography */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    font-weight: 400;
    color: var(--grey-900);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
}

.main-content {
    background-color: var(--grey-100);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hero-section {
    background-color: var(--grey-900);
    color: var(--white);
    padding: 32px 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(26, 32, 44, 0.4);
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    color: var(--primary-green);
    margin-bottom: 12px;
    font-weight: 600;
    line-height: var(--line-height-tight);
}

.hero-title {
    font-size: var(--font-size-3xl);
    color: var(--white);
    margin-bottom: 16px;
    font-weight: 700;
    line-height: var(--line-height-tight);
}

.hero-description {
    font-size: var(--font-size-base);
    color: var(--white);
    line-height: var(--line-height-normal);
    margin: 0;
}

.hero-text {
    font-size: var(--font-size-lg);
    margin-top: 8px;
    line-height: var(--line-height-normal);
}

.ad-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px;
}

.ad-wrapper {
    position: relative;
    max-width: 100%;
}

.ad-wrapper img {
    width: 100%;
    height: auto;
}

.ad-label {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #ff0000;
    color: var(--white);
    padding: 2px 6px;
    font-size: 12px;
    font-weight: 500;
}

.main-tips-wrapper {
    position: relative;
}

.side-ad {
    position: absolute;
    top: 0;
    z-index: 100;
    max-width: 180px;
    transition: position 0.1s ease;
}

.side-ad.fixed-position {
    position: fixed;
    top: 20px;
}

.side-ad.hidden-position {
    opacity: 0;
    pointer-events: none;
}

.side-ad-left {
    left: 38px;
}

.side-ad-right {
    right: 38px;
}

/* Prevent overlap on smaller desktop screens */
@media (max-width: 1200px) {
    .side-ad-left {
        left: 10px;
    }
    
    .side-ad-right {
        right: 10px;
    }
    
    .side-ad {
        max-width: 140px;
    }
}

@media (max-width: 900px) {
    .side-ad {
        max-width: 120px;
    }
    
    .side-ad-left {
        left: 5px;
    }
    
    .side-ad-right {
        right: 5px;
    }
}

.side-ad img {
    width: 100%;
    height: auto;
    display: block;
}

.side-ad .ad-label {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #ff0000;
    color: var(--white);
    padding: 2px 6px;
    font-size: 12px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .side-ad {
        display: none;
    }
}

.section-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 8px 16px;
    width: 100%;
    box-sizing: border-box;
}

.tips-card,
.plan-card,
.jackpot-card {
    background-color: var(--white);
    padding: 16px;
    margin-bottom: 16px;
    border-radius: var(--border-radius);
    
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: block;
}

.tips-card {
    color: var(--grey-900);
}

.plan-card {
    background-image: url('../../Subbackground.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 16px;
    margin-bottom: 16px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: block;
    color: var(--white);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--grey-200);
    transition: all 0.2s ease;
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(26, 32, 44, 0.4);
    transition: all 0.2s ease;
    z-index: 1;
}

.plan-card > * {
    position: relative;
    z-index: 2;
}

.plan-card:hover::before {
    background-color: rgba(26, 32, 44, 0.2);
}

.plan-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    border-color: var(--primary-green);
}

.jackpot-card {
    color: var(--grey-900);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-header {
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 4px;
    line-height: var(--line-height-tight);
}

.primary-color {
    color: var(--primary-green) !important;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 16px 0;
}

.date-btn {
    padding: 10px 18px;
    border: 1px solid var(--grey-300);
    border-radius: var(--border-radius);
    background-color: var(--white);
    color: var(--grey-600);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 110px;
    font-family: var(--font-family);
}

.date-btn:hover {
    background-color: var(--grey-900);
    color: var(--white);
}

.active-button {
    background-color: var(--grey-900);
    color: var(--white);
    border-color: var(--grey-900);
}

/* Unified Table System - Minimalistic & Stylish */
.table-container {
    margin-top: 16px;
    width: 100%;
    overflow-x: auto;
}

.table-container table,
table.tips-table,
table.results-table,
table.matches-table,
table.free-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-xs);
    font-family: var(--font-family);
    background-color: var(--white);
    overflow: hidden;
}

.table-container th,
.tips-table th,
.results-table th,
.matches-table th,
.free-table th,
table th {
    background: none;
    color: var(--grey-700);
    padding: 8px 10px;
    text-align: center;
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0;
    border: none;
    border-bottom: 1px solid var(--table-border);
    position: relative;
}


.table-container td,
.tips-table td,
.results-table td,
.matches-table td,
.free-table td,
table td {
    padding: 6px 8px;
    text-align: center;
    font-size: var(--font-size-xs);
    color: var(--grey-700);
    border-bottom: 1px solid var(--table-border);
    border-right: none;
    border-left: none;
    border-top: none;
    background: none;
    line-height: var(--line-height-tight);
}

/* Remove all hover and alternating effects */



.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.plan-label {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    font-size: var(--font-size-xs);
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 9999px;
    font-family: var(--font-family);
}

.plan-rating {
    position: relative;
    z-index: 1;
}

.plan-rating i {
    color: #facc15;
    font-size: var(--font-size-sm);
}

.plan-details {
    margin: 20px 0 8px;
    font-size: var(--font-size-sm);
    line-height: var(--line-height-normal);
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.plan-button {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: var(--font-size-sm);
    text-align: center;
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 130px;
    font-family: var(--font-family);
    line-height: var(--line-height-tight);
    position: relative;
    z-index: 1;
}

.plan-button:hover {
    background-color: var(--primary-dark);
}



.jackpot-logo {
    width: 160px;
    height: 80px;
    border-radius: var(--border-radius);
    flex-shrink: 0;
    object-fit: contain;
    display: block;
}

.jackpot-content {
    flex-grow: 1;
    margin: 0 16px;
}

.jackpot-title {
    font-size: var(--font-size-sm);
    font-weight: 700;
    line-height: var(--line-height-tight);
    margin-bottom: 4px;
}

.jackpot-message {
    font-size: var(--font-size-sm);
    color: var(--grey-600);
    line-height: var(--line-height-normal);
}

/* Collapsible sections */
.collapsible {
    cursor: pointer;
    padding: 12px;
    width: 100%;
    border: none;
    text-align: left;
    font-size: var(--font-size-base);
    font-weight: 700;
    background-color: var(--grey-100);
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
    font-family: var(--font-family);
}

.collapsible:hover {
    background-color: var(--grey-200);
}

.content {
    display: none;
    overflow: hidden;
    margin-top: 4px;
}

.dropdown-symbol {
    font-size: var(--font-size-lg);
    font-weight: 400;
    transition: transform 0.2s ease;
}

.collapsible.active .dropdown-symbol {
    transform: rotate(180deg);
}

.why-us-section {
    margin-bottom: 8px;
}

.why-us-header {
    max-width: 700px;
    text-align: left;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-green);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    font-family: var(--font-family);
}

.section-text {
    font-size: var(--font-size-base);
    color: var(--grey-900);
    margin-bottom: 16px;
    line-height: var(--line-height-normal);
    font-family: var(--font-family);
}

.features-grid {
    display: grid;
    gap: 24px;
    margin-bottom: 24px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
}

.feature-icon {
    flex-shrink: 0;
    margin-right: 12px;
    color: var(--primary-green);
}

.icon-svg {
    width: 20px;
    height: 20px;
}

.feature-content {
    flex-grow: 1;
}

.feature-title {
    font-size: var(--font-size-base);
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--grey-900);
    font-family: var(--font-family);
    line-height: var(--line-height-tight);
}

.feature-text {
    font-size: var(--font-size-sm);
    color: var(--grey-700);
    line-height: var(--line-height-normal);
    font-family: var(--font-family);
}

.feature-link {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.feature-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.about-section {
    margin: 24px 0;
}

.about-content {
    margin-bottom: 24px;
}

.about-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.detail-item {
    margin-bottom: 24px;
}

.detail-title {
    font-size: var(--font-size-base);
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--grey-900);
    font-family: var(--font-family);
    line-height: var(--line-height-tight);
}

.detail-text {
    font-size: var(--font-size-sm);
    color: var(--grey-900);
    line-height: var(--line-height-normal);
    font-family: var(--font-family);
}

@media (min-width: 768px) {
    .section-container {
        padding: 8px 20px;
    }

    .hero-section {
        padding: 24px;
    }

    .hero-text {
        font-size: var(--font-size-xl);
    }

    .section-title {
        font-size: var(--font-size-2xl);
    }

    .tips-card,
    .plan-card,
    .jackpot-card {
        padding: 20px;
        margin-bottom: 20px;
    }

    .jackpot-logo {
        width: 100px;
        height: 50px;
        flex-shrink: 0;
        object-fit: contain;
    }

    .plan-button {
        font-size: var(--font-size-sm);
        padding: 8px 16px;
        min-width: 120px;
    }

    .date-btn {
        font-size: var(--font-size-sm);
        padding: 8px 16px;
        min-width: 100px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-section {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .about-content {
        flex: none;
    }

    .about-details {
        flex: none;
        display: flex;
        flex-direction: column;
        gap: 24px;
    }
}

@media (min-width: 1024px) {
    .section-container {
        padding: 8px 40px;
    }

    .tips-card,
    .plan-card,
    .jackpot-card {
        padding: 24px;
        margin-bottom: 24px;
    }

    .jackpot-logo {
        width: 100px;
        height: 50px;
    }

    .plan-button {
        font-size: var(--font-size-base);
        padding: 10px 20px;
        min-width: 140px;
    }

    .date-btn {
        font-size: var(--font-size-base);
        padding: 10px 18px;
        min-width: 110px;
    }

    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .section-container {
        padding: 8px 8px;
    }

    /* Make the ad at line 163-171 larger on mobile */
    .ad-container .ad-wrapper[style*="max-width: 20%"] {
        max-width: 60% !important;
    }

    .tips-card {
        margin-left: 0;
        margin-right: 0;
    }

    .plan-card {
        margin-left: 0;
        margin-right: 0;
    }

    .hero-text {
        font-size: var(--font-size-base);
    }

    .section-title {
        font-size: var(--font-size-2xl);
    }

    .button-group {
        margin: 16px 0;
        gap: 8px;
    }

    .date-btn {
        font-size: var(--font-size-xs);
        padding: 10px 16px;
        min-width: 80px;
    }

    .table-container table,
    .tips-table,
    .results-table,
    .matches-table,
    .free-table,
    table {
        font-size: 12px;
    }

    .table-container th,
    .tips-table th,
    .results-table th,
    .matches-table th,
    .free-table th,
    table th {
        padding: 6px 8px;
        font-size: 12px;
    }

    .table-container td,
    .tips-table td,
    .results-table td,
    .matches-table td,
    .free-table td,
    table td {
        padding: 4px 6px;
        font-size: 12px;
    }

    .plan-card,
    .jackpot-card {
        padding: 12px;
    }

    .jackpot-logo {
        width: 80px;
        height: 40px;
        flex-shrink: 0;
        object-fit: contain;
    }

    .plan-button {
        font-size: var(--font-size-xs);
        padding: 6px 12px;
        min-width: 100px;
    }
}

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

.tips-text {
    font-size: 14px;
    color: var(--grey-900);
}

.tips-status {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.tips-status .no-tips-message {
    flex: 1;
    text-align: center;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background-color: #dc2626;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.status-text {
    font-size: 12px;
    font-weight: 700;
    color: #dc2626;
    margin-left: 4px;
}

.plan-label {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 9999px;
}

.tips-content {
    margin-bottom: 16px;
}

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

.tips-table th {
    padding: 8px;
    text-align: center;
    font-weight: 700;
    color: var(--grey-900);
    border-bottom: 1px solid var(--table-border);
}

.tips-table tr {
    border-bottom: 1px solid var(--table-border);
}

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

.tips-table td {
    padding: 10px 8px;
    text-align: center;
    border-right: none;
}

.tips-table td:last-child {
    border-right: none;
}

.no-tips-message {
    text-align: center;
    color: var(--grey-600);
    font-weight: 700;
    margin-top: 16px;
    width: 100%;
    display: block;
}

/* Free Tips Section - Table headers with button background */
#tips-table-container .tips-table th {
    background-color: var(--grey-900);
    color: var(--white);
    padding: 8px;
    text-align: center;
    font-weight: 700;
    border-bottom: 1px solid var(--table-border);
}

/* Recently Won Tips Section - Table headers with button background */
.results-table th {
    background-color: var(--grey-900);
    color: var(--white);
    padding: 8px;
    text-align: center;
    font-weight: 700;
    border-bottom: 1px solid var(--table-border);
}

.odds-button {
    display: block;
    width: 100%;
    padding: 8px;
    border: 1px solid var(--grey-300);
    border-radius: var(--border-radius);
    background-color: var(--white);
    box-shadow: var(--card-shadow);
    font-size: 13px;
    text-align: center;
    cursor: default;
}

.odds-button-text {
    display: inline-block;
}

.info-card {
    background-color: var(--primary-light);
    padding: 16px;
    border-radius: var(--border-radius);
    margin-bottom: 16px;
}

.info-content {
    display: flex;
    align-items: center;
}

.info-icon {
    color: var(--primary-green);
    margin-right: 8px;
    font-size: 16px;
}

.info-text {
    font-size: 13px;
    color: var(--primary-dark);
}

.form-card {
    background-color: var(--white);
    padding: 16px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    margin-bottom: 16px;
}

.form-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--grey-900);
    margin-bottom: 8px;
}

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

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--grey-900);
}

.form-input {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--grey-300);
    border-radius: var(--border-radius);
    background-color: var(--grey-50);
    box-shadow: var(--card-shadow);
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.buy-button {
    width: 100%;
    background-color: var(--primary-green);
    color: var(--white);
    padding: 8px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
}

.buy-button:hover {
    background-color: var(--primary-dark);
}

.form-help-text {
    font-size: 14px;
    color: var(--primary-green);
    margin: 16px 0;
}

.link-card {
    background-color: #dbeafe;
    padding: 16px;
    border-radius: var(--border-radius);
    margin-bottom: 16px;
}

.link-content {
    display: flex;
    align-items: center;
}

.link-icon {
    color: #2563eb;
    margin-right: 8px;
    font-size: 16px;
}

.link-text {
    font-size: 13px;
    color: #1e40af;
    text-decoration: none;
}

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

.loader {
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top: 3px solid #000;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    margin-left: 5px;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    border-radius: var(--border-radius);
    color: var(--white);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    min-width: 300px;
    max-width: 80%;
    text-align: center;
    transition: all 0.5s ease;
}

.notification.success {
    background-color: #4CAF50;
}

.notification.error {
    background-color: #F44336;
}

/* Find My Tip Results Styling - Receipt UI */
.tips-results-container {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 0;
    margin: 16px auto;
    overflow: hidden;
    max-width: 800px;
}

/* Receipt Header */
.receipt-header {
    background: linear-gradient(135deg, var(--grey-50) 0%, var(--white) 100%);
    padding: 24px 20px;
    text-align: center;
    border-bottom: 1px solid var(--grey-200);
}

.receipt-title {
    margin: 0 0 12px 0;
    color: var(--grey-900);
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.receipt-divider {
    color: var(--grey-400);
    font-family: 'Courier New', monospace;
    font-size: 14px;
    margin: 10px 0;
    letter-spacing: 1px;
}

/* Receipt Container */
.receipt-container {
    background-color: var(--white);
    padding: 0 20px;
    font-family: 'Courier New', monospace;
}

/* Receipt Table */
.receipt-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    margin: 20px 0;
    table-layout: auto;
}

.receipt-table th {
    background-color: transparent;
    color: var(--grey-700);
    padding: 15px 8px 10px 8px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: top;
}

.receipt-table td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px dotted var(--grey-300);
    color: var(--grey-800);
    font-weight: 500;
    vertical-align: top;
    font-size: 13px;
    word-wrap: break-word;
}

.receipt-table tr:last-child td {
    border-bottom: 2px solid var(--grey-300);
}

/* Receipt Item Rows */
.receipt-table tbody tr {
    position: relative;
}


/* Column-specific styling with better alignment */
.receipt-table th:nth-child(1),
.receipt-table td:nth-child(1) { /* Date */
    width: 18%;
    padding-left: 16px;
}

.receipt-table td:nth-child(1) {
    font-weight: 600;
    color: var(--grey-900);
}

.receipt-table th:nth-child(2),
.receipt-table td:nth-child(2) { /* Time */
    width: 15%;
}

.receipt-table td:nth-child(2) {
    font-weight: 600;
    color: var(--primary-green);
}

.receipt-table th:nth-child(3),
.receipt-table td:nth-child(3) { /* League */
    width: 20%;
}

.receipt-table td:nth-child(3) {
    font-style: italic;
    color: var(--grey-600);
    font-size: 12px;
}

.receipt-table th:nth-child(4),
.receipt-table td:nth-child(4) { /* Fixture */
    width: 32%;
}

.receipt-table td:nth-child(4) {
    font-weight: 600;
    color: var(--grey-900);
    line-height: 1.3;
}

.receipt-table th:nth-child(5),
.receipt-table td:nth-child(5) { /* Tip */
    width: 15%;
    text-align: center;
}

.receipt-table td:nth-child(5) {
    color: var(--grey-900);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

/* Receipt Footer */
.receipt-footer {
    background: linear-gradient(135deg, var(--white) 0%, var(--grey-50) 100%);
    padding: 20px;
    text-align: center;
    border-top: 1px solid var(--grey-200);
}

.receipt-disclaimer {
    margin-top: 8px;
}

.disclaimer-text {
    font-family: 'Courier New', monospace;
    color: var(--grey-600);
    font-size: 13px;
    margin-bottom: 12px;
    font-weight: 500;
}

.disclaimer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.disclaimer-link {
    font-family: 'Courier New', monospace;
    color: var(--primary-green);
    font-size: 12px;
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.disclaimer-link:hover {
    color: var(--primary-dark);
}

.age-restriction {
    background-color: var(--primary-green);
    color: var(--white);
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Desktop optimizations */
@media (min-width: 769px) {
    .tips-results-container {
        margin: 24px auto;
    }
    
    .receipt-header {
        padding: 30px 24px;
    }
    
    .receipt-title {
        font-size: 24px;
        margin-bottom: 16px;
    }
    
    .receipt-container {
        padding: 0 24px;
    }
    
    .receipt-table {
        font-size: 15px;
        margin: 24px 0;
    }
    
    .receipt-table th {
        padding: 18px 12px 12px 12px;
        font-size: 13px;
        letter-spacing: 0.6px;
    }
    
    .receipt-table td {
        padding: 14px 12px;
        font-size: 14px;
    }
    
    .receipt-table tbody tr:before {
        left: 3px;
        font-size: 14px;
        top: 14px;
    }
    
    .receipt-table th:nth-child(1),
    .receipt-table td:nth-child(1) { /* Date */
        width: 15%;
        padding-left: 20px;
    }
    
    .receipt-table th:nth-child(2),
    .receipt-table td:nth-child(2) { /* Time */
        width: 12%;
    }
    
    .receipt-table th:nth-child(3),
    .receipt-table td:nth-child(3) { /* League */
        width: 20%;
    }
    
    .receipt-table th:nth-child(4),
    .receipt-table td:nth-child(4) { /* Fixture */
        width: 40%;
    }
    
    .receipt-table th:nth-child(5),
    .receipt-table td:nth-child(5) { /* Tip */
        width: 13%;
    }
    
    .receipt-footer {
        padding: 24px;
    }
    
    .disclaimer-text {
        font-size: 14px;
    }
    
    .disclaimer-link {
        font-size: 13px;
    }
    
    .age-restriction {
        font-size: 13px;
        padding: 5px 10px;
    }
}

/* Large desktop optimizations */
@media (min-width: 1024px) {
    .tips-results-container {
        max-width: 900px;
    }
    
    .receipt-table {
        font-size: 16px;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .tips-results-container {
        margin: 16px 8px;
        padding: 0;
    }
    
    .receipt-header {
        padding: 16px;
    }
    
    .receipt-title {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .receipt-container {
        padding: 0 8px;
    }
    
    .receipt-table {
        font-size: 10px;
        margin: 12px 0;
    }
    
    .receipt-table th {
        padding: 8px 3px 6px 3px;
        font-size: 9px;
        letter-spacing: 0.2px;
    }
    
    .receipt-table td {
        padding: 6px 3px;
        font-size: 10px;
        line-height: 1.2;
    }
    
    .receipt-table tbody tr:before {
        left: 1px;
        font-size: 10px;
        top: 6px;
    }
    
    .receipt-table th:nth-child(1),
    .receipt-table td:nth-child(1) { /* Date */
        width: 16%;
        padding-left: 12px;
    }
    
    .receipt-table th:nth-child(2),
    .receipt-table td:nth-child(2) { /* Time */
        width: 14%;
    }
    
    .receipt-table th:nth-child(3),
    .receipt-table td:nth-child(3) { /* League */
        width: 18%;
        font-size: 9px;
    }
    
    .receipt-table th:nth-child(4),
    .receipt-table td:nth-child(4) { /* Fixture */
        width: 36%;
        font-size: 9px;
        line-height: 1.1;
    }
    
    .receipt-table th:nth-child(5),
    .receipt-table td:nth-child(5) { /* Tip */
        width: 16%;
        font-size: 9px;
        letter-spacing: 0.1px;
    }
    
    .receipt-divider {
        font-size: 10px;
        letter-spacing: 0.3px;
        margin: 6px 0;
    }
    
    .receipt-footer {
        padding: 16px 8px;
    }
    
    .disclaimer-text {
        font-size: 11px;
        margin-bottom: 8px;
    }
    
    .disclaimer-links {
        flex-direction: column;
        gap: 6px;
    }
    
    .disclaimer-link {
        font-size: 10px;
    }
    
    .age-restriction {
        font-size: 10px;
        padding: 2px 4px;
    }
}

/* STK Push Popup Modal */

.stk-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-out;
}

.stk-modal-content {
    background-color: var(--white);
    margin: 15% auto;
    padding: 0;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

.stk-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--grey-200);
}

.stk-modal-header h3 {
    margin: 0;
    color: var(--grey-800);
    font-size: 18px;
    font-weight: 600;
}

.stk-close {
    color: var(--grey-400);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: transparent;
}

.stk-close:hover {
    color: var(--grey-700);
    background-color: var(--grey-100);
}

.stk-modal.loading .stk-close {
    display: none;
}

.stk-modal-body {
    padding: 30px 20px;
    text-align: center;
}

.stk-modal-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    font-weight: bold;
}

.stk-modal-icon.success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--primary-green);
    animation: pulseSuccess 1s infinite;
}

.stk-modal-icon.error {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    animation: pulseError 1s infinite;
}

.stk-modal-message {
    font-size: 16px;
    color: var(--grey-700);
    margin: 0 0 25px;
    line-height: 1.5;
}

.stk-modal-loader {
    display: none;
    width: 40px;
    height: 40px;
    margin: 0 auto 20px;
    border: 4px solid rgba(16, 185, 129, 0.2);
    border-top: 4px solid var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.stk-btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.stk-btn-primary {
    background-color: var(--primary-green);
    color: white;
}

.stk-btn-primary:hover {
    background-color: var(--primary-dark);
}

.stk-btn-secondary {
    background-color: #10b981;
    color: white;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
}

.stk-btn-secondary:hover {
    background-color: #059669;
}

.stk-find-tips {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

/* Tips display container in modal */
.tips-display-container {
    margin-top: 20px;
    max-height: 60vh;
    overflow-y: auto;
    text-align: left;
}

.tips-display-container .tips-results-container {
    margin: 0;
    box-shadow: none;
}

.tips-display-container .receipt-table {
    font-size: 12px;
}

.tips-display-container .receipt-table th,
.tips-display-container .receipt-table td {
    padding: 8px 6px;
}

/* Adjust modal width when displaying tips */
.stk-modal.success .stk-modal-content {
    max-width: 900px;
}

@media (max-width: 768px) {
    .tips-display-container {
        max-height: 50vh;
    }
    
    .tips-display-container .receipt-table {
        font-size: 11px;
    }
    
    .tips-display-container .receipt-table th,
    .tips-display-container .receipt-table td {
        padding: 6px 4px;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes pulseSuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes pulseError {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Loading state for the modal */
.stk-modal.loading .stk-modal-body-content {
    display: none;
}

.stk-modal.loading .stk-modal-loader {
    display: block;
}

/* Success state */
.stk-modal.success .stk-modal-icon.success {
    animation: none;
    transform: scale(1);
}

/* Error state */
.stk-modal.error .stk-modal-icon.error {
    animation: none;
    transform: scale(1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .stk-modal-content {
        margin: 20% auto;
        width: 95%;
    }
    
    .stk-modal-header {
        padding: 16px;
    }
    
    .stk-modal-header h3 {
        font-size: 16px;
    }
    
    .stk-modal-body {
        padding: 20px 16px;
    }
    
    .stk-modal-message {
        font-size: 14px;
    }
    
    .stk-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

.buy-button-container {
    position: relative;
    height: 40px;
}

.button-text {
    transition: all 0.3s ease;
}

.hidden {
    display: none !important;
}

.visible {
    opacity: 1;
    visibility: visible;
}

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

@media (min-width: 768px) {
    .section-container {
        padding: 8px 24px;
    }
}

@media (min-width: 1024px) {
    .section-container {
        padding: 8px 60px;
    }
}

@media (max-width: 768px) {
    .section-title,
    .form-title {
        font-size: var(--font-size-xl);
    }

    .tips-text,
    .info-text,
    .link-text,
    .form-label,
    .form-input,
    .odds-button {
        font-size: 12px;
    }

    .tips-table th,
    .tips-table td {
        padding: 6px;
    }
}



/* Legal Pages Styling (Terms, Disclaimer, Privacy Policy) */

/* Main content background for legal pages */
.legal-page .main-content {
    background-color: #f3f4f6; /* bg-gray-100 */
    min-height: 100vh;
    padding: 2rem 1rem;
}

/* Content card for legal pages */
.content-card {
    background-color: #ffffff; /* bg-white */
    padding: 1rem; /* p-4 */
    margin-bottom: 1rem; /* mb-4 */
    border-radius: 0.5rem; /* rounded-lg */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    max-width: 4xl;
    margin-left: auto;
    margin-right: auto;
}

/* Headings for legal pages */
.title {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 700; /* font-bold */
    color: #16a34a; /* text-green-600 */
    margin-bottom: 1rem; /* mb-4 */
}

.subtitle {
    font-size: 1.875rem; /* text-3xl */
    font-weight: 700; /* font-bold */
    margin-bottom: 1rem; /* mb-4 */
}

/* Paragraphs for legal pages */
.text-content {
    font-size: 1rem; /* default */
    color: #1f2937; /* text-gray-900 */
    line-height: 1.5;
}

/* Section blocks for legal pages */
.section-block {
    margin-top: 1.5rem; /* mt-6 */
}

.section-block-small {
    margin-top: 1rem; /* mt-4 */
}

/* Bold text for legal pages */
.text-bold {
    font-weight: 700; /* font-bold */
}

/* Contact info for legal pages */
.contact-info {
    font-size: 1rem;
    color: #1f2937; /* text-gray-900 */
    margin-top: 1.5rem; /* mt-6 */
}

/* Main content container adjustments for legal pages */
@media (min-width: 640px) {
    .content-card {
        padding-left: 1.5rem; /* sm:px-6 */
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .content-card {
        margin-left: 15rem; /* lg:px-60 */
        margin-right: 15rem;
    }
}

/* Betting Categories Grid Styling */
.betting-categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.category-card {
    background-image: url('../../Subbackground.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid var(--grey-200);
    border-radius: var(--border-radius);
    padding: 21.6px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--white);
    transition: all 0.2s ease;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
    min-height: 72px;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(26, 32, 44, 0.4);
    transition: all 0.2s ease;
}

.category-card:hover::before {
    background-color: rgba(26, 32, 44, 0.2);
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    border-color: var(--primary-green);
}

.category-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--white);
    margin: 0;
    line-height: var(--line-height-tight);
    text-align: center;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Responsive design for betting categories */
@media (min-width: 768px) {
    .betting-categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .category-card {
        padding: 28.8px 21.6px;
        min-height: 90px;
    }
    
    .category-title {
        font-size: var(--font-size-xl);
    }
}

@media (min-width: 1024px) {
    .betting-categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 24px;
    }
    
    .category-card {
        min-height: 108px;
    }
}

@media (min-width: 1200px) {
    .betting-categories-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Mobile specific adjustments */
@media (max-width: 767px) {
    .category-card {
        padding: 18px 14.4px;
        min-height: 63px;
    }
    
    .category-title {
        font-size: var(--font-size-base);
    }
}

/* =================
   JACKPOT PAGES SPECIFIC STYLES
   ================= */

/* Jackpot specific button styling */
.tip-button {
    color: #2563eb;
    font-size: 14px;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.tip-button:hover {
    color: #1e40af;
}

/* Jackpot table body minimum height */
.tips-table tbody {
    min-height: 100px; /* Ensure table body is visible even when empty */
}

/* Jackpot status icons */
.status-icon {
    display: inline-block;
    font-size: 14px;
}

.status-icon.lost i {
    color: var(--grey-500);
}

.status-icon.won i {
    color: var(--primary-green);
}

.status-icon.pending {
    color: orange;
}

/* Load more button for jackpot pages */
.load-more-button {
    display: block;
    width: 100%;
    text-align: center;
    color: #2563eb;
    font-size: 14px;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s ease;
}

.load-more-button:hover {
    color: #1e40af;
}

.load-more-button.hidden {
    display: none;
}

/* Jackpot status display */
.jackpot-status {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tip row visibility */
.tip-row.hidden {
    display: none !important;
}

/* Mobile responsive adjustments for jackpot pages */
@media (max-width: 768px) {
    .hero-section {
        padding: 24px 16px;
    }
    
    .hero-title {
        font-size: var(--font-size-2xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-base);
    }
    
    .hero-description {
        font-size: var(--font-size-sm);
    }
    
    .status-icon {
        font-size: 12px;
    }
    
    .tip-button,
    .load-more-button {
        font-size: 12px;
    }
}

/* STK Push Popup Modal */

.stk-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-out;
}

.stk-modal-content {
    background-color: var(--white);
    margin: 15% auto;
    padding: 0;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

.stk-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--grey-200);
}

.stk-modal-header h3 {
    margin: 0;
    color: var(--grey-800);
    font-size: 18px;
    font-weight: 600;
}

.stk-close {
    color: var(--grey-400);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: transparent;
}

.stk-close:hover {
    color: var(--grey-700);
    background-color: var(--grey-100);
}

.stk-modal.loading .stk-close {
    display: none;
}

.stk-modal-body {
    padding: 30px 20px;
    text-align: center;
}

.stk-modal-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    font-weight: bold;
}

.stk-modal-icon.success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--primary-green);
    animation: pulseSuccess 1s infinite;
}

.stk-modal-icon.error {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    animation: pulseError 1s infinite;
}

.stk-modal-message {
    font-size: 16px;
    color: var(--grey-700);
    margin: 0 0 25px;
    line-height: 1.5;
}

.stk-modal-loader {
    display: none;
    width: 40px;
    height: 40px;
    margin: 0 auto 20px;
    border: 4px solid rgba(16, 185, 129, 0.2);
    border-top: 4px solid var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.stk-btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.stk-btn-primary {
    background-color: var(--primary-green);
    color: white;
}

.stk-btn-primary:hover {
    background-color: var(--primary-dark);
}

.stk-btn-secondary {
    background-color: #10b981;
    color: white;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
}

.stk-btn-secondary:hover {
    background-color: #059669;
}

.stk-find-tips {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

/* Tips display container in modal */
.tips-display-container {
    margin-top: 20px;
    max-height: 60vh;
    overflow-y: auto;
    text-align: left;
}

.tips-display-container .tips-results-container {
    margin: 0;
    box-shadow: none;
}

.tips-display-container .receipt-table {
    font-size: 12px;
}

.tips-display-container .receipt-table th,
.tips-display-container .receipt-table td {
    padding: 8px 6px;
}

/* Adjust modal width when displaying tips */
.stk-modal.success .stk-modal-content {
    max-width: 900px;
}

@media (max-width: 768px) {
    .tips-display-container {
        max-height: 50vh;
    }
    
    .tips-display-container .receipt-table {
        font-size: 11px;
    }
    
    .tips-display-container .receipt-table th,
    .tips-display-container .receipt-table td {
        padding: 6px 4px;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes pulseSuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes pulseError {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Loading state for the modal */
.stk-modal.loading .stk-modal-body-content {
    display: none;
}

.stk-modal.loading .stk-modal-loader {
    display: block;
}

/* Success state */
.stk-modal.success .stk-modal-icon.success {
    animation: none;
    transform: scale(1);
}

/* Error state */
.stk-modal.error .stk-modal-icon.error {
    animation: none;
    transform: scale(1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .stk-modal-content {
        margin: 20% auto;
        width: 95%;
    }
    
    .stk-modal-header {
        padding: 16px;
    }
    
    .stk-modal-header h3 {
        font-size: 16px;
    }
    
    .stk-modal-body {
        padding: 20px 16px;
    }
    
    .stk-modal-message {
        font-size: 14px;
    }
    
    .stk-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

