/* Header Container */
header { 
    background-color: #1a2c38;
    color: white; 
    padding: 0 1.5rem; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    border-bottom: 1px solid #2f4553; 
    height: 60px;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    z-index: 1000;
    left: 0;
    right: 0;
}

/* 1. Left Section (Title) */
.header-left {
    flex: 1; /* Grows to push center content to middle */
    display: flex;
    align-items: center;
}

.site-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 1;
}

.site-logo-link:hover {
    opacity: 0.95;
}

.site-logo-text {
    font-family: "Great Vibes", cursive;
    font-size: 52px;
    line-height: 0.95;
    color: #f7fbff;
    letter-spacing: 0.01em;
    text-rendering: geometricPrecision;
    -webkit-font-smoothing: antialiased;
}

/* 2. Center Section (Wallet) */
.header-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.wallet-container {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #0f212e; 
    border-radius: 4px;
    padding: 2px;
    border: 1px solid #2f4553;
}

.balance-display {
    border: none;
    background: transparent;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.balance-amount {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

.currency-tag {
    background-color: #00e701;
    color: #000;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

.dropdown-arrow {
    color: #b1bad3;
    font-size: 0.6rem;
    margin-left: 5px;
}

.btn-wallet {
    background-color: #2196F3;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-wallet:hover {
    background-color: #42a5f5;
}

/* 3. Right Section (Auth Buttons) */
.header-right {
    flex: 1; /* Grows to push center content to middle */
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.btn-login, .btn-register {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: capitalize;
    transition: background 0.2s ease, transform 0.1s;
    border: none;
    cursor: pointer;
    text-decoration: none; /* Keep links looking like buttons */
}

.btn-login {
    background-color: transparent;
    color: #b1bad3;
}

.btn-login:hover {
    color: #fff;
    background-color: rgba(255,255,255,0.05);
}

.btn-register {
    background-color: #2196F3;
    color: white;
}

.btn-register:hover {
    background-color: #42a5f5;
}

.welcome-text {
    color: #b1bad3;
    font-size: 0.9rem;
    font-weight: 600;
}

.currency-tag.gc {
    background-color: #ffd400;
    color: #1d2600;
}

.currency-tag.sc {
    background-color: #83eb00;
    color: #0f2a1a;
}

.wallet-currency-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 240px;
    border-radius: 10px;
    border: 1px solid #365a70;
    background: #1f3b4a;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
    padding: 6px;
    display: none;
    z-index: 1200;
}

.wallet-currency-menu.open {
    display: block;
}

.wallet-currency-option {
    width: 100%;
    min-height: 44px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #eef9ff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    cursor: pointer;
}

.wallet-currency-option:hover {
    background: #2e5163;
}

.wallet-currency-option.active {
    background: #31576b;
}

.wallet-currency-option.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
    position: relative;
}

.wallet-currency-option.is-disabled:hover {
    background: #304451;
}

.wallet-currency-option.is-disabled::after {
    content: attr(data-coming-soon);
    position: absolute;
    right: 10px;
    bottom: 3px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #d4dde3;
    opacity: 0.8;
}

.wallet-currency-amount {
    font: 700 24px "Barlow Condensed", sans-serif;
}

.wallet-currency-right {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font: 700 16px "Barlow Condensed", sans-serif;
}

.wallet-currency-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font: 700 12px "Space Grotesk", sans-serif;
}

.wallet-dot-gc {
    background: #ffd400;
    color: #1d2600;
}

.wallet-dot-sc {
    background: #83eb00;
    color: #0f2a1a;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 10px;
}

.header-icon-btn {
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    color: #f3fbff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
}

.header-icon-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.profile-menu-wrap {
    position: relative;
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 220px;
    background: #1f3b4a;
    border: 1px solid #3f6074;
    border-radius: 10px;
    padding: 8px;
    display: none;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
    z-index: 1100;
}

.profile-dropdown.is-open {
    display: block;
}

.profile-dropdown a {
    min-height: 38px;
    border-radius: 8px;
    color: #f0f8ff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
    font-size: 16px;
    font-weight: 600;
}

.profile-dropdown a:hover {
    background: #2d5063;
}

.profile-dropdown i {
    width: 18px;
    text-align: center;
    color: #c7ddec;
}

.wallet-modal.hidden {
    display: none;
}

.wallet-modal {
    position: fixed;
    inset: 0;
    z-index: 1400;
}

.wallet-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 20, 30, 0.74);
}

.wallet-modal-panel {
    position: relative;
    width: min(96vw, 520px);
    margin: 44px auto 0;
    border: 1px solid #2f556a;
    border-radius: 12px;
    background: linear-gradient(180deg, #183446 0%, #173243 100%);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    padding: 16px;
    color: #eef7fc;
}

.wallet-modal-header h2 {
    margin: 0;
    font-size: 1.52rem;
    font-family: "Barlow Condensed", sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.wallet-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #d9ebf7;
    cursor: pointer;
    font-size: 16px;
}

.wallet-modal-close:hover {
    background: rgba(255, 255, 255, 0.08);
}

.wallet-modal-tabs {
    margin-top: 14px;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid #244559;
    background: #102939;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
}

.wallet-modal-tab {
    min-height: 44px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #e3f3fd;
    font-size: 1.05rem;
    font-family: "Barlow Condensed", sans-serif;
    cursor: pointer;
}

.wallet-modal-tab.is-active {
    background: #3d6178;
    color: #ffffff;
}

.wallet-modal-panels {
    margin-top: 14px;
}

.wallet-modal-pane {
    display: none;
}

.wallet-modal-pane.is-active {
    display: block;
}

.wallet-modal-balance-card {
    border: 1px solid #2a4d62;
    border-radius: 10px;
    background: #203f51;
    padding: 12px;
}

.wallet-modal-balance-head {
    display: flex;
    justify-content: space-between;
    color: #c8dbe8;
    font-size: 1.05rem;
    font-family: "Barlow Condensed", sans-serif;
    border-bottom: 1px solid #406177;
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.wallet-modal-balance-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 2px;
}

.wallet-modal-balance-row.is-disabled {
    opacity: 0.56;
}

.wallet-modal-currency-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.wallet-modal-coin-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
}

.wallet-modal-coin-dot.gc {
    background: #ffd400;
    color: #1c2500;
}

.wallet-modal-coin-dot.sc {
    background: #83eb00;
    color: #113119;
}

.wallet-modal-currency-copy {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
}

.wallet-modal-currency-copy strong {
    font-size: 1.5rem;
    line-height: 1;
    font-family: "Barlow Condensed", sans-serif;
}

.wallet-modal-currency-copy small {
    font-size: 1rem;
    line-height: 1;
    color: #c1d9e9;
    font-family: "Barlow Condensed", sans-serif;
}

.wallet-modal-amount {
    font-size: 2rem;
    line-height: 1;
    font-family: "Barlow Condensed", sans-serif;
    color: #f4fbff;
}

.wallet-modal-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 16px;
}

.wallet-modal-btn {
    min-height: 42px;
    border-radius: 10px;
    border: 1px solid #466073;
    font-size: 1.08rem;
    font-family: "Barlow Condensed", sans-serif;
    cursor: pointer;
    color: #eaf5ff;
}

.wallet-modal-btn-primary {
    background: #1e83f2;
    border-color: #2b8ef8;
    color: #ffffff;
}

.wallet-modal-btn-primary:hover {
    background: #2d92ff;
}

.wallet-modal-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.wallet-bonus-block {
    display: grid;
    gap: 8px;
}

.wallet-bonus-label {
    color: #d5e8f4;
    font-size: 1rem;
    font-family: "Barlow Condensed", sans-serif;
}

.wallet-bonus-value-row {
    min-height: 38px;
    border: 1px solid #386077;
    border-radius: 8px;
    background: #1b394b;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    color: #eaf6ff;
}

.wallet-bonus-value-row strong {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.55rem;
    line-height: 1;
}

.wallet-bonus-value-row.is-disabled {
    opacity: 0.62;
}

.wallet-timer-title {
    margin: 14px 0 8px;
    text-align: center;
    color: #deedf7;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.1rem;
}

.wallet-timer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    justify-items: center;
}

.wallet-timer-cell {
    width: 100%;
    min-height: 58px;
    border-radius: 8px;
    border: 1px solid #3c6278;
    background: #35586d;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #eef8ff;
    font-family: "Barlow Condensed", sans-serif;
}

.wallet-timer-cell strong {
    font-size: 1.6rem;
    line-height: 1;
}

.wallet-timer-cell span {
    font-size: 0.9rem;
    line-height: 1;
    margin-top: 4px;
}

.wallet-claim-btn {
    margin: 12px auto 0;
    display: block;
    width: 100%;
    max-width: 430px;
}

.wallet-topup-copy {
    margin: 0 0 12px;
    color: #d8ebf7;
    font-size: 1.05rem;
    font-family: "Barlow Condensed", sans-serif;
}

.wallet-topup-status {
    margin: 12px 0 8px;
    color: #cfe5f5;
    font-size: 0.95rem;
    font-family: "Barlow Condensed", sans-serif;
}

.wallet-topup-timer {
    grid-template-columns: repeat(2, 1fr);
}

.vault-modal.hidden {
    display: none;
}

.vault-modal {
    position: fixed;
    inset: 0;
    z-index: 1410;
}

.vault-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 20, 30, 0.74);
}

.vault-modal-panel {
    position: relative;
    width: min(96vw, 520px);
    margin: 44px auto 0;
    border: 1px solid #2f556a;
    border-radius: 12px;
    background: linear-gradient(180deg, #183446 0%, #173243 100%);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    padding: 16px;
    color: #eef7fc;
}

.vault-modal-header h2 {
    margin: 0;
    font-size: 1.52rem;
    font-family: "Barlow Condensed", sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.vault-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #d9ebf7;
    cursor: pointer;
    font-size: 16px;
}

.vault-modal-close:hover {
    background: rgba(255, 255, 255, 0.08);
}

.vault-modal-tabs {
    margin-top: 14px;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid #244559;
    background: #102939;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
}

.vault-modal-tab {
    min-height: 44px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #e3f3fd;
    font-size: 1.2rem;
    font-family: "Barlow Condensed", sans-serif;
    cursor: pointer;
}

.vault-modal-tab.is-active {
    background: #3d6178;
    color: #ffffff;
}

.vault-balance-label {
    margin: 14px 0 8px;
    color: #d7eaf6;
    font-size: 1.2rem;
    font-family: "Barlow Condensed", sans-serif;
}

.vault-balance-card {
    border: 1px solid #376078;
    border-radius: 9px;
    background: #3f6074;
    min-height: 62px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vault-balance-left {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.vault-coin-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ffd400;
    color: #1d2600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
}

.vault-balance-copy {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
}

.vault-balance-copy strong {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.55rem;
    line-height: 1;
}

.vault-balance-copy small {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1rem;
    line-height: 1;
}

.vault-balance-right {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.vault-balance-right strong {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 2rem;
    line-height: 1;
}

.vault-amount-label {
    display: block;
    margin: 14px 0 6px;
    color: #d7eaf6;
    font-size: 1.2rem;
    font-family: "Barlow Condensed", sans-serif;
}

.vault-amount-wrap {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    border: 1px solid #2f5a72;
    border-radius: 9px;
    overflow: hidden;
    background: #0f2a3a;
}

.vault-amount-wrap input {
    min-height: 44px;
    border: none;
    outline: none;
    background: transparent;
    color: #f4fbff;
    font-size: 2rem;
    line-height: 1;
    font-family: "Barlow Condensed", sans-serif;
    padding: 0 12px;
}

.vault-amount-wrap input::-webkit-outer-spin-button,
.vault-amount-wrap input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.vault-amount-coin {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #ffd400;
    color: #1d2600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin-right: 10px;
}

.vault-max-btn {
    min-width: 66px;
    min-height: 44px;
    border: none;
    border-left: 1px solid #3d6279;
    background: #49697f;
    color: #f3fbff;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.7rem;
    cursor: pointer;
}

.vault-feedback {
    min-height: 20px;
    margin: 8px 0 6px;
    color: #d1e6f5;
    font-size: 0.96rem;
    font-family: "Barlow Condensed", sans-serif;
}

.vault-submit-btn {
    width: 100%;
    min-height: 46px;
    border: 1px solid #2f8ef8;
    border-radius: 10px;
    background: #1e83f2;
    color: #ffffff;
    font-size: 1.45rem;
    font-family: "Barlow Condensed", sans-serif;
    cursor: pointer;
}

.vault-submit-btn.is-retrieve {
    border-color: #0a8a1e;
    background: #028f11;
}

.vault-submit-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.statistics-modal.hidden {
    display: none;
}

.statistics-modal {
    position: fixed;
    inset: 0;
    z-index: 1420;
}

.statistics-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 20, 30, 0.74);
}

.statistics-modal-panel {
    position: relative;
    width: min(96vw, 500px);
    margin: 34px auto 0;
    border: 1px solid #2f556a;
    border-radius: 12px;
    background: linear-gradient(180deg, #183446 0%, #173243 100%);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    padding: 14px;
    color: #eef7fc;
}

.statistics-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #d9ebf7;
    cursor: pointer;
    font-size: 16px;
}

.statistics-modal-close:hover {
    background: rgba(255, 255, 255, 0.08);
}

.statistics-modal-header h2 {
    margin: 0;
    font-size: 1.7rem;
    font-family: "Barlow Condensed", sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.statistics-user-name {
    margin: 10px 0 2px;
    font-size: 2rem;
    line-height: 1;
    font-family: "Barlow Condensed", sans-serif;
    color: #f2f9ff;
}

.statistics-joined {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1;
    color: #c8dced;
    font-family: "Barlow Condensed", sans-serif;
}

.statistics-vip-chip {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid #4b6c7f;
    background: #2e546b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    color: #f6cc7b;
}

.statistics-vip-row {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.8rem;
}

.statistics-vip-row strong {
    font-size: 2rem;
    line-height: 1;
}

.statistics-vip-bar {
    margin-top: 6px;
    width: 100%;
    min-height: 10px;
    border-radius: 999px;
    border: 1px solid #395a6f;
    background: #102939;
    overflow: hidden;
}

.statistics-vip-bar span {
    display: block;
    height: 100%;
    width: 11.26%;
    background: linear-gradient(180deg, #f6d5ad 0%, #c99f72 100%);
}

.statistics-vip-tier-row {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    color: #d2e6f3;
    font-size: 1.1rem;
    font-family: "Barlow Condensed", sans-serif;
}

.statistics-currency-label {
    margin-top: 10px;
    display: block;
    color: #d8ebf7;
    font-size: 1.2rem;
    font-family: "Barlow Condensed", sans-serif;
}

.statistics-currency-select-wrap {
    margin-top: 6px;
    position: relative;
    border: 1px solid #365f74;
    border-radius: 9px;
    background: #3f6074;
    overflow: hidden;
}

.statistics-currency-select-wrap select {
    width: 100%;
    min-height: 40px;
    border: none;
    background: transparent;
    color: #f4fbff;
    font-size: 2rem;
    line-height: 1;
    font-family: "Barlow Condensed", sans-serif;
    padding: 0 42px 0 48px;
    outline: none;
    appearance: none;
}

.statistics-currency-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #ffd400;
    color: #1d2600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.statistics-currency-select-wrap i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #d9ebf7;
    font-size: 13px;
}

.statistics-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.statistics-card {
    border: 1px solid #2f566c;
    border-radius: 9px;
    background: #203f51;
    padding: 10px;
}

.statistics-card small {
    color: #cce1ef;
    font-size: 1.1rem;
    font-family: "Barlow Condensed", sans-serif;
}

.statistics-card strong {
    display: block;
    margin-top: 6px;
    color: #f4fbff;
    font-size: 2.3rem;
    line-height: 1;
    font-family: "Barlow Condensed", sans-serif;
}

.statistics-amount-coin {
    display: inline-flex;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffd400;
    color: #1d2600;
    font-size: 0.9rem;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    margin-left: 4px;
}

.statistics-request-btn {
    width: 100%;
    min-height: 46px;
    margin-top: 12px;
    border: 1px solid #466073;
    border-radius: 10px;
    background: #3f6074;
    color: #f4fbff;
    font-size: 1.9rem;
    font-family: "Barlow Condensed", sans-serif;
    cursor: pointer;
}

.statistics-request-btn:hover {
    background: #4d6f85;
}

@media (max-width: 640px) {
    .wallet-modal-panel {
        margin-top: 24px;
        padding: 12px;
    }

    .vault-modal-panel {
        margin-top: 24px;
        padding: 12px;
    }

    .statistics-modal-panel {
        margin-top: 24px;
        padding: 12px;
    }

    .statistics-grid {
        grid-template-columns: 1fr;
    }

    .wallet-timer-cell strong {
        font-size: 1.32rem;
    }
}
@import url("https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap");
