/* Reset & Theme Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    background-color: #0b0c0e;
    color: #e2e8f0;
    font-size: 14px;
}

.main-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 15px;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 25px;
    background-color: #0e0f12;
    border-bottom: 1px solid #221f18;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-text {
    color: #f3ca67;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-selector {
    display: flex;
    gap: 4px;
}

.lang-btn {
    background: #18191d;
    border: 1px solid #332d1e;
    color: #8a8d9b;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    cursor: pointer;
}

.lang-btn.active {
    background: #e2b449;
    color: #000;
    font-weight: bold;
    border-color: #e2b449;
}

.menu-toggle {
    background: none;
    border: none;
    color: #e2b449;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Banner */
.hero-banner {
    position: relative;
    width: 100%;
    height: 220px;
    border-radius: 12px;
    border: 1px solid #7c6126;
    background: linear-gradient(135deg, #181510 0%, #302410 50%, #0e0f12 100%);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    padding: 30px;
    box-shadow: inset 0 0 30px rgba(226, 180, 73, 0.15);
}

.hero-tag {
    color: #e2b449;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.hero-title {
    color: #f3ca67;
    font-size: 2.2rem;
    margin: 5px 0;
}

.hero-desc {
    color: #a0a5b5;
    font-size: 0.85rem;
}

/* Category Grid (3 columns) */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.cat-card {
    height: 120px;
    background-color: #15161b;
    border: 1px solid #332d1e;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    cursor: pointer;
    transition: border-color 0.3s;
}

.cat-card:hover {
    border-color: #e2b449;
}

.cat-subtitle {
    font-size: 0.65rem;
    color: #8a8d9b;
}

.cat-card h3 {
    color: #ffffff;
    font-size: 1.1rem;
}

.cat-card p {
    color: #636878;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Section Header */
.section-block {
    margin-bottom: 25px;
}

.section-header {
    color: #e2b449;
    font-size: 1.05rem;
    font-weight: bold;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 2px solid #221d13;
    padding-bottom: 6px;
}

/* Game Camp Grid (5 columns) */
.game-camp-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.camp-card {
    position: relative;
    background: #141519;
    border: 1px solid #262218;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}

.camp-card:hover {
    transform: translateY(-2px);
    border-color: #e2b449;
    box-shadow: 0 0 10px rgba(226, 180, 73, 0.2);
}

.camp-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #1f2128;
}

.badge {
    position: absolute;
    top: 6px;
    z-index: 2;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: bold;
}

.badge-type {
    left: 6px;
    color: #fff;
}

.badge-type.live { background-color: #d97706; }
.badge-type.slot { background-color: #ea580c; }

.badge-count {
    right: 6px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #f3ca67;
    border: 1px solid #443a24;
}

.camp-footer {
    position: relative;
    z-index: 2;
    background: linear-gradient(to top, rgba(0,0,0,0.95), rgba(0,0,0,0.4));
    text-align: center;
    padding: 6px 4px;
    font-weight: bold;
    color: #ffffff;
    font-size: 0.8rem;
}

/* Minigame Tabs & Notice */
.minigame-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.mini-tab-btn {
    background: #15161b;
    border: 1px solid #332d1e;
    color: #e2b449;
    padding: 10px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.signin-notice {
    text-align: center;
    color: #8a8d9b;
    margin: 20px 0;
    font-size: 0.85rem;
}

.signin-link {
    color: #e2b449;
    text-decoration: underline;
    font-weight: bold;
}

/* Real-time Transactions */
.transactions-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.trans-box {
    background-color: #0f1013;
    border-radius: 8px;
    padding: 12px;
    min-height: 180px;
}

.deposit-box { border: 1px solid #1c382b; }
.withdraw-box { border: 1px solid #3d231d; }

.trans-header {
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.deposit-header { color: #2ecc71; }
.withdraw-header { color: #e74c3c; }

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.dot.green { background-color: #2ecc71; }
.dot.orange { background-color: #e74c3c; }

.trans-list {
    list-style: none;
}

.trans-list li {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dashed #1a1c23;
    font-size: 0.8rem;
}

.user-id { color: #8a8d9b; }
.amount { color: #f3ca67; font-weight: bold; }

.trans-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    color: #4a4d5a;
    font-size: 0.85rem;
}

/* Partners Grid (6 columns) */
.partner-section {
    border-top: 1px solid #221d13;
    padding-top: 20px;
    text-align: center;
}

.partner-title {
    color: #e2b449;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.partner-card {
    background: #141519;
    border: 1px solid #221f18;
    border-radius: 6px;
    padding: 12px 5px;
    color: #8a8d9b;
    font-size: 0.75rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Handling */
@media (max-width: 768px) {
    .game-camp-grid { grid-template-columns: repeat(3, 1fr); }
    .partner-grid { grid-template-columns: repeat(3, 1fr); }
    .transactions-container { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .category-grid { grid-template-columns: 1fr; }
    .game-camp-grid { grid-template-columns: repeat(2, 1fr); }
    .partner-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================
   Register Popup
========================== */

.popup-overlay{

    position:fixed;
    top:0;
    left:0;

    width:100%;
    height:100%;

    background:rgba(0,0,0,.75);

    display:flex;
    justify-content:center;
    align-items:center;

    z-index:99999;

    animation:fadeIn .3s;
}

.popup-box{

    width:420px;
    max-width:92%;

    background:#111;

    border:2px solid #e2b449;

    border-radius:15px;

    padding:30px;

    position:relative;

    box-shadow:
    0 0 30px rgba(226,180,73,.3);

}

.popup-header{

    text-align:center;

    margin-bottom:25px;

}

.popup-header h2{

    color:#f3ca67;

    font-size:28px;

    margin-bottom:10px;

}

.popup-header p{

    color:#aaa;

}

.register-form{

    display:flex;
    flex-direction:column;
    gap:15px;

}

.register-form input{

    background:#1b1b1b;

    border:1px solid #333;

    color:white;

    padding:14px;

    border-radius:8px;

    outline:none;

}

.register-form input:focus{

    border-color:#e2b449;

}

.register-btn{

    background:linear-gradient(90deg,#f7d05d,#d7a527);

    color:#000;

    border:none;

    padding:14px;

    font-weight:bold;

    font-size:16px;

    border-radius:8px;

    cursor:pointer;

    transition:.3s;

}

.register-btn:hover{

    transform:scale(1.03);

}

.popup-close{

    position:absolute;

    right:15px;

    top:10px;

    font-size:28px;

    background:none;

    color:white;

    border:none;

    cursor:pointer;

}

.hidden{

    display:none;

}

@keyframes fadeIn{

    from{
        opacity:0;
    }

    to{
        opacity:1;
    }

}