/* ==========================================================================
   Vnet27 Frontend Color Theme: Midnight Navy Blue & Golden Yellow
   Palette:
   - Midnight Navy Blue : #25253F (Headers & Top Sections)
   - Golden Yellow      : #F2D62E (Buttons & Highlights)
   - White              : #FFFFFF (Cards & Backgrounds)
   - Charcoal Black     : #171717 (Text & Labels)
   - Light Grey         : #F4F4F6 (Subtle Backgrounds)
   ========================================================================== */

:root {
    --theme-navy: #25253F;
    --theme-gold: #F2D62E;
    --theme-white: #FFFFFF;
    --theme-charcoal: #171717;
    --theme-light-grey: #F4F4F6;
}

/* 1. Subtle Backgrounds & Page Canvas (#F4F4F6) */
html, body {
    background-color: var(--theme-light-grey) !important;
    color: var(--theme-charcoal);
}

.wrapper,
.wrapper.inner {
    background-color: var(--theme-light-grey) !important;
}

/* 2. Headers & Top Sections (#25253F) */
.home-top-nav.has-bg > div,
.top-nav-general.nav-brand,
.top-nav-left-right,
.tom.auth > div,
.home-landing,
.my > .top,
.my > div:first-child,
.task,
.team > div:first-child,
.vip > div:first-child,
.recharge-header,
.pay-header {
    background-color: var(--theme-navy) !important;
    color: var(--theme-white) !important;
}

.home-landing,
.my > .top,
.task,
.tom.auth > div {
    background-image: linear-gradient(160deg, #25253F 0%, #1d1d33 100%) !important;
}

/* 3. Primary Buttons & Highlights (#F2D62E with #171717 text) */
.tom.auth > div > .title + div > div.tabs + div.form > .action-btn,
.action-btn,
.btn-gold,
.btn-submit,
.confirm-btn,
button.primary-btn,
.recharge .confirm-recharge-btn,
.withdraw .withdraw-btn,
.product-buy-btn,
.task-claim-btn {
    background-color: var(--theme-gold) !important;
    color: var(--theme-charcoal) !important;
    border-color: var(--theme-gold) !important;
    font-weight: 700 !important;
}

.tom.auth > div > .title + div > div.tabs + div.form > .action-btn:hover,
.action-btn:hover {
    filter: brightness(0.96);
}

/* Auth Tabs & Active Highlights */
.tom.auth > div > .title + div > div.tabs > a.active,
.tom.auth > div > .title + div > div.tabs > div.active {
    color: var(--theme-navy) !important;
    border-bottom-color: var(--theme-gold) !important;
}

/* 4. Bottom Navigation Bar */
.nav-b > div {
    background-color: var(--theme-white) !important;
    border-top: 1px solid rgba(37, 37, 63, 0.12) !important;
}

.nav-b > div > * > :first-child,
.nav-b > div > * > :last-child {
    color: #6b7280;
}

.nav-b > div > *.active > :first-child {
    color: var(--theme-navy) !important;
}

.nav-b > div > *.active > :last-child {
    color: var(--theme-navy) !important;
    font-weight: 700;
}

/* 5. Cards & Surfaces (#FFFFFF) */
.tom.auth > div > .title + div,
.my > .my-links,
.other-links,
.main-links,
.card-white {
    background-color: var(--theme-white) !important;
}

/* Main Links on Home (Deposit / Withdraw Pills) */
.main-links > *:nth-child(1) {
    background-color: var(--theme-navy) !important;
    color: var(--theme-white) !important;
}

.main-links > *:nth-child(2) {
    background-color: var(--theme-gold) !important;
    color: var(--theme-charcoal) !important;
}

.main-links > *:nth-child(2) p,
.main-links > *:nth-child(2) iconify-icon {
    color: var(--theme-charcoal) !important;
}

/* Subtle Inputs & Form Controls */
.tom.auth > div > .title + div > div.tabs + div.form > label > div:first-of-type + div,
.form-control-subtle {
    background-color: var(--theme-light-grey) !important;
    color: var(--theme-charcoal) !important;
}

/* Modal Containers & Visible Close Button */
.modal.lang > div,
.modal.welcome > div > div:first-of-type,
.modal-box {
    background-color: var(--theme-white) !important;
    color: var(--theme-charcoal) !important;
}

.modal.welcome > div {
    background-color: transparent !important;
}

.modal.welcome > div > div:last-of-type button {
    background-color: var(--theme-navy) !important;
    color: var(--theme-gold) !important;
    border: 2px solid var(--theme-gold) !important;
    border-radius: 9999px !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
}

.modal.welcome > div > div:first-of-type > p:first-of-type + input + button {
    background-color: var(--theme-gold) !important;
    color: var(--theme-charcoal) !important;
    font-weight: 700 !important;
}

/* Home Other-Links Tiles (VIP List, Spin, About, Bank, Q&A) */
.other-links > div:first-child > *,
.other-links > div:last-child > * {
    background-color: var(--theme-light-grey) !important;
    border: 1px solid rgba(37, 37, 63, 0.08) !important;
}

.other-links > div:first-child > * > div:first-of-type,
.other-links > div:last-child > * > div {
    background-color: var(--theme-navy) !important;
    color: var(--theme-gold) !important;
}

.other-links > div:first-child > * > div:first-of-type + p,
.other-links > div:last-child > * > div + p {
    color: var(--theme-charcoal) !important;
    font-weight: 600 !important;
}

/* Accent Links */
.tom.auth > div > .title + div > div.tabs + div.form > div:last-of-type > p > a {
    color: var(--theme-navy) !important;
    font-weight: 700;
}

/* Golden Highlight Badges & Marquee */
.marquee {
    background-color: var(--theme-white) !important;
    color: var(--theme-charcoal) !important;
    border: 1px solid rgba(37, 37, 63, 0.12) !important;
}

.marquee iconify-icon {
    color: var(--theme-navy) !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar-track {
    background-color: var(--theme-light-grey) !important;
}
::-webkit-scrollbar-thumb {
    background-color: var(--theme-navy) !important;
    border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
    background-color: var(--theme-gold) !important;
}

/* Tabs Across All Pages (Product, Transaction, Financial, Team, Invite) */
.storage .tabs > *.active,
.wealth .tabs > *.active,
.team .tabs > *.active {
    background-color: var(--theme-gold) !important;
    color: var(--theme-charcoal) !important;
    font-weight: 700 !important;
}

/* All Primary Submit / Action Buttons Across Frontend Pages */
.deposit button.submit,
.withdraw button.submit,
.withdraw .btn-withdraw,
.checkin button,
.team button,
.invite button,
.job button,
.task2 button,
.modal.lang > div > div:last-of-type > *.active {
    background-color: var(--theme-gold) !important;
    color: var(--theme-charcoal) !important;
    font-weight: 700 !important;
}

/* Team & Product Level Cards (.kadi, .kikadi) */
.kadi,
.kikadi {
    background-color: var(--theme-white) !important;
    border: 1px solid rgba(37, 37, 63, 0.1) !important;
    color: var(--theme-charcoal) !important;
}

.kadi > div > div,
.kikadi > p:first-of-type {
    background-color: var(--theme-navy) !important;
    color: var(--theme-gold) !important;
}

.kikadi > p:first-of-type + p {
    color: var(--theme-navy) !important;
}

/* Blog, News, About, FAQ, Help Center Cards */
.news .items > div,
.news .about > div,
.help-center .places > div {
    background-color: var(--theme-white) !important;
    color: var(--theme-charcoal) !important;
}

.help-center .places > div > div:first-child {
    color: var(--theme-navy) !important;
}

/* Top Nav General */
.top-nav-general {
    background-color: var(--theme-navy) !important;
    color: var(--theme-white) !important;
}

