/* =========================================
   1. GENERAL RESET & SCROLLBAR
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #041a0b; 
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #d1a848, #f3e092);
    border-radius: 10px;
}

/* =========================================
   2. BODY & GLOBAL OVERLAYS
   ========================================= */
body {
    font-family: 'Poppins', sans-serif;
    font-family: 'Montserrat', sans-serif; 
    background-color: #146321;
    background-image: 
        url('../images/fake-brick.webp'), 
        radial-gradient(circle at center, rgba(10, 43, 26, 0.7) 0%, rgba(5, 20, 13, 1) 100%);
    color: white;
    line-height: 1.6;
    scroll-behavior: smooth;
    letter-spacing: 1px;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle, 
        transparent 40%, 
        rgba(0, 0, 0, 0.9) 100%
    );
    pointer-events: none;
    z-index: 999;
}

.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

/* =========================================
   3. NAVIGATION (NAVBAR)
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(210, 160, 50, 0.2);
    
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    
    height: 70px;
    padding: 0 5%;
}

.logo-container {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-logo-img {
    height: 40px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.5));
    transition: transform 0.3s ease;
}

.nav-logo-img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.9rem;
    transition: 0.3s;
}

.nav-links li a:hover {
    color: #d4af37;
}

/* =========================================
   4. TITLES & GLOBAL TEXT STYLES
   ========================================= */
.gold-text, h2.gold-text {
    font-size: 3rem;
    background: linear-gradient(
        to right, 
        #bf953f, 
        #fcf6ba, 
        #b38728, 
        #fbf5b7, 
        #aa771c
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shine 8s linear infinite;
    font-weight: bold;
    text-transform: uppercase;
    filter: drop-shadow(0 0 5px rgba(243, 224, 146, 0.3));

    font-family: 'Cinzel', serif;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.gold-text-small {
    background: linear-gradient(to bottom, #bf953f 0%, #fcf6ba 50%, #aa771c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.section-subtitle {
    color: #ccc;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.gold-text, h2.gold-text {
    display: block;
    width: 100%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   5. SECTIONS & HOME
   ========================================= */
.section {
    padding: 50px 10%;
    min-height: 100vh;
    position: relative;
}

.home-section {
    position: relative;
    width: 100%;
    overflow: hidden; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.home-image img {
    width: 100%;
    max-width: 800px;
    height: auto;
    aspect-ratio: 600 / 600;
    display: block;
    
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 80%);
    filter: drop-shadow(0 0 10px rgba(255, 238, 0, 0.8));
    border-radius: 10px;
}


.home-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* =========================================
   6. DEPOSITS & REDEEMS (FORMS)
   ========================================= */
#deposits, #redeems {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* padding: 60px 20px; */
    overflow: hidden;
    justify-content: center;
}

#deposits form, #redeems form, .single-form{
    width: 100%;
    max-width: 400px;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    background: rgba(0, 0, 0, 0.4);
    
    border: 2px solid transparent;
    background: 
        linear-gradient(#05140d, #05140d) padding-box,
        linear-gradient(145deg, #bf953f, #fcf6ba, #aa771c) border-box;
    backdrop-filter: blur(10px);
}

#deposits .grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
    max-width: 900px;
    width: 100%;
}

.input-group {
    text-align: left;
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    color: #d4af37;
    font-size: 0.8rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

input, select, .single-form input, .single-form select, #deposits input, #deposits select, #redeems input, #redeems select {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: white;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: 0.3s;
    display: block;
    box-sizing: border-box;
}

#deposits form select, #redeems form select {
    font-size: 1rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23d4af37' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
}

#deposits form select option, #redeems form select option {
    background-color: #05140d;
    color: white;
    padding: 10px;
}

#deposits form select option:disabled {
    color: rgba(255, 255, 255, 0.3);
}

/* Ховер ефекти форми */
#deposits form input:hover, #deposits form select:hover, #redeems form input:hover, #redeems form select:hover {
    border-color: #fcf6ba; 
    background-color: rgba(255, 255, 255, 0.1); 
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* =========================================
   7. BUTTONS
   ========================================= */
.btn-gold {
    background: linear-gradient(45deg, #d4af37, #f9e29c);
    color: #000;
    padding: 12px 25px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-gold:hover {
    box-shadow: 0 0 20px rgba(243, 224, 146, 0.6);
    filter: brightness(1.2);
    transform: scale(1.05);
}

.btn-gold-large {
    width: 100%;
    padding: 15px;
    margin-top: 10px;
    background: linear-gradient(45deg, #d4af37, #fcf6ba);
    border: none;
    border-radius: 5px;
    color: black;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
}

.btn-gold-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

#deposits button, #redeems button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #d4af37, #fcf6ba);
    border: none;
    border-radius: 5px;
    color: #000;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s ease;
}

#deposits button:hover, #redeems button:hover {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
}

.btn-gold-small {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(45deg, #d4af37, #f9e29c);
    color: #000;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem;
    border-radius: 5px;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-gold-small:hover {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
    transform: scale(1.05);
}

.btn-play {
    background: linear-gradient(45deg, #bf953f, #fcf6ba, #aa771c);
    color: #000;
    border: none;
    padding: 12px 30px;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.slide-up-btn {
    display: inline-block;
    position: relative;
    height: 55px;
    width: 200px;
    line-height: 55px;
    background: linear-gradient(45deg, #d4af37, #f9e29c);
    color: #000;
    text-transform: uppercase;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    overflow: hidden;
    text-align: center;
    margin-top: 25px;
}

.btn-text-container {
    display: block;
    height: 100%;
    transition: transform 0.3s ease;
}

.text-primary, .text-hover {
    display: block;
    height: 55px;
    width: 100%;
}

.slide-up-btn:hover .btn-text-container {
    transform: translateY(-55px);
}

/* =========================================
   8. DEPOSIT SPECIFICS (QR & WALLET)
   ========================================= */
#bonusBox {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Поравнање лево */
    gap: 10px;
    width: 100%;
    opacity: 0;
    max-height: 0;
    visibility: hidden;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
}

#bonusBox.visible {
    opacity: 1;
    max-height: 50px;
    visibility: visible;
    margin: 15px 0;
}

/* ОВАЈ ДЕО ФИКСИРА ВЕЛИЧИНУ */
#bonusEnabled {
    -webkit-appearance: none;
    appearance: none;
    
    /* Стриктно дефинисане димензије */
    width: 18px !important; 
    height: 18px !important;
    flex-shrink: 0; /* Спречава flexbox да га развуче */
    
    border: 2px solid #d4af37;
    border-radius: 3px;
    background: transparent;
    cursor: pointer;
    position: relative;
    margin: 0;
}

#bonusEnabled:checked {
    background: #d4af37;
}

#bonusEnabled:checked::after {
    content: '✔';
    position: absolute;
    color: #000;
    font-size: 12px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#bonusBox label {
    color: #fff;
    cursor: pointer;
    user-select: none;
    font-size: 0.95em;
}

.info-q-icon {
    color: #d4af37;
    font-size: 1.1em;
    cursor: help;
}

.wallet-address {
    background: #111;
    padding: 10px;
    font-family: monospace;
    cursor: pointer;
    text-align: center;
    border: 1px dashed #d4af37;
}

.trust-badges {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    font-size: 0.75rem;
    color: rgba(243, 224, 146, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   9. REDEEM SPECIFICS (ILLUSTRATION)
   ========================================= */
.redeem-container {
    position: relative;
    z-index: 1;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.redeem-illustration {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250%;
    height: 220%;
    background: url('../images/RedeemIllustration.webp') no-repeat center center;
    background-size: contain;
    z-index: -1;
    pointer-events: none;
    filter: drop-shadow(0 0 20px rgba(0,0,0,0.5));
    opacity: 0.9;
    filter: drop-shadow(0 0 10px rgba(255, 238, 0, 0.8));
}

/* =========================================
   10. CARDS & GRID
   ========================================= */
/* ПОНАВЉАЊЕ: .grid-container је имао две различите дефиниције */
.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    /* Друга дефиниција */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    padding: 20px;
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.offer-card {
    position: relative;
    background: linear-gradient(145deg, #0a1f16, #05140d);
    border-radius: 12px;
    padding: 2px;
    transition: all 0.4s ease;
    cursor: pointer;
    overflow: hidden;
}

.offer-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(145deg, #bf953f, #fcf6ba, #aa771c);
    z-index: 0;
}

.card-inner {
    position: relative;
    background: #05140d;
    border-radius: 10px;
    padding: 40px 20px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    /* Додаци из другог блока */
    padding: 20px;
    width: 100%;
    box-shadow: 
        inset 0 0 75px rgba(0, 0, 0, 0.9), 
        inset 0 0 10px rgba(0, 0, 0, 0.7);
}

.platform-name {
    font-family: 'Cinzel', serif;
    color: #fcf6ba;
    font-size: 1.4rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.platform-games {
    color: #ccc;
    font-size: 0.85rem;
    margin-bottom: 25px;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 1px;
}

.games-list {
    color: #e0e0e0;
    font-size: 0.9rem;
    margin-bottom: 25px;
    letter-spacing: 1px;
    opacity: 0.8;
}

.offer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.1);
    /* Други ховер */
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.2);
}

.offer-card:hover .btn-play {
    transform: scale(1.05);
    background: linear-gradient(45deg, #fcf6ba, #bf953f);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.offer-card::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(30deg);
    transition: 0.5s;
    z-index: 2;
}

.offer-card:hover::after {
    left: 120%;
}

/* =========================================
   11. ACCORDIONS (FAQ & OFFERS)
   ========================================= */
.faq-item, .offer-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.3);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item summary, .offer-item summary {
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
    color: #fff;
}

.faq-item summary::after, .offer-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    color: #d4af37;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item[open], .offer-item[open] {
    background: rgba(212, 175, 55, 0.07);
    border: 1px solid #d4af37;
}

.faq-item[open] summary::after, .offer-item[open] summary::after {
    content: '-';
    transform: rotate(180deg);
}

.faq-answer, .offer-content {
    padding: 0 20px 20px 20px;
    color: #e0e0e0;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.faq-item:hover, .offer-item:hover {
    border-color: #d4af37;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

summary {
    font-weight: bold;
    cursor: pointer;
    color: #d4af37;
}

/* =========================================
   12. FOOTER & BRANDING
   ========================================= */
.brand-footer-container {
    text-align: center;
    padding: 60px 20px;
    background: transparent;
}

.brand-logo-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.4));
    transition: transform 0.3s ease;
}

.brand-logo-img:hover {
    transform: scale(1.02);
}

.monarch-footer {
    position: relative;
    padding: 60px 20px 30px;
    background: #020d06; 
    border-top: 1px solid rgba(210, 160, 50, 0.2);
    overflow: hidden;
    text-align: center;
}

.monarch-footer::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to right, #000 0%, transparent 20%, transparent 80%, #000 100%);
    pointer-events: none;
}

.footer-logo {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.social-links a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
}

.social-item {
    color: rgba(243, 224, 146, 0.6);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    padding: 5px 10px;
}

.social-item:hover {
    color: #f3e092;
    text-shadow: 0 0 10px rgba(243, 224, 146, 0.5);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
    position: relative;
    z-index: 2;
}

.copyright {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.copyright span {
    color: #d1a848; 
    font-weight: bold;
}

/* =========================================
   13. KEYFRAMES & ANIMATIONS
   ========================================= */
@keyframes shine {
    0% { background-position: 0% center; }
    100% { background-position: 100% center; }
}

@keyframes sweep {
    0% { left: -100%; }
    100% { left: 200%; }
}

@keyframes randomFloat {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.6; }
    50% {
        transform: translate(-2%, -5%) rotate(2deg);
    }
    90% { opacity: 0.6; }
    100% {
        transform: translate(-4%, -10%) rotate(4deg);
        opacity: 0;
    }
}

.particles-container::before,
.particles-container::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    opacity: 0;
    animation: randomFloat 20s linear infinite;
}

.particles-container::before {
    background-image: 
        radial-gradient(1.5px 1.5px at 20px 30px, #f3e092, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 50px 100px, #d1a848, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 120px 150px, #fceabb, rgba(0,0,0,0)),
        radial-gradient(1.2px 1.2px at 200px 50px, #f3e092, rgba(0,0,0,0));
    background-size: 250px 250px;
    opacity: 0.5;
}

.particles-container::after {
    background-image: 
        radial-gradient(2.5px 2.5px at 80px 10px, #f3e092, rgba(0,0,0,0)),
        radial-gradient(1.8px 1.8px at 150px 180px, #d1a848, rgba(0,0,0,0)),
        radial-gradient(3px 3px at 220px 90px, #fceabb, rgba(0,0,0,0));
    background-size: 400px 400px;
    animation-duration: 35s;
    filter: blur(0.5px);
    opacity: 0.3;
}

/* =========================================
   14. RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================= */
@media (max-width: 768px) {
    .nav-logo-img { height: 35px; }
    .navbar { height: 60px; padding: 1rem; }
    .nav-links { display: none; }
    
    .redeem-illustration { width: 200%; height: 270%; }
    .monarch-footer { padding: 40px 15px 20px; }
    .social-links { flex-direction: column; }
    
    .copyright { font-size: 0.7rem; line-height: 1.5; }
    .home-container { gap: 1px; flex-direction: column; text-align: center; }
    .grid-container { grid-template-columns: 1fr; text-align: center; }
    #deposits .grid-container {
        grid-template-columns: 1fr;
        justify-content: center;
    }
    .home-image img { margin-bottom: 20px; }
    .logo-large { font-size: 1.5rem; }
    
    h2.gold-text { font-size: 2.2rem; margin-bottom: 25px; }
}

@media (max-width: 600px) {
    .redeem-container { padding: 0 20px; }
    .single-form { padding: 25px; }
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(212, 175, 55, 0.3); /* Светло златна */
    border-radius: 50%;
    border-top-color: #d4af37; /* Права златна */
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    color: #d4af37;
    font-size: 14px;
    margin-top: 10px;
    font-family: sans-serif;
}