.logo {
    font-size: 26px;
    font-weight: bold;
}

.container-fluid.background {
    background-color: #f5f5f5;
    min-height: 730px;
}

.container-fluid.background > .row {
    min-height: 730px;
}

.container-fluid.background .col-lg-6 {
    display: flex;
}

.background .text-center {
    margin-bottom: 20px;
}

.coin-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    flex-grow: 1;
}

.btn-flip {
    min-width: 300px;
    padding: 15px 20px;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
}

.coin {
    cursor: pointer;
    width: 350px;
    height: 350px;
    position: relative;
    transform-style: preserve-3d;
    transform-origin: center;
    animation: none;
}

.coin .face {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    backface-visibility: hidden;
    font-size: 3rem;
    font-weight: bold;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.coin .front {
    background: radial-gradient(circle, #ffd700, #e0c500);
    transform: translateZ(10px);
}

.coin .back {
    background: radial-gradient(circle, #ffd700, #e0c500);
    transform: rotateY(180deg) translateZ(10px);
}

.flipping {
    animation: coin-flip-scale 1s ease-in-out forwards;
}

@keyframes coin-flip-scale {
    0% {
        transform: rotateY(0deg) scale(1) translateY(0);
    }
    50% {
        transform: rotateY(180deg) scale(1.2) translateY(-50px);
    }
    100% {
        transform: rotateY(360deg) scale(1) translateY(0);
    }
}

.faq {
    margin-top: 40px;
}

.modal-content {
    padding: 20px;
}

.stat-card {
    width: 120px;
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.stat-card p {
    margin: 0;
    font-weight: bold;
}

.stat-card .fs-4 {
    font-size: 1.5rem;
}

.step {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #ffd700;
    text-align: center;
    line-height: 40px;
    color: #fff;
    border-radius: 50%;
    margin-bottom: 14px;
    font-weight: 900;
}

.title-section {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

h1.fw-bold {
    font-size: 2.5rem;
    letter-spacing: 0.5px;
    font-weight: 700;
    color: #212529;
}

.ad-header-position {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 8px;
    
    border: 1px solid #dee2e6;
}

.ad-position {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 8px;
    
    border: 1px solid #dee2e6;
}

.coin-area-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    width: 100%;
}

.control-panel-border {
    border: 3px solid #dee2e6 !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12) !important;
    background-color: #ffffff;
    min-height: 630px;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.gx-5 {
    --bs-gutter-x: 3rem;
}

.nav-tabs {
    border-bottom: 3px solid #dee2e6 !important;
    background-color: #f8f9fa;
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 4px solid transparent;
    color: #6c757d;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1.25rem 2rem;
    transition: all 0.2s ease;
}

.nav-tabs .nav-link.active {
    border-bottom: 4px solid #0d6efd;
    color: #0d6efd;
    background-color: #ffffff;
}

.nav-tabs .nav-link:hover {
    border-bottom: 4px solid #0d6efd;
    color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.05);
}

.stat-item {
    border-radius: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.card {
    border-radius: 16px;
    border: 2px solid #e9ecef;
}

.shadow-sm {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
}

.form-control-lg {
    border-radius: 10px;
    border: 2px solid #dee2e6;
    padding: 0.875rem 1.25rem;
    font-size: 1.05rem;
}

.form-control-lg:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

.btn {
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0a58ca 0%, #084298 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(13, 110, 253, 0.4);
}

.btn-outline-secondary {
    border-width: 2px;
    font-weight: 600;
}

.btn-outline-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.col-lg-5, .col-lg-7 {
    transition: all 0.3s ease;
}

.sticky-ads .mb-4:last-child {
    margin-bottom: 0 !important;
}

.bg-light {
    background-color: #f8f9fa !important;
    border: 2px solid #e9ecef;
    border-radius: 10px;
}

.form-label.fw-semibold {
    font-size: 1rem;
    color: #495057;
    margin-bottom: 0.75rem;
}

.form-select,
.form-control {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-select:focus,
.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

.form-check-input {
    width: 3rem;
    height: 1.5rem;
    border: 2px solid #dee2e6;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.nav-tabs {
    flex-shrink: 0;
}

.tab-content {
    padding: 2rem !important;
}

.tab-content h5 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem !important;
}

#settings .mb-3 {
    margin-bottom: 1rem !important;
}

#settings .form-label {
    margin-bottom: 0.5rem;
}

:fullscreen .container-fluid.background .row {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

:-webkit-full-screen .container-fluid.background .row {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

:-moz-full-screen .container-fluid.background .row {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

:-ms-fullscreen .container-fluid.background .row {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .sticky-ads {
        position: sticky !important;
        top: 20px;
    }
}

@media (max-width: 991px) {
    .sticky-ads {
        position: relative !important;
        top: auto !important;
        margin-top: 2rem;
    }
    
    .coin-container {
        
    }
    
    .nav-tabs .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
    
    .card-body {
        padding: 1rem !important;
    }
    
    h1.fw-bold {
        font-size: 1.5rem;
    }
    
    .ad-header-position {
        margin-top: 1rem;
        min-height: 80px;
    }
}

.dice-wrapper {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem auto;
    width: 100%;
    max-width: 1000px;
    padding: 0;
}

.dice-container {
    place-items: center;
    display: grid;
    perspective: 1000px;
    z-index: 1;
}

.dice-box {
    transform-style: preserve-3d;
    transition: transform 1.5s;
}

.dice {
    cursor: pointer;
    display: flex;
    height: 12rem;
    width: 12rem;
    transform-style: preserve-3d;
    position: absolute;
    justify-content: center;
    align-items: center;
    transform: rotateX(-20deg) rotateY(30deg);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.face {
    position: absolute;
    border-width: 0 10em 17.3205em;
    border-style: solid;
    transform-origin: center top;
    opacity: 0.9;
}

.face::before {
    content: attr(data-value);
    position: absolute;
    color: var(--number-color, white);
    font-size: 5em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    bottom: -2.8em;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.face:nth-child(1) {
    transform: rotateY(0deg) rotateX(19.4712deg);
    border-color: transparent transparent var(--dice-color-1, rgba(74, 144, 226, 0.9));
}

.face:nth-child(2) {
    transform: rotateY(120deg) rotateX(19.4712deg);
    border-color: transparent transparent var(--dice-color-2, rgba(231, 76, 60, 0.9));
}

.face:nth-child(3) {
    transform: rotateY(240deg) rotateX(19.4712deg);
    border-color: transparent transparent var(--dice-color-3, rgba(46, 204, 113, 0.9));
}

.face:nth-child(4) {
    transform: rotateX(-90deg) rotateZ(180deg) translateY(-11.547em) translateZ(16.3157em);
    border-color: transparent transparent var(--dice-color-4, rgba(155, 89, 182, 0.9));
}

@keyframes roll {
    0% { 
        transform: rotateX(-20deg) rotateY(30deg) rotateZ(0deg); 
    }
    25% { 
        transform: rotateX(360deg) rotateY(180deg) rotateZ(90deg); 
    }
    50% { 
        transform: rotateX(720deg) rotateY(360deg) rotateZ(180deg);
    }
    75% { 
        transform: rotateX(1080deg) rotateY(540deg) rotateZ(270deg);
    }
    100% { 
        transform: rotateX(1440deg) rotateY(720deg) rotateZ(360deg);
    }
}

.rolling {
    animation: roll 2s cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

.rolling.fast {
    animation-duration: 1s;
}

.rolling.normal {
    animation-duration: 2s;
}

.rolling.slow {
    animation-duration: 3s;
}

.quick-select {
    text-align: center;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}


:root {
    --dice-color-1: #4a90e2;
    --dice-color-2: #e74c3c;
    --dice-color-3: #2ecc71;
    --dice-color-4: #9b59b6;
    --number-color: #ffffff;
}

.dice-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 1rem auto;
    width: 100%;
    max-width: 580px;
    padding: 1rem;
    justify-items: center;
}

.dice-wrapper:has(.dice-container:nth-child(1):last-child) {
    grid-template-columns: 1fr;
    max-width: 200px;
}

.dice-wrapper:has(.dice-container:nth-child(2):last-child) {
    grid-template-columns: repeat(2, 1fr);
    max-width: 350px;
}

.dice-wrapper:has(.dice-container:nth-child(3):last-child) {
    grid-template-columns: repeat(3, 1fr);
    max-width: 480px;
}

.dice-wrapper:has(.dice-container:nth-child(4):last-child) {
    grid-template-columns: repeat(4, 1fr);
    max-width: 580px;
}

.dice-container {
    place-items: center;
    display: grid;
    perspective: 1000px;
    z-index: 1;
    width: 11rem;
    height: 13rem;
}

.dice-wrapper:has(.dice-container:nth-child(5)) .dice-container {
    width: 10rem;
    height: 12rem;
}

.dice-wrapper:has(.dice-container:nth-child(9)) .dice-container {
    width: 9rem;
    height: 11rem;
}

.dice-box {
    transform-style: preserve-3d;
    transition: transform 1.5s;
    height: 100%;
    width: 100%;
}

.dice {
    cursor: pointer;
    display: flex;
    height: 100%;
    width: 100%;
    transform-style: preserve-3d;
    position: absolute;
    justify-content: center;
    align-items: center;
    transform: rotateX(-20deg) rotateY(30deg);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.face {
    position: absolute;
    border-width: 0 5.5em 9.5263em;
    border-style: solid;
    transform-origin: center top;
    opacity: 0.9;
}

.dice-wrapper:has(.dice-container:nth-child(5)) .face {
    border-width: 0 5em 8.6603em;
}

.dice-wrapper:has(.dice-container:nth-child(9)) .face {
    border-width: 0 4.5em 7.7942em;
}

.face::before {
    content: attr(data-value);
    position: absolute;
    color: var(--number-color, white);
    font-size: 2.75em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.dice-wrapper:has(.dice-container:nth-child(5)) .face::before {
    font-size: 2.5em;
}

.dice-wrapper:has(.dice-container:nth-child(9)) .face::before {
    font-size: 2.25em;
}

.face:nth-child(1) {
    transform: rotateY(0deg) rotateX(19.4712deg);
    border-color: transparent transparent var(--dice-color-1, rgba(74, 144, 226, 0.9));
}

.face:nth-child(2) {
    transform: rotateY(120deg) rotateX(19.4712deg);
    border-color: transparent transparent var(--dice-color-2, rgba(231, 76, 60, 0.9));
}

.face:nth-child(3) {
    transform: rotateY(240deg) rotateX(19.4712deg);
    border-color: transparent transparent var(--dice-color-3, rgba(46, 204, 113, 0.9));
}

.face:nth-child(4) {
    transform: rotateX(-90deg) rotateZ(180deg) translateY(-6.351em) translateZ(8.9737em);
    border-color: transparent transparent var(--dice-color-4, rgba(155, 89, 182, 0.9));
}

.dice-wrapper:has(.dice-container:nth-child(5)) .face:nth-child(4) {
    transform: rotateX(-90deg) rotateZ(180deg) translateY(-5.774em) translateZ(8.1578em);
}

.dice-wrapper:has(.dice-container:nth-child(9)) .face:nth-child(4) {
    transform: rotateX(-90deg) rotateZ(180deg) translateY(-5.196em) translateZ(7.3421em);
}

@keyframes roll {
    0% { 
        transform: rotateX(-20deg) rotateY(30deg) rotateZ(0deg); 
    }
    25% { 
        transform: rotateX(360deg) rotateY(180deg) rotateZ(90deg); 
    }
    50% { 
        transform: rotateX(720deg) rotateY(360deg) rotateZ(180deg);
    }
    75% { 
        transform: rotateX(1080deg) rotateY(540deg) rotateZ(270deg);
    }
    100% { 
        transform: rotateX(1440deg) rotateY(720deg) rotateZ(360deg);
    }
}

.rolling {
    animation: roll 2s cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

.rolling.fast {
    animation-duration: 1s;
}

.rolling.normal {
    animation-duration: 2s;
}

.rolling.slow {
    animation-duration: 3s;
}

.quick-select {
    text-align: center;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.quick-select button {
    margin: 0 5px;
    padding: 8px 16px;
    border: 2px solid #5468db;
    background-color: white;
    color: #5468db;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 45px;
    font-weight: 600;
}

.quick-select button:hover {
    background-color: #5468db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(84, 104, 219, 0.3);
}

.quick-select input[type="number"] {
    width: 80px;
    padding: 8px;
    border: 2px solid #5468db;
    border-radius: 4px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

.quick-select input[type="number"]::-webkit-inner-spin-button,
.quick-select input[type="number"]::-webkit-outer-spin-button {
    opacity: 1;
}

.quick-select input[type="number"]:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

.roll-button {
    font-size: 1.5rem;
    padding: 15px 60px;
    border-radius: 50px;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
    border: none;
    transition: all 0.3s ease;
    margin: 20px 0;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
    cursor: pointer;
}

.roll-button:hover {
    background: linear-gradient(135deg, #0a58ca 0%, #084298 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 24px rgba(13, 110, 253, 0.5);
}

.roll-button:active {
    transform: translateY(0) scale(1.02);
}

.stat-item-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.stat-item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.result-display {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.result-display h2 {
    font-weight: 700;
    margin: 0;
}

.content-sections {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 50px;
}

.content-sections section {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.content-sections h4 {
    color: #0d6efd;
    font-weight: 700;
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #e9ecef;
}

.content-sections p {
    color: #495057;
    font-size: 1.05rem;
}

.content-sections ul {
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.content-sections ul li {
    margin-bottom: 0.75rem;
    color: #495057;
    font-size: 1.05rem;
}

.sticky-ads {
    position: sticky;
    top: 20px;
}

.sticky-ads .ad-position {
    margin-bottom: 1.5rem;
}
