@font-face { font-family: 'Saira Semi Condensed'; src: url('/fonts/saira-400.woff2') format('woff2'); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: 'Saira Semi Condensed'; src: url('/fonts/saira-500.woff2') format('woff2'); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: 'Saira Semi Condensed'; src: url('/fonts/saira-600.woff2') format('woff2'); font-style: normal; font-weight: 600; font-display: swap; }
@font-face { font-family: 'Saira Semi Condensed'; src: url('/fonts/saira-700.woff2') format('woff2'); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/jetbrains-mono.woff2') format('woff2'); font-style: normal; font-weight: 100 800; font-display: swap; }

:root {
    --ui-font: 'Saira Semi Condensed', Arial, sans-serif;
    --ui-mono: 'JetBrains Mono', monospace;
    --ui-page: #f8fafc;
    --ui-surface: #fff;
    --ui-border: #eef1f5;
    --ui-border-strong: #e2e8f0;
    --ui-text: #0f172a;
    --ui-muted: #64748b;
    --ui-accent: #0e5736;
    --ui-accent-soft: #e8f5ed;
    --ui-radius: 19.13px;
    --ui-max: 1360px;
    --ui-shadow: 0 2px 12px -2px rgba(0, 0, 0, .06), 0 1px 3px rgba(0, 0, 0, .04);
    --bg-header: #fff;
    --nav-text-color: #475569;
    --nav-font-size: 12.75px;
    --accent: #0e5736;
    --accent-light: #e8f5ed;
    --bg-body: #f8fafc;
    --bg-card: #fff;
    --text-main: #475569;
    --text-dark: #111827;
    --border: #e2e8f0;
    --shadow: var(--ui-shadow);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    min-height: 100vh;
    background: var(--ui-page);
    color: var(--ui-text);
    font-family: var(--ui-font);
    font-size: 17px;
    font-weight: 500;
    line-height: 25.5px;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
svg { display: block; overflow: hidden; vertical-align: middle; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
img { max-width: 100%; }
.ui-icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    background: var(--bg-header);
    border-bottom: 1px solid rgba(226, 232, 240, .6);
    box-shadow: 0 1px 0 rgba(15, 23, 42, .03);
    backdrop-filter: blur(12px);
}
.site-header * { font-family: var(--ui-font); }
.header-main {
    width: min(calc(100% - 51px), var(--ui-max));
    height: 86px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 17px;
}
.header-brand { height: 55px; display: flex; align-items: center; gap: 11px; min-width: 0; }
.header-logo { display: block; width: 165px; max-width: 100%; height: 55px; object-fit: contain; }
.header-brand-mark {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: var(--ui-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -.5px;
}
.header-brand-name { color: var(--ui-text); font-size: 20px; font-weight: 700; letter-spacing: -.4px; white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: 12.75px; }
.coin-wallet {
    height: 38.25px;
    display: flex;
    align-items: center;
    gap: 8.5px;
    padding: 0 10.63px 0 6.38px;
    border-radius: 999px;
    background: #f6f7f8;
    color: var(--ui-text);
    white-space: nowrap;
}
.coin-wallet:hover { background: #f1f3f5; }
.coin-wallet-icon { position: relative; width: 27.63px; height: 27.63px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.coin-wallet-icon img { width: 27.63px; height: 27.63px; display: block; object-fit: contain; }
.coin-wallet-status { position: absolute; top: -2.13px; right: -3px; width: 6.38px; height: 6.38px; display: flex; }
.coin-wallet-status > span {
    display: block;
    width: 6.38px;
    height: 6.38px;
    border-radius: 999px;
    background: #f7c948;
    box-shadow: 0 0 0 1px rgba(245, 158, 11, .5), 0 1px 2px rgba(0, 0, 0, .05);
    transition: opacity .2s ease, transform .2s ease;
}
.coin-wallet-amount { display: flex; align-items: center; gap: 4.25px; }
.coin-wallet-value { color: #030303; font-family: var(--ui-mono); font-size: 13px; font-weight: 800; line-height: 17.33px; letter-spacing: -.33px; }
.coin-wallet-label { color: #d97706; font-size: 10px; font-weight: 700; line-height: 15px; letter-spacing: .5px; }
.coin-wallet-add {
    width: 21.25px;
    height: 21.25px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 999px;
    background: rgba(16, 185, 129, .15);
    color: #0e5736;
}
.coin-wallet-add svg { width: 12.75px; height: 12.75px; }
.header-action {
    width: 38.25px;
    height: 38.25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: #475569;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.header-action svg { width: 17px; height: 17px; }
.header-action:hover { background: #f1f5f9; color: var(--ui-accent); }
.profile-dropdown { position: relative; }
.profile-button {
    width: 38.25px;
    height: 38.25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: #4f46e5;
    color: #fff;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, .2), 0 1px 3px rgba(0, 0, 0, .1);
    cursor: pointer;
    font-size: 12.75px;
    line-height: 17px;
    font-weight: 700;
    text-transform: uppercase;
}
.profile-menu {
    position: absolute;
    top: calc(100% + 8.5px);
    right: 0;
    z-index: 100;
    width: 340px;
    max-width: calc(100vw - 25.5px);
    padding: 12.75px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(8px);
    border: 1px solid var(--ui-border-strong);
    border-radius: 14.88px;
    background: #fff;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1);
    color: var(--ui-text);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.profile-dropdown.open .profile-menu { visibility: visible; opacity: 1; transform: translateY(0); }
.profile-menu-user { display: flex; align-items: center; gap: 8.5px; height: 42.5px; }
.profile-menu-avatar {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #4f46e5;
    color: #fff;
    font-size: 11px;
    line-height: 16.5px;
    font-weight: 700;
    text-transform: uppercase;
}
.profile-menu-identity { min-width: 0; line-height: 1.35; }
.profile-menu-identity strong { display: block; overflow: hidden; color: var(--ui-text); font-size: 14.88px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.profile-menu-identity span { display: block; color: #475569; font-size: 12.75px; line-height: 17px; }
.profile-menu-divider { height: 1px; margin: 12.75px 0; border-bottom: 1px dashed var(--ui-border-strong); }
.profile-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12.75px; margin-bottom: 8.5px; }
.profile-stat { min-height: 61.48px; padding: 8.5px 12.75px; border: 1px solid var(--ui-border-strong); border-radius: 19.13px; background: rgba(248, 250, 252, .5); }
.profile-stat small { display: block; color: #334155; font-size: 12.75px; line-height: 17px; font-weight: 600; letter-spacing: .64px; text-transform: uppercase; }
.profile-stat strong { display: block; color: #0f172a; font-size: 14.88px; line-height: 21.25px; font-weight: 700; white-space: nowrap; }
.profile-stat strong span { color: #475569; font-size: 12.75px; font-weight: 400; }
.profile-stat .profile-level { overflow: hidden; color: #d97706; text-overflow: ellipsis; white-space: nowrap; }
.profile-quick-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8.5px; text-align: center; }
.profile-quick-link { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8.5px; color: #475569; font-size: 11px; line-height: 16.5px; }
.profile-quick-icon { width: 42.5px; height: 42.5px; display: grid; place-items: center; border-radius: 19.13px; background: rgba(15, 23, 42, .1); color: #334155; transition: background .2s ease, color .2s ease; }
.profile-quick-icon svg { width: 20px; height: 20px; }
.profile-quick-link:hover .profile-quick-icon { background: var(--ui-accent-soft); color: var(--ui-accent); }
.profile-quick-logout .profile-quick-icon { background: rgba(239, 68, 68, .1); color: #dc2626; }
.profile-quick-logout:hover .profile-quick-icon { background: #fee2e2; color: #b91c1c; }

/* Service navigation */
.site-nav {
    position: relative;
    z-index: 40;
    width: 100%;
    background: rgba(248, 250, 252, .82);
    border-bottom: 1px solid rgba(226, 232, 240, .5);
    backdrop-filter: blur(12px);
}
.site-nav-inner {
    width: min(calc(100% - 51px), var(--ui-max));
    height: 56.25px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 6.38px;
}
.site-nav-toggle {
    height: 38.25px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 6.38px;
    padding: 0 12.75px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: rgba(15, 23, 42, .9);
    cursor: pointer;
    font-size: 12.75px;
    line-height: 17px;
}
.site-nav-toggle svg { width: 18px; height: 18px; color: #64748b; }
.site-nav-toggle:hover { background: #f1f5f9; }
.site-nav-links {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6.38px;
    height: 46.75px;
    padding: 4.25px 0;
    overflow-x: auto;
}
.site-nav-link {
    height: 38.25px;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 6.38px;
    padding: 0 14.88px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--nav-text-color);
    cursor: pointer;
    font-size: var(--nav-font-size);
    line-height: 17px;
    font-weight: 600;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease;
}
.site-nav-link svg { width: 18px; height: 18px; flex: 0 0 18px; color: #64748b; }
.site-nav-link:hover { background: #f1f5f9; color: var(--ui-text); }
.site-nav-link.is-active { background: rgba(16, 185, 129, .15); color: #0e5736; }
.site-nav-link.is-active svg { color: #0e5736; }
.nav-earn-chevron { width: 13px !important; height: 13px !important; flex: 0 0 13px !important; transition: transform .2s ease; }
.nav-earn-toggle[aria-expanded="true"] .nav-earn-chevron { transform: rotate(180deg); }
.site-earn-menu {
    position: absolute;
    top: calc(100% + 4.25px);
    left: 160px;
    z-index: 70;
    width: 280px;
    padding: 8.5px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(5px);
    pointer-events: none;
    border: 1px solid var(--ui-border-strong);
    border-radius: 14.88px;
    background: #fff;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.site-earn-menu.is-open { visibility: visible; opacity: 1; transform: translateY(0); pointer-events: auto; }
.site-earn-option {
    display: flex;
    align-items: center;
    gap: 10.63px;
    min-height: 58px;
    padding: 8.5px;
    border-radius: 10.63px;
    color: var(--ui-text);
    transition: background .2s ease;
}
.site-earn-option + .site-earn-option { margin-top: 2.13px; }
.site-earn-option:hover { background: #f8fafc; }
.site-earn-icon { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 36px; border-radius: 10.63px; font-size: 18px; }
.site-earn-icon svg { display: block; width: 18px; height: 18px; }
.site-earn-facebook { background: #e8f1ff; color: #1877f2; }
.site-earn-tiktok { background: #f1f5f9; color: #0f172a; }
.site-earn-copy { min-width: 0; display: flex; flex: 1; flex-direction: column; gap: 1px; }
.site-earn-copy strong { color: var(--ui-text); font-size: 13.75px; line-height: 19px; font-weight: 600; }
.site-earn-copy span { color: #64748b; font-size: 11px; line-height: 15.71px; }
.site-earn-option > svg { width: 15px; height: 15px; flex: 0 0 15px; color: #94a3b8; }
.site-menu-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 60;
    width: min(calc(100% - 51px), var(--ui-max));
    transform: translateX(-50%);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
}
.site-header.menu-open .site-menu-panel { visibility: visible; opacity: 1; pointer-events: auto; }
.site-menu-card {
    width: 280px;
    min-height: 228px;
    margin-top: 4.25px;
    padding: 8.5px;
    border: 1px solid var(--ui-border-strong);
    border-radius: 19.13px;
    background: #fff;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1);
}
.site-menu-grid { display: grid; grid-template-columns: repeat(3, 81.33px); gap: 8.5px; }
.site-menu-item {
    width: 81.33px;
    min-height: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4.25px;
    padding: 6.38px;
    border: 1px solid var(--ui-border-strong);
    border-radius: 14.88px;
    background: #f8fafc;
    color: #475569;
    text-align: center;
    font-size: 10px;
    line-height: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04), 0 1px 2px -1px rgba(0, 0, 0, .04);
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.site-menu-item svg { width: 20px; height: 20px; }
.site-menu-item span { max-width: 100%; }
.site-menu-item:hover { background: #f1f5f9; color: var(--ui-accent); }
.site-menu-item.is-active { border-color: #10b981; border-style: dashed; background: rgba(16, 185, 129, .05); color: #059669; }

/* Page shell and content pages */
body:has(> .site-footer) {
    display: flex;
    flex-direction: column;
}
.main-container {
    flex: 1 0 auto;
    display: flex;
    align-items: stretch;
    background-image: linear-gradient(90deg, rgba(238, 241, 245, .6) 1px, transparent 1px), linear-gradient(rgba(238, 241, 245, .6) 1px, transparent 1px);
    background-size: 50px 50px, 50px 50px;
}
.content-area {
    flex: 1;
    width: 100%;
    max-width: var(--ui-max);
    min-width: 0;
    margin: 0 auto;
    padding: 34px 25.5px;
}
.site-footer {
    flex-shrink: 0;
    width: 100%;
    padding: 17px 0;
    border-top: 1px solid rgba(226, 232, 240, .6);
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(12px);
}
.site-footer * { font-family: var(--ui-font); }
.site-footer-inner {
    width: min(calc(100% - 51px), var(--ui-max));
    min-height: 41.66px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 17px;
    flex-wrap: wrap;
    color: #475569;
    font-size: 12.75px;
    line-height: 17px;
}
.footer-brand { display: flex; align-items: center; gap: 12.75px; flex-wrap: wrap; }
.footer-logo-link { display: flex; align-items: center; }
.footer-logo { display: block; width: 138px; height: 46px; object-fit: contain; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .header-logo, .footer-logo { transition: transform .2s ease, filter .2s ease; }
    .header-brand:hover .header-logo, .footer-logo-link:hover .footer-logo { transform: translateY(-2px) scale(1.03); filter: brightness(1.06); }
}
.footer-brand-name { color: var(--ui-text); font-size: 20px; font-weight: 700; letter-spacing: -.4px; }
.footer-tagline { max-width: 221.44px; color: #475569; }
.footer-divider { color: var(--ui-border-strong); }
.footer-links { display: flex; align-items: center; justify-content: center; gap: 17px; flex-wrap: wrap; text-transform: capitalize; }
.footer-links a { transition: color .2s ease; }
.footer-links a:hover { color: var(--ui-accent); }
.footer-links > span:last-child { color: #94a3b8; }

/* Home */
.site-main {
    flex: 1 0 auto;
    background-image: linear-gradient(90deg, rgba(238, 241, 245, .6) 1px, transparent 1px), linear-gradient(rgba(238, 241, 245, .6) 1px, transparent 1px);
    background-size: 50px 50px, 50px 50px;
}
.page-shell { width: 100%; max-width: var(--ui-max); margin: 0 auto; padding: 34px 25.5px; }
.home-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(300px, 4fr); align-items: start; gap: 25.5px; }
.ui-card { width: 100%; border-radius: var(--ui-radius); background: #fff; box-shadow: var(--ui-shadow); overflow: hidden; }
.notice-card { display: flex; flex-direction: column; gap: 17px; padding: 14.88px 17px; }
.card-heading { display: flex; align-items: flex-start; gap: 8.5px; padding-bottom: 8.5px; border-bottom: 1px solid rgba(226, 232, 240, .5); }
.card-heading-icon { width: 29.75px; height: 29.75px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10.63px; }
.notice-heading-icon { background: #fff8e7; color: #b03a70; }
.card-heading-icon svg { width: 14.88px; height: 14.88px; }
.card-heading-text p { color: #475569; font-size: 11px; line-height: 15.71px; }
.card-heading-text h1 { color: var(--ui-text); font-size: 14.88px; line-height: 21.25px; font-weight: 600; text-transform: capitalize; }
.notice-body { padding-top: 10.63px; }
.notice-item { padding-bottom: 21.25px; margin-bottom: 21.25px; border-bottom: 1px solid var(--ui-border); }
.notice-item:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.notice-meta { display: flex; align-items: center; gap: 6.38px; margin-bottom: 10.63px; color: #64748b; font-size: 12.75px; line-height: 17px; }
.notice-meta strong { color: var(--ui-text); font-weight: 600; }
.notice-meta-icon { color: #1877f2; font-size: 13px; }
.notice-item h2 { margin-bottom: 10.63px; color: var(--ui-text); font-size: 19px; line-height: 25.5px; font-weight: 600; }
.notice-content { color: #475569; font-size: 14.88px; line-height: 1.6; overflow-wrap: anywhere; }
.notice-content > *:first-child { margin-top: 0; }
.notice-content > *:last-child { margin-bottom: 0; }
.notice-content p { margin: 0 0 10px; }
.notice-content ul, .notice-content ol { margin: 8px 0; padding-left: 24px; }
.notice-content li { margin: 4px 0; }
.notice-content img { max-width: 100%; height: auto; border-radius: 10px; }
.notice-content iframe { max-width: 100%; border: 0; }
.notice-empty, .ranking-empty { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 34px 17px; color: #64748b; text-align: center; }
.notice-empty i, .ranking-empty i { color: #f59e0b; font-size: 34px; }
.notice-empty strong, .ranking-empty strong { color: var(--ui-text); font-size: 16px; font-weight: 600; }
.notice-empty span, .ranking-empty span { font-size: 13px; line-height: 1.5; }

.ranking-card { min-height: 440px; padding: 25.5px; }
.ranking-heading { display: flex; align-items: center; justify-content: space-between; gap: 12.75px; padding-bottom: 12.75px; border-bottom: 1px solid rgba(226, 232, 240, .6); }
.ranking-heading-title { display: flex; align-items: center; gap: 8.5px; min-width: 0; }
.ranking-title-emoji { width: 20.42px; height: 21.25px; flex: 0 0 auto; font-size: 18px; line-height: 21.25px; }
.ranking-heading h2 { color: var(--ui-text); font-size: 15px; line-height: 21.43px; font-weight: 700; letter-spacing: -.38px; text-transform: capitalize; white-space: nowrap; }
.ranking-tabs { display: flex; align-items: center; flex: 0 0 auto; padding: 2.13px; border-radius: 10.63px; background: #f5f6f8; }
.ranking-tab { height: 19.95px; display: flex; align-items: center; justify-content: center; padding: 2.13px 10.63px; border: 0; border-radius: 8.5px; background: transparent; color: #64748b; cursor: pointer; font-size: 11px; line-height: 15.71px; white-space: nowrap; }
.ranking-tab.is-active { background: #fff; color: var(--ui-text); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.ranking-list { padding-top: 12.75px; }
.ranking-table-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 0 4.25px; margin-bottom: 6.38px; border-bottom: 1px solid rgba(226, 232, 240, .4); color: #475569; font-size: 11px; line-height: 15.71px; }
.ranking-row { min-height: 51px; display: flex; align-items: center; justify-content: space-between; gap: 12.75px; padding: 8.5px; margin-bottom: 6.38px; border-radius: 14.88px; }
.ranking-row:hover { background: #f8fafc; }
.ranking-member { min-width: 0; display: flex; align-items: center; gap: 10.63px; }
.ranking-medal { width: 29.75px; height: 29.75px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.ranking-medal img { display: block; width: 29.75px; height: 29.75px; object-fit: contain; }
.ranking-avatar { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 999px; background: #4f46e5; color: #fff; font-size: 12.75px; line-height: 17px; font-weight: 700; text-transform: uppercase; }
.rank-avatar-1 { background: #4f46e5; }
.rank-avatar-2 { background: #2563eb; }
.rank-avatar-3 { background: #f59e0b; }
.rank-avatar-4 { background: #7c3aed; }
.rank-avatar-5 { background: #0e5736; }
.ranking-name { overflow: hidden; color: var(--ui-text); font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.ranking-score { flex: 0 0 auto; text-align: right; line-height: 1.35; }
.ranking-score strong { display: block; color: var(--ui-text); font-size: 11px; line-height: 13.75px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ranking-score span { display: block; color: #64748b; font-size: 10px; line-height: 12.5px; font-variant-numeric: tabular-nums; }
.ranking-self { min-height: 52.77px; display: flex; align-items: center; justify-content: space-between; gap: 12.75px; margin-top: 12.75px; padding: 8.5px 12.75px; border: 1px dashed rgba(16, 185, 129, .4); border-radius: 14.88px; background: rgba(16, 185, 129, .05); }
.ranking-self strong { display: block; color: var(--ui-text); font-size: 12.75px; line-height: 17px; font-weight: 600; }
.ranking-self span { display: block; color: #475569; font-size: 11px; line-height: 14.67px; }
.ranking-self-score { flex: 0 0 auto; text-align: right; line-height: 1.25; font-variant-numeric: tabular-nums; }
.ranking-self-score strong { font-size: 11px; line-height: 13.75px; }
.ranking-self-score span { font-size: 10px; line-height: 12.5px; }
.ranking-note { margin-top: 12.75px; color: rgba(71, 85, 105, .8); font-size: 11px; line-height: 15.71px; text-align: center; }

/* Theme customizer */
.theme-customizer-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(15, 23, 42, .38); opacity: 0; transition: opacity .25s ease; }
.theme-customizer-backdrop.is-visible { opacity: 1; }
.theme-customizer { position: fixed; top: 0; right: 0; z-index: 100; width: min(360px, 90vw); height: 100dvh; padding: 24px; background: #fff; color: var(--ui-text); box-shadow: -12px 0 36px rgba(0, 0, 0, .18); transform: translateX(105%); visibility: hidden; transition: transform .25s ease, visibility .25s ease; }
.theme-customizer.is-open { transform: translateX(0); visibility: visible; }
.theme-customizer-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--ui-border-strong); }
.theme-customizer-header .eyebrow { margin-bottom: 5px; color: #64748b; font-size: 11px; font-weight: 700; letter-spacing: .8px; }
.theme-customizer-header h2 { color: var(--ui-text); font-size: 20px; }
.theme-customizer-close { width: 36px; height: 36px; border: 0; border-radius: 8px; background: #f1f5f9; color: var(--ui-text); cursor: pointer; font-size: 18px; }
.theme-customizer-content { display: grid; gap: 18px; padding-top: 22px; }
.theme-setting-row { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #475569; font-size: 14px; font-weight: 600; }
.theme-setting-row input[type="color"] { width: 42px; height: 34px; padding: 2px; border: 1px solid var(--ui-border-strong); border-radius: 7px; background: #fff; cursor: pointer; }
.theme-setting-range { display: grid; gap: 12px; color: #475569; font-size: 14px; font-weight: 600; }
.theme-setting-range span { display: flex; align-items: center; justify-content: space-between; }
.theme-setting-range strong { color: #64748b; font-size: 12px; }
.theme-setting-range input { width: 100%; accent-color: var(--ui-accent); }
.theme-customizer-reset { min-height: 42px; margin-top: 8px; border: 1px solid var(--ui-border-strong); border-radius: 8px; background: #f8fafc; color: var(--ui-accent); font-weight: 700; cursor: pointer; }
body.theme-customizer-open { overflow: hidden; }
.theme-customizer { overflow-y: auto; }
.theme-mode-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 4px; border: 1px solid var(--ui-border-strong); border-radius: 8px; background: var(--ui-page); }
.theme-mode-picker legend { padding: 0 4px; color: var(--ui-text); font-size: 14px; font-weight: 600; }
.theme-mode-picker label { position: relative; cursor: pointer; }
.theme-mode-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.theme-mode-picker span { display: block; padding: 5px 8px; border: 1px solid transparent; border-radius: 6px; color: var(--ui-muted); font-size: 14px; font-weight: 600; text-align: center; }
.theme-mode-picker input:checked + span { border-color: var(--ui-border-strong); background: var(--ui-surface); color: var(--ui-text); }
.theme-mode-picker input:focus-visible + span { outline: 2px solid var(--ui-accent); outline-offset: 2px; }

:root[data-color-mode="dark"] {
    color-scheme: dark;
    --ui-page: #141616;
    --ui-surface: #202323;
    --ui-border: #343939;
    --ui-border-strong: #464c4c;
    --ui-text: #f1f4f3;
    --ui-muted: #c1cbc8;
    --ui-accent-soft: #233a30;
    --ui-dark-positive: #8bd9b1;
    --ui-dark-negative: #ff9fa9;
    --ui-dark-link: #9ecbff;
    --green: var(--ui-dark-positive);
    --green-light: var(--ui-accent-soft);
    --bg-body: var(--ui-page);
    --bg-card: var(--ui-surface);
    --text-main: var(--ui-muted);
    --text-dark: var(--ui-text);
    --border: var(--ui-border-strong);
}
[data-color-mode="dark"] body { background-color: var(--ui-page); color: var(--ui-text); }
[data-color-mode="dark"] :is(.site-main, .main-container, .bg-grid-pattern) { background-image: none; background-color: var(--ui-page); }
[data-color-mode="dark"] .site-header { --bg-header: var(--ui-surface); --nav-text-color: var(--ui-muted); }
[data-color-mode="dark"] :is(.site-footer, .site-nav, .site-menu-card, .site-earn-menu, .profile-menu, .mobile-nav-drawer,
    .theme-customizer, .community-modal-dialog, .ui-card, .api-card, .odp-card, .profile-card, .profile-cover-card,
    .tt-card, .tt-checkout-card, .order-table-wrap, .order-detail-modal, .facebook-toolbar, .facebook-account-card,
    .facebook-modal-dialog, .tiktok-card, .earn-account-card, .earn-stat-item, .earn-section-header,
    .earn-job-grid, .earn-job-card, .earn-modal-panel, .task-history-toolbar, .task-history-item, .task-history-empty) {
    background-color: var(--ui-surface);
    border-color: var(--ui-border);
    color: var(--ui-text);
}
[data-color-mode="dark"] :is(.theme-customizer-close, .theme-customizer-reset, .ranking-tabs, .ranking-tab.is-active,
    .ranking-self, .profile-stat, .profile-quick-icon, .info-box, .facebook-account-drawer, .odp-post-thumb,
    .order-table th, .transfer-history-table th, .api-card pre) {
    background-color: var(--ui-page);
    border-color: var(--ui-border);
    color: var(--ui-text);
}
[data-color-mode="dark"] :is(.site-header .header-action, .coin-wallet, .coin-wallet-value, .footer-brand-name,
    .ranking-name, .ranking-score strong, .ranking-self strong, .notice-content, .notice-item h2, .theme-setting-row,
    .theme-setting-range, .profile-menu-identity strong, .card-title h2, .tt-card-title, .order-table td,
    .odp-order-title, .odp-card-title, .odp-owner, .odp-progress-num, .odp-progress-meta span:last-child,
    .odp-money-row strong, .odp-time-row strong, .earn-job-card-title, .earn-stat-value, .task-history-title,
    .profile-card h2, .profile-summary h1, .api-card h1, .api-card h2) { color: var(--ui-text); }
[data-color-mode="dark"] :is(.site-footer-inner, .footer-tagline, .card-heading-text p, .notice-meta,
    .ranking-table-heading, .ranking-note, .ranking-score span, .theme-customizer-header .eyebrow,
    .theme-setting-range strong, .odp-subtitle, .odp-post-content, .odp-progress-meta, .odp-time-row,
    .odp-money-row, .profile-card .info-label, .api-card p, .task-history-meta) { color: var(--ui-muted); }
[data-color-mode="dark"] :is(.header-action, .site-earn-option, .site-menu-item, .ranking-row):hover { background-color: var(--ui-page); }
[data-color-mode="dark"] :is(.card-heading, .notice-item, .ranking-row, .ranking-table-heading, .order-table th,
    .order-table td, .odp-progress-meta, .odp-time-row, .odp-money-row, .odp-comment-row) { border-color: var(--ui-border); }
[data-color-mode="dark"] :is(main, .earn-modal, .facebook-modal, .order-detail-modal) :is(input:not([type="checkbox"], [type="radio"], [type="hidden"]), textarea, select) {
    background-color: var(--ui-page);
    border-color: var(--ui-border-strong);
    color: var(--ui-text);
}
[data-color-mode="dark"] :is(.transfer-balance strong, .transfer-preview strong, .transfer-history-link, .theme-customizer-reset) { color: #8bd9b1; }
[data-color-mode="dark"] .balance-history {
    --balance-surface: var(--ui-page);
    --balance-ink: var(--ui-text);
    --balance-muted: var(--ui-muted);
    --balance-border: var(--ui-border-strong);
    --balance-divider: var(--ui-border);
    --balance-table-border: var(--ui-border);
    --balance-green-soft: var(--ui-accent-soft);
    color: var(--ui-text);
}
[data-color-mode="dark"] .balance-history :is(.balance-panel, .balance-summary-locked, .balance-toast) { background-color: var(--ui-surface); }
[data-color-mode="dark"] .balance-history :is(.balance-direction, .balance-table thead, .balance-table tbody tr:hover, .balance-summary-icon) { background-color: var(--ui-page); }
[data-color-mode="dark"] .balance-history :is(.balance-credit, .balance-badge:not(.balance-badge-order)) { color: #8bd9b1; }
[data-color-mode="dark"] .balance-history .balance-badge-order { color: #c7b9ff; }
[data-color-mode="dark"] .balance-history .balance-debit { color: #ff9fa9; }
[data-color-mode="dark"] :is(.site-nav-link, .site-nav-toggle, .coin-wallet, .profile-quick-link, .mobile-nav-link):hover { background-color: var(--ui-page); color: var(--ui-text); }
[data-color-mode="dark"] :is(.site-nav-link.is-active, .mobile-nav-link.is-active, .site-nav-link.is-active svg, .coin-wallet-add) { color: #8bd9b1; }
[data-color-mode="dark"] :is(.coin-wallet, .mobile-nav-balance) { background: #2e2b24; box-shadow: inset 0 0 0 1px #615233; }
[data-color-mode="dark"] .coin-wallet:is(:hover, :focus-visible) { background: #3a3326; }
[data-color-mode="dark"] :is(.coin-wallet-value, .mobile-nav-balance strong) { color: #fff7e0; }
[data-color-mode="dark"] :is(.coin-wallet-label, .mobile-nav-balance em) { color: #ffcf73; }
[data-color-mode="dark"] .coin-wallet-add { background: var(--ui-accent-soft); color: var(--ui-dark-positive); }
[data-color-mode="dark"] :is(.ranking-self span, .ranking-tab, .theme-customizer legend, .task-history-heading-copy p, .earn-modal-description) { color: var(--ui-muted); }
[data-color-mode="dark"] :is(.tt-custom-select-trigger, .tt-custom-select-options, .order-platform-tab, .order-view-toggle, .order-refresh-button, .order-search-compact, .earn-job-skip, .odp-copy-code, .odp-comment-toggle) { background-color: var(--ui-surface); border-color: var(--ui-border-strong); color: var(--ui-text); }
[data-color-mode="dark"] :is(.tt-checkout-title, .earn-job-card-title h4, .task-history-title strong, .odp-comment-row strong, .order-status-text) { color: var(--ui-text); }
[data-color-mode="dark"] .order-table-card-view .order-table tbody tr[data-order-platform-row] { background: var(--ui-surface); border-color: var(--ui-border); }

[data-color-mode="dark"] :is(input[type="checkbox"], input[type="radio"]) { accent-color: var(--ui-dark-positive); }
[data-color-mode="dark"] :is(.facebook-select-all, .facebook-account-select) input + .facebook-checkmark { background: var(--ui-page); border-color: #889793; }
[data-color-mode="dark"] :is(.facebook-select-all, .facebook-account-select) input:is(:checked, :indeterminate) + .facebook-checkmark { background: var(--ui-dark-positive); border-color: var(--ui-dark-positive); }
[data-color-mode="dark"] :is(.facebook-select-all, .facebook-account-select) input:checked + .facebook-checkmark::after { border-color: var(--ui-page); }
[data-color-mode="dark"] .facebook-select-all input:indeterminate + .facebook-checkmark::after { background: var(--ui-page); }
[data-color-mode="dark"] :is(.facebook-select-all, .facebook-account-select) input:focus-visible + .facebook-checkmark { outline-color: var(--ui-dark-positive); }

[data-color-mode="dark"] :is(.facebook-account-name, .facebook-select-all, .facebook-stat strong, .facebook-drawer-title,
    .tt-label, .tt-row-val, .tt-checkout-row strong, .order-page-heading h2, .order-code, .order-service, .order-pager-info strong,
    .earn-account-name, .earn-section-header h2, .earn-modal-title, .earn-nick-name, .task-history-heading h1,
    .task-history-nick strong, .info-box strong, .password-form label, .violation-table td, .api-card label) { color: var(--ui-text); }
[data-color-mode="dark"] :is(.facebook-account-uid, .facebook-account-status > span, .facebook-stat small,
    .tt-row-label, .tt-balance-label, .order-table td small, .order-pager-info span, .earn-account-id, .earn-stat-label,
    .task-history-nick, .task-history-reason, .notice-empty, .ranking-empty) { color: var(--ui-muted); }
[data-color-mode="dark"] :is(.facebook-account-ready:not(.is-error), .tt-check-icon, .order-progress-percent, .earn-account-change, .api-eyebrow) { color: var(--ui-dark-positive); }
[data-color-mode="dark"] .api-card .api-eyebrow { color: var(--ui-dark-positive) !important; }
[data-color-mode="dark"] .facebook-account-ready.is-error { color: var(--ui-dark-negative); }
[data-color-mode="dark"] :is(.order-link, .odp-post-link, .task-history-title a) { color: var(--ui-dark-link); }
[data-color-mode="dark"] :is(.facebook-bulk-button, .facebook-action-button:not(.selected), .facebook-drawer-badge, .facebook-drawer-box,
    .tt-reaction-btn, .tt-comment-quantity-value, .tt-select-option, .order-action-btn, .order-pager-page, .order-pager-prev, .order-pager-next,
    .task-history-search, .task-history-account, .task-history-back, .earn-modal-close, .earn-modal-close-btn, .earn-nick-item, .earn-nick-start:not(.selected)) {
    background-color: var(--ui-surface); border-color: var(--ui-border-strong); color: var(--ui-text);
}
[data-color-mode="dark"] :is(.tt-reaction-btn.active, .tt-select-option.selected, .order-platform-tab.active, .order-platform-tab.active strong,
    .order-pager-page.active, .order-view-toggle button.active, .earn-section-actions .earn-tab.active) {
    background-color: var(--ui-accent-soft); border-color: var(--ui-dark-positive); color: var(--ui-dark-positive);
}
[data-color-mode="dark"] :is(.facebook-account-toggle, .facebook-bulk-button, .tt-select-option:not(.selected), .tt-reaction-btn:not(.active), .earn-nick-item, .odp-post-link):hover {
    background-color: var(--ui-border); color: var(--ui-text);
}
[data-color-mode="dark"] :is(.facebook-bulk-button svg, .task-history-search-icon, .task-history-account-chevron) { color: var(--ui-muted); }
[data-color-mode="dark"] :is(.earn-section-actions .earn-tabs, .order-platform-tab strong) { background-color: var(--ui-page); color: var(--ui-muted); }
[data-color-mode="dark"] .earn-section-actions .earn-tab:not(.active) { color: var(--ui-muted); }
[data-color-mode="dark"] :is(.task-history-search, .task-history-account) :is(input, select) { background-color: transparent; }
[data-color-mode="dark"] .task-history-account select option { background-color: var(--ui-surface); color: var(--ui-text); }
[data-color-mode="dark"] :is(main, .earn-modal, .facebook-modal) :is(input, textarea)::placeholder { color: var(--ui-muted); opacity: 1; }

/* Dark-mode states for controls and older page styles with fixed colors. */
[data-color-mode="dark"] {
    --ui-dark-control: #181c1b;
    --ui-dark-control-border: #778681;
    --ui-dark-hover: #343c39;
    --ui-dark-primary: #126143;
    --ui-dark-primary-hover: #17734f;
    --ui-dark-warning: #ffd38c;
}
[data-color-mode="dark"] :is(.site-nav-toggle span, .site-nav-toggle svg, .footer-links a, .footer-links > span,
    .facebook-page-heading h1, .comment-card label, .orders-heading h2, .orders-empty strong,
    .earn-comment-heading h1, .earn-card-heading h2, .earn-jobs-empty strong, .error-404-card h1,
    .tt-balance-val, .order-post-content, .order-view-toggle button, .tt-paste-button) { color: var(--ui-text); }
[data-color-mode="dark"] :is(.footer-divider, .tt-caption, .tt-hint, .order-page-heading p,
    .odp-progress-total, .tiktok-page .eyebrow, .earn-stat-item .earn-stat-label, .earn-comment-heading p:last-child, .earn-card-heading .eyebrow,
    .earn-job-number, .earn-jobs-empty, .earn-like-queue-count, .comment-form small, .orders-page-size,
    .orders-pagination, .orders-empty span, .error-404-card p) { color: var(--ui-muted); }
[data-color-mode="dark"] .rank-avatar-3 { color: #17120a; }
[data-color-mode="dark"] .earn-section-header h2 { color: var(--ui-text) !important; }
[data-color-mode="dark"] :is(.earn-history-link, .earn-job-card-status, .odp-back a, .odp-progress-pct,
    .tt-total-label, .tt-total-amount, .tt-total-discount) { color: var(--ui-dark-positive); }
[data-color-mode="dark"] .order-table td .order-progress .order-progress-percent { color: var(--ui-dark-positive) !important; }
[data-color-mode="dark"] :is(.tt-order-warning, .tt-tag-orange, .earn-job-card-reward) { color: var(--ui-dark-warning); }
[data-color-mode="dark"] :is(.tt-required, .required) { color: var(--ui-dark-negative); }
[data-color-mode="dark"] :is(.facebook-account-badge, .odp-status-badge.running) { color: var(--ui-dark-link); background-color: #23374d; }

[data-color-mode="dark"] :is(.comment-card, .earn-comment-heading, .earn-comment-card, .earn-job-action-panel,
    .earn-job-copy-panel, .earn-like-demo-card, .error-404-card, .facebook-modal-dialog,
    .community-modal-item, .order-detail-content, .order-detail-section, .facebook-modal-form) {
    background-color: var(--ui-surface); border-color: var(--ui-border); color: var(--ui-text);
}
[data-color-mode="dark"] :is(.nick-table th, .violation-table th, .orders-table th, .earn-history-table th) {
    background: var(--ui-dark-control); border-color: var(--ui-border); color: var(--ui-text);
}
[data-color-mode="dark"] :is(.nick-table td, .violation-table td, .orders-table td, .earn-history-table td) {
    border-color: var(--ui-border); color: var(--ui-text);
}
[data-color-mode="dark"] :is(.tt-total-box, .earn-job-copy-heading, .error-404-icon) {
    background: var(--ui-accent-soft); border-color: var(--ui-border-strong); color: var(--ui-dark-positive);
}
[data-color-mode="dark"] .error-404-code { color: var(--ui-dark-positive); }
[data-color-mode="dark"] :is(.tt-tag-orange, .earn-balance) { background: #3e3020; border-color: #8c6433; color: var(--ui-dark-warning); }
[data-color-mode="dark"] .earn-balance strong { color: #fff1d0; }

[data-color-mode="dark"] :is(main, .theme-customizer, .facebook-modal, .earn-modal, .order-detail-modal)
    :is(input:not([type="checkbox"], [type="radio"], [type="hidden"], [type="color"], [type="range"]), textarea, select) {
    background-color: var(--ui-dark-control); border-color: var(--ui-dark-control-border); color: var(--ui-text);
}
[data-color-mode="dark"] :is(main, .facebook-modal, .earn-modal, .order-detail-modal) :is(input, textarea)::placeholder { color: var(--ui-muted); opacity: 1; }
[data-color-mode="dark"] :is(button, a, input, select, textarea, [tabindex]):focus-visible { outline: 2px solid var(--ui-dark-positive); outline-offset: 2px; }
[data-color-mode="dark"] :is(.task-history-search, .task-history-account) :is(input, select) { background-color: transparent; }
[data-color-mode="dark"] :is(.facebook-search, .order-search-compact, .task-history-search, .task-history-account) { border-color: var(--ui-dark-control-border); }

[data-color-mode="dark"] :is(.facebook-filter, .facebook-platform-filter, .tt-action-buttons .tt-tab-button:not(.active),
    .tt-paste-button, .earn-like-demo-button, .orders-refresh, .orders-pagination nav a:not(.current),
    .comment-tab:not(.active), .order-view-toggle button:not(.active), .earn-job-button:not(.earn-job-claim),
    .earn-comment-card .earn-refresh, .nick-action-btn, .theme-customizer-reset) {
    background: var(--ui-dark-control); border-color: var(--ui-dark-control-border); color: var(--ui-text);
}
[data-color-mode="dark"] :is(.facebook-filter, .facebook-platform-filter, .tt-paste-button, .earn-like-demo-button,
    .orders-refresh, .order-view-toggle button:not(.active), .earn-job-button:not(.earn-job-claim)):hover {
    background-color: var(--ui-dark-hover); color: var(--ui-text);
}
[data-color-mode="dark"] :is(.facebook-filter.is-active, .facebook-platform-filter.is-active, .tt-action-buttons .tt-tab-button.active,
    .order-view-toggle button.active, .comment-tab.active, .orders-pagination nav a.current) {
    background: var(--ui-accent-soft); border-color: var(--ui-dark-positive); color: var(--ui-dark-positive); box-shadow: none;
}
[data-color-mode="dark"] :is(.facebook-filter-count, .facebook-platform-filter .facebook-filter-icon) { color: inherit; opacity: 1; fill: currentColor; }
[data-color-mode="dark"] :is(.facebook-add-button, .facebook-add-tiktok-button, .tt-submit-order-btn.ready,
    .btn-save, .btn-save-config, .comment-submit-button, .transfer-submit, .orders-search-button,
    .earn-job-reclaim, .earn-job-done:not(:disabled), .earn-claim-all:not(:disabled), .balance-task-link) {
    background: var(--ui-dark-primary); border-color: var(--ui-dark-primary); color: #fff;
}
[data-color-mode="dark"] :is(.facebook-add-button, .facebook-add-tiktok-button, .tt-submit-order-btn.ready,
    .btn-save, .btn-save-config, .comment-submit-button, .transfer-submit, .orders-search-button,
    .earn-job-reclaim, .earn-job-done, .earn-claim-all, .balance-task-link):hover:not(:disabled) { background: var(--ui-dark-primary-hover); color: #fff; }
[data-color-mode="dark"] :is(.tt-submit-order-btn:not(.ready), .tt-submit-order-btn:disabled, .transfer-submit:disabled,
    .comment-submit-button:disabled, .earn-claim-all:disabled, .earn-job-button.earn-job-waiting,
    .order-pager-prev:disabled, .order-pager-next:disabled, .orders-pagination nav span.disabled) {
    background: var(--ui-dark-hover); border-color: var(--ui-border-strong); color: var(--ui-muted); opacity: 1;
}
.eyebrow { margin-bottom: 8px; color: #64748b; font-size: 11px; font-weight: 800; letter-spacing: 1.2px; }

@media (max-width: 1250px) {
    .site-nav-link { padding: 0 11px; }
    .ranking-heading { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 1050px) {
    .header-main, .site-nav-inner, .site-footer-inner { width: calc(100% - 34px); }
    .header-main { height: 76px; }
    .header-brand { height: 50px; }
    .header-logo { width: 144px; height: 50px; }
    .site-nav-inner { height: 52px; }
    .site-nav-toggle { padding: 0 9px; }
    .site-nav-toggle span { display: none; }
    .home-grid { grid-template-columns: minmax(0, 1fr); }
    .ranking-card { min-height: 0; }
}

@media (max-width: 760px) {
    body { font-size: 15px; line-height: 22px; }
    .header-main { height: 70px; }
    .header-actions { gap: 4px; }
    .coin-wallet { padding-right: 6.38px; }
    .coin-wallet-label, .coin-wallet-add { display: none; }
    .coin-wallet-value { font-size: 12px; }
    .header-brand-name { max-width: 118px; overflow: hidden; font-size: 16px; text-overflow: ellipsis; }
    .header-action, .profile-button { width: 34px; height: 34px; }
    .site-nav-links { height: 44px; }
    .site-nav-link { height: 34px; padding: 0 10px; font-size: 12px; }
    .site-earn-menu { width: min(280px, calc(100vw - 24px)); }
    .site-menu-card { width: 100%; max-width: 280px; }
    .page-shell, .content-area { padding: 16px 12px; }
    .notice-card { padding: 14px; }
    .ranking-card { padding: 16px; }
    .ranking-heading { gap: 8px; }
    .ranking-tabs { width: 100%; }
    .ranking-tab { flex: 1; }
    .ranking-row { padding: 8px 4px; }
    .ranking-self { padding: 8px 10px; }
    .site-footer { padding: 15px 0; }
    .site-footer-inner { align-items: flex-start; flex-direction: column; }
    .footer-links { justify-content: flex-start; gap: 10px 14px; }
}

@media (max-width: 600px) {
    .coin-wallet-status > span { opacity: 0; transform: scale(2); }
    .profile-menu { position: fixed; top: 76px; right: 12px; left: 12px; width: auto; max-width: none; }
    .site-menu-panel { width: calc(100% - 24px); }
    .ranking-medal, .ranking-medal img { width: 25px; height: 25px; }
    .ranking-avatar { width: 29.75px; height: 29.75px; font-size: 11px; }
}

/* Mobile navigation drawer */
.mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(15, 23, 42, .55);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}

.mobile-nav-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    width: 288px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-right: 1px solid var(--ui-border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .2);
    transform: translateX(-100%);
    transition: transform .28s ease;
}

.mobile-nav-drawer.is-open {
    transform: translateX(0);
}

.mobile-nav-header {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-bottom: 1px solid var(--ui-border);
}

.mobile-nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.mobile-nav-brand img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.mobile-nav-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ui-muted);
    cursor: pointer;
}

.mobile-nav-close svg {
    width: 20px;
    height: 20px;
}

.mobile-nav-account {
    padding: 14px 16px;
    border-bottom: 1px solid var(--ui-border);
}

.mobile-nav-account-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-nav-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex: 0 0 36px;
}

.mobile-nav-identity {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.mobile-nav-identity strong {
    font-size: 13px;
    color: var(--ui-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-nav-identity span {
    font-size: 11px;
    color: var(--ui-muted);
}

.mobile-nav-level {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(16, 185, 129, .12);
    color: var(--ui-accent);
    font-weight: 600;
}

.mobile-nav-balance {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(245, 158, 11, .25);
    background: linear-gradient(90deg, rgba(245, 158, 11, .1), #fff, rgba(16, 185, 129, .1));
}

.mobile-nav-balance > span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--ui-muted);
}

.mobile-nav-balance img {
    width: 20px;
    height: 20px;
}

.mobile-nav-balance strong {
    font-size: 13px;
    color: var(--ui-text);
    font-family: var(--ui-mono);
}

.mobile-nav-balance em {
    font-style: normal;
    font-size: 10px;
    color: #d97706;
}

.mobile-nav-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 12px;
}

.mobile-nav-label {
    margin: 0 0 6px;
    padding: 0 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--ui-muted);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--ui-text);
    font-size: 12px;
    font-weight: 500;
}

.mobile-nav-link:hover {
    background: #f8fafc;
}

.mobile-nav-link.is-active {
    background: rgba(16, 185, 129, .1);
    color: var(--ui-accent);
}

.mobile-nav-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #475569;
    flex: 0 0 28px;
}

.mobile-nav-icon svg {
    width: 14px;
    height: 14px;
}

.mobile-nav-icon.home { background: rgba(16, 185, 129, .1); color: #059669; }
.mobile-nav-icon.account { background: rgba(37, 99, 235, .1); color: #2563eb; }
.mobile-nav-icon.earn { background: rgba(16, 185, 129, .1); color: #059669; }
.mobile-nav-icon.history { background: rgba(6, 182, 212, .1); color: #0891b2; }
.mobile-nav-icon.boost { background: rgba(139, 92, 246, .1); color: #7c3aed; }
.mobile-nav-icon.gift { background: rgba(236, 72, 153, .1); color: #db2777; }
.mobile-nav-icon.api { background: rgba(16, 185, 129, .1); color: #059669; }
.mobile-nav-icon.settings { background: rgba(100, 116, 139, .1); color: #64748b; }

.mobile-nav-divider {
    height: 1px;
    margin: 10px 0;
    background: var(--ui-border);
}

.mobile-nav-footer {
    padding: 12px;
    border-top: 1px solid var(--ui-border);
}

.mobile-nav-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    color: #dc2626;
    font-size: 12px;
    font-weight: 500;
}

.mobile-nav-logout i {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(220, 38, 38, .1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-logout svg {
    width: 14px;
    height: 14px;
}

@media (min-width: 769px) {
    .mobile-nav-drawer,
    .mobile-nav-backdrop { display: none !important; }
}

@media (max-width: 768px) {
    .site-nav-links { display: none !important; }
}

/* Global mobile overflow guard */
@media (max-width: 760px) {
    html, body { max-width: 100%; overflow-x: hidden; }
    body { font-size: 15px; line-height: 22px; }
    .main-container, .site-main, .content-area, .page-shell, .site-footer-inner { min-width: 0; max-width: 100%; }
    .content-area, .page-shell { padding: 16px 12px; }
    img, svg, video, canvas, iframe { max-width: 100%; }
    table { max-width: 100%; }
    input, select, textarea, button { max-width: 100%; }
    .site-footer { padding: 14px 0; }
    .site-footer-inner { align-items: flex-start; flex-direction: column; gap: 10px; }
    .footer-links { justify-content: flex-start; gap: 10px 14px; }
    .order-page-area, .order-page, .embedded-order-page { width: 100%; max-width: 100%; min-width: 0; overflow-x: hidden; }
    .order-table-wrap, .orders-table-wrapper, .violation-table-wrapper, .nick-table-wrapper, .admin-table-wrap, .admin-notices-table-wrap, .table-wrap { max-width: 100%; overflow-x: auto; }
    .order-table, .orders-table, .violation-table, .nick-table { min-width: 0; }
}

/* Community modal */
.community-modal { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: community-modal-fade .2s ease both; }
.community-modal[hidden] { display: none; }
.community-modal-backdrop { position: absolute; inset: 0; }
.community-modal-dialog { position: relative; width: 476px; max-width: 100%; height: 358.61px; max-height: calc(100vh - 32px); padding: 25.5px; overflow-y: auto; border: 1px solid rgba(226,232,240,.8); border-radius: 19.13px; background: #fff; color: #000; font-family: var(--font, "Saira Semi Condensed", sans-serif); font-size: 17px; font-weight: 500; line-height: 25.5px; box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); animation: community-modal-pop .24s cubic-bezier(.34,1.4,.64,1) both; }
.community-modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12.75px; width: 100%; height: 64.73px; margin: 0 0 17px; padding: 0 0 14.88px; border-bottom: 1px solid rgba(226,232,240,.6); }
.community-modal-heading { display: flex; align-items: center; gap: 10.63px; min-width: 0; width: 100%; max-width: 100%; height: 48.86px; }
.community-modal-mark { display: flex; align-items: center; justify-content: center; flex: 0 0 42.5px; width: 42.5px; height: 42.5px; border: 1px solid rgba(16,185,129,.2); border-radius: 14.88px; background-image: linear-gradient(to top right, rgba(16,185,129,.2) 0%, rgba(20,184,166,.1) 50%, rgba(59,130,246,.2) 100%); color: #059669; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.community-modal-mark svg { width: 21.25px; height: 21.25px; }
.community-modal-heading-copy { min-width: 0; flex: 1 1 auto; width: auto; max-width: none; height: 48.86px; }
.community-modal-title { width: 100%; height: 29.75px; margin: 0; overflow: hidden; color: #030303; font-size: 19.13px; font-weight: 800; line-height: 29.75px; letter-spacing: normal; text-overflow: ellipsis; text-transform: capitalize; white-space: nowrap; }
.community-modal-subtitle { width: 100%; height: 16.98px; margin: 2.13px 0 0; overflow: visible; color: #475569; font-size: 12.75px; font-weight: 500; line-height: 17px; text-overflow: clip; white-space: nowrap; }
.community-modal-close { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 29.75px; height: 29.75px; padding: 0; border: 1px solid transparent; border-radius: 999px; background: transparent; color: #475569; cursor: pointer; transition: background-color .2s ease, color .2s ease, transform .25s ease; }
.community-modal-close:hover { background: #f1f5f9; color: #0f172a; transform: rotate(90deg); }
.community-modal-close svg { width: 17px; height: 17px; }
.community-modal-list { width: 100%; height: 150.63px; margin: 0 0 17px; }
.community-modal-item { display: flex; align-items: center; justify-content: space-between; gap: 12.75px; width: 100%; height: 70px; padding: 12.75px; border: 1px solid rgba(226,232,240,.7); border-radius: 14.88px; background-color: rgba(248,250,252,.2); color: inherit; text-decoration: none; transition: transform .28s cubic-bezier(.34,1.56,.64,1), border-color .22s ease, background-color .22s ease, box-shadow .28s ease; }
.community-modal-item:hover { transform: translateY(-2px); background-color: #fff; box-shadow: 0 8px 20px -8px rgba(15,23,42,.18); }
.community-modal-item-telegram:hover { border-color: rgba(34,158,217,.45); }
.community-modal-item-zalo:hover { border-color: rgba(0,104,255,.45); }
.community-modal-item + .community-modal-item { margin-top: 10.63px; }
.community-modal-item-main { display: flex; align-items: center; gap: 12.75px; min-width: 0; height: 42.5px; }
.community-modal-item-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 42.5px; height: 42.5px; border-radius: 14.88px; box-shadow: 0 1px 0 rgba(0,0,0,.05); transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease; }
.community-modal-item:hover .community-modal-item-icon { transform: scale(1.08) rotate(-3deg); }
.community-modal-item-icon svg, .community-modal-item-icon img { width: 21.25px; height: 21.25px; object-fit: contain; }
.community-modal-item-icon.is-telegram { border: 1px solid rgba(34,158,217,.25); background-color: rgba(34,158,217,.1); color: #229ed9; }
.community-modal-item-icon.is-zalo { border: 1px solid rgba(0,104,255,.25); background-color: rgba(0,104,255,.1); color: #0068ff; }
.community-modal-item-telegram:hover .community-modal-item-icon { box-shadow: 0 6px 14px -4px rgba(34,158,217,.35); }
.community-modal-item-zalo:hover .community-modal-item-icon { box-shadow: 0 6px 14px -4px rgba(0,104,255,.35); }
.community-modal-item-copy { min-width: 0; height: 42px; }
.community-modal-item-title { display: block; width: 100%; height: 21.25px; overflow: hidden; color: #030303; font-size: 14.88px; font-weight: 700; line-height: 21.25px; text-overflow: ellipsis; white-space: nowrap; }
.community-modal-item-sub { display: block; width: 100%; height: 16.5px; margin: 4.25px 0 0; overflow: hidden; color: #475569; font-size: 11px; font-weight: 500; line-height: 16.5px; text-overflow: ellipsis; white-space: nowrap; }
.community-modal-action { display: flex; align-items: center; justify-content: center; flex-shrink: 0; gap: 4.25px; height: 31.73px; padding: 6.38px 10.63px; border: 1px solid rgba(226,232,240,.8); border-radius: 10.63px; background-color: #f8fafc; color: #030303; font-size: 12.75px; font-weight: 600; line-height: 17px; text-align: center; text-transform: capitalize; white-space: nowrap; box-shadow: 0 1px 0 rgba(0,0,0,.05); transition: background-color .22s ease, border-color .22s ease, color .22s ease, box-shadow .22s ease, transform .22s ease; }
.community-modal-item:hover .community-modal-action { transform: translateY(-1px); box-shadow: 0 4px 10px -4px rgba(15,23,42,.22); }
.community-modal-item-telegram:hover .community-modal-action { border-color: #229ed9; background-color: #229ed9; color: #fff; }
.community-modal-item-zalo:hover .community-modal-action { border-color: #0068ff; background-color: #0068ff; color: #fff; }
.community-modal-action svg { transition: transform .22s ease; }
.community-modal-item:hover .community-modal-action svg { transform: translate(1px,-1px); }
.community-modal-action svg { width: 14.88px; height: 14.88px; flex-shrink: 0; }
.community-modal-action-text { display: block; height: 16.98px; }
.community-modal-item-telegram .community-modal-action { width: 91.3px; }
.community-modal-item-telegram .community-modal-action-text { width: 48.92px; }
.community-modal-item-zalo .community-modal-action { width: 96.03px; }
.community-modal-item-zalo .community-modal-action-text { width: 53.66px; }
.community-modal-note { display: flex; align-items: center; gap: 10.63px; width: 100%; height: 56.25px; padding: 10.63px; border: 1px solid rgba(226,232,240,.6); border-radius: 14.88px; background-color: rgba(248,250,252,.4); color: #475569; font-size: 11px; font-weight: 500; line-height: 16.5px; }
.community-modal-note > svg { width: 17px; height: 17px; flex-shrink: 0; color: #059669; }
.community-modal-note > span { display: block; width: 372.13px; max-width: 100%; height: 33px; }
body.community-modal-open { overflow: hidden; }
@keyframes community-modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes community-modal-pop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 520px) {
    .community-modal { padding: 12px; }
    .community-modal-dialog { width: 100%; height: auto; padding: 18px; }
    .community-modal-header { height: auto; }
    .community-modal-heading { width: 100%; height: auto; }
    .community-modal-heading-copy { width: auto; height: auto; }
    .community-modal-title, .community-modal-subtitle { height: auto; white-space: normal; }
    .community-modal-list { height: auto; }
    .community-modal-item { height: auto; align-items: flex-start; flex-wrap: wrap; }
    .community-modal-item-main { width: 100%; height: auto; }
    .community-modal-item-copy { height: auto; }
    .community-modal-item-title, .community-modal-item-sub { height: auto; }
    .community-modal-note { height: auto; }
    .community-modal-note > span { width: auto; height: auto; }
}
