:root {
    --primary-color: #4B0082;
    --secondary-color: #e74c3c;
    --background-color: #f5f7fa;
    --text-color: #2c3e50;
    --star-color: #FFD700;
    --navbar-bg: linear-gradient(135deg, #0a1929 0%, #1a365d 100%);
    --navbar-text: #ffffff;
    --navbar-shadow: rgba(10, 25, 41, 0.4);
    --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 1.125rem;
    line-height: 1.7;
    font-family: var(--font-primary);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

.navbar {
    background: var(--navbar-bg);
    color: var(--navbar-text);
    box-shadow: 0 2px 10px var(--navbar-shadow);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    filter: brightness(0) invert(1);
    transition: opacity 0.3s ease;
}

.navbar-brand:hover {
    opacity: 0.8;
}

.hero-section {
    background: linear-gradient(135deg, #0a1929 0%, #1a365d 50%, #0a1929 100%);
    color: white;
    position: relative;
    overflow: hidden;
    padding: 5rem 0 4rem 0 !important;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0.5;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    color: white !important;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    animation: titleFadeIn 0.8s ease-out;
}

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

.hero-cta-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    margin-top: 3rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards, subtleFloat 3s ease-in-out 1s infinite;
}

.hero-cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes subtleFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-cta-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    min-width: 0;
}

.hero-cta-logo {
    max-height: 55px;
    width: auto;
    flex-shrink: 0;
}

.hero-cta-info {
    flex: 1;
    min-width: 0;
}

.hero-cta-info h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    line-height: 1.2;
}

.hero-cta-info .bonus-text {
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.hero-cta-info .rating {
    color: var(--star-color);
    font-size: 0.95rem;
    letter-spacing: 1px;
    line-height: 1.2;
}

.hero-cta-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(75, 0, 130, 0.4);
    position: relative;
    overflow: hidden;
    animation: buttonPulse 2s ease-in-out infinite;
    white-space: nowrap;
    flex-shrink: 0;
}

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

.hero-cta-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: buttonGlow 2s ease-in-out infinite;
}

.hero-cta-button:hover::before {
    left: 100%;
}

.hero-cta-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 30px rgba(75, 0, 130, 0.6);
    color: white;
    text-decoration: none;
    animation: none;
}

@keyframes buttonPulse {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(75, 0, 130, 0.4);
    }
    50% {
        box-shadow: 0 5px 25px rgba(75, 0, 130, 0.6);
    }
}

@keyframes buttonGlow {
    0%, 100% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0 2rem 0 !important;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-cta-card {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .hero-cta-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .hero-cta-left {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .hero-cta-logo {
        max-height: 50px;
    }
    
    .hero-cta-info h3 {
        font-size: 1.2rem;
    }
    
    .hero-cta-info .bonus-text {
        font-size: 1rem;
    }
    
    .hero-cta-button {
        width: 100%;
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
    }
}

.container-md {
    max-width: 800px;
    margin: 0 auto;
}

.casino-card {
    padding: 1.5rem;
    margin: 3rem auto;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
    background: white;
    transition: transform 0.3s ease;
}

.casino-card:hover {
    transform: translateY(-5px);
}

.casino-card .row {
    align-items: center;
}

#promo-logo-col {
    flex: 0 0 auto;
    max-width: 180px;
}

.casino-logo {
    max-height: 55px;
    width: auto;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.casino-logo-link:hover .casino-logo {
    transform: scale(1.05);
}

#promo-text-col {
    flex: 1;
    min-width: 0;
}

#promo-text-col h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

#promo-text-col .promo-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0;
}

#promo-star-rating {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

#promo-cta-col {
    flex: 0 0 auto;
    text-align: center;
}

#promo-cta-col .btn-play {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    min-width: auto;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .casino-card {
        padding: 1.25rem;
    }
    
    .casino-card .row {
        flex-direction: column;
        gap: 1rem;
    }
    
    #promo-logo-col {
        max-width: 100%;
    }
    
    .casino-logo {
        max-height: 50px;
    }
    
    #promo-text-col {
        text-align: center;
    }
    
    #promo-text-col h3 {
        font-size: 1.1rem;
    }
    
    #promo-text-col .promo-text {
        font-size: 0.95rem;
    }
    
    #promo-cta-col {
        width: 100%;
    }
    
    #promo-cta-col .btn-play {
        width: 100%;
        padding: 0.85rem 1.5rem;
    }
}

a.casino-logo-link {
    text-decoration: none;
}

.btn-play {
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1;
    min-width: 200px;
    cursor: pointer;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.btn-play:before {
    content: '';
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255,255,255,0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
    z-index: -1;
}

.btn-play:active {
    transform: translateY(1px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-play:after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    z-index: -1;
    animation: pulse 2s infinite;
}

@keyframes shine {
    0% {
        left: -50%;
    }
    100% {
        left: 100%;
    }
}

.star-rating {
    color: var(--star-color);
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.5rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-play:hover {
    background-color: #c0392b;
    color: white;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-top: 2.5rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.content h1, .content h2, .content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.content p {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-weight: 450;
}

.text-muted {
    font-size: 0.95rem;
    font-weight: 500;
}

.quick-nav {
    font-size: 1.1rem;
    font-weight: 500;
}

.quick-nav a {
    font-weight: 500;
}


.quick-nav {
    border-left: 4px solid var(--primary-color);
}

.quick-nav a {
    color: var(--text-color);
    transition: color 0.3s ease;
}

.quick-nav a:hover {
    color: var(--primary-color);
}

.list-unstyled li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.list-unstyled li:before {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.top-cta-section {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    text-align: center;
}

.btn-cta {
    background-color: white;
    color: var(--primary-color);
    font-weight: bold;
    padding: 1rem 2rem;
    border-radius: 2rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.btn-cta:hover {
    background-color: transparent;
    color: white;
}

.welcome-bonus {
    margin: 3.5rem 0 0 0;
    position: relative;
    z-index: 1;
}

.welcome-bonus .card {
    border-radius: 1rem;
    transition: transform 0.3s ease;
}

.welcome-bonus .card:hover {
    transform: translateY(-5px);
}

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

.promo-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
}

.promo-card:hover {
    transform: translateY(-2px);
}

footer {
    padding: 4rem 0 3rem !important;
    margin-top: 5rem !important;
}

footer .container {
    padding: 0 2rem;
}

footer .row {
    margin-bottom: 3rem;
}

footer img {
    margin: 0 1.5rem;
    padding: 0.5rem;
}

footer .small {
    padding: 0 1rem;
}

footer {
    padding: 4rem !important;
}

@media (max-width: 768px) {
    footer {
        padding: 3rem 0 2rem !important;
    }
    
    footer .container {
        padding: 0 1rem;
    }
    
    footer img {
        margin: 0.75rem;
    }
}

.casino-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.casino-card:hover {
    transform: translateY(-5px);
}

.casino-logo {
    max-height: 60px;
    width: auto;
    margin: 20px auto;
    object-fit: contain;
}

.star-rating {
    color: var(--star-color);
    font-size: 24px;
    letter-spacing: 2px;
}
    
    .medal-1 {
        background: linear-gradient(145deg, #FFD700, #FFA500);
        color: #000;
        font-size: 1.5rem;
        box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
    }
    
    .medal-2 {
        background: linear-gradient(145deg, #C0C0C0, #A0A0A0);
        color: #000;
        font-size: 1.4rem;
        box-shadow: 0 2px 8px rgba(192, 192, 192, 0.3);
    }
    
    .medal-3 {
        background: linear-gradient(145deg, #CD7F32, #A0522D);
        color: #fff;
        font-size: 1.3rem;
        box-shadow: 0 2px 8px rgba(205, 127, 50, 0.3);
    }
    
    .rank-normal {
        background: #f0f2f5;
        color: #666;
        box-shadow: none;
    }

    .table-rank {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        border-radius: 4px;
        font-weight: bold;
        font-size: 1rem;
    }
    
    .table-rank.rank-1 {
        background: linear-gradient(145deg, #FFD700, #FFA500);
        color: #000;
    }
    
    .table-rank.rank-2 {
        background: linear-gradient(145deg, #C0C0C0, #A0A0A0);
        color: #000;
    }
    
    .table-rank.rank-3 {
        background: linear-gradient(145deg, #CD7F32, #A0522D);
        color: #fff;
    }
    
    .table-rank.rank-normal {
        background: #f0f2f5;
        color: #666;
    }

    .brand-logo-table {
        width: 120px;
        height: 40px;
        object-fit: contain;
        object-position: left;
    }

.table-responsive {
    border-radius: 12px;
    background: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    overflow: hidden;
}

.table {
    margin-bottom: 0;
}

.table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: 1rem;
    border: none;
}

.table td {
    padding: 1rem;
    vertical-align: middle;
    border-color: rgba(0,0,0,0.05);
}

.brand-logo-table {
    width: 120px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .table {
        /* Enable horizontal scroll for very small screens */
        min-width: 500px;
    }
    
    .table th, .table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .brand-logo-table {
        max-height: 25px;
    }
    
    /* Hide less important columns on mobile */
    .table .hide-mobile {
        display: none;
    }
    
    /* Make rank column narrower */
    .table td:first-child {
        width: 50px;
        padding-left: 0.5rem;
    }
    
    /* Adjust button size */
    .table .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Rank badge styles */
.table-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .table-rank {
        width: 24px;
        height: 24px;
        font-size: 0.9rem;
    }
}